@event-calendar/build 5.6.0 → 5.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/*!
|
|
2
|
-
* EventCalendar v5.
|
|
2
|
+
* EventCalendar v5.7.0
|
|
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}}function h(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var g=1<<24,_=1024,v=2048,y=4096,b=8192,x=16384,S=32768,ee=1<<25,C=65536,te=1<<19,ne=1<<20,re=1<<25,ie=65536,ae=1<<21,oe=1<<22,se=1<<23,ce=Symbol(`$state`),le=Symbol(`legacy props`),ue=Symbol(``),w=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},T=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function de(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function fe(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function pe(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function me(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function he(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ge(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function _e(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ve(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function ye(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function be(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function xe(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Se(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ce(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function we(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Te={},Ee=Symbol(),De=`http://www.w3.org/1999/xhtml`;function Oe(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function ke(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function Ae(e){E=e}var D;function je(e){if(e===null)throw Oe(),Te;return D=e}function Me(){return je(cn(D))}function O(e){if(E){if(cn(D)!==null)throw Oe(),Te;D=e}}function Ne(e=1){if(E){for(var t=e,n=D;t--;)n=cn(n);D=n}}function Pe(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=cn(n);e&&n.remove(),n=i}}function Fe(e){if(!e||e.nodeType!==8)throw Oe(),Te;return e.data}function Ie(e){return e===this.v}function Le(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function Re(e){return!Le(e,this.v)}var ze=!1,Be=!1,Ve=null;function He(e){Ve=e}function k(e){return Ge(`getContext`).get(e)}function Ue(e,t){let n=Ge(`setContext`);if(ze){var r=B.f;!z&&r&32&&!Ve.i||be()}return n.set(e,t),t}function A(e,t=!1,n){Ve={p:Ve,i:!1,c:null,e:null,s:e,x:null,r:B,l:Be&&!t?{s:null,u:null,$:[]}:null}}function j(e){var t=Ve,n=t.e;if(n!==null){t.e=null;for(var r of n)xn(r)}return e!==void 0&&(t.x=e),t.i=!0,Ve=t.p,e??{}}function We(){return!Be||Ve!==null&&Ve.l===null}function Ge(e){return Ve===null&&de(e),Ve.c??=new Map(Ke(Ve)||void 0)}function Ke(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var qe=[];function Je(){var e=qe;qe=[],p(e)}function Ye(e){if(qe.length===0&&!dt){var t=qe;queueMicrotask(()=>{t===qe&&Je()})}qe.push(e)}function Xe(){for(;qe.length>0;)Je()}function Ze(e){var t=B;if(t===null)return z.f|=se,e;if(!(t.f&32768)&&!(t.f&4))throw e;Qe(e,t)}function Qe(e,t){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 $e=~(v|y|_);function et(e,t){e.f=e.f&$e|t}function tt(e){e.f&512||e.deps===null?et(e,_):et(e,y)}function nt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ie,nt(t.deps))}function rt(e,t,n){e.f&2048?t.add(e):e.f&4096&&n.add(e),nt(e.deps),et(e,_)}var it=!1,at=!1;function ot(e){var t=at;try{return at=!1,[e(),at]}finally{at=t}}var st=new Set,ct=null,lt=null,ut=null,dt=!1,ft=!1,pt=null,mt=null,ht=0,gt=1,_t=class e{id=gt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Map;#r=new Map;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u=new Set;#d(){return this.is_fork||this.#r.size>0}#f(){for(let n of this.#u)for(let r of n.#r.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#c.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#c.has(e)||this.#c.set(e,{d:[],m:[]})}unskip_effect(e){var t=this.#c.get(e);if(t){this.#c.delete(e);for(var n of t.d)et(n,v),this.schedule(n);for(n of t.m)et(n,y),this.schedule(n)}}#p(){if(ht++>1e3&&(st.delete(this),yt()),!this.#d()){for(let e of this.#o)this.#s.delete(e),et(e,v),this.schedule(e);for(let e of this.#s)et(e,y),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=pt=[],r=[],i=mt=[];for(let e of t)try{this.#m(e,n,r)}catch(t){throw Et(e),t}if(ct=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(pt=null,mt=null,this.#d()||this.#f()){this.#h(r),this.#h(n);for(let[e,t]of this.#c)Tt(e,t)}else{this.#n.size===0&&st.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),xt(r),xt(n),this.#i?.resolve()}var o=ct;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(st.add(o),o.#p()),st.has(this)||this.#g()}#m(e,t,n){e.f^=_;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#c.has(r))&&r.fn!==null){a?r.f^=_:i&4?t.push(r):ze&&i&16777224?n.push(r):ar(r)&&(i&16&&this.#s.add(r),ur(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}}}#h(e){for(var t=0;t<e.length;t+=1)rt(e[t],this.#o,this.#s)}capture(e,t,n=!1){t!==Ee&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,[e.v,n]),lt?.set(e,e.v))}activate(){ct=this}deactivate(){ct=null,lt=null}flush(){try{ft=!0,ct=this,this.#p()}finally{ht=0,ut=null,pt=null,mt=null,ft=!1,ct=null,lt=null,Gt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),st.delete(this)}#g(){for(let c of st){var e=c.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(c.current.has(r)){var n=c.current.get(r)[0];if(e&&i!==n)c.current.set(r,[i,a]);else continue}t.push(r)}var r=[...c.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&c.discard();else if(t.length>0){c.activate();var i=new Set,a=new Map;for(var o of t)St(o,r,i,a);if(c.#a.length>0){c.apply();for(var s of c.#a)c.#m(s,[],[]);c.#a=[]}c.deactivate()}}for(let e of st)e.#u.has(this)&&(e.#u.delete(this),e.#u.size===0&&!e.#d()&&(e.activate(),e.#p()))}increment(e,t){let n=this.#n.get(t)??0;if(this.#n.set(t,n+1),e){let e=this.#r.get(t)??0;this.#r.set(t,e+1)}}decrement(e,t,n){let r=this.#n.get(t)??0;if(r===1?this.#n.delete(t):this.#n.set(t,r-1),e){let e=this.#r.get(t)??0;e===1?this.#r.delete(t):this.#r.set(t,e-1)}this.#l||n||(this.#l=!0,Ye(()=>{this.#l=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#o.add(t);for(let e of t)this.#s.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}settled(){return(this.#i??=m()).promise}static ensure(){if(ct===null){let t=ct=new e;ft||(st.add(ct),dt||Ye(()=>{ct===t&&t.flush()}))}return ct}apply(){if(!ze||!this.is_fork&&st.size===1){lt=null;return}lt=new Map;for(let[e,[t]]of this.current)lt.set(e,t);for(let n of st)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#u.add(n);else for(let[e,t]of n.previous)lt.has(e)||lt.set(e,t)}}schedule(e){if(ut=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(pt!==null&&t===B&&(ze||(z===null||!(z.f&2))&&!it))return;if(n&96){if(!(n&1024))return;t.f^=_}}this.#a.push(t)}};function vt(e){var t=dt;dt=!0;try{var n;for(e&&(ct!==null&&!ct.is_fork&&ct.flush(),n=e());;){if(Xe(),ct===null)return n;ct.flush()}}finally{dt=t}}function yt(){try{_e()}catch(e){Qe(e,ut)}}var bt=null;function xt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&ar(r)&&(bt=new Set,ur(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Fn(r),bt?.size>0)){Gt.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||ur(n)}}bt.clear()}}bt=null}}function St(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?St(i,t,n,r):e&4194320&&!(e&2048)&&Ct(i,t,r)&&(et(i,v),wt(i))}}function Ct(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&&Ct(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function wt(e){ct.schedule(e)}function Tt(e,t){if(!(e.f&32&&e.f&1024)){e.f&2048?t.d.push(e):e.f&4096&&t.m.push(e),et(e,_);for(var n=e.first;n!==null;)Tt(n,t),n=n.next}}function Et(e){et(e,_);for(var t=e.first;t!==null;)Et(t),t=t.next}function Dt(e){let t=0,n=qt(0),r;return()=>{vn()&&(V(n),En(()=>(t===0&&(r=H(()=>e(()=>Zt(n)))),t+=1,()=>{Ye(()=>{--t,t===0&&(r?.(),r=void 0,Zt(n))})})))}}var Ot=C|te;function kt(e,t,n,r){new At(e,t,n,r)}var At=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=Dt(()=>(this.#m=qt(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=Dn(()=>{if(E){let e=this.#t;Me();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()},Ot),E&&(this.#e=D)}#g(){try{this.#a=kn(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=kn(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=kn(()=>e(this.#e)),Ye(()=>{var e=this.#c=document.createDocumentFragment(),t=on();e.append(t),this.#a=this.#x(()=>kn(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,In(this.#o,()=>{this.#o=null}),this.#b(ct))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=kn(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Bn(this.#a,e);let t=this.#n.pending;this.#o=kn(()=>t(this.#e))}else this.#b(ct)}catch(e){this.error(e)}}#b(e){this.is_pending=!1,e.transfer_effects(this.#f,this.#p)}defer_effect(e){rt(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=Ve;qn(this.#i),Kn(this.#i),He(this.#i.ctx);try{return _t.ensure(),e()}catch(e){return Ze(e),null}finally{qn(t),Kn(n),He(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&&In(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,Ye(()=>{this.#d=!1,this.#m&&Yt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),V(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(Nn(this.#a),null),this.#o&&=(Nn(this.#o),null),this.#s&&=(Nn(this.#s),null),E&&(je(this.#t),Ne(),je(Pe()));var r=!1,i=!1;let a=()=>{if(r){ke();return}r=!0,i&&we(),this.#s!==null&&In(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){Qe(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return kn(()=>{var t=B;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return Qe(e,this.#i.parent),null}}))};Ye(()=>{var t;try{t=this.transform_error(e)}catch(e){Qe(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>Qe(e,this.#i&&this.#i.parent)):o(t)})}};function jt(e,t,n,r){let i=We()?Ft:Lt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=B,s=Mt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||Qe(e,o)}Nt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Pt();function d(){Promise.all(n.map(e=>It(e))).then(e=>l([...t.map(i),...e])).catch(e=>Qe(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Nt()}):d()}function Mt(){var e=B,t=z,n=Ve,r=ct;return function(i=!0){qn(e),Kn(t),He(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Nt(e=!0){qn(null),Kn(null),He(null),e&&ct?.deactivate()}function Pt(){var e=B,t=e.b,n=ct,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Ft(e){var t=2|v,n=z!==null&&z.f&2?z:null;return B!==null&&(B.f|=te),{ctx:Ve,deps:null,effects:null,equals:Ie,f:t,fn:e,reactions:null,rv:0,v:Ee,wv:0,parent:n??B,ac:null}}function It(e,t,n){let r=B;r===null&&fe();var i=void 0,a=qt(Ee),o=!z,s=new Map;return Tn(()=>{var t=B,n=m();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Nt)}catch(e){n.reject(e),Nt()}var c=ct;if(o){if(t.f&32768)var l=Pt();if(r.b.is_rendered())s.get(c)?.reject(w),s.delete(c);else{for(let e of s.values())e.reject(w);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===w),!(n===w||t.f&16384)){if(c.activate(),n)a.f|=se,Yt(a,n);else{a.f&8388608&&(a.f^=se),Yt(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(w)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),yn(()=>{for(let e of s.values())e.reject(w)}),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=Ft(e);return ze||Yn(t),t}function Lt(e){let t=Ft(e);return t.equals=Re,t}function Rt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Nn(t[n])}}function zt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Bt(e){var t,n=B;qn(zt(e));try{e.f&=~ie,Rt(e),t=sr(e)}finally{qn(n)}return t}function Vt(e){var t=e.v,n=Bt(e);if(!e.equals(n)&&(e.wv=ir(),(!ct?.is_fork||e.deps===null)&&(e.v=n,ct?.capture(e,t,!0),e.deps===null))){et(e,_);return}Un||(lt===null?tt(e):(vn()||ct?.is_fork)&<.set(e,n))}function Ht(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(w),t.teardown=f,t.ac=null,lr(t,0),jn(t))}function Ut(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&ur(t)}var Wt=new Set,Gt=new Map,Kt=!1;function qt(e,t){return{f:0,v:e,reactions:null,equals:Ie,rv:0,wv:0}}function N(e,t){let n=qt(e,t);return Yn(n),n}function Jt(e,t=!1,n=!0){let r=qt(e);return t||(r.equals=Re),Be&&n&&Ve!==null&&Ve.l!==null&&(Ve.l.s??=[]).push(r),r}function P(e,t,n=!1){return z!==null&&(!Gn||z.f&131072)&&We()&&z.f&4325394&&(Jn===null||!r.call(Jn,e))&&Ce(),Yt(e,n?$t(t):t,mt)}function Yt(e,t,n=null){if(!e.equals(t)){var r=e.v;Un?Gt.set(e,t):Gt.set(e,r),e.v=t;var i=_t.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Bt(t),lt===null&&tt(t)}e.wv=ir(),Qt(e,v,n),We()&&B!==null&&B.f&1024&&!(B.f&96)&&(Qn===null?$n([e]):Qn.push(e)),!i.is_fork&&Wt.size>0&&!Kt&&Xt()}return t}function Xt(){Kt=!1;for(let e of Wt)e.f&1024&&et(e,y),ar(e)&&ur(e);Wt.clear()}function Zt(e){P(e,e.v+1)}function Qt(e,t,n){var r=e.reactions;if(r!==null)for(var i=We(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===B)){var l=(c&v)===0;if(l&&et(s,t),c&2){var u=s;lt?.delete(u),c&65536||(c&512&&(s.f|=ie),Qt(u,y,n))}else if(l){var d=s;c&16&&bt!==null&&bt.add(d),n===null?wt(d):n.push(d)}}}}function $t(e){if(typeof e!=`object`||!e||ce 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=nr,f=e=>{if(nr===d)return e();var t=z,n=nr;Kn(null),rr(d);var r=e();return Kn(t),rr(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)&&xe();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(Ee,s));r.set(t,e),Zt(a)}}else P(n,Ee),Zt(a);return!0},get(t,n,i){if(n===ce)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||o(t,n)?.writable)&&(a=f(()=>N($t(c?t[n]:Ee),s)),r.set(n,a)),a!==void 0){var l=V(a);return l===Ee?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!==Ee)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===ce)return!0;var n=r.get(t),i=n!==void 0&&n.v!==Ee||Reflect.has(e,t);return(n!==void 0||B!==null&&(!i||o(e,t)?.writable))&&(n===void 0&&(n=f(()=>N(i?$t(e[t]):Ee,s)),r.set(t,n)),V(n)===Ee)?!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(Ee,s)),r.set(d+``,p)):P(p,Ee)}if(l===void 0)(!u||o(e,t)?.writable)&&(l=f(()=>N(void 0,s)),P(l,$t(n)),r.set(t,l));else{u=l.v!==Ee;var m=f(()=>$t(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)}Zt(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!==Ee});for(var[n,i]of r)i.v!==Ee&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Se()}})}var en,tn,nn,rn;function an(){if(en===void 0){en=window,tn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;nn=o(t,`firstChild`).get,rn=o(t,`nextSibling`).get,d(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),d(n)&&(n.__t=void 0)}}function on(e=``){return document.createTextNode(e)}function sn(e){return nn.call(e)}function cn(e){return rn.call(e)}function F(e,t){if(!E)return sn(e);var n=sn(D);if(n===null)n=D.appendChild(on());else if(t&&n.nodeType!==3){var r=on();return n?.before(r),je(r),r}return t&&fn(n),je(n),n}function I(e,t=!1){if(!E){var n=sn(e);return n instanceof Comment&&n.data===``?cn(n):n}if(t){if(D?.nodeType!==3){var r=on();return D?.before(r),je(r),r}fn(D)}return D}function L(e,t=1,n=!1){let r=E?D:e;for(var i;t--;)i=r,r=cn(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=on();return r===null?i?.after(a):r.before(a),je(a),a}fn(r)}return je(r),r}function ln(e){e.textContent=``}function un(){return!ze||bt!==null?!1:(B.f&S)!==0}function dn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function fn(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 pn(e,t){if(t){let t=document.body;e.autofocus=!0,Ye(()=>{document.activeElement===t&&e.focus()})}}function mn(e){var t=z,n=B;Kn(null),qn(null);try{return e()}finally{Kn(t),qn(n)}}function hn(e){B===null&&(z===null&&ge(e),he()),Un&&me(e)}function gn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function _n(e,t){var n=B;n!==null&&n.f&8192&&(e|=b);var r={ctx:Ve,deps:null,nodes:null,f:e|v|512,first:null,fn:t,last:null,next:null,parent:n,b:n&&n.b,prev:null,teardown:null,wv:0,ac:null},i=r;if(e&4)pt===null?_t.ensure().schedule(r):pt.push(r);else if(t!==null){try{ur(r)}catch(e){throw Nn(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&&gn(i,n),z!==null&&z.f&2&&!(e&64))){var a=z;(a.effects??=[]).push(i)}return r}function vn(){return z!==null&&!Gn}function yn(e){let t=_n(8,null);return et(t,_),t.teardown=e,t}function bn(e){hn(`$effect`);var t=B.f;if(!z&&t&32&&!(t&32768)){var n=Ve;(n.e??=[]).push(e)}else return xn(e)}function xn(e){return _n(4|ne,e)}function Sn(e){return hn(`$effect.pre`),_n(8|ne,e)}function Cn(e){_t.ensure();let t=_n(64|te,e);return(e={})=>new Promise(n=>{e.outro?In(t,()=>{Nn(t),n(void 0)}):(Nn(t),n(void 0))})}function wn(e){return _n(4,e)}function Tn(e){return _n(oe|te,e)}function En(e,t=0){return _n(8|t,e)}function R(e,t=[],n=[],r=[]){jt(r,t,n,t=>{_n(8,()=>e(...t.map(V)))})}function Dn(e,t=0){return _n(16|t,e)}function On(e,t=0){return _n(g|t,e)}function kn(e){return _n(32|te,e)}function An(e){var t=e.teardown;if(t!==null){let e=Un,n=z;Wn(!0),Kn(null);try{t.call(null)}finally{Wn(e),Kn(n)}}}function jn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&mn(()=>{e.abort(w)});var r=n.next;n.f&64?n.parent=null:Nn(n,t),n=r}}function Mn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Nn(t),t=n}}function Nn(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Pn(e.nodes.start,e.nodes.end),n=!0),et(e,ee),jn(e,t&&!n),lr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();An(e),e.f^=ee,e.f|=x;var i=e.parent;i!==null&&i.first!==null&&Fn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Pn(e,t){for(;e!==null;){var n=e===t?null:cn(e);e.remove(),e=n}}function Fn(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 In(e,t,n=!0){var r=[];Ln(e,r,!0);var i=()=>{n&&Nn(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Ln(e,t,n){if(!(e.f&8192)){e.f^=b;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,o=(i.f&65536)!=0||(i.f&32)!=0&&(e.f&16)!=0;Ln(i,t,o?n:!1),i=a}}}function Rn(e){zn(e,!0)}function zn(e,t){if(e.f&8192){e.f^=b,e.f&1024||(et(e,v),_t.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;zn(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 Bn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:cn(n);t.append(n),n=i}}var Vn=null,Hn=!1,Un=!1;function Wn(e){Un=e}var z=null,Gn=!1;function Kn(e){z=e}var B=null;function qn(e){B=e}var Jn=null;function Yn(e){z!==null&&(!ze||z.f&2)&&(Jn===null?Jn=[e]:Jn.push(e))}var Xn=null,Zn=0,Qn=null;function $n(e){Qn=e}var er=1,tr=0,nr=tr;function rr(e){nr=e}function ir(){return++er}function ar(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ie),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(ar(a)&&Vt(a),a.wv>e.wv)return!0}t&512&<===null&&et(e,_)}return!1}function or(e,t,n=!0){var i=e.reactions;if(i!==null&&!(!ze&&Jn!==null&&r.call(Jn,e)))for(var a=0;a<i.length;a++){var o=i[a];o.f&2?or(o,t,!1):t===o&&(n?et(o,v):o.f&1024&&et(o,y),wt(o))}}function sr(e){var t=Xn,n=Zn,r=Qn,i=z,a=Jn,o=Ve,s=Gn,c=nr,l=e.f;Xn=null,Zn=0,Qn=null,z=l&96?null:e,Jn=null,He(e.ctx),Gn=!1,nr=++tr,e.ac!==null&&(mn(()=>{e.ac.abort(w)}),e.ac=null);try{e.f|=ae;var u=e.fn,d=u();e.f|=S;var f=e.deps,p=ct?.is_fork;if(Xn!==null){var m;if(p||lr(e,Zn),f!==null&&Zn>0)for(f.length=Zn+Xn.length,m=0;m<Xn.length;m++)f[Zn+m]=Xn[m];else e.deps=f=Xn;if(vn()&&e.f&512)for(m=Zn;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Zn<f.length&&(lr(e,Zn),f.length=Zn);if(We()&&Qn!==null&&!Gn&&f!==null&&!(e.f&6146))for(m=0;m<Qn.length;m++)or(Qn[m],e);if(i!==null&&i!==e){if(tr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=tr;if(t!==null)for(let e of t)e.rv=tr;Qn!==null&&(r===null?r=Qn:r.push(...Qn))}return e.f&8388608&&(e.f^=se),d}catch(e){return Ze(e)}finally{e.f^=ae,Xn=t,Zn=n,Qn=r,z=i,Jn=a,He(o),Gn=s,nr=c}}function cr(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&&(Xn===null||!r.call(Xn,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ie),tt(s),Ht(s),lr(s,0)}}function lr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)cr(e,n[r])}function ur(e){var t=e.f;if(!(t&16384)){et(e,_);var n=B,r=Hn;B=e,Hn=!0;try{t&16777232?Mn(e):jn(e),An(e);var i=sr(e);e.teardown=typeof i==`function`?i:null,e.wv=er}finally{Hn=r,B=n}}}async function dr(){if(ze)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),vt()}function V(e){var t=(e.f&2)!=0;if(Vn?.add(e),z!==null&&!Gn&&!(B!==null&&B.f&16384)&&(Jn===null||!r.call(Jn,e))){var n=z.deps;if(z.f&2097152)e.rv<tr&&(e.rv=tr,Xn===null&&n!==null&&n[Zn]===e?Zn++:Xn===null?Xn=[e]:Xn.push(e));else{(z.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[z]:r.call(i,z)||i.push(z)}}if(Un&&Gt.has(e))return Gt.get(e);if(t){var a=e;if(Un){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||pr(a))&&(o=Bt(a)),Gt.set(a,o),o}var s=(a.f&512)==0&&!Gn&&z!==null&&(Hn||(z.f&512)!=0),c=(a.f&S)===0;ar(a)&&(s&&(a.f|=512),Vt(a)),s&&!c&&(Ut(a),fr(a))}if(lt?.has(e))return lt.get(e);if(e.f&8388608)throw e.v;return e.v}function fr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Ut(t),fr(t))}function pr(e){if(e.v===Ee)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Gt.has(t)||t.f&2&&pr(t))return!0;return!1}function H(e){var t=Gn;try{return Gn=!0,e()}finally{Gn=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 mr=[`touchstart`,`touchmove`];function hr(e){return mr.includes(e)}var gr=Symbol(`events`),_r=new Set,vr=new Set;function yr(e,t,n,r={}){function i(e){if(r.capture||wr.call(t,e),!e.cancelBubble)return mn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Ye(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function br(e,t,n,r,i){var a={capture:r,passive:i},o=yr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&yn(()=>{t.removeEventListener(e,o,a)})}function xr(e,t,n){(t[gr]??={})[e]=n}function Sr(e){for(var t=0;t<e.length;t++)_r.add(e[t]);for(var n of vr)n(e)}var Cr=null;function wr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;Cr=e;var s=0,c=Cr===e&&e[gr];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[gr]=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;Kn(null),qn(null);try{for(var p,m=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var g=o[gr]?.[r];g!=null&&(!o.disabled||e.target===o)&&g.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;o=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[gr]=t,delete e.currentTarget,Kn(d),qn(f)}}}var Tr=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Er(e){return Tr?.createHTML(e)??e}function Dr(e){var t=dn(`template`);return t.innerHTML=Er(e.replaceAll(`<!>`,`<!---->`)),t.content}function Or(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 Or(D,null),D;i===void 0&&(i=Dr(a?e:`<!>`+e),n||(i=sn(i)));var t=r||tn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=sn(t),s=t.lastChild;Or(o,s)}else Or(t,t);return t}}function W(){if(E)return Or(D,null),D;var e=document.createDocumentFragment(),t=document.createComment(``),n=on();return e.append(t,n),Or(t,n),e}function G(e,t){if(E){var n=B;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=D),Me();return}e!==null&&e.before(t)}function kr(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function Ar(e,t){return Mr(e,t)}var jr=new Map;function Mr(e,{target:t,anchor:n,props:r={},events:a,context:o,intro:s=!0,transformError:c}){an();var l=void 0,u=Cn(()=>{var s=n??t.appendChild(on());kt(s,{pending:()=>{}},t=>{A({});var n=Ve;if(o&&(n.c=o),a&&(r.$$events=a),E&&Or(t,null),l=e(t,r)||{},E&&(B.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw Oe(),Te;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=hr(r);for(let e of[t,document]){var a=jr.get(e);a===void 0&&(a=new Map,jr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,wr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(i(_r)),vr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=jr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,wr),r.delete(e),r.size===0&&jr.delete(n)):r.set(e,i)}vr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return Nr.set(l,u),l}var Nr=new WeakMap;function Pr(e,t){let n=Nr.get(e);return n?(Nr.delete(e),n(t)):Promise.resolve()}var Fr=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)Rn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(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&&(Nn(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();Bn(r,t),t.append(on()),this.#n.set(e,{effect:r,fragment:t})}else Nn(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),In(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)||(Nn(n.effect),this.#n.delete(e))};ensure(e,t){var n=ct,r=un();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=on();i.append(a),this.#n.set(e,{effect:kn(()=>t(a)),fragment:i})}else this.#t.set(e,kn(()=>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,Me());var i=new Fr(e),a=n?C:0;function o(e,t){if(E){var n=Fe(r);if(e!==parseInt(n.substring(1))){var a=Pe();je(a),i.anchor=a,Ae(!1),i.ensure(e,t),Ae(!0);return}}i.ensure(e,t)}Dn(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function q(e,t){return t}function Ir(e,t,n){for(var r=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];In(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Lr(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;ln(d),d.append(u),e.items.clear()}Lr(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Lr(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|=re,Bn(a,document.createDocumentFragment())):Nn(t[i],n)}}var Rr;function J(e,n,r,a,o,s=null){var c=e,l=new Map;if(n&4){var u=e;c=E?je(sn(u)):u.appendChild(on())}E&&Me();var d=null,f=Lt(()=>{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,Br(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=re,Hr(d,null,c)):Rn(d):In(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:Dn(()=>{p=V(f);var e=p.length;let t=!1;E&&Fe(c)===`[!`!=(e===0)&&(c=Pe(),je(c),Ae(!1),t=!0);for(var i=new Set,u=ct,v=un(),y=0;y<e;y+=1){E&&D.nodeType===8&&D.data===`]`&&(c=D,t=!0,Ae(!1));var b=p[y],x=a(b,y),S=h?null:l.get(x);S?(S.v&&Yt(S.v,b),S.i&&Yt(S.i,y),v&&u.unskip_effect(S.e)):(S=Vr(l,h?c:Rr??=on(),b,x,y,o,n,r),h||(S.e.f|=re),l.set(x,S)),i.add(x)}if(e===0&&s&&!d&&(h?d=kn(()=>s(c)):(d=kn(()=>s(Rr??=on())),d.f|=re)),e>i.size&&pe(``,``,``),E&&e>0&&je(Pe()),!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&&Ae(!0),V(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,E&&(c=D)}function zr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Br(e,t,n,r,a){var o=(r&8)!=0,s=t.length,c=e.items,l=zr(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&&(Rn(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=re,_===l)Hr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Ur(e,d,_),Ur(e,_,y),Hr(_,y,n),d=_,p=[],m=[],l=zr(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],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Hr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Ur(e,S.prev,ee.next),Ur(e,d,S),Ur(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Hr(_,l,n),Ur(e,_.prev,_.next),Ur(e,_,d===null?e.effect.first:d.next),Ur(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=zr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=zr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Lr(e,i(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(_ of u)_.f&8192||C.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&C.push(l),l=zr(l.next);var te=C.length;if(te>0){var ne=r&4&&s===0?n:null;if(o){for(v=0;v<te;v+=1)C[v].nodes?.a?.measure();for(v=0;v<te;v+=1)C[v].nodes?.a?.fix()}Ir(e,C,ne)}}o&&Ye(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Vr(e,t,n,r,i,a,o,s){var c=o&1?o&16?qt(n):Jt(n,!1,!1):null,l=o&2?qt(i):null;return{v:c,i:l,e:kn(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Hr(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=cn(r);if(a.before(r),r===i)return;r=o}}function Ur(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Wr(e,t,...n){var r=new Fr(e);Dn(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},C)}function Gr(e,t,n){var r;E&&(r=D,Me());var i=new Fr(e);Dn(()=>{var e=t()??null;if(E&&Fe(r)===`[`!=(e!==null)){var a=Pe();je(a),i.anchor=a,Ae(!1),i.ensure(e,e&&(t=>n(t,e))),Ae(!0);return}i.ensure(e,e&&(t=>n(t,e)))},C)}function Kr(e,t){var n=void 0,r;On(()=>{n!==(n=t())&&(r&&=(Nn(r),null),n&&(r=kn(()=>{wn(()=>n(e))})))})}function qr(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=qr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Jr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=qr(e))&&(r&&(r+=` `),r+=t);return r}function Yr(e){return typeof e==`object`?Jr(e):e??``}var Xr=[...`
|
|
6
|
-
\r\f\xA0\v`];function Zr(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||Xr.includes(r[o-1]))&&(s===r.length||Xr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Qr(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 $r(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ei(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($r)),i&&c.push(...Object.keys(i).map($r));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=$r(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+=Qr(r)),i&&(n+=Qr(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.__className;if(E||o!==n||o===void 0){var s=Zr(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=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 ti(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 ni(e,t,n,r){var i=e.__style;if(E||i!==t){var a=ei(t,r);(!E||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(ti(e,n?.[0],r[0]),ti(e,n?.[1],r[1],`important`)):ti(e,n,r));return r}var ri=Symbol(`is custom element`),ii=Symbol(`is html`),ai=T?`link`:`LINK`;function oi(e,t,n,r){var i=si(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ai)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ue]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&li(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function si(e){return e.__attributes??={[ri]:e.nodeName.includes(`-`),[ii]:e.namespaceURI===De}}var ci=new Map;function li(e){var t=e.getAttribute(`is`)||e.nodeName,n=ci.get(t);if(n)return n;ci.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=s(i),r)r[o].set&&n.push(o);i=u(i)}return n}var ui=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 di(e,t,n){var r=ui.observe(e,()=>n(e[t]));wn(()=>(H(()=>n(e[t])),r))}function fi(e,t){return e===t||e?.[ce]===t}function pi(e={},t,n,r){var i=Ve.r,a=B;return wn(()=>{var o,s;return En(()=>{o=s,s=r?.()||[],H(()=>{e!==n(...s)&&(t(e,...s),o&&fi(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&&fi(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function mi(e,t,n,r){var i=!Be||(n&2)!=0,a=(n&8)!=0,s=(n&16)!=0,c=r,l=!0,u=()=>(l&&(l=!1,c=s?H(r):r),c);let d;if(a){var f=ce in e||le in e;d=o(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=ot(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&ye(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Ft:Lt)(()=>(_=!1,h()));a&&V(v);var y=B;return(function(e,t){if(arguments.length>0){let n=t?V(v):i&&a?$t(e):e;return P(v,n),_=!0,c!==void 0&&(c=n),e}return Un&&_||y.f&16384?v.v:V(v)})}function hi(){return z===null&&ve(),(z.ac??=new AbortController).signal}function gi(e){Ve===null&&de(`onMount`),Be&&Ve.l!==null?_i(Ve).m.push(e):bn(()=>{let t=H(e);if(typeof t==`function`)return t})}function _i(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);function vi(e,t=void 0){return function(n){return n.key===`Enter`||n.key===` `&&!n.preventDefault()?e.call(t,n):void 0}}function yi(e){return t=>{typeof e==`string`?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function bi(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 xi(e){return t=>{let n=new ResizeObserver(n=>{for(let r of n)e(t,r)});return n.observe(t),()=>{n.unobserve(t)}}}function Si(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 X(...e){return Object.assign(...e)}function Ci(e){return Object.keys(e)}function wi(e){return Object.entries(e)}function Ti(e,t){return Object.hasOwn(e,t)}function Ei(e){return Math.floor(e)}function Di(e){return Math.ceil(e)}function Oi(...e){return Math.min(...e)}function ki(...e){return Math.max(...e)}function Ai(){return Symbol(`ec`)}function ji(e){return e.length}function Mi(e){return!ji(e)}function Ni(e){return Array.isArray(e)}function Z(e){return typeof e==`function`}function Pi(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Fi(e){return e instanceof Date}function Ii(e){return e()}function Li(e){e.forEach(Ii)}function Ri(){}var zi=e=>e;function Bi(){return window.getComputedStyle(document.documentElement).direction===`rtl`}function Vi(e){return t=>t===void 0?void 0:e(t)}var Hi=86400;function Ui(e=void 0){return e===void 0?ca(new Date):Fi(e)?ca(e):la(e)}function Wi(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 Fi(e)&&(e={hours:e.getUTCHours(),minutes:e.getUTCMinutes(),seconds:e.getUTCSeconds()});let t=e.weeks||e.week||0;return{years:e.years||e.year||0,months:e.months||e.month||0,days:t*7+(e.days||e.day||0),seconds:(e.hours||e.hour||0)*60*60+(e.minutes||e.minute||0)*60+(e.seconds||e.second||0),inWeeks:!!t}}function Q(e){return new Date(e.getTime())}function Gi(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;)Ji(e);return e.setUTCDate(e.getUTCDate()+n*t.days),e.setUTCSeconds(e.getUTCSeconds()+n*t.seconds),e}function Ki(e,t,n=1){return Gi(e,t,-n)}function qi(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function Ji(e,t=1){return qi(e,-t)}function Yi(e){return e.setUTCHours(0,0,0,0),e}function Xi(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function Zi(e,t=19){return e.toISOString().substring(0,t)}function Qi(e,...t){return t.every(t=>e.getTime()===t.getTime())}function $i(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n>=0?n:n+7)),e}function ea(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n<=0?n:n-7)),e}function ta(e){return typeof e==`string`&&e.length<=10}function na(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function $(e){return e.seconds}function ra(e,t,n){return Gi(e,t),aa(e,n,qi),e}function ia(e,t,n){return Ki(e,t),aa(e,n,Ji),e}function aa(e,t,n){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)n(e)}function oa(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/Hi+1)/7)}function sa(e,t,n){return t?Z(t)?t({date:Xi(n),week:e}):t:`W`+String(e).padStart(2,`0`)}function ca(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function la(e){let t=e.match(/\d+/g);return new Date(Date.UTC(Number(t[0]),Number(t[1])-1,Number(t[2]),Number(t[3]||0),Number(t[4]||0),Number(t[5]||0)))}var ua=Ai();function da(e,t){e[ua]=t}function fa(e){return!!e?.[ua]}function pa(e){return e[ua]}function ma(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 ha(e){return e.getBoundingClientRect()}function ga(e,t){for(;t--;)e=e.parentElement;return e}function _a(e){return ha(e).height}function va(e,t,n=document,r=[]){r.push(n);for(let i of n.elementsFromPoint(e,t)){if(fa(i))return i;if(i.shadowRoot&&!r.includes(i.shadowRoot)){let n=va(e,t,i.shadowRoot,r);if(n)return n}}return null}function ya(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function ba(e,t=void 0){return function(n){n.stopPropagation(),e&&e.call(t,n)}}function xa(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 Sa(e){return e=X({},e),e.currentStart=Xi(e.currentStart),e.currentEnd=Xi(e.currentEnd),e.activeStart=Xi(e.activeStart),e.activeEnd=Xi(e.activeEnd),e}var Ca=1;function wa(e){return e.map(e=>{let t={id:`id`in e?String(e.id):`{generated-${Ca++}}`,resourceIds:Ta(e,`resourceId`).map(String),allDay:e.allDay??(ta(e.start)&&ta(e.end)),start:Ui(e.start),end:Ui(e.end),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:Ta(e,`className`),styles:Ta(e,`style`)};if(t.allDay){Yi(t.start);let e=Q(t.end);Yi(t.end),(!Qi(t.end,e)||Qi(t.end,t.start))&&qi(t.end)}return t})}function Ta(e,t){let n=e[t+`s`]??e[t]??[];return Ni(n)?n:[n]}function Ea(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 Da(e,t,n,r,i,a){let o=i.formatRange(e.start,t&&e.event.display!==`pointer`&&!e.zeroDuration?na(Q(e.start),e.end):e.start),s;if(n&&(s=Z(n)?n({event:Aa(e.event),timeText:o,view:Sa(a)}):n),s===void 0){let t;switch(e.event.display){case`background`:t=[];break;case`pointer`:t=e.event.allDay?[]:[Oa(o,e,r)];break;default:t=[...e.event.allDay?[]:[Oa(o,e,r)],ma(`h4`,r.eventTitle,e.event.title)]}s={domNodes:t}}return[o,s]}function Oa(e,t,n){return ma(`time`,n.eventTime,e,[[`datetime`,Zi(t.start)]])}function ka(e,t,n){let r=t.classNames;return e&&(Z(e)&&(e=e({event:Aa(t),view:Sa(n)})),r=[...Ni(e)?e:[e],...r]),r}function Aa(e){return Ma(e,Xi)}function ja(e){return Ma(e,Q)}function Ma(e,t){return e=X({},e),e.start=t(e.start),e.end=t(e.end),e}function Na(e,t){e.length=t.length;for(let t of e)t?.reposition()}function Pa(e,t,n,r=void 0){return(!r||e.resourceIds.includes(r.id))&&e.start<n&&e.end>t}function Fa(e){return La(e)||Ra(e)||za(e)}function Ia(e){return e===`background`}function La(e){return e===`preview`}function Ra(e){return e===`ghost`}function za(e){return e===`pointer`}function Ba(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:Qi(t,n)}}function Va(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&&Pa(e,u,d,l)&&(r.push(u),i=d,a||(a=n,o=c,s=l));if(r.length){let t=Ba(e,r[0],i);return X(t,{gridColumn:a,gridRow:o,resource:s,dates:r}),n&&Ka(t),[t]}return[]}function Ha(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 Ua(e,t,n=1){e.prev&&(n=e.prev.bottom+1);let r=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&&r>e.top){let t=e.bottom-n+1;n+=t,r+=t}}return X(e,{top:n,bottom:r}),n}var Wa=new WeakMap,Ga=1;function Ka(e){let{event:t,gridColumn:n,gridRow:r}=e,i=Wa.get(t);i||(i=Ga++,Wa.set(t,i)),e.id=`${i}-${n}-${r}`}function qa(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return H(()=>{i=Z(r)?{format:r}:new Intl.DateTimeFormat(n,r)}),{format:e=>i.format(Xi(e))}}}function Ja(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return H(()=>{if(Z(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+=Ya(a[1-t],r),o[t]=!0):i+=e.value}return i}}}}),{formatRange:(e,t)=>i(Xi(e),Xi(t))}}}function Ya(e,t){let n=``;for(let r of t)r.source==e&&(n+=r.value);return n}function Xa(e){return eo(e,`day`)}function Za(e){return eo(e,`week`)}function Qa(e){return eo(e,`month`)}function $a(e){return eo(e,`year`)}function eo(e,t){return{...e,next:`Next `+t,prev:`Previous `+t}}function to(e){return t=>({...t,view:e})}function no(e){let t,n;return e&&({start:t,end:n}=e,t&&=Yi(Ui(t)),n&&=Yi(Ui(n))),{start:t,end:n}}function ro(e,t){return t.start&&e<t.start||t.end&&e>t.end}function io(e){let t=[];return ao(e,0,!1,t),t}function ao(e,t,n,r){let i=[];for(let a of e){let e=oo(a);i.push(e),r.push(e);let o={level:t,children:[],hidden:n};da(e,o),a.children&&(o.children=ao(a.children,t+1,n||!e.expanded,r))}return i}function oo(e){return{id:String(e.id),title:e.title||``,eventBackgroundColor:so(e),eventTextColor:co(e),expanded:e.expanded??!0,extendedProps:e.extendedProps??{}}}function so(e){return e?.eventBackgroundColor}function co(e){return e?.eventTextColor}function lo(e,t){return Mi(e.resourceIds)?void 0:t.find(t=>e.resourceIds.includes(t.id))}function uo(e,t,n,r,i){let a=[];e=Q(e);let o=Q(e);for(Gi(e,r.min),Gi(o,r.max);e<o;)a.push([Zi(e),i.format(e)]),Gi(e,t,n);let s=Ei((e-o)/1e3/$(t));return s&&s!==n&&(a.at(-1)[2]=n-s),a}function fo(e,t,n,r,i){let a=Wi(e),o=Wi(t);if(n){let e=Wi(Oi($(a),ki(0,$(o)-Hi))),t=Wi(ki($(o),$(e)+Hi)),s=Z(n?.eventFilter)?n.eventFilter:e=>!Ia(e.display);loop:for(let n of r){let r=Gi(Q(n),a),c=Gi(Q(n),o),l=Gi(Q(n),e),u=Gi(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=ki((d.start-n)/1e3,$(e));t<$(a)&&(a.seconds=t)}if(d.end>c){let e=Oi((d.end-n)/1e3,$(t));e>$(o)&&(o.seconds=e)}if($(a)===$(e)&&$(o)===$(t))break loop}}}return{min:a,max:o}}var po=class extends Map{#e=new Map;#t=N(0);#n=N(0);#r=nr||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return nr===this.#r?N(e):qt(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),Zt(o);else if(i!==t){Zt(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&Zt(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),Zt(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);Zt(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 mo(e){let t=0,n=N($t(t));return go(e,()=>V(n),()=>!0,()=>P(n,++t,!0))}function ho(e){let t=0,n=$t({});return go(e,e=>n[e],(e,t)=>e!==t,e=>n[e]=++t)}function go(e,t,n,r){return new Proxy(e,{get(e,n,r){return Ti(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 _o(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,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:`numeric`,minute:`2-digit`},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:`title`,center:``,end:`today prev,next`},height:void 0,hiddenDays:[],highlightedDates:[],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`,event:`ec-event`,eventBody:`ec-event-body`,eventTime:`ec-event-time`,eventTitle:`ec-event-title`,events:`ec-events`,grid:`ec-grid`,header:`ec-header`,hidden:`ec-hidden`,highlight:`ec-highlight`,icon:`ec-icon`,main:`ec-main`,noBeb:`ec-no-beb`,noIeb:`ec-no-ieb`,today:`ec-today`,title:`ec-title`,toolbar:`ec-toolbar`,view:``,weekdays:[`ec-sun`,`ec-mon`,`ec-tue`,`ec-wed`,`ec-thu`,`ec-fri`,`ec-sat`],weekNumber:`ec-week-number`},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 vo(e){let t={date:e=>Yi(Ui(e)),dateIncrement:Vi(Wi),duration:Wi,events:wa,eventSources:Ea,hiddenDays:e=>[...new Set(e)],highlightedDates:e=>e.map(e=>Yi(Ui(e))),resources:e=>Ni(e)?io(e):e,validRange:no};for(let n of e)n.createParsers?.(t);return t}var yo=[`buttonText`,`customButtons`,`icons`,`theme`];function bo(e,t){let n=_o(e),r=vo(e);n=xo(n,r),t=xo(t,r);let i=So(n,`views`)??{},a=So(t,`views`)??{},o=ho({});X(o,n),t.view&&(o.view=t.view);let s={},c={},l={},u=new Set([...Ci(i),...Ci(a)]);for(let e of u){let r=a[e]??{},u=Co(n,i[e]??i[r.type]??{}),d=Co(u,t,r),f=So(d,`component`);delete d.view;for(let e of Ci(d))Ti(o,e)?(s[e]||(s[e]=[]),s[e].push(yo.includes(e)?t=>d[e]=Z(t)?t(u[e]):t:t=>d[e]=t)):delete d[e];c[e]=d,l[e]=f}return X(o,c[o.view]),[o,function(e,t,n=!0){Ti(o,e)&&(n||(e in r?t=r[e](t):Pi(t)?t={...t}:Ni(t)&&(t=[...t])),s[e]?.forEach(e=>e(t)),o[e]=t)},function(e){return X(o,c[e]),l[e]}]}function xo(e,t){let n={...e};for(let e of Ci(t))e in n&&(n[e]=t[e](n[e]));if(e.views){n.views={};for(let r of Ci(e.views))n.views[r]=xo(e.views[r],t)}return n}function So(e,t){let n=e[t];return delete e[t],n}function Co(...e){let t={};for(let n of e){let e={};for(let r of yo)Z(n[r])&&(e[r]=n[r](t[r]));t={...t,...n,...e}}return t}function wo(e,t){let n=[];for(let r of Ci(e))e[r]!==t[r]&&n.push([r,e[r]]);return n}function To(e){return()=>{let{options:{view:t}}=e;H(()=>{let n=e.setViewOptions(t);e.extensions={},e.features=[],e.viewComponent=n(e)})}}function Eo(e,t){return()=>{let{activeRange:n,fetchedRange:{events:r},viewDates:i,options:{events:a,eventSources:o,lazyFetching:s}}=e;H(()=>{Oo(o.map(e=>Z(e.events)?e.events:e),a,wa,t=>e.events=mo(t),n,r,i,!0,s,t)})}}function Do(e,t){return()=>{let{activeRange:n,fetchedRange:{resources:r},viewDates:i,options:{lazyFetching:a,refetchResourcesOnNavigate:o,resources:s}}=e;H(()=>{Oo(Ni(s)?[]:[s],s,io,t=>e.resources=mo(t),n,r,i,o,a,t)})}}function Oo(e,t,n,r,i,a,o,s,c,l){if(!Mi(o)){if(Mi(e)){r(t);return}if((s||!a.start)&&(!c||!a.start||a.start>i.start||a.end<i.end)){let t=[],o=e=>l.stop(),c=e=>{t=t.concat(n(e)),r(t),l.stop()},u=Zi(i.start),d=Zi(i.end);for(let t of e)if(l.start(),Z(t)){let e=t(s?{start:Xi(i.start),end:Xi(i.end),startStr:u,endStr:d}:{},c,o);e!==void 0&&Promise.resolve(e).then(c,o)}else{let e=Z(t.extraParams)?t.extraParams():X({},t.extraParams);s&&(e.start=u,e.end=d),e=new URLSearchParams(e);let n=t.url,r={},i;[`GET`,`HEAD`].includes(t.method)?n+=(n.includes(`?`)?`&`:`?`)+e:(r[`content-type`]=`application/x-www-form-urlencoded;charset=UTF-8`,i=String(e)),fetch(n,{method:t.method,headers:r,body:i,signal:hi(),credentials:`same-origin`}).then(e=>e.json()).then(c).catch(o)}X(a,i)}}}function ko(e){let t=0;function n(t){let{options:{loading:n}}=e;Z(n)&&n(t)}return{start:()=>++t===1&&n(!0),stop:()=>--t===0&&n(!1)}}function Ao(e){return()=>{let t=setInterval(()=>{let t=Ui(),n=Yi(Q(t));e.now=t,Qi(e.today,n)||(e.today=n)},1e3);return()=>clearInterval(t)}}function jo(e){return()=>{let{activeRange:t,options:{datesSet:n}}=e;H(()=>{Z(n)&&n({start:Xi(t.start),end:Xi(t.end),startStr:Zi(t.start),endStr:Zi(t.end),view:Sa(e.view)})})}}function Mo(e){let t;return()=>{let{filteredEvents:n,options:{eventAllUpdated:r}}=e;H(()=>{Z(r)&&(t||=setTimeout(()=>{t=null,r({view:Sa(e.view)})}))})}}function No(e){return()=>{let{options:{view:t,viewDidMount:n}}=e;H(()=>{Z(n)&&dr().then(()=>n({view:Sa(e.view)}))})}}function Po(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&&ea(i,r),a=Gi(Q(i),n)}),{start:i,end:a}}}function Fo(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 Io(e){return()=>{let{events:t,options:{eventFilter:n,eventOrder:r,filterEventsWithResources:i,resources:a,view:o}}=e,s=[...t];return H(()=>{if(Z(n)){let r=t.map(Aa),i=Sa(e.view);s=s.filter((e,t)=>n({event:Aa(e),index:t,events:r,view:i}))}i&&(s=s.filter(e=>a.some(t=>e.resourceIds.includes(t.id)))),Z(r)?s.sort((e,t)=>r(Aa(e),Aa(t))):s.sort((e,t)=>e.start-t.start||t.allDay-e.allDay)}),s}}function Lo(e){return()=>{let{options:t,activeRange:n}=e,{hiddenDays:r}=t,i=[];return H(()=>{let t=Yi(Q(n.start)),a=Yi(Q(n.end));for(;t<a;)r.includes(t.getUTCDay())||i.push(Q(t)),qi(t);if(!i.length&&r.length&&r.length<7){for(;r.includes(t.getUTCDay());)qi(t);dr().then(()=>{e.setOption(`date`,t)})}}),i}}function Ro(e){return()=>{let{currentRange:t,intlTitle:n}=e,r;return H(()=>{r=n.formatRange(t.start,Ji(Q(t.end)))}),r}}function zo(e){return()=>{let{activeRange:t,currentRange:n,viewTitle:r,options:{view:i}}=e,a;return H(()=>{a=xa(i,r,n,t)}),a}}var Bo=class{#e;get auxComponents(){return V(this.#e)}set auxComponents(e){P(this.#e,e,!0)}#t;get currentRange(){return V(this.#t)}set currentRange(e){P(this.#t,e)}#n;get activeRange(){return V(this.#n)}set activeRange(e){P(this.#n,e)}#r;get fetchedRange(){return V(this.#r)}set fetchedRange(e){P(this.#r,e,!0)}#i;get events(){return V(this.#i)}set events(e){P(this.#i,e)}#a;get filteredEvents(){return V(this.#a)}set filteredEvents(e){P(this.#a,e)}#o;get mainEl(){return V(this.#o)}set mainEl(e){P(this.#o,e,!0)}#s;get now(){return V(this.#s)}set now(e){P(this.#s,e,!0)}#c;get resources(){return V(this.#c)}set resources(e){P(this.#c,e)}#l;get today(){return V(this.#l)}set today(e){P(this.#l,e,!0)}#u;get intlEventTime(){return V(this.#u)}set intlEventTime(e){P(this.#u,e)}#d;get intlDayHeader(){return V(this.#d)}set intlDayHeader(e){P(this.#d,e)}#f;get intlDayHeaderAL(){return V(this.#f)}set intlDayHeaderAL(e){P(this.#f,e)}#p;get intlTitle(){return V(this.#p)}set intlTitle(e){P(this.#p,e)}#m;get viewDates(){return V(this.#m)}set viewDates(e){P(this.#m,e)}#h;get viewTitle(){return V(this.#h)}set viewTitle(e){P(this.#h,e)}#g;get view(){return V(this.#g)}set view(e){P(this.#g,e)}#_;get viewComponent(){return V(this.#_)}set viewComponent(e){P(this.#_,e,!0)}#v;get extensions(){return V(this.#v)}set extensions(e){P(this.#v,e,!0)}#y;get features(){return V(this.#y)}set features(e){P(this.#y,e,!0)}#b;get interaction(){return V(this.#b)}set interaction(e){P(this.#b,e,!0)}#x;get iClasses(){return V(this.#x)}set iClasses(e){P(this.#x,e,!0)}#S;get iClass(){return V(this.#S)}set iClass(e){P(this.#S,e,!0)}options;setOption;setViewOptions;constructor(e,t){[this.options,this.setOption,this.setViewOptions]=bo(e,t),this.#e=N($t([])),this.#t=M(Po(this)),this.#n=M(Fo(this)),this.#r=N($t({events:{},resources:{}})),this.#i=N(mo(this.options.events)),this.#a=M(Io(this)),this.#o=N(),this.#s=N($t(Ui())),this.#c=N(mo(Ni(this.options.resources)?this.options.resources:[])),this.#l=N($t(Yi(Q(this.now)))),this.#u=M(Ja(this,`eventTimeFormat`)),this.#d=M(qa(this,`dayHeaderFormat`)),this.#f=M(qa(this,`dayHeaderAriaLabelFormat`)),this.#p=M(Ja(this,`titleFormat`)),this.#m=M(Lo(this)),this.#h=M(Ro(this)),this.#g=M(zo(this)),this.#_=N(),this.#v=N($t({})),this.#y=N($t([])),this.#b=N($t({})),this.iEvents=new po,this.#x=N($t(zi)),this.#S=N();for(let t of e)t.initState?.(this);this.#C()}#C(){let e=ko(this);Sn(To(this)),Sn(Ao(this)),bn(Eo(this,e)),bn(Do(this,e)),bn(jo(this)),bn(Mo(this)),bn(No(this))}},Vo=U(`<h2></h2>`),Ho=U(`<button><i></i></button>`),Uo=U(`<button><i></i></button>`),Wo=U(`<button> </button>`),Go=U(`<button></button>`),Ko=U(`<button> </button>`);function qo(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=N(!1),_=N(!1),v=N(!1),y=!1;Sn(()=>{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(ee),!0)),dr().then(()=>y=!1))})});function b(e){let t=V(l);e();let r=V(o).every(e=>ro(e,V(m)));return n.setOption(`date`,t),r}function x(){n.setOption(`date`,ia(Q(V(l)),V(u)??V(d),V(f)))}function S(){n.setOption(`date`,ra(Q(V(l)),V(u)??V(d),V(f)))}function ee(){n.setOption(`date`,Q(V(i)))}var C=W();J(I(C),17,()=>t.buttons,q,(e,t)=>{var r=W(),i=I(r),o=e=>{var t=Vo();Kr(t,()=>yi(V(a))),R(()=>Y(t,1,V(p).title)),G(e,t)},l=e=>{var n=Ho(),r=F(n);O(n),R(()=>{Y(n,1,`${V(p).button??``} ec-${V(t)??``}`),oi(n,`aria-label`,V(s).prev),oi(n,`title`,V(s).prev),n.disabled=V(g),Y(r,1,`${V(p).icon??``} ec-${V(t)??``}`)}),xr(`click`,n,x),G(e,n)},u=e=>{var n=Uo(),r=F(n);O(n),R(()=>{Y(n,1,`${V(p).button??``} ec-${V(t)??``}`),oi(n,`aria-label`,V(s).next),oi(n,`title`,V(s).next),n.disabled=V(_),Y(r,1,`${V(p).icon??``} ec-${V(t)??``}`)}),xr(`click`,n,S),G(e,n)},d=e=>{var n=Wo(),r=F(n,!0);O(n),R(()=>{Y(n,1,`${V(p).button??``} ec-${V(t)??``}`),n.disabled=V(v),kr(r,V(s)[V(t)])}),xr(`click`,n,ee),G(e,n)},f=e=>{var n=Go();Kr(n,()=>yi(V(c)[V(t)].text)),R(()=>Y(n,1,Yr([V(p).button,`ec-${V(t)}`,V(c)[V(t)].active&&V(p).active]))),xr(`click`,n,function(...e){V(c)[V(t)].click?.apply(this,e)}),G(e,n)},m=e=>{var r=Ko(),i=F(r,!0);O(r),R(()=>{Y(r,1,Yr([V(p).button,`ec-${V(t)}`,V(h)===V(t)&&V(p).active])),kr(i,V(s)[V(t)])}),xr(`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,C),j()}Sr([`click`]);var Jo=U(`<div><!></div>`),Yo=U(`<div></div>`),Xo=U(`<nav></nav>`);function Zo(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).options.headerToolbar),i=M(()=>V(n).options.theme),a=M(()=>{let e={};for(let t of[`start`,`center`,`end`])e[t]=V(r)[t]?.split(` `).map(e=>e.split(`,`))??[];return e});var o=Xo();J(o,21,()=>Ci(V(a)),q,(e,t)=>{var n=Yo();J(n,21,()=>V(a)[V(t)],q,(e,t)=>{var n=W(),r=I(n),a=e=>{var n=Jo();qo(F(n),{get buttons(){return V(t)}}),O(n),R(()=>Y(n,1,V(i).buttonGroup)),G(e,n)},o=e=>{qo(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),j()}var Qo=U(`<div><!> <!> <!></div>`);function $o(e,t){A(t,!0);let n=mi(t,`plugins`,19,()=>[]),r=mi(t,`options`,19,()=>({})),i=new Bo(n(),r());Ue(`state`,i);let a=M(()=>i.auxComponents),o=M(()=>i.features),s=M(()=>i.events),c=M(()=>i.interaction),l=M(()=>i.iClass),u=M(()=>i.view),d=M(()=>i.viewComponent),f=M(()=>i.options.date),p=M(()=>i.options.dateIncrement),m=M(()=>i.options.duration),h=M(()=>i.options.height),g=M(()=>i.options.hiddenDays),_=M(()=>i.options.customScrollbars),v=M(()=>i.options.theme),y={...r()};Sn(()=>{for(let[e,t]of wo(r(),y))H(()=>{b(e,t)});X(y,r())});function b(e,t){return i.setOption(e,t,!1),this}function x(e){let t=i.options[e];return Fi(t)?Xi(t):t}function S(){return i.fetchedRange.resources={},this}function ee(){return i.fetchedRange.events={},this}function C(){return V(s).map(Aa)}function te(e){e=String(e);for(let t of V(s))if(t.id===e)return Aa(t);return null}function ne(e){return e=wa([e])[0],V(s).push(e),Aa(e)}function re(e){let t=String(e.id),n=V(s).findIndex(e=>e.id===t);return n>=0?(e=wa([e])[0],V(s)[n]=e,Aa(e)):null}function ie(e){e=String(e);let t=V(s).findIndex(t=>t.id===e);return t>=0&&V(s).splice(t,1),this}function ae(){return Sa(V(u))}function oe(){return V(c).action?.unselect(),this}function se(e,t){let n=va(e,t);if(n){let r=pa(n)(e,t);return r.date=Xi(r.date),r}return null}function ce(){return i.setOption(`date`,ra(Q(V(f)),V(p)??V(m),V(g))),this}function le(){return i.setOption(`date`,ia(Q(V(f)),V(p)??V(m),V(g))),this}var ue={setOption:b,getOption:x,refetchResources:S,refetchEvents:ee,getEvents:C,getEventById:te,addEvent:ne,updateEvent:re,removeEventById:ie,getView:ae,unselect:oe,dateFromPoint:se,next:ce,prev:le},w=Qo();let T;var de=F(w);Zo(de,{});var fe=L(de,2);return Gr(fe,()=>V(d),(e,t)=>{t(e,{})}),J(L(fe,2),17,()=>V(a),q,(e,t)=>{var n=W();Gr(I(n),()=>V(t),(e,t)=>{t(e,{})}),G(e,n)}),O(w),R(e=>{Y(w,1,Yr([V(v).calendar,V(v).view,V(l)&&V(v)[V(l)],V(_)&&V(v).customScrollbars])),oi(w,`role`,e),T=ni(w,``,T,{height:V(h)})},[()=>V(o).includes(`list`)?`list`:`table`]),G(e,w),j(ue)}function es(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 ts(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:qi(Q(c)),disabled:ro(c,r),highlight:n.some(e=>Qi(e,c))}),t===a&&(o.push(e),e=[],t=0,++s),++t}),o}}function ns(e,t){return()=>{let{filteredEvents:n}=e,{grid:r}=t,i=[],a=[];return H(()=>{for(let e of n)for(let t of r)Ia(e.display)?e.allDay&&(a=a.concat(Va(e,t))):i=i.concat(Va(e,t));Ha(i)}),{chunks:i,bgChunks:a}}}function rs(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(Va(e,t,!1))});return i}}var is=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=M(es(e)),this.#t=M(ts(e,this)),this.#n=N();let t=M(ns(e,this)),n=M(()=>V(t).chunks),r=M(()=>V(t).bgChunks);this.#r=M(()=>V(n)),this.#i=M(()=>V(r)),this.#a=M(rs(e,this)),this.hiddenChunks=new po,this.#o=M(qa(e,`dayCellFormat`)),this.#s=M(qa(e,`dayPopoverFormat`)),this.#c=N(null)}},as=U(`<div><!></div>`);function os(e,t){A(t,!0);let n=mi(t,`el`,15),r=mi(t,`allDay`,3,!1),i=mi(t,`resource`,3,void 0),a=mi(t,`dateFromPoint`,3,()=>t.date),o=mi(t,`classes`,3,zi),s=mi(t,`disabled`,3,!1),c=mi(t,`highlight`,3,!1),l=mi(t,`role`,3,`cell`),u=mi(t,`noIeb`,3,!1),d=mi(t,`noBeb`,3,!1),p=M(()=>k(`state`)),m=M(()=>V(p).today),h=M(()=>V(p).interaction.action),g=M(()=>V(p).options.dayCellContent),_=M(()=>V(p).options.theme),v=M(()=>k(`view-state`)),y=M(()=>V(v).snap),b=M(()=>Qi(t.date,V(m))),x=M(()=>Z(V(g))?V(g)({allDay:r(),date:Xi(t.date),isToday:V(b),resource:i()}):V(g)),S=M(()=>o()([V(_).day,V(_).weekdays?.[t.date.getUTCDay()],V(b)&&V(_).today,c()&&V(_).highlight,s()&&V(_).disabled,u()&&V(_).noIeb,d()&&V(_).noBeb]));gi(()=>{da(n(),(e,t)=>({allDay:r(),date:a()(e,t),resource:i(),dayEl:n(),disabled:s()}))});let ee=M(()=>!s()&&V(h)?e=>V(h).select(e,V(y)):void 0);var C=as();Wr(F(C),()=>t.content??f,()=>V(x)),O(C),pi(C,e=>n(e),()=>n()),Kr(C,()=>t.content?null:yi(V(x))),R(()=>{Y(C,1,Yr(V(S))),oi(C,`role`,l())}),xr(`pointerdown`,C,function(...e){V(ee)?.apply(this,e)}),G(e,C),j()}Sr([`pointerdown`]);var ss=U(`<div></div>`),cs=U(`<article><!></article>`);function ls(e,t){A(t,!0);let n=mi(t,`el`,15),r=mi(t,`classes`,3,zi),i=mi(t,`styles`,3,zi),a=M(()=>k(`state`)),o=M(()=>V(a).intlEventTime),s=M(()=>V(a).resources),c=M(()=>V(a).view),l=M(()=>V(a).options.displayEventEnd),u=M(()=>V(a).options.eventBackgroundColor),d=M(()=>V(a).options.eventColor),f=M(()=>V(a).options.eventContent),p=M(()=>V(a).options.eventClick),m=M(()=>V(a).options.eventDidMount),g=M(()=>V(a).options.eventClassNames),_=M(()=>V(a).options.eventMouseEnter),v=M(()=>V(a).options.eventMouseLeave),y=M(()=>V(a).options.eventTextColor),b=M(()=>V(a).options.theme),x=M(()=>t.chunk.event),S=M(()=>t.chunk.event.display),ee=M(()=>V(x).backgroundColor??so(t.chunk.resource??lo(V(x),V(s)))??V(u)??V(d)),C=M(()=>V(x).textColor??co(t.chunk.resource??lo(V(x),V(s)))??V(y)),te=M(()=>wi(i()({"background-color":V(ee),color:V(C)})).map(e=>`${e[0]}:${e[1]}`).concat(V(x).styles).join(`;`)),ne=M(()=>r()([Ia(V(S))?V(b).bgEvent:V(b).event,...ka(V(g),V(x),V(c))])),re=M(()=>Da(t.chunk,V(l),V(f),V(b),V(o),V(c))),ie=M(()=>h(V(re),2)),ae=M(()=>V(ie)[0]),oe=M(()=>V(ie)[1]);gi(()=>{Z(V(m))&&V(m)({event:Aa(V(x)),timeText:V(ae),el:n(),view:Sa(V(c))})});function se(e,t){return Z(e)&&!Fa(t)?t=>e({event:Aa(V(x)),el:n(),jsEvent:t,view:Sa(V(c))}):void 0}let ce=M(()=>!Ia(V(S))&&se(V(p),V(S))||void 0),le=M(()=>V(ce)&&vi(V(ce))),ue=M(()=>se(V(_),V(S))),w=M(()=>se(V(v),V(S)));var T=cs();{let e=e=>{var t=ss();Kr(t,()=>yi(V(oe))),R(()=>Y(t,1,Yr(V(b).eventBody))),G(e,t)};var de=F(T),fe=n=>{var r=W();Wr(I(r),()=>t.body,()=>e,()=>V(ee),()=>V(C)),G(n,r)},pe=t=>{e(t)};K(de,e=>{t.body?e(fe):e(pe,-1)}),O(T),pi(T,e=>n(e),()=>n())}R(()=>{Y(T,1,Yr(V(ne))),ni(T,V(te)),oi(T,`role`,V(ce)?`button`:void 0),oi(T,`tabindex`,V(ce)?0:void 0)}),xr(`click`,T,function(...e){V(ce)?.apply(this,e)}),xr(`keydown`,T,function(...e){V(le)?.apply(this,e)}),br(`mouseenter`,T,function(...e){V(ue)?.apply(this,e)}),br(`mouseleave`,T,function(...e){V(w)?.apply(this,e)}),xr(`pointerdown`,T,function(...e){t.onpointerdown?.apply(this,e)}),G(e,T),j()}Sr([`click`,`keydown`,`pointerdown`]);var us=U(`<div><!></div>`);function ds(e,t){A(t,!0);let n=mi(t,`weekday`,3,!0),r=mi(t,`colSpan`,3,1),i=mi(t,`ariaHidden`,3,!1),a=mi(t,`disabled`,3,!1),o=mi(t,`highlight`,3,!1),s=mi(t,`cssSpan`,3,!1),c=M(()=>k(`state`)),l=M(()=>V(c).today),u=M(()=>V(c).options.theme);var d=us();let f;Wr(F(d),()=>t.children),O(d),R(e=>{Y(d,1,e),oi(d,`role`,i()?null:`columnheader`),oi(d,`aria-colspan`,i()||r()<=1?null:r()),oi(d,`aria-colindex`,i()?null:t.colIndex),oi(d,`aria-hidden`,i()?`true`:null),f=ni(d,``,f,{"--ec-col-group-span":s()?r():void 0})},[()=>Yr([t.className??V(u).colHead,n()&&V(u).weekdays?.[t.date.getUTCDay()],n()&&Qi(t.date,V(l))&&V(u).today,o()&&V(u).highlight,a()&&V(u).disabled])]),G(e,d),j()}var fs=U(`<time></time>`);function ps(e,t){A(t,!0);let n=mi(t,`alPrefix`,3,``),r=M(()=>k(`state`)),i=M(()=>V(r).intlDayHeader),a=M(()=>V(r).intlDayHeaderAL);var o=fs();Kr(o,()=>yi(V(i).format(t.date))),R((e,t)=>{oi(o,`datetime`,e),oi(o,`aria-label`,`${n()??``}${t??``}`)},[()=>Zi(t.date,10),()=>V(a).format(t.date)]),G(e,o),j()}function ms(e,t){A(t,!0);let n=mi(t,`el`,15),r=M(()=>k(`state`)),i=M(()=>V(r).iClasses),a=M(()=>V(r).interaction.action),o=M(()=>V(r).interaction.resizer),s=M(()=>k(`view-state`)),c=M(()=>V(s).snap),l=M(()=>t.chunk.event),u=M(()=>t.chunk.event.display),d=M(()=>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=M(()=>!Ia(V(u))&&!Fa(V(u))?p(V(l)):void 0);ls(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();Gr(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();Wr(I(r),n),G(e,r)},$$slots:{default:!0}})}),G(e,r)},s=e=>{var t=W();Wr(I(t),n),G(e,t)};K(i,e=>{V(o)?e(a):e(s,-1)}),G(e,r)},$$slots:{body:!0}}),j()}var hs=U(`<span></span>`),gs=U(`<a role="button" tabindex="0" aria-haspopup="dialog"></a>`),_s=U(`<div><time></time> <!></div> <div><!></div>`,1);function vs(e,t){A(t,!0);let n=k(`state`),r=k(`view-state`),i=M(()=>n.options.date),a=M(()=>n.options.firstDay),o=M(()=>n.options.moreLinkContent),s=M(()=>n.options.theme),c=M(()=>n.options.weekNumbers),l=M(()=>n.options.weekNumberContent),u=M(()=>r.hiddenChunks),d=M(()=>r.intlDayCell),p=M(()=>t.day.dayStart),m=M(()=>t.day.disabled),h=M(()=>t.day.highlight),g=M(()=>V(p).getUTCMonth()!==V(i).getUTCMonth()),_=M(()=>e=>[...e,V(g)&&V(s).otherMonth]),v=M(()=>V(c)&&V(p).getUTCDay()===(V(a)?1:0)),y=M(()=>V(v)?sa(oa(V(p),V(a)),V(l),V(p)):void 0),b=M(()=>V(u).get(V(p).getTime())),x=M(()=>{let e=``;if(V(b)){let t=`+`+V(b).length+` more`;e=V(o)?Z(V(o))?V(o)({num:V(b).length,text:t}):V(o):t}return e});function S(){r.popupDay=t.day}os(e,{get date(){return V(p)},allDay:!0,get classes(){return V(_)},get disabled(){return V(m)},get highlight(){return V(h)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},content:(e,t=f)=>{var n=_s(),r=I(n),i=F(r);Kr(i,()=>yi(t()??V(d).format(V(p))));var a=L(i,2),o=e=>{var t=hs();Kr(t,()=>yi(V(y))),R(()=>Y(t,1,V(s).weekNumber)),G(e,t)};K(a,e=>{V(v)&&e(o)}),O(r);var c=L(r,2),l=F(c),u=e=>{var t=gs(),n=M(()=>ba(S)),r=M(()=>vi(S)),i=M(ba);Kr(t,()=>yi(V(x))),xr(`click`,t,function(...e){V(n)?.apply(this,e)}),xr(`keydown`,t,function(...e){V(r)?.apply(this,e)}),xr(`pointerdown`,t,function(...e){V(i)?.apply(this,e)}),G(e,t)};K(l,e=>{V(b)&&e(u)}),O(c),R(e=>{Y(r,1,V(s).dayHead),oi(i,`datetime`,e),Y(c,1,V(s).dayFoot)},[()=>Zi(V(p),10)]),G(e,n)},$$slots:{content:!0}}),j()}Sr([`click`,`keydown`,`pointerdown`]);function ys(e,t){A(t,!0);let n=mi(t,`inPopup`,3,!1),r=M(()=>k(`state`)),i=M(()=>V(r).options.dayMaxEvents),a=M(()=>k(`view-state`)),o=M(()=>V(a).colsCount),s=M(()=>V(a).gridEl),c=M(()=>V(a).hiddenChunks),l=M(()=>V(a).popupDay),u=N(void 0),d=N(1),f=N(!1),p=M(()=>t.chunk.event),m=M(()=>t.chunk.event.display),h=M(()=>V(s).children.item((t.chunk.gridRow-1)*V(o)+t.chunk.gridColumn-1));bn(()=>{n()||P(d,_a(V(h).firstElementChild)||1,!0)});let g=M(()=>e=>{if(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,!Ia(V(m))){let r=n()?1:V(d);if(V(p)._margin){let[e,n]=V(p)._margin;e>r&&t.chunk.gridRow===n&&(r=e)}e[`margin-block-start`]=`${r}px`}return V(f)&&(e.visibility=`hidden`),e});function _(){P(d,Ua(t.chunk,_a(V(u)),_a(V(h).firstElementChild)||1),!0)}function v(){if(V(i)===!0){let e=_a(V(h))-y(V(h));if(P(f,t.chunk.bottom>e),V(f))for(let e of t.chunk.dates){let n=e.getTime();if(V(c).has(n)){let e=V(c).get(n);e.includes(t.chunk)||V(c).set(n,[...e,t.chunk])}else V(c).set(n,[t.chunk])}}else P(f,!1),V(c).size&&V(c).clear()}function y(e){let n=0;for(let r=0;r<t.chunk.dates.length&&(n=ki(n,_a(e.lastElementChild)),e=e.nextElementSibling,e);++r);return n}var b={reposition:_,hide:v};{let r=M(()=>n()&&V(l).dayStart),i=M(()=>[V(d),t.chunk.gridRow]);ms(e,{get chunk(){return t.chunk},get styles(){return V(g)},axis:`x`,get forceDate(){return V(r)},get forceMargin(){return V(i)},get el(){return V(u)},set el(e){P(u,e,!0)}})}return j(b)}var bs=U(`<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">×</a></header> <div></div></dialog>`);function xs(e,t){A(t,!0);let n=k(`view-state`),r=M(()=>k(`state`)),i=M(()=>V(r).interaction),a=M(()=>V(r).options.buttonText),o=M(()=>V(r).options.theme),s=M(()=>n.colsCount),c=M(()=>n.chunks),l=M(()=>n.gridEl),u=M(()=>n.intlDayPopover),d=M(()=>n.popupDay),f=N(void 0),p=N(``),m=M(()=>V(d).gridColumn),h=M(()=>V(d).gridRow),g=M(()=>V(d).dayStart),_=M(()=>V(d).dayEnd),v=M(()=>{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(X({},t,Ba(t.event,V(g),V(_))));return e.sort((e,t)=>e.top-t.top),e});gi(()=>{V(f).show()}),bn(()=>{V(v).length?H(y):b()});function y(){let e=V(l).children.item((V(h)-1)*V(s)+V(m)-1),t=ha(V(f)),n=ha(e),r=ha(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=bs();let ee;var C=F(S),te=F(C);Kr(te,()=>yi(V(u).format(V(g))));var ne=L(te,2);pn(ne,!0);var re=M(()=>ba(b)),ie=M(()=>vi(b));O(C);var ae=L(C,2);J(ae,21,()=>V(v),q,(e,t)=>{ys(e,{get chunk(){return V(t)},inPopup:!0})}),O(ae),O(S),pi(S,e=>P(f,e),()=>V(f)),Kr(S,()=>bi(`pointerdown`)),R(e=>{Y(S,1,V(o).popup),ee=ni(S,V(p),ee,{"grid-area":`${V(h)+1} / ${V(m)}`}),Y(C,1,V(o).dayHead),oi(te,`datetime`,e),oi(ne,`aria-label`,V(a).close),Y(ae,1,V(o).events)},[()=>Zi(V(g),10)]),br(`pointerdownoutside`,S,x),br(`close`,S,b),xr(`click`,ne,function(...e){V(re)?.apply(this,e)}),xr(`keydown`,ne,function(...e){V(ie)?.apply(this,e)}),G(e,S),j()}Sr([`click`,`keydown`]);var Ss=U(`<div role="columnheader"><span></span></div>`),Cs=U(`<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>`);function ws(e,t){A(t,!0);let n=k(`state`),r=new is(n);Ue(`view-state`,r);let i=M(()=>n.intlDayHeader),a=M(()=>n.intlDayHeaderAL),o=M(()=>n.options.dayMaxEvents),s=M(()=>n.options.theme),c=M(()=>r.grid),l=M(()=>r.chunks),u=M(()=>r.bgChunks),d=M(()=>r.iChunks),f=M(()=>r.hiddenChunks),p=M(()=>r.popupDay),m=[];function h(){Na(m,V(l)),V(f).clear(),dr().then(g)}function g(){V(f).size,m.forEach(e=>e?.hide())}bn(h),bn(g);var _=W(),v=I(_),y=e=>{var t=Cs();let f;var g=F(t),_=F(g);J(_,21,()=>V(c)[0],q,(e,t,n)=>{let r=()=>V(t).dayStart;var o=Ss();oi(o,`aria-colindex`,1+n);var c=F(o);Kr(c,()=>yi(V(i).format(r()))),O(o),R((e,t)=>{Y(o,1,e),oi(c,`aria-label`,t)},[()=>Yr([V(s).colHead,V(s).weekdays?.[r().getUTCDay()]]),()=>V(a).format(r())]),G(e,o)}),O(_),O(g);var v=L(g,2),y=F(v);J(y,21,()=>V(c),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{{let a=M(()=>i+1===ji(V(t))),o=M(()=>n+1===ji(V(c)));vs(e,{get day(){return V(r)},get noIeb(){return V(a)},get noBeb(){return V(o)}})}}),G(e,r)}),O(y),pi(y,e=>r.gridEl=e,()=>r?.gridEl);var b=L(y,2),x=F(b);J(x,19,()=>V(l),e=>e.id,(e,t,n)=>{pi(ys(e,{get chunk(){return V(t)}}),(e,t)=>m[t]=e,e=>m?.[e],()=>[V(n)])});var S=L(x,2);J(S,17,()=>V(u),e=>e.id,(e,t)=>{ys(e,{get chunk(){return V(t)}})}),J(L(S,2),17,()=>V(d),q,(e,t)=>{ys(e,{get chunk(){return V(t)}})}),O(b),O(v);var ee=L(v,2),C=e=>{xs(e,{})};K(ee,e=>{V(p)&&e(C)}),O(t),pi(t,e=>n.mainEl=e,()=>n?.mainEl),Kr(t,()=>xi(h)),R(e=>{Y(t,1,Yr([V(s).main,V(o)===!0&&V(s).uniform])),f=ni(t,``,f,e),Y(g,1,V(s).header),Y(_,1,V(s).grid),Y(v,1,V(s).body),Y(y,1,V(s).grid),Y(b,1,V(s).events)},[()=>({"--ec-grid-cols":ji(V(c)[0]),"--ec-grid-rows":ji(V(c))})]),G(e,t)},b=M(()=>!Mi(V(c))&&!Mi(V(c)[0]));K(v,e=>{V(b)&&e(y)}),G(e,_),j()}var Ts={createOptions(e){X(e,{dayMaxEvents:!1,dayCellFormat:{day:`numeric`},dayPopoverFormat:{month:`long`,day:`numeric`,year:`numeric`},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:`dayGridMonth`}),X(e.buttonText,{dayGridDay:`day`,dayGridMonth:`month`,dayGridWeek:`week`,close:`Close`}),X(e.theme,{uniform:`ec-uniform`,dayFoot:`ec-day-foot`,otherMonth:`ec-other-month`,popup:`ec-popup`}),X(e.views,{dayGridDay:{buttonText:Xa,component:()=>ws,dayHeaderFormat:{weekday:`long`},displayEventEnd:!1,duration:{days:1},theme:to(`ec-day-grid ec-day-view`)},dayGridWeek:{buttonText:Za,component:()=>ws,displayEventEnd:!1,theme:to(`ec-day-grid ec-week-view`)},dayGridMonth:{buttonText:Qa,component:Es,dayHeaderFormat:{weekday:`short`},dayHeaderAriaLabelFormat:{weekday:`long`},displayEventEnd:!1,duration:{months:1},theme:to(`ec-day-grid ec-month-view`),titleFormat:{year:`numeric`,month:`long`}}})}};function Es(e){return e.features=[`dayNumber`],e.extensions.activeRange=(t,n)=>{let{options:{firstDay:r}}=e;return{start:ea(t,r),end:$i(n,r)}},ws}function Ds(e,t,n){return e.startEditable??t??e.editable??n}function Os(e,t,n){return e.durationEditable??t??e.editable??n}var ks=!1;function As(e){ks||(ks=!0,window.requestAnimationFrame(()=>{e(),ks=!1}))}function js(e,t,n){return ki(t,Oi(n,e))}function Ms(e){return()=>{let{options:{editable:t,eventStartEditable:n,theme:r}}=e;e.iClasses=(e,i)=>{let{display:a}=i;return[...e,Fa(a)?[r[a]]:!Ia(a)&&Ds(i,n,t)?[r.draggable]:[]]}}}function Ns(e){return()=>{let{interaction:t,mainEl:n}=e;if(n)return ya(n,`scroll`,()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}var Ps=class{constructor(e){this.#e(e)}#e(e){Sn(Ms(e)),bn(Ns(e))}};function Fs(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),ee=M(()=>n.options.selectable),C=M(()=>n.options.select),te=M(()=>n.options.selectBackgroundColor),ne=M(()=>n.options.selectConstraint),re=M(()=>n.options.selectLongPressDelay),ie=M(()=>n.options.selectMinDistance),ae=M(()=>n.options.unselect),oe=M(()=>n.options.unselectAuto),se=M(()=>n.options.unselectCancel),ce=M(()=>n.options.validRange),le,ue,w,T,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,E,Ae,D,je;function Me(e){return Ds(e,V(f),V(d))}function O(e,t,n,r,i){le||(le=at(t)?1:6,it()&&(w=e,Ie(t,i),n&&(fe=n),r&&(Ae=r),we=`dragging`,Le(t)))}function Ne(e,t,n,r,i,a,o,s){le||(le=at(t)?n?3:2:6,it()&&(w=e,Ie(t,s),i&&(fe=i),a&&(Ae=a),we=r===`x`?`resizingX`:`resizingY`,tt()?(Te=Q(w.end),Ce?(na(Te,w.start),Te>=w.end&&Ji(Te)):(Ki(Te,D),Te<w.start&&(Te=w.start),fe=w.start)):(Te=Q(w.start),Ce?(na(Te,w.end),Te<=w.start&&!o&&qi(Te)):(Gi(Te,D),Te>w.end&&(Te=w.end),fe=w.end,o||(fe=Ki(Q(fe),D))),o&&!Ce&&(je=D)),Le(t)))}function Pe(e,t){le||(le=at(e)?V(ee)&&!V(a).includes(`list`)?4:5:6,it()&&(Ie(e,t),we=`selecting`,Ee=Ce?Wi({day:1}):D,w={allDay:Ce,start:fe,end:Gi(Q(fe),Ee),resourceIds:me?[me.id]:[]},Le(e)))}function Fe(){le||=6}function Ie(e,t){window.getSelection().removeAllRanges(),ge=ve=e.clientX,_e=ye=e.clientY,D=t?.duration;let n=va(ve,ye);({allDay:Ce,date:fe,resource:me}=pa(n)(ve,ye)),xe=V(s)!==ga(n,3),be=ga(n,1),We(),e.pointerType!==`mouse`&&(ke=setTimeout(()=>{le&&(ue=!0,Le(e))},(rt()?V(re):V(_))??V(x)))}function Le(e){if(ue||e&&e.pointerType===`mouse`&&$e()>=(rt()?V(ie):V(p))){ue=!0,ot(e),n.iClass=we,T||(rt()?Ke():Ge(e,et()?V(v):V(m)));let t=Ue(He());if(t){let n;if({allDay:n,date:pe,resource:he}=t,n===Ce){let t=Je({},T),n=V(S);Se=Wi((pe-fe)/1e3),tt()?(t.start=Gi(Q(w.start),Se),t.start>Te&&(t.start=Te,Se=Wi((Te-w.start)/1e3))):(t.end=Gi(Q(w.end),Se),je&&Gi(t.end,je),et()?t.end<Te&&(t.end=Te,Se=Wi((Te-w.end)/1e3)):rt()?(t.end<w.end?(t.start=Ki(t.end,Ee),t.end=w.end):t.start=w.start,n=V(ne)):(t.start=Gi(Q(w.start),Se),me&&(t.resourceIds=w.resourceIds.filter(e=>e!==me.id),t.resourceIds.push(he.id)),n=V(l)));do{if(n!==void 0&&(t=Je(ja(w),t),n(rt()?Ze(t,e):Qe(t,w,e))===!1)){Xe(w);break}Xe(t)}while(0)}}}V(u)&&As(()=>{E&&(xe||(ye<E.top+24&&(V(s).scrollTop+=ki(-8,(ye-E.top-24)/3)),ye>E.bottom-24&&(V(s).scrollTop+=Oi(8,(ye-E.bottom+24)/3))),ve<E.left+24&&(V(s).scrollLeft+=ki(-8,(ve-E.left-24)/3)),ve>E.right-24&&(V(s).scrollLeft+=Oi(8,(ve-E.right+24)/3)),ye<24&&window.scrollBy(0,ki(-8,(ye-24)/3)),ye>window.innerHeight-24&&window.scrollBy(0,Oi(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(De&&V(oe)&&!(V(se)&&e.target.closest(V(se)))&&ot(e),le&&e.isPrimary){if(ue)if(rt()){if(De=!0,Z(V(C))){let t=Ze(T,e);V(C)(t)}}else{w.display=de;let t=et()?V(y):V(h);Z(t)&&t({event:Aa(w),jsEvent:e,view:Sa(V(o))});let n=ja(w);if(Ye(w,T),qe(),t=et()?V(b):V(g),Z(t)){let r=w,i=Qe(w,n,e);t(X(i,{revert(){Ye(r,n)}}))}}else if((nt()||rt())&&Z(V(c))&&!Oe){ve=e.clientX,ye=e.clientY;let t=va(ve,ye);if(t){let{allDay:n,date:r,resource:i}=pa(t)(ve,ye);V(c)({allDay:n,date:Xi(r),dateStr:Zi(r),dayEl:t,jsEvent:e,view:Sa(V(o)),resource:i})}}Ve()}Oe=!1}function Ve(){ue=!1,le=ge=_e=ve=ye=w=de=fe=pe=me=he=Se=je=Ce=Te=Ee=Ae=be=E=D=void 0,n.iClass=void 0,ke&&=(clearTimeout(ke),void 0)}function He(){return va(js(ve,E.left,E.right),js(ye,E.top,E.bottom))}function Ue(e){if(e){let t=pa(e)(ve,ye);if(t.disabled){if(!V(ce).end||t.date<V(ce).end)return Ue(e.nextElementSibling);if(!V(ce).start||t.date>V(ce).start)return Ue(e.previousElementSibling)}else return(rt()||et())&&t.resource&&!T.resourceIds.includes(t.resource.id)&&!V(a).includes(`timeline`)?Ue(ve>ge?e.previousElementSibling:e.nextElementSibling):t}return null}function We(){let e=ha(V(s)),t=ha(be),n=e.width/V(s).offsetWidth,r=e.height/V(s).offsetHeight,i=Bi();E={left:ki(0,i?e.right-V(s).clientWidth*n:t.left+V(s).scrollLeft*n),right:Oi(document.documentElement.clientWidth,i?t.right+V(s).scrollLeft*n:e.left+V(s).clientWidth*n)-2,top:ki(0,t.top+(xe?0:V(s).scrollTop)*r),bottom:Oi(document.documentElement.clientHeight,xe?t.bottom:e.top+V(s).clientHeight*r)-2}}function Ge(e,t){Z(t)&&t({event:Aa(w),jsEvent:e,view:Sa(V(o))}),de=w.display,w.display=`preview`,T=ja(w),Ae!==void 0&&(T._margin=Ae),je&&Gi(T.end,je),w.display=`ghost`,V(r).length=V(r).length}function Ke(){T={id:`{select}`,allDay:w.allDay,start:w.start,title:``,display:`preview`,extendedProps:{},backgroundColor:V(te),resourceIds:w.resourceIds,classNames:[],styles:[]}}function qe(){T=void 0,V(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),V(r).length=V(r).length}function Xe(e){T=Je(T,e),V(i).set(`action`,T)}function Ze(e,t){let{start:n,end:r}=Aa(e);return{start:n,end:r,startStr:Zi(e.start),endStr:Zi(e.end),allDay:Ce,view:Sa(V(o)),resource:me,jsEvent:t}}function Qe(e,t,n){let r;return r=et()?tt()?{startDelta:Se,endDelta:Wi(0)}:{startDelta:Wi(0),endDelta:Se}:{delta:Se,oldResource:me===he?void 0:me,newResource:me===he?void 0:he},X(r,{event:Aa(e),oldEvent:Aa(t),view:Sa(V(o)),jsEvent:n}),r}function $e(){return Math.sqrt((ve-ge)**2+(ye-_e)**2)}function et(){return le===2||tt()}function tt(){return le===3}function nt(){return le===5}function rt(){return le===4}function it(){return le&&le<5}function at(e){return e.isPrimary&&(e.pointerType!==`mouse`||e.buttons&1)}function ot(e){De&&(De=!1,qe(),Z(V(ae))&&V(ae)({jsEvent:e,view:Sa(V(o))}))}Sn(()=>{V(o),ot()});function st(){Oe=!0}function ct(e){if(it()){let t=e.target,n=[],r=()=>Li(n);n.push(ya(t,`touchmove`,lt(()=>ue))),n.push(ya(t,`touchend`,r)),n.push(ya(t,`touchcancel`,r))}}function lt(e){return t=>{e()&&t.preventDefault()}}gi(()=>ya(window,`touchmove`,Ri,{passive:!1}));var ut={draggable:Me,drag:O,resize:Ne,select:Pe,noAction:Fe,handleScroll:Re,unselect:ot,noClick:st};br(`pointermove`,en,ze),br(`pointerup`,en,Be),br(`pointercancel`,en,Ve),br(`scroll`,en,Re);var dt=M(()=>lt(it));br(`selectstart`,en,function(...e){V(dt)?.apply(this,e)});var ft=M(()=>lt(()=>ke));return br(`contextmenu`,en,function(...e){V(ft)?.apply(this,e)}),br(`touchstart`,en,ct,void 0,!0),j(ut)}function Is(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).iEvents),i=M(()=>V(n).options.slotDuration),a=0,o=0,s;function c(){let e=va(a,o);if(e&&!V(r).has(`action`)){let{allDay:t,date:n,resource:c,disabled:l}=pa(e)(a,o);if(!l){s||d(),s.allDay=t,s.start=n,s.end=Gi(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 br(`pointermove`,en,u),br(`scroll`,en,l),j(m)}var Ls=U(`<div></div>`),Rs=U(`<div></div>`),zs=U(`<!> <!> <!>`,1);function Bs(e,t){A(t,!0);let n=mi(t,`forceDate`,3,void 0),r=mi(t,`forceMargin`,3,void 0),i=M(()=>k(`state`)),a=M(()=>V(i).interaction.action),o=M(()=>V(i).options.editable),s=M(()=>V(i).options.eventDurationEditable),c=M(()=>V(i).options.eventResizableFromStart),l=M(()=>V(i).options.theme),u=M(()=>k(`view-state`)),d=M(()=>V(u).snap),f=M(()=>t.chunk.event),p=M(()=>t.chunk.event.display),m=M(()=>!Ia(V(p))&&!Fa(V(p))&&Os(V(f),V(s),V(o)));function h(e){return i=>V(a).resize(V(f),i,e,t.axis,n(),r(),t.chunk.zeroDuration,V(d))}var g=zs(),_=I(g),v=e=>{var t=Ls(),n=M(()=>h(!0));R(()=>Y(t,1,`${V(l).resizer??``} ${V(l).start??``}`)),xr(`pointerdown`,t,function(...e){V(n)?.apply(this,e)}),G(e,t)};K(_,e=>{V(m)&&V(c)&&e(v)});var y=L(_,2);Wr(y,()=>t.children);var b=L(y,2),x=e=>{var t=Rs(),n=M(()=>h(!1));R(()=>Y(t,1,V(l).resizer)),xr(`pointerdown`,t,function(...e){V(n)?.apply(this,e)}),G(e,t)};K(b,e=>{V(m)&&e(x)}),G(e,g),j()}Sr([`pointerdown`]);var Vs=U(`<!> <!>`,1);function Hs(e,t){A(t,!0);let n=k(`state`);new Ps(n);let r=M(()=>n.interaction),i=M(()=>n.options.pointer);V(r).resizer=Bs;var a=Vs(),o=I(a);pi(Fs(o,{}),e=>V(r).action=e,()=>V(r)?.action);var s=L(o,2),c=e=>{pi(Is(e,{}),e=>V(r).pointer=e,()=>V(r)?.pointer)};K(s,e=>{V(i)&&e(c)}),G(e,a),j()}var Us={createOptions(e){X(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:``}),X(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(Hs)}},Ws=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=M(qa(e,`listDayFormat`)),this.#t=M(qa(e,`listDaySideFormat`))}},Gs=U(`<div></div> <!>`,1);function Ks(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).interaction),i=M(()=>V(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=Gs(),o=I(a);let s;Wr(L(o,2),t),R(()=>{Y(o,1,V(i).eventTag),s=ni(o,``,s,{"background-color":n()})}),G(e,a)},o=M(()=>V(r).action?.noAction);ls(e,{get chunk(){return t.chunk},get styles(){return V(a)},get onpointerdown(){return V(o)},body:n,$$slots:{body:!0}})}j()}var qs=U(`<h4><time></time> <time></time></h4> <!>`,1);function Js(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).filteredEvents),i=M(()=>V(n).options.highlightedDates),a=M(()=>V(n).options.theme),o=M(()=>V(n).options.validRange),s=M(()=>k(`view-state`)),c=M(()=>V(s).intlListDay),l=M(()=>V(s).intlListDaySide),u=M(()=>V(i).some(e=>Qi(e,t.date))),d=M(()=>ro(t.date,V(o))),p=M(()=>Zi(t.date,10)),m=M(()=>{let e=[];if(!V(d)){let n=t.date,i=qi(Q(t.date));for(let t of V(r))if(!Ia(t.display)&&Pa(t,n,i)){let r=Ba(t,n,i);e.push(r)}}return e});var h=W(),g=I(h),_=e=>{os(e,{get date(){return t.date},allDay:!0,role:`listitem`,get disabled(){return V(d)},get highlight(){return V(u)},content:(e,n=f)=>{var r=qs(),i=I(r),o=F(i);Kr(o,()=>yi(n()??V(c).format(t.date)));var s=L(o,2);Kr(s,()=>yi(V(l).format(t.date))),O(i),J(L(i,2),17,()=>V(m),e=>e.event,(e,t)=>{Ks(e,{get chunk(){return V(t)}})}),R(()=>{Y(i,1,V(a).dayHead),oi(o,`datetime`,V(p)),Y(s,1,V(a).daySide),oi(s,`datetime`,V(p))}),G(e,r)},$$slots:{content:!0}})};K(g,e=>{V(m).length&&e(_)}),G(e,h),j()}var Ys=U(`<div></div>`),Xs=U(`<section><!></section>`);function Zs(e,t){A(t,!0);let n=k(`state`);Ue(`view-state`,new Ws(n));let r=M(()=>n.filteredEvents),i=M(()=>n.view),a=M(()=>n.viewDates),o=M(()=>n.options.noEventsClick),s=M(()=>n.options.noEventsContent),c=M(()=>n.options.theme),l=M(()=>{let e=!0;if(!Mi(V(a))){let t=V(a)[0],n=qi(Q(V(a).at(-1)));for(let i of V(r))if(!Ia(i.display)&&i.start<n&&i.end>t){e=!1;break}}return e}),u=M(()=>Z(V(s))?V(s)():V(s));function d(e){Z(V(o))&&V(o)({jsEvent:e,view:Sa(V(i))})}var f=Xs(),p=F(f),m=e=>{var t=Ys();Kr(t,()=>yi(V(u))),R(()=>Y(t,1,V(c).noEvents)),xr(`click`,t,d),G(e,t)},h=e=>{var t=W();J(I(t),17,()=>V(a),q,(e,t)=>{Js(e,{get date(){return V(t)}})}),G(e,t)};K(p,e=>{V(l)?e(m):e(h,-1)}),O(f),pi(f,e=>n.mainEl=e,()=>n?.mainEl),R(()=>Y(f,1,V(c).main)),G(e,f),j()}Sr([`click`]);var Qs={createOptions(e){X(e,{listDayFormat:{weekday:`long`},listDaySideFormat:{year:`numeric`,month:`long`,day:`numeric`},noEventsClick:void 0,noEventsContent:`No events`,view:`listWeek`}),X(e.buttonText,{listDay:`day`,listWeek:`week`,listMonth:`month`,listYear:`year`}),X(e.theme,{daySide:`ec-day-side`,eventTag:`ec-event-tag`,noEvents:`ec-no-events`}),X(e.views,{listDay:{buttonText:Xa,component:$s,duration:{days:1},theme:to(`ec-list ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},listWeek:{buttonText:Za,component:$s,duration:{weeks:1},theme:to(`ec-list ec-week-view`)},listMonth:{buttonText:Qa,component:$s,duration:{months:1},theme:to(`ec-list ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},listYear:{buttonText:$a,component:$s,duration:{years:1},theme:to(`ec-list ec-year-view`),titleFormat:{year:`numeric`}}})}};function $s(e){return e.features=[`list`],Zs}function ec(e,t,n=!0){let r=[];for(let{gridColumn:i,gridRow:a,resource:o,start:s,end:c,disabled:l}of t)if(!l&&Pa(e,s,c,o)){let t=Ba(e,s,c);X(t,{gridColumn:i,gridRow:a,resource:o,top:(t.start-s)/1e3,height:(t.end-t.start)/1e3,maxHeight:(c-t.start)/1e3}),n&&Ka(t),r.push(t)}return r}function tc(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 nc(e){let t=`all-day`,n;return e?(n=Z(e)?e({text:t}):e,typeof n==`string`&&(n={html:n})):n={html:t},n}function rc(e){e.extensions.activeRange=(t,n)=>{let{options:{slotMaxTime:r}}=e;if(r.days||r.seconds>86400){Gi(Ji(n),r);let e=Ji(Q(n));e<t&&(t=e)}return{start:t,end:n}}}function ic(e){`scrollTime`in e||(X(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}),X(e.theme,{nowIndicator:`ec-now-indicator`,sidebar:`ec-sidebar`,slot:`ec-slot`}))}function ac(e){`allDaySlot`in e||(X(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),X(e.theme,{allDay:`ec-all-day`}))}function oc(e){`scrollTime`in e||X(e,{scrollTime:Wi,slotDuration:Wi,slotLabelInterval:Vi(Wi),slotMaxTime:Wi,slotMinTime:Wi,snapDuration:Vi(Wi)})}function sc(e){`resourceLabelContent`in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function cc(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:Gi(Q(t),a.min),end:Gi(Q(t),a.max),dayStart:t,dayEnd:qi(Q(t)),disabled:ro(t,i),highlight:r.some(e=>Qi(e,t))}),++e}),[o]}}function lc(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)Ia(e.display)?(a=a.concat(ec(e,t)),e.allDay&&(s=s.concat(Va(e,t)))):e.allDay?o=o.concat(Va(e,t)):i=i.concat(ec(e,t));tc(i),Ha(o)}),{chunks:i,bgChunks:a,allDayChunks:o,allDayBgChunks:s}}}function uc(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(Va(e,t,!1)):i=i.concat(ec(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 H(()=>{o=fo(i,a,r,n,t)}),o}}function fc(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:n}}=e,r;return H(()=>{r=n===void 0?$(t)<3600?2:1:Di($(n)/$(t))||1}),r}}function pc(e,t){return()=>{let{options:{slotDuration:n}}=e,{intlSlotLabel:r,slotLabelPeriodicity:i,slotTimeLimits:a}=t,o;return H(()=>{o=uo(Yi(Ui()),n,i,a,r)}),o}}function mc(e){return()=>{let{options:{slotDuration:t,snapDuration:n}}=e;return n??=t,{duration:n,ratio:$(n)/$(t)}}}function hc(){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=M(qa(e,`slotLabelFormat`)),this.#t=M(fc(e)),this.#n=N(0),this.#r=M(mc(e))}}}function gc(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=M(dc(e)),this.#t=M(pc(e,this));let t=M(lc(e,this)),n=M(()=>V(t).chunks),r=M(()=>V(t).bgChunks),i=M(()=>V(t).allDayChunks),a=M(()=>V(t).allDayBgChunks);this.#n=M(()=>V(n)),this.#r=M(()=>V(r)),this.#i=M(()=>V(i)),this.#a=M(()=>V(a));let o=M(uc(e,this)),s=M(()=>V(o).iChunks),c=M(()=>V(o).allDayIChunks);this.#o=M(()=>V(s)),this.#s=M(()=>V(c))}}}var _c=class extends gc(hc()){#e;get grid(){return V(this.#e)}set grid(e){P(this.#e,e)}constructor(e){super(e),this.#e=M(cc(e,this))}};function vc(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=>!Ia(n.display)&&Pa(n,t.start,t.end,e)))),o.length||(o=io([{}]))}),o}}function yc(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:Gi(Q(t),o.min),end:Gi(Q(t),o.max),dayStart:t,dayEnd:qi(Q(t)),disabled:ro(t,a),highlight:i.some(e=>Qi(e,t))}),++e}c.push(s)}}),c}}function bc(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=M(vc(e))}}}var xc=class extends bc(gc(hc())){#e;get grid(){return V(this.#e)}set grid(e){P(this.#e,e)}constructor(e){super(e),this.#e=M(yc(e,this))}},Sc=U(`<span></span>`);function Cc(e,t){A(t,!0);let n=mi(t,`date`,3,void 0),r=mi(t,`setLabel`,3,void 0),i=M(()=>k(`state`)),a=M(()=>V(i).intlDayHeaderAL),o=M(()=>V(i).options.resourceLabelContent),s=M(()=>V(i).options.resourceLabelDidMount),c=N(void 0),l=M(()=>V(o)?Z(V(o))?V(o)({resource:t.resource,date:n()?Xi(n()):void 0}):V(o):t.resource.title),u=N(void 0);bn(()=>{V(l),H(()=>{n()?P(u,V(a).format(n())+`, `+V(c).innerText):r()&&(P(u,void 0),r()(V(c).innerText))})}),gi(()=>{Z(V(s))&&V(s)({resource:t.resource,date:n()?Xi(n()):void 0,el:V(c)})});var d=Sc();pi(d,e=>P(c,e),()=>V(c)),Kr(d,()=>yi(V(l))),R(()=>oi(d,`aria-label`,V(u))),G(e,d),j()}function wc(e,t){A(t,!0);let n=mi(t,`allDay`,3,!1),r=M(()=>k(`state`)),i=M(()=>V(r).options.slotHeight),a=M(()=>k(`view-state`)),o=M(()=>V(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=N(void 0);function p(e,t){if(n())return V(s);{let e=ha(V(f)),n=e.height/V(f).offsetHeight;return Gi(Q(V(c)),V(o).duration,Ei((t-e.top)/(V(i)*V(o).ratio*n)))}}os(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)}}),j()}function Tc(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).options.slotEventOverlap),i=M(()=>V(n).options.slotDuration),a=M(()=>V(n).options.slotHeight),o=M(()=>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});ms(e,{get chunk(){return t.chunk},get styles(){return V(o)},axis:`y`}),j()}function Ec(e,t){A(t,!0);let n=N(void 0),r=N(0),i=M(()=>t.chunk.event),a=M(()=>e=>(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(V(r)||V(i)._margin)&&(e[`margin-block-start`]=`${V(i)._margin??V(r)}px`),e));function o(){P(r,Ua(t.chunk,_a(V(n))),!0)}var s={reposition:o};return ms(e,{get chunk(){return t.chunk},get styles(){return V(a)},axis:`x`,get forceMargin(){return V(r)},get el(){return V(n)},set el(e){P(n,e,!0)}}),j(s)}var Dc=U(`<div></div>`);function Oc(e,t){A(t,!0);let n=mi(t,`span`,3,1),r=M(()=>k(`state`)),i=M(()=>V(r).mainEl),a=M(()=>V(r).now),o=M(()=>V(r).today),s=M(()=>V(r).options.slotDuration),c=M(()=>V(r).options.slotHeight),l=M(()=>V(r).options.theme),u=M(()=>k(`view-state`)),d=M(()=>V(u).sidebarWidth),f=M(()=>{for(let e of t.days)if(Qi(e.dayStart,V(o)))return e;return{}}),p=M(()=>V(f).gridColumn),m=M(()=>V(f).start),h=M(()=>V(f).end),g=M(()=>{if(V(a)<V(m)||V(a)>V(h))return null;let e=$(V(s));return(V(a)-V(m))/1e3/e*V(c)}),_=M(()=>({root:V(i),rootMargin:Bi()?`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=Dc();let r;Kr(t,()=>Si(v,V(_))),R(()=>{Y(t,1,V(l).nowIndicator),r=ni(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),j()}var kc=U(`<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>`),Ac=U(`<div><time></time></div>`),jc=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 Mc(e,t){A(t,!0);let n=mi(t,`viewState`,7),r=k(`state`);n()||n(new _c(r)),Ue(`view-state`,n());let i=M(()=>r.mainEl),a=M(()=>r.viewDates),o=M(()=>r.options.allDayContent),s=M(()=>r.options.allDaySlot),c=M(()=>r.options.columnWidth),l=M(()=>r.options.nowIndicator),u=M(()=>r.options.scrollTime),d=M(()=>r.options.slotHeight),f=M(()=>r.options.slotDuration),p=M(()=>r.options.theme),m=M(()=>n().allDayChunks),h=M(()=>n().allDayBgChunks),g=M(()=>n().allDayIChunks),_=M(()=>n().bgChunks),v=M(()=>n().chunks),y=M(()=>n().iChunks),b=M(()=>n().grid),x=M(()=>n().sidebarWidth),S=M(()=>n().slots),ee=M(()=>n().slotLabelPeriodicity),C=M(()=>n().slotTimeLimits),te=N(0),ne=M(()=>nc(V(o)));bn(()=>{V(u),Mi(V(a))||dr().then(re)});function re(){V(i).scrollTop=(($(V(u))-$(V(C).min))/$(V(f))-.5)*V(d)}let ie=[];function ae(){Na(ie,V(m))}bn(ae);var oe=W(),se=I(oe),ce=e=>{var i=jc();let a;var o=F(i),u=F(o),f=L(u,2),C=F(f),re=e=>{var n=W();Wr(I(n),()=>t.header),G(e,n)},oe=e=>{var t=W();J(I(t),17,()=>V(b)[0],q,(e,t,n)=>{let r=()=>V(t).dayStart,i=()=>V(t).disabled,a=()=>V(t).highlight;ds(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{ps(e,{get date(){return r()}})},$$slots:{default:!0}})}),G(e,t)};K(C,e=>{t.header?e(re):e(oe,-1)}),O(f);var se=L(f,2),ce=e=>{var t=kc(),n=F(t);Kr(n,()=>yi(V(ne)));var r=L(n,2);J(r,21,()=>V(b),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{{let a=M(()=>n+1===ji(V(b))&&i+1===ji(V(t)));wc(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(m),e=>e.id,(e,t,n)=>{pi(Ec(e,{get chunk(){return V(t)}}),(e,t)=>ie[t]=e,e=>ie?.[e],()=>[V(n)])});var o=L(a,2);J(o,17,()=>V(h),e=>e.id,(e,t)=>{Ec(e,{get chunk(){return V(t)}})}),J(L(o,2),17,()=>V(g),q,(e,t)=>{Ec(e,{get chunk(){return V(t)}})}),O(i),O(t),R(()=>{Y(t,1,V(p).allDay),Y(n,1,V(p).sidebar),Y(r,1,V(p).grid),Y(i,1,V(p).events)}),G(e,t)};K(se,e=>{V(s)&&e(ce)}),O(o);var le=L(o,2),ue=F(le);J(ue,21,()=>V(S),q,(e,t,n)=>{var r=Ac();let i;var a=F(r);Kr(a,()=>yi(V(t)[1])),O(r),R(()=>{Y(r,1,Yr([V(p).slot,!n&&V(p).hidden])),i=ni(r,``,i,{"--ec-slot-label-periodicity":V(t)[2]}),oi(a,`datetime`,V(t)[0])}),G(e,r)}),O(ue);var w=L(ue,2);J(w,21,()=>V(b),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{{let a=M(()=>n+1===ji(V(b))&&i+1===ji(V(t)));wc(e,{get day(){return V(r)},get noIeb(){return V(a)},noBeb:!0})}}),G(e,r)}),O(w);var T=L(w,2),de=F(T);J(de,17,()=>V(v),e=>e.id,(e,t)=>{Tc(e,{get chunk(){return V(t)}})});var fe=L(de,2);J(fe,17,()=>V(_),e=>e.id,(e,t)=>{Tc(e,{get chunk(){return V(t)}})}),J(L(fe,2),17,()=>V(y),q,(e,t)=>{Tc(e,{get chunk(){return V(t)}})}),O(T),O(le);var pe=L(le,2),me=e=>{var n=W(),r=I(n),i=e=>{var n=W();Wr(I(n),()=>t.nowIndicator),G(e,n)},a=e=>{Oc(e,{get days(){return V(b)[0]}})};K(r,e=>{t.nowIndicator?e(i):e(a,-1)}),G(e,n)};K(pe,e=>{V(l)&&e(me)}),O(i),pi(i,e=>r.mainEl=e,()=>r?.mainEl),Kr(i,()=>xi(ae)),R(e=>{Y(i,1,V(p).main),a=ni(i,``,a,e),Y(o,1,V(p).header),Y(u,1,V(p).sidebar),Y(f,1,V(p).grid),Y(le,1,V(p).body),Y(ue,1,V(p).sidebar),Y(w,1,V(p).grid),Y(T,1,V(p).events)},[()=>({"--ec-grid-cols":ji(V(b))*ji(V(b)[0]),"--ec-col-group-span":ji(V(b)[0]),"--ec-col-width":V(c)??`minmax(0, 1fr)`,"--ec-slot-label-periodicity":V(ee),"--ec-slot-height":`${V(d)??``}px`,"--ec-header-height":`${V(te)??``}px`,"--ec-sidebar-width":`${V(x)??``}px`})]),di(u,`offsetWidth`,e=>n().sidebarWidth=e),di(o,`offsetHeight`,e=>P(te,e)),G(e,i)},le=M(()=>!Mi(V(b))&&!Mi(V(b)[0]));K(se,e=>{V(le)&&e(ce)}),G(e,oe),j()}var Nc=U(`<!> <!>`,1);function Pc(e,t){A(t,!0);let n=k(`state`),r=new xc(n),i=M(()=>n.today),a=M(()=>n.mainEl),o=M(()=>n.viewDates),s=M(()=>n.options.scrollTime),c=M(()=>n.options.datesAboveResources),l=M(()=>n.options.theme),u=M(()=>r.grid),d=M(()=>r.sidebarWidth),f=$t([]);bn(()=>{V(c)&&(V(o),V(s),dr().then(p))});function p(){if(V(i)>=V(o)[0]&&V(i)<=V(o).at(-1))for(let e of V(u)){let t=e[0];if(Qi(t.dayStart,V(i))){V(a).scrollLeft=(V(a).scrollWidth-V(d))/(ji(V(u))*ji(e))*(t.gridColumn-1)*(Bi()?-1:1);break}}}Mc(e,{get viewState(){return r},header:e=>{var t=Nc(),n=I(t);J(n,17,()=>V(u),q,(e,t,n)=>{let r=M(()=>{let{dayStart:e,resource:n,disabled:r,highlight:i}=V(t)[0];return{date:e,resource:n,disabled:r,highlight:i}});{let i=M(()=>ji(V(u)[0])>1?V(l).colGroup:void 0),a=M(()=>ji(V(t))),o=M(()=>1+n*ji(V(t))),s=M(()=>V(c)&&V(r).disabled),d=M(()=>V(c)&&V(r).highlight);ds(e,{get date(){return V(r).date},get className(){return V(i)},get weekday(){return V(c)},get colSpan(){return V(a)},get colIndex(){return V(o)},get disabled(){return V(s)},get highlight(){return V(d)},children:(e,t)=>{var i=W(),a=I(i),o=e=>{ps(e,{get date(){return V(r).date}})},s=e=>{Cc(e,{get resource(){return V(r).resource},setLabel:e=>f[n]=e+`, `})};K(a,e=>{V(c)?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(u),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{let a=M(()=>{let{dayStart:e,resource:t,disabled:n,highlight:i}=V(r);return{date:e,resource:t,disabled:n,highlight:i}});{let r=M(()=>1+i+n*ji(V(t)));ds(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=>{Cc(e,{get resource(){return V(a).resource},get date(){return V(a).date}})},s=e=>{ps(e,{get date(){return V(a).date},get alPrefix(){return f[n]}})};K(i,e=>{V(c)?e(o):e(s,-1)}),G(e,r)},$$slots:{default:!0}})}}),G(e,r)}),G(e,t)},a=M(()=>ji(V(u)[0])>1);K(r,e=>{V(a)&&e(i)}),G(e,t)},nowIndicator:e=>{var t=W(),n=I(t),r=e=>{{let t=M(()=>V(u).flat()),n=M(()=>ji(V(u)[0]));Oc(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(u),q,(e,t)=>{Oc(e,{get days(){return V(t)}})}),G(e,t)},i=M(()=>ji(V(u)[0])>1),a=e=>{{let t=M(()=>V(u).flat()),n=M(()=>ji(V(u)));Oc(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(c)?e(r):e(i,-1)}),G(e,t)},$$slots:{header:!0,nowIndicator:!0}}),j()}var Fc={createOptions(e){ac(e),ic(e),sc(e),X(e,{datesAboveResources:!1,view:`resourceTimeGridWeek`}),X(e.buttonText,{resourceTimeGridDay:`day`,resourceTimeGridWeek:`week`}),X(e.theme,{colGroup:`ec-col-group`}),X(e.views,{resourceTimeGridDay:{buttonText:Xa,component:Ic,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:to(`ec-resource ec-time-grid ec-day-view`)},resourceTimeGridWeek:{buttonText:Za,component:Ic,duration:{weeks:1},theme:to(`ec-resource ec-time-grid ec-week-view`)}})},createParsers(e){oc(e)}};function Ic(e){return rc(e),Pc}function Lc(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?Pa(e,m,h,p)&&(i.length||(a=m,s=r,c=f,l=p),i.push(m),o=_):Pa(e,g,_,p)&&(i.length||(a=g,s=r,c=f,l=p,u=ki(e.start-g,0)/1e3),i.push(m),o=_,d+=(Oi(_,e.end)-ki(g,e.start))/1e3));if(i.length){let t=Ba(e,a,o);return X(t,{gridColumn:s,gridRow:c,resource:l,dates:i,left:u,width:d}),r&&Ka(t),[t]}return[]}function Rc(e){let t={};for(let n of e){let{gridColumn:e,gridRow:r}=n;for(let i=0;i<n.dates.length;++i){let a=`${r}_${e+i}`;t[a]?t[a].push(n):t[a]=[n]}n.day=t[`${r}_${e}`]}}function zc(e,t,n){let r=1,i=r+t,a=e.day;a.sort((e,t)=>(e.top??1/0)-(t.top??1/0));for(let t of a)if(!(t===e||!(`top`in t))&&(n||e.start<t.end&&e.end>t.start)&&r<t.bottom&&i>t.top){let e=t.bottom-r+1;r+=e,i+=e}return X(e,{top:r,bottom:i}),r}function Bc(e,t){return e[t.getTime()]??{min:Wi(0),max:Wi(`24:00:00`)}}function Vc(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:Gi(Q(s),n.min),end:Gi(Q(s),n.max),dayStart:s,dayEnd:qi(Q(s)),disabled:ro(s,i),highlight:r.some(e=>Qi(e,s))}),++c}s.push(o),++e}}),s}}function Hc(e,t){return()=>{let{features:n,options:{firstDay:r,weekNumbers:i}}=e,{grid:a}=t,o=[],s=[];return H(()=>{let e,t;if(!Mi(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=oa(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 Uc(e,t){return()=>{let{filteredEvents:n}=e,{grid:r,monthView:i}=t,a=[],o=[];return H(()=>{for(let e of n)for(let t of r)Ia(e.display)?(!i||e.allDay)&&(o=o.concat(Lc(e,t,i))):a=a.concat(Lc(e,t,i));Rc(a)}),{chunks:a,bgChunks:o}}}function Wc(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(Lc(e,t,i,!1))});return a}}function Gc(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()]=fo(i,a,r,[e],t)}),o}}function Kc(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?uo(e,r,o,i[t],a):[]}}),s}}function qc(e){return()=>{let{resources:t}=e,n;return H(()=>{n=t.some(e=>pa(e).children.length)}),n}}function Jc(e){return()=>{let{options:{slotDuration:t}}=e,n;return H(()=>{n=!$(t)}),n}}var Yc=class extends bc(hc()){#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=M(Gc(e)),this.#t=M(Kc(e,this)),this.#n=M(Vc(e,this)),this.#r=M(Hc(e,this)),this.#i=M(qa(e,`monthHeaderFormat`)),this.#a=M(Jc(e));let t=M(Uc(e,this)),n=M(()=>V(t).chunks),r=M(()=>V(t).bgChunks);this.#o=M(()=>V(n)),this.#s=M(()=>V(r)),this.#c=M(Wc(e,this)),this.#l=M(qc(e))}};function Xc(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).options.slotWidth),i=M(()=>k(`view-state`)),a=M(()=>V(i).monthView),o=M(()=>V(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=N(void 0);function p(e,t){if(V(a))return V(s);{let t=ha(V(f)),n=t.width/V(f).offsetWidth;return Gi(Q(V(c)),V(o).duration,Ei((Bi()?t.right-e:e-t.left)/(V(r)*V(o).ratio*n)))}}os(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)}}),j()}function Zc(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).options.slotDuration),i=M(()=>V(n).options.slotWidth),a=M(()=>k(`view-state`)),o=M(()=>V(a).monthView),s=N(void 0),c=N(1),l=M(()=>t.chunk.event),u=M(()=>e=>{e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,V(o)||(e[`inset-inline-start`]=`${t.chunk.left/$(V(r))*V(i)}px`,e[`inline-size`]=`${t.chunk.width/$(V(r))*V(i)}px`);let n=V(c);if(V(l)._margin){let[e,r]=V(l)._margin;t.chunk.gridRow===r&&(n=e)}return e[`margin-block-start`]=`${n}px`,e});function d(){P(c,zc(t.chunk,_a(V(s)),V(o)),!0)}var f={reposition:d};{let n=M(()=>[V(c),t.chunk.gridRow]);ms(e,{get chunk(){return t.chunk},get styles(){return V(u)},axis:`x`,get forceMargin(){return V(n)},get el(){return V(s)},set el(e){P(s,e,!0)}})}return j(f)}var Qc=U(`<span></span>`),$c=U(`<button></button>`),el=U(`<!> <span><!></span>`,1);function tl(e,t){A(t,!0);let n=mi(t,`resource`,7),r=M(()=>k(`state`)),i=M(()=>V(r).resources),a=M(()=>V(r).view),o=M(()=>V(r).options.buttonText),s=M(()=>V(r).options.icons),c=M(()=>V(r).options.resourceExpand),l=M(()=>V(r).options.theme),u=N({}),d=M(()=>n().expanded),f=M(()=>V(o)[V(d)?`collapse`:`expand`]);Sn(()=>{P(u,pa(n()))});function p(e){n().expanded=P(d,!V(d)),m(V(u).children),V(i).length=V(i).length,Z(V(c))&&V(c)({resource:n(),jsEvent:e,view:Sa(V(a))})}function m(e){for(let t of e){let e=pa(t);e.hidden=!V(d),t.expanded&&m(e.children)}}var h=el(),g=I(h);J(g,17,()=>Array(V(u).level),q,(e,t)=>{var n=Qc();R(()=>Y(n,1,V(l).expander)),G(e,n)});var _=L(g,2),v=F(_),y=e=>{var t=$c();Kr(t,()=>yi(V(s)[V(d)?`collapse`:`expand`])),R(()=>{Y(t,1,V(l).button),oi(t,`aria-label`,V(f)),oi(t,`title`,V(f))}),xr(`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),j()}Sr([`click`]);var nl=U(`<div></div>`);function rl(e,t){A(t,!0);let n=M(()=>k(`state`)),r=M(()=>V(n).mainEl),i=M(()=>V(n).now),a=M(()=>V(n).today),o=M(()=>V(n).options.slotDuration),s=M(()=>V(n).options.slotWidth),c=M(()=>V(n).options.theme),l=M(()=>k(`view-state`)),u=M(()=>V(l).grid),d=M(()=>V(l).sidebarWidth),f=M(()=>{for(let e of V(u)[0])if(Qi(e.dayStart,V(a)))return e;return{}}),p=M(()=>V(f).gridColumn),m=M(()=>V(f).start),h=M(()=>V(f).end),g=M(()=>{if(V(i)<V(m)||V(i)>V(h))return null;let e=$(V(o));return(V(i)-V(m))/1e3/e*V(s)}),_=M(()=>({root:V(r),rootMargin:Bi()?`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=nl();let n;Kr(t,()=>Si(v,V(_))),R(()=>{Y(t,1,V(c).nowIndicator),n=ni(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),j()}var il=U(`<time></time>`),al=U(`<span></span>`),ol=U(`<div><time></time></div>`),sl=U(`<div role="rowheader"><!> <!></div>`),cl=U(`<section><header><aside></aside> <div role="row"><!> <!> <!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>`);function ll(e,t){A(t,!0);let n=k(`state`),r=new Yc(n);Ue(`view-state`,r);let i=M(()=>n.mainEl),a=M(()=>n.today),o=M(()=>n.viewDates),s=M(()=>n.options.columnWidth),c=M(()=>n.options.nowIndicator),l=M(()=>n.options.scrollTime),u=M(()=>n.options.slotDuration),d=M(()=>n.options.slotHeight),f=M(()=>n.options.slotWidth),p=M(()=>n.options.theme),m=M(()=>n.options.weekNumberContent),h=M(()=>r.chunks),g=M(()=>r.bgChunks),_=M(()=>r.iChunks),v=M(()=>r.daySlots),y=M(()=>r.dayTimeLimits),b=M(()=>r.grid),x=M(()=>r.extraHeads),S=M(()=>r.intlMonthHeader),ee=M(()=>r.monthView),C=M(()=>r.nestedResources),te=M(()=>r.sidebarWidth),ne=M(()=>r.slotLabelPeriodicity),re=M(()=>r.viewResources),ie=N(0);bn(()=>{V(l),Mi(V(o))||dr().then(ae)});function ae(){let e=0,t=V(a)<V(o)[0]||V(a)>V(o).at(-1);if(V(ee)){if(!t){let e=V(b)[0];for(let t of e)if(Qi(t.dayStart,V(a))){V(i).scrollLeft=(V(i).scrollWidth-V(te))/ji(e)*(t.gridColumn-1)*(Bi()?-1:1);break}}}else{for(let n of V(o)){let r=Bc(V(y),n);if(t||Qi(n,V(a))){e+=ki(Oi($(V(l)),$(r.max))-$(r.min),0);break}else e+=$(r.max)-$(r.min)}V(i).scrollLeft=e/$(V(u))*V(f)*(Bi()?-1:1)}}let oe=[];function se(){Na(oe,V(h))}bn(se);var ce=W(),le=I(ce),ue=e=>{var t=cl();let i;var a=F(t),o=F(a),l=L(o,2),u=F(l),y=e=>{var t=W();J(I(t),17,()=>V(x).months,q,(e,t)=>{let n=()=>V(t).date,r=()=>V(t).gridColumn,i=()=>V(t).span;ds(e,{get className(){return V(p).colGroup},get colIndex(){return r()},get colSpan(){return i()},cssSpan:!0,weekday:!1,children:(e,t)=>{var r=il();Kr(r,()=>yi(V(S).format(n()))),R(e=>oi(r,`datetime`,e),[()=>Zi(n(),10)]),G(e,r)},$$slots:{default:!0}})}),G(e,t)},ae=M(()=>ji(V(x).months)>1);K(u,e=>{V(ae)&&e(y)});var ce=L(u,2),le=e=>{var t=W();J(I(t),17,()=>V(x).weeks,q,(e,t)=>{let n=()=>V(t).number,r=()=>V(t).date,i=()=>V(t).gridColumn,a=()=>V(t).span;ds(e,{get className(){return V(p).colGroup},get colIndex(){return i()},get colSpan(){return a()},cssSpan:!0,weekday:!1,children:(e,t)=>{var i=al();Kr(i,()=>yi(sa(n(),V(m),r()))),R(()=>Y(i,1,V(p).weekNumber)),G(e,i)},$$slots:{default:!0}})}),G(e,t)},ue=M(()=>ji(V(x).weeks)>1);K(ce,e=>{V(ue)&&e(le)});var w=L(ce,2);J(w,17,()=>V(b)[0],q,(e,t,n)=>{let r=()=>V(t).dayStart,i=()=>V(t).disabled,a=()=>V(t).highlight;ds(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{ps(e,{get date(){return r()}})},$$slots:{default:!0}})});var T=L(w,2),de=e=>{var t=W();J(I(t),17,()=>V(b)[0],q,(e,t)=>{let n=()=>V(t).dayStart,r=()=>V(t).disabled,i=()=>V(t).highlight;ds(e,{get date(){return n()},get className(){return V(p).slots},get disabled(){return r()},get highlight(){return i()},ariaHidden:!0,children:(e,t)=>{var r=W();J(I(r),17,()=>V(v)[n().getTime()],q,(e,t)=>{var n=ol();let r;var i=F(n);Kr(i,()=>yi(V(t)[1])),O(n),R(()=>{Y(n,1,V(p).slot),r=ni(n,``,r,{"--ec-slot-label-periodicity":V(t)[2]}),oi(i,`datetime`,V(t)[0])}),G(e,n)}),G(e,r)},$$slots:{default:!0}})}),G(e,t)};K(T,e=>{V(ee)||e(de)}),O(l),O(a);var fe=L(a,2),pe=F(fe);J(pe,21,()=>V(re),q,(e,t)=>{var n=sl(),r=F(n),i=e=>{tl(e,{get resource(){return V(t)}})};K(r,e=>{V(C)&&e(i)}),Cc(L(r,2),{get resource(){return V(t)}}),O(n),R(()=>Y(n,1,V(p).rowHead)),G(e,n)}),O(pe);var me=L(pe,2);J(me,21,()=>V(b),q,(e,t,n)=>{var r=W();J(I(r),17,()=>V(t),q,(e,r,i)=>{{let a=M(()=>i+1===ji(V(t))),o=M(()=>n+1===ji(V(b)));Xc(e,{get day(){return V(r)},get noIeb(){return V(a)},get noBeb(){return V(o)}})}}),G(e,r)}),O(me);var he=L(me,2),ge=F(he);J(ge,19,()=>V(h),e=>e.id,(e,t,n)=>{pi(Zc(e,{get chunk(){return V(t)}}),(e,t)=>oe[t]=e,e=>oe?.[e],()=>[V(n)])});var _e=L(ge,2);J(_e,17,()=>V(g),e=>e.id,(e,t)=>{Zc(e,{get chunk(){return V(t)}})}),J(L(_e,2),17,()=>V(_),q,(e,t)=>{Zc(e,{get chunk(){return V(t)}})}),O(he),O(fe);var ve=L(fe,2),ye=e=>{rl(e,{})};K(ve,e=>{V(c)&&!V(ee)&&e(ye)}),O(t),pi(t,e=>n.mainEl=e,()=>n?.mainEl),Kr(t,()=>xi(se)),R(e=>{Y(t,1,V(p).main),i=ni(t,``,i,e),Y(a,1,V(p).header),Y(o,1,V(p).sidebar),Y(l,1,V(p).grid),Y(fe,1,V(p).body),Y(pe,1,V(p).sidebar),Y(me,1,V(p).grid),Y(he,1,V(p).events)},[()=>({"--ec-grid-cols":ji(V(b)[0]),"--ec-grid-rows":`${ji(V(b))>1?`repeat(${ji(V(b))-1}, auto)`:``} 1fr`,"--ec-col-width":V(s)??`minmax(4em, 1fr)`,"--ec-slot-label-periodicity":V(ne),"--ec-slot-height":`${V(d)??``}px`,"--ec-slot-width":`${V(f)??``}px`,"--ec-header-height":`${V(ie)??``}px`,"--ec-sidebar-width":`${V(te)??``}px`})]),di(o,`offsetWidth`,e=>r.sidebarWidth=e),di(a,`offsetHeight`,e=>P(ie,e)),G(e,t)},w=M(()=>!Mi(V(b))&&!Mi(V(b)[0]));K(le,e=>{V(w)&&e(ue)}),G(e,ce),j()}var ul={createOptions(e){ic(e),sc(e),X(e,{monthHeaderFormat:{month:`long`},resourceExpand:void 0,slotWidth:32,view:`resourceTimelineWeek`}),X(e.buttonText,{expand:`Expand`,collapse:`Collapse`,resourceTimelineDay:`day`,resourceTimelineWeek:`week`,resourceTimelineMonth:`month`,resourceTimelineYear:`year`}),X(e.icons,{collapse:{html:`−`},expand:{html:`+`}}),X(e.theme,{expander:`ec-expander`,rowHead:`ec-row-head`,slots:`ec-slots`}),X(e.views,{resourceTimelineDay:{buttonText:Xa,component:dl,displayEventEnd:!1,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:to(`ec-resource ec-timeline ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},resourceTimelineWeek:{buttonText:Za,component:dl,displayEventEnd:!1,duration:{weeks:1},theme:to(`ec-resource ec-timeline ec-week-view`)},resourceTimelineMonth:{buttonText:Qa,component:fl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{months:1},slotDuration:{days:1},theme:to(`ec-resource ec-timeline ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},resourceTimelineYear:{buttonText:$a,component:fl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{years:1},slotDuration:{days:1},theme:to(`ec-resource ec-timeline ec-year-view`),titleFormat:{year:`numeric`}}})},createParsers(e){oc(e)}};function dl(e){return rc(e),pl(e)}function fl(e){return pl(e,[`month`])}function pl(e,t=[]){return e.features=[`timeline`,...t],e.extensions.viewResources=e=>e.filter(e=>!pa(e).hidden),ll}var ml={createOptions(e){ic(e),ac(e),X(e.buttonText,{timeGridDay:`day`,timeGridWeek:`week`}),X(e,{view:`timeGridWeek`}),X(e.views,{timeGridDay:{buttonText:Xa,component:hl,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:to(`ec-time-grid ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},timeGridWeek:{buttonText:Za,component:hl,duration:{weeks:1},theme:to(`ec-time-grid ec-week-view`)}})},createParsers(e){oc(e)}};function hl(e){return rc(e),Mc}function gl(e,t,n){return Ar($o,{target:e,props:{plugins:t,options:n}})}function _l(e){return Pr(e)}function vl(e,t){return gl(e,[Ts,Us,Qs,Fc,ul,ml],t)}return e.create=vl,e.destroy=_l,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}}function h(e,t){if(Array.isArray(e))return e;if(t===void 0||!(Symbol.iterator in e))return Array.from(e);let n=[];for(let r of e)if(n.push(r),n.length===t)break;return n}var g=1<<24,_=1024,v=2048,y=4096,b=8192,x=16384,S=32768,ee=1<<25,C=65536,te=1<<19,ne=1<<20,re=1<<25,ie=65536,ae=1<<21,oe=1<<22,se=1<<23,ce=Symbol(`$state`),le=Symbol(`legacy props`),ue=Symbol(``),w=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},T=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function de(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function fe(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function pe(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function me(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function he(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function ge(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function _e(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ve(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function ye(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function be(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function xe(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Se(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function Ce(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function we(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Te={},Ee=Symbol(),De=`http://www.w3.org/1999/xhtml`;function Oe(){console.warn(`https://svelte.dev/e/derived_inert`)}function ke(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ae(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var E=!1;function je(e){E=e}var D;function Me(e){if(e===null)throw ke(),Te;return D=e}function Ne(){return Me(sn(D))}function O(e){if(E){if(sn(D)!==null)throw ke(),Te;D=e}}function Pe(e=1){if(E){for(var t=e,n=D;t--;)n=sn(n);D=n}}function Fe(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=sn(n);e&&n.remove(),n=i}}function Ie(e){if(!e||e.nodeType!==8)throw ke(),Te;return e.data}function Le(e){return e===this.v}function Re(e,t){return e==e?e!==t||typeof e==`object`&&!!e||typeof e==`function`:t==t}function ze(e){return!Re(e,this.v)}var Be=!1,Ve=!1,He=null;function Ue(e){He=e}function k(e){return Ke(`getContext`).get(e)}function We(e,t){let n=Ke(`setContext`);if(Be){var r=V.f;!B&&r&32&&!He.i||be()}return n.set(e,t),t}function A(e,t=!1,n){He={p:He,i:!1,c:null,e:null,s:e,x:null,r:V,l:Ve&&!t?{s:null,u:null,$:[]}:null}}function j(e){var t=He,n=t.e;if(n!==null){t.e=null;for(var r of n)bn(r)}return e!==void 0&&(t.x=e),t.i=!0,He=t.p,e??{}}function Ge(){return!Ve||He!==null&&He.l===null}function Ke(e){return He===null&&de(e),He.c??=new Map(qe(He)||void 0)}function qe(e){let t=e.p;for(;t!==null;){let e=t.c;if(e!==null)return e;t=t.p}return null}var Je=[];function Ye(){var e=Je;Je=[],p(e)}function Xe(e){if(Je.length===0&&!dt){var t=Je;queueMicrotask(()=>{t===Je&&Ye()})}Je.push(e)}function Ze(){for(;Je.length>0;)Ye()}function Qe(e){var t=V;if(t===null)return B.f|=se,e;if(!(t.f&32768)&&!(t.f&4))throw e;$e(e,t)}function $e(e,t){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 et=~(v|y|_);function tt(e,t){e.f=e.f&et|t}function nt(e){e.f&512||e.deps===null?tt(e,_):tt(e,y)}function rt(e){if(e!==null)for(let t of e)!(t.f&2)||!(t.f&65536)||(t.f^=ie,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,_)}var at=!1,ot=!1;function st(e){var t=ot;try{return ot=!1,[e(),ot]}finally{ot=t}}var ct=new Set,M=null,lt=null,ut=null,dt=!1,ft=!1,pt=null,mt=null,ht=0,gt=1,_t=class e{id=gt++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=new Set;#r=new Map;#i=new Map;#a=null;#o=[];#s=[];#c=new Set;#l=new Set;#u=new Map;#d=new Set;is_fork=!1;#f=!1;#p=new Set;#m(){return this.is_fork||this.#i.size>0}#h(){for(let n of this.#p)for(let r of n.#i.keys()){for(var e=!1,t=r;t.parent!==null;){if(this.#u.has(t)){e=!0;break}t=t.parent}if(!e)return!0}return!1}skip_effect(e){this.#u.has(e)||this.#u.set(e,{d:[],m:[]}),this.#d.delete(e)}unskip_effect(e,t=e=>this.schedule(e)){var n=this.#u.get(e);if(n){this.#u.delete(e);for(var r of n.d)tt(r,v),t(r);for(r of n.m)tt(r,y),t(r)}this.#d.add(e)}#g(){if(ht++>1e3&&(ct.delete(this),yt()),!this.#m()){for(let e of this.#c)this.#l.delete(e),tt(e,v),this.schedule(e);for(let e of this.#l)tt(e,y),this.schedule(e)}let t=this.#o;this.#o=[],this.apply();var n=pt=[],r=[],i=mt=[];for(let e of t)try{this.#_(e,n,r)}catch(t){throw Et(e),t}if(M=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(pt=null,mt=null,this.#m()||this.#h()){this.#v(r),this.#v(n);for(let[e,t]of this.#u)Tt(e,t)}else{this.#r.size===0&&ct.delete(this),this.#c.clear(),this.#l.clear();for(let e of this.#e)e(this);this.#e.clear(),xt(r),xt(n),this.#a?.resolve()}var o=M;if(this.#o.length>0){let e=o??=this;e.#o.push(...this.#o.filter(t=>!e.#o.includes(t)))}o!==null&&(ct.add(o),o.#g()),Be&&!ct.has(this)&&this.#y()}#_(e,t,n){e.f^=_;for(var r=e.first;r!==null;){var i=r.f,a=(i&96)!=0;if(!(a&&i&1024||i&8192||this.#u.has(r))&&r.fn!==null){a?r.f^=_:i&4?t.push(r):Be&&i&16777224?n.push(r):ir(r)&&(i&16&&this.#l.add(r),lr(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(e){for(var t=0;t<e.length;t+=1)it(e[t],this.#c,this.#l)}capture(e,t,n=!1){e.v!==Ee&&!this.previous.has(e)&&this.previous.set(e,e.v),e.f&8388608||(this.current.set(e,[t,n]),lt?.set(e,t)),this.is_fork||(e.v=t)}activate(){M=this}deactivate(){M=null,lt=null}flush(){try{ft=!0,M=this,this.#g()}finally{ht=0,ut=null,pt=null,mt=null,ft=!1,M=null,lt=null,Wt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear(),this.#n.clear(),ct.delete(this)}register_created_effect(e){this.#s.push(e)}#y(){for(let l of ct){var e=l.id<this.id,t=[];for(let[r,[i,a]]of this.current){if(l.current.has(r)){var n=l.current.get(r)[0];if(e&&i!==n)l.current.set(r,[i,a]);else continue}t.push(r)}var r=[...l.current.keys()].filter(e=>!this.current.has(e));if(r.length===0)e&&l.discard();else if(t.length>0){if(e)for(let e of this.#d)l.unskip_effect(e,e=>{e.f&4194320?l.schedule(e):l.#v([e])});l.activate();var i=new Set,a=new Map;for(var o of t)St(o,r,i,a);a=new Map;var s=[...l.current.keys()].filter(e=>this.current.has(e)?this.current.get(e)[0]!==e:!0);for(let e of this.#s)!(e.f&155648)&&Ct(e,s,a)&&(e.f&4194320?(tt(e,v),l.schedule(e)):l.#c.add(e));if(l.#o.length>0){l.apply();for(var c of l.#o)l.#_(c,[],[]);l.#o=[]}l.deactivate()}}for(let e of ct)e.#p.has(this)&&(e.#p.delete(this),e.#p.size===0&&!e.#m()&&(e.activate(),e.#g()))}increment(e,t){let n=this.#r.get(t)??0;if(this.#r.set(t,n+1),e){let e=this.#i.get(t)??0;this.#i.set(t,e+1)}}decrement(e,t,n){let r=this.#r.get(t)??0;if(r===1?this.#r.delete(t):this.#r.set(t,r-1),e){let e=this.#i.get(t)??0;e===1?this.#i.delete(t):this.#i.set(t,e-1)}this.#f||n||(this.#f=!0,Xe(()=>{this.#f=!1,this.flush()}))}transfer_effects(e,t){for(let t of e)this.#c.add(t);for(let e of t)this.#l.add(e);e.clear(),t.clear()}oncommit(e){this.#e.add(e)}ondiscard(e){this.#t.add(e)}on_fork_commit(e){this.#n.add(e)}run_fork_commit_callbacks(){for(let e of this.#n)e(this);this.#n.clear()}settled(){return(this.#a??=m()).promise}static ensure(){if(M===null){let t=M=new e;ft||(ct.add(M),dt||Xe(()=>{M===t&&t.flush()}))}return M}apply(){if(!Be||!this.is_fork&&ct.size===1){lt=null;return}lt=new Map;for(let[e,[t]]of this.current)lt.set(e,t);for(let n of ct)if(!(n===this||n.is_fork)){var e=!1,t=!1;if(n.id<this.id)for(let[r,[,i]]of n.current)i||(e||=this.current.has(r),t||=!this.current.has(r));if(e&&t)this.#p.add(n);else for(let[e,t]of n.previous)lt.has(e)||lt.set(e,t)}}schedule(e){if(ut=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(pt!==null&&t===V&&(Be||(B===null||!(B.f&2))&&!at))return;if(n&96){if(!(n&1024))return;t.f^=_}}this.#o.push(t)}};function vt(e){var t=dt;dt=!0;try{var n;for(e&&(M!==null&&!M.is_fork&&M.flush(),n=e());;){if(Ze(),M===null)return n;M.flush()}}finally{dt=t}}function yt(){try{_e()}catch(e){$e(e,ut)}}var bt=null;function xt(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&ir(r)&&(bt=new Set,lr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&Pn(r),bt?.size>0)){Wt.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||lr(n)}}bt.clear()}}bt=null}}function St(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?St(i,t,n,r):e&4194320&&!(e&2048)&&Ct(i,t,r)&&(tt(i,v),wt(i))}}function Ct(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&&Ct(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function wt(e){M.schedule(e)}function Tt(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,_);for(var n=e.first;n!==null;)Tt(n,t),n=n.next}}function Et(e){tt(e,_);for(var t=e.first;t!==null;)Et(t),t=t.next}function Dt(e){let t=0,n=Kt(0),r;return()=>{_n()&&(H(n),Tn(()=>(t===0&&(r=U(()=>e(()=>Xt(n)))),t+=1,()=>{Xe(()=>{--t,t===0&&(r?.(),r=void 0,Xt(n))})})))}}var Ot=C|te;function kt(e,t,n,r){new At(e,t,n,r)}var At=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=Dt(()=>(this.#m=Kt(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=En(()=>{if(E){let e=this.#t;Ne();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()},Ot),E&&(this.#e=D)}#g(){try{this.#a=On(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=On(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=On(()=>e(this.#e)),Xe(()=>{var e=this.#c=document.createDocumentFragment(),t=an();e.append(t),this.#a=this.#x(()=>On(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Fn(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=On(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();zn(this.#a,e);let t=this.#n.pending;this.#o=On(()=>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){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}#x(e){var t=V,n=B,r=He;Kn(this.#i),Gn(this.#i),Ue(this.#i.ctx);try{return _t.ensure(),e()}catch(e){return Qe(e),null}finally{Kn(t),Gn(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&&Fn(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,Xe(()=>{this.#d=!1,this.#m&&Jt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),H(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.on_fork_commit(()=>{this.#C(e)})):this.#C(e)}#C(e){this.#a&&=(Mn(this.#a),null),this.#o&&=(Mn(this.#o),null),this.#s&&=(Mn(this.#s),null),E&&(Me(this.#t),Pe(),Me(Fe()));var t=this.#n.onerror;let n=this.#n.failed;var r=!1,i=!1;let a=()=>{if(r){Ae();return}r=!0,i&&we(),this.#s!==null&&Fn(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){$e(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return On(()=>{var t=V;t.b=this,t.f|=128,n(this.#e,()=>e,()=>a)})}catch(e){return $e(e,this.#i.parent),null}}))};Xe(()=>{var t;try{t=this.transform_error(e)}catch(e){$e(e,this.#i&&this.#i.parent);return}typeof t==`object`&&t&&typeof t.then==`function`?t.then(o,e=>$e(e,this.#i&&this.#i.parent)):o(t)})}};function jt(e,t,n,r){let i=Ge()?Ft:Lt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=V,s=Mt(),c=a.length===1?a[0].promise:a.length>1?Promise.all(a.map(e=>e.promise)):null;function l(e){s();try{r(e)}catch(e){o.f&16384||$e(e,o)}Nt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Pt();function d(){Promise.all(n.map(e=>It(e))).then(e=>l([...t.map(i),...e])).catch(e=>$e(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Nt()}):d()}function Mt(){var e=V,t=B,n=He,r=M;return function(i=!0){Kn(e),Gn(t),Ue(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Nt(e=!0){Kn(null),Gn(null),Ue(null),e&&M?.deactivate()}function Pt(){var e=V,t=e.b,n=M,r=t.is_rendered();return t.update_pending_count(1,n),n.increment(r,e),(i=!1)=>{t.update_pending_count(-1,n),n.decrement(r,e,i)}}function Ft(e){var t=2|v;return V!==null&&(V.f|=te),{ctx:He,deps:null,effects:null,equals:Le,f:t,fn:e,reactions:null,rv:0,v:Ee,wv:0,parent:V,ac:null}}function It(e,t,n){let r=V;r===null&&fe();var i=void 0,a=Kt(Ee),o=!B,s=new Map;return wn(()=>{var t=V,n=m();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Nt)}catch(e){n.reject(e),Nt()}var c=M;if(o){if(t.f&32768)var l=Pt();if(r.b.is_rendered())s.get(c)?.reject(w),s.delete(c);else{for(let e of s.values())e.reject(w);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===w),!(n===w||t.f&16384)){if(c.activate(),n)a.f|=se,Jt(a,n);else{a.f&8388608&&(a.f^=se),Jt(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(w)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),vn(()=>{for(let e of s.values())e.reject(w)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function N(e){let t=Ft(e);return Be||Jn(t),t}function Lt(e){let t=Ft(e);return t.equals=ze,t}function Rt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Mn(t[n])}}function zt(e){var t,n=V,r=e.parent;if(!Hn&&r!==null&&r.f&24576)return Oe(),e.v;Kn(r);try{e.f&=~ie,Rt(e),t=or(e)}finally{Kn(n)}return t}function Bt(e){var t=zt(e);if(!e.equals(t)&&(e.wv=rr(),(!M?.is_fork||e.deps===null)&&(M===null?e.v=t:M.capture(e,t,!0),e.deps===null))){tt(e,_);return}Hn||(lt===null?nt(e):(_n()||M?.is_fork)&<.set(e,t))}function Vt(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(w),t.teardown=f,t.ac=null,cr(t,0),An(t))}function Ht(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&lr(t)}var Ut=new Set,Wt=new Map,Gt=!1;function Kt(e,t){return{f:0,v:e,reactions:null,equals:Le,rv:0,wv:0}}function P(e,t){let n=Kt(e,t);return Jn(n),n}function qt(e,t=!1,n=!0){let r=Kt(e);return t||(r.equals=ze),Ve&&n&&He!==null&&He.l!==null&&(He.l.s??=[]).push(r),r}function F(e,t,n=!1){return B!==null&&(!Wn||B.f&131072)&&Ge()&&B.f&4325394&&(qn===null||!r.call(qn,e))&&Ce(),Jt(e,n?Qt(t):t,mt)}function Jt(e,t,n=null){if(!e.equals(t)){Wt.set(e,Hn?t:e.v);var r=_t.ensure();if(r.capture(e,t),e.f&2){let t=e;e.f&2048&&zt(t),lt===null&&nt(t)}e.wv=rr(),Zt(e,v,n),Ge()&&V!==null&&V.f&1024&&!(V.f&96)&&(Zn===null?Qn([e]):Zn.push(e)),!r.is_fork&&Ut.size>0&&!Gt&&Yt()}return t}function Yt(){Gt=!1;for(let e of Ut)e.f&1024&&tt(e,y),ir(e)&&lr(e);Ut.clear()}function Xt(e){F(e,e.v+1)}function Zt(e,t,n){var r=e.reactions;if(r!==null)for(var i=Ge(),a=r.length,o=0;o<a;o++){var s=r[o],c=s.f;if(!(!i&&s===V)){var l=(c&v)===0;if(l&&tt(s,t),c&2){var u=s;lt?.delete(u),c&65536||(c&512&&(s.f|=ie),Zt(u,y,n))}else if(l){var d=s;c&16&&bt!==null&&bt.add(d),n===null?wt(d):n.push(d)}}}}function Qt(e){if(typeof e!=`object`||!e||ce 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=tr,f=e=>{if(tr===d)return e();var t=B,n=tr;Gn(null),nr(d);var r=e();return Gn(t),nr(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)&&xe();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(Ee,s));r.set(t,e),Xt(a)}}else F(n,Ee),Xt(a);return!0},get(t,n,i){if(n===ce)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||o(t,n)?.writable)&&(a=f(()=>P(Qt(c?t[n]:Ee),s)),r.set(n,a)),a!==void 0){var l=H(a);return l===Ee?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!==Ee)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===ce)return!0;var n=r.get(t),i=n!==void 0&&n.v!==Ee||Reflect.has(e,t);return(n!==void 0||V!==null&&(!i||o(e,t)?.writable))&&(n===void 0&&(n=f(()=>P(i?Qt(e[t]):Ee,s)),r.set(t,n)),H(n)===Ee)?!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(Ee,s)),r.set(d+``,p)):F(p,Ee)}if(l===void 0)(!u||o(e,t)?.writable)&&(l=f(()=>P(void 0,s)),F(l,Qt(n)),r.set(t,l));else{u=l.v!==Ee;var m=f(()=>Qt(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)}Xt(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!==Ee});for(var[n,i]of r)i.v!==Ee&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Se()}})}var $t,en,tn,nn;function rn(){if($t===void 0){$t=window,en=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;tn=o(t,`firstChild`).get,nn=o(t,`nextSibling`).get,d(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),d(n)&&(n.__t=void 0)}}function an(e=``){return document.createTextNode(e)}function on(e){return tn.call(e)}function sn(e){return nn.call(e)}function I(e,t){if(!E)return on(e);var n=on(D);if(n===null)n=D.appendChild(an());else if(t&&n.nodeType!==3){var r=an();return n?.before(r),Me(r),r}return t&&dn(n),Me(n),n}function L(e,t=!1){if(!E){var n=on(e);return n instanceof Comment&&n.data===``?sn(n):n}if(t){if(D?.nodeType!==3){var r=an();return D?.before(r),Me(r),r}dn(D)}return D}function R(e,t=1,n=!1){let r=E?D:e;for(var i;t--;)i=r,r=sn(r);if(!E)return r;if(n){if(r?.nodeType!==3){var a=an();return r===null?i?.after(a):r.before(a),Me(a),a}dn(r)}return Me(r),r}function cn(e){e.textContent=``}function ln(){return!Be||bt!==null?!1:(V.f&S)!==0}function un(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function dn(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 fn(e,t){if(t){let t=document.body;e.autofocus=!0,Xe(()=>{document.activeElement===t&&e.focus()})}}function pn(e){var t=B,n=V;Gn(null),Kn(null);try{return e()}finally{Gn(t),Kn(n)}}function mn(e){V===null&&(B===null&&ge(e),he()),Hn&&me(e)}function hn(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function gn(e,t){var n=V;n!==null&&n.f&8192&&(e|=b);var r={ctx:He,deps:null,nodes:null,f:e|v|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)pt===null?_t.ensure().schedule(r):pt.push(r);else if(t!==null){try{lr(r)}catch(e){throw Mn(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&&hn(i,n),B!==null&&B.f&2&&!(e&64))){var a=B;(a.effects??=[]).push(i)}return r}function _n(){return B!==null&&!Wn}function vn(e){let t=gn(8,null);return tt(t,_),t.teardown=e,t}function yn(e){mn(`$effect`);var t=V.f;if(!B&&t&32&&!(t&32768)){var n=He;(n.e??=[]).push(e)}else return bn(e)}function bn(e){return gn(4|ne,e)}function xn(e){return mn(`$effect.pre`),gn(8|ne,e)}function Sn(e){_t.ensure();let t=gn(64|te,e);return(e={})=>new Promise(n=>{e.outro?Fn(t,()=>{Mn(t),n(void 0)}):(Mn(t),n(void 0))})}function Cn(e){return gn(4,e)}function wn(e){return gn(oe|te,e)}function Tn(e,t=0){return gn(8|t,e)}function z(e,t=[],n=[],r=[]){jt(r,t,n,t=>{gn(8,()=>e(...t.map(H)))})}function En(e,t=0){return gn(16|t,e)}function Dn(e,t=0){return gn(g|t,e)}function On(e){return gn(32|te,e)}function kn(e){var t=e.teardown;if(t!==null){let e=Hn,n=B;Un(!0),Gn(null);try{t.call(null)}finally{Un(e),Gn(n)}}}function An(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&pn(()=>{e.abort(w)});var r=n.next;n.f&64?n.parent=null:Mn(n,t),n=r}}function jn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Mn(t),t=n}}function Mn(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Nn(e.nodes.start,e.nodes.end),n=!0),tt(e,ee),An(e,t&&!n),cr(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();kn(e),e.f^=ee,e.f|=x;var i=e.parent;i!==null&&i.first!==null&&Pn(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=e.b=null}function Nn(e,t){for(;e!==null;){var n=e===t?null:sn(e);e.remove(),e=n}}function Pn(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 Fn(e,t,n=!0){var r=[];In(e,r,!0);var i=()=>{n&&Mn(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function In(e,t,n){if(!(e.f&8192)){e.f^=b;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;In(i,t,o?n:!1)}i=a}}}function Ln(e){Rn(e,!0)}function Rn(e,t){if(e.f&8192){e.f^=b,e.f&1024||(tt(e,v),_t.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Rn(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 zn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:sn(n);t.append(n),n=i}}var Bn=null,Vn=!1,Hn=!1;function Un(e){Hn=e}var B=null,Wn=!1;function Gn(e){B=e}var V=null;function Kn(e){V=e}var qn=null;function Jn(e){B!==null&&(!Be||B.f&2)&&(qn===null?qn=[e]:qn.push(e))}var Yn=null,Xn=0,Zn=null;function Qn(e){Zn=e}var $n=1,er=0,tr=er;function nr(e){tr=e}function rr(){return++$n}function ir(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ie),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(ir(a)&&Bt(a),a.wv>e.wv)return!0}t&512&<===null&&tt(e,_)}return!1}function ar(e,t,n=!0){var i=e.reactions;if(i!==null&&!(!Be&&qn!==null&&r.call(qn,e)))for(var a=0;a<i.length;a++){var o=i[a];o.f&2?ar(o,t,!1):t===o&&(n?tt(o,v):o.f&1024&&tt(o,y),wt(o))}}function or(e){var t=Yn,n=Xn,r=Zn,i=B,a=qn,o=He,s=Wn,c=tr,l=e.f;Yn=null,Xn=0,Zn=null,B=l&96?null:e,qn=null,Ue(e.ctx),Wn=!1,tr=++er,e.ac!==null&&(pn(()=>{e.ac.abort(w)}),e.ac=null);try{e.f|=ae;var u=e.fn,d=u();e.f|=S;var f=e.deps,p=M?.is_fork;if(Yn!==null){var m;if(p||cr(e,Xn),f!==null&&Xn>0)for(f.length=Xn+Yn.length,m=0;m<Yn.length;m++)f[Xn+m]=Yn[m];else e.deps=f=Yn;if(_n()&&e.f&512)for(m=Xn;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Xn<f.length&&(cr(e,Xn),f.length=Xn);if(Ge()&&Zn!==null&&!Wn&&f!==null&&!(e.f&6146))for(m=0;m<Zn.length;m++)ar(Zn[m],e);if(i!==null&&i!==e){if(er++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=er;if(t!==null)for(let e of t)e.rv=er;Zn!==null&&(r===null?r=Zn:r.push(...Zn))}return e.f&8388608&&(e.f^=se),d}catch(e){return Qe(e)}finally{e.f^=ae,Yn=t,Xn=n,Zn=r,B=i,qn=a,Ue(o),Wn=s,tr=c}}function sr(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&&(Yn===null||!r.call(Yn,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ie),s.v!==Ee&&nt(s),Vt(s),cr(s,0)}}function cr(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)sr(e,n[r])}function lr(e){var t=e.f;if(!(t&16384)){tt(e,_);var n=V,r=Vn;V=e,Vn=!0;try{t&16777232?jn(e):An(e),kn(e);var i=or(e);e.teardown=typeof i==`function`?i:null,e.wv=$n}finally{Vn=r,V=n}}}async function ur(){if(Be)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),vt()}function H(e){var t=(e.f&2)!=0;if(Bn?.add(e),B!==null&&!Wn&&!(V!==null&&V.f&16384)&&(qn===null||!r.call(qn,e))){var n=B.deps;if(B.f&2097152)e.rv<er&&(e.rv=er,Yn===null&&n!==null&&n[Xn]===e?Xn++:Yn===null?Yn=[e]:Yn.push(e));else{(B.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[B]:r.call(i,B)||i.push(B)}}if(Hn&&Wt.has(e))return Wt.get(e);if(t){var a=e;if(Hn){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||fr(a))&&(o=zt(a)),Wt.set(a,o),o}var s=(a.f&512)==0&&!Wn&&B!==null&&(Vn||(B.f&512)!=0),c=(a.f&S)===0;ir(a)&&(s&&(a.f|=512),Bt(a)),s&&!c&&(Ht(a),dr(a))}if(lt?.has(e))return lt.get(e);if(e.f&8388608)throw e.v;return e.v}function dr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Ht(t),dr(t))}function fr(e){if(e.v===Ee)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Wt.has(t)||t.f&2&&fr(t))return!0;return!1}function U(e){var t=Wn;try{return Wn=!0,e()}finally{Wn=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 pr=[`touchstart`,`touchmove`];function mr(e){return pr.includes(e)}var hr=Symbol(`events`),gr=new Set,_r=new Set;function vr(e,t,n,r={}){function i(e){if(r.capture||Cr.call(t,e),!e.cancelBubble)return pn(()=>n?.call(this,e))}return e.startsWith(`pointer`)||e.startsWith(`touch`)||e===`wheel`?Xe(()=>{t.addEventListener(e,i,r)}):t.addEventListener(e,i,r),i}function yr(e,t,n,r,i){var a={capture:r,passive:i},o=vr(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&vn(()=>{t.removeEventListener(e,o,a)})}function br(e,t,n){(t[hr]??={})[e]=n}function xr(e){for(var t=0;t<e.length;t++)gr.add(e[t]);for(var n of _r)n(e)}var Sr=null;function Cr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;Sr=e;var s=0,c=Sr===e&&e[hr];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[hr]=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;Gn(null),Kn(null);try{for(var p,m=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var g=o[hr]?.[r];g!=null&&(!o.disabled||e.target===o)&&g.call(o,e)}catch(e){p?m.push(e):p=e}if(e.cancelBubble||h===t||h===null)break;o=h}if(p){for(let e of m)queueMicrotask(()=>{throw e});throw p}}finally{e[hr]=t,delete e.currentTarget,Gn(d),Kn(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=un(`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)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(E)return Dr(D,null),D;i===void 0&&(i=Er(a?e:`<!>`+e),n||(i=on(i)));var t=r||en?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=on(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=an();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),Ne();return}e!==null&&e.before(t)}function Or(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function kr(e,t){return jr(e,t)}var Ar=new Map;function jr(e,{target:t,anchor:n,props:r={},events:a,context:o,intro:s=!0,transformError:c}){rn();var l=void 0,u=Sn(()=>{var s=n??t.appendChild(an());kt(s,{pending:()=>{}},t=>{A({});var n=He;if(o&&(n.c=o),a&&(r.$$events=a),E&&Dr(t,null),l=e(t,r)||{},E&&(V.nodes.end=D,D===null||D.nodeType!==8||D.data!==`]`))throw ke(),Te;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=mr(r);for(let e of[t,document]){var a=Ar.get(e);a===void 0&&(a=new Map,Ar.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(gr)),_r.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Ar.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Cr),r.delete(e),r.size===0&&Ar.delete(n)):r.set(e,i)}_r.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return Mr.set(l,u),l}var Mr=new WeakMap;function Nr(e,t){let n=Mr.get(e);return n?(Mr.delete(e),n(t)):Promise.resolve()}var Pr=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)Ln(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(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&&(Mn(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();zn(r,t),t.append(an()),this.#n.set(e,{effect:r,fragment:t})}else Mn(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Fn(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)||(Mn(n.effect),this.#n.delete(e))};ensure(e,t){var n=M,r=ln();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=an();i.append(a),this.#n.set(e,{effect:On(()=>t(a)),fragment:i})}else this.#t.set(e,On(()=>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,Ne());var i=new Pr(e),a=n?C:0;function o(e,t){if(E){var n=Ie(r);if(e!==parseInt(n.substring(1))){var a=Fe();Me(a),i.anchor=a,je(!1),i.ensure(e,t),je(!0);return}}i.ensure(e,t)}En(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function Fr(e,t){return t}function Ir(e,t,n){for(var r=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];Fn(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Lr(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;cn(d),d.append(u),e.items.clear()}Lr(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Lr(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|=re,zn(a,document.createDocumentFragment())):Mn(t[i],n)}}var Rr;function J(e,n,r,a,o,s=null){var c=e,l=new Map;if(n&4){var u=e;c=E?Me(on(u)):u.appendChild(an())}E&&Ne();var d=null,f=Lt(()=>{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,Br(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=re,Hr(d,null,c)):Ln(d):Fn(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:En(()=>{p=H(f);var e=p.length;let t=!1;E&&Ie(c)===`[!`!=(e===0)&&(c=Fe(),Me(c),je(!1),t=!0);for(var i=new Set,u=M,v=ln(),y=0;y<e;y+=1){E&&D.nodeType===8&&D.data===`]`&&(c=D,t=!0,je(!1));var b=p[y],x=a(b,y),S=h?null:l.get(x);S?(S.v&&Jt(S.v,b),S.i&&Jt(S.i,y),v&&u.unskip_effect(S.e)):(S=Vr(l,h?c:Rr??=an(),b,x,y,o,n,r),h||(S.e.f|=re),l.set(x,S)),i.add(x)}if(e===0&&s&&!d&&(h?d=On(()=>s(c)):(d=On(()=>s(Rr??=an())),d.f|=re)),e>i.size&&pe(``,``,``),E&&e>0&&Me(Fe()),!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&&je(!0),H(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,E&&(c=D)}function zr(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Br(e,t,n,r,a){var o=(r&8)!=0,s=t.length,c=e.items,l=zr(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&&(Ln(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_.f&33554432)if(_.f^=re,_===l)Hr(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Ur(e,d,_),Ur(e,_,y),Hr(_,y,n),d=_,p=[],m=[],l=zr(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],ee=p[p.length-1];for(x=0;x<p.length;x+=1)Hr(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Ur(e,S.prev,ee.next),Ur(e,d,S),Ur(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Hr(_,l,n),Ur(e,_.prev,_.next),Ur(e,_,d===null?e.effect.first:d.next),Ur(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=zr(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=zr(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Lr(e,i(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var C=[];if(u!==void 0)for(_ of u)_.f&8192||C.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&C.push(l),l=zr(l.next);var te=C.length;if(te>0){var ne=r&4&&s===0?n:null;if(o){for(v=0;v<te;v+=1)C[v].nodes?.a?.measure();for(v=0;v<te;v+=1)C[v].nodes?.a?.fix()}Ir(e,C,ne)}}o&&Xe(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Vr(e,t,n,r,i,a,o,s){var c=o&1?o&16?Kt(n):qt(n,!1,!1):null,l=o&2?Kt(i):null;return{v:c,i:l,e:On(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Hr(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=sn(r);if(a.before(r),r===i)return;r=o}}function Ur(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Wr(e,t,...n){var r=new Pr(e);En(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},C)}function Gr(e,t,n){var r;E&&(r=D,Ne());var i=new Pr(e);En(()=>{var e=t()??null;if(E&&Ie(r)===`[`!=(e!==null)){var a=Fe();Me(a),i.anchor=a,je(!1),i.ensure(e,e&&(t=>n(t,e))),je(!0);return}i.ensure(e,e&&(t=>n(t,e)))},C)}function Kr(e,t){var n=void 0,r;Dn(()=>{n!==(n=t())&&(r&&=(Mn(r),null),n&&(r=On(()=>{Cn(()=>n(e))})))})}function qr(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=qr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Jr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=qr(e))&&(r&&(r+=` `),r+=t);return r}function Yr(e){return typeof e==`object`?Jr(e):e??``}var Xr=[...`
|
|
6
|
+
\r\f\xA0\v`];function Zr(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||Xr.includes(r[o-1]))&&(s===r.length||Xr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function Qr(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 $r(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ei(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($r)),i&&c.push(...Object.keys(i).map($r));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=$r(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+=Qr(r)),i&&(n+=Qr(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.__className;if(E||o!==n||o===void 0){var s=Zr(n,r,a);(!E||s!==e.getAttribute(`class`))&&(s==null?e.removeAttribute(`class`):t?e.className=s:e.setAttribute(`class`,s)),e.__className=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 ti(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 ni(e,t,n,r){var i=e.__style;if(E||i!==t){var a=ei(t,r);(!E||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(ti(e,n?.[0],r[0]),ti(e,n?.[1],r[1],`important`)):ti(e,n,r));return r}var ri=Symbol(`is custom element`),ii=Symbol(`is html`),ai=T?`link`:`LINK`;function oi(e,t,n,r){var i=si(e);E&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===ai)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[ue]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&li(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function si(e){return e.__attributes??={[ri]:e.nodeName.includes(`-`),[ii]:e.namespaceURI===De}}var ci=new Map;function li(e){var t=e.getAttribute(`is`)||e.nodeName,n=ci.get(t);if(n)return n;ci.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=s(i),r)r[o].set&&n.push(o);i=u(i)}return n}var ui=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 di(e,t,n){var r=ui.observe(e,()=>n(e[t]));Cn(()=>(U(()=>n(e[t])),r))}function fi(e,t){return e===t||e?.[ce]===t}function pi(e={},t,n,r){var i=He.r,a=V;return Cn(()=>{var o,s;return Tn(()=>{o=s,s=r?.()||[],U(()=>{e!==n(...s)&&(t(e,...s),o&&fi(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&&fi(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function mi(e,t,n,r){var i=!Ve||(n&2)!=0,a=(n&8)!=0,s=(n&16)!=0,c=r,l=!0,u=()=>(l&&(l=!1,c=s?U(r):r),c);let d;if(a){var f=ce in e||le in e;d=o(e,t)?.set??(f&&t in e?n=>e[t]=n:void 0)}var p,m=!1;a?[p,m]=st(()=>e[t]):p=e[t],p===void 0&&r!==void 0&&(p=u(),d&&(i&&ye(t),d(p)));var h=i?()=>{var n=e[t];return n===void 0?u():(l=!0,n)}:()=>{var n=e[t];return n!==void 0&&(c=void 0),n===void 0?c:n};if(i&&!(n&4))return h;if(d){var g=e.$$legacy;return(function(e,t){return arguments.length>0?((!i||!t||g||m)&&d(t?h():e),e):h()})}var _=!1,v=(n&1?Ft:Lt)(()=>(_=!1,h()));a&&H(v);var y=V;return(function(e,t){if(arguments.length>0){let n=t?H(v):i&&a?Qt(e):e;return F(v,n),_=!0,c!==void 0&&(c=n),e}return Hn&&_||y.f&16384?v.v:H(v)})}function hi(){return B===null&&ve(),(B.ac??=new AbortController).signal}function gi(e){He===null&&de(`onMount`),Ve&&He.l!==null?_i(He).m.push(e):yn(()=>{let t=U(e);if(typeof t==`function`)return t})}function _i(e){var t=e.l;return t.u??={a:[],b:[],m:[]}}typeof window<`u`&&((window.__svelte??={}).v??=new Set).add(`5`);function vi(e,t=void 0){return function(n){return n.key===`Enter`||n.key===` `&&!n.preventDefault()?e.call(t,n):void 0}}function yi(e){return t=>{typeof e==`string`?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function bi(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 xi(e){return t=>{let n=new ResizeObserver(n=>{for(let r of n)e(t,r)});return n.observe(t),()=>{n.unobserve(t)}}}function Si(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 X(...e){return Object.assign(...e)}function Ci(e){return Object.keys(e)}function wi(e){return Object.entries(e)}function Ti(e,t){return Object.hasOwn(e,t)}function Ei(e){return Math.floor(e)}function Di(e){return Math.ceil(e)}function Oi(...e){return Math.min(...e)}function ki(...e){return Math.max(...e)}function Ai(){return Symbol(`ec`)}function ji(e){return e.length}function Mi(e){return!ji(e)}function Ni(e=new Date){return-e.getTimezoneOffset()}function Pi(e){return Array.isArray(e)}function Z(e){return typeof e==`function`}function Fi(e){if(typeof e!=`object`||!e)return!1;let t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Ii(e){return e instanceof Date}function Li(e){return e()}function Ri(e){e.forEach(Li)}function zi(){}var Bi=e=>e;function Vi(){return window.getComputedStyle(document.documentElement).direction===`rtl`}function Hi(e){return t=>t===void 0?void 0:e(t)}var Ui=86400;function Wi(e=new Date,t=void 0){return Ii(e)?pa(e,t):ma(e,t)}function Gi(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 Ii(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 da(t,fa(e)),t}function Ki(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;)Yi(e);return e.setUTCDate(e.getUTCDate()+n*t.days),e.setUTCSeconds(e.getUTCSeconds()+n*t.seconds),e}function qi(e,t,n=1){return Ki(e,t,-n)}function Ji(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function Yi(e,t=1){return Ji(e,-t)}function Xi(e){return e.setUTCHours(0,0,0,0),e}function Zi(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function Qi(e,t=19){return e.toISOString().substring(0,t)}function $i(e,...t){return t.every(t=>e.getTime()===t.getTime())}function ea(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n>=0?n:n+7)),e}function ta(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n<=0?n:n-7)),e}function na(e){return typeof e==`string`&&e.length<=10}function ra(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function $(e){return e.seconds}function ia(e,t,n){return Ki(e,t),ha(e,n,Ji),e}function aa(e,t,n){return qi(e,t),ha(e,n,Yi),e}function oa(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/Ui+1)/7)}function sa(e,t,n){return t?Z(t)?t({date:Zi(n),week:e}):t:`W`+String(e).padStart(2,`0`)}function ca(e,t={}){let n=e.match(/([+-])(\d{2}):(\d{2})$/);if(n)return X(t,n),(n[1]+`1`)*(n[2]*60+ +n[3])}function la(e,t){return t&&e.setUTCMinutes(e.getUTCMinutes()+t),e}var ua=Symbol(`ec`);function da(e,t){return e[ua]=t,e}function fa(e){return e[ua]}function pa(e,t=void 0){let n=new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()));return la(n,t?t-Ni(n):0),da(n,t??Ni(n)),n}function ma(e,t=void 0){let n={},r=ca(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&&la(a,t-r),da(a,t??r),a}function ha(e,t,n){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)n(e)}var ga=Ai();function _a(e,t){e[ga]=t}function va(e){return!!e?.[ga]}function ya(e){return e[ga]}function ba(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 xa(e){return e.getBoundingClientRect()}function Sa(e,t){for(;t--;)e=e.parentElement;return e}function Ca(e){return xa(e).height}function wa(e,t,n=document,r=[]){r.push(n);for(let i of n.elementsFromPoint(e,t)){if(va(i))return i;if(i.shadowRoot&&!r.includes(i.shadowRoot)){let n=wa(e,t,i.shadowRoot,r);if(n)return n}}return null}function Ta(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function Ea(e,t=void 0){return function(n){n.stopPropagation(),e&&e.call(t,n)}}function Da(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 Oa(e){return e=X({},e),e.currentStart=Zi(e.currentStart),e.currentEnd=Zi(e.currentEnd),e.activeStart=Zi(e.activeStart),e.activeEnd=Zi(e.activeEnd),e}var ka=1;function Aa(e,t=void 0){return e.map(e=>{let n={id:`id`in e?String(e.id):`{generated-${ka++}}`,resourceIds:ja(e,`resourceId`).map(String),allDay:e.allDay??(na(e.start)&&na(e.end)),start:Wi(e.start,t),end:Wi(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:ja(e,`className`),styles:ja(e,`style`)};if(n.allDay){Xi(n.start);let e=Q(n.end);Xi(n.end),(!$i(n.end,e)||$i(n.end,n.start))&&Ji(n.end)}return n})}function ja(e,t){let n=e[t+`s`]??e[t]??[];return Pi(n)?n:[n]}function Ma(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 Na(e,t,n,r,i,a){let o=i.formatRange(e.start,t&&e.event.display!==`pointer`&&!e.zeroDuration?ra(Q(e.start),e.end):e.start),s;if(n&&(s=Z(n)?n({event:Ia(e.event),timeText:o,view:Oa(a)}):n),s===void 0){let t;switch(e.event.display){case`background`:t=[];break;case`pointer`:t=e.event.allDay?[]:[Pa(o,e,r)];break;default:t=[...e.event.allDay?[]:[Pa(o,e,r)],ba(`h4`,r.eventTitle,e.event.title)]}s={domNodes:t}}return[o,s]}function Pa(e,t,n){return ba(`time`,n.eventTime,e,[[`datetime`,Qi(t.start)]])}function Fa(e,t,n){let r=t.classNames;return e&&(Z(e)&&(e=e({event:Ia(t),view:Oa(n)})),r=[...Pi(e)?e:[e],...r]),r}function Ia(e){return Ra(e,Zi)}function La(e){return Ra(e,Q)}function Ra(e,t){return e=X({},e),e.start=t(e.start),e.end=t(e.end),e}function za(e,t){e.length=t.length;for(let t of e)t?.reposition()}function Ba(e,t,n,r=void 0){return(!r||e.resourceIds.includes(r.id))&&e.start<n&&e.end>t}function Va(e){return Ua(e)||Wa(e)||Ga(e)}function Ha(e){return e===`background`}function Ua(e){return e===`preview`}function Wa(e){return e===`ghost`}function Ga(e){return e===`pointer`}function Ka(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:$i(t,n)}}function qa(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&&Ba(e,u,d,l)&&(r.push(u),i=d,a||(a=n,o=c,s=l));if(r.length){let t=Ka(e,r[0],i);return X(t,{gridColumn:a,gridRow:o,resource:s,dates:r}),n&&Qa(t),[t]}return[]}function Ja(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 Ya(e,t,n=1){e.prev&&(n=e.prev.bottom+1);let r=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&&r>e.top){let t=e.bottom-n+1;n+=t,r+=t}}return X(e,{top:n,bottom:r}),n}var Xa=new WeakMap,Za=1;function Qa(e){let{event:t,gridColumn:n,gridRow:r}=e,i=Xa.get(t);i||(i=Za++,Xa.set(t,i)),e.id=`${i}-${n}-${r}`}function $a(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return U(()=>{i=Z(r)?{format:r}:new Intl.DateTimeFormat(n,r)}),{format:e=>i.format(Zi(e))}}}function eo(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return U(()=>{if(Z(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+=to(a[1-t],r),o[t]=!0):i+=e.value}return i}}}}),{formatRange:(e,t)=>i(Zi(e),Zi(t))}}}function to(e,t){let n=``;for(let r of t)r.source==e&&(n+=r.value);return n}function no(e){return oo(e,`day`)}function ro(e){return oo(e,`week`)}function io(e){return oo(e,`month`)}function ao(e){return oo(e,`year`)}function oo(e,t){return{...e,next:`Next `+t,prev:`Previous `+t}}function so(e){return t=>({...t,view:e})}function co(e){let t,n;return e&&({start:t,end:n}=e,t&&=Xi(Wi(t)),n&&=Xi(Wi(n))),{start:t,end:n}}function lo(e,t){return t.start&&e<t.start||t.end&&e>t.end}function uo(e){let t=[];return fo(e,0,!1,t),t}function fo(e,t,n,r){let i=[];for(let a of e){let e=po(a);i.push(e),r.push(e);let o={level:t,children:[],hidden:n};_a(e,o),a.children&&(o.children=fo(a.children,t+1,n||!e.expanded,r))}return i}function po(e){return{id:String(e.id),title:e.title||``,eventBackgroundColor:mo(e),eventTextColor:ho(e),expanded:e.expanded??!0,extendedProps:e.extendedProps??{}}}function mo(e){return e?.eventBackgroundColor}function ho(e){return e?.eventTextColor}function go(e,t){return Mi(e.resourceIds)?void 0:t.find(t=>e.resourceIds.includes(t.id))}function _o(e,t,n,r,i){let a=[];e=Q(e);let o=Q(e);for(Ki(e,r.min),Ki(o,r.max);e<o;)a.push([Qi(e),i.format(e)]),Ki(e,t,n);let s=Ei((e-o)/1e3/$(t));return s&&s!==n&&(a.at(-1)[2]=n-s),a}function vo(e,t,n,r,i){let a=Gi(e),o=Gi(t);if(n){let e=Gi(Oi($(a),ki(0,$(o)-Ui))),t=Gi(ki($(o),$(e)+Ui)),s=Z(n?.eventFilter)?n.eventFilter:e=>!Ha(e.display);loop:for(let n of r){let r=Ki(Q(n),a),c=Ki(Q(n),o),l=Ki(Q(n),e),u=Ki(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=ki((d.start-n)/1e3,$(e));t<$(a)&&(a.seconds=t)}if(d.end>c){let e=Oi((d.end-n)/1e3,$(t));e>$(o)&&(o.seconds=e)}if($(a)===$(e)&&$(o)===$(t))break loop}}}return{min:a,max:o}}var yo=class extends Map{#e=new Map;#t=P(0);#n=P(0);#r=tr||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return tr===this.#r?P(e):Kt(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)}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),Xt(o);else if(i!==t){Xt(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&Xt(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),Xt(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);Xt(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 bo(e){let t=0,n=P(Qt(t));return So(e,()=>H(n),()=>!0,()=>F(n,++t,!0))}function xo(e){let t=0,n=Qt({});return So(e,e=>n[e],(e,t)=>e!==t,e=>n[e]=++t)}function So(e,t,n,r){return new Proxy(e,{get(e,n,r){return Ti(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 Co(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,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:`numeric`,minute:`2-digit`},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:`title`,center:``,end:`today prev,next`},height:void 0,hiddenDays:[],highlightedDates:[],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`,event:`ec-event`,eventBody:`ec-event-body`,eventTime:`ec-event-time`,eventTitle:`ec-event-title`,events:`ec-events`,grid:`ec-grid`,header:`ec-header`,hidden:`ec-hidden`,highlight:`ec-highlight`,icon:`ec-icon`,main:`ec-main`,noBeb:`ec-no-beb`,noIeb:`ec-no-ieb`,today:`ec-today`,title:`ec-title`,toolbar:`ec-toolbar`,view:``,weekdays:[`ec-sun`,`ec-mon`,`ec-tue`,`ec-wed`,`ec-thu`,`ec-fri`,`ec-sat`],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 wo(e){let t={date:e=>Xi(Wi(e)),dateIncrement:Hi(Gi),duration:Gi,events:Aa,eventSources:Ma,hiddenDays:e=>[...new Set(e)],highlightedDates:e=>e.map(e=>Xi(Wi(e))),resources:e=>Pi(e)?uo(e):e,validRange:co};for(let n of e)n.createParsers?.(t);return t}var To=[`buttonText`,`customButtons`,`icons`,`theme`];function Eo(e,t){let n=Co(e),r=wo(e);n=Do(n,r),t=Do(t,r);let i=Oo(n,`views`)??{},a=Oo(t,`views`)??{},o=xo({});X(o,n),t.view&&(o.view=t.view);let s={},c={},l={},u=new Set([...Ci(i),...Ci(a)]);for(let e of u){let r=a[e]??{},u=ko(n,i[e]??i[r.type]??{}),d=ko(u,t,r),f=Oo(d,`component`);delete d.view;for(let e of Ci(d))Ti(o,e)?(s[e]??=[],s[e].push(To.includes(e)?t=>d[e]=Z(t)?t(u[e]):t:t=>d[e]=t)):delete d[e];c[e]=d,l[e]=f}return X(o,c[o.view]),[o,function(e,t,n=!0){Ti(o,e)&&(n||(e in r?t=r[e](t):Fi(t)?t={...t}:Pi(t)&&(t=[...t])),s[e]?.forEach(e=>e(t)),o[e]=t)},function(e){return X(o,c[e]),l[e]}]}function Do(e,t){let n={...e};for(let e of Ci(t))e in n&&(n[e]=t[e](n[e]));if(e.views){n.views={};for(let r of Ci(e.views))n.views[r]=Do(e.views[r],t)}return n}function Oo(e,t){let n=e[t];return delete e[t],n}function ko(...e){let t={};for(let n of e){let e={};for(let r of To)Z(n[r])&&(e[r]=n[r](t[r]));t={...t,...n,...e}}return t}function Ao(e,t){let n=[];for(let r of Ci(e))e[r]!==t[r]&&n.push([r,e[r]]);return n}function jo(e){return()=>{let{options:{view:t}}=e;U(()=>{let n=e.setViewOptions(t);e.extensions={},e.features=[],e.viewComponent=n(e)})}}function Mo(e,t){return()=>{let{activeRange:n,fetchedRange:{events:r},offset:i,viewDates:a,options:{events:o,eventSources:s,lazyFetching:c,timeZone:l}}=e;U(()=>{Po(s.map(e=>Z(e.events)?e.events:e),o,e=>Aa(e,i),t=>e.events=bo(t),l,n,r,a,!0,c,t)})}}function No(e,t){return()=>{let{activeRange:n,fetchedRange:{resources:r},viewDates:i,options:{lazyFetching:a,refetchResourcesOnNavigate:o,resources:s,timeZone:c}}=e;U(()=>{Po(Pi(s)?[]:[s],s,uo,t=>e.resources=bo(t),c,n,r,i,o,a,t)})}}function Po(e,t,n,r,i,a,o,s,c,l,u){if(!Mi(s)){if(Mi(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=Qi(a.start),f=Qi(a.end);for(let t of e)if(u.start(),Z(t)){let e=t(c?{start:Zi(a.start),end:Zi(a.end),startStr:d,endStr:f,timeZone:i}:{},l,s);e!==void 0&&Promise.resolve(e).then(l,s)}else{let e=Z(t.extraParams)?t.extraParams():X({},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:hi(),credentials:`same-origin`}).then(e=>e.json()).then(l).catch(s)}X(o,{...a,timeZone:i})}}}function Fo(e){let t=0;function n(t){let{options:{loading:n}}=e;Z(n)&&n(t)}return{start:()=>++t===1&&n(!0),stop:()=>--t===0&&n(!1)}}function Io(e){return()=>{let{offset:t}=e,n=setInterval(()=>{let n=Wi(void 0,t),r=Xi(Q(n));e.now=n,$i(e.today,r)||(e.today=r)},1e3);return()=>clearInterval(n)}}function Lo(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=fa(n[e]);r!==void 0&&la(n[e],t-r),da(n[e],t)}let r=fa(n.date);if(r!==void 0){let i=Wi(void 0,t).getUTCDay()-Wi(void 0,r).getUTCDay(),a=Ji(Q(n.date),i);e.setOption(`date`,a)}da(n.date,t)})}}function Ro(e){return()=>{let{activeRange:t,options:{datesSet:n}}=e;U(()=>{Z(n)&&n({start:Zi(t.start),end:Zi(t.end),startStr:Qi(t.start),endStr:Qi(t.end),view:Oa(e.view)})})}}function zo(e){let t;return()=>{let{filteredEvents:n,options:{eventAllUpdated:r}}=e;U(()=>{Z(r)&&(t||=setTimeout(()=>{t=null,r({view:Oa(e.view)})}))})}}function Bo(e){return()=>{let{options:{view:t,viewDidMount:n}}=e;U(()=>{Z(n)&&ur().then(()=>n({view:Oa(e.view)}))})}}function Vo(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&&ta(i,r),a=Ki(Q(i),n)}),{start:i,end:a}}}function Ho(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 Uo(e){return()=>{let{events:t,options:{eventFilter:n,eventOrder:r,filterEventsWithResources:i,resources:a,view:o}}=e,s=[...t];return U(()=>{if(Z(n)){let r=t.map(Ia),i=Oa(e.view);s=s.filter((e,t)=>n({event:Ia(e),index:t,events:r,view:i}))}i&&(s=s.filter(e=>a.some(t=>e.resourceIds.includes(t.id)))),Z(r)?s.sort((e,t)=>r(Ia(e),Ia(t))):s.sort((e,t)=>e.start-t.start||t.allDay-e.allDay)}),s}}function Wo(e){return()=>{let{options:{timeZone:t}}=e,n;return U(()=>{n=t===`local`?Ni():t===`UTC`?0:ca(t)??Ni()}),n}}function Go(e){return()=>{let{options:t,activeRange:n}=e,{hiddenDays:r}=t,i=[];return U(()=>{let t=Xi(Q(n.start)),a=Xi(Q(n.end));for(;t<a;)r.includes(t.getUTCDay())||i.push(Q(t)),Ji(t);if(!i.length&&r.length&&r.length<7){for(;r.includes(t.getUTCDay());)Ji(t);ur().then(()=>{e.setOption(`date`,t)})}}),i}}function Ko(e){return()=>{let{currentRange:t,intlTitle:n}=e,r;return U(()=>{r=n.formatRange(t.start,Yi(Q(t.end)))}),r}}function qo(e){return()=>{let{activeRange:t,currentRange:n,viewTitle:r,options:{view:i}}=e,a;return U(()=>{a=Da(i,r,n,t)}),a}}var Jo=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 today(){return H(this.#u)}set today(e){F(this.#u,e,!0)}#d;get intlEventTime(){return H(this.#d)}set intlEventTime(e){F(this.#d,e)}#f;get intlDayHeader(){return H(this.#f)}set intlDayHeader(e){F(this.#f,e)}#p;get intlDayHeaderAL(){return H(this.#p)}set intlDayHeaderAL(e){F(this.#p,e)}#m;get intlTitle(){return H(this.#m)}set intlTitle(e){F(this.#m,e)}#h;get viewDates(){return H(this.#h)}set viewDates(e){F(this.#h,e)}#g;get viewTitle(){return H(this.#g)}set viewTitle(e){F(this.#g,e)}#_;get view(){return H(this.#_)}set view(e){F(this.#_,e)}#v;get viewComponent(){return H(this.#v)}set viewComponent(e){F(this.#v,e,!0)}#y;get extensions(){return H(this.#y)}set extensions(e){F(this.#y,e,!0)}#b;get features(){return H(this.#b)}set features(e){F(this.#b,e,!0)}#x;get interaction(){return H(this.#x)}set interaction(e){F(this.#x,e,!0)}#S;get iClasses(){return H(this.#S)}set iClasses(e){F(this.#S,e,!0)}#C;get iClass(){return H(this.#C)}set iClass(e){F(this.#C,e,!0)}options;setOption;setViewOptions;constructor(e,t){[this.options,this.setOption,this.setViewOptions]=Eo(e,t),this.#e=P(Qt([])),this.#t=N(Wo(this)),this.#n=N(Vo(this)),this.#r=N(Ho(this)),this.#i=P(Qt({events:{},resources:{}})),this.#a=P(bo(this.options.events)),this.#o=N(Uo(this)),this.#s=P(),this.#c=P(Qt(Wi(void 0,this.offset))),this.#l=P(bo(Pi(this.options.resources)?this.options.resources:[])),this.#u=P(Qt(Xi(Q(this.now)))),this.#d=N(eo(this,`eventTimeFormat`)),this.#f=N($a(this,`dayHeaderFormat`)),this.#p=N($a(this,`dayHeaderAriaLabelFormat`)),this.#m=N(eo(this,`titleFormat`)),this.#h=N(Go(this)),this.#g=N(Ko(this)),this.#_=N(qo(this)),this.#v=P(),this.#y=P(Qt({})),this.#b=P(Qt([])),this.#x=P(Qt({})),this.iEvents=new yo,this.#S=P(Qt(Bi)),this.#C=P();for(let t of e)t.initState?.(this);this.#w()}#w(){let e=Fo(this);xn(jo(this)),xn(Lo(this)),xn(Io(this)),yn(Mo(this,e)),yn(No(this,e)),yn(Ro(this)),yn(zo(this)),yn(Bo(this))}},Yo=W(`<h2></h2>`),Xo=W(`<button><i></i></button>`),Zo=W(`<button><i></i></button>`),Qo=W(`<button> </button>`),$o=W(`<button></button>`),es=W(`<button> </button>`);function ts(e,t){A(t,!0);let n=k(`state`),r=N(()=>n.currentRange),i=N(()=>n.today),a=N(()=>n.viewTitle),o=N(()=>n.viewDates),s=N(()=>n.options.buttonText),c=N(()=>n.options.customButtons),l=N(()=>n.options.date),u=N(()=>n.options.dateIncrement),d=N(()=>n.options.duration),f=N(()=>n.options.hiddenDays),p=N(()=>n.options.theme),m=N(()=>n.options.validRange),h=N(()=>n.options.view),g=P(!1),_=P(!1),v=P(!1),y=!1;xn(()=>{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(ee),!0)),ur().then(()=>y=!1))})});function b(e){let t=H(l);e();let r=H(o).every(e=>lo(e,H(m)));return n.setOption(`date`,t),r}function x(){n.setOption(`date`,aa(Q(H(l)),H(u)??H(d),H(f)))}function S(){n.setOption(`date`,ia(Q(H(l)),H(u)??H(d),H(f)))}function ee(){n.setOption(`date`,Q(H(i)))}var C=G();J(L(C),17,()=>t.buttons,Fr,(e,t)=>{var r=G(),i=L(r),o=e=>{var t=Yo();Kr(t,()=>yi(H(a))),z(()=>Y(t,1,H(p).title)),K(e,t)},l=e=>{var n=Xo(),r=I(n);O(n),z(()=>{Y(n,1,`${H(p).button??``} ec-${H(t)??``}`),oi(n,`aria-label`,H(s).prev),oi(n,`title`,H(s).prev),n.disabled=H(g),Y(r,1,`${H(p).icon??``} ec-${H(t)??``}`)}),br(`click`,n,x),K(e,n)},u=e=>{var n=Zo(),r=I(n);O(n),z(()=>{Y(n,1,`${H(p).button??``} ec-${H(t)??``}`),oi(n,`aria-label`,H(s).next),oi(n,`title`,H(s).next),n.disabled=H(_),Y(r,1,`${H(p).icon??``} ec-${H(t)??``}`)}),br(`click`,n,S),K(e,n)},d=e=>{var n=Qo(),r=I(n,!0);O(n),z(()=>{Y(n,1,`${H(p).button??``} ec-${H(t)??``}`),n.disabled=H(v),Or(r,H(s)[H(t)])}),br(`click`,n,ee),K(e,n)},f=e=>{var n=$o();Kr(n,()=>yi(H(c)[H(t)].text)),z(()=>Y(n,1,Yr([H(p).button,`ec-${H(t)}`,H(c)[H(t)].active&&H(p).active]))),br(`click`,n,function(...e){H(c)[H(t)].click?.apply(this,e)}),K(e,n)},m=e=>{var r=es(),i=I(r,!0);O(r),z(()=>{Y(r,1,Yr([H(p).button,`ec-${H(t)}`,H(h)===H(t)&&H(p).active])),Or(i,H(s)[H(t)])}),br(`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,C),j()}xr([`click`]);var ns=W(`<div><!></div>`),rs=W(`<div></div>`),is=W(`<nav></nav>`);function as(e,t){A(t,!0);let n=N(()=>k(`state`)),r=N(()=>H(n).options.headerToolbar),i=N(()=>H(n).options.theme),a=N(()=>{let e={};for(let t of[`start`,`center`,`end`])e[t]=H(r)[t]?.split(` `).map(e=>e.split(`,`))??[];return e});var o=is();J(o,21,()=>Ci(H(a)),Fr,(e,t)=>{var n=rs();J(n,21,()=>H(a)[H(t)],Fr,(e,t)=>{var n=G(),r=L(n),a=e=>{var n=ns();ts(I(n),{get buttons(){return H(t)}}),O(n),z(()=>Y(n,1,H(i).buttonGroup)),K(e,n)},o=e=>{ts(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 os=W(`<div><!> <!> <!></div>`);function ss(e,t){A(t,!0);let n=mi(t,`plugins`,19,()=>[]),r=mi(t,`options`,19,()=>({})),i=new Jo(n(),r());We(`state`,i);let a=N(()=>i.auxComponents),o=N(()=>i.features),s=N(()=>i.events),c=N(()=>i.interaction),l=N(()=>i.iClass),u=N(()=>i.offset),d=N(()=>i.view),f=N(()=>i.viewComponent),p=N(()=>i.options.date),m=N(()=>i.options.dateIncrement),h=N(()=>i.options.duration),g=N(()=>i.options.height),_=N(()=>i.options.hiddenDays),v=N(()=>i.options.customScrollbars),y=N(()=>i.options.theme),b={...r()};xn(()=>{for(let[e,t]of Ao(r(),b))U(()=>{x(e,t)});X(b,r())});function x(e,t){return i.setOption(e,t,!1),this}function S(e){let t=i.options[e];return Ii(t)?Zi(t):t}function ee(){return i.fetchedRange.resources={},this}function C(){return i.fetchedRange.events={},this}function te(){return H(s).map(Ia)}function ne(e){e=String(e);for(let t of H(s))if(t.id===e)return Ia(t);return null}function re(e){return e=Aa([e],H(u))[0],H(s).push(e),Ia(e)}function ie(e){let t=String(e.id),n=H(s).findIndex(e=>e.id===t);return n>=0?(e=Aa([e],H(u))[0],H(s)[n]=e,Ia(e)):null}function ae(e){e=String(e);let t=H(s).findIndex(t=>t.id===e);return t>=0&&H(s).splice(t,1),this}function oe(){return Oa(H(d))}function se(){return H(c).action?.unselect(),this}function ce(e,t){let n=wa(e,t);if(n){let r=ya(n)(e,t);return r.date=Zi(r.date),r}return null}function le(){return i.setOption(`date`,ia(Q(H(p)),H(m)??H(h),H(_))),this}function ue(){return i.setOption(`date`,aa(Q(H(p)),H(m)??H(h),H(_))),this}var w={setOption:x,getOption:S,refetchResources:ee,refetchEvents:C,getEvents:te,getEventById:ne,addEvent:re,updateEvent:ie,removeEventById:ae,getView:oe,unselect:se,dateFromPoint:ce,next:le,prev:ue},T=os();let de;var fe=I(T);as(fe,{});var pe=R(fe,2);return Gr(pe,()=>H(f),(e,t)=>{t(e,{})}),J(R(pe,2),17,()=>H(a),Fr,(e,t)=>{var n=G();Gr(L(n),()=>H(t),(e,t)=>{t(e,{})}),K(e,n)}),O(T),z(e=>{Y(T,1,Yr([H(y).calendar,H(y).view,H(l)&&H(y)[H(l)],H(v)&&H(y).customScrollbars])),oi(T,`role`,e),de=ni(T,``,de,{height:H(g)})},[()=>H(o).includes(`list`)?`list`:`table`]),K(e,T),j(w)}function cs(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 ls(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:Ji(Q(c)),disabled:lo(c,r),highlight:n.some(e=>$i(e,c))}),t===a&&(o.push(e),e=[],t=0,++s),++t}),o}}function us(e,t){return()=>{let{filteredEvents:n}=e,{grid:r}=t,i=[],a=[];return U(()=>{for(let e of n)for(let t of r)Ha(e.display)?e.allDay&&(a=a.concat(qa(e,t))):i=i.concat(qa(e,t));Ja(i)}),{chunks:i,bgChunks:a}}}function ds(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(qa(e,t,!1))});return i}}var fs=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=N(cs(e)),this.#t=N(ls(e,this)),this.#n=P();let t=N(us(e,this)),n=N(()=>H(t).chunks),r=N(()=>H(t).bgChunks);this.#r=N(()=>H(n)),this.#i=N(()=>H(r)),this.#a=N(ds(e,this)),this.hiddenChunks=new yo,this.#o=N($a(e,`dayCellFormat`)),this.#s=N($a(e,`dayPopoverFormat`)),this.#c=P(null)}},ps=W(`<div><!></div>`);function ms(e,t){A(t,!0);let n=mi(t,`el`,15),r=mi(t,`allDay`,3,!1),i=mi(t,`resource`,3,void 0),a=mi(t,`dateFromPoint`,3,()=>t.date),o=mi(t,`classes`,3,Bi),s=mi(t,`disabled`,3,!1),c=mi(t,`highlight`,3,!1),l=mi(t,`role`,3,`cell`),u=mi(t,`noIeb`,3,!1),d=mi(t,`noBeb`,3,!1),p=N(()=>k(`state`)),m=N(()=>H(p).today),h=N(()=>H(p).interaction.action),g=N(()=>H(p).options.dayCellContent),_=N(()=>H(p).options.theme),v=N(()=>k(`view-state`)),y=N(()=>H(v).snap),b=N(()=>$i(t.date,H(m))),x=N(()=>Z(H(g))?H(g)({allDay:r(),date:Zi(t.date),isToday:H(b),resource:i()}):H(g)),S=N(()=>o()([H(_).day,H(_).weekdays?.[t.date.getUTCDay()],H(b)&&H(_).today,c()&&H(_).highlight,s()&&H(_).disabled,u()&&H(_).noIeb,d()&&H(_).noBeb]));gi(()=>{_a(n(),(e,t)=>({allDay:r(),date:a()(e,t),resource:i(),dayEl:n(),disabled:s()}))});let ee=N(()=>!s()&&H(h)?e=>H(h).select(e,H(y)):void 0);var C=ps();Wr(I(C),()=>t.content??f,()=>H(x)),O(C),pi(C,e=>n(e),()=>n()),Kr(C,()=>t.content?null:yi(H(x))),z(()=>{Y(C,1,Yr(H(S))),oi(C,`role`,l())}),br(`pointerdown`,C,function(...e){H(ee)?.apply(this,e)}),K(e,C),j()}xr([`pointerdown`]);var hs=W(`<div></div>`),gs=W(`<article><!></article>`);function _s(e,t){A(t,!0);let n=mi(t,`el`,15),r=mi(t,`classes`,3,Bi),i=mi(t,`styles`,3,Bi),a=N(()=>k(`state`)),o=N(()=>H(a).intlEventTime),s=N(()=>H(a).resources),c=N(()=>H(a).view),l=N(()=>H(a).options.displayEventEnd),u=N(()=>H(a).options.eventBackgroundColor),d=N(()=>H(a).options.eventColor),f=N(()=>H(a).options.eventContent),p=N(()=>H(a).options.eventClick),m=N(()=>H(a).options.eventDidMount),g=N(()=>H(a).options.eventClassNames),_=N(()=>H(a).options.eventMouseEnter),v=N(()=>H(a).options.eventMouseLeave),y=N(()=>H(a).options.eventTextColor),b=N(()=>H(a).options.theme),x=N(()=>t.chunk.event),S=N(()=>t.chunk.event.display),ee=N(()=>H(x).backgroundColor??mo(t.chunk.resource??go(H(x),H(s)))??H(u)??H(d)),C=N(()=>H(x).textColor??ho(t.chunk.resource??go(H(x),H(s)))??H(y)),te=N(()=>wi(i()({"background-color":H(ee),color:H(C)})).map(e=>`${e[0]}:${e[1]}`).concat(H(x).styles).join(`;`)),ne=N(()=>r()([Ha(H(S))?H(b).bgEvent:H(b).event,...Fa(H(g),H(x),H(c))])),re=N(()=>Na(t.chunk,H(l),H(f),H(b),H(o),H(c))),ie=N(()=>h(H(re),2)),ae=N(()=>H(ie)[0]),oe=N(()=>H(ie)[1]);gi(()=>{Z(H(m))&&H(m)({event:Ia(H(x)),timeText:H(ae),el:n(),view:Oa(H(c))})});function se(e,t){return Z(e)&&!Va(t)?t=>e({event:Ia(H(x)),el:n(),jsEvent:t,view:Oa(H(c))}):void 0}let ce=N(()=>!Ha(H(S))&&se(H(p),H(S))||void 0),le=N(()=>H(ce)&&vi(H(ce))),ue=N(()=>se(H(_),H(S))),w=N(()=>se(H(v),H(S)));var T=gs();{let e=e=>{var t=hs();Kr(t,()=>yi(H(oe))),z(()=>Y(t,1,Yr(H(b).eventBody))),K(e,t)};var de=I(T),fe=n=>{var r=G();Wr(L(r),()=>t.body,()=>e,()=>H(ee),()=>H(C)),K(n,r)},pe=t=>{e(t)};q(de,e=>{t.body?e(fe):e(pe,-1)}),O(T),pi(T,e=>n(e),()=>n())}z(()=>{Y(T,1,Yr(H(ne))),ni(T,H(te)),oi(T,`role`,H(ce)?`button`:void 0),oi(T,`tabindex`,H(ce)?0:void 0)}),br(`click`,T,function(...e){H(ce)?.apply(this,e)}),br(`keydown`,T,function(...e){H(le)?.apply(this,e)}),yr(`mouseenter`,T,function(...e){H(ue)?.apply(this,e)}),yr(`mouseleave`,T,function(...e){H(w)?.apply(this,e)}),br(`pointerdown`,T,function(...e){t.onpointerdown?.apply(this,e)}),K(e,T),j()}xr([`click`,`keydown`,`pointerdown`]);var vs=W(`<div><!></div>`);function ys(e,t){A(t,!0);let n=mi(t,`weekday`,3,!0),r=mi(t,`colSpan`,3,1),i=mi(t,`ariaHidden`,3,!1),a=mi(t,`disabled`,3,!1),o=mi(t,`highlight`,3,!1),s=mi(t,`cssSpan`,3,!1),c=N(()=>k(`state`)),l=N(()=>H(c).today),u=N(()=>H(c).options.theme);var d=vs();let f;Wr(I(d),()=>t.children),O(d),z(e=>{Y(d,1,e),oi(d,`role`,i()?null:`columnheader`),oi(d,`aria-colspan`,i()||r()<=1?null:r()),oi(d,`aria-colindex`,i()?null:t.colIndex),oi(d,`aria-hidden`,i()?`true`:null),f=ni(d,``,f,{"--ec-col-group-span":s()?r():void 0})},[()=>Yr([t.className??H(u).colHead,n()&&H(u).weekdays?.[t.date.getUTCDay()],n()&&$i(t.date,H(l))&&H(u).today,o()&&H(u).highlight,a()&&H(u).disabled])]),K(e,d),j()}var bs=W(`<time></time>`);function xs(e,t){A(t,!0);let n=mi(t,`alPrefix`,3,``),r=N(()=>k(`state`)),i=N(()=>H(r).intlDayHeader),a=N(()=>H(r).intlDayHeaderAL);var o=bs();Kr(o,()=>yi(H(i).format(t.date))),z((e,t)=>{oi(o,`datetime`,e),oi(o,`aria-label`,`${n()??``}${t??``}`)},[()=>Qi(t.date,10),()=>H(a).format(t.date)]),K(e,o),j()}function Ss(e,t){A(t,!0);let n=mi(t,`el`,15),r=N(()=>k(`state`)),i=N(()=>H(r).iClasses),a=N(()=>H(r).interaction.action),o=N(()=>H(r).interaction.resizer),s=N(()=>k(`view-state`)),c=N(()=>H(s).snap),l=N(()=>t.chunk.event),u=N(()=>t.chunk.event.display),d=N(()=>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=N(()=>!Ha(H(u))&&!Va(H(u))?p(H(l)):void 0);_s(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();Gr(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();Wr(L(r),n),K(e,r)},$$slots:{default:!0}})}),K(e,r)},s=e=>{var t=G();Wr(L(t),n),K(e,t)};q(i,e=>{H(o)?e(a):e(s,-1)}),K(e,r)},$$slots:{body:!0}}),j()}var Cs=W(`<span></span>`),ws=W(`<a role="button" tabindex="0" aria-haspopup="dialog"></a>`),Ts=W(`<div><time></time> <!></div> <div><!></div>`,1);function Es(e,t){A(t,!0);let n=k(`state`),r=k(`view-state`),i=N(()=>n.options.date),a=N(()=>n.options.firstDay),o=N(()=>n.options.moreLinkContent),s=N(()=>n.options.theme),c=N(()=>n.options.weekNumbers),l=N(()=>n.options.weekNumberContent),u=N(()=>r.hiddenChunks),d=N(()=>r.intlDayCell),p=N(()=>t.day.dayStart),m=N(()=>t.day.disabled),h=N(()=>t.day.highlight),g=N(()=>H(p).getUTCMonth()!==H(i).getUTCMonth()),_=N(()=>e=>[...e,H(g)&&H(s).otherMonth]),v=N(()=>H(c)&&H(p).getUTCDay()===+!!H(a)),y=N(()=>H(v)?sa(oa(H(p),H(a)),H(l),H(p)):void 0),b=N(()=>H(u).get(H(p).getTime())),x=N(()=>{let e=``;if(H(b)){let t=`+`+H(b).length+` more`;e=H(o)?Z(H(o))?H(o)({num:H(b).length,text:t}):H(o):t}return e});function S(){r.popupDay=t.day}ms(e,{get date(){return H(p)},allDay:!0,get classes(){return H(_)},get disabled(){return H(m)},get highlight(){return H(h)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},content:(e,t=f)=>{var n=Ts(),r=L(n),i=I(r);Kr(i,()=>yi(t()??H(d).format(H(p))));var a=R(i,2),o=e=>{var t=Cs();Kr(t,()=>yi(H(y))),z(()=>Y(t,1,H(s).weekNumber)),K(e,t)};q(a,e=>{H(v)&&e(o)}),O(r);var c=R(r,2),l=I(c),u=e=>{var t=ws(),n=N(()=>Ea(S)),r=N(()=>vi(S)),i=N(Ea);Kr(t,()=>yi(H(x))),br(`click`,t,function(...e){H(n)?.apply(this,e)}),br(`keydown`,t,function(...e){H(r)?.apply(this,e)}),br(`pointerdown`,t,function(...e){H(i)?.apply(this,e)}),K(e,t)};q(l,e=>{H(b)&&e(u)}),O(c),z(e=>{Y(r,1,H(s).dayHead),oi(i,`datetime`,e),Y(c,1,H(s).dayFoot)},[()=>Qi(H(p),10)]),K(e,n)},$$slots:{content:!0}}),j()}xr([`click`,`keydown`,`pointerdown`]);function Ds(e,t){A(t,!0);let n=mi(t,`inPopup`,3,!1),r=N(()=>k(`state`)),i=N(()=>H(r).options.dayMaxEvents),a=N(()=>k(`view-state`)),o=N(()=>H(a).colsCount),s=N(()=>H(a).gridEl),c=N(()=>H(a).hiddenChunks),l=N(()=>H(a).popupDay),u=P(void 0),d=P(1),f=P(!1),p=N(()=>t.chunk.event),m=N(()=>t.chunk.event.display),h=N(()=>H(s).children.item((t.chunk.gridRow-1)*H(o)+t.chunk.gridColumn-1));yn(()=>{n()||F(d,Ca(H(h).firstElementChild)||1,!0)});let g=N(()=>e=>{if(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,!Ha(H(m))){let r=n()?1:H(d);if(H(p)._margin){let[e,n]=H(p)._margin;e>r&&t.chunk.gridRow===n&&(r=e)}e[`margin-block-start`]=`${r}px`}return H(f)&&(e.visibility=`hidden`),e});function _(){F(d,Ya(t.chunk,Ca(H(u)),Ca(H(h).firstElementChild)||1),!0)}function v(){if(H(i)===!0){let e=Ca(H(h))-y(H(h));if(F(f,t.chunk.bottom>e),H(f))for(let e of t.chunk.dates){let n=e.getTime();if(H(c).has(n)){let e=H(c).get(n);e.includes(t.chunk)||H(c).set(n,[...e,t.chunk])}else H(c).set(n,[t.chunk])}}else F(f,!1),H(c).size&&H(c).clear()}function y(e){let n=0;for(let r=0;r<t.chunk.dates.length&&(n=ki(n,Ca(e.lastElementChild)),e=e.nextElementSibling,e);++r);return n}var b={reposition:_,hide:v};{let r=N(()=>n()&&H(l).dayStart),i=N(()=>[H(d),t.chunk.gridRow]);Ss(e,{get chunk(){return t.chunk},get styles(){return H(g)},axis:`x`,get forceDate(){return H(r)},get forceMargin(){return H(i)},get el(){return H(u)},set el(e){F(u,e,!0)}})}return j(b)}var Os=W(`<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">×</a></header> <div></div></dialog>`);function ks(e,t){A(t,!0);let n=k(`view-state`),r=N(()=>k(`state`)),i=N(()=>H(r).interaction),a=N(()=>H(r).options.buttonText),o=N(()=>H(r).options.theme),s=N(()=>n.colsCount),c=N(()=>n.chunks),l=N(()=>n.gridEl),u=N(()=>n.intlDayPopover),d=N(()=>n.popupDay),f=P(void 0),p=P(``),m=N(()=>H(d).gridColumn),h=N(()=>H(d).gridRow),g=N(()=>H(d).dayStart),_=N(()=>H(d).dayEnd),v=N(()=>{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(X({},t,Ka(t.event,H(g),H(_))));return e.sort((e,t)=>e.top-t.top),e});gi(()=>{H(f).show()}),yn(()=>{H(v).length?U(y):b()});function y(){let e=H(l).children.item((H(h)-1)*H(s)+H(m)-1),t=xa(H(f)),n=xa(e),r=xa(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=Os();let ee;var C=I(S),te=I(C);Kr(te,()=>yi(H(u).format(H(g))));var ne=R(te,2);fn(ne,!0);var re=N(()=>Ea(b)),ie=N(()=>vi(b));O(C);var ae=R(C,2);J(ae,21,()=>H(v),Fr,(e,t)=>{Ds(e,{get chunk(){return H(t)},inPopup:!0})}),O(ae),O(S),pi(S,e=>F(f,e),()=>H(f)),Kr(S,()=>bi(`pointerdown`)),z(e=>{Y(S,1,H(o).popup),ee=ni(S,H(p),ee,{"grid-area":`${H(h)+1} / ${H(m)}`}),Y(C,1,H(o).dayHead),oi(te,`datetime`,e),oi(ne,`aria-label`,H(a).close),Y(ae,1,H(o).events)},[()=>Qi(H(g),10)]),yr(`pointerdownoutside`,S,x),yr(`close`,S,b),br(`click`,ne,function(...e){H(re)?.apply(this,e)}),br(`keydown`,ne,function(...e){H(ie)?.apply(this,e)}),K(e,S),j()}xr([`click`,`keydown`]);var As=W(`<div role="columnheader"><span></span></div>`),js=W(`<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>`);function Ms(e,t){A(t,!0);let n=k(`state`),r=new fs(n);We(`view-state`,r);let i=N(()=>n.intlDayHeader),a=N(()=>n.intlDayHeaderAL),o=N(()=>n.options.dayMaxEvents),s=N(()=>n.options.theme),c=N(()=>r.grid),l=N(()=>r.chunks),u=N(()=>r.bgChunks),d=N(()=>r.iChunks),f=N(()=>r.hiddenChunks),p=N(()=>r.popupDay),m=[];function h(){za(m,H(l)),H(f).clear(),ur().then(g)}function g(){H(f).size,m.forEach(e=>e?.hide())}yn(h),yn(g);var _=G(),v=L(_),y=e=>{var t=js();let f;var g=I(t),_=I(g);J(_,21,()=>H(c)[0],Fr,(e,t,n)=>{let r=()=>H(t).dayStart;var o=As();oi(o,`aria-colindex`,1+n);var c=I(o);Kr(c,()=>yi(H(i).format(r()))),O(o),z((e,t)=>{Y(o,1,e),oi(c,`aria-label`,t)},[()=>Yr([H(s).colHead,H(s).weekdays?.[r().getUTCDay()]]),()=>H(a).format(r())]),K(e,o)}),O(_),O(g);var v=R(g,2),y=I(v);J(y,21,()=>H(c),Fr,(e,t,n)=>{var r=G();J(L(r),17,()=>H(t),Fr,(e,r,i)=>{{let a=N(()=>i+1===ji(H(t))),o=N(()=>n+1===ji(H(c)));Es(e,{get day(){return H(r)},get noIeb(){return H(a)},get noBeb(){return H(o)}})}}),K(e,r)}),O(y),pi(y,e=>r.gridEl=e,()=>r?.gridEl);var b=R(y,2),x=I(b);J(x,19,()=>H(l),e=>e.id,(e,t,n)=>{pi(Ds(e,{get chunk(){return H(t)}}),(e,t)=>m[t]=e,e=>m?.[e],()=>[H(n)])});var S=R(x,2);J(S,17,()=>H(u),e=>e.id,(e,t)=>{Ds(e,{get chunk(){return H(t)}})}),J(R(S,2),17,()=>H(d),Fr,(e,t)=>{Ds(e,{get chunk(){return H(t)}})}),O(b),O(v);var ee=R(v,2),C=e=>{ks(e,{})};q(ee,e=>{H(p)&&e(C)}),O(t),pi(t,e=>n.mainEl=e,()=>n?.mainEl),Kr(t,()=>xi(h)),z(e=>{Y(t,1,Yr([H(s).main,H(o)===!0&&H(s).uniform])),f=ni(t,``,f,e),Y(g,1,H(s).header),Y(_,1,H(s).grid),Y(v,1,H(s).body),Y(y,1,H(s).grid),Y(b,1,H(s).events)},[()=>({"--ec-grid-cols":ji(H(c)[0]),"--ec-grid-rows":ji(H(c))})]),K(e,t)},b=N(()=>!Mi(H(c))&&!Mi(H(c)[0]));q(v,e=>{H(b)&&e(y)}),K(e,_),j()}var Ns={createOptions(e){X(e,{dayMaxEvents:!1,dayCellFormat:{day:`numeric`},dayPopoverFormat:{month:`long`,day:`numeric`,year:`numeric`},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:`dayGridMonth`}),X(e.buttonText,{dayGridDay:`day`,dayGridMonth:`month`,dayGridWeek:`week`,close:`Close`}),X(e.theme,{uniform:`ec-uniform`,dayFoot:`ec-day-foot`,otherMonth:`ec-other-month`,popup:`ec-popup`}),X(e.views,{dayGridDay:{buttonText:no,component:()=>Ms,dayHeaderFormat:{weekday:`long`},displayEventEnd:!1,duration:{days:1},theme:so(`ec-day-grid ec-day-view`)},dayGridWeek:{buttonText:ro,component:()=>Ms,displayEventEnd:!1,theme:so(`ec-day-grid ec-week-view`)},dayGridMonth:{buttonText:io,component:Ps,dayHeaderFormat:{weekday:`short`},dayHeaderAriaLabelFormat:{weekday:`long`},displayEventEnd:!1,duration:{months:1},theme:so(`ec-day-grid ec-month-view`),titleFormat:{year:`numeric`,month:`long`}}})}};function Ps(e){return e.features=[`dayNumber`],e.extensions.activeRange=(t,n)=>{let{options:{firstDay:r}}=e;return{start:ta(t,r),end:ea(n,r)}},Ms}function Fs(e,t,n){return e.startEditable??t??e.editable??n}function Is(e,t,n){return e.durationEditable??t??e.editable??n}var Ls=!1;function Rs(e){Ls||(Ls=!0,window.requestAnimationFrame(()=>{e(),Ls=!1}))}function zs(e,t,n){return ki(t,Oi(n,e))}function Bs(e){return()=>{let{options:{editable:t,eventStartEditable:n,theme:r}}=e;e.iClasses=(e,i)=>{let{display:a}=i;return[...e,Va(a)?[r[a]]:!Ha(a)&&Fs(i,n,t)?[r.draggable]:[]]}}}function Vs(e){return()=>{let{interaction:t,mainEl:n}=e;if(n)return Ta(n,`scroll`,()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}var Hs=class{constructor(e){this.#e(e)}#e(e){xn(Bs(e)),yn(Vs(e))}};function Us(e,t){A(t,!0);let n=k(`state`),r=N(()=>n.events),i=N(()=>n.iEvents),a=N(()=>n.features),o=N(()=>n.view),s=N(()=>n.mainEl),c=N(()=>n.options.dateClick),l=N(()=>n.options.dragConstraint),u=N(()=>n.options.dragScroll),d=N(()=>n.options.editable),f=N(()=>n.options.eventStartEditable),p=N(()=>n.options.eventDragMinDistance),m=N(()=>n.options.eventDragStart),h=N(()=>n.options.eventDragStop),g=N(()=>n.options.eventDrop),_=N(()=>n.options.eventLongPressDelay),v=N(()=>n.options.eventResizeStart),y=N(()=>n.options.eventResizeStop),b=N(()=>n.options.eventResize),x=N(()=>n.options.longPressDelay),S=N(()=>n.options.resizeConstraint),ee=N(()=>n.options.selectable),C=N(()=>n.options.select),te=N(()=>n.options.selectBackgroundColor),ne=N(()=>n.options.selectConstraint),re=N(()=>n.options.selectLongPressDelay),ie=N(()=>n.options.selectMinDistance),ae=N(()=>n.options.unselect),oe=N(()=>n.options.unselectAuto),se=N(()=>n.options.unselectCancel),ce=N(()=>n.options.validRange),le,ue,w,T,de,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,E,je,D;function Me(e){return Fs(e,H(f),H(d))}function Ne(e,t,n,r,i){le||(le=at(t)?1:6,it()&&(w=e,Ie(t,i),n&&(fe=n),r&&(E=r),we=`dragging`,Le(t)))}function O(e,t,n,r,i,a,o,s){le||(le=at(t)?n?3:2:6,it()&&(w=e,Ie(t,s),i&&(fe=i),a&&(E=a),we=r===`x`?`resizingX`:`resizingY`,tt()?(Te=Q(w.end),Ce?(ra(Te,w.start),Te>=w.end&&Yi(Te)):(qi(Te,je),Te<w.start&&(Te=w.start),fe=w.start)):(Te=Q(w.start),Ce?(ra(Te,w.end),Te<=w.start&&!o&&Ji(Te)):(Ki(Te,je),Te>w.end&&(Te=w.end),fe=w.end,o||(fe=qi(Q(fe),je))),o&&!Ce&&(D=je)),Le(t)))}function Pe(e,t){le||(le=at(e)?H(ee)&&!H(a).includes(`list`)?4:5:6,it()&&(Ie(e,t),we=`selecting`,Ee=Ce?Gi({day:1}):je,w={allDay:Ce,start:fe,end:Ki(Q(fe),Ee),resourceIds:me?[me.id]:[]},Le(e)))}function Fe(){le||=6}function Ie(e,t){window.getSelection().removeAllRanges(),ge=ve=e.clientX,_e=ye=e.clientY,je=t?.duration;let n=wa(ve,ye);({allDay:Ce,date:fe,resource:me}=ya(n)(ve,ye)),xe=H(s)!==Sa(n,3),be=Sa(n,1),We(),e.pointerType!==`mouse`&&(ke=setTimeout(()=>{le&&(ue=!0,Le(e))},(rt()?H(re):H(_))??H(x)))}function Le(e){if(ue||e&&e.pointerType===`mouse`&&$e()>=(rt()?H(ie):H(p))){ue=!0,ot(e),n.iClass=we,T||(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===Ce){let t=Je({},T),n=H(S);Se=Gi((pe-fe)/1e3),tt()?(t.start=Ki(Q(w.start),Se),t.start>Te&&(t.start=Te,Se=Gi((Te-w.start)/1e3))):(t.end=Ki(Q(w.end),Se),D&&Ki(t.end,D),et()?t.end<Te&&(t.end=Te,Se=Gi((Te-w.end)/1e3)):rt()?(t.end<w.end?(t.start=qi(t.end,Ee),t.end=w.end):t.start=w.start,n=H(ne)):(t.start=Ki(Q(w.start),Se),me&&(t.resourceIds=w.resourceIds.filter(e=>e!==me.id),t.resourceIds.push(he.id)),n=H(l)));do{if(n!==void 0&&(t=Je(La(w),t),n(rt()?Ze(t,e):Qe(t,w,e))===!1)){Xe(w);break}Xe(t)}while(0)}}}H(u)&&Rs(()=>{Ae&&(xe||(ye<Ae.top+24&&(H(s).scrollTop+=ki(-8,(ye-Ae.top-24)/3)),ye>Ae.bottom-24&&(H(s).scrollTop+=Oi(8,(ye-Ae.bottom+24)/3))),ve<Ae.left+24&&(H(s).scrollLeft+=ki(-8,(ve-Ae.left-24)/3)),ve>Ae.right-24&&(H(s).scrollLeft+=Oi(8,(ve-Ae.right+24)/3)),ye<24&&window.scrollBy(0,ki(-8,(ye-24)/3)),ye>window.innerHeight-24&&window.scrollBy(0,Oi(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(De&&H(oe)&&!(H(se)&&e.target.closest(H(se)))&&ot(e),le&&e.isPrimary){if(ue)if(rt()){if(De=!0,Z(H(C))){let t=Ze(T,e);H(C)(t)}}else{w.display=de;let t=et()?H(y):H(h);Z(t)&&t({event:Ia(w),jsEvent:e,view:Oa(H(o))});let n=La(w);if(Ye(w,T),qe(),t=et()?H(b):H(g),Z(t)){let r=w,i=Qe(w,n,e);t(X(i,{revert(){Ye(r,n)}}))}}else if((nt()||rt())&&Z(H(c))&&!Oe){ve=e.clientX,ye=e.clientY;let t=wa(ve,ye);if(t){let{allDay:n,date:r,resource:i}=ya(t)(ve,ye);H(c)({allDay:n,date:Zi(r),dateStr:Qi(r),dayEl:t,jsEvent:e,view:Oa(H(o)),resource:i})}}Ve()}Oe=!1}function Ve(){ue=!1,le=ge=_e=ve=ye=w=de=fe=pe=me=he=Se=D=Ce=Te=Ee=E=be=Ae=je=void 0,n.iClass=void 0,ke&&=(clearTimeout(ke),void 0)}function He(){return wa(zs(ve,Ae.left,Ae.right),zs(ye,Ae.top,Ae.bottom))}function Ue(e){if(e){let t=ya(e)(ve,ye);if(t.disabled){if(!H(ce).end||t.date<H(ce).end)return Ue(e.nextElementSibling);if(!H(ce).start||t.date>H(ce).start)return Ue(e.previousElementSibling)}else return(rt()||et())&&t.resource&&!T.resourceIds.includes(t.resource.id)&&!H(a).includes(`timeline`)?Ue(ve>ge?e.previousElementSibling:e.nextElementSibling):t}return null}function We(){let e=xa(H(s)),t=xa(be),n=e.width/H(s).offsetWidth,r=e.height/H(s).offsetHeight,i=Vi();Ae={left:ki(0,i?e.right-H(s).clientWidth*n:t.left+H(s).scrollLeft*n),right:Oi(document.documentElement.clientWidth,i?t.right+H(s).scrollLeft*n:e.left+H(s).clientWidth*n)-2,top:ki(0,t.top+(xe?0:H(s).scrollTop)*r),bottom:Oi(document.documentElement.clientHeight,xe?t.bottom:e.top+H(s).clientHeight*r)-2}}function Ge(e,t){Z(t)&&t({event:Ia(w),jsEvent:e,view:Oa(H(o))}),de=w.display,w.display=`preview`,T=La(w),E!==void 0&&(T._margin=E),D&&Ki(T.end,D),w.display=`ghost`,H(r).length=H(r).length}function Ke(){T={id:`{select}`,allDay:w.allDay,start:w.start,title:``,display:`preview`,extendedProps:{},backgroundColor:H(te),resourceIds:w.resourceIds,classNames:[],styles:[]}}function qe(){T=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){T=Je(T,e),H(i).set(`action`,T)}function Ze(e,t){let{start:n,end:r}=Ia(e);return{start:n,end:r,startStr:Qi(e.start),endStr:Qi(e.end),allDay:Ce,view:Oa(H(o)),resource:me,jsEvent:t}}function Qe(e,t,n){let r;return r=et()?tt()?{startDelta:Se,endDelta:Gi(0)}:{startDelta:Gi(0),endDelta:Se}:{delta:Se,oldResource:me===he?void 0:me,newResource:me===he?void 0:he},X(r,{event:Ia(e),oldEvent:Ia(t),view:Oa(H(o)),jsEvent:n}),r}function $e(){return Math.sqrt((ve-ge)**2+(ye-_e)**2)}function et(){return le===2||tt()}function tt(){return le===3}function nt(){return le===5}function rt(){return le===4}function it(){return le&&le<5}function at(e){return e.isPrimary&&(e.pointerType!==`mouse`||e.buttons&1)}function ot(e){De&&(De=!1,qe(),Z(H(ae))&&H(ae)({jsEvent:e,view:Oa(H(o))}))}xn(()=>{H(o),ot()});function st(){Oe=!0}function ct(e){if(it()){let t=e.target,n=[],r=()=>Ri(n);n.push(Ta(t,`touchmove`,M(()=>ue))),n.push(Ta(t,`touchend`,r)),n.push(Ta(t,`touchcancel`,r))}}function M(e){return t=>{e()&&t.preventDefault()}}gi(()=>Ta(window,`touchmove`,zi,{passive:!1}));var lt={draggable:Me,drag:Ne,resize:O,select:Pe,noAction:Fe,handleScroll:Re,unselect:ot,noClick:st};yr(`pointermove`,$t,ze),yr(`pointerup`,$t,Be),yr(`pointercancel`,$t,Ve),yr(`scroll`,$t,Re);var ut=N(()=>M(it));yr(`selectstart`,$t,function(...e){H(ut)?.apply(this,e)});var dt=N(()=>M(()=>ke));return yr(`contextmenu`,$t,function(...e){H(dt)?.apply(this,e)}),yr(`touchstart`,$t,ct,void 0,!0),j(lt)}function Ws(e,t){A(t,!0);let n=N(()=>k(`state`)),r=N(()=>H(n).iEvents),i=N(()=>H(n).options.slotDuration),a=0,o=0,s;function c(){let e=wa(a,o);if(e&&!H(r).has(`action`)){let{allDay:t,date:n,resource:c,disabled:l}=ya(e)(a,o);if(!l){s||d(),s.allDay=t,s.start=n,s.end=Ki(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 yr(`pointermove`,$t,u),yr(`scroll`,$t,l),j(m)}var Gs=W(`<div></div>`),Ks=W(`<div></div>`),qs=W(`<!> <!> <!>`,1);function Js(e,t){A(t,!0);let n=mi(t,`forceDate`,3,void 0),r=mi(t,`forceMargin`,3,void 0),i=N(()=>k(`state`)),a=N(()=>H(i).interaction.action),o=N(()=>H(i).options.editable),s=N(()=>H(i).options.eventDurationEditable),c=N(()=>H(i).options.eventResizableFromStart),l=N(()=>H(i).options.theme),u=N(()=>k(`view-state`)),d=N(()=>H(u).snap),f=N(()=>t.chunk.event),p=N(()=>t.chunk.event.display),m=N(()=>!Ha(H(p))&&!Va(H(p))&&Is(H(f),H(s),H(o)));function h(e){return i=>H(a).resize(H(f),i,e,t.axis,n(),r(),t.chunk.zeroDuration,H(d))}var g=qs(),_=L(g),v=e=>{var t=Gs(),n=N(()=>h(!0));z(()=>Y(t,1,`${H(l).resizer??``} ${H(l).start??``}`)),br(`pointerdown`,t,function(...e){H(n)?.apply(this,e)}),K(e,t)};q(_,e=>{H(m)&&H(c)&&e(v)});var y=R(_,2);Wr(y,()=>t.children);var b=R(y,2),x=e=>{var t=Ks(),n=N(()=>h(!1));z(()=>Y(t,1,H(l).resizer)),br(`pointerdown`,t,function(...e){H(n)?.apply(this,e)}),K(e,t)};q(b,e=>{H(m)&&e(x)}),K(e,g),j()}xr([`pointerdown`]);var Ys=W(`<!> <!>`,1);function Xs(e,t){A(t,!0);let n=k(`state`);new Hs(n);let r=N(()=>n.interaction),i=N(()=>n.options.pointer);H(r).resizer=Js;var a=Ys(),o=L(a);pi(Us(o,{}),e=>H(r).action=e,()=>H(r)?.action);var s=R(o,2),c=e=>{pi(Ws(e,{}),e=>H(r).pointer=e,()=>H(r)?.pointer)};q(s,e=>{H(i)&&e(c)}),K(e,a),j()}var Zs={createOptions(e){X(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:``}),X(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(Xs)}},Qs=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=N($a(e,`listDayFormat`)),this.#t=N($a(e,`listDaySideFormat`))}},$s=W(`<div></div> <!>`,1);function ec(e,t){A(t,!0);let n=N(()=>k(`state`)),r=N(()=>H(n).interaction),i=N(()=>H(n).options.theme),a=N(()=>e=>(delete e[`background-color`],delete e.color,e));{let n=(e,t=f,n=f,r=f)=>{var a=$s(),o=L(a);let s;Wr(R(o,2),t),z(()=>{Y(o,1,H(i).eventTag),s=ni(o,``,s,{"background-color":n()})}),K(e,a)},o=N(()=>H(r).action?.noAction);_s(e,{get chunk(){return t.chunk},get styles(){return H(a)},get onpointerdown(){return H(o)},body:n,$$slots:{body:!0}})}j()}var tc=W(`<h4><time></time> <time></time></h4> <!>`,1);function nc(e,t){A(t,!0);let n=N(()=>k(`state`)),r=N(()=>H(n).filteredEvents),i=N(()=>H(n).options.highlightedDates),a=N(()=>H(n).options.theme),o=N(()=>H(n).options.validRange),s=N(()=>k(`view-state`)),c=N(()=>H(s).intlListDay),l=N(()=>H(s).intlListDaySide),u=N(()=>H(i).some(e=>$i(e,t.date))),d=N(()=>lo(t.date,H(o))),p=N(()=>Qi(t.date,10)),m=N(()=>{let e=[];if(!H(d)){let n=t.date,i=Ji(Q(t.date));for(let t of H(r))if(!Ha(t.display)&&Ba(t,n,i)){let r=Ka(t,n,i);e.push(r)}}return e});var h=G(),g=L(h),_=e=>{ms(e,{get date(){return t.date},allDay:!0,role:`listitem`,get disabled(){return H(d)},get highlight(){return H(u)},content:(e,n=f)=>{var r=tc(),i=L(r),o=I(i);Kr(o,()=>yi(n()??H(c).format(t.date)));var s=R(o,2);Kr(s,()=>yi(H(l).format(t.date))),O(i),J(R(i,2),17,()=>H(m),e=>e.event,(e,t)=>{ec(e,{get chunk(){return H(t)}})}),z(()=>{Y(i,1,H(a).dayHead),oi(o,`datetime`,H(p)),Y(s,1,H(a).daySide),oi(s,`datetime`,H(p))}),K(e,r)},$$slots:{content:!0}})};q(g,e=>{H(m).length&&e(_)}),K(e,h),j()}var rc=W(`<div></div>`),ic=W(`<section><!></section>`);function ac(e,t){A(t,!0);let n=k(`state`);We(`view-state`,new Qs(n));let r=N(()=>n.filteredEvents),i=N(()=>n.view),a=N(()=>n.viewDates),o=N(()=>n.options.noEventsClick),s=N(()=>n.options.noEventsContent),c=N(()=>n.options.theme),l=N(()=>{let e=!0;if(!Mi(H(a))){let t=H(a)[0],n=Ji(Q(H(a).at(-1)));for(let i of H(r))if(!Ha(i.display)&&i.start<n&&i.end>t){e=!1;break}}return e}),u=N(()=>Z(H(s))?H(s)():H(s));function d(e){Z(H(o))&&H(o)({jsEvent:e,view:Oa(H(i))})}var f=ic(),p=I(f),m=e=>{var t=rc();Kr(t,()=>yi(H(u))),z(()=>Y(t,1,H(c).noEvents)),br(`click`,t,d),K(e,t)},h=e=>{var t=G();J(L(t),17,()=>H(a),Fr,(e,t)=>{nc(e,{get date(){return H(t)}})}),K(e,t)};q(p,e=>{H(l)?e(m):e(h,-1)}),O(f),pi(f,e=>n.mainEl=e,()=>n?.mainEl),z(()=>Y(f,1,H(c).main)),K(e,f),j()}xr([`click`]);var oc={createOptions(e){X(e,{listDayFormat:{weekday:`long`},listDaySideFormat:{year:`numeric`,month:`long`,day:`numeric`},noEventsClick:void 0,noEventsContent:`No events`,view:`listWeek`}),X(e.buttonText,{listDay:`day`,listWeek:`week`,listMonth:`month`,listYear:`year`}),X(e.theme,{daySide:`ec-day-side`,eventTag:`ec-event-tag`,noEvents:`ec-no-events`}),X(e.views,{listDay:{buttonText:no,component:sc,duration:{days:1},theme:so(`ec-list ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},listWeek:{buttonText:ro,component:sc,duration:{weeks:1},theme:so(`ec-list ec-week-view`)},listMonth:{buttonText:io,component:sc,duration:{months:1},theme:so(`ec-list ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},listYear:{buttonText:ao,component:sc,duration:{years:1},theme:so(`ec-list ec-year-view`),titleFormat:{year:`numeric`}}})}};function sc(e){return e.features=[`list`],ac}function cc(e,t,n=!0){let r=[];for(let{gridColumn:i,gridRow:a,resource:o,start:s,end:c,disabled:l}of t)if(!l&&Ba(e,s,c,o)){let t=Ka(e,s,c);X(t,{gridColumn:i,gridRow:a,resource:o,top:(t.start-s)/1e3,height:(t.end-t.start)/1e3,maxHeight:(c-t.start)/1e3}),n&&Qa(t),r.push(t)}return r}function lc(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 uc(e){let t=`all-day`,n;return e?(n=Z(e)?e({text:t}):e,typeof n==`string`&&(n={html:n})):n={html:t},n}function dc(e){e.extensions.activeRange=(t,n)=>{let{options:{slotMaxTime:r}}=e;if(r.days||r.seconds>86400){Ki(Yi(n),r);let e=Yi(Q(n));e<t&&(t=e)}return{start:t,end:n}}}function fc(e){`scrollTime`in e||(X(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}),X(e.theme,{nowIndicator:`ec-now-indicator`,sidebar:`ec-sidebar`,slot:`ec-slot`}))}function pc(e){`allDaySlot`in e||(X(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),X(e.theme,{allDay:`ec-all-day`}))}function mc(e){`scrollTime`in e||X(e,{scrollTime:Gi,slotDuration:Gi,slotLabelInterval:Hi(Gi),slotMaxTime:Gi,slotMinTime:Gi,snapDuration:Hi(Gi)})}function hc(e){`resourceLabelContent`in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function gc(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:Ki(Q(t),a.min),end:Ki(Q(t),a.max),dayStart:t,dayEnd:Ji(Q(t)),disabled:lo(t,i),highlight:r.some(e=>$i(e,t))}),++e}),[o]}}function _c(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)Ha(e.display)?(a=a.concat(cc(e,t)),e.allDay&&(s=s.concat(qa(e,t)))):e.allDay?o=o.concat(qa(e,t)):i=i.concat(cc(e,t));lc(i),Ja(o)}),{chunks:i,bgChunks:a,allDayChunks:o,allDayBgChunks:s}}}function vc(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(qa(e,t,!1)):i=i.concat(cc(e,t,!1))});return{iChunks:i,allDayIChunks:a}}}function yc(e){return()=>{let{filteredEvents:t,viewDates:n,options:{flexibleSlotTimeLimits:r,slotMinTime:i,slotMaxTime:a}}=e,o;return U(()=>{o=vo(i,a,r,n,t)}),o}}function bc(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:n}}=e,r;return U(()=>{r=n===void 0?$(t)<3600?2:1:Di($(n)/$(t))||1}),r}}function xc(e,t){return()=>{let{offset:n,options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:a,slotTimeLimits:o}=t,s;return U(()=>{s=_o(Xi(Wi(void 0,n)),r,a,o,i)}),s}}function Sc(e){return()=>{let{options:{slotDuration:t,snapDuration:n}}=e;return n??=t,{duration:n,ratio:$(n)/$(t)}}}function Cc(){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=N($a(e,`slotLabelFormat`)),this.#t=N(bc(e)),this.#n=P(0),this.#r=N(Sc(e))}}}function wc(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=N(yc(e)),this.#t=N(xc(e,this));let t=N(_c(e,this)),n=N(()=>H(t).chunks),r=N(()=>H(t).bgChunks),i=N(()=>H(t).allDayChunks),a=N(()=>H(t).allDayBgChunks);this.#n=N(()=>H(n)),this.#r=N(()=>H(r)),this.#i=N(()=>H(i)),this.#a=N(()=>H(a));let o=N(vc(e,this)),s=N(()=>H(o).iChunks),c=N(()=>H(o).allDayIChunks);this.#o=N(()=>H(s)),this.#s=N(()=>H(c))}}}var Tc=class extends wc(Cc()){#e;get grid(){return H(this.#e)}set grid(e){F(this.#e,e)}constructor(e){super(e),this.#e=N(gc(e,this))}};function Ec(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=>!Ha(n.display)&&Ba(n,t.start,t.end,e)))),o.length||(o=uo([{}]))}),o}}function Dc(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=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:Ki(Q(t),o.min),end:Ki(Q(t),o.max),dayStart:t,dayEnd:Ji(Q(t)),disabled:lo(t,a),highlight:i.some(e=>$i(e,t))}),++e}c.push(s)}}),c}}function Oc(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=N(Ec(e))}}}var kc=class extends Oc(wc(Cc())){#e;get grid(){return H(this.#e)}set grid(e){F(this.#e,e)}constructor(e){super(e),this.#e=N(Dc(e,this))}},Ac=W(`<span></span>`);function jc(e,t){A(t,!0);let n=mi(t,`date`,3,void 0),r=mi(t,`setLabel`,3,void 0),i=N(()=>k(`state`)),a=N(()=>H(i).intlDayHeaderAL),o=N(()=>H(i).options.resourceLabelContent),s=N(()=>H(i).options.resourceLabelDidMount),c=P(void 0),l=N(()=>H(o)?Z(H(o))?H(o)({resource:t.resource,date:n()?Zi(n()):void 0}):H(o):t.resource.title),u=P(void 0);yn(()=>{H(l),U(()=>{n()?ur().then(()=>F(u,H(a).format(n())+`, `+H(c).innerText)):r()&&(F(u,void 0),ur().then(()=>r()(H(c).innerText)))})}),gi(()=>{Z(H(s))&&H(s)({resource:t.resource,date:n()?Zi(n()):void 0,el:H(c)})});var d=Ac();pi(d,e=>F(c,e),()=>H(c)),Kr(d,()=>yi(H(l))),z(()=>oi(d,`aria-label`,H(u))),K(e,d),j()}function Mc(e,t){A(t,!0);let n=mi(t,`allDay`,3,!1),r=N(()=>k(`state`)),i=N(()=>H(r).options.slotHeight),a=N(()=>k(`view-state`)),o=N(()=>H(a).snap),s=N(()=>t.day.dayStart),c=N(()=>t.day.start),l=N(()=>t.day.resource),u=N(()=>t.day.disabled),d=N(()=>t.day.highlight),f=P(void 0);function p(e,t){if(n())return H(s);{let e=xa(H(f)),n=e.height/H(f).offsetHeight;return Ki(Q(H(c)),H(o).duration,Ei((t-e.top)/(H(i)*H(o).ratio*n)))}}ms(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 Nc(e,t){A(t,!0);let n=N(()=>k(`state`)),r=N(()=>H(n).options.slotEventOverlap),i=N(()=>H(n).options.slotDuration),a=N(()=>H(n).options.slotHeight),o=N(()=>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});Ss(e,{get chunk(){return t.chunk},get styles(){return H(o)},axis:`y`}),j()}function Pc(e,t){A(t,!0);let n=P(void 0),r=P(0),i=N(()=>t.chunk.event),a=N(()=>e=>(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(H(r)||H(i)._margin)&&(e[`margin-block-start`]=`${H(i)._margin??H(r)}px`),e));function o(){F(r,Ya(t.chunk,Ca(H(n))),!0)}var s={reposition:o};return Ss(e,{get chunk(){return t.chunk},get styles(){return H(a)},axis:`x`,get forceMargin(){return H(r)},get el(){return H(n)},set el(e){F(n,e,!0)}}),j(s)}var Fc=W(`<div></div>`);function Ic(e,t){A(t,!0);let n=mi(t,`span`,3,1),r=N(()=>k(`state`)),i=N(()=>H(r).mainEl),a=N(()=>H(r).now),o=N(()=>H(r).today),s=N(()=>H(r).options.slotDuration),c=N(()=>H(r).options.slotHeight),l=N(()=>H(r).options.theme),u=N(()=>k(`view-state`)),d=N(()=>H(u).sidebarWidth),f=N(()=>{for(let e of t.days)if($i(e.dayStart,H(o)))return e;return{}}),p=N(()=>H(f).gridColumn),m=N(()=>H(f).start),h=N(()=>H(f).end),g=N(()=>{if(H(a)<H(m)||H(a)>H(h))return null;let e=$(H(s));return(H(a)-H(m))/1e3/e*H(c)}),_=N(()=>({root:H(i),rootMargin:Vi()?`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=Fc();let r;Kr(t,()=>Si(v,H(_))),z(()=>{Y(t,1,H(l).nowIndicator),r=ni(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 Lc=W(`<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>`),Rc=W(`<div><time></time></div>`),zc=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 Bc(e,t){A(t,!0);let n=mi(t,`viewState`,7),r=k(`state`);n()||n(new Tc(r)),We(`view-state`,n());let i=N(()=>r.mainEl),a=N(()=>r.viewDates),o=N(()=>r.options.allDayContent),s=N(()=>r.options.allDaySlot),c=N(()=>r.options.columnWidth),l=N(()=>r.options.nowIndicator),u=N(()=>r.options.scrollTime),d=N(()=>r.options.slotHeight),f=N(()=>r.options.slotDuration),p=N(()=>r.options.theme),m=N(()=>n().allDayChunks),h=N(()=>n().allDayBgChunks),g=N(()=>n().allDayIChunks),_=N(()=>n().bgChunks),v=N(()=>n().chunks),y=N(()=>n().iChunks),b=N(()=>n().grid),x=N(()=>n().sidebarWidth),S=N(()=>n().slots),ee=N(()=>n().slotLabelPeriodicity),C=N(()=>n().slotTimeLimits),te=P(0),ne=N(()=>uc(H(o)));yn(()=>{H(u),Mi(H(a))||ur().then(re)});function re(){H(i).scrollTop=(($(H(u))-$(H(C).min))/$(H(f))-.5)*H(d)}let ie=[];function ae(){za(ie,H(m))}yn(ae);var oe=G(),se=L(oe),ce=e=>{var i=zc();let a;var o=I(i),u=I(o),f=R(u,2),C=I(f),re=e=>{var n=G();Wr(L(n),()=>t.header),K(e,n)},oe=e=>{var t=G();J(L(t),17,()=>H(b)[0],Fr,(e,t,n)=>{let r=()=>H(t).dayStart,i=()=>H(t).disabled,a=()=>H(t).highlight;ys(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{xs(e,{get date(){return r()}})},$$slots:{default:!0}})}),K(e,t)};q(C,e=>{t.header?e(re):e(oe,-1)}),O(f);var se=R(f,2),ce=e=>{var t=Lc(),n=I(t);Kr(n,()=>yi(H(ne)));var r=R(n,2);J(r,21,()=>H(b),Fr,(e,t,n)=>{var r=G();J(L(r),17,()=>H(t),Fr,(e,r,i)=>{{let a=N(()=>n+1===ji(H(b))&&i+1===ji(H(t)));Mc(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(m),e=>e.id,(e,t,n)=>{pi(Pc(e,{get chunk(){return H(t)}}),(e,t)=>ie[t]=e,e=>ie?.[e],()=>[H(n)])});var o=R(a,2);J(o,17,()=>H(h),e=>e.id,(e,t)=>{Pc(e,{get chunk(){return H(t)}})}),J(R(o,2),17,()=>H(g),Fr,(e,t)=>{Pc(e,{get chunk(){return H(t)}})}),O(i),O(t),z(()=>{Y(t,1,H(p).allDay),Y(n,1,H(p).sidebar),Y(r,1,H(p).grid),Y(i,1,H(p).events)}),K(e,t)};q(se,e=>{H(s)&&e(ce)}),O(o);var le=R(o,2),ue=I(le);J(ue,21,()=>H(S),Fr,(e,t,n)=>{var r=Rc();let i;var a=I(r);Kr(a,()=>yi(H(t)[1])),O(r),z(()=>{Y(r,1,Yr([H(p).slot,!n&&H(p).hidden])),i=ni(r,``,i,{"--ec-slot-label-periodicity":H(t)[2]}),oi(a,`datetime`,H(t)[0])}),K(e,r)}),O(ue);var w=R(ue,2);J(w,21,()=>H(b),Fr,(e,t,n)=>{var r=G();J(L(r),17,()=>H(t),Fr,(e,r,i)=>{{let a=N(()=>n+1===ji(H(b))&&i+1===ji(H(t)));Mc(e,{get day(){return H(r)},get noIeb(){return H(a)},noBeb:!0})}}),K(e,r)}),O(w);var T=R(w,2),de=I(T);J(de,17,()=>H(v),e=>e.id,(e,t)=>{Nc(e,{get chunk(){return H(t)}})});var fe=R(de,2);J(fe,17,()=>H(_),e=>e.id,(e,t)=>{Nc(e,{get chunk(){return H(t)}})}),J(R(fe,2),17,()=>H(y),Fr,(e,t)=>{Nc(e,{get chunk(){return H(t)}})}),O(T),O(le);var pe=R(le,2),me=e=>{var n=G(),r=L(n),i=e=>{var n=G();Wr(L(n),()=>t.nowIndicator),K(e,n)},a=e=>{Ic(e,{get days(){return H(b)[0]}})};q(r,e=>{t.nowIndicator?e(i):e(a,-1)}),K(e,n)};q(pe,e=>{H(l)&&e(me)}),O(i),pi(i,e=>r.mainEl=e,()=>r?.mainEl),Kr(i,()=>xi(ae)),z(e=>{Y(i,1,H(p).main),a=ni(i,``,a,e),Y(o,1,H(p).header),Y(u,1,H(p).sidebar),Y(f,1,H(p).grid),Y(le,1,H(p).body),Y(ue,1,H(p).sidebar),Y(w,1,H(p).grid),Y(T,1,H(p).events)},[()=>({"--ec-grid-cols":ji(H(b))*ji(H(b)[0]),"--ec-col-group-span":ji(H(b)[0]),"--ec-col-width":H(c)??`minmax(0, 1fr)`,"--ec-slot-label-periodicity":H(ee),"--ec-slot-height":`${H(d)??``}px`,"--ec-header-height":`${H(te)??``}px`,"--ec-sidebar-width":`${H(x)??``}px`})]),di(u,`offsetWidth`,e=>n().sidebarWidth=e),di(o,`offsetHeight`,e=>F(te,e)),K(e,i)},le=N(()=>!Mi(H(b))&&!Mi(H(b)[0]));q(se,e=>{H(le)&&e(ce)}),K(e,oe),j()}var Vc=W(`<!> <!>`,1);function Hc(e,t){A(t,!0);let n=k(`state`),r=new kc(n),i=N(()=>n.today),a=N(()=>n.mainEl),o=N(()=>n.viewDates),s=N(()=>n.options.scrollTime),c=N(()=>n.options.datesAboveResources),l=N(()=>n.options.theme),u=N(()=>r.grid),d=N(()=>r.sidebarWidth),f=Qt([]);yn(()=>{H(c)&&(H(o),H(s),ur().then(p))});function p(){if(H(i)>=H(o)[0]&&H(i)<=H(o).at(-1))for(let e of H(u)){let t=e[0];if($i(t.dayStart,H(i))){H(a).scrollLeft=(H(a).scrollWidth-H(d))/(ji(H(u))*ji(e))*(t.gridColumn-1)*(Vi()?-1:1);break}}}Bc(e,{get viewState(){return r},header:e=>{var t=Vc(),n=L(t);J(n,17,()=>H(u),Fr,(e,t,n)=>{let r=N(()=>{let{dayStart:e,resource:n,disabled:r,highlight:i}=H(t)[0];return{date:e,resource:n,disabled:r,highlight:i}});{let i=N(()=>ji(H(u)[0])>1?H(l).colGroup:void 0),a=N(()=>ji(H(t))),o=N(()=>1+n*ji(H(t))),s=N(()=>H(c)&&H(r).disabled),d=N(()=>H(c)&&H(r).highlight);ys(e,{get date(){return H(r).date},get className(){return H(i)},get weekday(){return H(c)},get colSpan(){return H(a)},get colIndex(){return H(o)},get disabled(){return H(s)},get highlight(){return H(d)},children:(e,t)=>{var i=G(),a=L(i),o=e=>{xs(e,{get date(){return H(r).date}})},s=e=>{jc(e,{get resource(){return H(r).resource},setLabel:e=>f[n]=e+`, `})};q(a,e=>{H(c)?e(o):e(s,-1)}),K(e,i)},$$slots:{default:!0}})}});var r=R(n,2),i=e=>{var t=G();J(L(t),17,()=>H(u),Fr,(e,t,n)=>{var r=G();J(L(r),17,()=>H(t),Fr,(e,r,i)=>{let a=N(()=>{let{dayStart:e,resource:t,disabled:n,highlight:i}=H(r);return{date:e,resource:t,disabled:n,highlight:i}});{let r=N(()=>1+i+n*ji(H(t)));ys(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=>{jc(e,{get resource(){return H(a).resource},get date(){return H(a).date}})},s=e=>{xs(e,{get date(){return H(a).date},get alPrefix(){return f[n]}})};q(i,e=>{H(c)?e(o):e(s,-1)}),K(e,r)},$$slots:{default:!0}})}}),K(e,r)}),K(e,t)},a=N(()=>ji(H(u)[0])>1);q(r,e=>{H(a)&&e(i)}),K(e,t)},nowIndicator:e=>{var t=G(),n=L(t),r=e=>{{let t=N(()=>H(u).flat()),n=N(()=>ji(H(u)[0]));Ic(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(u),Fr,(e,t)=>{Ic(e,{get days(){return H(t)}})}),K(e,t)},i=N(()=>ji(H(u)[0])>1),a=e=>{{let t=N(()=>H(u).flat()),n=N(()=>ji(H(u)));Ic(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(c)?e(r):e(i,-1)}),K(e,t)},$$slots:{header:!0,nowIndicator:!0}}),j()}var Uc={createOptions(e){pc(e),fc(e),hc(e),X(e,{datesAboveResources:!1,view:`resourceTimeGridWeek`}),X(e.buttonText,{resourceTimeGridDay:`day`,resourceTimeGridWeek:`week`}),X(e.theme,{colGroup:`ec-col-group`}),X(e.views,{resourceTimeGridDay:{buttonText:no,component:Wc,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:so(`ec-resource ec-time-grid ec-day-view`)},resourceTimeGridWeek:{buttonText:ro,component:Wc,duration:{weeks:1},theme:so(`ec-resource ec-time-grid ec-week-view`)}})},createParsers(e){mc(e)}};function Wc(e){return dc(e),Hc}function Gc(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?Ba(e,m,h,p)&&(i.length||(a=m,s=r,c=f,l=p),i.push(m),o=_):Ba(e,g,_,p)&&(i.length||(a=g,s=r,c=f,l=p,u=ki(e.start-g,0)/1e3),i.push(m),o=_,d+=(Oi(_,e.end)-ki(g,e.start))/1e3));if(i.length){let t=Ka(e,a,o);return X(t,{gridColumn:s,gridRow:c,resource:l,dates:i,left:u,width:d}),r&&Qa(t),[t]}return[]}function Kc(e){let t={};for(let n of e){let{gridColumn:e,gridRow:r}=n;for(let i=0;i<n.dates.length;++i){let a=`${r}_${e+i}`;t[a]?t[a].push(n):t[a]=[n]}n.day=t[`${r}_${e}`]}}function qc(e,t,n){let r=1,i=r+t,a=e.day;a.sort((e,t)=>(e.top??1/0)-(t.top??1/0));for(let t of a)if(!(t===e||!(`top`in t))&&(n||e.start<t.end&&e.end>t.start)&&r<t.bottom&&i>t.top){let e=t.bottom-r+1;r+=e,i+=e}return X(e,{top:r,bottom:i}),r}function Jc(e,t){return e[t.getTime()]??{min:Gi(0),max:Gi(`24:00:00`)}}function Yc(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[s.getTime()];o.push({gridColumn:c,gridRow:e,resource:t,start:Ki(Q(s),n.min),end:Ki(Q(s),n.max),dayStart:s,dayEnd:Ji(Q(s)),disabled:lo(s,i),highlight:r.some(e=>$i(e,s))}),++c}s.push(o),++e}}),s}}function Xc(e,t){return()=>{let{features:n,options:{firstDay:r,weekNumbers:i}}=e,{grid:a}=t,o=[],s=[];return U(()=>{let e,t;if(!Mi(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=oa(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 Zc(e,t){return()=>{let{filteredEvents:n}=e,{grid:r,monthView:i}=t,a=[],o=[];return U(()=>{for(let e of n)for(let t of r)Ha(e.display)?(!i||e.allDay)&&(o=o.concat(Gc(e,t,i))):a=a.concat(Gc(e,t,i));Kc(a)}),{chunks:a,bgChunks:o}}}function Qc(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(Gc(e,t,i,!1))});return a}}function $c(e){return()=>{let{filteredEvents:t,viewDates:n,options:{flexibleSlotTimeLimits:r,slotMinTime:i,slotMaxTime:a}}=e,o={};return U(()=>{for(let e of n)o[e.getTime()]=vo(i,a,r,[e],t)}),o}}function el(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=e.getTime();s[t]=t in i?_o(e,r,o,i[t],a):[]}}),s}}function tl(e){return()=>{let{resources:t}=e,n;return U(()=>{n=t.some(e=>ya(e).children.length)}),n}}function nl(e){return()=>{let{options:{slotDuration:t}}=e,n;return U(()=>{n=!$(t)}),n}}var rl=class extends Oc(Cc()){#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=N($c(e)),this.#t=N(el(e,this)),this.#n=N(Yc(e,this)),this.#r=N(Xc(e,this)),this.#i=N($a(e,`monthHeaderFormat`)),this.#a=N(nl(e));let t=N(Zc(e,this)),n=N(()=>H(t).chunks),r=N(()=>H(t).bgChunks);this.#o=N(()=>H(n)),this.#s=N(()=>H(r)),this.#c=N(Qc(e,this)),this.#l=N(tl(e))}};function il(e,t){A(t,!0);let n=N(()=>k(`state`)),r=N(()=>H(n).options.slotWidth),i=N(()=>k(`view-state`)),a=N(()=>H(i).monthView),o=N(()=>H(i).snap),s=N(()=>t.day.dayStart),c=N(()=>t.day.start),l=N(()=>t.day.resource),u=N(()=>t.day.disabled),d=N(()=>t.day.highlight),f=P(void 0);function p(e,t){if(H(a))return H(s);{let t=xa(H(f)),n=t.width/H(f).offsetWidth;return Ki(Q(H(c)),H(o).duration,Ei((Vi()?t.right-e:e-t.left)/(H(r)*H(o).ratio*n)))}}ms(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 al(e,t){A(t,!0);let n=N(()=>k(`state`)),r=N(()=>H(n).options.slotDuration),i=N(()=>H(n).options.slotWidth),a=N(()=>k(`view-state`)),o=N(()=>H(a).monthView),s=P(void 0),c=P(1),l=N(()=>t.chunk.event),u=N(()=>e=>{e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,H(o)||(e[`inset-inline-start`]=`${t.chunk.left/$(H(r))*H(i)}px`,e[`inline-size`]=`${t.chunk.width/$(H(r))*H(i)}px`);let n=H(c);if(H(l)._margin){let[e,r]=H(l)._margin;t.chunk.gridRow===r&&(n=e)}return e[`margin-block-start`]=`${n}px`,e});function d(){F(c,qc(t.chunk,Ca(H(s)),H(o)),!0)}var f={reposition:d};{let n=N(()=>[H(c),t.chunk.gridRow]);Ss(e,{get chunk(){return t.chunk},get styles(){return H(u)},axis:`x`,get forceMargin(){return H(n)},get el(){return H(s)},set el(e){F(s,e,!0)}})}return j(f)}var ol=W(`<span></span>`),sl=W(`<button></button>`),cl=W(`<!> <span><!></span>`,1);function ll(e,t){A(t,!0);let n=mi(t,`resource`,7),r=N(()=>k(`state`)),i=N(()=>H(r).resources),a=N(()=>H(r).view),o=N(()=>H(r).options.buttonText),s=N(()=>H(r).options.icons),c=N(()=>H(r).options.resourceExpand),l=N(()=>H(r).options.theme),u=P({}),d=N(()=>n().expanded),f=N(()=>H(o)[H(d)?`collapse`:`expand`]);xn(()=>{F(u,ya(n()))});function p(e){n().expanded=F(d,!H(d)),m(H(u).children),H(i).length=H(i).length,Z(H(c))&&H(c)({resource:n(),jsEvent:e,view:Oa(H(a))})}function m(e){for(let t of e){let e=ya(t);e.hidden=!H(d),t.expanded&&m(e.children)}}var h=cl(),g=L(h);J(g,17,()=>Array(H(u).level),Fr,(e,t)=>{var n=ol();z(()=>Y(n,1,H(l).expander)),K(e,n)});var _=R(g,2),v=I(_),y=e=>{var t=sl();Kr(t,()=>yi(H(s)[H(d)?`collapse`:`expand`])),z(()=>{Y(t,1,H(l).button),oi(t,`aria-label`,H(f)),oi(t,`title`,H(f))}),br(`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()}xr([`click`]);var ul=W(`<div></div>`);function dl(e,t){A(t,!0);let n=N(()=>k(`state`)),r=N(()=>H(n).mainEl),i=N(()=>H(n).now),a=N(()=>H(n).today),o=N(()=>H(n).options.slotDuration),s=N(()=>H(n).options.slotWidth),c=N(()=>H(n).options.theme),l=N(()=>k(`view-state`)),u=N(()=>H(l).grid),d=N(()=>H(l).sidebarWidth),f=N(()=>{for(let e of H(u)[0])if($i(e.dayStart,H(a)))return e;return{}}),p=N(()=>H(f).gridColumn),m=N(()=>H(f).start),h=N(()=>H(f).end),g=N(()=>{if(H(i)<H(m)||H(i)>H(h))return null;let e=$(H(o));return(H(i)-H(m))/1e3/e*H(s)}),_=N(()=>({root:H(r),rootMargin:Vi()?`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=ul();let n;Kr(t,()=>Si(v,H(_))),z(()=>{Y(t,1,H(c).nowIndicator),n=ni(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 fl=W(`<time></time>`),pl=W(`<span></span>`),ml=W(`<div><time></time></div>`),hl=W(`<div role="rowheader"><!> <!></div>`),gl=W(`<section><header><aside></aside> <div role="row"><!> <!> <!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>`);function _l(e,t){A(t,!0);let n=k(`state`),r=new rl(n);We(`view-state`,r);let i=N(()=>n.mainEl),a=N(()=>n.today),o=N(()=>n.viewDates),s=N(()=>n.options.columnWidth),c=N(()=>n.options.nowIndicator),l=N(()=>n.options.scrollTime),u=N(()=>n.options.slotDuration),d=N(()=>n.options.slotHeight),f=N(()=>n.options.slotWidth),p=N(()=>n.options.theme),m=N(()=>n.options.weekNumberContent),h=N(()=>r.chunks),g=N(()=>r.bgChunks),_=N(()=>r.iChunks),v=N(()=>r.daySlots),y=N(()=>r.dayTimeLimits),b=N(()=>r.grid),x=N(()=>r.extraHeads),S=N(()=>r.intlMonthHeader),ee=N(()=>r.monthView),C=N(()=>r.nestedResources),te=N(()=>r.sidebarWidth),ne=N(()=>r.slotLabelPeriodicity),re=N(()=>r.viewResources),ie=P(0);yn(()=>{H(l),Mi(H(o))||ur().then(ae)});function ae(){let e=0,t=H(a)<H(o)[0]||H(a)>H(o).at(-1);if(H(ee)){if(!t){let e=H(b)[0];for(let t of e)if($i(t.dayStart,H(a))){H(i).scrollLeft=(H(i).scrollWidth-H(te))/ji(e)*(t.gridColumn-1)*(Vi()?-1:1);break}}}else{for(let n of H(o)){let r=Jc(H(y),n);if(t||$i(n,H(a))){e+=ki(Oi($(H(l)),$(r.max))-$(r.min),0);break}else e+=$(r.max)-$(r.min)}H(i).scrollLeft=e/$(H(u))*H(f)*(Vi()?-1:1)}}let oe=[];function se(){za(oe,H(h))}yn(se);var ce=G(),le=L(ce),ue=e=>{var t=gl();let i;var a=I(t),o=I(a),l=R(o,2),u=I(l),y=e=>{var t=G();J(L(t),17,()=>H(x).months,Fr,(e,t)=>{let n=()=>H(t).date,r=()=>H(t).gridColumn,i=()=>H(t).span;ys(e,{get className(){return H(p).colGroup},get colIndex(){return r()},get colSpan(){return i()},cssSpan:!0,weekday:!1,children:(e,t)=>{var r=fl();Kr(r,()=>yi(H(S).format(n()))),z(e=>oi(r,`datetime`,e),[()=>Qi(n(),10)]),K(e,r)},$$slots:{default:!0}})}),K(e,t)},ae=N(()=>ji(H(x).months)>1);q(u,e=>{H(ae)&&e(y)});var ce=R(u,2),le=e=>{var t=G();J(L(t),17,()=>H(x).weeks,Fr,(e,t)=>{let n=()=>H(t).number,r=()=>H(t).date,i=()=>H(t).gridColumn,a=()=>H(t).span;ys(e,{get className(){return H(p).colGroup},get colIndex(){return i()},get colSpan(){return a()},cssSpan:!0,weekday:!1,children:(e,t)=>{var i=pl();Kr(i,()=>yi(sa(n(),H(m),r()))),z(()=>Y(i,1,H(p).weekNumber)),K(e,i)},$$slots:{default:!0}})}),K(e,t)},ue=N(()=>ji(H(x).weeks)>1);q(ce,e=>{H(ue)&&e(le)});var w=R(ce,2);J(w,17,()=>H(b)[0],Fr,(e,t,n)=>{let r=()=>H(t).dayStart,i=()=>H(t).disabled,a=()=>H(t).highlight;ys(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{xs(e,{get date(){return r()}})},$$slots:{default:!0}})});var T=R(w,2),de=e=>{var t=G();J(L(t),17,()=>H(b)[0],Fr,(e,t)=>{let n=()=>H(t).dayStart,r=()=>H(t).disabled,i=()=>H(t).highlight;ys(e,{get date(){return n()},get className(){return H(p).slots},get disabled(){return r()},get highlight(){return i()},ariaHidden:!0,children:(e,t)=>{var r=G();J(L(r),17,()=>H(v)[n().getTime()],Fr,(e,t)=>{var n=ml();let r;var i=I(n);Kr(i,()=>yi(H(t)[1])),O(n),z(()=>{Y(n,1,H(p).slot),r=ni(n,``,r,{"--ec-slot-label-periodicity":H(t)[2]}),oi(i,`datetime`,H(t)[0])}),K(e,n)}),K(e,r)},$$slots:{default:!0}})}),K(e,t)};q(T,e=>{H(ee)||e(de)}),O(l),O(a);var fe=R(a,2),pe=I(fe);J(pe,21,()=>H(re),Fr,(e,t)=>{var n=hl(),r=I(n),i=e=>{ll(e,{get resource(){return H(t)}})};q(r,e=>{H(C)&&e(i)}),jc(R(r,2),{get resource(){return H(t)}}),O(n),z(()=>Y(n,1,H(p).rowHead)),K(e,n)}),O(pe);var me=R(pe,2);J(me,21,()=>H(b),Fr,(e,t,n)=>{var r=G();J(L(r),17,()=>H(t),Fr,(e,r,i)=>{{let a=N(()=>i+1===ji(H(t))),o=N(()=>n+1===ji(H(b)));il(e,{get day(){return H(r)},get noIeb(){return H(a)},get noBeb(){return H(o)}})}}),K(e,r)}),O(me);var he=R(me,2),ge=I(he);J(ge,19,()=>H(h),e=>e.id,(e,t,n)=>{pi(al(e,{get chunk(){return H(t)}}),(e,t)=>oe[t]=e,e=>oe?.[e],()=>[H(n)])});var _e=R(ge,2);J(_e,17,()=>H(g),e=>e.id,(e,t)=>{al(e,{get chunk(){return H(t)}})}),J(R(_e,2),17,()=>H(_),Fr,(e,t)=>{al(e,{get chunk(){return H(t)}})}),O(he),O(fe);var ve=R(fe,2),ye=e=>{dl(e,{})};q(ve,e=>{H(c)&&!H(ee)&&e(ye)}),O(t),pi(t,e=>n.mainEl=e,()=>n?.mainEl),Kr(t,()=>xi(se)),z(e=>{Y(t,1,H(p).main),i=ni(t,``,i,e),Y(a,1,H(p).header),Y(o,1,H(p).sidebar),Y(l,1,H(p).grid),Y(fe,1,H(p).body),Y(pe,1,H(p).sidebar),Y(me,1,H(p).grid),Y(he,1,H(p).events)},[()=>({"--ec-grid-cols":ji(H(b)[0]),"--ec-grid-rows":`${ji(H(b))>1?`repeat(${ji(H(b))-1}, auto)`:``} 1fr`,"--ec-col-width":H(s)??`minmax(4em, 1fr)`,"--ec-slot-label-periodicity":H(ne),"--ec-slot-height":`${H(d)??``}px`,"--ec-slot-width":`${H(f)??``}px`,"--ec-header-height":`${H(ie)??``}px`,"--ec-sidebar-width":`${H(te)??``}px`})]),di(o,`offsetWidth`,e=>r.sidebarWidth=e),di(a,`offsetHeight`,e=>F(ie,e)),K(e,t)},w=N(()=>!Mi(H(b))&&!Mi(H(b)[0]));q(le,e=>{H(w)&&e(ue)}),K(e,ce),j()}var vl={createOptions(e){fc(e),hc(e),X(e,{monthHeaderFormat:{month:`long`},resourceExpand:void 0,slotWidth:32,view:`resourceTimelineWeek`}),X(e.buttonText,{expand:`Expand`,collapse:`Collapse`,resourceTimelineDay:`day`,resourceTimelineWeek:`week`,resourceTimelineMonth:`month`,resourceTimelineYear:`year`}),X(e.icons,{collapse:{html:`−`},expand:{html:`+`}}),X(e.theme,{expander:`ec-expander`,rowHead:`ec-row-head`,slots:`ec-slots`}),X(e.views,{resourceTimelineDay:{buttonText:no,component:yl,displayEventEnd:!1,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:so(`ec-resource ec-timeline ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},resourceTimelineWeek:{buttonText:ro,component:yl,displayEventEnd:!1,duration:{weeks:1},theme:so(`ec-resource ec-timeline ec-week-view`)},resourceTimelineMonth:{buttonText:io,component:bl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{months:1},slotDuration:{days:1},theme:so(`ec-resource ec-timeline ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},resourceTimelineYear:{buttonText:ao,component:bl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{years:1},slotDuration:{days:1},theme:so(`ec-resource ec-timeline ec-year-view`),titleFormat:{year:`numeric`}}})},createParsers(e){mc(e)}};function yl(e){return dc(e),xl(e)}function bl(e){return xl(e,[`month`])}function xl(e,t=[]){return e.features=[`timeline`,...t],e.extensions.viewResources=e=>e.filter(e=>!ya(e).hidden),_l}var Sl={createOptions(e){fc(e),pc(e),X(e.buttonText,{timeGridDay:`day`,timeGridWeek:`week`}),X(e,{view:`timeGridWeek`}),X(e.views,{timeGridDay:{buttonText:no,component:Cl,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:so(`ec-time-grid ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},timeGridWeek:{buttonText:ro,component:Cl,duration:{weeks:1},theme:so(`ec-time-grid ec-week-view`)}})},createParsers(e){mc(e)}};function Cl(e){return dc(e),Bc}function wl(e,t,n){return kr(ss,{target:e,props:{plugins:t,options:n}})}function Tl(e){return Nr(e)}function El(e,t){return wl(e,[Ns,Zs,oc,Uc,vl,Sl],t)}return e.create=El,e.destroy=Tl,e})({});
|
|
7
7
|
//# sourceMappingURL=event-calendar.min.js.map
|