@event-calendar/build 5.4.1 → 5.5.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,6 +1,7 @@
1
1
  /*!
2
- * EventCalendar v5.4.1
2
+ * EventCalendar v5.5.0
3
3
  * https://github.com/vkurko/calendar
4
4
  */
5
- var EventCalendar=(function(sr){"use strict";var Hi=Array.isArray,Wo=Array.prototype.indexOf,Dn=Array.prototype.includes,or=Array.from,zi=Object.defineProperty,En=Object.getOwnPropertyDescriptor,Uo=Object.getOwnPropertyDescriptors,Vo=Object.prototype,Bo=Array.prototype,Wi=Object.getPrototypeOf,Ui=Object.isExtensible;const Wt=()=>{};function Go(e){for(var t=0;t<e.length;t++)e[t]()}function Vi(){var e,t,r=new Promise((i,s)=>{e=i,t=s});return{promise:r,resolve:e,reject:t}}function Yo(e,t){if(Array.isArray(e))return e;if(!(Symbol.iterator in e))return Array.from(e);const r=[];for(const i of e)if(r.push(i),r.length===t)break;return r}const Ge=2,Hn=4,zn=8,Lr=1<<24,Ut=16,Dt=32,fn=64,Pr=128,yt=512,He=1024,$e=2048,Et=4096,ft=8192,Vt=16384,dn=32768,Zt=65536,Bi=1<<17,Gi=1<<18,Tn=1<<19,Yi=1<<20,Bt=1<<25,cn=65536,Mr=1<<21,Ar=1<<22,Jt=1<<23,Wn=Symbol("$state"),qo=Symbol("legacy props"),Xo=Symbol(""),hn=new class extends Error{name="StaleReactionError";message="The reaction that called `getAbortSignal()` was re-run or destroyed"};function qi(e){throw new Error("https://svelte.dev/e/lifecycle_outside_component")}function Ko(){throw new Error("https://svelte.dev/e/async_derived_orphan")}function Zo(e,t,r){throw new Error("https://svelte.dev/e/each_key_duplicate")}function Jo(e){throw new Error("https://svelte.dev/e/effect_in_teardown")}function Qo(){throw new Error("https://svelte.dev/e/effect_in_unowned_derived")}function jo(e){throw new Error("https://svelte.dev/e/effect_orphan")}function $o(){throw new Error("https://svelte.dev/e/effect_update_depth_exceeded")}function ea(){throw new Error("https://svelte.dev/e/get_abort_signal_outside_reaction")}function ta(e){throw new Error("https://svelte.dev/e/props_invalid_value")}function na(){throw new Error("https://svelte.dev/e/state_descriptors_fixed")}function ra(){throw new Error("https://svelte.dev/e/state_prototype_fixed")}function ia(){throw new Error("https://svelte.dev/e/state_unsafe_mutation")}function sa(){throw new Error("https://svelte.dev/e/svelte_boundary_reset_onerror")}const oa=1,aa=2,Xi=4,la=8,ua=16,fa=1,da=4,ca=8,ha=16,va=1,ga=2,Ye=Symbol(),Ki="http://www.w3.org/1999/xhtml";function ma(){console.warn("https://svelte.dev/e/svelte_boundary_reset_noop")}function Zi(e){return e===this.v}function pa(e,t){return e!=e?t==t:e!==t||e!==null&&typeof e=="object"||typeof e=="function"}function Ji(e){return!pa(e,this.v)}let bd=!1,et=null;function xn(e){et=e}function te(e){return ji().get(e)}function Un(e,t){return ji().set(e,t),t}function pe(e,t=!1,r){et={p:et,i:!1,c:null,e:null,s:e,x:null,l:null}}function ye(e){var t=et,r=t.e;if(r!==null){t.e=null;for(var i of r)_s(i)}return e!==void 0&&(t.x=e),t.i=!0,et=t.p,e??{}}function Qi(){return!0}function ji(e){return et===null&&qi(),et.c??=new Map(ya(et)||void 0)}function ya(e){let t=e.p;for(;t!==null;){const r=t.c;if(r!==null)return r;t=t.p}return null}let vn=[];function $i(){var e=vn;vn=[],Go(e)}function Mt(e){if(vn.length===0&&!Vn){var t=vn;queueMicrotask(()=>{t===vn&&$i()})}vn.push(e)}function _a(){for(;vn.length>0;)$i()}function es(e){var t=we;if(t===null)return fe.f|=Jt,e;if((t.f&dn)===0&&(t.f&Hn)===0)throw e;Qt(e,t)}function Qt(e,t){for(;t!==null;){if((t.f&Pr)!==0){if((t.f&dn)===0)throw e;try{t.b.error(e);return}catch(r){e=r}}t=t.parent}throw e}const wa=-7169;function Me(e,t){e.f=e.f&wa|t}function Or(e){(e.f&yt)!==0||e.deps===null?Me(e,He):Me(e,Et)}function ts(e){if(e!==null)for(const t of e)(t.f&Ge)===0||(t.f&cn)===0||(t.f^=cn,ts(t.deps))}function ns(e,t,r){(e.f&$e)!==0?t.add(e):(e.f&Et)!==0&&r.add(e),ts(e.deps),Me(e,He)}const ar=new Set;let Re=null,Tt=null,ot=[],lr=null,Nr=!1,Vn=!1;class jt{current=new Map;previous=new Map;#e=new Set;#n=new Set;#t=0;#i=0;#r=null;#s=new Set;#o=new Set;#a=new Map;is_fork=!1;#l=!1;#f(){return this.is_fork||this.#i>0}skip_effect(t){this.#a.has(t)||this.#a.set(t,{d:[],m:[]})}unskip_effect(t){var r=this.#a.get(t);if(r){this.#a.delete(t);for(var i of r.d)Me(i,$e),xt(i);for(i of r.m)Me(i,Et),xt(i)}}process(t){ot=[],this.apply();var r=[],i=[];for(const s of t)this.#u(s,r,i);if(this.#f()){this.#d(i),this.#d(r);for(const[s,o]of this.#a)as(s,o)}else{for(const s of this.#e)s();this.#e.clear(),this.#t===0&&this.#h(),Re=null,is(i),is(r),this.#r?.resolve()}Tt=null}#u(t,r,i){t.f^=He;for(var s=t.first;s!==null;){var o=s.f,l=(o&(Dt|fn))!==0,u=l&&(o&He)!==0,f=u||(o&ft)!==0||this.#a.has(s);if(!f&&s.fn!==null){l?s.f^=He:(o&Hn)!==0?r.push(s):Yn(s)&&((o&Ut)!==0&&this.#o.add(s),Rn(s));var d=s.first;if(d!==null){s=d;continue}}for(;s!==null;){var c=s.next;if(c!==null){s=c;break}s=s.parent}}}#d(t){for(var r=0;r<t.length;r+=1)ns(t[r],this.#s,this.#o)}capture(t,r){r!==Ye&&!this.previous.has(t)&&this.previous.set(t,r),(t.f&Jt)===0&&(this.current.set(t,t.v),Tt?.set(t,t.v))}activate(){Re=this,this.apply()}deactivate(){Re===this&&(Re=null,Tt=null)}flush(){if(this.activate(),ot.length>0){if(rs(),Re!==null&&Re!==this)return}else this.#t===0&&this.process([]);this.deactivate()}discard(){for(const t of this.#n)t(this);this.#n.clear()}#h(){if(ar.size>1){this.previous.clear();var t=Tt,r=!0;for(const s of ar){if(s===this){r=!1;continue}const o=[];for(const[u,f]of this.current){if(s.current.has(u))if(r&&f!==s.current.get(u))s.current.set(u,f);else continue;o.push(u)}if(o.length===0)continue;const l=[...s.current.keys()].filter(u=>!this.current.has(u));if(l.length>0){var i=ot;ot=[];const u=new Set,f=new Map;for(const d of o)ss(d,l,u,f);if(ot.length>0){Re=s,s.apply();for(const d of ot)s.#u(d,[],[]);s.deactivate()}ot=i}}Re=null,Tt=t}ar.delete(this)}increment(t){this.#t+=1,t&&(this.#i+=1)}decrement(t){this.#t-=1,t&&(this.#i-=1),!this.#l&&(this.#l=!0,Mt(()=>{this.#l=!1,this.#f()?ot.length>0&&this.flush():this.revive()}))}revive(){for(const t of this.#s)this.#o.delete(t),Me(t,$e),xt(t);for(const t of this.#o)Me(t,Et),xt(t);this.flush()}oncommit(t){this.#e.add(t)}ondiscard(t){this.#n.add(t)}settled(){return(this.#r??=Vi()).promise}static ensure(){if(Re===null){const t=Re=new jt;ar.add(Re),Vn||Mt(()=>{Re===t&&t.flush()})}return Re}apply(){}}function ba(e){var t=Vn;Vn=!0;try{for(var r;;){if(_a(),ot.length===0&&(Re?.flush(),ot.length===0))return lr=null,r;rs()}}finally{Vn=t}}function rs(){Nr=!0;var e=null;try{for(var t=0;ot.length>0;){var r=jt.ensure();if(t++>1e3){var i,s;ka()}r.process(ot),$t.clear()}}finally{ot=[],Nr=!1,lr=null}}function ka(){try{$o()}catch(e){Qt(e,lr)}}let Gt=null;function is(e){var t=e.length;if(t!==0){for(var r=0;r<t;){var i=e[r++];if((i.f&(Vt|ft))===0&&Yn(i)&&(Gt=new Set,Rn(i),i.deps===null&&i.first===null&&i.nodes===null&&i.teardown===null&&i.ac===null&&ks(i),Gt?.size>0)){$t.clear();for(const s of Gt){if((s.f&(Vt|ft))!==0)continue;const o=[s];let l=s.parent;for(;l!==null;)Gt.has(l)&&(Gt.delete(l),o.push(l)),l=l.parent;for(let u=o.length-1;u>=0;u--){const f=o[u];(f.f&(Vt|ft))===0&&Rn(f)}}Gt.clear()}}Gt=null}}function ss(e,t,r,i){if(!r.has(e)&&(r.add(e),e.reactions!==null))for(const s of e.reactions){const o=s.f;(o&Ge)!==0?ss(s,t,r,i):(o&(Ar|Ut))!==0&&(o&$e)===0&&os(s,t,i)&&(Me(s,$e),xt(s))}}function os(e,t,r){const i=r.get(e);if(i!==void 0)return i;if(e.deps!==null)for(const s of e.deps){if(Dn.call(t,s))return!0;if((s.f&Ge)!==0&&os(s,t,r))return r.set(s,!0),!0}return r.set(e,!1),!1}function xt(e){var t=lr=e,r=t.b;if(r?.is_pending&&(e.f&(Hn|zn|Lr))!==0&&(e.f&dn)===0){r.defer_effect(e);return}for(;t.parent!==null;){t=t.parent;var i=t.f;if(Nr&&t===we&&(i&Ut)!==0&&(i&Gi)===0&&(i&dn)!==0)return;if((i&(fn|Dt))!==0){if((i&He)===0)return;t.f^=He}}ot.push(t)}function as(e,t){if(!((e.f&Dt)!==0&&(e.f&He)!==0)){(e.f&$e)!==0?t.d.push(e):(e.f&Et)!==0&&t.m.push(e),Me(e,He);for(var r=e.first;r!==null;)as(r,t),r=r.next}}function Ca(e){let t=0,r=en(0),i;return()=>{Ur()&&(n(r),ws(()=>(t===0&&(i=J(()=>e(()=>At(r)))),t+=1,()=>{Mt(()=>{t-=1,t===0&&(i?.(),i=void 0,At(r))})})))}}var Da=Zt|Tn;function Ea(e,t,r,i){new Ta(e,t,r,i)}class Ta{parent;is_pending=!1;transform_error;#e;#n=null;#t;#i;#r;#s=null;#o=null;#a=null;#l=null;#f=0;#u=0;#d=!1;#h=new Set;#v=new Set;#c=null;#_=Ca(()=>(this.#c=en(this.#f),()=>{this.#c=null}));constructor(t,r,i,s){this.#e=t,this.#t=r,this.#i=o=>{var l=we;l.b=this,l.f|=Pr,i(o)},this.parent=we.b,this.transform_error=s??this.parent?.transform_error??(o=>o),this.#r=Gn(()=>{this.#p()},Da)}#w(){try{this.#s=dt(()=>this.#i(this.#e))}catch(t){this.error(t)}}#b(t){const r=this.#t.failed;r&&(this.#a=dt(()=>{r(this.#e,()=>t,()=>()=>{})}))}#k(){const t=this.#t.pending;t&&(this.is_pending=!0,this.#o=dt(()=>t(this.#e)),Mt(()=>{var r=this.#l=document.createDocumentFragment(),i=tn();r.append(i),this.#s=this.#m(()=>(jt.ensure(),dt(()=>this.#i(i)))),this.#u===0&&(this.#e.before(r),this.#l=null,mn(this.#o,()=>{this.#o=null}),this.#g())}))}#p(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#f=0,this.#s=dt(()=>{this.#i(this.#e)}),this.#u>0){var t=this.#l=document.createDocumentFragment();Es(this.#s,t);const r=this.#t.pending;this.#o=dt(()=>r(this.#e))}else this.#g()}catch(r){this.error(r)}}#g(){this.is_pending=!1;for(const t of this.#h)Me(t,$e),xt(t);for(const t of this.#v)Me(t,Et),xt(t);this.#h.clear(),this.#v.clear()}defer_effect(t){ns(t,this.#h,this.#v)}is_rendered(){return!this.is_pending&&(!this.parent||this.parent.is_rendered())}has_pending_snippet(){return!!this.#t.pending}#m(t){var r=we,i=fe,s=et;Ot(this.#r),_t(this.#r),xn(this.#r.ctx);try{return t()}catch(o){return es(o),null}finally{Ot(r),_t(i),xn(s)}}#y(t){if(!this.has_pending_snippet()){this.parent&&this.parent.#y(t);return}this.#u+=t,this.#u===0&&(this.#g(),this.#o&&mn(this.#o,()=>{this.#o=null}),this.#l&&(this.#e.before(this.#l),this.#l=null))}update_pending_count(t){this.#y(t),this.#f+=t,!(!this.#c||this.#d)&&(this.#d=!0,Mt(()=>{this.#d=!1,this.#c&&Sn(this.#c,this.#f)}))}get_effect_pending(){return this.#_(),n(this.#c)}error(t){var r=this.#t.onerror;let i=this.#t.failed;if(!r&&!i)throw t;this.#s&&(st(this.#s),this.#s=null),this.#o&&(st(this.#o),this.#o=null),this.#a&&(st(this.#a),this.#a=null);var s=!1,o=!1;const l=()=>{if(s){ma();return}s=!0,o&&sa(),this.#a!==null&&mn(this.#a,()=>{this.#a=null}),this.#m(()=>{jt.ensure(),this.#p()})},u=f=>{try{o=!0,r?.(f,l),o=!1}catch(d){Qt(d,this.#r&&this.#r.parent)}i&&(this.#a=this.#m(()=>{jt.ensure();try{return dt(()=>{var d=we;d.b=this,d.f|=Pr,i(this.#e,()=>f,()=>l)})}catch(d){return Qt(d,this.#r.parent),null}}))};Mt(()=>{var f;try{f=this.transform_error(t)}catch(d){Qt(d,this.#r&&this.#r.parent);return}f!==null&&typeof f=="object"&&typeof f.then=="function"?f.then(u,d=>Qt(d,this.#r&&this.#r.parent)):u(f)})}}function xa(e,t,r,i){const s=ur;var o=e.filter(g=>!g.settled);if(r.length===0&&o.length===0){i(t.map(s));return}var l=we,u=Sa(),f=o.length===1?o[0].promise:o.length>1?Promise.all(o.map(g=>g.promise)):null;function d(g){u();try{i(g)}catch(h){(l.f&Vt)===0&&Qt(h,l)}Fr()}if(r.length===0){f.then(()=>d(t.map(s)));return}function c(){u(),Promise.all(r.map(g=>Ia(g))).then(g=>d([...t.map(s),...g])).catch(g=>Qt(g,l))}f?f.then(c):c()}function Sa(){var e=we,t=fe,r=et,i=Re;return function(o=!0){Ot(e),_t(t),xn(r),o&&i?.activate()}}function Fr(e=!0){Ot(null),_t(null),xn(null),e&&Re?.deactivate()}function Ra(){var e=we.b,t=Re,r=e.is_rendered();return e.update_pending_count(1),t.increment(r),()=>{e.update_pending_count(-1),t.decrement(r)}}function ur(e){var t=Ge|$e,r=fe!==null&&(fe.f&Ge)!==0?fe:null;return we!==null&&(we.f|=Tn),{ctx:et,deps:null,effects:null,equals:Zi,f:t,fn:e,reactions:null,rv:0,v:Ye,wv:0,parent:r??we,ac:null}}function Ia(e,t,r){we===null&&Ko();var s=void 0,o=en(Ye),l=!fe,u=new Map;return Ua(()=>{var f=Vi();s=f.promise;try{Promise.resolve(e()).then(f.resolve,f.reject).finally(Fr)}catch(h){f.reject(h),Fr()}var d=Re;if(l){var c=Ra();u.get(d)?.reject(hn),u.delete(d),u.set(d,f)}const g=(h,v=void 0)=>{if(d.activate(),v)v!==hn&&(o.f|=Jt,Sn(o,v));else{(o.f&Jt)!==0&&(o.f^=Jt),Sn(o,h);for(const[p,y]of u){if(u.delete(p),p===d)break;y.reject(hn)}}c&&c()};f.promise.then(g,h=>g(null,h||"unknown"))}),Vr(()=>{for(const f of u.values())f.reject(hn)}),new Promise(f=>{function d(c){function g(){c===s?f(o):d(s)}c.then(g,g)}d(s)})}function a(e){const t=ur(e);return xs(t),t}function ls(e){const t=ur(e);return t.equals=Ji,t}function La(e){var t=e.effects;if(t!==null){e.effects=null;for(var r=0;r<t.length;r+=1)st(t[r])}}function Pa(e){for(var t=e.parent;t!==null;){if((t.f&Ge)===0)return(t.f&Vt)===0?t:null;t=t.parent}return null}function Hr(e){var t,r=we;Ot(Pa(e));try{e.f&=~cn,La(e),t=Ps(e)}finally{Ot(r)}return t}function us(e){var t=Hr(e);if(!e.equals(t)&&(e.wv=Is(),(!Re?.is_fork||e.deps===null)&&(e.v=t,e.deps===null))){Me(e,He);return}nn||(Tt!==null?(Ur()||Re?.is_fork)&&Tt.set(e,t):Or(e))}function Ma(e){if(e.effects!==null)for(const t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(hn),t.teardown=Wt,t.ac=null,qn(t,0),Gr(t))}function fs(e){if(e.effects!==null)for(const t of e.effects)t.teardown&&Rn(t)}let zr=new Set;const $t=new Map;let ds=!1;function en(e,t){var r={f:0,v:e,reactions:null,equals:Zi,rv:0,wv:0};return r}function B(e,t){const r=en(e);return xs(r),r}function cs(e,t=!1,r=!0){const i=en(e);return t||(i.equals=Ji),i}function b(e,t,r=!1){fe!==null&&(!It||(fe.f&Bi)!==0)&&Qi()&&(fe.f&(Ge|Ut|Ar|Bi))!==0&&(wt===null||!Dn.call(wt,e))&&ia();let i=r?qe(t):t;return Sn(e,i)}function Sn(e,t){if(!e.equals(t)){var r=e.v;nn?$t.set(e,t):$t.set(e,r),e.v=t;var i=jt.ensure();if(i.capture(e,r),(e.f&Ge)!==0){const s=e;(e.f&$e)!==0&&Hr(s),Or(s)}e.wv=Is(),hs(e,$e),we!==null&&(we.f&He)!==0&&(we.f&(Dt|fn))===0&&(bt===null?Ya([e]):bt.push(e)),!i.is_fork&&zr.size>0&&!ds&&Aa()}return t}function Aa(){ds=!1;for(const e of zr)(e.f&He)!==0&&Me(e,Et),Yn(e)&&Rn(e);zr.clear()}function At(e){b(e,e.v+1)}function hs(e,t){var r=e.reactions;if(r!==null)for(var i=r.length,s=0;s<i;s++){var o=r[s],l=o.f,u=(l&$e)===0;if(u&&Me(o,t),(l&Ge)!==0){var f=o;Tt?.delete(f),(l&cn)===0&&(l&yt&&(o.f|=cn),hs(f,Et))}else u&&((l&Ut)!==0&&Gt!==null&&Gt.add(o),xt(o))}}function qe(e){if(typeof e!="object"||e===null||Wn in e)return e;const t=Wi(e);if(t!==Vo&&t!==Bo)return e;var r=new Map,i=Hi(e),s=B(0),o=Yt,l=u=>{if(Yt===o)return u();var f=fe,d=Yt;_t(null),Rs(o);var c=u();return _t(f),Rs(d),c};return i&&r.set("length",B(e.length)),new Proxy(e,{defineProperty(u,f,d){(!("value"in d)||d.configurable===!1||d.enumerable===!1||d.writable===!1)&&na();var c=r.get(f);return c===void 0?l(()=>{var g=B(d.value);return r.set(f,g),g}):b(c,d.value,!0),!0},deleteProperty(u,f){var d=r.get(f);if(d===void 0){if(f in u){const c=l(()=>B(Ye));r.set(f,c),At(s)}}else b(d,Ye),At(s);return!0},get(u,f,d){if(f===Wn)return e;var c=r.get(f),g=f in u;if(c===void 0&&(!g||En(u,f)?.writable)&&(c=l(()=>{var v=qe(g?u[f]:Ye),p=B(v);return p}),r.set(f,c)),c!==void 0){var h=n(c);return h===Ye?void 0:h}return Reflect.get(u,f,d)},getOwnPropertyDescriptor(u,f){var d=Reflect.getOwnPropertyDescriptor(u,f);if(d&&"value"in d){var c=r.get(f);c&&(d.value=n(c))}else if(d===void 0){var g=r.get(f),h=g?.v;if(g!==void 0&&h!==Ye)return{enumerable:!0,configurable:!0,value:h,writable:!0}}return d},has(u,f){if(f===Wn)return!0;var d=r.get(f),c=d!==void 0&&d.v!==Ye||Reflect.has(u,f);if(d!==void 0||we!==null&&(!c||En(u,f)?.writable)){d===void 0&&(d=l(()=>{var h=c?qe(u[f]):Ye,v=B(h);return v}),r.set(f,d));var g=n(d);if(g===Ye)return!1}return c},set(u,f,d,c){var g=r.get(f),h=f in u;if(i&&f==="length")for(var v=d;v<g.v;v+=1){var p=r.get(v+"");p!==void 0?b(p,Ye):v in u&&(p=l(()=>B(Ye)),r.set(v+"",p))}if(g===void 0)(!h||En(u,f)?.writable)&&(g=l(()=>B(void 0)),b(g,qe(d)),r.set(f,g));else{h=g.v!==Ye;var y=l(()=>qe(d));b(g,y)}var m=Reflect.getOwnPropertyDescriptor(u,f);if(m?.set&&m.set.call(c,d),!h){if(i&&typeof f=="string"){var _=r.get("length"),T=Number(f);Number.isInteger(T)&&T>=_.v&&b(_,T+1)}At(s)}return!0},ownKeys(u){n(s);var f=Reflect.ownKeys(u).filter(g=>{var h=r.get(g);return h===void 0||h.v!==Ye});for(var[d,c]of r)c.v!==Ye&&!(d in u)&&f.push(d);return f},setPrototypeOf(){ra()}})}var St,vs,gs,ms;function Oa(){if(St===void 0){St=window,vs=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,r=Text.prototype;gs=En(t,"firstChild").get,ms=En(t,"nextSibling").get,Ui(e)&&(e.__click=void 0,e.__className=void 0,e.__attributes=null,e.__style=void 0,e.__e=void 0),Ui(r)&&(r.__t=void 0)}}function tn(e=""){return document.createTextNode(e)}function fr(e){return gs.call(e)}function Bn(e){return ms.call(e)}function ue(e,t){return fr(e)}function ne(e,t=!1){{var r=fr(e);return r instanceof Comment&&r.data===""?Bn(r):r}}function re(e,t=1,r=!1){let i=e;for(;t--;)i=Bn(i);return i}function Na(e){e.textContent=""}function ps(){return!1}function Fa(e,t,r){return document.createElementNS(Ki,e,void 0)}function Ha(e,t){{const r=document.body;e.autofocus=!0,Mt(()=>{document.activeElement===r&&e.focus()})}}function Wr(e){var t=fe,r=we;_t(null),Ot(null);try{return e()}finally{_t(t),Ot(r)}}function ys(e){we===null&&(fe===null&&jo(),Qo()),nn&&Jo()}function za(e,t){var r=t.last;r===null?t.last=t.first=e:(r.next=e,e.prev=r,t.last=e)}function Rt(e,t,r){var i=we;i!==null&&(i.f&ft)!==0&&(e|=ft);var s={ctx:et,deps:null,nodes:null,f:e|$e|yt,first:null,fn:t,last:null,next:null,parent:i,b:i&&i.b,prev:null,teardown:null,wv:0,ac:null};if(r)try{Rn(s)}catch(u){throw st(s),u}else t!==null&&xt(s);var o=s;if(r&&o.deps===null&&o.teardown===null&&o.nodes===null&&o.first===o.last&&(o.f&Tn)===0&&(o=o.first,(e&Ut)!==0&&(e&Zt)!==0&&o!==null&&(o.f|=Zt)),o!==null&&(o.parent=i,i!==null&&za(o,i),fe!==null&&(fe.f&Ge)!==0&&(e&fn)===0)){var l=fe;(l.effects??=[]).push(o)}return s}function Ur(){return fe!==null&&!It}function Vr(e){const t=Rt(zn,null,!1);return Me(t,He),t.teardown=e,t}function Xe(e){ys();var t=we.f,r=!fe&&(t&Dt)!==0&&(t&dn)===0;if(r){var i=et;(i.e??=[]).push(e)}else return _s(e)}function _s(e){return Rt(Hn|Yi,e,!1)}function gn(e){return ys(),Rt(zn|Yi,e,!0)}function Wa(e){jt.ensure();const t=Rt(fn|Tn,e,!0);return(r={})=>new Promise(i=>{r.outro?mn(t,()=>{st(t),i(void 0)}):(st(t),i(void 0))})}function Br(e){return Rt(Hn,e,!1)}function Ua(e){return Rt(Ar|Tn,e,!0)}function ws(e,t=0){return Rt(zn|t,e,!0)}function se(e,t=[],r=[],i=[]){xa(i,t,r,s=>{Rt(zn,()=>e(...s.map(n)),!0)})}function Gn(e,t=0){var r=Rt(Ut|t,e,!0);return r}function Va(e,t=0){var r=Rt(Lr|t,e,!0);return r}function dt(e){return Rt(Dt|Tn,e,!0)}function bs(e){var t=e.teardown;if(t!==null){const r=nn,i=fe;Ts(!0),_t(null);try{t.call(null)}finally{Ts(r),_t(i)}}}function Gr(e,t=!1){var r=e.first;for(e.first=e.last=null;r!==null;){const s=r.ac;s!==null&&Wr(()=>{s.abort(hn)});var i=r.next;(r.f&fn)!==0?r.parent=null:st(r,t),r=i}}function Ba(e){for(var t=e.first;t!==null;){var r=t.next;(t.f&Dt)===0&&st(t),t=r}}function st(e,t=!0){var r=!1;(t||(e.f&Gi)!==0)&&e.nodes!==null&&e.nodes.end!==null&&(Ga(e.nodes.start,e.nodes.end),r=!0),Gr(e,t&&!r),qn(e,0),Me(e,Vt);var i=e.nodes&&e.nodes.t;if(i!==null)for(const o of i)o.stop();bs(e);var s=e.parent;s!==null&&s.first!==null&&ks(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Ga(e,t){for(;e!==null;){var r=e===t?null:Bn(e);e.remove(),e=r}}function ks(e){var t=e.parent,r=e.prev,i=e.next;r!==null&&(r.next=i),i!==null&&(i.prev=r),t!==null&&(t.first===e&&(t.first=i),t.last===e&&(t.last=r))}function mn(e,t,r=!0){var i=[];Cs(e,i,!0);var s=()=>{r&&st(e),t&&t()},o=i.length;if(o>0){var l=()=>--o||s();for(var u of i)u.out(l)}else s()}function Cs(e,t,r){if((e.f&ft)===0){e.f^=ft;var i=e.nodes&&e.nodes.t;if(i!==null)for(const u of i)(u.is_global||r)&&t.push(u);for(var s=e.first;s!==null;){var o=s.next,l=(s.f&Zt)!==0||(s.f&Dt)!==0&&(e.f&Ut)!==0;Cs(s,t,l?r:!1),s=o}}}function Yr(e){Ds(e,!0)}function Ds(e,t){if((e.f&ft)!==0){e.f^=ft,(e.f&He)===0&&(Me(e,$e),xt(e));for(var r=e.first;r!==null;){var i=r.next,s=(r.f&Zt)!==0||(r.f&Dt)!==0;Ds(r,s?t:!1),r=i}var o=e.nodes&&e.nodes.t;if(o!==null)for(const l of o)(l.is_global||t)&&l.in()}}function Es(e,t){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end;r!==null;){var s=r===i?null:Bn(r);t.append(r),r=s}}let dr=!1,nn=!1;function Ts(e){nn=e}let fe=null,It=!1;function _t(e){fe=e}let we=null;function Ot(e){we=e}let wt=null;function xs(e){fe!==null&&(wt===null?wt=[e]:wt.push(e))}let at=null,ct=0,bt=null;function Ya(e){bt=e}let Ss=1,pn=0,Yt=pn;function Rs(e){Yt=e}function Is(){return++Ss}function Yn(e){var t=e.f;if((t&$e)!==0)return!0;if(t&Ge&&(e.f&=~cn),(t&Et)!==0){for(var r=e.deps,i=r.length,s=0;s<i;s++){var o=r[s];if(Yn(o)&&us(o),o.wv>e.wv)return!0}(t&yt)!==0&&Tt===null&&Me(e,He)}return!1}function Ls(e,t,r=!0){var i=e.reactions;if(i!==null&&!(wt!==null&&Dn.call(wt,e)))for(var s=0;s<i.length;s++){var o=i[s];(o.f&Ge)!==0?Ls(o,t,!1):t===o&&(r?Me(o,$e):(o.f&He)!==0&&Me(o,Et),xt(o))}}function Ps(e){var t=at,r=ct,i=bt,s=fe,o=wt,l=et,u=It,f=Yt,d=e.f;at=null,ct=0,bt=null,fe=(d&(Dt|fn))===0?e:null,wt=null,xn(e.ctx),It=!1,Yt=++pn,e.ac!==null&&(Wr(()=>{e.ac.abort(hn)}),e.ac=null);try{e.f|=Mr;var c=e.fn,g=c();e.f|=dn;var h=e.deps,v=Re?.is_fork;if(at!==null){var p;if(v||qn(e,ct),h!==null&&ct>0)for(h.length=ct+at.length,p=0;p<at.length;p++)h[ct+p]=at[p];else e.deps=h=at;if(Ur()&&(e.f&yt)!==0)for(p=ct;p<h.length;p++)(h[p].reactions??=[]).push(e)}else!v&&h!==null&&ct<h.length&&(qn(e,ct),h.length=ct);if(Qi()&&bt!==null&&!It&&h!==null&&(e.f&(Ge|Et|$e))===0)for(p=0;p<bt.length;p++)Ls(bt[p],e);if(s!==null&&s!==e){if(pn++,s.deps!==null)for(let y=0;y<r;y+=1)s.deps[y].rv=pn;if(t!==null)for(const y of t)y.rv=pn;bt!==null&&(i===null?i=bt:i.push(...bt))}return(e.f&Jt)!==0&&(e.f^=Jt),g}catch(y){return es(y)}finally{e.f^=Mr,at=t,ct=r,bt=i,fe=s,wt=o,xn(l),It=u,Yt=f}}function qa(e,t){let r=t.reactions;if(r!==null){var i=Wo.call(r,e);if(i!==-1){var s=r.length-1;s===0?r=t.reactions=null:(r[i]=r[s],r.pop())}}if(r===null&&(t.f&Ge)!==0&&(at===null||!Dn.call(at,t))){var o=t;(o.f&yt)!==0&&(o.f^=yt,o.f&=~cn),Or(o),Ma(o),qn(o,0)}}function qn(e,t){var r=e.deps;if(r!==null)for(var i=t;i<r.length;i++)qa(e,r[i])}function Rn(e){var t=e.f;if((t&Vt)===0){Me(e,He);var r=we,i=dr;we=e,dr=!0;try{(t&(Ut|Lr))!==0?Ba(e):Gr(e),bs(e);var s=Ps(e);e.teardown=typeof s=="function"?s:null,e.wv=Ss;var o}finally{dr=i,we=r}}}async function yn(){await Promise.resolve(),ba()}function n(e){var t=e.f,r=(t&Ge)!==0;if(fe!==null&&!It){var i=we!==null&&(we.f&Vt)!==0;if(!i&&(wt===null||!Dn.call(wt,e))){var s=fe.deps;if((fe.f&Mr)!==0)e.rv<pn&&(e.rv=pn,at===null&&s!==null&&s[ct]===e?ct++:at===null?at=[e]:at.push(e));else{(fe.deps??=[]).push(e);var o=e.reactions;o===null?e.reactions=[fe]:Dn.call(o,fe)||o.push(fe)}}}if(nn&&$t.has(e))return $t.get(e);if(r){var l=e;if(nn){var u=l.v;return((l.f&He)===0&&l.reactions!==null||As(l))&&(u=Hr(l)),$t.set(l,u),u}var f=(l.f&yt)===0&&!It&&fe!==null&&(dr||(fe.f&yt)!==0),d=(l.f&dn)===0;Yn(l)&&(f&&(l.f|=yt),us(l)),f&&!d&&(fs(l),Ms(l))}if(Tt?.has(e))return Tt.get(e);if((e.f&Jt)!==0)throw e.v;return e.v}function Ms(e){if(e.f|=yt,e.deps!==null)for(const t of e.deps)(t.reactions??=[]).push(e),(t.f&Ge)!==0&&(t.f&yt)===0&&(fs(t),Ms(t))}function As(e){if(e.v===Ye)return!0;if(e.deps===null)return!1;for(const t of e.deps)if($t.has(t)||(t.f&Ge)!==0&&As(t))return!0;return!1}function J(e){var t=It;try{return It=!0,e()}finally{It=t}}const Xa=["touchstart","touchmove"];function Ka(e){return Xa.includes(e)}const Xn=Symbol("events"),Os=new Set,qr=new Set;function Za(e,t,r,i={}){function s(o){if(i.capture||Xr.call(t,o),!o.cancelBubble)return Wr(()=>r?.call(this,o))}return e.startsWith("pointer")||e.startsWith("touch")||e==="wheel"?Mt(()=>{t.addEventListener(e,s,i)}):t.addEventListener(e,s,i),s}function ht(e,t,r,i,s){var o={capture:i,passive:s},l=Za(e,t,r,o);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&Vr(()=>{t.removeEventListener(e,l,o)})}function ze(e,t,r){(t[Xn]??={})[e]=r}function rn(e){for(var t=0;t<e.length;t++)Os.add(e[t]);for(var r of qr)r(e)}let Ns=null;function Xr(e){var t=this,r=t.ownerDocument,i=e.type,s=e.composedPath?.()||[],o=s[0]||e.target;Ns=e;var l=0,u=Ns===e&&e[Xn];if(u){var f=s.indexOf(u);if(f!==-1&&(t===document||t===window)){e[Xn]=t;return}var d=s.indexOf(t);if(d===-1)return;f<=d&&(l=f)}if(o=s[l]||e.target,o!==t){zi(e,"currentTarget",{configurable:!0,get(){return o||r}});var c=fe,g=we;_t(null),Ot(null);try{for(var h,v=[];o!==null;){var p=o.assignedSlot||o.parentNode||o.host||null;try{var y=o[Xn]?.[i];y!=null&&(!o.disabled||e.target===o)&&y.call(o,e)}catch(m){h?v.push(m):h=m}if(e.cancelBubble||p===t||p===null)break;o=p}if(h){for(let m of v)queueMicrotask(()=>{throw m});throw h}}finally{e[Xn]=t,delete e.currentTarget,_t(c),Ot(g)}}}const Ja=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy("svelte-trusted-html",{createHTML:e=>e});function Qa(e){return Ja?.createHTML(e)??e}function ja(e){var t=Fa("template");return t.innerHTML=Qa(e.replaceAll("<!>","<!---->")),t.content}function Kr(e,t){var r=we;r.nodes===null&&(r.nodes={start:e,end:t,a:null,t:null})}function Q(e,t){var r=(t&va)!==0,i=(t&ga)!==0,s,o=!e.startsWith("<!>");return()=>{s===void 0&&(s=ja(o?e:"<!>"+e),r||(s=fr(s)));var l=i||vs?document.importNode(s,!0):s.cloneNode(!0);if(r){var u=fr(l),f=l.lastChild;Kr(u,f)}else Kr(l,l);return l}}function he(){var e=document.createDocumentFragment(),t=document.createComment(""),r=tn();return e.append(t,r),Kr(t,r),e}function L(e,t){e!==null&&e.before(t)}function Fs(e,t){var r=t==null?"":typeof t=="object"?t+"":t;r!==(e.__t??=e.nodeValue)&&(e.__t=r,e.nodeValue=r+"")}function $a(e,t){return el(e,t)}const cr=new Map;function el(e,{target:t,anchor:r,props:i={},events:s,context:o,intro:l=!0,transformError:u}){Oa();var f=void 0,d=Wa(()=>{var c=r??t.appendChild(tn());Ea(c,{pending:()=>{}},v=>{pe({});var p=et;o&&(p.c=o),s&&(i.$$events=s),f=e(v,i)||{},ye()},u);var g=new Set,h=v=>{for(var p=0;p<v.length;p++){var y=v[p];if(!g.has(y)){g.add(y);var m=Ka(y);for(const x of[t,document]){var _=cr.get(x);_===void 0&&(_=new Map,cr.set(x,_));var T=_.get(y);T===void 0?(x.addEventListener(y,Xr,{passive:m}),_.set(y,1)):_.set(y,T+1)}}}};return h(or(Os)),qr.add(h),()=>{for(var v of g)for(const m of[t,document]){var p=cr.get(m),y=p.get(v);--y==0?(m.removeEventListener(v,Xr),p.delete(v),p.size===0&&cr.delete(m)):p.set(v,y)}qr.delete(h),c!==r&&c.parentNode?.removeChild(c)}});return Zr.set(f,d),f}let Zr=new WeakMap;function tl(e,t){const r=Zr.get(e);return r?(Zr.delete(e),r(t)):Promise.resolve()}class Jr{anchor;#e=new Map;#n=new Map;#t=new Map;#i=new Set;#r=!0;constructor(t,r=!0){this.anchor=t,this.#r=r}#s=()=>{var t=Re;if(this.#e.has(t)){var r=this.#e.get(t),i=this.#n.get(r);if(i)Yr(i),this.#i.delete(r);else{var s=this.#t.get(r);s&&(this.#n.set(r,s.effect),this.#t.delete(r),s.fragment.lastChild.remove(),this.anchor.before(s.fragment),i=s.effect)}for(const[o,l]of this.#e){if(this.#e.delete(o),o===t)break;const u=this.#t.get(l);u&&(st(u.effect),this.#t.delete(l))}for(const[o,l]of this.#n){if(o===r||this.#i.has(o))continue;const u=()=>{if(Array.from(this.#e.values()).includes(o)){var d=document.createDocumentFragment();Es(l,d),d.append(tn()),this.#t.set(o,{effect:l,fragment:d})}else st(l);this.#i.delete(o),this.#n.delete(o)};this.#r||!i?(this.#i.add(o),mn(l,u,!1)):u()}}};#o=t=>{this.#e.delete(t);const r=Array.from(this.#e.values());for(const[i,s]of this.#t)r.includes(i)||(st(s.effect),this.#t.delete(i))};ensure(t,r){var i=Re,s=ps();if(r&&!this.#n.has(t)&&!this.#t.has(t))if(s){var o=document.createDocumentFragment(),l=tn();o.append(l),this.#t.set(t,{effect:dt(()=>r(l)),fragment:o})}else this.#n.set(t,dt(()=>r(this.anchor)));if(this.#e.set(i,t),s){for(const[u,f]of this.#n)u===t?i.unskip_effect(f):i.skip_effect(f);for(const[u,f]of this.#t)u===t?i.unskip_effect(f.effect):i.skip_effect(f.effect);i.oncommit(this.#s),i.ondiscard(this.#o)}else this.#s()}}function be(e,t,r=!1){var i=new Jr(e),s=r?Zt:0;function o(l,u){i.ensure(l,u)}Gn(()=>{var l=!1;t((u,f=0)=>{l=!0,o(f,u)}),l||o(!1,null)},s)}function Ce(e,t){return t}function nl(e,t,r){for(var i=[],s=t.length,o,l=t.length,u=0;u<s;u++){let g=t[u];mn(g,()=>{if(o){if(o.pending.delete(g),o.done.add(g),o.pending.size===0){var h=e.outrogroups;Qr(or(o.done)),h.delete(o),h.size===0&&(e.outrogroups=null)}}else l-=1},!1)}if(l===0){var f=i.length===0&&r!==null;if(f){var d=r,c=d.parentNode;Na(c),c.append(d),e.items.clear()}Qr(t,!f)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Qr(e,t=!0){for(var r=0;r<e.length;r++)st(e[r],t)}var Hs;function oe(e,t,r,i,s,o=null){var l=e,u=new Map,f=(t&Xi)!==0;if(f){var d=e;l=d.appendChild(tn())}var c=null,g=ls(()=>{var _=r();return Hi(_)?_:_==null?[]:or(_)}),h,v=!0;function p(){m.fallback=c,rl(m,h,l,t,i),c!==null&&(h.length===0?(c.f&Bt)===0?Yr(c):(c.f^=Bt,Zn(c,null,l)):mn(c,()=>{c=null}))}var y=Gn(()=>{h=n(g);for(var _=h.length,T=new Set,x=Re,E=ps(),k=0;k<_;k+=1){var w=h[k],C=i(w,k),F=v?null:u.get(C);F?(F.v&&Sn(F.v,w),F.i&&Sn(F.i,k),E&&x.unskip_effect(F.e)):(F=il(u,v?l:Hs??=tn(),w,C,k,s,t,r),v||(F.e.f|=Bt),u.set(C,F)),T.add(C)}if(_===0&&o&&!c&&(v?c=dt(()=>o(l)):(c=dt(()=>o(Hs??=tn())),c.f|=Bt)),_>T.size&&Zo(),!v)if(E){for(const[V,P]of u)T.has(V)||x.skip_effect(P.e);x.oncommit(p),x.ondiscard(()=>{})}else p();n(g)}),m={effect:y,items:u,outrogroups:null,fallback:c};v=!1}function Kn(e){for(;e!==null&&(e.f&Dt)===0;)e=e.next;return e}function rl(e,t,r,i,s){var o=(i&la)!==0,l=t.length,u=e.items,f=Kn(e.effect.first),d,c=null,g,h=[],v=[],p,y,m,_;if(o)for(_=0;_<l;_+=1)p=t[_],y=s(p,_),m=u.get(y).e,(m.f&Bt)===0&&(m.nodes?.a?.measure(),(g??=new Set).add(m));for(_=0;_<l;_+=1){if(p=t[_],y=s(p,_),m=u.get(y).e,e.outrogroups!==null)for(const P of e.outrogroups)P.pending.delete(m),P.done.delete(m);if((m.f&Bt)!==0)if(m.f^=Bt,m===f)Zn(m,null,r);else{var T=c?c.next:f;m===e.effect.last&&(e.effect.last=m.prev),m.prev&&(m.prev.next=m.next),m.next&&(m.next.prev=m.prev),sn(e,c,m),sn(e,m,T),Zn(m,T,r),c=m,h=[],v=[],f=Kn(c.next);continue}if((m.f&ft)!==0&&(Yr(m),o&&(m.nodes?.a?.unfix(),(g??=new Set).delete(m))),m!==f){if(d!==void 0&&d.has(m)){if(h.length<v.length){var x=v[0],E;c=x.prev;var k=h[0],w=h[h.length-1];for(E=0;E<h.length;E+=1)Zn(h[E],x,r);for(E=0;E<v.length;E+=1)d.delete(v[E]);sn(e,k.prev,w.next),sn(e,c,k),sn(e,w,x),f=x,c=w,_-=1,h=[],v=[]}else d.delete(m),Zn(m,f,r),sn(e,m.prev,m.next),sn(e,m,c===null?e.effect.first:c.next),sn(e,c,m),c=m;continue}for(h=[],v=[];f!==null&&f!==m;)(d??=new Set).add(f),v.push(f),f=Kn(f.next);if(f===null)continue}(m.f&Bt)===0&&h.push(m),c=m,f=Kn(m.next)}if(e.outrogroups!==null){for(const P of e.outrogroups)P.pending.size===0&&(Qr(or(P.done)),e.outrogroups?.delete(P));e.outrogroups.size===0&&(e.outrogroups=null)}if(f!==null||d!==void 0){var C=[];if(d!==void 0)for(m of d)(m.f&ft)===0&&C.push(m);for(;f!==null;)(f.f&ft)===0&&f!==e.fallback&&C.push(f),f=Kn(f.next);var F=C.length;if(F>0){var V=(i&Xi)!==0&&l===0?r:null;if(o){for(_=0;_<F;_+=1)C[_].nodes?.a?.measure();for(_=0;_<F;_+=1)C[_].nodes?.a?.fix()}nl(e,C,V)}}o&&Mt(()=>{if(g!==void 0)for(m of g)m.nodes?.a?.apply()})}function il(e,t,r,i,s,o,l,u){var f=(l&oa)!==0?(l&ua)===0?cs(r,!1,!1):en(r):null,d=(l&aa)!==0?en(s):null;return{v:f,i:d,e:dt(()=>(o(t,f??r,d??s,u),()=>{e.delete(i)}))}}function Zn(e,t,r){if(e.nodes)for(var i=e.nodes.start,s=e.nodes.end,o=t&&(t.f&Bt)===0?t.nodes.start:r;i!==null;){var l=Bn(i);if(o.before(i),i===s)return;i=l}}function sn(e,t,r){t===null?e.effect.first=r:t.next=r,r===null?e.effect.last=t:r.prev=t}function qt(e,t,...r){var i=new Jr(e);Gn(()=>{const s=t()??null;i.ensure(s,s&&(o=>s(o,...r)))},Zt)}function jr(e,t,r){var i=new Jr(e);Gn(()=>{var s=t()??null;i.ensure(s,s&&(o=>r(o,s)))},Zt)}function Le(e,t){var r=void 0,i;Va(()=>{r!==(r=t())&&(i&&(st(i),i=null),r&&(i=dt(()=>{Br(()=>r(e))})))})}function zs(e){var t,r,i="";if(typeof e=="string"||typeof e=="number")i+=e;else if(typeof e=="object")if(Array.isArray(e)){var s=e.length;for(t=0;t<s;t++)e[t]&&(r=zs(e[t]))&&(i&&(i+=" "),i+=r)}else for(r in e)e[r]&&(i&&(i+=" "),i+=r);return i}function sl(){for(var e,t,r=0,i="",s=arguments.length;r<s;r++)(e=arguments[r])&&(t=zs(e))&&(i&&(i+=" "),i+=t);return i}function Nt(e){return typeof e=="object"?sl(e):e??""}function ol(e,t,r){var i=e==null?"":""+e;return i===""?null:i}function Ws(e,t=!1){var r=t?" !important;":";",i="";for(var s of Object.keys(e)){var o=e[s];o!=null&&o!==""&&(i+=" "+s+": "+o+r)}return i}function $r(e){return e[0]!=="-"||e[1]!=="-"?e.toLowerCase():e}function al(e,t){if(t){var r="",i,s;if(Array.isArray(t)?(i=t[0],s=t[1]):i=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,"").trim();var o=!1,l=0,u=!1,f=[];i&&f.push(...Object.keys(i).map($r)),s&&f.push(...Object.keys(s).map($r));var d=0,c=-1;const y=e.length;for(var g=0;g<y;g++){var h=e[g];if(u?h==="/"&&e[g-1]==="*"&&(u=!1):o?o===h&&(o=!1):h==="/"&&e[g+1]==="*"?u=!0:h==='"'||h==="'"?o=h:h==="("?l++:h===")"&&l--,!u&&o===!1&&l===0){if(h===":"&&c===-1)c=g;else if(h===";"||g===y-1){if(c!==-1){var v=$r(e.substring(d,c).trim());if(!f.includes(v)){h!==";"&&g++;var p=e.substring(d,g).trim();r+=" "+p+";"}}d=g+1,c=-1}}}}return i&&(r+=Ws(i)),s&&(r+=Ws(s,!0)),r=r.trim(),r===""?null:r}return e==null?null:String(e)}function N(e,t,r,i,s,o){var l=e.__className;if(l!==r||l===void 0){var u=ol(r);u==null?e.removeAttribute("class"):e.className=u,e.__className=r}return o}function ei(e,t={},r,i){for(var s in r){var o=r[s];t[s]!==o&&(r[s]==null?e.style.removeProperty(s):e.style.setProperty(s,o,i))}}function Lt(e,t,r,i){var s=e.__style;if(s!==t){var o=al(t,i);o==null?e.removeAttribute("style"):e.style.cssText=o,e.__style=t}else i&&(Array.isArray(i)?(ei(e,r?.[0],i[0]),ei(e,r?.[1],i[1],"important")):ei(e,r,i));return i}const ll=Symbol("is custom element"),ul=Symbol("is html");function xe(e,t,r,i){var s=fl(e);s[t]!==(s[t]=r)&&(t==="loading"&&(e[Xo]=r),r==null?e.removeAttribute(t):typeof r!="string"&&dl(e).includes(t)?e[t]=r:e.setAttribute(t,r))}function fl(e){return e.__attributes??={[ll]:e.nodeName.includes("-"),[ul]:e.namespaceURI===Ki}}var Us=new Map;function dl(e){var t=e.getAttribute("is")||e.nodeName,r=Us.get(t);if(r)return r;Us.set(t,r=[]);for(var i,s=e,o=Element.prototype;o!==s;){i=Uo(s);for(var l in i)i[l].set&&r.push(l);s=Wi(s)}return r}class ti{#e=new WeakMap;#n;#t;static entries=new WeakMap;constructor(t){this.#t=t}observe(t,r){var i=this.#e.get(t)||new Set;return i.add(r),this.#e.set(t,i),this.#i().observe(t,this.#t),()=>{var s=this.#e.get(t);s.delete(r),s.size===0&&(this.#e.delete(t),this.#n.unobserve(t))}}#i(){return this.#n??(this.#n=new ResizeObserver(t=>{for(var r of t){ti.entries.set(r.target,r);for(var i of this.#e.get(r.target)||[])i(r)}}))}}var cl=new ti({box:"border-box"});function hr(e,t,r){var i=cl.observe(e,()=>r(e[t]));Br(()=>(J(()=>r(e[t])),i))}function Vs(e,t){return e===t||e?.[Wn]===t}function lt(e={},t,r,i){return Br(()=>{var s,o;return ws(()=>{s=o,o=i?.()||[],J(()=>{e!==r(...o)&&(t(e,...o),s&&Vs(r(...s),e)&&t(null,...s))})}),()=>{Mt(()=>{o&&Vs(r(...o),e)&&t(null,...o)})}}),e}function Bs(e,t,r){if(e==null)return t(void 0),Wt;const i=J(()=>e.subscribe(t,r));return i.unsubscribe?()=>i.unsubscribe():i}function hl(e){let t;return Bs(e,r=>t=r)(),t}let vr=!1,ni=Symbol();function vl(e,t,r){const i=r[t]??={store:null,source:cs(void 0),unsubscribe:Wt};if(i.store!==e&&!(ni in r))if(i.unsubscribe(),i.store=e??null,e==null)i.source.v=void 0,i.unsubscribe=Wt;else{var s=!0;i.unsubscribe=Bs(e,o=>{s?i.source.v=o:b(i.source,o)}),s=!1}return e&&ni in r?hl(e):n(i.source)}function gl(){const e={};function t(){Vr(()=>{for(var r in e)e[r].unsubscribe();zi(e,ni,{enumerable:!1,value:!0})})}return[e,t]}function ml(e){var t=vr;try{return vr=!1,[e(),vr]}finally{vr=t}}function ke(e,t,r,i){var s=(r&ca)!==0,o=(r&ha)!==0,l=i,u=!0,f=()=>(u&&(u=!1,l=o?J(i):i),l),d;if(s){var c=Wn in e||qo in e;d=En(e,t)?.set??(c&&t in e?T=>e[t]=T:void 0)}var g,h=!1;s?[g,h]=ml(()=>e[t]):g=e[t],g===void 0&&i!==void 0&&(g=f(),d&&(ta(),d(g)));var v;if(v=()=>{var T=e[t];return T===void 0?f():(u=!0,T)},(r&da)===0)return v;if(d){var p=e.$$legacy;return(function(T,x){return arguments.length>0?((!x||p||h)&&d(x?v():T),T):v()})}var y=!1,m=((r&fa)!==0?ur:ls)(()=>(y=!1,v()));s&&n(m);var _=we;return(function(T,x){if(arguments.length>0){const E=x?n(m):s?qe(T):T;return b(m,E),y=!0,l!==void 0&&(l=E),T}return nn&&y||(_.f&Vt)!==0?m.v:n(m)})}function pl(){return fe===null&&ea(),(fe.ac??=new AbortController).signal}function Jn(e){et===null&&qi(),Xe(()=>{const t=J(e);if(typeof t=="function")return t})}const yl="5";typeof window<"u"&&((window.__svelte??={}).v??=new Set).add(yl);function ri(e,t=void 0){return function(r){return r.key==="Enter"||r.key===" "&&!r.preventDefault()?e.call(t,r):void 0}}function Ke(e){return t=>{typeof e=="string"?t.innerText=e:e?.domNodes?t.replaceChildren(...e.domNodes):e?.html&&(t.innerHTML=e.html)}}function _l(e){return t=>{let r=i=>{t&&!t.contains(i.target)&&t.dispatchEvent(new CustomEvent(e+"outside",{detail:{jsEvent:i}}))};return document.addEventListener(e,r,!0),()=>{document.removeEventListener(e,r,!0)}}}function ii(e){return t=>{let r=new ResizeObserver(i=>{for(let s of i)e(t,s)});return r.observe(t),()=>{r.unobserve(t)}}}function Gs(e,t){return r=>{let i=new IntersectionObserver(s=>{for(let o of s)e(r,o)},t);return i.observe(r),()=>{i.unobserve(r)}}}function j(...e){return Object.assign(...e)}function _n(e){return Object.keys(e)}function wl(e){return Object.entries(e)}function si(e,t){return Object.hasOwn(e,t)}function oi(e){return Math.floor(e)}function bl(e){return Math.ceil(e)}function Ft(...e){return Math.min(...e)}function vt(...e){return Math.max(...e)}function kl(){return Symbol("ec")}function De(e){return e.length}function kt(e){return!De(e)}function Qn(e){return Array.isArray(e)}function _e(e){return typeof e=="function"}function Cl(e){if(typeof e!="object"||e===null)return!1;const t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function ai(e){return e instanceof Date}function Dl(e){return e()}function El(e){e.forEach(Dl)}function Tl(){}const gr=e=>e;function wn(){return window.getComputedStyle(document.documentElement).direction==="rtl"}const mr=86400;function Ht(e=void 0){return e!==void 0?ai(e)?Js(e):Rl(e):Js(new Date)}function Oe(e){if(typeof e=="number")e={seconds:e};else if(typeof e=="string"){let r=0,i=2;for(let s of e.split(":",3))r+=parseInt(s,10)*Math.pow(60,i--);e={seconds:r}}else ai(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 G(e){return new Date(e.getTime())}function Ee(e,t,r=1){e.setUTCFullYear(e.getUTCFullYear()+r*t.years);let i=e.getUTCMonth()+r*t.months;for(e.setUTCMonth(i),i%=12,i<0&&(i+=12);e.getUTCMonth()!==i;)In(e);return e.setUTCDate(e.getUTCDate()+r*t.days),e.setUTCSeconds(e.getUTCSeconds()+r*t.seconds),e}function pr(e,t,r=1){return Ee(e,t,-r)}function Ct(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function In(e,t=1){return Ct(e,-t)}function Pt(e){return e.setUTCHours(0,0,0,0),e}function We(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function gt(e,t=19){return e.toISOString().substring(0,t)}function tt(e,...t){return t.every(r=>e.getTime()===r.getTime())}function xl(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r>=0?r:r+7)),e}function Ys(e,t){let r=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(r<=0?r:r-7)),e}function qs(e){return typeof e=="string"&&e.length<=10}function li(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function ve(e){return e.seconds}function Xs(e,t,r){return Ee(e,t),Zs(e,r,Ct),e}function Ks(e,t,r){return pr(e,t),Zs(e,r,In),e}function Zs(e,t,r){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)r(e)}function Sl(e,t){e=G(e),t===0?e.setUTCDate(e.getUTCDate()+6-e.getUTCDay()):e.setUTCDate(e.getUTCDate()+4-(e.getUTCDay()||7));let r=new Date(Date.UTC(e.getUTCFullYear(),0,1));return Math.ceil(((e-r)/1e3/mr+1)/7)}function Js(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function Rl(e){const t=e.match(/\d+/g);return new Date(Date.UTC(Number(t[0]),Number(t[1])-1,Number(t[2]),Number(t[3]||0),Number(t[4]||0),Number(t[5]||0)))}let ui=kl();function Qs(e,t){e[ui]=t}function Il(e){return!!e?.[ui]}function Xt(e){return e[ui]}function js(e,t,r,i=[]){let s=document.createElement(e);s.className=t,typeof r=="string"?s.innerText=r:r.domNodes?s.replaceChildren(...r.domNodes):r.html&&(s.innerHTML=r.html);for(let o of i)s.setAttribute(...o);return s}function on(e){return e.getBoundingClientRect()}function $s(e,t){for(;t--;)e=e.parentElement;return e}function bn(e){return on(e).height}function Ln(e,t,r=document,i=[]){i.push(r);for(let s of r.elementsFromPoint(e,t)){if(Il(s))return s;if(s.shadowRoot&&!i.includes(s.shadowRoot)){let o=Ln(e,t,s.shadowRoot,i);if(o)return o}}return null}function jn(e,t,r,i){return e.addEventListener(t,r,i),()=>e.removeEventListener(t,r,i)}function fi(e,t=void 0){return function(r){r.stopPropagation(),e&&e.call(t,r)}}function Ll(e,t,r,i){return{type:e,title:t,currentStart:r.start,currentEnd:r.end,activeStart:i.start,activeEnd:i.end,calendar:void 0}}function Ze(e){return e=j({},e),e.currentStart=We(e.currentStart),e.currentEnd=We(e.currentEnd),e.activeStart=We(e.activeStart),e.activeEnd=We(e.activeEnd),e}let Pl=1;function yr(e){return e.map(t=>{let r={id:"id"in t?String(t.id):`{generated-${Pl++}}`,resourceIds:di(t,"resourceId").map(String),allDay:t.allDay??(qs(t.start)&&qs(t.end)),start:Ht(t.start),end:Ht(t.end),title:t.title??"",editable:t.editable,startEditable:t.startEditable,durationEditable:t.durationEditable,display:t.display??"auto",extendedProps:t.extendedProps??{},backgroundColor:t.backgroundColor??t.color,textColor:t.textColor,classNames:di(t,"className"),styles:di(t,"style")};if(r.allDay){Pt(r.start);let i=G(r.end);Pt(r.end),(!tt(r.end,i)||tt(r.end,r.start))&&Ct(r.end)}return r})}function di(e,t){let r=e[t+"s"]??e[t]??[];return Qn(r)?r:[r]}function Ml(e){return e.map(t=>({events:t.events,url:t.url&&t.url.trimEnd("&")||"",method:t.method&&t.method.toUpperCase()||"GET",extraParams:t.extraParams||{}}))}function Al(e,t,r,i,s,o){let l=s.formatRange(e.start,t&&e.event.display!=="pointer"&&!e.zeroDuration?li(G(e.start),e.end):e.start),u;if(r&&(u=_e(r)?r({event:Je(e.event),timeText:l,view:Ze(o)}):r),u===void 0){let f;switch(e.event.display){case"background":f=[];break;case"pointer":f=e.event.allDay?[]:[eo(l,e,i)];break;default:f=[...e.event.allDay?[]:[eo(l,e,i)],js("h4",i.eventTitle,e.event.title)]}u={domNodes:f}}return[l,u]}function eo(e,t,r){return js("time",r.eventTime,e,[["datetime",gt(t.start)]])}function Ol(e,t,r){let i=t.classNames;return e&&(_e(e)&&(e=e({event:Je(t),view:Ze(r)})),i=[...Qn(e)?e:[e],...i]),i}function Je(e){return to(e,We)}function ci(e){return to(e,G)}function to(e,t){return e=j({},e),e.start=t(e.start),e.end=t(e.end),e}function hi(e,t){e.length=t.length;for(let r of e)r?.reposition()}function Pn(e,t,r,i=void 0){return(!i||e.resourceIds.includes(i.id))&&e.start<r&&e.end>t}function _r(e){return Nl(e)||Fl(e)||Hl(e)}function mt(e){return e==="background"}function Nl(e){return e==="preview"}function Fl(e){return e==="ghost"}function Hl(e){return e==="pointer"}function $n(e,t,r){return t=e.start>t?e.start:t,r=e.end<r?e.end:r,{start:t,end:r,event:e,zeroDuration:tt(t,r)}}function Mn(e,t,r=!0){let i=[],s,o,l,u;for(let{gridColumn:f,gridRow:d,resource:c,dayStart:g,dayEnd:h,disabled:v}of t)!v&&Pn(e,g,h,c)&&(i.push(g),s=h,o||(o=f,l=d,u=c));if(i.length){let f=$n(e,i[0],s);return j(f,{gridColumn:o,gridRow:l,resource:u,dates:i}),r&&vi(f),[f]}return[]}function no(e){let t={},r={};for(let i of e){let{gridColumn:s,gridRow:o}=i;for(let u=1;u<i.dates.length;++u){let f=`${o}_${s+u}`;r[f]?r[f].chunks.push(i):r[f]={sorted:!1,chunks:[i]}}let l=`${o}_${s}`;i.long=r[l],i.prev=t[l],t[l]=i}}function ro(e,t,r=1){e.prev&&(r=e.prev.bottom+1);let i=r+t;if(e.long){let s=e.long;s.sorted||(s.chunks.sort((o,l)=>o.top-l.top),s.sorted=!0);for(let o of s.chunks)if(r<o.bottom&&i>o.top){let l=o.bottom-r+1;r+=l,i+=l}}return j(e,{top:r,bottom:i}),r}const io=new WeakMap;let zl=1;function vi(e){let{event:t,gridColumn:r,gridRow:i}=e,s=io.get(t);s||(s=zl++,io.set(t,s)),e.id=`${s}-${r}-${i}`}function kn(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return J(()=>{s=_e(i)?{format:i}:new Intl.DateTimeFormat(r,i)}),{format:o=>s.format(We(o))}}}function so(e,t){return()=>{let{options:{locale:r}}=e,i=e.options[t],s;return J(()=>{if(_e(i))s=i;else{let o=new Intl.DateTimeFormat(r,i);s=(l,u)=>{if(l<=u)return o.formatRange(l,u);{let f=o.formatRangeToParts(u,l),d="",c=["startRange","endRange"],g=[!1,!1];for(let h of f){let v=c.indexOf(h.source);v>=0?g[v]||(d+=Wl(c[1-v],f),g[v]=!0):d+=h.value}return d}}}}),{formatRange:(o,l)=>s(We(o),We(l))}}}function Wl(e,t){let r="";for(let i of t)i.source==e&&(r+=i.value);return r}function er(e){return wr(e,"day")}function tr(e){return wr(e,"week")}function gi(e){return wr(e,"month")}function Ul(e){return wr(e,"year")}function wr(e,t){return{...e,next:"Next "+t,prev:"Previous "+t}}function ut(e){return t=>({...t,view:e})}function Vl(e){let t,r;return e&&({start:t,end:r}=e,t&&(t=Pt(Ht(t))),r&&(r=Pt(Ht(r)))),{start:t,end:r}}function An(e,t){return t.start&&e<t.start||t.end&&e>t.end}function mi(e){let t=[];return oo(e,0,!1,t),t}function oo(e,t,r,i){let s=[];for(let o of e){let l=Bl(o);s.push(l),i.push(l);let u={level:t,children:[],hidden:r};Qs(l,u),o.children&&(u.children=oo(o.children,t+1,r||!l.expanded,i))}return s}function Bl(e){return{id:String(e.id),title:e.title||"",eventBackgroundColor:ao(e),eventTextColor:lo(e),expanded:e.expanded??!0,extendedProps:e.extendedProps??{}}}function ao(e){return e?.eventBackgroundColor}function lo(e){return e?.eventTextColor}function uo(e,t){return kt(e.resourceIds)?void 0:t.find(r=>e.resourceIds.includes(r.id))}function fo(e,t,r,i,s){let o=[];e=G(e);let l=G(e);for(Ee(e,i.min),Ee(l,i.max);e<l;)o.push([gt(e),s.format(e)]),Ee(e,t,r);let u=oi((e-l)/1e3/ve(t));return u&&u!==r&&(o.at(-1)[2]=r-u),o}function co(e,t,r,i,s){let o=Oe(e),l=Oe(t);if(r){let u=Oe(Ft(ve(o),vt(0,ve(l)-mr))),f=Oe(vt(ve(l),ve(u)+mr)),d=_e(r?.eventFilter)?r.eventFilter:c=>!mt(c.display);e:for(let c of i){let g=Ee(G(c),o),h=Ee(G(c),l),v=Ee(G(c),u),p=Ee(G(c),f);for(let y of s)if(!y.allDay&&d(y)&&y.start<p&&y.end>v){if(y.start<g){let m=vt((y.start-c)/1e3,ve(u));m<ve(o)&&(o.seconds=m)}if(y.end>h){let m=Ft((y.end-c)/1e3,ve(f));m>ve(l)&&(l.seconds=m)}if(ve(o)===ve(u)&&ve(l)===ve(f))break e}}}return{min:o,max:l}}class ho extends Map{#e=new Map;#n=B(0);#t=B(0);#i=Yt||-1;constructor(t){if(super(),t){for(var[r,i]of t)super.set(r,i);this.#t.v=super.size}}#r(t){return Yt===this.#i?B(t):en(t)}has(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#r(0),r.set(t,i);else return n(this.#n),!1}return n(i),!0}forEach(t,r){this.#s(),super.forEach(t,r)}get(t){var r=this.#e,i=r.get(t);if(i===void 0){var s=super.get(t);if(s!==void 0)i=this.#r(0),r.set(t,i);else{n(this.#n);return}}return n(i),super.get(t)}set(t,r){var i=this.#e,s=i.get(t),o=super.get(t),l=super.set(t,r),u=this.#n;if(s===void 0)s=this.#r(0),i.set(t,s),b(this.#t,super.size),At(u);else if(o!==r){At(s);var f=u.reactions===null?null:new Set(u.reactions),d=f===null||!s.reactions?.every(c=>f.has(c));d&&At(u)}return l}delete(t){var r=this.#e,i=r.get(t),s=super.delete(t);return i!==void 0&&(r.delete(t),b(this.#t,super.size),b(i,-1),At(this.#n)),s}clear(){if(super.size!==0){super.clear();var t=this.#e;b(this.#t,0);for(var r of t.values())b(r,-1);At(this.#n),t.clear()}}#s(){n(this.#n);var t=this.#e;if(this.#t.v!==t.size){for(var r of super.keys())if(!t.has(r)){var i=this.#r(0);t.set(r,i)}}for([,i]of this.#e)n(i)}keys(){return n(this.#n),super.keys()}values(){return this.#s(),super.values()}entries(){return this.#s(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return n(this.#t),super.size}}function br(e){let t=0,r=B(qe(t));return vo(e,()=>n(r),()=>!0,()=>b(r,++t,!0))}function Gl(e){let t=0,r=qe({});return vo(e,i=>r[i],(i,s)=>i!==s,i=>r[i]=++t)}function vo(e,t,r,i){return new Proxy(e,{get(s,o,l){return si(s,o)&&t(o),Reflect.get(s,o,l)},set(s,o,l,u){let f=r(s[o],l),d=Reflect.set(s,o,l,u);return f&&i(o),d}})}function Yl(e){let t={buttonText:{today:"today"},customButtons:{},customScrollbars:!1,date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:"short",month:"numeric",day:"numeric"},dayHeaderAriaLabelFormat:{dateStyle:"full"},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:"numeric",minute:"2-digit"},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:"title",center:"",end:"today prev,next"},height:void 0,hiddenDays:[],highlightedDates:[],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"]},titleFormat:{year:"numeric",month:"short",day:"numeric"},validRange:void 0,view:void 0,viewDidMount:void 0,views:{}};for(let r of e)r.createOptions?.(t);return t}function ql(e){let t={date:r=>Pt(Ht(r)),duration:Oe,events:yr,eventSources:Ml,hiddenDays:r=>[...new Set(r)],highlightedDates:r=>r.map(i=>Pt(Ht(i))),resources:r=>Qn(r)?mi(r):r,validRange:Vl};for(let r of e)r.createParsers?.(t);return t}const go=["buttonText","customButtons","icons","theme"];function Xl(e,t){let r=Yl(e),i=ql(e);r=pi(r,i),t=pi(t,i);let s=yi(r,"views")??{},o=yi(t,"views")??{},l=Gl({});j(l,r),t.view&&(l.view=t.view);let u={},f={},d={},c=new Set([..._n(s),..._n(o)]);for(let g of c){let h=o[g]??{},v=mo(r,s[g]??s[h.type]??{}),p=mo(v,t,h),y=yi(p,"component");delete p.view;for(let m of _n(p))si(l,m)?(u[m]||(u[m]=[]),u[m].push(go.includes(m)?_=>p[m]=_e(_)?_(v[m]):_:_=>p[m]=_)):delete p[m];f[g]=p,d[g]=y}return j(l,f[l.view]),[l,function(h,v,p=!0){si(l,h)&&(p||(h in i?v=i[h](v):Cl(v)?v={...v}:Qn(v)&&(v=[...v])),u[h]?.forEach(y=>y(v)),l[h]=v)},function(h){return j(l,f[h]),d[h]}]}function pi(e,t){let r={...e};for(let i of _n(t))i in r&&(r[i]=t[i](r[i]));if(e.views){r.views={};for(let i of _n(e.views))r.views[i]=pi(e.views[i],t)}return r}function yi(e,t){let r=e[t];return delete e[t],r}function mo(...e){let t={};for(let r of e){let i={};for(let s of go)_e(r[s])&&(i[s]=r[s](t[s]));t={...t,...r,...i}}return t}function Kl(e,t){let r=[];for(let i of _n(e))e[i]!==t[i]&&r.push([i,e[i]]);return r}function Zl(e){return()=>{let{options:{view:t}}=e;J(()=>{let r=e.setViewOptions(t);e.extensions={},e.features=[],e.viewComponent=r(e)})}}function Jl(e,t){return()=>{let{activeRange:r,fetchedRange:{events:i},viewDates:s,options:{events:o,eventSources:l,lazyFetching:u}}=e;J(()=>{po(l.map(f=>_e(f.events)?f.events:f),o,yr,f=>e.events=br(f),r,i,s,!0,u,t)})}}function Ql(e,t){return()=>{let{activeRange:r,fetchedRange:{resources:i},viewDates:s,options:{lazyFetching:o,refetchResourcesOnNavigate:l,resources:u}}=e;J(()=>{po(Qn(u)?[]:[u],u,mi,f=>e.resources=br(f),r,i,s,l,o,t)})}}function po(e,t,r,i,s,o,l,u,f,d){if(!kt(l)){if(kt(e)){i(t);return}if((u||!o.start)&&(!f||!o.start||o.start>s.start||o.end<s.end)){let c=[],g=y=>d.stop(),h=y=>{c=c.concat(r(y)),i(c),d.stop()},v=gt(s.start),p=gt(s.end);for(let y of e)if(d.start(),_e(y)){let m=y(u?{start:We(s.start),end:We(s.end),startStr:v,endStr:p}:{},h,g);m!==void 0&&Promise.resolve(m).then(h,g)}else{let m=_e(y.extraParams)?y.extraParams():j({},y.extraParams);u&&(m.start=v,m.end=p),m=new URLSearchParams(m);let _=y.url,T={},x;["GET","HEAD"].includes(y.method)?_+=(_.includes("?")?"&":"?")+m:(T["content-type"]="application/x-www-form-urlencoded;charset=UTF-8",x=String(m)),fetch(_,{method:y.method,headers:T,body:x,signal:pl(),credentials:"same-origin"}).then(E=>E.json()).then(h).catch(g)}j(o,s)}}}function jl(e){let t=0;function r(i){let{options:{loading:s}}=e;_e(s)&&s(i)}return{start:()=>++t===1&&r(!0),stop:()=>--t===0&&r(!1)}}function $l(e){return()=>{let t=setInterval(()=>{let r=Ht(),i=Pt(G(r));e.now=r,tt(e.today,i)||(e.today=i)},1e3);return()=>clearInterval(t)}}function eu(e){return()=>{let{activeRange:t,options:{datesSet:r}}=e;J(()=>{_e(r)&&r({start:We(t.start),end:We(t.end),startStr:gt(t.start),endStr:gt(t.end),view:Ze(e.view)})})}}function tu(e){let t;return()=>{let{filteredEvents:r,options:{eventAllUpdated:i}}=e;J(()=>{_e(i)&&(t||(t=setTimeout(()=>{t=null,i({view:Ze(e.view)})})))})}}function nu(e){return()=>{let{options:{view:t,viewDidMount:r}}=e;J(()=>{_e(r)&&yn().then(()=>r({view:Ze(e.view)}))})}}function ru(e){return()=>{let{options:{date:t,duration:r,firstDay:i}}=e,s,o;return J(()=>{s=G(t),r.months?s.setUTCDate(1):r.inWeeks&&Ys(s,i),o=Ee(G(s),r)}),{start:s,end:o}}}function iu(e){return()=>{let{currentRange:t,extensions:{activeRange:r}}=e,i,s;return J(()=>{i=G(t.start),s=G(t.end)}),r?r(i,s):{start:i,end:s}}}function su(e){return()=>{let{events:t,options:{eventFilter:r,eventOrder:i,filterEventsWithResources:s,resources:o,view:l}}=e,u=[...t];return J(()=>{if(_e(r)){let f=t.map(Je),d=Ze(e.view);u=u.filter((c,g)=>r({event:Je(c),index:g,events:f,view:d}))}s&&(u=u.filter(f=>o.some(d=>f.resourceIds.includes(d.id)))),_e(i)?u.sort((f,d)=>i(Je(f),Je(d))):u.sort((f,d)=>f.start-d.start||d.allDay-f.allDay)}),u}}function ou(e){return()=>{let{options:t,activeRange:r}=e,{hiddenDays:i}=t,s=[];return J(()=>{let o=Pt(G(r.start)),l=Pt(G(r.end));for(;o<l;)i.includes(o.getUTCDay())||s.push(G(o)),Ct(o);if(!s.length&&i.length&&i.length<7){for(;i.includes(o.getUTCDay());)Ct(o);yn().then(()=>{e.setOption("date",o)})}}),s}}function au(e){return()=>{let{currentRange:t,intlTitle:r}=e,i;return J(()=>{i=r.formatRange(t.start,In(G(t.end)))}),i}}function lu(e){return()=>{let{activeRange:t,currentRange:r,viewTitle:i,options:{view:s}}=e,o;return J(()=>{o=Ll(s,i,r,t)}),o}}class uu{#e;get auxComponents(){return n(this.#e)}set auxComponents(t){b(this.#e,t,!0)}#n;get currentRange(){return n(this.#n)}set currentRange(t){b(this.#n,t)}#t;get activeRange(){return n(this.#t)}set activeRange(t){b(this.#t,t)}#i;get fetchedRange(){return n(this.#i)}set fetchedRange(t){b(this.#i,t,!0)}#r;get events(){return n(this.#r)}set events(t){b(this.#r,t)}#s;get filteredEvents(){return n(this.#s)}set filteredEvents(t){b(this.#s,t)}#o;get mainEl(){return n(this.#o)}set mainEl(t){b(this.#o,t,!0)}#a;get now(){return n(this.#a)}set now(t){b(this.#a,t,!0)}#l;get resources(){return n(this.#l)}set resources(t){b(this.#l,t)}#f;get today(){return n(this.#f)}set today(t){b(this.#f,t,!0)}#u;get intlEventTime(){return n(this.#u)}set intlEventTime(t){b(this.#u,t)}#d;get intlDayHeader(){return n(this.#d)}set intlDayHeader(t){b(this.#d,t)}#h;get intlDayHeaderAL(){return n(this.#h)}set intlDayHeaderAL(t){b(this.#h,t)}#v;get intlTitle(){return n(this.#v)}set intlTitle(t){b(this.#v,t)}#c;get viewDates(){return n(this.#c)}set viewDates(t){b(this.#c,t)}#_;get viewTitle(){return n(this.#_)}set viewTitle(t){b(this.#_,t)}#w;get view(){return n(this.#w)}set view(t){b(this.#w,t)}#b;get viewComponent(){return n(this.#b)}set viewComponent(t){b(this.#b,t,!0)}#k;get extensions(){return n(this.#k)}set extensions(t){b(this.#k,t,!0)}#p;get features(){return n(this.#p)}set features(t){b(this.#p,t,!0)}#g;get interaction(){return n(this.#g)}set interaction(t){b(this.#g,t,!0)}#m;get iClasses(){return n(this.#m)}set iClasses(t){b(this.#m,t,!0)}#y;get iClass(){return n(this.#y)}set iClass(t){b(this.#y,t,!0)}options;setOption;setViewOptions;constructor(t,r){[this.options,this.setOption,this.setViewOptions]=Xl(t,r),this.#e=B(qe([])),this.#n=a(ru(this)),this.#t=a(iu(this)),this.#i=B(qe({events:{},resources:{}})),this.#r=B(br(this.options.events)),this.#s=a(su(this)),this.#o=B(),this.#a=B(qe(Ht())),this.#l=B(br(this.options.resources)),this.#f=B(qe(Pt(Ht()))),this.#u=a(so(this,"eventTimeFormat")),this.#d=a(kn(this,"dayHeaderFormat")),this.#h=a(kn(this,"dayHeaderAriaLabelFormat")),this.#v=a(so(this,"titleFormat")),this.#c=a(ou(this)),this.#_=a(au(this)),this.#w=a(lu(this)),this.#b=B(),this.#k=B(qe({})),this.#p=B(qe([])),this.#g=B(qe({})),this.iEvents=new ho,this.#m=B(qe(gr)),this.#y=B();for(let i of t)i.initState?.(this);this.#C()}#C(){let t=jl(this);gn(Zl(this)),gn($l(this)),Xe(Jl(this,t)),Xe(Ql(this,t)),Xe(eu(this)),Xe(tu(this)),Xe(nu(this))}}var fu=Q("<h2></h2>"),du=Q("<button><i></i></button>"),cu=Q("<button><i></i></button>"),hu=Q("<button> </button>"),vu=Q("<button></button>"),gu=Q("<button> </button>");function yo(e,t){pe(t,!0);let r=te("state"),i=a(()=>r.currentRange),s=a(()=>r.today),o=a(()=>r.viewTitle),l=a(()=>r.viewDates),u=a(()=>r.options.buttonText),f=a(()=>r.options.customButtons),d=a(()=>r.options.date),c=a(()=>r.options.duration),g=a(()=>r.options.hiddenDays),h=a(()=>r.options.theme),v=a(()=>r.options.validRange),p=a(()=>r.options.view),y=B(!1),m=B(!1),_=B(!1),T=!1;gn(()=>{n(l),n(v),t.buttons,J(()=>{T||(T=!0,t.buttons.includes("prev")&&(b(y,!1),n(v).start&&b(y,x(E),!0)),t.buttons.includes("next")&&(b(m,!1),n(v).end&&b(m,x(k),!0)),t.buttons.includes("today")&&(b(_,n(s)>=n(i).start&&n(s)<n(i).end,!0),!n(_)&&(n(v).start||n(v).end)&&b(_,x(w),!0)),yn().then(()=>T=!1))})});function x(V){let P=n(d);V();let X=n(l).every(ae=>An(ae,n(v)));return r.setOption("date",P),X}function E(){r.setOption("date",Ks(G(n(d)),n(c),n(g)))}function k(){r.setOption("date",Xs(G(n(d)),n(c),n(g)))}function w(){r.setOption("date",G(n(s)))}var C=he(),F=ne(C);oe(F,17,()=>t.buttons,Ce,(V,P)=>{var X=he(),ae=ne(X);{var de=S=>{var M=fu();Le(M,()=>Ke(n(o))),se(()=>N(M,1,n(h).title)),L(S,M)},ee=S=>{var M=du(),U=ue(M);se(()=>{N(M,1,`${n(h).button??""} ec-${n(P)??""}`),xe(M,"aria-label",n(u).prev),xe(M,"title",n(u).prev),M.disabled=n(y),N(U,1,`${n(h).icon??""} ec-${n(P)??""}`)}),ze("click",M,E),L(S,M)},K=S=>{var M=cu(),U=ue(M);se(()=>{N(M,1,`${n(h).button??""} ec-${n(P)??""}`),xe(M,"aria-label",n(u).next),xe(M,"title",n(u).next),M.disabled=n(m),N(U,1,`${n(h).icon??""} ec-${n(P)??""}`)}),ze("click",M,k),L(S,M)},le=S=>{var M=hu(),U=ue(M);se(()=>{N(M,1,`${n(h).button??""} ec-${n(P)??""}`),M.disabled=n(_),Fs(U,n(u)[n(P)])}),ze("click",M,w),L(S,M)},Z=S=>{var M=vu();Le(M,()=>Ke(n(f)[n(P)].text)),se(()=>N(M,1,Nt([n(h).button,`ec-${n(P)}`,n(f)[n(P)].active&&n(h).active]))),ze("click",M,function(...U){n(f)[n(P)].click?.apply(this,U)}),L(S,M)},A=S=>{var M=gu(),U=ue(M);se(()=>{N(M,1,Nt([n(h).button,`ec-${n(P)}`,n(p)===n(P)&&n(h).active])),Fs(U,n(u)[n(P)])}),ze("click",M,()=>r.setOption("view",n(P))),L(S,M)};be(ae,S=>{n(P)==="title"?S(de):n(P)==="prev"?S(ee,1):n(P)==="next"?S(K,2):n(P)==="today"?S(le,3):n(f)[n(P)]?S(Z,4):n(P)!==""&&S(A,5)})}L(V,X)}),L(e,C),ye()}rn(["click"]);var mu=Q("<div><!></div>"),pu=Q("<div></div>"),yu=Q("<nav></nav>");function _u(e,t){pe(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).options.headerToolbar),s=a(()=>n(r).options.theme),o=a(()=>{let u={};for(let f of["start","center","end"])u[f]=n(i)[f]?.split(" ").map(d=>d.split(","))??[];return u});var l=yu();oe(l,21,()=>_n(n(o)),Ce,(u,f)=>{var d=pu();oe(d,21,()=>n(o)[n(f)],Ce,(c,g)=>{var h=he(),v=ne(h);{var p=m=>{var _=mu(),T=ue(_);yo(T,{get buttons(){return n(g)}}),se(()=>N(_,1,n(s).buttonGroup)),L(m,_)},y=m=>{yo(m,{get buttons(){return n(g)}})};be(v,m=>{n(g).length>1?m(p):m(y,!1)})}L(c,h)}),se(()=>N(d,1,`ec-${n(f)??""}`)),L(u,d)}),se(()=>N(l,1,n(s).toolbar)),L(e,l),ye()}var wu=Q("<div><!> <!> <!></div>");function bu(e,t){pe(t,!0);let r=ke(t,"plugins",19,()=>[]),i=ke(t,"options",19,()=>({})),s=new uu(r(),i());Un("state",s);let o=a(()=>s.auxComponents),l=a(()=>s.features),u=a(()=>s.events),f=a(()=>s.interaction),d=a(()=>s.iClass),c=a(()=>s.view),g=a(()=>s.viewComponent),h=a(()=>s.options.date),v=a(()=>s.options.duration),p=a(()=>s.options.height),y=a(()=>s.options.hiddenDays),m=a(()=>s.options.customScrollbars),_=a(()=>s.options.theme),T={...i()};gn(()=>{for(let[D,z]of Kl(i(),T))J(()=>{x(D,z)});j(T,i())});function x(D,z){return s.setOption(D,z,!1),this}function E(D){let z=s.options[D];return ai(z)?We(z):z}function k(){return s.fetchedRange.resources={},this}function w(){return s.fetchedRange.events={},this}function C(){return n(u).map(Je)}function F(D){D=String(D);for(let z of n(u))if(z.id===D)return Je(z);return null}function V(D){return D=yr([D])[0],n(u).push(D),Je(D)}function P(D){let z=String(D.id),I=n(u).findIndex(ge=>ge.id===z);return I>=0?(D=yr([D])[0],n(u)[I]=D,Je(D)):null}function X(D){D=String(D);let z=n(u).findIndex(I=>I.id===D);return z>=0&&n(u).splice(z,1),this}function ae(){return Ze(n(c))}function de(){return n(f).action?.unselect(),this}function ee(D,z){let I=Ln(D,z);if(I){let ge=Xt(I)(D,z);return ge.date=We(ge.date),ge}return null}function K(){return s.setOption("date",Xs(G(n(h)),n(v),n(y))),this}function le(){return s.setOption("date",Ks(G(n(h)),n(v),n(y))),this}var Z={setOption:x,getOption:E,refetchResources:k,refetchEvents:w,getEvents:C,getEventById:F,addEvent:V,updateEvent:P,removeEventById:X,getView:ae,unselect:de,dateFromPoint:ee,next:K,prev:le},A=wu();let S;var M=ue(A);_u(M,{});var U=re(M,2);jr(U,()=>n(g),(D,z)=>{z(D,{})});var ie=re(U,2);return oe(ie,17,()=>n(o),Ce,(D,z)=>{var I=he(),ge=ne(I);jr(ge,()=>n(z),(Ne,Fe)=>{Fe(Ne,{})}),L(D,I)}),se(D=>{N(A,1,Nt([n(_).calendar,n(_).view,n(d)&&n(_)[n(d)],n(m)&&n(_).customScrollbars])),xe(A,"role",D),S=Lt(A,"",S,{height:n(p)})},[()=>n(l).includes("list")?"list":"table"]),L(e,A),ye(Z)}function ku(e){return()=>{let{viewDates:t,options:{duration:r,hiddenDays:i}}=e,s;return J(()=>s=r.months||r.inWeeks?7-i.length:t.length),s}}function Cu(e,t){return()=>{let{options:{highlightedDates:r,validRange:i},viewDates:s}=e,{colsCount:o}=t,l=[];return J(()=>{let u=[],f=1,d=1;for(let c of s)u.push({gridColumn:f,gridRow:d,resource:void 0,dayStart:c,dayEnd:Ct(G(c)),disabled:An(c,i),highlight:r.some(g=>tt(g,c))}),f===o&&(l.push(u),u=[],f=0,++d),++f}),l}}function Du(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[];return J(()=>{for(let l of r)for(let u of i)mt(l.display)?l.allDay&&(o=o.concat(Mn(l,u))):s=s.concat(Mn(l,u));no(s)}),{chunks:s,bgChunks:o}}}function Eu(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[];for(let[,o]of r)o&&J(()=>{for(let l of i)s=s.concat(Mn(o,l,!1))});return s}}let Tu=class{#e;get colsCount(){return n(this.#e)}set colsCount(t){b(this.#e,t)}#n;get grid(){return n(this.#n)}set grid(t){b(this.#n,t)}#t;get gridEl(){return n(this.#t)}set gridEl(t){b(this.#t,t,!0)}#i;get chunks(){return n(this.#i)}set chunks(t){b(this.#i,t)}#r;get bgChunks(){return n(this.#r)}set bgChunks(t){b(this.#r,t)}#s;get iChunks(){return n(this.#s)}set iChunks(t){b(this.#s,t)}#o;get intlDayCell(){return n(this.#o)}set intlDayCell(t){b(this.#o,t)}#a;get intlDayPopover(){return n(this.#a)}set intlDayPopover(t){b(this.#a,t)}#l;get popupDay(){return n(this.#l)}set popupDay(t){b(this.#l,t,!0)}constructor(t){this.#e=a(ku(t)),this.#n=a(Cu(t,this)),this.#t=B();let r=a(Du(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#i=a(()=>n(i)),this.#r=a(()=>n(s)),this.#s=a(Eu(t,this)),this.hiddenChunks=new ho,this.#o=a(kn(t,"dayCellFormat")),this.#a=a(kn(t,"dayPopoverFormat")),this.#l=B(null)}};var xu=Q("<div><!></div>");function kr(e,t){pe(t,!0);let r=ke(t,"el",15),i=ke(t,"allDay",3,!1),s=ke(t,"resource",3,void 0),o=ke(t,"dateFromPoint",3,()=>t.date),l=ke(t,"classes",3,gr),u=ke(t,"disabled",3,!1),f=ke(t,"highlight",3,!1),d=ke(t,"role",3,"cell"),c=ke(t,"noIeb",3,!1),g=ke(t,"noBeb",3,!1),h=a(()=>te("state")),v=a(()=>n(h).today),p=a(()=>n(h).interaction.action),y=a(()=>n(h).options.theme),m=a(()=>te("view-state")),_=a(()=>n(m).snap),T=a(()=>tt(t.date,n(v))),x=a(()=>l()([n(y).day,n(y).weekdays?.[t.date.getUTCDay()],n(T)&&n(y).today,f()&&n(y).highlight,u()&&n(y).disabled,c()&&n(y).noIeb,g()&&n(y).noBeb]));Jn(()=>{Qs(r(),(C,F)=>({allDay:i(),date:o()(C,F),resource:s(),dayEl:r(),disabled:u()}))});let E=a(()=>!u()&&n(p)?C=>n(p).select(C,n(_)):void 0);var k=xu(),w=ue(k);qt(w,()=>t.children??Wt),lt(k,C=>r(C),()=>r()),se(()=>{N(k,1,Nt(n(x))),xe(k,"role",d())}),ze("pointerdown",k,function(...C){n(E)?.apply(this,C)}),L(e,k),ye()}rn(["pointerdown"]);var Su=Q("<div></div>"),Ru=Q("<article><!></article>");function _o(e,t){pe(t,!0);let r=ke(t,"el",15),i=ke(t,"classes",3,gr),s=ke(t,"styles",3,gr),o=a(()=>te("state")),l=a(()=>n(o).intlEventTime),u=a(()=>n(o).resources),f=a(()=>n(o).view),d=a(()=>n(o).options.displayEventEnd),c=a(()=>n(o).options.eventBackgroundColor),g=a(()=>n(o).options.eventColor),h=a(()=>n(o).options.eventContent),v=a(()=>n(o).options.eventClick),p=a(()=>n(o).options.eventDidMount),y=a(()=>n(o).options.eventClassNames),m=a(()=>n(o).options.eventMouseEnter),_=a(()=>n(o).options.eventMouseLeave),T=a(()=>n(o).options.eventTextColor),x=a(()=>n(o).options.theme),E=a(()=>t.chunk.event),k=a(()=>t.chunk.event.display),w=a(()=>n(E).backgroundColor??ao(t.chunk.resource??uo(n(E),n(u)))??n(c)??n(g)),C=a(()=>n(E).textColor??lo(t.chunk.resource??uo(n(E),n(u)))??n(T)),F=a(()=>wl(s()({"background-color":n(w),color:n(C)})).map(D=>`${D[0]}:${D[1]}`).concat(n(E).styles).join(";")),V=a(()=>i()([mt(n(k))?n(x).bgEvent:n(x).event,...Ol(n(y),n(E),n(f))])),P=a(()=>Al(t.chunk,n(d),n(h),n(x),n(l),n(f))),X=a(()=>Yo(n(P),2)),ae=a(()=>n(X)[0]),de=a(()=>n(X)[1]);Jn(()=>{_e(n(p))&&n(p)({event:Je(n(E)),timeText:n(ae),el:r(),view:Ze(n(f))})});function ee(D,z){return _e(D)&&!_r(z)?I=>D({event:Je(n(E)),el:r(),jsEvent:I,view:Ze(n(f))}):void 0}let K=a(()=>!mt(n(k))&&ee(n(v),n(k))||void 0),le=a(()=>n(K)&&ri(n(K))),Z=a(()=>ee(n(m),n(k))),A=a(()=>ee(n(_),n(k)));var S=Ru();{const D=z=>{var I=Su();Le(I,()=>Ke(n(de))),se(()=>N(I,1,Nt(n(x).eventBody))),L(z,I)};var M=ue(S);{var U=z=>{var I=he(),ge=ne(I);qt(ge,()=>t.body,()=>D,()=>n(w),()=>n(C)),L(z,I)},ie=z=>{D(z)};be(M,z=>{t.body?z(U):z(ie,!1)})}lt(S,z=>r(z),()=>r())}se(()=>{N(S,1,Nt(n(V))),Lt(S,n(F)),xe(S,"role",n(K)?"button":void 0),xe(S,"tabindex",n(K)?0:void 0)}),ze("click",S,function(...D){n(K)?.apply(this,D)}),ze("keydown",S,function(...D){n(le)?.apply(this,D)}),ht("mouseenter",S,function(...D){n(Z)?.apply(this,D)}),ht("mouseleave",S,function(...D){n(A)?.apply(this,D)}),ze("pointerdown",S,function(...D){t.onpointerdown?.apply(this,D)}),L(e,S),ye()}rn(["click","keydown","pointerdown"]);var Iu=Q("<div><!></div>");function nr(e,t){pe(t,!0);let r=ke(t,"weekday",3,!0),i=ke(t,"colSpan",3,1),s=ke(t,"ariaHidden",3,!1),o=ke(t,"disabled",3,!1),l=ke(t,"highlight",3,!1),u=a(()=>te("state")),f=a(()=>n(u).today),d=a(()=>n(u).options.theme);var c=Iu(),g=ue(c);qt(g,()=>t.children),se(h=>{N(c,1,h),xe(c,"role",s()?null:"columnheader"),xe(c,"aria-colspan",s()||i()<=1?null:i()),xe(c,"aria-colindex",s()?null:t.colIndex),xe(c,"aria-hidden",s()?"true":null)},[()=>Nt([t.className??n(d).colHead,r()&&n(d).weekdays?.[t.date.getUTCDay()],r()&&tt(t.date,n(f))&&n(d).today,l()&&n(d).highlight,o()&&n(d).disabled])]),L(e,c),ye()}var Lu=Q("<time></time>");function Cr(e,t){pe(t,!0);let r=ke(t,"alPrefix",3,""),i=a(()=>te("state")),s=a(()=>n(i).intlDayHeader),o=a(()=>n(i).intlDayHeaderAL);var l=Lu();Le(l,()=>Ke(n(s).format(t.date))),se((u,f)=>{xe(l,"datetime",u),xe(l,"aria-label",`${r()??""}${f??""}`)},[()=>gt(t.date,10),()=>n(o).format(t.date)]),L(e,l),ye()}function Dr(e,t){pe(t,!0);let r=ke(t,"el",15),i=a(()=>te("state")),s=a(()=>n(i).iClasses),o=a(()=>n(i).interaction.action),l=a(()=>n(i).interaction.resizer),u=a(()=>te("view-state")),f=a(()=>n(u).snap),d=a(()=>t.chunk.event),c=a(()=>t.chunk.event.display),g=a(()=>p=>n(s)(p,n(d)));function h(p){return n(o)?.draggable(p)?y=>n(o).drag(p,y,t.forceDate,t.forceMargin,n(f)):n(o)?.noAction}let v=a(()=>!mt(n(c))&&!_r(n(c))?h(n(d)):void 0);_o(e,{get chunk(){return t.chunk},get classes(){return n(g)},get styles(){return t.styles},get onpointerdown(){return n(v)},get el(){return r()},set el(y){r(y)},body:(y,m=Wt)=>{var _=he(),T=ne(_);{var x=k=>{var w=he(),C=ne(w);jr(C,()=>n(l),(F,V)=>{V(F,{get chunk(){return t.chunk},get axis(){return t.axis},get forceDate(){return t.forceDate},get forceMargin(){return t.forceMargin},children:(P,X)=>{var ae=he(),de=ne(ae);qt(de,m),L(P,ae)},$$slots:{default:!0}})}),L(k,w)},E=k=>{var w=he(),C=ne(w);qt(C,m),L(k,w)};be(T,k=>{n(l)?k(x):k(E,!1)})}L(y,_)},$$slots:{body:!0}}),ye()}var Pu=Q("<time></time>"),Mu=Q("<span></span>"),Au=Q('<a role="button" tabindex="0" aria-haspopup="dialog"></a>'),Ou=Q("<div><!> <!></div> <div><!></div>",1);function Nu(e,t){pe(t,!0);const r=()=>vl(n(d),"$firstDay",i),[i,s]=gl();let o=te("state"),l=te("view-state"),u=a(()=>o.features),f=a(()=>o.options.date),d=a(()=>o.options.firstDay),c=a(()=>o.options.moreLinkContent),g=a(()=>o.options.theme),h=a(()=>o.options.weekNumbers),v=a(()=>o.options.weekNumberContent),p=a(()=>l.hiddenChunks),y=a(()=>l.intlDayCell),m=a(()=>t.day.dayStart),_=a(()=>t.day.disabled),T=a(()=>t.day.highlight),x=a(()=>n(m).getUTCMonth()!==n(f).getUTCMonth()),E=a(()=>P=>[...P,n(x)&&n(g).otherMonth]),k=a(()=>n(h)&&n(m).getUTCDay()===(n(d)?1:0)),w=a(()=>{let P;if(n(k)){let X=Sl(n(m),r());n(v)?P=_e(n(v))?n(v)({date:We(n(m)),week:X}):n(v):P="W"+String(X).padStart(2,"0")}return P}),C=a(()=>n(p).get(n(m).getTime())),F=a(()=>{let P="";if(n(C)){let X="+"+n(C).length+" more";n(c)?P=_e(n(c))?n(c)({num:n(C).length,text:X}):n(c):P=X}return P});function V(){l.popupDay=t.day}kr(e,{get date(){return n(m)},allDay:!0,get classes(){return n(E)},get disabled(){return n(_)},get highlight(){return n(T)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(P,X)=>{var ae=Ou(),de=ne(ae),ee=ue(de);{var K=ie=>{var D=Pu();Le(D,()=>Ke(n(y).format(n(m)))),se(z=>xe(D,"datetime",z),[()=>gt(n(m),10)]),L(ie,D)},le=a(()=>n(u).includes("dayNumber"));be(ee,ie=>{n(le)&&ie(K)})}var Z=re(ee,2);{var A=ie=>{var D=Mu();Le(D,()=>Ke(n(w))),se(()=>N(D,1,n(g).weekNumber)),L(ie,D)};be(Z,ie=>{n(k)&&ie(A)})}var S=re(de,2),M=ue(S);{var U=ie=>{var D=Au(),z=a(()=>fi(V)),I=a(()=>ri(V)),ge=a(fi);Le(D,()=>Ke(n(F))),ze("click",D,function(...Ne){n(z)?.apply(this,Ne)}),ze("keydown",D,function(...Ne){n(I)?.apply(this,Ne)}),ze("pointerdown",D,function(...Ne){n(ge)?.apply(this,Ne)}),L(ie,D)};be(M,ie=>{n(C)&&ie(U)})}se(()=>{N(de,1,n(g).dayHead),N(S,1,n(g).dayFoot)}),L(P,ae)},$$slots:{default:!0}}),ye(),s()}rn(["click","keydown","pointerdown"]);function Er(e,t){pe(t,!0);let r=ke(t,"inPopup",3,!1),i=a(()=>te("state")),s=a(()=>n(i).options.dayMaxEvents),o=a(()=>te("view-state")),l=a(()=>n(o).colsCount),u=a(()=>n(o).gridEl),f=a(()=>n(o).hiddenChunks),d=a(()=>n(o).popupDay),c=B(void 0),g=B(1),h=B(!1),v=a(()=>t.chunk.event),p=a(()=>t.chunk.event.display),y=a(()=>n(u).children.item((t.chunk.gridRow-1)*n(l)+t.chunk.gridColumn-1));Xe(()=>{r()||b(g,bn(n(y).firstElementChild)||1,!0)});let m=a(()=>k=>{if(k["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,k["grid-row"]=t.chunk.gridRow,!mt(n(p))){let w=r()?1:n(g);if(n(v)._margin){let[C,F]=n(v)._margin;C>w&&t.chunk.gridRow===F&&(w=C)}k["margin-block-start"]=`${w}px`}return n(h)&&(k.visibility="hidden"),k});function _(){b(g,ro(t.chunk,bn(n(c)),bn(n(y).firstElementChild)||1),!0)}function T(){if(n(s)===!0){let k=bn(n(y))-x(n(y));if(b(h,t.chunk.bottom>k),n(h))for(let w of t.chunk.dates){let C=w.getTime();if(n(f).has(C)){let F=n(f).get(C);F.includes(t.chunk)||n(f).set(C,[...F,t.chunk])}else n(f).set(C,[t.chunk])}}else b(h,!1),n(f).size&&n(f).clear()}function x(k){let w=0;for(let C=0;C<t.chunk.dates.length&&(w=vt(w,bn(k.lastElementChild)),k=k.nextElementSibling,!!k);++C);return w}var E={reposition:_,hide:T};{let k=a(()=>r()&&n(d).dayStart),w=a(()=>[n(g),t.chunk.gridRow]);Dr(e,{get chunk(){return t.chunk},get styles(){return n(m)},axis:"x",get forceDate(){return n(k)},get forceMargin(){return n(w)},get el(){return n(c)},set el(C){b(c,C,!0)}})}return ye(E)}var Fu=Q('<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>');function Hu(e,t){pe(t,!0);let r=te("view-state"),i=a(()=>te("state")),s=a(()=>n(i).interaction),o=a(()=>n(i).options.buttonText),l=a(()=>n(i).options.theme),u=a(()=>r.colsCount),f=a(()=>r.chunks),d=a(()=>r.gridEl),c=a(()=>r.intlDayPopover),g=a(()=>r.popupDay),h=B(void 0),v=B(""),p=a(()=>n(g).gridColumn),y=a(()=>n(g).gridRow),m=a(()=>n(g).dayStart),_=a(()=>n(g).dayEnd),T=a(()=>{let ee=[];for(let K of n(f))K.gridRow===n(y)&&K.gridColumn<=n(p)&&K.gridColumn+K.dates.length>n(p)&&ee.push(j({},K,$n(K.event,n(m),n(_))));return ee.sort((K,le)=>K.top-le.top),ee});Jn(()=>{n(h).show()}),Xe(()=>{n(T).length?J(x):E()});function x(){let ee=n(d).children.item((n(y)-1)*n(u)+n(p)-1),K=on(n(h)),le=on(ee),Z=on(n(d));b(v,"");let A;if(K.width>=Z.width){A=Z.left-le.left;let M=le.right-Z.right;b(v,n(v)+`inset-inline-end:${M}px;`)}else A=(le.width-K.width)/2,le.left+A<Z.left?A=Z.left-le.left:le.left+A+K.width>Z.right&&(A=Z.right-le.left-K.width);b(v,n(v)+`inset-inline-start:${A}px;`);let S;K.height>=Z.height?(S=Z.top-le.top,b(v,n(v)+`block-size:${Z.height}px;`)):(S=(le.height-K.height)/2,le.top+S<Z.top?S=Z.top-le.top:le.top+S+K.height>Z.bottom&&(S=Z.bottom-le.top-K.height)),b(v,n(v)+`inset-block-start:${S}px;`)}function E(){r.popupDay=null}function k(){E(),n(s).action?.noClick()}var w=Fu();let C;var F=ue(w),V=ue(F);Le(V,()=>Ke(n(c).format(n(m))));var P=re(V,2);Ha(P);var X=a(()=>fi(E)),ae=a(()=>ri(E)),de=re(F,2);oe(de,21,()=>n(T),Ce,(ee,K)=>{Er(ee,{get chunk(){return n(K)},inPopup:!0})}),lt(w,ee=>b(h,ee),()=>n(h)),Le(w,()=>_l("pointerdown")),se(ee=>{N(w,1,n(l).popup),C=Lt(w,n(v),C,{"grid-area":`${n(y)+1} / ${n(p)}`}),N(F,1,n(l).dayHead),xe(V,"datetime",ee),xe(P,"aria-label",n(o).close),N(de,1,n(l).events)},[()=>gt(n(m),10)]),ht("pointerdownoutside",w,k),ht("close",w,E),ze("click",P,function(...ee){n(X)?.apply(this,ee)}),ze("keydown",P,function(...ee){n(ae)?.apply(this,ee)}),L(e,w),ye()}rn(["click","keydown"]);var zu=Q('<div role="columnheader"><span></span></div>'),Wu=Q('<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>');function _i(e,t){pe(t,!0);let r=te("state"),i=new Tu(r);Un("view-state",i);let s=a(()=>r.intlDayHeader),o=a(()=>r.intlDayHeaderAL),l=a(()=>r.options.dayMaxEvents),u=a(()=>r.options.theme),f=a(()=>i.grid),d=a(()=>i.chunks),c=a(()=>i.bgChunks),g=a(()=>i.iChunks),h=a(()=>i.hiddenChunks),v=a(()=>i.popupDay),p=[];function y(){hi(p,n(d)),n(h).clear(),yn().then(m)}function m(){n(h).size,p.forEach(k=>k?.hide())}Xe(y),Xe(m);var _=he(),T=ne(_);{var x=k=>{var w=Wu();let C;var F=ue(w),V=ue(F);oe(V,21,()=>n(f)[0],Ce,(A,S,M)=>{let U=()=>n(S).dayStart;var ie=zu();xe(ie,"aria-colindex",1+M);var D=ue(ie);Le(D,()=>Ke(n(s).format(U()))),se((z,I)=>{N(ie,1,z),xe(D,"aria-label",I)},[()=>Nt([n(u).colHead,n(u).weekdays?.[U().getUTCDay()]]),()=>n(o).format(U())]),L(A,ie)});var P=re(F,2),X=ue(P);oe(X,21,()=>n(f),Ce,(A,S,M)=>{var U=he(),ie=ne(U);oe(ie,17,()=>n(S),Ce,(D,z,I)=>{{let ge=a(()=>I+1===De(n(S))),Ne=a(()=>M+1===De(n(f)));Nu(D,{get day(){return n(z)},get noIeb(){return n(ge)},get noBeb(){return n(Ne)}})}}),L(A,U)}),lt(X,A=>i.gridEl=A,()=>i?.gridEl);var ae=re(X,2),de=ue(ae);oe(de,19,()=>n(d),A=>A.id,(A,S,M)=>{lt(Er(A,{get chunk(){return n(S)}}),(U,ie)=>p[ie]=U,U=>p?.[U],()=>[n(M)])});var ee=re(de,2);oe(ee,17,()=>n(c),A=>A.id,(A,S)=>{Er(A,{get chunk(){return n(S)}})});var K=re(ee,2);oe(K,17,()=>n(g),Ce,(A,S)=>{Er(A,{get chunk(){return n(S)}})});var le=re(P,2);{var Z=A=>{Hu(A,{})};be(le,A=>{n(v)&&A(Z)})}lt(w,A=>r.mainEl=A,()=>r?.mainEl),Le(w,()=>ii(y)),se(A=>{N(w,1,Nt([n(u).main,n(l)===!0&&n(u).uniform])),C=Lt(w,"",C,A),N(F,1,n(u).header),N(V,1,n(u).grid),N(P,1,n(u).body),N(X,1,n(u).grid),N(ae,1,n(u).events)},[()=>({"--ec-grid-cols":De(n(f)[0]),"--ec-grid-rows":De(n(f))})]),L(k,w)},E=a(()=>!kt(n(f))&&!kt(n(f)[0]));be(T,k=>{n(E)&&k(x)})}L(e,_),ye()}const Uu={createOptions(e){j(e,{dayMaxEvents:!1,dayCellFormat:{day:"numeric"},dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},moreLinkContent:void 0,weekNumbers:!1,weekNumberContent:void 0,view:"dayGridMonth"}),j(e.buttonText,{dayGridDay:"day",dayGridMonth:"month",dayGridWeek:"week",close:"Close"}),j(e.theme,{uniform:"ec-uniform",dayFoot:"ec-day-foot",otherMonth:"ec-other-month",popup:"ec-popup",weekNumber:"ec-week-number"}),j(e.views,{dayGridDay:{buttonText:er,component:()=>_i,dayHeaderFormat:{weekday:"long"},displayEventEnd:!1,duration:{days:1},theme:ut("ec-day-grid ec-day-view")},dayGridWeek:{buttonText:tr,component:()=>_i,displayEventEnd:!1,theme:ut("ec-day-grid ec-week-view")},dayGridMonth:{buttonText:gi,component:Vu,dayHeaderFormat:{weekday:"short"},dayHeaderAriaLabelFormat:{weekday:"long"},displayEventEnd:!1,duration:{months:1},theme:ut("ec-day-grid ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})}};function Vu(e){return e.features=["dayNumber"],e.extensions.activeRange=(t,r)=>{let{options:{firstDay:i}}=e;return{start:Ys(t,i),end:xl(r,i)}},_i}function wo(e,t,r){return e.startEditable??t??e.editable??r}function Bu(e,t,r){return e.durationEditable??t??e.editable??r}let wi=!1;function Gu(e){wi||(wi=!0,window.requestAnimationFrame(()=>{e(),wi=!1}))}function bo(e,t,r){return vt(t,Ft(r,e))}function Yu(e){return()=>{let{options:{editable:t,eventStartEditable:r,theme:i}}=e;e.iClasses=(s,o)=>{let{display:l}=o;return[...s,_r(l)?[i[l]]:!mt(l)&&wo(o,r,t)?[i.draggable]:[]]}}}function qu(e){return()=>{let{interaction:t,mainEl:r}=e;if(r)return jn(r,"scroll",()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}class Xu{constructor(t){this.#e(t)}#e(t){gn(Yu(t)),Xe(qu(t))}}function Ku(e,t){pe(t,!0);let r=te("state"),i=a(()=>r.events),s=a(()=>r.iEvents),o=a(()=>r.features),l=a(()=>r.view),u=a(()=>r.mainEl),f=a(()=>r.options.dateClick),d=a(()=>r.options.dragConstraint),c=a(()=>r.options.dragScroll),g=a(()=>r.options.editable),h=a(()=>r.options.eventStartEditable),v=a(()=>r.options.eventDragMinDistance),p=a(()=>r.options.eventDragStart),y=a(()=>r.options.eventDragStop),m=a(()=>r.options.eventDrop),_=a(()=>r.options.eventLongPressDelay),T=a(()=>r.options.eventResizeStart),x=a(()=>r.options.eventResizeStop),E=a(()=>r.options.eventResize),k=a(()=>r.options.longPressDelay),w=a(()=>r.options.resizeConstraint),C=a(()=>r.options.selectable),F=a(()=>r.options.select),V=a(()=>r.options.selectBackgroundColor),P=a(()=>r.options.selectConstraint),X=a(()=>r.options.selectLongPressDelay),ae=a(()=>r.options.selectMinDistance),de=a(()=>r.options.unselect),ee=a(()=>r.options.unselectAuto),K=a(()=>r.options.unselectCancel),le=a(()=>r.options.validRange);const Z=1,A=2,S=3,M=4,U=5,ie=6;let D,z,I,ge,Ne,Fe,zt,Qe,pt,Kt,an,Ae,W,Ie,Ue,H,Y,Te,q,Pe,Se,je,nt,me,Ve,rt,Be;function ln(R){return wo(R,n(h),n(g))}function On(R,O,ce,$,it){D||(D=Oi(O)?Z:ie,Cn()&&(I=R,Ai(O,it),ce&&(Fe=ce),$&&(Ve=$),Te="dragging",Nn(O)))}function Li(R,O,ce,$,it,ir,Fi,_d){D||(D=Oi(O)?ce?S:A:ie,Cn()&&(I=R,Ai(O,_d),it&&(Fe=it),ir&&(Ve=ir),Te=$==="x"?"resizingX":"resizingY",Rr()?(q=G(I.end),Y?(li(q,I.start),q>=I.end&&In(q)):(pr(q,rt),q<I.start&&(q=I.start),Fe=I.start)):(q=G(I.start),Y?(li(q,I.end),q<=I.start&&!Fi&&Ct(q)):(Ee(q,rt),q>I.end&&(q=I.end),Fe=I.end,Fi||(Fe=pr(G(Fe),rt))),Fi&&!Y&&(Be=rt)),Nn(O)))}function Pi(R,O){D||(D=Oi(R)?n(C)&&!n(o).includes("list")?M:U:ie,Cn()&&(Ai(R,O),Te="selecting",Pe=Y?Oe({day:1}):rt,I={allDay:Y,start:Fe,end:Ee(G(Fe),Pe),resourceIds:Qe?[Qe.id]:[]},Nn(R)))}function Mi(){D||(D=ie)}function Ai(R,O){window.getSelection().removeAllRanges(),Kt=Ae=R.clientX,an=W=R.clientY,rt=O?.duration;let ce=Ln(Ae,W);({allDay:Y,date:Fe,resource:Qe}=Xt(ce)(Ae,W)),Ue=n(u)!==$s(ce,3),Ie=$s(ce,1),Ao(),R.pointerType!=="mouse"&&(nt=setTimeout(()=>{D&&(z=!0,Nn(R))},(un()?n(X):n(_))??n(k)))}function Nn(R){if(z||R&&R.pointerType==="mouse"&&cd()>=(un()?n(ae):n(v))){z=!0,Ir(R),r.iClass=Te,ge||(un()?dd():fd(R,Fn()?n(T):n(p)));let O=rr(ud());if(O){let ce;if({allDay:ce,date:zt,resource:pt}=O,ce===Y){let $=Sr({},ge),it=n(w);H=Oe((zt-Fe)/1e3),Rr()?($.start=Ee(G(I.start),H),$.start>q&&($.start=q,H=Oe((q-I.start)/1e3))):($.end=Ee(G(I.end),H),Be&&Ee($.end,Be),Fn()?$.end<q&&($.end=q,H=Oe((q-I.end)/1e3)):un()?($.end<I.end?($.start=pr($.end,Pe),$.end=I.end):$.start=I.start,it=n(P)):($.start=Ee(G(I.start),H),Qe&&($.resourceIds=I.resourceIds.filter(ir=>ir!==Qe.id),$.resourceIds.push(pt.id)),it=n(d)));do{if(it!==void 0&&($=Sr(ci(I),$),it(un()?Ho($,R):zo($,I,R))===!1)){Fo(I);break}Fo($)}while(!1)}}}if(n(c)){let O=24,ce=24;Gu(()=>{me&&(Ue||(W<me.top+O&&(n(u).scrollTop+=vt(-8,(W-me.top-O)/3)),W>me.bottom-O&&(n(u).scrollTop+=Ft(8,(W-me.bottom+O)/3))),Ae<me.left+ce&&(n(u).scrollLeft+=vt(-8,(Ae-me.left-ce)/3)),Ae>me.right-ce&&(n(u).scrollLeft+=Ft(8,(Ae-me.right+ce)/3)),W<O&&window.scrollBy(0,vt(-8,(W-O)/3)),W>window.innerHeight-O&&window.scrollBy(0,Ft(8,(W-window.innerHeight+O)/3)))})}}function Po(){Cn()&&(Ao(),Nn())}function ad(R){Cn()&&R.isPrimary&&(Ae=R.clientX,W=R.clientY,Nn(R))}function ld(R){if(Se&&n(ee)&&!(n(K)&&R.target.closest(n(K)))&&Ir(R),D&&R.isPrimary){if(z)if(un()){if(Se=!0,_e(n(F))){let O=Ho(ge,R);n(F)(O)}}else{I.display=Ne;let O=Fn()?n(x):n(y);_e(O)&&O({event:Je(I),jsEvent:R,view:Ze(n(l))});let ce=ci(I);if(No(I,ge),Oo(),O=Fn()?n(E):n(m),_e(O)){let $=I,it=zo(I,ce,R);O(j(it,{revert(){No($,ce)}}))}}else if((hd()||un())&&_e(n(f))&&!je){Ae=R.clientX,W=R.clientY;let O=Ln(Ae,W);if(O){let{allDay:ce,date:$,resource:it}=Xt(O)(Ae,W);n(f)({allDay:ce,date:We($),dateStr:gt($),dayEl:O,jsEvent:R,view:Ze(n(l)),resource:it})}}Mo()}je=!1}function Mo(){z=!1,D=Kt=an=Ae=W=I=Ne=Fe=zt=Qe=pt=H=Be=Y=q=Pe=Ve=Ie=me=rt=void 0,r.iClass=void 0,nt&&(clearTimeout(nt),nt=void 0)}function ud(){return Ln(bo(Ae,me.left,me.right),bo(W,me.top,me.bottom))}function rr(R){if(R){let O=Xt(R)(Ae,W);if(O.disabled){if(!n(le).end||O.date<n(le).end)return rr(R.nextElementSibling);if(!n(le).start||O.date>n(le).start)return rr(R.previousElementSibling)}else return(un()||Fn())&&O.resource&&!ge.resourceIds.includes(O.resource.id)&&!n(o).includes("timeline")?Ae>Kt?rr(R.previousElementSibling):rr(R.nextElementSibling):O}return null}function Ao(){let R=on(n(u)),O=on(Ie),ce=R.width/n(u).offsetWidth,$=R.height/n(u).offsetHeight,it=wn();me={left:vt(0,it?R.right-n(u).clientWidth*ce:O.left+n(u).scrollLeft*ce),right:Ft(document.documentElement.clientWidth,it?O.right+n(u).scrollLeft*ce:R.left+n(u).clientWidth*ce)-2,top:vt(0,O.top+(Ue?0:n(u).scrollTop)*$),bottom:Ft(document.documentElement.clientHeight,Ue?O.bottom:R.top+n(u).clientHeight*$)-2}}function fd(R,O){_e(O)&&O({event:Je(I),jsEvent:R,view:Ze(n(l))}),Ne=I.display,I.display="preview",ge=ci(I),Ve!==void 0&&(ge._margin=Ve),Be&&Ee(ge.end,Be),I.display="ghost",n(i).length=n(i).length}function dd(){ge={id:"{select}",allDay:I.allDay,start:I.start,title:"",display:"preview",extendedProps:{},backgroundColor:n(V),resourceIds:I.resourceIds,classNames:[],styles:[]}}function Oo(){ge=void 0,n(s).delete("action")}function Sr(R,O){return R.start=O.start,R.end=O.end,R.resourceIds=O.resourceIds,{...R}}function No(R,O){Sr(R,O),n(i).length=n(i).length}function Fo(R){ge=Sr(ge,R),n(s).set("action",ge)}function Ho(R,O){let{start:ce,end:$}=Je(R);return{start:ce,end:$,startStr:gt(R.start),endStr:gt(R.end),allDay:Y,view:Ze(n(l)),resource:Qe,jsEvent:O}}function zo(R,O,ce){let $;return Fn()?$=Rr()?{startDelta:H,endDelta:Oe(0)}:{startDelta:Oe(0),endDelta:H}:$={delta:H,oldResource:Qe!==pt?Qe:void 0,newResource:Qe!==pt?pt:void 0},j($,{event:Je(R),oldEvent:Je(O),view:Ze(n(l)),jsEvent:ce}),$}function cd(){return Math.sqrt(Math.pow(Ae-Kt,2)+Math.pow(W-an,2))}function Fn(){return D===A||Rr()}function Rr(){return D===S}function hd(){return D===U}function un(){return D===M}function Cn(){return D&&D<U}function Oi(R){return R.isPrimary&&(R.pointerType!=="mouse"||R.buttons&1)}function Ir(R){Se&&(Se=!1,Oo(),_e(n(de))&&n(de)({jsEvent:R,view:Ze(n(l))}))}gn(()=>{n(l),Ir()});function vd(){je=!0}function gd(R){if(Cn()){let O=R.target,ce=[],$=()=>El(ce);ce.push(jn(O,"touchmove",Ni(()=>z))),ce.push(jn(O,"touchend",$)),ce.push(jn(O,"touchcancel",$))}}function Ni(R){return O=>{R()&&O.preventDefault()}}Jn(()=>jn(window,"touchmove",Tl,{passive:!1}));var md={draggable:ln,drag:On,resize:Li,select:Pi,noAction:Mi,handleScroll:Po,unselect:Ir,noClick:vd};ht("pointermove",St,ad),ht("pointerup",St,ld),ht("pointercancel",St,Mo),ht("scroll",St,Po);var pd=a(()=>Ni(Cn));ht("selectstart",St,function(...R){n(pd)?.apply(this,R)});var yd=a(()=>Ni(()=>nt));return ht("contextmenu",St,function(...R){n(yd)?.apply(this,R)}),ht("touchstart",St,gd,void 0,!0),ye(md)}function Zu(e,t){pe(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).iEvents),s=a(()=>n(r).options.slotDuration),o=0,l=0,u;function f(){let y=Ln(o,l);if(y&&!n(i).has("action")){let{allDay:m,date:_,resource:T,disabled:x}=Xt(y)(o,l);if(!x){u||g(),u.allDay=m,u.start=_,u.end=Ee(G(_),n(s)),u.resourceIds=T?[T.id]:[],n(i).set("pointer",{...u});return}}h()}function d(){f()}function c(y){v(y)&&(o=y.clientX,l=y.clientY,f())}function g(){u={id:"{pointer}",title:"",display:"pointer",extendedProps:{},backgroundColor:"transparent",classNames:[],styles:[]}}function h(){u=void 0,n(i).delete("pointer")}function v(y){return y.isPrimary&&y.pointerType==="mouse"}var p={handleScroll:d};return ht("pointermove",St,c),ht("scroll",St,d),ye(p)}var Ju=Q("<div></div>"),Qu=Q("<div></div>"),ju=Q("<!> <!> <!>",1);function $u(e,t){pe(t,!0);let r=ke(t,"forceDate",3,void 0),i=ke(t,"forceMargin",3,void 0),s=a(()=>te("state")),o=a(()=>n(s).interaction.action),l=a(()=>n(s).options.editable),u=a(()=>n(s).options.eventDurationEditable),f=a(()=>n(s).options.eventResizableFromStart),d=a(()=>n(s).options.theme),c=a(()=>te("view-state")),g=a(()=>n(c).snap),h=a(()=>t.chunk.event),v=a(()=>t.chunk.event.display),p=a(()=>!mt(n(v))&&!_r(n(v))&&Bu(n(h),n(u),n(l)));function y(w){return C=>n(o).resize(n(h),C,w,t.axis,r(),i(),t.chunk.zeroDuration,n(g))}var m=ju(),_=ne(m);{var T=w=>{var C=Ju(),F=a(()=>y(!0));se(()=>N(C,1,`${n(d).resizer??""} ${n(d).start??""}`)),ze("pointerdown",C,function(...V){n(F)?.apply(this,V)}),L(w,C)};be(_,w=>{n(p)&&n(f)&&w(T)})}var x=re(_,2);qt(x,()=>t.children);var E=re(x,2);{var k=w=>{var C=Qu(),F=a(()=>y(!1));se(()=>N(C,1,n(d).resizer)),ze("pointerdown",C,function(...V){n(F)?.apply(this,V)}),L(w,C)};be(E,w=>{n(p)&&w(k)})}L(e,m),ye()}rn(["pointerdown"]);var ef=Q("<!> <!>",1);function tf(e,t){pe(t,!0);let r=te("state");new Xu(r);let i=a(()=>r.interaction),s=a(()=>r.options.pointer);n(i).resizer=$u;var o=ef(),l=ne(o);lt(Ku(l,{}),d=>n(i).action=d,()=>n(i)?.action);var u=re(l,2);{var f=d=>{lt(Zu(d,{}),c=>n(i).pointer=c,()=>n(i)?.pointer)};be(u,d=>{n(s)&&d(f)})}L(e,o),ye()}const nf={createOptions(e){j(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:""}),j(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(tf)}};let rf=class{#e;get intlListDay(){return n(this.#e)}set intlListDay(t){b(this.#e,t)}#n;get intlListDaySide(){return n(this.#n)}set intlListDaySide(t){b(this.#n,t)}constructor(t){this.#e=a(kn(t,"listDayFormat")),this.#n=a(kn(t,"listDaySideFormat"))}};var sf=Q("<div></div> <!>",1);function of(e,t){pe(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).interaction),s=a(()=>n(r).options.theme),o=a(()=>l=>(delete l["background-color"],delete l.color,l));{const l=(f,d=Wt,c=Wt,g=Wt)=>{var h=sf(),v=ne(h);let p;var y=re(v,2);qt(y,d),se(()=>{N(v,1,n(s).eventTag),p=Lt(v,"",p,{"background-color":c()})}),L(f,h)};let u=a(()=>n(i).action?.noAction);_o(e,{get chunk(){return t.chunk},get styles(){return n(o)},get onpointerdown(){return n(u)},body:l,$$slots:{body:!0}})}ye()}var af=Q("<h4><time></time> <time></time></h4> <!>",1);function lf(e,t){pe(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).filteredEvents),s=a(()=>n(r).options.highlightedDates),o=a(()=>n(r).options.theme),l=a(()=>n(r).options.validRange),u=a(()=>te("view-state")),f=a(()=>n(u).intlListDay),d=a(()=>n(u).intlListDaySide),c=a(()=>n(s).some(_=>tt(_,t.date))),g=a(()=>An(t.date,n(l))),h=a(()=>gt(t.date,10)),v=a(()=>{let _=[];if(!n(g)){let T=t.date,x=Ct(G(t.date));for(let E of n(i))if(!mt(E.display)&&Pn(E,T,x)){let k=$n(E,T,x);_.push(k)}}return _});var p=he(),y=ne(p);{var m=_=>{kr(_,{get date(){return t.date},allDay:!0,role:"listitem",get disabled(){return n(g)},get highlight(){return n(c)},children:(T,x)=>{var E=af(),k=ne(E),w=ue(k);Le(w,()=>Ke(n(f).format(t.date)));var C=re(w,2);Le(C,()=>Ke(n(d).format(t.date)));var F=re(k,2);oe(F,17,()=>n(v),V=>V.event,(V,P)=>{of(V,{get chunk(){return n(P)}})}),se(()=>{N(k,1,n(o).dayHead),xe(w,"datetime",n(h)),N(C,1,n(o).daySide),xe(C,"datetime",n(h))}),L(T,E)},$$slots:{default:!0}})};be(y,_=>{n(v).length&&_(m)})}L(e,p),ye()}var uf=Q("<div></div>"),ff=Q("<section><!></section>");function df(e,t){pe(t,!0);let r=te("state"),i=new rf(r);Un("view-state",i);let s=a(()=>r.filteredEvents),o=a(()=>r.view),l=a(()=>r.viewDates),u=a(()=>r.options.noEventsClick),f=a(()=>r.options.noEventsContent),d=a(()=>r.options.theme),c=a(()=>{let _=!0;if(!kt(n(l))){let T=n(l)[0],x=Ct(G(n(l).at(-1)));for(let E of n(s))if(!mt(E.display)&&E.start<x&&E.end>T){_=!1;break}}return _}),g=a(()=>_e(n(f))?n(f)():n(f));function h(_){_e(n(u))&&n(u)({jsEvent:_,view:Ze(n(o))})}var v=ff(),p=ue(v);{var y=_=>{var T=uf();Le(T,()=>Ke(n(g))),se(()=>N(T,1,n(d).noEvents)),ze("click",T,h),L(_,T)},m=_=>{var T=he(),x=ne(T);oe(x,17,()=>n(l),Ce,(E,k)=>{lf(E,{get date(){return n(k)}})}),L(_,T)};be(p,_=>{n(c)?_(y):_(m,!1)})}lt(v,_=>r.mainEl=_,()=>r?.mainEl),se(()=>N(v,1,n(d).main)),L(e,v),ye()}rn(["click"]);const cf={createOptions(e){j(e,{listDayFormat:{weekday:"long"},listDaySideFormat:{year:"numeric",month:"long",day:"numeric"},noEventsClick:void 0,noEventsContent:"No events",view:"listWeek"}),j(e.buttonText,{listDay:"list",listWeek:"list",listMonth:"list",listYear:"list"}),j(e.theme,{daySide:"ec-day-side",eventTag:"ec-event-tag",noEvents:"ec-no-events"}),j(e.views,{listDay:{buttonText:er,component:Tr,duration:{days:1},theme:ut("ec-list ec-day-view")},listWeek:{buttonText:tr,component:Tr,duration:{weeks:1},theme:ut("ec-list ec-week-view")},listMonth:{buttonText:gi,component:Tr,duration:{months:1},theme:ut("ec-list ec-month-view")},listYear:{buttonText:Ul,component:Tr,duration:{years:1},theme:ut("ec-list ec-year-view")}})}};function Tr(e){return e.features=["list"],df}function bi(e,t,r=!0){let i=[];for(let{gridColumn:s,gridRow:o,resource:l,start:u,end:f,disabled:d}of t)if(!d&&Pn(e,u,f,l)){let c=$n(e,u,f);j(c,{gridColumn:s,gridRow:o,resource:l,top:(c.start-u)/1e3,height:(c.end-c.start)/1e3,maxHeight:(f-c.start)/1e3}),r&&vi(c),i.push(c)}return i}function hf(e){let t={};for(let r of e){let{gridColumn:i}=r,s=t[i],o=0;if(s&&r.start<s.end){for(;o<s.columns.length&&!(s.columns[o].at(-1).end<=r.start);++o);r.end>s.end&&(s.end=r.end)}else s={columns:[],end:r.end};s.columns.length<o+1&&s.columns.push([]),s.columns[o].push(r),t[i]=s,r.group=s,r.groupColumn=o}}function vf(e){let t="all-day",r;return e?(r=_e(e)?e({text:t}):e,typeof r=="string"&&(r={html:r})):r={html:t},r}function ki(e){e.extensions.activeRange=(t,r)=>{let{options:{slotMaxTime:i}}=e;if(i.days||i.seconds>mr){Ee(In(r),i);let s=In(G(r));s<t&&(t=s)}return{start:t,end:r}}}function Ci(e){"scrollTime"in e||(j(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}),j(e.theme,{nowIndicator:"ec-now-indicator",sidebar:"ec-sidebar",slot:"ec-slot"}))}function ko(e){"allDaySlot"in e||(j(e,{allDayContent:void 0,allDaySlot:!0,slotEventOverlap:!0}),j(e.theme,{allDay:"ec-all-day"}))}function Di(e){"scrollTime"in e||j(e,{scrollTime:Oe,slotDuration:Oe,slotLabelInterval:t=>t!==void 0?Oe(t):void 0,slotMaxTime:Oe,slotMinTime:Oe,snapDuration:t=>t!==void 0?Oe(t):void 0})}function Co(e){"resourceLabelContent"in e||(e.filterResourcesWithEvents=!1,e.resourceLabelContent=void 0,e.resourceLabelDidMount=void 0)}function gf(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{slotTimeLimits:o}=t,l=[];return J(()=>{let u=1;for(let f of r)l.push({gridColumn:u,gridRow:1,resource:void 0,start:Ee(G(f),o.min),end:Ee(G(f),o.max),dayStart:f,dayEnd:Ct(G(f)),disabled:An(f,s),highlight:i.some(d=>tt(d,f))}),++u}),[l]}}function mf(e,t){return()=>{let{filteredEvents:r}=e,{grid:i}=t,s=[],o=[],l=[],u=[];return J(()=>{for(let f of r)for(let d of i)mt(f.display)?(o=o.concat(bi(f,d)),f.allDay&&(u=u.concat(Mn(f,d)))):f.allDay?l=l.concat(Mn(f,d)):s=s.concat(bi(f,d));hf(s),no(l)}),{chunks:s,bgChunks:o,allDayChunks:l,allDayBgChunks:u}}}function pf(e,t){return()=>{let{iEvents:r}=e,{grid:i}=t,s=[],o=[];for(let[,l]of r)l&&J(()=>{for(let u of i)l.allDay?o=o.concat(Mn(l,u,!1)):s=s.concat(bi(l,u,!1))});return{iChunks:s,allDayIChunks:o}}}function yf(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l;return J(()=>{l=co(s,o,i,r,t)}),l}}function _f(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:r}}=e,i;return J(()=>{i=r===void 0?ve(t)<3600?2:1:bl(ve(r)/ve(t))||1}),i}}function wf(e,t){return()=>{let{options:{slotDuration:r}}=e,{intlSlotLabel:i,slotLabelPeriodicity:s,slotTimeLimits:o}=t,l;return J(()=>{l=fo(Pt(Ht()),r,s,o,i)}),l}}function bf(e){return()=>{let{options:{slotDuration:t,snapDuration:r}}=e;return r??=t,{duration:r,ratio:ve(r)/ve(t)}}}function Ei(){return class{#e;get intlSlotLabel(){return n(this.#e)}set intlSlotLabel(e){b(this.#e,e)}#n;get slotLabelPeriodicity(){return n(this.#n)}set slotLabelPeriodicity(e){b(this.#n,e)}#t;get sidebarWidth(){return n(this.#t)}set sidebarWidth(e){b(this.#t,e,!0)}#i;get snap(){return n(this.#i)}set snap(e){b(this.#i,e)}constructor(e){this.#e=a(kn(e,"slotLabelFormat")),this.#n=a(_f(e)),this.#t=B(0),this.#i=a(bf(e))}}}function Do(e){return class extends e{#e;get slotTimeLimits(){return n(this.#e)}set slotTimeLimits(t){b(this.#e,t)}#n;get slots(){return n(this.#n)}set slots(t){b(this.#n,t)}#t;get chunks(){return n(this.#t)}set chunks(t){b(this.#t,t)}#i;get bgChunks(){return n(this.#i)}set bgChunks(t){b(this.#i,t)}#r;get allDayChunks(){return n(this.#r)}set allDayChunks(t){b(this.#r,t)}#s;get allDayBgChunks(){return n(this.#s)}set allDayBgChunks(t){b(this.#s,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get allDayIChunks(){return n(this.#a)}set allDayIChunks(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(yf(t)),this.#n=a(wf(t,this));let r=a(mf(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks),o=a(()=>n(r).allDayChunks),l=a(()=>n(r).allDayBgChunks);this.#t=a(()=>n(i)),this.#i=a(()=>n(s)),this.#r=a(()=>n(o)),this.#s=a(()=>n(l));let u=a(pf(t,this)),f=a(()=>n(u).iChunks),d=a(()=>n(u).allDayIChunks);this.#o=a(()=>n(f)),this.#a=a(()=>n(d))}}}let kf=class extends Do(Ei()){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(gf(t,this))}};function Cf(e){return()=>{let{activeRange:t,filteredEvents:r,resources:i,options:{filterResourcesWithEvents:s},extensions:{viewResources:o}}=e,l=o?o(i):i;return J(()=>{s&&(l=i.filter(u=>r.some(f=>!mt(f.display)&&Pn(f,t.start,t.end,u)))),l.length||(l=mi([{}]))}),l}}function Df(e,t){return()=>{let{viewDates:r,options:{datesAboveResources:i,highlightedDates:s,validRange:o}}=e,{slotTimeLimits:l,viewResources:u}=t,f=[];return J(()=>{let d=1,c=i?[r,u]:[u,r];for(let g of c[0]){let h=[];for(let v of c[1]){let p=i?g:v,y=i?v:g;h.push({gridColumn:d,gridRow:1,resource:y,start:Ee(G(p),l.min),end:Ee(G(p),l.max),dayStart:p,dayEnd:Ct(G(p)),disabled:An(p,o),highlight:s.some(m=>tt(m,p))}),++d}f.push(h)}}),f}}function Eo(e){return class extends e{#e;get viewResources(){return n(this.#e)}set viewResources(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Cf(t))}}}let Ef=class extends Eo(Do(Ei())){#e;get grid(){return n(this.#e)}set grid(t){b(this.#e,t)}constructor(t){super(t),this.#e=a(Df(t,this))}};var Tf=Q("<span></span>");function Ti(e,t){pe(t,!0);let r=ke(t,"date",3,void 0),i=ke(t,"setLabel",3,void 0),s=a(()=>te("state")),o=a(()=>n(s).intlDayHeaderAL),l=a(()=>n(s).options.resourceLabelContent),u=a(()=>n(s).options.resourceLabelDidMount),f=B(void 0),d=a(()=>n(l)?_e(n(l))?n(l)({resource:t.resource,date:r()?We(r()):void 0}):n(l):t.resource.title),c=B(void 0);Xe(()=>{n(d),J(()=>{r()?b(c,n(o).format(r())+", "+n(f).innerText):i()&&(b(c,void 0),i()(n(f).innerText))})}),Jn(()=>{_e(n(u))&&n(u)({resource:t.resource,date:r()?We(r()):void 0,el:n(f)})});var g=Tf();lt(g,h=>b(f,h),()=>n(f)),Le(g,()=>Ke(n(d))),se(()=>xe(g,"aria-label",n(c))),L(e,g),ye()}function To(e,t){pe(t,!0);let r=ke(t,"allDay",3,!1),i=a(()=>te("state")),s=a(()=>n(i).options.slotHeight),o=a(()=>te("view-state")),l=a(()=>n(o).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=B(void 0);function v(p,y){if(r())return n(u);{let m=on(n(h)),_=m.height/n(h).offsetHeight;return Ee(G(n(f)),n(l).duration,oi((y-m.top)/(n(s)*n(l).ratio*_)))}}kr(e,{get date(){return n(u)},get allDay(){return r()},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(p){b(h,p,!0)}}),ye()}function xi(e,t){pe(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).options.slotEventOverlap),s=a(()=>n(r).options.slotDuration),o=a(()=>n(r).options.slotHeight),l=a(()=>u=>{let f=ve(n(s)),d=t.chunk.top/f*n(o),c=t.chunk.height/f*n(o)||n(o),g=t.chunk.maxHeight/f*n(o);u["grid-column"]=t.chunk.gridColumn,u["inset-block-start"]=`${d}px`,u["min-block-size"]=`${c}px`,u["block-size"]=`${c}px`,u["max-block-size"]=`${g}px`;let h="100% - var(--ec-event-col-gap)";if(t.chunk.group){let v=t.chunk.group.columns.length;u["z-index"]=`${t.chunk.groupColumn+1}`,u["inset-inline-start"]=`calc((${h}) / ${v} * ${t.chunk.groupColumn})`,u["inline-size"]=`calc((${h}) / ${v} * ${n(i)?.5*(1+v-t.chunk.groupColumn):1})`}return u});Dr(e,{get chunk(){return t.chunk},get styles(){return n(l)},axis:"y"}),ye()}function Si(e,t){pe(t,!0);let r=B(void 0),i=B(0),s=a(()=>t.chunk.event),o=a(()=>f=>(f["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(n(i)||n(s)._margin)&&(f["margin-block-start"]=`${n(s)._margin??n(i)}px`),f));function l(){b(i,ro(t.chunk,bn(n(r))),!0)}var u={reposition:l};return Dr(e,{get chunk(){return t.chunk},get styles(){return n(o)},axis:"x",get forceMargin(){return n(i)},get el(){return n(r)},set el(f){b(r,f,!0)}}),ye(u)}var xf=Q("<div></div>");function xr(e,t){pe(t,!0);let r=ke(t,"span",3,1),i=a(()=>te("state")),s=a(()=>n(i).mainEl),o=a(()=>n(i).now),l=a(()=>n(i).today),u=a(()=>n(i).options.slotDuration),f=a(()=>n(i).options.slotHeight),d=a(()=>n(i).options.theme),c=a(()=>te("view-state")),g=a(()=>n(c).sidebarWidth),h=a(()=>{for(let w of t.days)if(tt(w.dayStart,n(l)))return w;return{}}),v=a(()=>n(h).gridColumn),p=a(()=>n(h).start),y=a(()=>n(h).end),m=a(()=>{if(n(o)<n(p)||n(o)>n(y))return null;let w=ve(n(u));return(n(o)-n(p))/1e3/w*n(f)}),_=a(()=>({root:n(s),rootMargin:wn()?`0px -${n(g)+5.5}px 0px 0px`:`0px 0px 0px -${n(g)+5.5}px`,threshold:0}));function T(w,C){w.classList.toggle(n(d).hidden,!C.isIntersecting)}var x=he(),E=ne(x);{var k=w=>{var C=xf();let F;Le(C,()=>Gs(T,n(_))),se(()=>{N(C,1,n(d).nowIndicator),F=Lt(C,"",F,{"grid-column":`${n(v)+1} / span ${r()??""}`,"inset-block-start":`${n(m)??""}px`})}),L(w,C)};be(E,w=>{n(v)&&n(m)!==null&&w(k)})}L(e,x),ye()}var Sf=Q('<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>'),Rf=Q("<div><time></time></div>"),If=Q('<section><header><aside></aside> <div role="row"><!></div> <!></header> <div role="rowgroup"><aside aria-hidden="true"></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function xo(e,t){pe(t,!0);let r=ke(t,"viewState",7),i=te("state");r()||r(new kf(i)),Un("view-state",r());let s=a(()=>i.mainEl),o=a(()=>i.viewDates),l=a(()=>i.options.allDayContent),u=a(()=>i.options.allDaySlot),f=a(()=>i.options.columnWidth),d=a(()=>i.options.nowIndicator),c=a(()=>i.options.scrollTime),g=a(()=>i.options.slotHeight),h=a(()=>i.options.slotDuration),v=a(()=>i.options.theme),p=a(()=>r().allDayChunks),y=a(()=>r().allDayBgChunks),m=a(()=>r().allDayIChunks),_=a(()=>r().bgChunks),T=a(()=>r().chunks),x=a(()=>r().iChunks),E=a(()=>r().grid),k=a(()=>r().sidebarWidth),w=a(()=>r().slots),C=a(()=>r().slotLabelPeriodicity),F=a(()=>r().slotTimeLimits),V=B(0),P=a(()=>vf(n(l)));Xe(()=>{n(c),kt(n(o))||yn().then(X)});function X(){n(s).scrollTop=((ve(n(c))-ve(n(F).min))/ve(n(h))-.5)*n(g)}let ae=[];function de(){hi(ae,n(p))}Xe(de);var ee=he(),K=ne(ee);{var le=A=>{var S=If();let M;var U=ue(S),ie=ue(U),D=re(ie,2),z=ue(D);{var I=H=>{var Y=he(),Te=ne(Y);qt(Te,()=>t.header),L(H,Y)},ge=H=>{var Y=he(),Te=ne(Y);oe(Te,17,()=>n(E)[0],Ce,(q,Pe,Se)=>{let je=()=>n(Pe).dayStart,nt=()=>n(Pe).disabled,me=()=>n(Pe).highlight;nr(q,{get date(){return je()},colIndex:1+Se,get disabled(){return nt()},get highlight(){return me()},children:(Ve,rt)=>{Cr(Ve,{get date(){return je()}})},$$slots:{default:!0}})}),L(H,Y)};be(z,H=>{t.header?H(I):H(ge,!1)})}var Ne=re(D,2);{var Fe=H=>{var Y=Sf(),Te=ue(Y);Le(Te,()=>Ke(n(P)));var q=re(Te,2);oe(q,21,()=>n(E),Ce,(me,Ve,rt)=>{var Be=he(),ln=ne(Be);oe(ln,17,()=>n(Ve),Ce,(On,Li,Pi)=>{{let Mi=a(()=>rt+1===De(n(E))&&Pi+1===De(n(Ve)));To(On,{get day(){return n(Li)},allDay:!0,get noIeb(){return n(Mi)}})}}),L(me,Be)});var Pe=re(q,2),Se=ue(Pe);oe(Se,19,()=>n(p),me=>me.id,(me,Ve,rt)=>{lt(Si(me,{get chunk(){return n(Ve)}}),(Be,ln)=>ae[ln]=Be,Be=>ae?.[Be],()=>[n(rt)])});var je=re(Se,2);oe(je,17,()=>n(y),me=>me.id,(me,Ve)=>{Si(me,{get chunk(){return n(Ve)}})});var nt=re(je,2);oe(nt,17,()=>n(m),Ce,(me,Ve)=>{Si(me,{get chunk(){return n(Ve)}})}),se(()=>{N(Y,1,n(v).allDay),N(Te,1,n(v).sidebar),N(q,1,n(v).grid),N(Pe,1,n(v).events)}),L(H,Y)};be(Ne,H=>{n(u)&&H(Fe)})}var zt=re(U,2),Qe=ue(zt);oe(Qe,21,()=>n(w),Ce,(H,Y,Te)=>{var q=Rf();let Pe;var Se=ue(q);Le(Se,()=>Ke(n(Y)[1])),se(()=>{N(q,1,Nt([n(v).slot,!Te&&n(v).hidden])),Pe=Lt(q,"",Pe,{"--ec-slot-label-periodicity":n(Y)[2]}),xe(Se,"datetime",n(Y)[0])}),L(H,q)});var pt=re(Qe,2);oe(pt,21,()=>n(E),Ce,(H,Y,Te)=>{var q=he(),Pe=ne(q);oe(Pe,17,()=>n(Y),Ce,(Se,je,nt)=>{{let me=a(()=>Te+1===De(n(E))&&nt+1===De(n(Y)));To(Se,{get day(){return n(je)},get noIeb(){return n(me)},noBeb:!0})}}),L(H,q)});var Kt=re(pt,2),an=ue(Kt);oe(an,17,()=>n(T),H=>H.id,(H,Y)=>{xi(H,{get chunk(){return n(Y)}})});var Ae=re(an,2);oe(Ae,17,()=>n(_),H=>H.id,(H,Y)=>{xi(H,{get chunk(){return n(Y)}})});var W=re(Ae,2);oe(W,17,()=>n(x),Ce,(H,Y)=>{xi(H,{get chunk(){return n(Y)}})});var Ie=re(zt,2);{var Ue=H=>{var Y=he(),Te=ne(Y);{var q=Se=>{var je=he(),nt=ne(je);qt(nt,()=>t.nowIndicator),L(Se,je)},Pe=Se=>{xr(Se,{get days(){return n(E)[0]}})};be(Te,Se=>{t.nowIndicator?Se(q):Se(Pe,!1)})}L(H,Y)};be(Ie,H=>{n(d)&&H(Ue)})}lt(S,H=>i.mainEl=H,()=>i?.mainEl),Le(S,()=>ii(de)),se(H=>{N(S,1,n(v).main),M=Lt(S,"",M,H),N(U,1,n(v).header),N(ie,1,n(v).sidebar),N(D,1,n(v).grid),N(zt,1,n(v).body),N(Qe,1,n(v).sidebar),N(pt,1,n(v).grid),N(Kt,1,n(v).events)},[()=>({"--ec-grid-cols":De(n(E))*De(n(E)[0]),"--ec-col-group-span":De(n(E)[0]),"--ec-col-width":n(f)??"minmax(0, 1fr)","--ec-slot-label-periodicity":n(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-header-height":`${n(V)??""}px`,"--ec-sidebar-width":`${n(k)??""}px`})]),hr(ie,"offsetWidth",H=>r().sidebarWidth=H),hr(U,"offsetHeight",H=>b(V,H)),L(A,S)},Z=a(()=>!kt(n(E))&&!kt(n(E)[0]));be(K,A=>{n(Z)&&A(le)})}L(e,ee),ye()}var Lf=Q("<!> <!>",1);function Pf(e,t){pe(t,!0);let r=te("state"),i=new Ef(r),s=a(()=>r.today),o=a(()=>r.mainEl),l=a(()=>r.viewDates),u=a(()=>r.options.scrollTime),f=a(()=>r.options.datesAboveResources),d=a(()=>r.options.theme),c=a(()=>i.grid),g=a(()=>i.sidebarWidth),h=qe([]);Xe(()=>{n(f)&&(n(l),n(u),yn().then(v))});function v(){if(n(s)>=n(l)[0]&&n(s)<=n(l).at(-1))for(let p of n(c)){let y=p[0];if(tt(y.dayStart,n(s))){n(o).scrollLeft=(n(o).scrollWidth-n(g))/(De(n(c))*De(p))*(y.gridColumn-1)*(wn()?-1:1);break}}}xo(e,{get viewState(){return i},header:m=>{var _=Lf(),T=ne(_);oe(T,17,()=>n(c),Ce,(w,C,F)=>{const V=a(()=>{const{dayStart:P,resource:X,disabled:ae,highlight:de}=n(C)[0];return{date:P,resource:X,disabled:ae,highlight:de}});{let P=a(()=>De(n(c)[0])>1?n(d).colGroup:void 0),X=a(()=>De(n(C))),ae=a(()=>1+F*De(n(C))),de=a(()=>n(f)&&n(V).disabled),ee=a(()=>n(f)&&n(V).highlight);nr(w,{get date(){return n(V).date},get className(){return n(P)},get weekday(){return n(f)},get colSpan(){return n(X)},get colIndex(){return n(ae)},get disabled(){return n(de)},get highlight(){return n(ee)},children:(K,le)=>{var Z=he(),A=ne(Z);{var S=U=>{Cr(U,{get date(){return n(V).date}})},M=U=>{Ti(U,{get resource(){return n(V).resource},setLabel:ie=>h[F]=ie+", "})};be(A,U=>{n(f)?U(S):U(M,!1)})}L(K,Z)},$$slots:{default:!0}})}});var x=re(T,2);{var E=w=>{var C=he(),F=ne(C);oe(F,17,()=>n(c),Ce,(V,P,X)=>{var ae=he(),de=ne(ae);oe(de,17,()=>n(P),Ce,(ee,K,le)=>{const Z=a(()=>{const{dayStart:A,resource:S,disabled:M,highlight:U}=n(K);return{date:A,resource:S,disabled:M,highlight:U}});{let A=a(()=>1+le+X*De(n(P)));nr(ee,{get date(){return n(Z).date},get colIndex(){return n(A)},get disabled(){return n(Z).disabled},get highlight(){return n(Z).highlight},children:(S,M)=>{var U=he(),ie=ne(U);{var D=I=>{Ti(I,{get resource(){return n(Z).resource},get date(){return n(Z).date}})},z=I=>{Cr(I,{get date(){return n(Z).date},get alPrefix(){return h[X]}})};be(ie,I=>{n(f)?I(D):I(z,!1)})}L(S,U)},$$slots:{default:!0}})}}),L(V,ae)}),L(w,C)},k=a(()=>De(n(c)[0])>1);be(x,w=>{n(k)&&w(E)})}L(m,_)},nowIndicator:m=>{var _=he(),T=ne(_);{var x=k=>{{let w=a(()=>n(c).flat()),C=a(()=>De(n(c)[0]));xr(k,{get days(){return n(w)},get span(){return n(C)}})}},E=k=>{var w=he(),C=ne(w);{var F=X=>{var ae=he(),de=ne(ae);oe(de,17,()=>n(c),Ce,(ee,K)=>{xr(ee,{get days(){return n(K)}})}),L(X,ae)},V=a(()=>De(n(c)[0])>1),P=X=>{{let ae=a(()=>n(c).flat()),de=a(()=>De(n(c)));xr(X,{get days(){return n(ae)},get span(){return n(de)}})}};be(C,X=>{n(V)?X(F):X(P,!1)})}L(k,w)};be(T,k=>{n(f)?k(x):k(E,!1)})}L(m,_)},$$slots:{header:!0,nowIndicator:!0}}),ye()}const Mf={createOptions(e){ko(e),Ci(e),Co(e),j(e,{datesAboveResources:!1,view:"resourceTimeGridWeek"}),j(e.buttonText,{resourceTimeGridDay:"resources",resourceTimeGridWeek:"resources"}),j(e.theme,{colGroup:"ec-col-group"}),j(e.views,{resourceTimeGridDay:{buttonText:er,component:So,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ut("ec-resource ec-time-grid ec-day-view")},resourceTimeGridWeek:{buttonText:tr,component:So,duration:{weeks:1},theme:ut("ec-resource ec-time-grid ec-week-view")}})},createParsers(e){Di(e)}};function So(e){return ki(e),Pf}function Ri(e,t,r,i=!0){let s=[],o,l,u,f,d,c,g=0;for(let{gridColumn:h,gridRow:v,resource:p,dayStart:y,dayEnd:m,start:_,end:T,disabled:x}of t)x||(r?Pn(e,y,m,p)&&(s.length||(o=y,u=h,f=v,d=p),s.push(y),l=T):Pn(e,_,T,p)&&(s.length||(o=_,u=h,f=v,d=p,c=vt(e.start-_,0)/1e3),s.push(y),l=T,g+=(Ft(T,e.end)-vt(_,e.start))/1e3));if(s.length){let h=$n(e,o,l);return j(h,{gridColumn:u,gridRow:f,resource:d,dates:s,left:c,width:g}),i&&vi(h),[h]}return[]}function Af(e){let t={};for(let r of e){let{gridColumn:i,gridRow:s}=r;for(let l=0;l<r.dates.length;++l){let u=`${s}_${i+l}`;t[u]?t[u].push(r):t[u]=[r]}let o=`${s}_${i}`;r.day=t[o]}}function Of(e,t,r){let i=1,s=i+t,o=e.day;o.sort((l,u)=>(l.top??Number.POSITIVE_INFINITY)-(u.top??Number.POSITIVE_INFINITY));for(let l of o)if(!(l===e||!("top"in l))&&(r||e.start<l.end&&e.end>l.start)&&i<l.bottom&&s>l.top){let u=l.bottom-i+1;i+=u,s+=u}return j(e,{top:i,bottom:s}),i}function Nf(e,t){return e[t.getTime()]??{min:Oe(0),max:Oe("24:00:00")}}function Ff(e,t){return()=>{let{viewDates:r,options:{highlightedDates:i,validRange:s}}=e,{dayTimeLimits:o,viewResources:l}=t,u=[];return J(()=>{let f=1;for(let d of l){let c=[],g=1;for(let h of r){let v=o[h.getTime()];c.push({gridColumn:g,gridRow:f,resource:d,start:Ee(G(h),v.min),end:Ee(G(h),v.max),dayStart:h,dayEnd:Ct(G(h)),disabled:An(h,s),highlight:i.some(p=>tt(p,h))}),++g}u.push(c),++f}}),u}}function Hf(e,t){return()=>{let{filteredEvents:r}=e,{grid:i,monthView:s}=t,o=[],l=[];return J(()=>{for(let u of r)for(let f of i)mt(u.display)?(!s||u.allDay)&&(l=l.concat(Ri(u,f,s))):o=o.concat(Ri(u,f,s));Af(o)}),{chunks:o,bgChunks:l}}}function zf(e,t){return()=>{let{iEvents:r}=e,{grid:i,monthView:s}=t,o=[];for(let[,l]of r)l&&J(()=>{for(let u of i)o=o.concat(Ri(l,u,s,!1))});return o}}function Wf(e){return()=>{let{filteredEvents:t,viewDates:r,options:{flexibleSlotTimeLimits:i,slotMinTime:s,slotMaxTime:o}}=e,l={};return J(()=>{for(let u of r)l[u.getTime()]=co(s,o,i,[u],t)}),l}}function Uf(e,t){return()=>{let{viewDates:r,options:{slotDuration:i}}=e,{dayTimeLimits:s,intlSlotLabel:o,slotLabelPeriodicity:l}=t,u={};return J(()=>{for(let f of r){let d=f.getTime();u[d]=d in s?fo(f,i,l,s[d],o):[]}}),u}}function Vf(e){return()=>{let{resources:t}=e,r;return J(()=>{r=t.some(i=>Xt(i).children.length)}),r}}function Bf(e){return()=>{let{options:{slotDuration:t}}=e,r;return J(()=>{r=!ve(t)}),r}}class Gf extends Eo(Ei()){#e;get dayTimeLimits(){return n(this.#e)}set dayTimeLimits(t){b(this.#e,t)}#n;get daySlots(){return n(this.#n)}set daySlots(t){b(this.#n,t)}#t;get grid(){return n(this.#t)}set grid(t){b(this.#t,t)}#i;get monthView(){return n(this.#i)}set monthView(t){b(this.#i,t)}#r;get chunks(){return n(this.#r)}set chunks(t){b(this.#r,t)}#s;get bgChunks(){return n(this.#s)}set bgChunks(t){b(this.#s,t)}#o;get iChunks(){return n(this.#o)}set iChunks(t){b(this.#o,t)}#a;get nestedResources(){return n(this.#a)}set nestedResources(t){b(this.#a,t)}constructor(t){super(t),this.#e=a(Wf(t)),this.#n=a(Uf(t,this)),this.#t=a(Ff(t,this)),this.#i=a(Bf(t));let r=a(Hf(t,this)),i=a(()=>n(r).chunks),s=a(()=>n(r).bgChunks);this.#r=a(()=>n(i)),this.#s=a(()=>n(s)),this.#o=a(zf(t,this)),this.#a=a(Vf(t))}}function Yf(e,t){pe(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).options.slotWidth),s=a(()=>te("view-state")),o=a(()=>n(s).monthView),l=a(()=>n(s).snap),u=a(()=>t.day.dayStart),f=a(()=>t.day.start),d=a(()=>t.day.resource),c=a(()=>t.day.disabled),g=a(()=>t.day.highlight),h=B(void 0);function v(p,y){if(n(o))return n(u);{let m=on(n(h)),_=m.width/n(h).offsetWidth;return Ee(G(n(f)),n(l).duration,oi((wn()?m.right-p:p-m.left)/(n(i)*n(l).ratio*_)))}}kr(e,{get allDay(){return n(o)},get date(){return n(u)},get resource(){return n(d)},dateFromPoint:v,get disabled(){return n(c)},get highlight(){return n(g)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return n(h)},set el(p){b(h,p,!0)}}),ye()}function Ii(e,t){pe(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).options.slotDuration),s=a(()=>n(r).options.slotWidth),o=a(()=>te("view-state")),l=a(()=>n(o).monthView),u=B(void 0),f=B(1),d=a(()=>t.chunk.event),c=a(()=>v=>{if(v["grid-column"]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,v["grid-row"]=t.chunk.gridRow,!n(l)){let y=t.chunk.left/ve(n(i))*n(s);v["inset-inline-start"]=`${y}px`,v["inline-size"]=`${t.chunk.width/ve(n(i))*n(s)}px`}let p=n(f);if(n(d)._margin){let[y,m]=n(d)._margin;t.chunk.gridRow===m&&(p=y)}return v["margin-block-start"]=`${p}px`,v});function g(){b(f,Of(t.chunk,bn(n(u)),n(l)),!0)}var h={reposition:g};{let v=a(()=>[n(f),t.chunk.gridRow]);Dr(e,{get chunk(){return t.chunk},get styles(){return n(c)},axis:"x",get forceMargin(){return n(v)},get el(){return n(u)},set el(p){b(u,p,!0)}})}return ye(h)}var qf=Q("<span></span>"),Xf=Q("<button></button>"),Kf=Q("<!> <span><!></span>",1);function Zf(e,t){pe(t,!0);let r=ke(t,"resource",7),i=a(()=>te("state")),s=a(()=>n(i).resources),o=a(()=>n(i).view),l=a(()=>n(i).options.buttonText),u=a(()=>n(i).options.icons),f=a(()=>n(i).options.resourceExpand),d=a(()=>n(i).options.theme),c=B({}),g=a(()=>r().expanded),h=a(()=>n(l)[n(g)?"collapse":"expand"]);gn(()=>{b(c,Xt(r()))});function v(E){r().expanded=b(g,!n(g)),p(n(c).children),n(s).length=n(s).length,_e(n(f))&&n(f)({resource:r(),jsEvent:E,view:Ze(n(o))})}function p(E){for(let k of E){let w=Xt(k);w.hidden=!n(g),k.expanded&&p(w.children)}}var y=Kf(),m=ne(y);oe(m,17,()=>Array(n(c).level),Ce,(E,k)=>{var w=qf();se(()=>N(w,1,n(d).expander)),L(E,w)});var _=re(m,2),T=ue(_);{var x=E=>{var k=Xf();Le(k,()=>Ke(n(u)[n(g)?"collapse":"expand"])),se(()=>{N(k,1,n(d).button),xe(k,"aria-label",n(h)),xe(k,"title",n(h))}),ze("click",k,v),L(E,k)};be(T,E=>{n(c).children?.length&&E(x)})}se(()=>N(_,1,n(d).expander)),L(e,y),ye()}rn(["click"]);var Jf=Q("<div></div>");function Qf(e,t){pe(t,!0);let r=a(()=>te("state")),i=a(()=>n(r).mainEl),s=a(()=>n(r).now),o=a(()=>n(r).today),l=a(()=>n(r).options.slotDuration),u=a(()=>n(r).options.slotWidth),f=a(()=>n(r).options.theme),d=a(()=>te("view-state")),c=a(()=>n(d).grid),g=a(()=>n(d).sidebarWidth),h=a(()=>{for(let w of n(c)[0])if(tt(w.dayStart,n(o)))return w;return{}}),v=a(()=>n(h).gridColumn),p=a(()=>n(h).start),y=a(()=>n(h).end),m=a(()=>{if(n(s)<n(p)||n(s)>n(y))return null;let w=ve(n(l));return(n(s)-n(p))/1e3/w*n(u)}),_=a(()=>({root:n(i),rootMargin:wn()?`0px -${n(g)+1}px 0px 0px`:`0px 0px 0px -${n(g)+1}px`,threshold:0}));function T(w,C){w.classList.toggle(n(f).hidden,!C.isIntersecting)}var x=he(),E=ne(x);{var k=w=>{var C=Jf();let F;Le(C,()=>Gs(T,n(_))),se(()=>{N(C,1,n(f).nowIndicator),F=Lt(C,"",F,{"grid-column":n(v)+1,"grid-row":`2 / span ${n(c).length??""}`,"inset-inline-start":`${n(m)??""}px`})}),L(w,C)};be(E,w=>{n(v)&&n(m)!==null&&w(k)})}L(e,x),ye()}var jf=Q("<div><time></time></div>"),$f=Q('<div role="rowheader"><!> <!></div>'),ed=Q('<section><header><aside></aside> <div role="row"><!> <!></div></header> <div role="rowgroup"><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div> <!></section>');function td(e,t){pe(t,!0);let r=te("state"),i=new Gf(r);Un("view-state",i);let s=a(()=>r.mainEl),o=a(()=>r.today),l=a(()=>r.viewDates),u=a(()=>r.options.columnWidth),f=a(()=>r.options.nowIndicator),d=a(()=>r.options.scrollTime),c=a(()=>r.options.slotDuration),g=a(()=>r.options.slotHeight),h=a(()=>r.options.slotWidth),v=a(()=>r.options.theme),p=a(()=>i.chunks),y=a(()=>i.bgChunks),m=a(()=>i.iChunks),_=a(()=>i.daySlots),T=a(()=>i.dayTimeLimits),x=a(()=>i.grid),E=a(()=>i.monthView),k=a(()=>i.nestedResources),w=a(()=>i.sidebarWidth),C=a(()=>i.slotLabelPeriodicity),F=a(()=>i.viewResources),V=B(0);Xe(()=>{n(d),kt(n(l))||yn().then(P)});function P(){let Z=0,A=n(o)<n(l)[0]||n(o)>n(l).at(-1);if(n(E)){if(!A){let S=n(x)[0];for(let M of S)if(tt(M.dayStart,n(o))){n(s).scrollLeft=(n(s).scrollWidth-n(w))/De(S)*(M.gridColumn-1)*(wn()?-1:1);break}}}else{for(let S of n(l)){let M=Nf(n(T),S);if(A||tt(S,n(o))){Z+=vt(Ft(ve(n(d)),ve(M.max))-ve(M.min),0);break}else Z+=ve(M.max)-ve(M.min)}n(s).scrollLeft=Z/ve(n(c))*n(h)*(wn()?-1:1)}}let X=[];function ae(){hi(X,n(p))}Xe(ae);var de=he(),ee=ne(de);{var K=Z=>{var A=ed();let S;var M=ue(A),U=ue(M),ie=re(U,2),D=ue(ie);oe(D,17,()=>n(x)[0],Ce,(W,Ie,Ue)=>{let H=()=>n(Ie).dayStart,Y=()=>n(Ie).disabled,Te=()=>n(Ie).highlight;nr(W,{get date(){return H()},colIndex:1+Ue,get disabled(){return Y()},get highlight(){return Te()},children:(q,Pe)=>{Cr(q,{get date(){return H()}})},$$slots:{default:!0}})});var z=re(D,2);{var I=W=>{var Ie=he(),Ue=ne(Ie);oe(Ue,17,()=>n(x)[0],Ce,(H,Y)=>{let Te=()=>n(Y).dayStart,q=()=>n(Y).disabled,Pe=()=>n(Y).highlight;nr(H,{get date(){return Te()},get className(){return n(v).slots},get disabled(){return q()},get highlight(){return Pe()},ariaHidden:!0,children:(Se,je)=>{var nt=he(),me=ne(nt);oe(me,17,()=>n(_)[Te().getTime()],Ce,(Ve,rt)=>{var Be=jf();let ln;var On=ue(Be);Le(On,()=>Ke(n(rt)[1])),se(()=>{N(Be,1,n(v).slot),ln=Lt(Be,"",ln,{"--ec-slot-label-periodicity":n(rt)[2]}),xe(On,"datetime",n(rt)[0])}),L(Ve,Be)}),L(Se,nt)},$$slots:{default:!0}})}),L(W,Ie)};be(z,W=>{n(E)||W(I)})}var ge=re(M,2),Ne=ue(ge);oe(Ne,21,()=>n(F),Ce,(W,Ie)=>{var Ue=$f(),H=ue(Ue);{var Y=q=>{Zf(q,{get resource(){return n(Ie)}})};be(H,q=>{n(k)&&q(Y)})}var Te=re(H,2);Ti(Te,{get resource(){return n(Ie)}}),se(()=>N(Ue,1,n(v).rowHead)),L(W,Ue)});var Fe=re(Ne,2);oe(Fe,21,()=>n(x),Ce,(W,Ie,Ue)=>{var H=he(),Y=ne(H);oe(Y,17,()=>n(Ie),Ce,(Te,q,Pe)=>{{let Se=a(()=>Pe+1===De(n(Ie))),je=a(()=>Ue+1===De(n(x)));Yf(Te,{get day(){return n(q)},get noIeb(){return n(Se)},get noBeb(){return n(je)}})}}),L(W,H)});var zt=re(Fe,2),Qe=ue(zt);oe(Qe,19,()=>n(p),W=>W.id,(W,Ie,Ue)=>{lt(Ii(W,{get chunk(){return n(Ie)}}),(H,Y)=>X[Y]=H,H=>X?.[H],()=>[n(Ue)])});var pt=re(Qe,2);oe(pt,17,()=>n(y),W=>W.id,(W,Ie)=>{Ii(W,{get chunk(){return n(Ie)}})});var Kt=re(pt,2);oe(Kt,17,()=>n(m),Ce,(W,Ie)=>{Ii(W,{get chunk(){return n(Ie)}})});var an=re(ge,2);{var Ae=W=>{Qf(W,{})};be(an,W=>{n(f)&&!n(E)&&W(Ae)})}lt(A,W=>r.mainEl=W,()=>r?.mainEl),Le(A,()=>ii(ae)),se(W=>{N(A,1,n(v).main),S=Lt(A,"",S,W),N(M,1,n(v).header),N(U,1,n(v).sidebar),N(ie,1,n(v).grid),N(ge,1,n(v).body),N(Ne,1,n(v).sidebar),N(Fe,1,n(v).grid),N(zt,1,n(v).events)},[()=>({"--ec-grid-cols":De(n(x)[0]),"--ec-grid-rows":`${De(n(x))>1?`repeat(${De(n(x))-1}, auto)`:""} 1fr`,"--ec-col-width":n(u)??"minmax(4em, 1fr)","--ec-slot-label-periodicity":n(C),"--ec-slot-height":`${n(g)??""}px`,"--ec-slot-width":`${n(h)??""}px`,"--ec-header-height":`${n(V)??""}px`,"--ec-sidebar-width":`${n(w)??""}px`})]),hr(U,"offsetWidth",W=>i.sidebarWidth=W),hr(M,"offsetHeight",W=>b(V,W)),L(Z,A)},le=a(()=>!kt(n(x))&&!kt(n(x)[0]));be(ee,Z=>{n(le)&&Z(K)})}L(e,de),ye()}const nd={createOptions(e){Ci(e),Co(e),j(e,{resourceExpand:void 0,slotWidth:32,view:"resourceTimelineWeek"}),j(e.buttonText,{expand:"Expand",collapse:"Collapse",resourceTimelineDay:"timeline",resourceTimelineWeek:"timeline",resourceTimelineMonth:"timeline"}),j(e.icons,{collapse:{html:"&minus;"},expand:{html:"&plus;"}}),j(e.theme,{expander:"ec-expander",rowHead:"ec-row-head",slots:"ec-slots"}),j(e.views,{resourceTimelineDay:{buttonText:er,component:Ro,displayEventEnd:!1,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ut("ec-resource ec-timeline ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},resourceTimelineWeek:{buttonText:tr,component:Ro,displayEventEnd:!1,duration:{weeks:1},theme:ut("ec-resource ec-timeline ec-week-view")},resourceTimelineMonth:{buttonText:gi,component:Io,displayEventEnd:!1,dayHeaderFormat:{weekday:"short",day:"numeric"},duration:{months:1},slotDuration:{days:1},theme:ut("ec-resource ec-timeline ec-month-view"),titleFormat:{year:"numeric",month:"long"}}})},createParsers(e){Di(e)}};function Ro(e){return ki(e),Io(e)}function Io(e){return e.features=["timeline"],e.extensions.viewResources=t=>t.filter(r=>!Xt(r).hidden),td}const rd={createOptions(e){Ci(e),ko(e),j(e.buttonText,{timeGridDay:"day",timeGridWeek:"week"}),j(e,{view:"timeGridWeek"}),j(e.views,{timeGridDay:{buttonText:er,component:Lo,dayHeaderFormat:{weekday:"long"},duration:{days:1},theme:ut("ec-time-grid ec-day-view"),titleFormat:{year:"numeric",month:"long",day:"numeric"}},timeGridWeek:{buttonText:tr,component:Lo,duration:{weeks:1},theme:ut("ec-time-grid ec-week-view")}})},createParsers(e){Di(e)}};function Lo(e){return ki(e),xo}function id(e,t,r){return $a(bu,{target:e,props:{plugins:t,options:r}})}function sd(e){return tl(e)}function od(e,t){return id(e,[Uu,nf,cf,Mf,nd,rd],t)}return sr.create=od,sr.destroy=sd,Object.defineProperty(sr,Symbol.toStringTag,{value:"Module"}),sr})({});
6
- //# sourceMappingURL=event-calendar.min.js.map
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;Object.keys;var 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,te=65536,ne=1<<19,re=1<<20,ie=1<<25,ae=65536,oe=1<<21,se=1<<22,ce=1<<23,le=Symbol(`$state`),ue=Symbol(`legacy props`),de=Symbol(``),C=new class extends Error{name=`StaleReactionError`;message="The reaction that called `getAbortSignal()` was re-run or destroyed"},w=!!globalThis.document?.contentType&&globalThis.document.contentType.includes(`xml`);function fe(e){throw Error(`https://svelte.dev/e/lifecycle_outside_component`)}function pe(){throw Error(`https://svelte.dev/e/async_derived_orphan`)}function me(e,t,n){throw Error(`https://svelte.dev/e/each_key_duplicate`)}function he(e){throw Error(`https://svelte.dev/e/effect_in_teardown`)}function ge(){throw Error(`https://svelte.dev/e/effect_in_unowned_derived`)}function _e(e){throw Error(`https://svelte.dev/e/effect_orphan`)}function ve(){throw Error(`https://svelte.dev/e/effect_update_depth_exceeded`)}function ye(){throw Error(`https://svelte.dev/e/get_abort_signal_outside_reaction`)}function be(e){throw Error(`https://svelte.dev/e/props_invalid_value`)}function xe(){throw Error(`https://svelte.dev/e/set_context_after_init`)}function Se(){throw Error(`https://svelte.dev/e/state_descriptors_fixed`)}function Ce(){throw Error(`https://svelte.dev/e/state_prototype_fixed`)}function we(){throw Error(`https://svelte.dev/e/state_unsafe_mutation`)}function Te(){throw Error(`https://svelte.dev/e/svelte_boundary_reset_onerror`)}var Ee={},De=Symbol(),Oe=`http://www.w3.org/1999/xhtml`;function ke(e){console.warn(`https://svelte.dev/e/hydration_mismatch`)}function Ae(){console.warn(`https://svelte.dev/e/svelte_boundary_reset_noop`)}var T=!1;function je(e){T=e}var E;function Me(e){if(e===null)throw ke(),Ee;return E=e}function Ne(){return Me(ln(E))}function D(e){if(T){if(ln(E)!==null)throw ke(),Ee;E=e}}function Pe(e=1){if(T){for(var t=e,n=E;t--;)n=ln(n);E=n}}function Fe(e=!0){for(var t=0,n=E;;){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=ln(n);e&&n.remove(),n=i}}function Ie(e){if(!e||e.nodeType!==8)throw ke(),Ee;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 O(e){return Ke(`getContext`).get(e)}function We(e,t){let n=Ke(`setContext`);if(Be){var r=z.f;!R&&r&32&&!He.i||xe()}return n.set(e,t),t}function k(e,t=!1,n){He={p:He,i:!1,c:null,e:null,s:e,x:null,r:z,l:Ve&&!t?{s:null,u:null,$:[]}:null}}function A(e){var t=He,n=t.e;if(n!==null){t.e=null;for(var r of n)Sn(r)}return e!==void 0&&(t.x=e),t.i=!0,He=t.p,e??{}}function Ge(){return!Ve||He!==null&&He.l===null}function Ke(e){return He===null&&fe(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&&!ft){var t=Je;queueMicrotask(()=>{t===Je&&Ye()})}Je.push(e)}function Ze(){for(;Je.length>0;)Ye()}function Qe(e){var t=z;if(t===null)return R.f|=ce,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^=ae,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,lt=null,ut=null,dt=null,ft=!1,pt=!1,mt=null,ht=null,gt=0,_t=1,vt=class e{id=_t++;current=new Map;previous=new Map;#e=new Set;#t=new Set;#n=0;#r=0;#i=null;#a=[];#o=new Set;#s=new Set;#c=new Map;is_fork=!1;#l=!1;#u(){return this.is_fork||this.#r>0}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)tt(n,v),this.schedule(n);for(n of t.m)tt(n,y),this.schedule(n)}}#d(){if(gt++>1e3&&(ct.delete(this),bt()),!this.#u()){for(let e of this.#o)this.#s.delete(e),tt(e,v),this.schedule(e);for(let e of this.#s)tt(e,y),this.schedule(e)}let t=this.#a;this.#a=[],this.apply();var n=mt=[],r=[],i=ht=[];for(let e of t)try{this.#f(e,n,r)}catch(t){throw Dt(e),t}if(lt=null,i.length>0){var a=e.ensure();for(let e of i)a.schedule(e)}if(mt=null,ht=null,this.#u()){this.#p(r),this.#p(n);for(let[e,t]of this.#c)Et(e,t)}else{this.#n===0&&ct.delete(this),this.#o.clear(),this.#s.clear();for(let e of this.#e)e(this);this.#e.clear(),St(r),St(n),this.#i?.resolve()}var o=lt;if(this.#a.length>0){let e=o??=this;e.#a.push(...this.#a.filter(t=>!e.#a.includes(t)))}o!==null&&(ct.add(o),o.#d()),ct.has(this)||this.#m()}#f(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):Be&&i&16777224?n.push(r):or(r)&&(i&16&&this.#s.add(r),dr(r));var o=r.first;if(o!==null){r=o;continue}}for(;r!==null;){var s=r.next;if(s!==null){r=s;break}r=r.parent}}}#p(e){for(var t=0;t<e.length;t+=1)it(e[t],this.#o,this.#s)}capture(e,t){t!==De&&!this.previous.has(e)&&this.previous.set(e,t),e.f&8388608||(this.current.set(e,e.v),ut?.set(e,e.v))}activate(){lt=this}deactivate(){lt=null,ut=null}flush(){try{pt=!0,lt=this,this.#d()}finally{gt=0,dt=null,mt=null,ht=null,pt=!1,lt=null,ut=null,Kt.clear()}}discard(){for(let e of this.#t)e(this);this.#t.clear()}#m(){for(let s of ct){var e=s.id<this.id,t=[];for(let[n,r]of this.current){if(s.current.has(n))if(e&&r!==s.current.get(n))s.current.set(n,r);else continue;t.push(n)}if(t.length!==0){var n=[...s.current.keys()].filter(e=>!this.current.has(e));if(n.length>0){s.activate();var r=new Set,i=new Map;for(var a of t)Ct(a,n,r,i);if(s.#a.length>0){s.apply();for(var o of s.#a)s.#f(o,[],[]);s.#a=[]}s.deactivate()}}}}increment(e){this.#n+=1,e&&(this.#r+=1)}decrement(e,t){--this.#n,e&&--this.#r,!(this.#l||t)&&(this.#l=!0,Xe(()=>{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(lt===null){let t=lt=new e;pt||(ct.add(lt),ft||Xe(()=>{lt===t&&t.flush()}))}return lt}apply(){if(!Be||!this.is_fork&&ct.size===1){ut=null;return}ut=new Map(this.current);for(let e of ct)if(!(e===this||e.is_fork))for(let[t,n]of e.previous)ut.has(t)||ut.set(t,n)}schedule(e){if(dt=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(mt!==null&&t===z&&(Be||(R===null||!(R.f&2))&&!at))return;if(n&96){if(!(n&1024))return;t.f^=_}}this.#a.push(t)}};function yt(e){var t=ft;ft=!0;try{var n;for(e&&(lt!==null&&!lt.is_fork&&lt.flush(),n=e());;){if(Ze(),lt===null)return n;lt.flush()}}finally{ft=t}}function bt(){try{ve()}catch(e){$e(e,dt)}}var xt=null;function St(e){var t=e.length;if(t!==0){for(var n=0;n<t;){var r=e[n++];if(!(r.f&24576)&&or(r)&&(xt=new Set,dr(r),r.deps===null&&r.first===null&&r.nodes===null&&r.teardown===null&&r.ac===null&&In(r),xt?.size>0)){Kt.clear();for(let e of xt){if(e.f&24576)continue;let t=[e],n=e.parent;for(;n!==null;)xt.has(n)&&(xt.delete(n),t.push(n)),n=n.parent;for(let e=t.length-1;e>=0;e--){let n=t[e];n.f&24576||dr(n)}}xt.clear()}}xt=null}}function Ct(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?Ct(i,t,n,r):e&4194320&&!(e&2048)&&wt(i,t,r)&&(tt(i,v),Tt(i))}}function wt(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&&wt(i,t,n))return n.set(i,!0),!0}return n.set(e,!1),!1}function Tt(e){lt.schedule(e)}function Et(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;)Et(n,t),n=n.next}}function Dt(e){tt(e,_);for(var t=e.first;t!==null;)Dt(t),t=t.next}function Ot(e){let t=0,n=Jt(0),r;return()=>{yn()&&(B(n),Dn(()=>(t===0&&(r=V(()=>e(()=>Qt(n)))),t+=1,()=>{Xe(()=>{--t,t===0&&(r?.(),r=void 0,Qt(n))})})))}}var kt=te|ne;function At(e,t,n,r){new jt(e,t,n,r)}var jt=class{parent;is_pending=!1;transform_error;#e;#t=T?E: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=Ot(()=>(this.#m=Jt(this.#l),()=>{this.#m=null}));constructor(e,t,n,r){this.#e=e,this.#n=t,this.#r=e=>{var t=z;t.b=this,t.f|=128,n(e)},this.parent=z.b,this.transform_error=r??this.parent?.transform_error??(e=>e),this.#i=On(()=>{if(T){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()},kt),T&&(this.#e=E)}#g(){try{this.#a=An(()=>this.#r(this.#e))}catch(e){this.error(e)}}#_(e){let t=this.#n.failed;t&&(this.#s=An(()=>{t(this.#e,()=>e,()=>()=>{})}))}#v(){let e=this.#n.pending;e&&(this.is_pending=!0,this.#o=An(()=>e(this.#e)),Xe(()=>{var e=this.#c=document.createDocumentFragment(),t=sn();e.append(t),this.#a=this.#x(()=>An(()=>this.#r(t))),this.#u===0&&(this.#e.before(e),this.#c=null,Ln(this.#o,()=>{this.#o=null}),this.#b(lt))}))}#y(){try{if(this.is_pending=this.has_pending_snippet(),this.#u=0,this.#l=0,this.#a=An(()=>{this.#r(this.#e)}),this.#u>0){var e=this.#c=document.createDocumentFragment();Vn(this.#a,e);let t=this.#n.pending;this.#o=An(()=>t(this.#e))}else this.#b(lt)}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=z,n=R,r=He;Jn(this.#i),qn(this.#i),Ue(this.#i.ctx);try{return vt.ensure(),e()}catch(e){return Qe(e),null}finally{Jn(t),qn(n),Ue(r)}}#S(e,t){if(!this.has_pending_snippet()){this.parent&&this.parent.#S(e,t);return}this.#u+=e,this.#u===0&&(this.#b(t),this.#o&&Ln(this.#o,()=>{this.#o=null}),this.#c&&=(this.#e.before(this.#c),null))}update_pending_count(e,t){this.#S(e,t),this.#l+=e,!(!this.#m||this.#d)&&(this.#d=!0,Xe(()=>{this.#d=!1,this.#m&&Xt(this.#m,this.#l)}))}get_effect_pending(){return this.#h(),B(this.#m)}error(e){var t=this.#n.onerror;let n=this.#n.failed;if(!t&&!n)throw e;this.#a&&=(Pn(this.#a),null),this.#o&&=(Pn(this.#o),null),this.#s&&=(Pn(this.#s),null),T&&(Me(this.#t),Pe(),Me(Fe()));var r=!1,i=!1;let a=()=>{if(r){Ae();return}r=!0,i&&Te(),this.#s!==null&&Ln(this.#s,()=>{this.#s=null}),this.#x(()=>{this.#y()})},o=e=>{try{i=!0,t?.(e,a),i=!1}catch(e){$e(e,this.#i&&this.#i.parent)}n&&(this.#s=this.#x(()=>{try{return An(()=>{var t=z;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 Mt(e,t,n,r){let i=Ge()?It:Rt;var a=e.filter(e=>!e.settled);if(n.length===0&&a.length===0){r(t.map(i));return}var o=z,s=Nt(),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)}Pt()}if(n.length===0){c.then(()=>l(t.map(i)));return}var u=Ft();function d(){Promise.all(n.map(e=>Lt(e))).then(e=>l([...t.map(i),...e])).catch(e=>$e(e,o)).finally(()=>u())}c?c.then(()=>{s(),d(),Pt()}):d()}function Nt(){var e=z,t=R,n=He,r=lt;return function(i=!0){Jn(e),qn(t),Ue(n),i&&!(e.f&16384)&&(r?.activate(),r?.apply())}}function Pt(e=!0){Jn(null),qn(null),Ue(null),e&&lt?.deactivate()}function Ft(){var e=z.b,t=lt,n=e.is_rendered();return e.update_pending_count(1,t),t.increment(n),(r=!1)=>{e.update_pending_count(-1,t),t.decrement(n,r)}}function It(e){var t=2|v,n=R!==null&&R.f&2?R:null;return z!==null&&(z.f|=ne),{ctx:He,deps:null,effects:null,equals:Le,f:t,fn:e,reactions:null,rv:0,v:De,wv:0,parent:n??z,ac:null}}function Lt(e,t,n){let r=z;r===null&&pe();var i=void 0,a=Jt(De),o=!R,s=new Map;return En(()=>{var t=z,n=m();i=n.promise;try{Promise.resolve(e()).then(n.resolve,n.reject).finally(Pt)}catch(e){n.reject(e),Pt()}var c=lt;if(o){if(t.f&32768)var l=Ft();if(r.b.is_rendered())s.get(c)?.reject(C),s.delete(c);else{for(let e of s.values())e.reject(C);s.clear()}s.set(c,n)}let u=(e,n=void 0)=>{if(l&&l(n===C),!(n===C||t.f&16384)){if(c.activate(),n)a.f|=ce,Xt(a,n);else{a.f&8388608&&(a.f^=ce),Xt(a,e);for(let[e,t]of s){if(s.delete(e),e===c)break;t.reject(C)}}c.deactivate()}};n.promise.then(u,e=>u(null,e||`unknown`))}),bn(()=>{for(let e of s.values())e.reject(C)}),new Promise(e=>{function t(n){function r(){n===i?e(a):t(i)}n.then(r,r)}t(i)})}function j(e){let t=It(e);return Be||Xn(t),t}function Rt(e){let t=It(e);return t.equals=ze,t}function zt(e){var t=e.effects;if(t!==null){e.effects=null;for(var n=0;n<t.length;n+=1)Pn(t[n])}}function Bt(e){for(var t=e.parent;t!==null;){if(!(t.f&2))return t.f&16384?null:t;t=t.parent}return null}function Vt(e){var t,n=z;Jn(Bt(e));try{e.f&=~ae,zt(e),t=cr(e)}finally{Jn(n)}return t}function Ht(e){var t=e.v,n=Vt(e);if(!e.equals(n)&&(e.wv=ar(),(!lt?.is_fork||e.deps===null)&&(e.v=n,lt?.capture(e,t),e.deps===null))){tt(e,_);return}Wn||(ut===null?nt(e):(yn()||lt?.is_fork)&&ut.set(e,n))}function Ut(e){if(e.effects!==null)for(let t of e.effects)(t.teardown||t.ac)&&(t.teardown?.(),t.ac?.abort(C),t.teardown=f,t.ac=null,ur(t,0),Mn(t))}function Wt(e){if(e.effects!==null)for(let t of e.effects)t.teardown&&dr(t)}var Gt=new Set,Kt=new Map,qt=!1;function Jt(e,t){return{f:0,v:e,reactions:null,equals:Le,rv:0,wv:0}}function M(e,t){let n=Jt(e,t);return Xn(n),n}function Yt(e,t=!1,n=!0){let r=Jt(e);return t||(r.equals=ze),Ve&&n&&He!==null&&He.l!==null&&(He.l.s??=[]).push(r),r}function N(e,t,n=!1){return R!==null&&(!Kn||R.f&131072)&&Ge()&&R.f&4325394&&(Yn===null||!r.call(Yn,e))&&we(),Xt(e,n?en(t):t,ht)}function Xt(e,t,n=null){if(!e.equals(t)){var r=e.v;Wn?Kt.set(e,t):Kt.set(e,r),e.v=t;var i=vt.ensure();if(i.capture(e,r),e.f&2){let t=e;e.f&2048&&Vt(t),ut===null&&nt(t)}e.wv=ar(),$t(e,v,n),Ge()&&z!==null&&z.f&1024&&!(z.f&96)&&($n===null?er([e]):$n.push(e)),!i.is_fork&&Gt.size>0&&!qt&&Zt()}return t}function Zt(){qt=!1;for(let e of Gt)e.f&1024&&tt(e,y),or(e)&&dr(e);Gt.clear()}function Qt(e){N(e,e.v+1)}function $t(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===z)){var l=(c&v)===0;if(l&&tt(s,t),c&2){var u=s;ut?.delete(u),c&65536||(c&512&&(s.f|=ae),$t(u,y,n))}else if(l){var d=s;c&16&&xt!==null&&xt.add(d),n===null?Tt(d):n.push(d)}}}}function en(e){if(typeof e!=`object`||!e||le in e)return e;let n=u(e);if(n!==c&&n!==l)return e;var r=new Map,i=t(e),a=M(0),s=null,d=rr,f=e=>{if(rr===d)return e();var t=R,n=rr;qn(null),ir(d);var r=e();return qn(t),ir(n),r};return i&&r.set(`length`,M(e.length,s)),new Proxy(e,{defineProperty(e,t,n){(!(`value`in n)||n.configurable===!1||n.enumerable===!1||n.writable===!1)&&Se();var i=r.get(t);return i===void 0?f(()=>{var e=M(n.value,s);return r.set(t,e),e}):N(i,n.value,!0),!0},deleteProperty(e,t){var n=r.get(t);if(n===void 0){if(t in e){let e=f(()=>M(De,s));r.set(t,e),Qt(a)}}else N(n,De),Qt(a);return!0},get(t,n,i){if(n===le)return e;var a=r.get(n),c=n in t;if(a===void 0&&(!c||o(t,n)?.writable)&&(a=f(()=>M(en(c?t[n]:De),s)),r.set(n,a)),a!==void 0){var l=B(a);return l===De?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=B(i))}else if(n===void 0){var a=r.get(t),o=a?.v;if(a!==void 0&&o!==De)return{enumerable:!0,configurable:!0,value:o,writable:!0}}return n},has(e,t){if(t===le)return!0;var n=r.get(t),i=n!==void 0&&n.v!==De||Reflect.has(e,t);return(n!==void 0||z!==null&&(!i||o(e,t)?.writable))&&(n===void 0&&(n=f(()=>M(i?en(e[t]):De,s)),r.set(t,n)),B(n)===De)?!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(()=>M(De,s)),r.set(d+``,p)):N(p,De)}if(l===void 0)(!u||o(e,t)?.writable)&&(l=f(()=>M(void 0,s)),N(l,en(n)),r.set(t,l));else{u=l.v!==De;var m=f(()=>en(n));N(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&&N(g,_+1)}Qt(a)}return!0},ownKeys(e){B(a);var t=Reflect.ownKeys(e).filter(e=>{var t=r.get(e);return t===void 0||t.v!==De});for(var[n,i]of r)i.v!==De&&!(n in e)&&t.push(n);return t},setPrototypeOf(){Ce()}})}var tn,nn,rn,an;function on(){if(tn===void 0){tn=window,document,nn=/Firefox/.test(navigator.userAgent);var e=Element.prototype,t=Node.prototype,n=Text.prototype;rn=o(t,`firstChild`).get,an=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 sn(e=``){return document.createTextNode(e)}function cn(e){return rn.call(e)}function ln(e){return an.call(e)}function P(e,t){if(!T)return cn(e);var n=cn(E);if(n===null)n=E.appendChild(sn());else if(t&&n.nodeType!==3){var r=sn();return n?.before(r),Me(r),r}return t&&pn(n),Me(n),n}function F(e,t=!1){if(!T){var n=cn(e);return n instanceof Comment&&n.data===``?ln(n):n}if(t){if(E?.nodeType!==3){var r=sn();return E?.before(r),Me(r),r}pn(E)}return E}function I(e,t=1,n=!1){let r=T?E:e;for(var i;t--;)i=r,r=ln(r);if(!T)return r;if(n){if(r?.nodeType!==3){var a=sn();return r===null?i?.after(a):r.before(a),Me(a),a}pn(r)}return Me(r),r}function un(e){e.textContent=``}function dn(){return!Be||xt!==null?!1:(z.f&S)!==0}function fn(e,t,n){let r=n?{is:n}:void 0;return document.createElementNS(t??`http://www.w3.org/1999/xhtml`,e,r)}function pn(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 mn(e,t){if(t){let t=document.body;e.autofocus=!0,Xe(()=>{document.activeElement===t&&e.focus()})}}function hn(e){var t=R,n=z;qn(null),Jn(null);try{return e()}finally{qn(t),Jn(n)}}function gn(e){z===null&&(R===null&&_e(e),ge()),Wn&&he(e)}function _n(e,t){var n=t.last;n===null?t.last=t.first=e:(n.next=e,e.prev=n,t.last=e)}function vn(e,t){var n=z;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},i=r;if(e&4)mt===null?vt.ensure().schedule(r):mt.push(r);else if(t!==null){try{dr(r)}catch(e){throw Pn(r),e}i.deps===null&&i.teardown===null&&i.nodes===null&&i.first===i.last&&!(i.f&524288)&&(i=i.first,e&16&&e&65536&&i!==null&&(i.f|=te))}if(i!==null&&(i.parent=n,n!==null&&_n(i,n),R!==null&&R.f&2&&!(e&64))){var a=R;(a.effects??=[]).push(i)}return r}function yn(){return R!==null&&!Kn}function bn(e){let t=vn(8,null);return tt(t,_),t.teardown=e,t}function xn(e){gn(`$effect`);var t=z.f;if(!R&&t&32&&!(t&32768)){var n=He;(n.e??=[]).push(e)}else return Sn(e)}function Sn(e){return vn(4|re,e)}function Cn(e){return gn(`$effect.pre`),vn(8|re,e)}function wn(e){vt.ensure();let t=vn(64|ne,e);return(e={})=>new Promise(n=>{e.outro?Ln(t,()=>{Pn(t),n(void 0)}):(Pn(t),n(void 0))})}function Tn(e){return vn(4,e)}function En(e){return vn(se|ne,e)}function Dn(e,t=0){return vn(8|t,e)}function L(e,t=[],n=[],r=[]){Mt(r,t,n,t=>{vn(8,()=>e(...t.map(B)))})}function On(e,t=0){return vn(16|t,e)}function kn(e,t=0){return vn(g|t,e)}function An(e){return vn(32|ne,e)}function jn(e){var t=e.teardown;if(t!==null){let e=Wn,n=R;Gn(!0),qn(null);try{t.call(null)}finally{Gn(e),qn(n)}}}function Mn(e,t=!1){var n=e.first;for(e.first=e.last=null;n!==null;){let e=n.ac;e!==null&&hn(()=>{e.abort(C)});var r=n.next;n.f&64?n.parent=null:Pn(n,t),n=r}}function Nn(e){for(var t=e.first;t!==null;){var n=t.next;t.f&32||Pn(t),t=n}}function Pn(e,t=!0){var n=!1;(t||e.f&262144)&&e.nodes!==null&&e.nodes.end!==null&&(Fn(e.nodes.start,e.nodes.end),n=!0),tt(e,ee),Mn(e,t&&!n),ur(e,0);var r=e.nodes&&e.nodes.t;if(r!==null)for(let e of r)e.stop();jn(e),e.f^=ee,e.f|=x;var i=e.parent;i!==null&&i.first!==null&&In(e),e.next=e.prev=e.teardown=e.ctx=e.deps=e.fn=e.nodes=e.ac=null}function Fn(e,t){for(;e!==null;){var n=e===t?null:ln(e);e.remove(),e=n}}function In(e){var t=e.parent,n=e.prev,r=e.next;n!==null&&(n.next=r),r!==null&&(r.prev=n),t!==null&&(t.first===e&&(t.first=r),t.last===e&&(t.last=n))}function Ln(e,t,n=!0){var r=[];Rn(e,r,!0);var i=()=>{n&&Pn(e),t&&t()},a=r.length;if(a>0){var o=()=>--a||i();for(var s of r)s.out(o)}else i()}function Rn(e,t,n){if(!(e.f&8192)){e.f^=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;Rn(i,t,o?n:!1),i=a}}}function zn(e){Bn(e,!0)}function Bn(e,t){if(e.f&8192){e.f^=b,e.f&1024||(tt(e,v),vt.ensure().schedule(e));for(var n=e.first;n!==null;){var r=n.next,i=(n.f&65536)!=0||(n.f&32)!=0;Bn(n,i?t:!1),n=r}var a=e.nodes&&e.nodes.t;if(a!==null)for(let e of a)(e.is_global||t)&&e.in()}}function Vn(e,t){if(e.nodes)for(var n=e.nodes.start,r=e.nodes.end;n!==null;){var i=n===r?null:ln(n);t.append(n),n=i}}var Hn=null,Un=!1,Wn=!1;function Gn(e){Wn=e}var R=null,Kn=!1;function qn(e){R=e}var z=null;function Jn(e){z=e}var Yn=null;function Xn(e){R!==null&&(!Be||R.f&2)&&(Yn===null?Yn=[e]:Yn.push(e))}var Zn=null,Qn=0,$n=null;function er(e){$n=e}var tr=1,nr=0,rr=nr;function ir(e){rr=e}function ar(){return++tr}function or(e){var t=e.f;if(t&2048)return!0;if(t&2&&(e.f&=~ae),t&4096){for(var n=e.deps,r=n.length,i=0;i<r;i++){var a=n[i];if(or(a)&&Ht(a),a.wv>e.wv)return!0}t&512&&ut===null&&tt(e,_)}return!1}function sr(e,t,n=!0){var i=e.reactions;if(i!==null&&!(!Be&&Yn!==null&&r.call(Yn,e)))for(var a=0;a<i.length;a++){var o=i[a];o.f&2?sr(o,t,!1):t===o&&(n?tt(o,v):o.f&1024&&tt(o,y),Tt(o))}}function cr(e){var t=Zn,n=Qn,r=$n,i=R,a=Yn,o=He,s=Kn,c=rr,l=e.f;Zn=null,Qn=0,$n=null,R=l&96?null:e,Yn=null,Ue(e.ctx),Kn=!1,rr=++nr,e.ac!==null&&(hn(()=>{e.ac.abort(C)}),e.ac=null);try{e.f|=oe;var u=e.fn,d=u();e.f|=S;var f=e.deps,p=lt?.is_fork;if(Zn!==null){var m;if(p||ur(e,Qn),f!==null&&Qn>0)for(f.length=Qn+Zn.length,m=0;m<Zn.length;m++)f[Qn+m]=Zn[m];else e.deps=f=Zn;if(yn()&&e.f&512)for(m=Qn;m<f.length;m++)(f[m].reactions??=[]).push(e)}else !p&&f!==null&&Qn<f.length&&(ur(e,Qn),f.length=Qn);if(Ge()&&$n!==null&&!Kn&&f!==null&&!(e.f&6146))for(m=0;m<$n.length;m++)sr($n[m],e);if(i!==null&&i!==e){if(nr++,i.deps!==null)for(let e=0;e<n;e+=1)i.deps[e].rv=nr;if(t!==null)for(let e of t)e.rv=nr;$n!==null&&(r===null?r=$n:r.push(...$n))}return e.f&8388608&&(e.f^=ce),d}catch(e){return Qe(e)}finally{e.f^=oe,Zn=t,Qn=n,$n=r,R=i,Yn=a,Ue(o),Kn=s,rr=c}}function lr(e,t){let i=t.reactions;if(i!==null){var a=n.call(i,e);if(a!==-1){var o=i.length-1;o===0?i=t.reactions=null:(i[a]=i[o],i.pop())}}if(i===null&&t.f&2&&(Zn===null||!r.call(Zn,t))){var s=t;s.f&512&&(s.f^=512,s.f&=~ae),nt(s),Ut(s),ur(s,0)}}function ur(e,t){var n=e.deps;if(n!==null)for(var r=t;r<n.length;r++)lr(e,n[r])}function dr(e){var t=e.f;if(!(t&16384)){tt(e,_);var n=z,r=Un;z=e,Un=!0;try{t&16777232?Nn(e):Mn(e),jn(e);var i=cr(e);e.teardown=typeof i==`function`?i:null,e.wv=tr}finally{Un=r,z=n}}}async function fr(){if(Be)return new Promise(e=>{requestAnimationFrame(()=>e()),setTimeout(()=>e())});await Promise.resolve(),yt()}function B(e){var t=(e.f&2)!=0;if(Hn?.add(e),R!==null&&!Kn&&!(z!==null&&z.f&16384)&&(Yn===null||!r.call(Yn,e))){var n=R.deps;if(R.f&2097152)e.rv<nr&&(e.rv=nr,Zn===null&&n!==null&&n[Qn]===e?Qn++:Zn===null?Zn=[e]:Zn.push(e));else{(R.deps??=[]).push(e);var i=e.reactions;i===null?e.reactions=[R]:r.call(i,R)||i.push(R)}}if(Wn&&Kt.has(e))return Kt.get(e);if(t){var a=e;if(Wn){var o=a.v;return(!(a.f&1024)&&a.reactions!==null||mr(a))&&(o=Vt(a)),Kt.set(a,o),o}var s=(a.f&512)==0&&!Kn&&R!==null&&(Un||(R.f&512)!=0),c=(a.f&S)===0;or(a)&&(s&&(a.f|=512),Ht(a)),s&&!c&&(Wt(a),pr(a))}if(ut?.has(e))return ut.get(e);if(e.f&8388608)throw e.v;return e.v}function pr(e){if(e.f|=512,e.deps!==null)for(let t of e.deps)(t.reactions??=[]).push(e),t.f&2&&!(t.f&512)&&(Wt(t),pr(t))}function mr(e){if(e.v===De)return!0;if(e.deps===null)return!1;for(let t of e.deps)if(Kt.has(t)||t.f&2&&mr(t))return!0;return!1}function V(e){var t=Kn;try{return Kn=!0,e()}finally{Kn=t}}[...`allowfullscreen.async.autofocus.autoplay.checked.controls.default.disabled.formnovalidate.indeterminate.inert.ismap.loop.multiple.muted.nomodule.novalidate.open.playsinline.readonly.required.reversed.seamless.selected.webkitdirectory.defer.disablepictureinpicture.disableremoteplayback`.split(`.`)];var hr=[`touchstart`,`touchmove`];function gr(e){return hr.includes(e)}var _r=Symbol(`events`),vr=new Set,yr=new Set;function br(e,t,n,r={}){function i(e){if(r.capture||Tr.call(t,e),!e.cancelBubble)return hn(()=>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 xr(e,t,n,r,i){var a={capture:r,passive:i},o=br(e,t,n,a);(t===document.body||t===window||t===document||t instanceof HTMLMediaElement)&&bn(()=>{t.removeEventListener(e,o,a)})}function Sr(e,t,n){(t[_r]??={})[e]=n}function Cr(e){for(var t=0;t<e.length;t++)vr.add(e[t]);for(var n of yr)n(e)}var wr=null;function Tr(e){var t=this,n=t.ownerDocument,r=e.type,i=e.composedPath?.()||[],o=i[0]||e.target;wr=e;var s=0,c=wr===e&&e[_r];if(c){var l=i.indexOf(c);if(l!==-1&&(t===document||t===window)){e[_r]=t;return}var u=i.indexOf(t);if(u===-1)return;l<=u&&(s=l)}if(o=i[s]||e.target,o!==t){a(e,`currentTarget`,{configurable:!0,get(){return o||n}});var d=R,f=z;qn(null),Jn(null);try{for(var p,m=[];o!==null;){var h=o.assignedSlot||o.parentNode||o.host||null;try{var g=o[_r]?.[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[_r]=t,delete e.currentTarget,qn(d),Jn(f)}}}var Er=globalThis?.window?.trustedTypes&&globalThis.window.trustedTypes.createPolicy(`svelte-trusted-html`,{createHTML:e=>e});function Dr(e){return Er?.createHTML(e)??e}function Or(e){var t=fn(`template`);return t.innerHTML=Dr(e.replaceAll(`<!>`,`<!---->`)),t.content}function kr(e,t){var n=z;n.nodes===null&&(n.nodes={start:e,end:t,a:null,t:null})}function H(e,t){var n=(t&1)!=0,r=(t&2)!=0,i,a=!e.startsWith(`<!>`);return()=>{if(T)return kr(E,null),E;i===void 0&&(i=Or(a?e:`<!>`+e),n||(i=cn(i)));var t=r||nn?document.importNode(i,!0):i.cloneNode(!0);if(n){var o=cn(t),s=t.lastChild;kr(o,s)}else kr(t,t);return t}}function U(){if(T)return kr(E,null),E;var e=document.createDocumentFragment(),t=document.createComment(``),n=sn();return e.append(t,n),kr(t,n),e}function W(e,t){if(T){var n=z;(!(n.f&32768)||n.nodes.end===null)&&(n.nodes.end=E),Ne();return}e!==null&&e.before(t)}function Ar(e,t){var n=t==null?``:typeof t==`object`?`${t}`:t;n!==(e.__t??=e.nodeValue)&&(e.__t=n,e.nodeValue=`${n}`)}function jr(e,t){return Nr(e,t)}var Mr=new Map;function Nr(e,{target:t,anchor:n,props:r={},events:a,context:o,intro:s=!0,transformError:c}){on();var l=void 0,u=wn(()=>{var s=n??t.appendChild(sn());At(s,{pending:()=>{}},t=>{k({});var n=He;if(o&&(n.c=o),a&&(r.$$events=a),T&&kr(t,null),l=e(t,r)||{},T&&(z.nodes.end=E,E===null||E.nodeType!==8||E.data!==`]`))throw ke(),Ee;A()},c);var u=new Set,d=e=>{for(var n=0;n<e.length;n++){var r=e[n];if(!u.has(r)){u.add(r);var i=gr(r);for(let e of[t,document]){var a=Mr.get(e);a===void 0&&(a=new Map,Mr.set(e,a));var o=a.get(r);o===void 0?(e.addEventListener(r,Tr,{passive:i}),a.set(r,1)):a.set(r,o+1)}}}};return d(i(vr)),yr.add(d),()=>{for(var e of u)for(let n of[t,document]){var r=Mr.get(n),i=r.get(e);--i==0?(n.removeEventListener(e,Tr),r.delete(e),r.size===0&&Mr.delete(n)):r.set(e,i)}yr.delete(d),s!==n&&s.parentNode?.removeChild(s)}});return Pr.set(l,u),l}var Pr=new WeakMap;function Fr(e,t){let n=Pr.get(e);return n?(Pr.delete(e),n(t)):Promise.resolve()}var Ir=class{anchor;#e=new Map;#t=new Map;#n=new Map;#r=new Set;#i=!0;constructor(e,t=!0){this.anchor=e,this.#i=t}#a=e=>{if(this.#e.has(e)){var t=this.#e.get(e),n=this.#t.get(t);if(n)zn(n),this.#r.delete(t);else{var r=this.#n.get(t);r&&(this.#t.set(t,r.effect),this.#n.delete(t),r.fragment.lastChild.remove(),this.anchor.before(r.fragment),n=r.effect)}for(let[t,n]of this.#e){if(this.#e.delete(t),t===e)break;let r=this.#n.get(n);r&&(Pn(r.effect),this.#n.delete(n))}for(let[e,r]of this.#t){if(e===t||this.#r.has(e))continue;let i=()=>{if(Array.from(this.#e.values()).includes(e)){var t=document.createDocumentFragment();Vn(r,t),t.append(sn()),this.#n.set(e,{effect:r,fragment:t})}else Pn(r);this.#r.delete(e),this.#t.delete(e)};this.#i||!n?(this.#r.add(e),Ln(r,i,!1)):i()}}};#o=e=>{this.#e.delete(e);let t=Array.from(this.#e.values());for(let[e,n]of this.#n)t.includes(e)||(Pn(n.effect),this.#n.delete(e))};ensure(e,t){var n=lt,r=dn();if(t&&!this.#t.has(e)&&!this.#n.has(e))if(r){var i=document.createDocumentFragment(),a=sn();i.append(a),this.#n.set(e,{effect:An(()=>t(a)),fragment:i})}else this.#t.set(e,An(()=>t(this.anchor)));if(this.#e.set(n,e),r){for(let[t,r]of this.#t)t===e?n.unskip_effect(r):n.skip_effect(r);for(let[t,r]of this.#n)t===e?n.unskip_effect(r.effect):n.skip_effect(r.effect);n.oncommit(this.#a),n.ondiscard(this.#o)}else T&&(this.anchor=E),this.#a(n)}};function G(e,t,n=!1){var r;T&&(r=E,Ne());var i=new Ir(e),a=n?te:0;function o(e,t){if(T){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)}On(()=>{var e=!1;t((t,n=0)=>{e=!0,o(n,t)}),e||o(-1,null)},a)}function K(e,t){return t}function Lr(e,t,n){for(var r=[],a=t.length,o,s=t.length,c=0;c<a;c++){let n=t[c];Ln(n,()=>{if(o){if(o.pending.delete(n),o.done.add(n),o.pending.size===0){var t=e.outrogroups;Rr(e,i(o.done)),t.delete(o),t.size===0&&(e.outrogroups=null)}}else --s},!1)}if(s===0){var l=r.length===0&&n!==null;if(l){var u=n,d=u.parentNode;un(d),d.append(u),e.items.clear()}Rr(e,t,!l)}else o={pending:new Set(t),done:new Set},(e.outrogroups??=new Set).add(o)}function Rr(e,t,n=!0){var r;if(e.pending.size>0){r=new Set;for(let t of e.pending.values())for(let n of t)r.add(e.items.get(n).e)}for(var i=0;i<t.length;i++){var a=t[i];r?.has(a)?(a.f|=ie,Vn(a,document.createDocumentFragment())):Pn(t[i],n)}}var zr;function q(e,n,r,a,o,s=null){var c=e,l=new Map;if(n&4){var u=e;c=T?Me(cn(u)):u.appendChild(sn())}T&&Ne();var d=null,f=Rt(()=>{var e=r();return t(e)?e:e==null?[]:i(e)}),p,m=new Map,h=!0;function g(e){v.effect.f&16384||(v.pending.delete(e),v.fallback=d,Vr(v,p,c,n,a),d!==null&&(p.length===0?d.f&33554432?(d.f^=ie,Ur(d,null,c)):zn(d):Ln(d,()=>{d=null})))}function _(e){v.pending.delete(e)}var v={effect:On(()=>{p=B(f);var e=p.length;let t=!1;T&&Ie(c)===`[!`!=(e===0)&&(c=Fe(),Me(c),je(!1),t=!0);for(var i=new Set,u=lt,v=dn(),y=0;y<e;y+=1){T&&E.nodeType===8&&E.data===`]`&&(c=E,t=!0,je(!1));var b=p[y],x=a(b,y),S=h?null:l.get(x);S?(S.v&&Xt(S.v,b),S.i&&Xt(S.i,y),v&&u.unskip_effect(S.e)):(S=Hr(l,h?c:zr??=sn(),b,x,y,o,n,r),h||(S.e.f|=ie),l.set(x,S)),i.add(x)}if(e===0&&s&&!d&&(h?d=An(()=>s(c)):(d=An(()=>s(zr??=sn())),d.f|=ie)),e>i.size&&me(``,``,``),T&&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),B(f)}),flags:n,items:l,pending:m,outrogroups:null,fallback:d};h=!1,T&&(c=E)}function Br(e){for(;e!==null&&!(e.f&32);)e=e.next;return e}function Vr(e,t,n,r,a){var o=(r&8)!=0,s=t.length,c=e.items,l=Br(e.effect.first),u,d=null,f,p=[],m=[],h,g,_,v;if(o)for(v=0;v<s;v+=1)h=t[v],g=a(h,v),_=c.get(g).e,_.f&33554432||(_.nodes?.a?.measure(),(f??=new Set).add(_));for(v=0;v<s;v+=1){if(h=t[v],g=a(h,v),_=c.get(g).e,e.outrogroups!==null)for(let t of e.outrogroups)t.pending.delete(_),t.done.delete(_);if(_.f&33554432)if(_.f^=ie,_===l)Ur(_,null,n);else{var y=d?d.next:l;_===e.effect.last&&(e.effect.last=_.prev),_.prev&&(_.prev.next=_.next),_.next&&(_.next.prev=_.prev),Wr(e,d,_),Wr(e,_,y),Ur(_,y,n),d=_,p=[],m=[],l=Br(d.next);continue}if(_.f&8192&&(zn(_),o&&(_.nodes?.a?.unfix(),(f??=new Set).delete(_))),_!==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)Ur(p[x],b,n);for(x=0;x<m.length;x+=1)u.delete(m[x]);Wr(e,S.prev,ee.next),Wr(e,d,S),Wr(e,ee,b),l=b,d=ee,--v,p=[],m=[]}else u.delete(_),Ur(_,l,n),Wr(e,_.prev,_.next),Wr(e,_,d===null?e.effect.first:d.next),Wr(e,d,_),d=_;continue}for(p=[],m=[];l!==null&&l!==_;)(u??=new Set).add(l),m.push(l),l=Br(l.next);if(l===null)continue}_.f&33554432||p.push(_),d=_,l=Br(_.next)}if(e.outrogroups!==null){for(let t of e.outrogroups)t.pending.size===0&&(Rr(e,i(t.done)),e.outrogroups?.delete(t));e.outrogroups.size===0&&(e.outrogroups=null)}if(l!==null||u!==void 0){var te=[];if(u!==void 0)for(_ of u)_.f&8192||te.push(_);for(;l!==null;)!(l.f&8192)&&l!==e.fallback&&te.push(l),l=Br(l.next);var ne=te.length;if(ne>0){var re=r&4&&s===0?n:null;if(o){for(v=0;v<ne;v+=1)te[v].nodes?.a?.measure();for(v=0;v<ne;v+=1)te[v].nodes?.a?.fix()}Lr(e,te,re)}}o&&Xe(()=>{if(f!==void 0)for(_ of f)_.nodes?.a?.apply()})}function Hr(e,t,n,r,i,a,o,s){var c=o&1?o&16?Jt(n):Yt(n,!1,!1):null,l=o&2?Jt(i):null;return{v:c,i:l,e:An(()=>(a(t,c??n,l??i,s),()=>{e.delete(r)}))}}function Ur(e,t,n){if(e.nodes)for(var r=e.nodes.start,i=e.nodes.end,a=t&&!(t.f&33554432)?t.nodes.start:n;r!==null;){var o=ln(r);if(a.before(r),r===i)return;r=o}}function Wr(e,t,n){t===null?e.effect.first=n:t.next=n,n===null?e.effect.last=t:n.prev=t}function Gr(e,t,...n){var r=new Ir(e);On(()=>{let e=t()??null;r.ensure(e,e&&(t=>e(t,...n)))},te)}function Kr(e,t,n){var r;T&&(r=E,Ne());var i=new Ir(e);On(()=>{var e=t()??null;if(T&&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)))},te)}function qr(e,t){var n=void 0,r;kn(()=>{n!==(n=t())&&(r&&=(Pn(r),null),n&&(r=An(()=>{Tn(()=>n(e))})))})}function Jr(e){var t,n,r=``;if(typeof e==`string`||typeof e==`number`)r+=e;else if(typeof e==`object`)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(n=Jr(e[t]))&&(r&&(r+=` `),r+=n)}else for(n in e)e[n]&&(r&&(r+=` `),r+=n);return r}function Yr(){for(var e,t,n=0,r=``,i=arguments.length;n<i;n++)(e=arguments[n])&&(t=Jr(e))&&(r&&(r+=` `),r+=t);return r}function Xr(e){return typeof e==`object`?Yr(e):e??``}var Zr=[...`
6
+ \r\f\xA0\v`];function Qr(e,t,n){var r=e==null?``:``+e;if(t&&(r=r?r+` `+t:t),n){for(var i of Object.keys(n))if(n[i])r=r?r+` `+i:i;else if(r.length)for(var a=i.length,o=0;(o=r.indexOf(i,o))>=0;){var s=o+a;(o===0||Zr.includes(r[o-1]))&&(s===r.length||Zr.includes(r[s]))?r=(o===0?``:r.substring(0,o))+r.substring(s+1):o=s}}return r===``?null:r}function $r(e,t=!1){var n=t?` !important;`:`;`,r=``;for(var i of Object.keys(e)){var a=e[i];a!=null&&a!==``&&(r+=` `+i+`: `+a+n)}return r}function ei(e){return e[0]!==`-`||e[1]!==`-`?e.toLowerCase():e}function ti(e,t){if(t){var n=``,r,i;if(Array.isArray(t)?(r=t[0],i=t[1]):r=t,e){e=String(e).replaceAll(/\s*\/\*.*?\*\/\s*/g,``).trim();var a=!1,o=0,s=!1,c=[];r&&c.push(...Object.keys(r).map(ei)),i&&c.push(...Object.keys(i).map(ei));var l=0,u=-1;let t=e.length;for(var d=0;d<t;d++){var f=e[d];if(s?f===`/`&&e[d-1]===`*`&&(s=!1):a?a===f&&(a=!1):f===`/`&&e[d+1]===`*`?s=!0:f===`"`||f===`'`?a=f:f===`(`?o++:f===`)`&&o--,!s&&a===!1&&o===0){if(f===`:`&&u===-1)u=d;else if(f===`;`||d===t-1){if(u!==-1){var p=ei(e.substring(l,u).trim());if(!c.includes(p)){f!==`;`&&d++;var m=e.substring(l,d).trim();n+=` `+m+`;`}}l=d+1,u=-1}}}}return r&&(n+=$r(r)),i&&(n+=$r(i,!0)),n=n.trim(),n===``?null:n}return e==null?null:String(e)}function J(e,t,n,r,i,a){var o=e.__className;if(T||o!==n||o===void 0){var s=Qr(n,r,a);(!T||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 ni(e,t={},n,r){for(var i in n){var a=n[i];t[i]!==a&&(n[i]==null?e.style.removeProperty(i):e.style.setProperty(i,a,r))}}function ri(e,t,n,r){var i=e.__style;if(T||i!==t){var a=ti(t,r);(!T||a!==e.getAttribute(`style`))&&(a==null?e.removeAttribute(`style`):e.style.cssText=a),e.__style=t}else r&&(Array.isArray(r)?(ni(e,n?.[0],r[0]),ni(e,n?.[1],r[1],`important`)):ni(e,n,r));return r}var ii=Symbol(`is custom element`),ai=Symbol(`is html`),oi=w?`link`:`LINK`;function si(e,t,n,r){var i=ci(e);T&&(i[t]=e.getAttribute(t),t===`src`||t===`srcset`||t===`href`&&e.nodeName===oi)||i[t]!==(i[t]=n)&&(t===`loading`&&(e[de]=n),n==null?e.removeAttribute(t):typeof n!=`string`&&ui(e).includes(t)?e[t]=n:e.setAttribute(t,n))}function ci(e){return e.__attributes??={[ii]:e.nodeName.includes(`-`),[ai]:e.namespaceURI===Oe}}var li=new Map;function ui(e){var t=e.getAttribute(`is`)||e.nodeName,n=li.get(t);if(n)return n;li.set(t,n=[]);for(var r,i=e,a=Element.prototype;a!==i;){for(var o in r=s(i),r)r[o].set&&n.push(o);i=u(i)}return n}var di=new class e{#e=new WeakMap;#t;#n;static entries=new WeakMap;constructor(e){this.#n=e}observe(e,t){var n=this.#e.get(e)||new Set;return n.add(t),this.#e.set(e,n),this.#r().observe(e,this.#n),()=>{var n=this.#e.get(e);n.delete(t),n.size===0&&(this.#e.delete(e),this.#t.unobserve(e))}}#r(){return this.#t??=new ResizeObserver(t=>{for(var n of t){e.entries.set(n.target,n);for(var r of this.#e.get(n.target)||[])r(n)}})}}({box:`border-box`});function fi(e,t,n){var r=di.observe(e,()=>n(e[t]));Tn(()=>(V(()=>n(e[t])),r))}function pi(e,t){return e===t||e?.[le]===t}function mi(e={},t,n,r){var i=He.r,a=z;return Tn(()=>{var o,s;return Dn(()=>{o=s,s=r?.()||[],V(()=>{e!==n(...s)&&(t(e,...s),o&&pi(n(...o),e)&&t(null,...o))})}),()=>{let r=a;for(;r!==i&&r.parent!==null&&r.parent.f&33554432;)r=r.parent;let o=()=>{s&&pi(n(...s),e)&&t(null,...s)},c=r.teardown;r.teardown=()=>{o(),c?.()}}}),e}function Y(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?V(r):r),c);let d;if(a){var f=le in e||ue 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&&be(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?It:Rt)(()=>(_=!1,h()));a&&B(v);var y=z;return(function(e,t){if(arguments.length>0){let n=t?B(v):i&&a?en(e):e;return N(v,n),_=!0,c!==void 0&&(c=n),e}return Wn&&_||y.f&16384?v.v:B(v)})}function hi(){return R===null&&ye(),(R.ac??=new AbortController).signal}function gi(e){He===null&&fe(`onMount`),Ve&&He.l!==null?_i(He).m.push(e):xn(()=>{let t=V(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`}var Vi=86400;function Hi(e=void 0){return e===void 0?sa(new Date):Fi(e)?sa(e):ca(e)}function Ui(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 Wi(e,t,n=1){e.setUTCFullYear(e.getUTCFullYear()+n*t.years);let r=e.getUTCMonth()+n*t.months;for(e.setUTCMonth(r),r%=12,r<0&&(r+=12);e.getUTCMonth()!==r;)qi(e);return e.setUTCDate(e.getUTCDate()+n*t.days),e.setUTCSeconds(e.getUTCSeconds()+n*t.seconds),e}function Gi(e,t,n=1){return Wi(e,t,-n)}function Ki(e,t=1){return e.setUTCDate(e.getUTCDate()+t),e}function qi(e,t=1){return Ki(e,-t)}function Ji(e){return e.setUTCHours(0,0,0,0),e}function Yi(e){return new Date(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds())}function Xi(e,t=19){return e.toISOString().substring(0,t)}function Zi(e,...t){return t.every(t=>e.getTime()===t.getTime())}function Qi(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n>=0?n:n+7)),e}function $i(e,t){let n=t-e.getUTCDay();return e.setUTCDate(e.getUTCDate()+(n<=0?n:n-7)),e}function ea(e){return typeof e==`string`&&e.length<=10}function ta(e,t){return e.setUTCHours(t.getUTCHours(),t.getUTCMinutes(),t.getUTCSeconds(),0),e}function $(e){return e.seconds}function na(e,t,n){return Wi(e,t),ia(e,n,Ki),e}function ra(e,t,n){return Gi(e,t),ia(e,n,qi),e}function ia(e,t,n){if(t.length&&t.length<7)for(;t.includes(e.getUTCDay());)n(e)}function aa(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/Vi+1)/7)}function oa(e,t,n){return t?Z(t)?t({date:Yi(n),week:e}):t:`W`+String(e).padStart(2,`0`)}function sa(e){return new Date(Date.UTC(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds()))}function ca(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 la=Ai();function ua(e,t){e[la]=t}function da(e){return!!e?.[la]}function fa(e){return e[la]}function pa(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 ma(e){return e.getBoundingClientRect()}function ha(e,t){for(;t--;)e=e.parentElement;return e}function ga(e){return ma(e).height}function _a(e,t,n=document,r=[]){r.push(n);for(let i of n.elementsFromPoint(e,t)){if(da(i))return i;if(i.shadowRoot&&!r.includes(i.shadowRoot)){let n=_a(e,t,i.shadowRoot,r);if(n)return n}}return null}function va(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function ya(e,t=void 0){return function(n){n.stopPropagation(),e&&e.call(t,n)}}function ba(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 xa(e){return e=X({},e),e.currentStart=Yi(e.currentStart),e.currentEnd=Yi(e.currentEnd),e.activeStart=Yi(e.activeStart),e.activeEnd=Yi(e.activeEnd),e}var Sa=1;function Ca(e){return e.map(e=>{let t={id:`id`in e?String(e.id):`{generated-${Sa++}}`,resourceIds:wa(e,`resourceId`).map(String),allDay:e.allDay??(ea(e.start)&&ea(e.end)),start:Hi(e.start),end:Hi(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:wa(e,`className`),styles:wa(e,`style`)};if(t.allDay){Ji(t.start);let e=Q(t.end);Ji(t.end),(!Zi(t.end,e)||Zi(t.end,t.start))&&Ki(t.end)}return t})}function wa(e,t){let n=e[t+`s`]??e[t]??[];return Ni(n)?n:[n]}function Ta(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 Ea(e,t,n,r,i,a){let o=i.formatRange(e.start,t&&e.event.display!==`pointer`&&!e.zeroDuration?ta(Q(e.start),e.end):e.start),s;if(n&&(s=Z(n)?n({event:ka(e.event),timeText:o,view:xa(a)}):n),s===void 0){let t;switch(e.event.display){case`background`:t=[];break;case`pointer`:t=e.event.allDay?[]:[Da(o,e,r)];break;default:t=[...e.event.allDay?[]:[Da(o,e,r)],pa(`h4`,r.eventTitle,e.event.title)]}s={domNodes:t}}return[o,s]}function Da(e,t,n){return pa(`time`,n.eventTime,e,[[`datetime`,Xi(t.start)]])}function Oa(e,t,n){let r=t.classNames;return e&&(Z(e)&&(e=e({event:ka(t),view:xa(n)})),r=[...Ni(e)?e:[e],...r]),r}function ka(e){return ja(e,Yi)}function Aa(e){return ja(e,Q)}function ja(e,t){return e=X({},e),e.start=t(e.start),e.end=t(e.end),e}function Ma(e,t){e.length=t.length;for(let t of e)t?.reposition()}function Na(e,t,n,r=void 0){return(!r||e.resourceIds.includes(r.id))&&e.start<n&&e.end>t}function Pa(e){return Ia(e)||La(e)||Ra(e)}function Fa(e){return e===`background`}function Ia(e){return e===`preview`}function La(e){return e===`ghost`}function Ra(e){return e===`pointer`}function za(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:Zi(t,n)}}function Ba(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&&Na(e,u,d,l)&&(r.push(u),i=d,a||(a=n,o=c,s=l));if(r.length){let t=za(e,r[0],i);return X(t,{gridColumn:a,gridRow:o,resource:s,dates:r}),n&&Ga(t),[t]}return[]}function Va(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 Ha(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 Ua=new WeakMap,Wa=1;function Ga(e){let{event:t,gridColumn:n,gridRow:r}=e,i=Ua.get(t);i||(i=Wa++,Ua.set(t,i)),e.id=`${i}-${n}-${r}`}function Ka(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return V(()=>{i=Z(r)?{format:r}:new Intl.DateTimeFormat(n,r)}),{format:e=>i.format(Yi(e))}}}function qa(e,t){return()=>{let{options:{locale:n}}=e,r=e.options[t],i;return V(()=>{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+=Ja(a[1-t],r),o[t]=!0):i+=e.value}return i}}}}),{formatRange:(e,t)=>i(Yi(e),Yi(t))}}}function Ja(e,t){let n=``;for(let r of t)r.source==e&&(n+=r.value);return n}function Ya(e){return $a(e,`day`)}function Xa(e){return $a(e,`week`)}function Za(e){return $a(e,`month`)}function Qa(e){return $a(e,`year`)}function $a(e,t){return{...e,next:`Next `+t,prev:`Previous `+t}}function eo(e){return t=>({...t,view:e})}function to(e){let t,n;return e&&({start:t,end:n}=e,t&&=Ji(Hi(t)),n&&=Ji(Hi(n))),{start:t,end:n}}function no(e,t){return t.start&&e<t.start||t.end&&e>t.end}function ro(e){let t=[];return io(e,0,!1,t),t}function io(e,t,n,r){let i=[];for(let a of e){let e=ao(a);i.push(e),r.push(e);let o={level:t,children:[],hidden:n};ua(e,o),a.children&&(o.children=io(a.children,t+1,n||!e.expanded,r))}return i}function ao(e){return{id:String(e.id),title:e.title||``,eventBackgroundColor:oo(e),eventTextColor:so(e),expanded:e.expanded??!0,extendedProps:e.extendedProps??{}}}function oo(e){return e?.eventBackgroundColor}function so(e){return e?.eventTextColor}function co(e,t){return Mi(e.resourceIds)?void 0:t.find(t=>e.resourceIds.includes(t.id))}function lo(e,t,n,r,i){let a=[];e=Q(e);let o=Q(e);for(Wi(e,r.min),Wi(o,r.max);e<o;)a.push([Xi(e),i.format(e)]),Wi(e,t,n);let s=Ei((e-o)/1e3/$(t));return s&&s!==n&&(a.at(-1)[2]=n-s),a}function uo(e,t,n,r,i){let a=Ui(e),o=Ui(t);if(n){let e=Ui(Oi($(a),ki(0,$(o)-Vi))),t=Ui(ki($(o),$(e)+Vi)),s=Z(n?.eventFilter)?n.eventFilter:e=>!Fa(e.display);loop:for(let n of r){let r=Wi(Q(n),a),c=Wi(Q(n),o),l=Wi(Q(n),e),u=Wi(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 fo=class extends Map{#e=new Map;#t=M(0);#n=M(0);#r=rr||-1;constructor(e){if(super(),e){for(var[t,n]of e)super.set(t,n);this.#n.v=super.size}}#i(e){return rr===this.#r?M(e):Jt(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 B(this.#t),!1;return B(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{B(this.#t);return}return B(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),N(this.#n,super.size),Qt(o);else if(i!==t){Qt(r);var s=o.reactions===null?null:new Set(o.reactions);(s===null||!r.reactions?.every(e=>s.has(e)))&&Qt(o)}return a}delete(e){var t=this.#e,n=t.get(e),r=super.delete(e);return n!==void 0&&(t.delete(e),N(n,-1)),r&&(N(this.#n,super.size),Qt(this.#t)),r}clear(){if(super.size!==0){super.clear();var e=this.#e;N(this.#n,0);for(var t of e.values())N(t,-1);Qt(this.#t),e.clear()}}#a(){B(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)B(n)}keys(){return B(this.#t),super.keys()}values(){return this.#a(),super.values()}entries(){return this.#a(),super.entries()}[Symbol.iterator](){return this.entries()}get size(){return B(this.#n),super.size}};URLSearchParams,Symbol.iterator;function po(e){let t=0,n=M(en(t));return ho(e,()=>B(n),()=>!0,()=>N(n,++t,!0))}function mo(e){let t=0,n=en({});return ho(e,e=>n[e],(e,t)=>e!==t,e=>n[e]=++t)}function ho(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 go(e){let t={buttonText:{today:`today`},customButtons:{},customScrollbars:!1,date:new Date,datesSet:void 0,dayHeaderFormat:{weekday:`short`,month:`numeric`,day:`numeric`},dayHeaderAriaLabelFormat:{dateStyle:`full`},displayEventEnd:!0,duration:{weeks:1},events:[],eventAllUpdated:void 0,eventBackgroundColor:void 0,eventClassNames:void 0,eventClick:void 0,eventColor:void 0,eventContent:void 0,eventDidMount:void 0,eventFilter:void 0,eventMouseEnter:void 0,eventMouseLeave:void 0,eventOrder:void 0,eventSources:[],eventTextColor:void 0,eventTimeFormat:{hour:`numeric`,minute:`2-digit`},filterEventsWithResources:!1,firstDay:0,headerToolbar:{start:`title`,center:``,end:`today prev,next`},height:void 0,hiddenDays:[],highlightedDates:[],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 _o(e){let t={date:e=>Ji(Hi(e)),duration:Ui,events:Ca,eventSources:Ta,hiddenDays:e=>[...new Set(e)],highlightedDates:e=>e.map(e=>Ji(Hi(e))),resources:e=>Ni(e)?ro(e):e,validRange:to};for(let n of e)n.createParsers?.(t);return t}var vo=[`buttonText`,`customButtons`,`icons`,`theme`];function yo(e,t){let n=go(e),r=_o(e);n=bo(n,r),t=bo(t,r);let i=xo(n,`views`)??{},a=xo(t,`views`)??{},o=mo({});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=So(n,i[e]??i[r.type]??{}),d=So(u,t,r),f=xo(d,`component`);delete d.view;for(let e of Ci(d))Ti(o,e)?(s[e]||(s[e]=[]),s[e].push(vo.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 bo(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]=bo(e.views[r],t)}return n}function xo(e,t){let n=e[t];return delete e[t],n}function So(...e){let t={};for(let n of e){let e={};for(let r of vo)Z(n[r])&&(e[r]=n[r](t[r]));t={...t,...n,...e}}return t}function Co(e,t){let n=[];for(let r of Ci(e))e[r]!==t[r]&&n.push([r,e[r]]);return n}function wo(e){return()=>{let{options:{view:t}}=e;V(()=>{let n=e.setViewOptions(t);e.extensions={},e.features=[],e.viewComponent=n(e)})}}function To(e,t){return()=>{let{activeRange:n,fetchedRange:{events:r},viewDates:i,options:{events:a,eventSources:o,lazyFetching:s}}=e;V(()=>{Do(o.map(e=>Z(e.events)?e.events:e),a,Ca,t=>e.events=po(t),n,r,i,!0,s,t)})}}function Eo(e,t){return()=>{let{activeRange:n,fetchedRange:{resources:r},viewDates:i,options:{lazyFetching:a,refetchResourcesOnNavigate:o,resources:s}}=e;V(()=>{Do(Ni(s)?[]:[s],s,ro,t=>e.resources=po(t),n,r,i,o,a,t)})}}function Do(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=Xi(i.start),d=Xi(i.end);for(let t of e)if(l.start(),Z(t)){let e=t(s?{start:Yi(i.start),end:Yi(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 Oo(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 ko(e){return()=>{let t=setInterval(()=>{let t=Hi(),n=Ji(Q(t));e.now=t,Zi(e.today,n)||(e.today=n)},1e3);return()=>clearInterval(t)}}function Ao(e){return()=>{let{activeRange:t,options:{datesSet:n}}=e;V(()=>{Z(n)&&n({start:Yi(t.start),end:Yi(t.end),startStr:Xi(t.start),endStr:Xi(t.end),view:xa(e.view)})})}}function jo(e){let t;return()=>{let{filteredEvents:n,options:{eventAllUpdated:r}}=e;V(()=>{Z(r)&&(t||=setTimeout(()=>{t=null,r({view:xa(e.view)})}))})}}function Mo(e){return()=>{let{options:{view:t,viewDidMount:n}}=e;V(()=>{Z(n)&&fr().then(()=>n({view:xa(e.view)}))})}}function No(e){return()=>{let{options:{date:t,duration:n,firstDay:r}}=e,i,a;return V(()=>{i=Q(t),n.years?(i.setUTCMonth(0),i.setUTCDate(1)):n.months?i.setUTCDate(1):n.inWeeks&&$i(i,r),a=Wi(Q(i),n)}),{start:i,end:a}}}function Po(e){return()=>{let{currentRange:t,extensions:{activeRange:n}}=e,r,i;return V(()=>{r=Q(t.start),i=Q(t.end)}),n?n(r,i):{start:r,end:i}}}function Fo(e){return()=>{let{events:t,options:{eventFilter:n,eventOrder:r,filterEventsWithResources:i,resources:a,view:o}}=e,s=[...t];return V(()=>{if(Z(n)){let r=t.map(ka),i=xa(e.view);s=s.filter((e,t)=>n({event:ka(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(ka(e),ka(t))):s.sort((e,t)=>e.start-t.start||t.allDay-e.allDay)}),s}}function Io(e){return()=>{let{options:t,activeRange:n}=e,{hiddenDays:r}=t,i=[];return V(()=>{let t=Ji(Q(n.start)),a=Ji(Q(n.end));for(;t<a;)r.includes(t.getUTCDay())||i.push(Q(t)),Ki(t);if(!i.length&&r.length&&r.length<7){for(;r.includes(t.getUTCDay());)Ki(t);fr().then(()=>{e.setOption(`date`,t)})}}),i}}function Lo(e){return()=>{let{currentRange:t,intlTitle:n}=e,r;return V(()=>{r=n.formatRange(t.start,qi(Q(t.end)))}),r}}function Ro(e){return()=>{let{activeRange:t,currentRange:n,viewTitle:r,options:{view:i}}=e,a;return V(()=>{a=ba(i,r,n,t)}),a}}var zo=class{#e;get auxComponents(){return B(this.#e)}set auxComponents(e){N(this.#e,e,!0)}#t;get currentRange(){return B(this.#t)}set currentRange(e){N(this.#t,e)}#n;get activeRange(){return B(this.#n)}set activeRange(e){N(this.#n,e)}#r;get fetchedRange(){return B(this.#r)}set fetchedRange(e){N(this.#r,e,!0)}#i;get events(){return B(this.#i)}set events(e){N(this.#i,e)}#a;get filteredEvents(){return B(this.#a)}set filteredEvents(e){N(this.#a,e)}#o;get mainEl(){return B(this.#o)}set mainEl(e){N(this.#o,e,!0)}#s;get now(){return B(this.#s)}set now(e){N(this.#s,e,!0)}#c;get resources(){return B(this.#c)}set resources(e){N(this.#c,e)}#l;get today(){return B(this.#l)}set today(e){N(this.#l,e,!0)}#u;get intlEventTime(){return B(this.#u)}set intlEventTime(e){N(this.#u,e)}#d;get intlDayHeader(){return B(this.#d)}set intlDayHeader(e){N(this.#d,e)}#f;get intlDayHeaderAL(){return B(this.#f)}set intlDayHeaderAL(e){N(this.#f,e)}#p;get intlTitle(){return B(this.#p)}set intlTitle(e){N(this.#p,e)}#m;get viewDates(){return B(this.#m)}set viewDates(e){N(this.#m,e)}#h;get viewTitle(){return B(this.#h)}set viewTitle(e){N(this.#h,e)}#g;get view(){return B(this.#g)}set view(e){N(this.#g,e)}#_;get viewComponent(){return B(this.#_)}set viewComponent(e){N(this.#_,e,!0)}#v;get extensions(){return B(this.#v)}set extensions(e){N(this.#v,e,!0)}#y;get features(){return B(this.#y)}set features(e){N(this.#y,e,!0)}#b;get interaction(){return B(this.#b)}set interaction(e){N(this.#b,e,!0)}#x;get iClasses(){return B(this.#x)}set iClasses(e){N(this.#x,e,!0)}#S;get iClass(){return B(this.#S)}set iClass(e){N(this.#S,e,!0)}options;setOption;setViewOptions;constructor(e,t){[this.options,this.setOption,this.setViewOptions]=yo(e,t),this.#e=M(en([])),this.#t=j(No(this)),this.#n=j(Po(this)),this.#r=M(en({events:{},resources:{}})),this.#i=M(po(this.options.events)),this.#a=j(Fo(this)),this.#o=M(),this.#s=M(en(Hi())),this.#c=M(po(this.options.resources)),this.#l=M(en(Ji(Q(this.now)))),this.#u=j(qa(this,`eventTimeFormat`)),this.#d=j(Ka(this,`dayHeaderFormat`)),this.#f=j(Ka(this,`dayHeaderAriaLabelFormat`)),this.#p=j(qa(this,`titleFormat`)),this.#m=j(Io(this)),this.#h=j(Lo(this)),this.#g=j(Ro(this)),this.#_=M(),this.#v=M(en({})),this.#y=M(en([])),this.#b=M(en({})),this.iEvents=new fo,this.#x=M(en(zi)),this.#S=M();for(let t of e)t.initState?.(this);this.#C()}#C(){let e=Oo(this);Cn(wo(this)),Cn(ko(this)),xn(To(this,e)),xn(Eo(this,e)),xn(Ao(this)),xn(jo(this)),xn(Mo(this))}},Bo=H(`<h2></h2>`),Vo=H(`<button><i></i></button>`),Ho=H(`<button><i></i></button>`),Uo=H(`<button> </button>`),Wo=H(`<button></button>`),Go=H(`<button> </button>`);function Ko(e,t){k(t,!0);let n=O(`state`),r=j(()=>n.currentRange),i=j(()=>n.today),a=j(()=>n.viewTitle),o=j(()=>n.viewDates),s=j(()=>n.options.buttonText),c=j(()=>n.options.customButtons),l=j(()=>n.options.date),u=j(()=>n.options.duration),d=j(()=>n.options.hiddenDays),f=j(()=>n.options.theme),p=j(()=>n.options.validRange),m=j(()=>n.options.view),h=M(!1),g=M(!1),_=M(!1),v=!1;Cn(()=>{B(o),B(p),t.buttons,V(()=>{v||(v=!0,t.buttons.includes(`prev`)&&(N(h,!1),B(p).start&&N(h,y(b),!0)),t.buttons.includes(`next`)&&(N(g,!1),B(p).end&&N(g,y(x),!0)),t.buttons.includes(`today`)&&(N(_,B(i)>=B(r).start&&B(i)<B(r).end,!0),!B(_)&&(B(p).start||B(p).end)&&N(_,y(S),!0)),fr().then(()=>v=!1))})});function y(e){let t=B(l);e();let r=B(o).every(e=>no(e,B(p)));return n.setOption(`date`,t),r}function b(){n.setOption(`date`,ra(Q(B(l)),B(u),B(d)))}function x(){n.setOption(`date`,na(Q(B(l)),B(u),B(d)))}function S(){n.setOption(`date`,Q(B(i)))}var ee=U();q(F(ee),17,()=>t.buttons,K,(e,t)=>{var r=U(),i=F(r),o=e=>{var t=Bo();qr(t,()=>yi(B(a))),L(()=>J(t,1,B(f).title)),W(e,t)},l=e=>{var n=Vo(),r=P(n);D(n),L(()=>{J(n,1,`${B(f).button??``} ec-${B(t)??``}`),si(n,`aria-label`,B(s).prev),si(n,`title`,B(s).prev),n.disabled=B(h),J(r,1,`${B(f).icon??``} ec-${B(t)??``}`)}),Sr(`click`,n,b),W(e,n)},u=e=>{var n=Ho(),r=P(n);D(n),L(()=>{J(n,1,`${B(f).button??``} ec-${B(t)??``}`),si(n,`aria-label`,B(s).next),si(n,`title`,B(s).next),n.disabled=B(g),J(r,1,`${B(f).icon??``} ec-${B(t)??``}`)}),Sr(`click`,n,x),W(e,n)},d=e=>{var n=Uo(),r=P(n,!0);D(n),L(()=>{J(n,1,`${B(f).button??``} ec-${B(t)??``}`),n.disabled=B(_),Ar(r,B(s)[B(t)])}),Sr(`click`,n,S),W(e,n)},p=e=>{var n=Wo();qr(n,()=>yi(B(c)[B(t)].text)),L(()=>J(n,1,Xr([B(f).button,`ec-${B(t)}`,B(c)[B(t)].active&&B(f).active]))),Sr(`click`,n,function(...e){B(c)[B(t)].click?.apply(this,e)}),W(e,n)},v=e=>{var r=Go(),i=P(r,!0);D(r),L(()=>{J(r,1,Xr([B(f).button,`ec-${B(t)}`,B(m)===B(t)&&B(f).active])),Ar(i,B(s)[B(t)])}),Sr(`click`,r,()=>n.setOption(`view`,B(t))),W(e,r)};G(i,e=>{B(t)===`title`?e(o):B(t)===`prev`?e(l,1):B(t)===`next`?e(u,2):B(t)===`today`?e(d,3):B(c)[B(t)]?e(p,4):B(t)!==``&&e(v,5)}),W(e,r)}),W(e,ee),A()}Cr([`click`]);var qo=H(`<div><!></div>`),Jo=H(`<div></div>`),Yo=H(`<nav></nav>`);function Xo(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).options.headerToolbar),i=j(()=>B(n).options.theme),a=j(()=>{let e={};for(let t of[`start`,`center`,`end`])e[t]=B(r)[t]?.split(` `).map(e=>e.split(`,`))??[];return e});var o=Yo();q(o,21,()=>Ci(B(a)),K,(e,t)=>{var n=Jo();q(n,21,()=>B(a)[B(t)],K,(e,t)=>{var n=U(),r=F(n),a=e=>{var n=qo();Ko(P(n),{get buttons(){return B(t)}}),D(n),L(()=>J(n,1,B(i).buttonGroup)),W(e,n)},o=e=>{Ko(e,{get buttons(){return B(t)}})};G(r,e=>{B(t).length>1?e(a):e(o,-1)}),W(e,n)}),D(n),L(()=>J(n,1,`ec-${B(t)??``}`)),W(e,n)}),D(o),L(()=>J(o,1,B(i).toolbar)),W(e,o),A()}var Zo=H(`<div><!> <!> <!></div>`);function Qo(e,t){k(t,!0);let n=Y(t,`plugins`,19,()=>[]),r=Y(t,`options`,19,()=>({})),i=new zo(n(),r());We(`state`,i);let a=j(()=>i.auxComponents),o=j(()=>i.features),s=j(()=>i.events),c=j(()=>i.interaction),l=j(()=>i.iClass),u=j(()=>i.view),d=j(()=>i.viewComponent),f=j(()=>i.options.date),p=j(()=>i.options.duration),m=j(()=>i.options.height),h=j(()=>i.options.hiddenDays),g=j(()=>i.options.customScrollbars),_=j(()=>i.options.theme),v={...r()};Cn(()=>{for(let[e,t]of Co(r(),v))V(()=>{y(e,t)});X(v,r())});function y(e,t){return i.setOption(e,t,!1),this}function b(e){let t=i.options[e];return Fi(t)?Yi(t):t}function x(){return i.fetchedRange.resources={},this}function S(){return i.fetchedRange.events={},this}function ee(){return B(s).map(ka)}function te(e){e=String(e);for(let t of B(s))if(t.id===e)return ka(t);return null}function ne(e){return e=Ca([e])[0],B(s).push(e),ka(e)}function re(e){let t=String(e.id),n=B(s).findIndex(e=>e.id===t);return n>=0?(e=Ca([e])[0],B(s)[n]=e,ka(e)):null}function ie(e){e=String(e);let t=B(s).findIndex(t=>t.id===e);return t>=0&&B(s).splice(t,1),this}function ae(){return xa(B(u))}function oe(){return B(c).action?.unselect(),this}function se(e,t){let n=_a(e,t);if(n){let r=fa(n)(e,t);return r.date=Yi(r.date),r}return null}function ce(){return i.setOption(`date`,na(Q(B(f)),B(p),B(h))),this}function le(){return i.setOption(`date`,ra(Q(B(f)),B(p),B(h))),this}var ue={setOption:y,getOption:b,refetchResources:x,refetchEvents:S,getEvents:ee,getEventById:te,addEvent:ne,updateEvent:re,removeEventById:ie,getView:ae,unselect:oe,dateFromPoint:se,next:ce,prev:le},de=Zo();let C;var w=P(de);Xo(w,{});var fe=I(w,2);return Kr(fe,()=>B(d),(e,t)=>{t(e,{})}),q(I(fe,2),17,()=>B(a),K,(e,t)=>{var n=U();Kr(F(n),()=>B(t),(e,t)=>{t(e,{})}),W(e,n)}),D(de),L(e=>{J(de,1,Xr([B(_).calendar,B(_).view,B(l)&&B(_)[B(l)],B(g)&&B(_).customScrollbars])),si(de,`role`,e),C=ri(de,``,C,{height:B(m)})},[()=>B(o).includes(`list`)?`list`:`table`]),W(e,de),A(ue)}function $o(e){return()=>{let{viewDates:t,options:{duration:n,hiddenDays:r}}=e,i;return V(()=>i=n.months||n.inWeeks?7-r.length:t.length),i}}function es(e,t){return()=>{let{options:{highlightedDates:n,validRange:r},viewDates:i}=e,{colsCount:a}=t,o=[];return V(()=>{let e=[],t=1,s=1;for(let c of i)e.push({gridColumn:t,gridRow:s,resource:void 0,dayStart:c,dayEnd:Ki(Q(c)),disabled:no(c,r),highlight:n.some(e=>Zi(e,c))}),t===a&&(o.push(e),e=[],t=0,++s),++t}),o}}function ts(e,t){return()=>{let{filteredEvents:n}=e,{grid:r}=t,i=[],a=[];return V(()=>{for(let e of n)for(let t of r)Fa(e.display)?e.allDay&&(a=a.concat(Ba(e,t))):i=i.concat(Ba(e,t));Va(i)}),{chunks:i,bgChunks:a}}}function ns(e,t){return()=>{let{iEvents:n}=e,{grid:r}=t,i=[];for(let[,e]of n)e&&V(()=>{for(let t of r)i=i.concat(Ba(e,t,!1))});return i}}var rs=class{#e;get colsCount(){return B(this.#e)}set colsCount(e){N(this.#e,e)}#t;get grid(){return B(this.#t)}set grid(e){N(this.#t,e)}#n;get gridEl(){return B(this.#n)}set gridEl(e){N(this.#n,e,!0)}#r;get chunks(){return B(this.#r)}set chunks(e){N(this.#r,e)}#i;get bgChunks(){return B(this.#i)}set bgChunks(e){N(this.#i,e)}#a;get iChunks(){return B(this.#a)}set iChunks(e){N(this.#a,e)}#o;get intlDayCell(){return B(this.#o)}set intlDayCell(e){N(this.#o,e)}#s;get intlDayPopover(){return B(this.#s)}set intlDayPopover(e){N(this.#s,e)}#c;get popupDay(){return B(this.#c)}set popupDay(e){N(this.#c,e,!0)}constructor(e){this.#e=j($o(e)),this.#t=j(es(e,this)),this.#n=M();let t=j(ts(e,this)),n=j(()=>B(t).chunks),r=j(()=>B(t).bgChunks);this.#r=j(()=>B(n)),this.#i=j(()=>B(r)),this.#a=j(ns(e,this)),this.hiddenChunks=new fo,this.#o=j(Ka(e,`dayCellFormat`)),this.#s=j(Ka(e,`dayPopoverFormat`)),this.#c=M(null)}},is=H(`<div><!></div>`);function as(e,t){k(t,!0);let n=Y(t,`el`,15),r=Y(t,`allDay`,3,!1),i=Y(t,`resource`,3,void 0),a=Y(t,`dateFromPoint`,3,()=>t.date),o=Y(t,`classes`,3,zi),s=Y(t,`disabled`,3,!1),c=Y(t,`highlight`,3,!1),l=Y(t,`role`,3,`cell`),u=Y(t,`noIeb`,3,!1),d=Y(t,`noBeb`,3,!1),p=j(()=>O(`state`)),m=j(()=>B(p).today),h=j(()=>B(p).interaction.action),g=j(()=>B(p).options.theme),_=j(()=>O(`view-state`)),v=j(()=>B(_).snap),y=j(()=>Zi(t.date,B(m))),b=j(()=>o()([B(g).day,B(g).weekdays?.[t.date.getUTCDay()],B(y)&&B(g).today,c()&&B(g).highlight,s()&&B(g).disabled,u()&&B(g).noIeb,d()&&B(g).noBeb]));gi(()=>{ua(n(),(e,t)=>({allDay:r(),date:a()(e,t),resource:i(),dayEl:n(),disabled:s()}))});let x=j(()=>!s()&&B(h)?e=>B(h).select(e,B(v)):void 0);var S=is();Gr(P(S),()=>t.children??f),D(S),mi(S,e=>n(e),()=>n()),L(()=>{J(S,1,Xr(B(b))),si(S,`role`,l())}),Sr(`pointerdown`,S,function(...e){B(x)?.apply(this,e)}),W(e,S),A()}Cr([`pointerdown`]);var os=H(`<div></div>`),ss=H(`<article><!></article>`);function cs(e,t){k(t,!0);let n=Y(t,`el`,15),r=Y(t,`classes`,3,zi),i=Y(t,`styles`,3,zi),a=j(()=>O(`state`)),o=j(()=>B(a).intlEventTime),s=j(()=>B(a).resources),c=j(()=>B(a).view),l=j(()=>B(a).options.displayEventEnd),u=j(()=>B(a).options.eventBackgroundColor),d=j(()=>B(a).options.eventColor),f=j(()=>B(a).options.eventContent),p=j(()=>B(a).options.eventClick),m=j(()=>B(a).options.eventDidMount),g=j(()=>B(a).options.eventClassNames),_=j(()=>B(a).options.eventMouseEnter),v=j(()=>B(a).options.eventMouseLeave),y=j(()=>B(a).options.eventTextColor),b=j(()=>B(a).options.theme),x=j(()=>t.chunk.event),S=j(()=>t.chunk.event.display),ee=j(()=>B(x).backgroundColor??oo(t.chunk.resource??co(B(x),B(s)))??B(u)??B(d)),te=j(()=>B(x).textColor??so(t.chunk.resource??co(B(x),B(s)))??B(y)),ne=j(()=>wi(i()({"background-color":B(ee),color:B(te)})).map(e=>`${e[0]}:${e[1]}`).concat(B(x).styles).join(`;`)),re=j(()=>r()([Fa(B(S))?B(b).bgEvent:B(b).event,...Oa(B(g),B(x),B(c))])),ie=j(()=>Ea(t.chunk,B(l),B(f),B(b),B(o),B(c))),ae=j(()=>h(B(ie),2)),oe=j(()=>B(ae)[0]),se=j(()=>B(ae)[1]);gi(()=>{Z(B(m))&&B(m)({event:ka(B(x)),timeText:B(oe),el:n(),view:xa(B(c))})});function ce(e,t){return Z(e)&&!Pa(t)?t=>e({event:ka(B(x)),el:n(),jsEvent:t,view:xa(B(c))}):void 0}let le=j(()=>!Fa(B(S))&&ce(B(p),B(S))||void 0),ue=j(()=>B(le)&&vi(B(le))),de=j(()=>ce(B(_),B(S))),C=j(()=>ce(B(v),B(S)));var w=ss();{let e=e=>{var t=os();qr(t,()=>yi(B(se))),L(()=>J(t,1,Xr(B(b).eventBody))),W(e,t)};var fe=P(w),pe=n=>{var r=U();Gr(F(r),()=>t.body,()=>e,()=>B(ee),()=>B(te)),W(n,r)},me=t=>{e(t)};G(fe,e=>{t.body?e(pe):e(me,-1)}),D(w),mi(w,e=>n(e),()=>n())}L(()=>{J(w,1,Xr(B(re))),ri(w,B(ne)),si(w,`role`,B(le)?`button`:void 0),si(w,`tabindex`,B(le)?0:void 0)}),Sr(`click`,w,function(...e){B(le)?.apply(this,e)}),Sr(`keydown`,w,function(...e){B(ue)?.apply(this,e)}),xr(`mouseenter`,w,function(...e){B(de)?.apply(this,e)}),xr(`mouseleave`,w,function(...e){B(C)?.apply(this,e)}),Sr(`pointerdown`,w,function(...e){t.onpointerdown?.apply(this,e)}),W(e,w),A()}Cr([`click`,`keydown`,`pointerdown`]);var ls=H(`<div><!></div>`);function us(e,t){k(t,!0);let n=Y(t,`weekday`,3,!0),r=Y(t,`colSpan`,3,1),i=Y(t,`ariaHidden`,3,!1),a=Y(t,`disabled`,3,!1),o=Y(t,`highlight`,3,!1),s=Y(t,`cssSpan`,3,!1),c=j(()=>O(`state`)),l=j(()=>B(c).today),u=j(()=>B(c).options.theme);var d=ls();let f;Gr(P(d),()=>t.children),D(d),L(e=>{J(d,1,e),si(d,`role`,i()?null:`columnheader`),si(d,`aria-colspan`,i()||r()<=1?null:r()),si(d,`aria-colindex`,i()?null:t.colIndex),si(d,`aria-hidden`,i()?`true`:null),f=ri(d,``,f,{"--ec-col-group-span":s()?r():void 0})},[()=>Xr([t.className??B(u).colHead,n()&&B(u).weekdays?.[t.date.getUTCDay()],n()&&Zi(t.date,B(l))&&B(u).today,o()&&B(u).highlight,a()&&B(u).disabled])]),W(e,d),A()}var ds=H(`<time></time>`);function fs(e,t){k(t,!0);let n=Y(t,`alPrefix`,3,``),r=j(()=>O(`state`)),i=j(()=>B(r).intlDayHeader),a=j(()=>B(r).intlDayHeaderAL);var o=ds();qr(o,()=>yi(B(i).format(t.date))),L((e,t)=>{si(o,`datetime`,e),si(o,`aria-label`,`${n()??``}${t??``}`)},[()=>Xi(t.date,10),()=>B(a).format(t.date)]),W(e,o),A()}function ps(e,t){k(t,!0);let n=Y(t,`el`,15),r=j(()=>O(`state`)),i=j(()=>B(r).iClasses),a=j(()=>B(r).interaction.action),o=j(()=>B(r).interaction.resizer),s=j(()=>O(`view-state`)),c=j(()=>B(s).snap),l=j(()=>t.chunk.event),u=j(()=>t.chunk.event.display),d=j(()=>e=>B(i)(e,B(l)));function p(e){return B(a)?.draggable(e)?n=>B(a).drag(e,n,t.forceDate,t.forceMargin,B(c)):B(a)?.noAction}let m=j(()=>!Fa(B(u))&&!Pa(B(u))?p(B(l)):void 0);cs(e,{get chunk(){return t.chunk},get classes(){return B(d)},get styles(){return t.styles},get onpointerdown(){return B(m)},get el(){return n()},set el(e){n(e)},body:(e,n=f)=>{var r=U(),i=F(r),a=e=>{var r=U();Kr(F(r),()=>B(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=U();Gr(F(r),n),W(e,r)},$$slots:{default:!0}})}),W(e,r)},s=e=>{var t=U();Gr(F(t),n),W(e,t)};G(i,e=>{B(o)?e(a):e(s,-1)}),W(e,r)},$$slots:{body:!0}}),A()}var ms=H(`<time></time>`),hs=H(`<span></span>`),gs=H(`<a role="button" tabindex="0" aria-haspopup="dialog"></a>`),_s=H(`<div><!> <!></div> <div><!></div>`,1);function vs(e,t){k(t,!0);let n=O(`state`),r=O(`view-state`),i=j(()=>n.features),a=j(()=>n.options.date),o=j(()=>n.options.firstDay),s=j(()=>n.options.moreLinkContent),c=j(()=>n.options.theme),l=j(()=>n.options.weekNumbers),u=j(()=>n.options.weekNumberContent),d=j(()=>r.hiddenChunks),f=j(()=>r.intlDayCell),p=j(()=>t.day.dayStart),m=j(()=>t.day.disabled),h=j(()=>t.day.highlight),g=j(()=>B(p).getUTCMonth()!==B(a).getUTCMonth()),_=j(()=>e=>[...e,B(g)&&B(c).otherMonth]),v=j(()=>B(l)&&B(p).getUTCDay()===(B(o)?1:0)),y=j(()=>B(v)?oa(aa(B(p),B(o)),B(u),B(p)):void 0),b=j(()=>B(d).get(B(p).getTime())),x=j(()=>{let e=``;if(B(b)){let t=`+`+B(b).length+` more`;e=B(s)?Z(B(s))?B(s)({num:B(b).length,text:t}):B(s):t}return e});function S(){r.popupDay=t.day}as(e,{get date(){return B(p)},allDay:!0,get classes(){return B(_)},get disabled(){return B(m)},get highlight(){return B(h)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},children:(e,t)=>{var n=_s(),r=F(n),a=P(r),o=e=>{var t=ms();qr(t,()=>yi(B(f).format(B(p)))),L(e=>si(t,`datetime`,e),[()=>Xi(B(p),10)]),W(e,t)},s=j(()=>B(i).includes(`dayNumber`));G(a,e=>{B(s)&&e(o)});var l=I(a,2),u=e=>{var t=hs();qr(t,()=>yi(B(y))),L(()=>J(t,1,B(c).weekNumber)),W(e,t)};G(l,e=>{B(v)&&e(u)}),D(r);var d=I(r,2),m=P(d),h=e=>{var t=gs(),n=j(()=>ya(S)),r=j(()=>vi(S)),i=j(ya);qr(t,()=>yi(B(x))),Sr(`click`,t,function(...e){B(n)?.apply(this,e)}),Sr(`keydown`,t,function(...e){B(r)?.apply(this,e)}),Sr(`pointerdown`,t,function(...e){B(i)?.apply(this,e)}),W(e,t)};G(m,e=>{B(b)&&e(h)}),D(d),L(()=>{J(r,1,B(c).dayHead),J(d,1,B(c).dayFoot)}),W(e,n)},$$slots:{default:!0}}),A()}Cr([`click`,`keydown`,`pointerdown`]);function ys(e,t){k(t,!0);let n=Y(t,`inPopup`,3,!1),r=j(()=>O(`state`)),i=j(()=>B(r).options.dayMaxEvents),a=j(()=>O(`view-state`)),o=j(()=>B(a).colsCount),s=j(()=>B(a).gridEl),c=j(()=>B(a).hiddenChunks),l=j(()=>B(a).popupDay),u=M(void 0),d=M(1),f=M(!1),p=j(()=>t.chunk.event),m=j(()=>t.chunk.event.display),h=j(()=>B(s).children.item((t.chunk.gridRow-1)*B(o)+t.chunk.gridColumn-1));xn(()=>{n()||N(d,ga(B(h).firstElementChild)||1,!0)});let g=j(()=>e=>{if(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,!Fa(B(m))){let r=n()?1:B(d);if(B(p)._margin){let[e,n]=B(p)._margin;e>r&&t.chunk.gridRow===n&&(r=e)}e[`margin-block-start`]=`${r}px`}return B(f)&&(e.visibility=`hidden`),e});function _(){N(d,Ha(t.chunk,ga(B(u)),ga(B(h).firstElementChild)||1),!0)}function v(){if(B(i)===!0){let e=ga(B(h))-y(B(h));if(N(f,t.chunk.bottom>e),B(f))for(let e of t.chunk.dates){let n=e.getTime();if(B(c).has(n)){let e=B(c).get(n);e.includes(t.chunk)||B(c).set(n,[...e,t.chunk])}else B(c).set(n,[t.chunk])}}else N(f,!1),B(c).size&&B(c).clear()}function y(e){let n=0;for(let r=0;r<t.chunk.dates.length&&(n=ki(n,ga(e.lastElementChild)),e=e.nextElementSibling,e);++r);return n}var b={reposition:_,hide:v};{let r=j(()=>n()&&B(l).dayStart),i=j(()=>[B(d),t.chunk.gridRow]);ps(e,{get chunk(){return t.chunk},get styles(){return B(g)},axis:`x`,get forceDate(){return B(r)},get forceMargin(){return B(i)},get el(){return B(u)},set el(e){N(u,e,!0)}})}return A(b)}var bs=H(`<dialog closedby="closerequest"><header><time></time> <a role="button" tabindex="0">&times;</a></header> <div></div></dialog>`);function xs(e,t){k(t,!0);let n=O(`view-state`),r=j(()=>O(`state`)),i=j(()=>B(r).interaction),a=j(()=>B(r).options.buttonText),o=j(()=>B(r).options.theme),s=j(()=>n.colsCount),c=j(()=>n.chunks),l=j(()=>n.gridEl),u=j(()=>n.intlDayPopover),d=j(()=>n.popupDay),f=M(void 0),p=M(``),m=j(()=>B(d).gridColumn),h=j(()=>B(d).gridRow),g=j(()=>B(d).dayStart),_=j(()=>B(d).dayEnd),v=j(()=>{let e=[];for(let t of B(c))t.gridRow===B(h)&&t.gridColumn<=B(m)&&t.gridColumn+t.dates.length>B(m)&&e.push(X({},t,za(t.event,B(g),B(_))));return e.sort((e,t)=>e.top-t.top),e});gi(()=>{B(f).show()}),xn(()=>{B(v).length?V(y):b()});function y(){let e=B(l).children.item((B(h)-1)*B(s)+B(m)-1),t=ma(B(f)),n=ma(e),r=ma(B(l));N(p,``);let i;if(t.width>=r.width){i=r.left-n.left;let e=n.right-r.right;N(p,B(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);N(p,B(p)+`inset-inline-start:${i}px;`);let a;t.height>=r.height?(a=r.top-n.top,N(p,B(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)),N(p,B(p)+`inset-block-start:${a}px;`)}function b(){n.popupDay=null}function x(){b(),B(i).action?.noClick()}var S=bs();let ee;var te=P(S),ne=P(te);qr(ne,()=>yi(B(u).format(B(g))));var re=I(ne,2);mn(re,!0);var ie=j(()=>ya(b)),ae=j(()=>vi(b));D(te);var oe=I(te,2);q(oe,21,()=>B(v),K,(e,t)=>{ys(e,{get chunk(){return B(t)},inPopup:!0})}),D(oe),D(S),mi(S,e=>N(f,e),()=>B(f)),qr(S,()=>bi(`pointerdown`)),L(e=>{J(S,1,B(o).popup),ee=ri(S,B(p),ee,{"grid-area":`${B(h)+1} / ${B(m)}`}),J(te,1,B(o).dayHead),si(ne,`datetime`,e),si(re,`aria-label`,B(a).close),J(oe,1,B(o).events)},[()=>Xi(B(g),10)]),xr(`pointerdownoutside`,S,x),xr(`close`,S,b),Sr(`click`,re,function(...e){B(ie)?.apply(this,e)}),Sr(`keydown`,re,function(...e){B(ae)?.apply(this,e)}),W(e,S),A()}Cr([`click`,`keydown`]);var Ss=H(`<div role="columnheader"><span></span></div>`),Cs=H(`<section><header><div role="row"></div></header> <div><div></div> <div><!> <!> <!></div></div> <!></section>`);function ws(e,t){k(t,!0);let n=O(`state`),r=new rs(n);We(`view-state`,r);let i=j(()=>n.intlDayHeader),a=j(()=>n.intlDayHeaderAL),o=j(()=>n.options.dayMaxEvents),s=j(()=>n.options.theme),c=j(()=>r.grid),l=j(()=>r.chunks),u=j(()=>r.bgChunks),d=j(()=>r.iChunks),f=j(()=>r.hiddenChunks),p=j(()=>r.popupDay),m=[];function h(){Ma(m,B(l)),B(f).clear(),fr().then(g)}function g(){B(f).size,m.forEach(e=>e?.hide())}xn(h),xn(g);var _=U(),v=F(_),y=e=>{var t=Cs();let f;var g=P(t),_=P(g);q(_,21,()=>B(c)[0],K,(e,t,n)=>{let r=()=>B(t).dayStart;var o=Ss();si(o,`aria-colindex`,1+n);var c=P(o);qr(c,()=>yi(B(i).format(r()))),D(o),L((e,t)=>{J(o,1,e),si(c,`aria-label`,t)},[()=>Xr([B(s).colHead,B(s).weekdays?.[r().getUTCDay()]]),()=>B(a).format(r())]),W(e,o)}),D(_),D(g);var v=I(g,2),y=P(v);q(y,21,()=>B(c),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{{let a=j(()=>i+1===ji(B(t))),o=j(()=>n+1===ji(B(c)));vs(e,{get day(){return B(r)},get noIeb(){return B(a)},get noBeb(){return B(o)}})}}),W(e,r)}),D(y),mi(y,e=>r.gridEl=e,()=>r?.gridEl);var b=I(y,2),x=P(b);q(x,19,()=>B(l),e=>e.id,(e,t,n)=>{mi(ys(e,{get chunk(){return B(t)}}),(e,t)=>m[t]=e,e=>m?.[e],()=>[B(n)])});var S=I(x,2);q(S,17,()=>B(u),e=>e.id,(e,t)=>{ys(e,{get chunk(){return B(t)}})}),q(I(S,2),17,()=>B(d),K,(e,t)=>{ys(e,{get chunk(){return B(t)}})}),D(b),D(v);var ee=I(v,2),te=e=>{xs(e,{})};G(ee,e=>{B(p)&&e(te)}),D(t),mi(t,e=>n.mainEl=e,()=>n?.mainEl),qr(t,()=>xi(h)),L(e=>{J(t,1,Xr([B(s).main,B(o)===!0&&B(s).uniform])),f=ri(t,``,f,e),J(g,1,B(s).header),J(_,1,B(s).grid),J(v,1,B(s).body),J(y,1,B(s).grid),J(b,1,B(s).events)},[()=>({"--ec-grid-cols":ji(B(c)[0]),"--ec-grid-rows":ji(B(c))})]),W(e,t)},b=j(()=>!Mi(B(c))&&!Mi(B(c)[0]));G(v,e=>{B(b)&&e(y)}),W(e,_),A()}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:Ya,component:()=>ws,dayHeaderFormat:{weekday:`long`},displayEventEnd:!1,duration:{days:1},theme:eo(`ec-day-grid ec-day-view`)},dayGridWeek:{buttonText:Xa,component:()=>ws,displayEventEnd:!1,theme:eo(`ec-day-grid ec-week-view`)},dayGridMonth:{buttonText:Za,component:Es,dayHeaderFormat:{weekday:`short`},dayHeaderAriaLabelFormat:{weekday:`long`},displayEventEnd:!1,duration:{months:1},theme:eo(`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:$i(t,r),end:Qi(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,Pa(a)?[r[a]]:!Fa(a)&&Ds(i,n,t)?[r.draggable]:[]]}}}function Ns(e){return()=>{let{interaction:t,mainEl:n}=e;if(n)return va(n,`scroll`,()=>{t.action.handleScroll(),t.pointer?.handleScroll()})}}var Ps=class{constructor(e){this.#e(e)}#e(e){Cn(Ms(e)),xn(Ns(e))}};function Fs(e,t){k(t,!0);let n=O(`state`),r=j(()=>n.events),i=j(()=>n.iEvents),a=j(()=>n.features),o=j(()=>n.view),s=j(()=>n.mainEl),c=j(()=>n.options.dateClick),l=j(()=>n.options.dragConstraint),u=j(()=>n.options.dragScroll),d=j(()=>n.options.editable),f=j(()=>n.options.eventStartEditable),p=j(()=>n.options.eventDragMinDistance),m=j(()=>n.options.eventDragStart),h=j(()=>n.options.eventDragStop),g=j(()=>n.options.eventDrop),_=j(()=>n.options.eventLongPressDelay),v=j(()=>n.options.eventResizeStart),y=j(()=>n.options.eventResizeStop),b=j(()=>n.options.eventResize),x=j(()=>n.options.longPressDelay),S=j(()=>n.options.resizeConstraint),ee=j(()=>n.options.selectable),te=j(()=>n.options.select),ne=j(()=>n.options.selectBackgroundColor),re=j(()=>n.options.selectConstraint),ie=j(()=>n.options.selectLongPressDelay),ae=j(()=>n.options.selectMinDistance),oe=j(()=>n.options.unselect),se=j(()=>n.options.unselectAuto),ce=j(()=>n.options.unselectCancel),le=j(()=>n.options.validRange),ue,de,C,w,fe,pe,me,he,ge,_e,ve,ye,be,xe,Se,Ce,we,Te,Ee,De,Oe,ke,Ae,T,je,E,Me;function Ne(e){return Ds(e,B(f),B(d))}function D(e,t,n,r,i){ue||(ue=ot(t)?1:6,at()&&(C=e,Le(t,i),n&&(pe=n),r&&(je=r),Te=`dragging`,Re(t)))}function Pe(e,t,n,r,i,a,o,s){ue||(ue=ot(t)?n?3:2:6,at()&&(C=e,Le(t,s),i&&(pe=i),a&&(je=a),Te=r===`x`?`resizingX`:`resizingY`,nt()?(Ee=Q(C.end),we?(ta(Ee,C.start),Ee>=C.end&&qi(Ee)):(Gi(Ee,E),Ee<C.start&&(Ee=C.start),pe=C.start)):(Ee=Q(C.start),we?(ta(Ee,C.end),Ee<=C.start&&!o&&Ki(Ee)):(Wi(Ee,E),Ee>C.end&&(Ee=C.end),pe=C.end,o||(pe=Gi(Q(pe),E))),o&&!we&&(Me=E)),Re(t)))}function Fe(e,t){ue||(ue=ot(e)?B(ee)&&!B(a).includes(`list`)?4:5:6,at()&&(Le(e,t),Te=`selecting`,De=we?Ui({day:1}):E,C={allDay:we,start:pe,end:Wi(Q(pe),De),resourceIds:he?[he.id]:[]},Re(e)))}function Ie(){ue||=6}function Le(e,t){window.getSelection().removeAllRanges(),_e=ye=e.clientX,ve=be=e.clientY,E=t?.duration;let n=_a(ye,be);({allDay:we,date:pe,resource:he}=fa(n)(ye,be)),Se=B(s)!==ha(n,3),xe=ha(n,1),Ge(),e.pointerType!==`mouse`&&(Ae=setTimeout(()=>{ue&&(de=!0,Re(e))},(it()?B(ie):B(_))??B(x)))}function Re(e){if(de||e&&e.pointerType===`mouse`&&et()>=(it()?B(ae):B(p))){de=!0,st(e),n.iClass=Te,w||(it()?qe():Ke(e,tt()?B(v):B(m)));let t=We(Ue());if(t){let n;if({allDay:n,date:me,resource:ge}=t,n===we){let t=Ye({},w),n=B(S);Ce=Ui((me-pe)/1e3),nt()?(t.start=Wi(Q(C.start),Ce),t.start>Ee&&(t.start=Ee,Ce=Ui((Ee-C.start)/1e3))):(t.end=Wi(Q(C.end),Ce),Me&&Wi(t.end,Me),tt()?t.end<Ee&&(t.end=Ee,Ce=Ui((Ee-C.end)/1e3)):it()?(t.end<C.end?(t.start=Gi(t.end,De),t.end=C.end):t.start=C.start,n=B(re)):(t.start=Wi(Q(C.start),Ce),he&&(t.resourceIds=C.resourceIds.filter(e=>e!==he.id),t.resourceIds.push(ge.id)),n=B(l)));do{if(n!==void 0&&(t=Ye(Aa(C),t),n(it()?Qe(t,e):$e(t,C,e))===!1)){Ze(C);break}Ze(t)}while(0)}}}B(u)&&As(()=>{T&&(Se||(be<T.top+24&&(B(s).scrollTop+=ki(-8,(be-T.top-24)/3)),be>T.bottom-24&&(B(s).scrollTop+=Oi(8,(be-T.bottom+24)/3))),ye<T.left+24&&(B(s).scrollLeft+=ki(-8,(ye-T.left-24)/3)),ye>T.right-24&&(B(s).scrollLeft+=Oi(8,(ye-T.right+24)/3)),be<24&&window.scrollBy(0,ki(-8,(be-24)/3)),be>window.innerHeight-24&&window.scrollBy(0,Oi(8,(be-window.innerHeight+24)/3)))})}function ze(){at()&&(Ge(),Re())}function Be(e){at()&&e.isPrimary&&(ye=e.clientX,be=e.clientY,Re(e))}function Ve(e){if(Oe&&B(se)&&!(B(ce)&&e.target.closest(B(ce)))&&st(e),ue&&e.isPrimary){if(de)if(it()){if(Oe=!0,Z(B(te))){let t=Qe(w,e);B(te)(t)}}else{C.display=fe;let t=tt()?B(y):B(h);Z(t)&&t({event:ka(C),jsEvent:e,view:xa(B(o))});let n=Aa(C);if(Xe(C,w),Je(),t=tt()?B(b):B(g),Z(t)){let r=C,i=$e(C,n,e);t(X(i,{revert(){Xe(r,n)}}))}}else if((rt()||it())&&Z(B(c))&&!ke){ye=e.clientX,be=e.clientY;let t=_a(ye,be);if(t){let{allDay:n,date:r,resource:i}=fa(t)(ye,be);B(c)({allDay:n,date:Yi(r),dateStr:Xi(r),dayEl:t,jsEvent:e,view:xa(B(o)),resource:i})}}He()}ke=!1}function He(){de=!1,ue=_e=ve=ye=be=C=fe=pe=me=he=ge=Ce=Me=we=Ee=De=je=xe=T=E=void 0,n.iClass=void 0,Ae&&=(clearTimeout(Ae),void 0)}function Ue(){return _a(js(ye,T.left,T.right),js(be,T.top,T.bottom))}function We(e){if(e){let t=fa(e)(ye,be);if(t.disabled){if(!B(le).end||t.date<B(le).end)return We(e.nextElementSibling);if(!B(le).start||t.date>B(le).start)return We(e.previousElementSibling)}else return(it()||tt())&&t.resource&&!w.resourceIds.includes(t.resource.id)&&!B(a).includes(`timeline`)?We(ye>_e?e.previousElementSibling:e.nextElementSibling):t}return null}function Ge(){let e=ma(B(s)),t=ma(xe),n=e.width/B(s).offsetWidth,r=e.height/B(s).offsetHeight,i=Bi();T={left:ki(0,i?e.right-B(s).clientWidth*n:t.left+B(s).scrollLeft*n),right:Oi(document.documentElement.clientWidth,i?t.right+B(s).scrollLeft*n:e.left+B(s).clientWidth*n)-2,top:ki(0,t.top+(Se?0:B(s).scrollTop)*r),bottom:Oi(document.documentElement.clientHeight,Se?t.bottom:e.top+B(s).clientHeight*r)-2}}function Ke(e,t){Z(t)&&t({event:ka(C),jsEvent:e,view:xa(B(o))}),fe=C.display,C.display=`preview`,w=Aa(C),je!==void 0&&(w._margin=je),Me&&Wi(w.end,Me),C.display=`ghost`,B(r).length=B(r).length}function qe(){w={id:`{select}`,allDay:C.allDay,start:C.start,title:``,display:`preview`,extendedProps:{},backgroundColor:B(ne),resourceIds:C.resourceIds,classNames:[],styles:[]}}function Je(){w=void 0,B(i).delete(`action`)}function Ye(e,t){return e.start=t.start,e.end=t.end,e.resourceIds=t.resourceIds,{...e}}function Xe(e,t){Ye(e,t),B(r).length=B(r).length}function Ze(e){w=Ye(w,e),B(i).set(`action`,w)}function Qe(e,t){let{start:n,end:r}=ka(e);return{start:n,end:r,startStr:Xi(e.start),endStr:Xi(e.end),allDay:we,view:xa(B(o)),resource:he,jsEvent:t}}function $e(e,t,n){let r;return r=tt()?nt()?{startDelta:Ce,endDelta:Ui(0)}:{startDelta:Ui(0),endDelta:Ce}:{delta:Ce,oldResource:he===ge?void 0:he,newResource:he===ge?void 0:ge},X(r,{event:ka(e),oldEvent:ka(t),view:xa(B(o)),jsEvent:n}),r}function et(){return Math.sqrt((ye-_e)**2+(be-ve)**2)}function tt(){return ue===2||nt()}function nt(){return ue===3}function rt(){return ue===5}function it(){return ue===4}function at(){return ue&&ue<5}function ot(e){return e.isPrimary&&(e.pointerType!==`mouse`||e.buttons&1)}function st(e){Oe&&(Oe=!1,Je(),Z(B(oe))&&B(oe)({jsEvent:e,view:xa(B(o))}))}Cn(()=>{B(o),st()});function ct(){ke=!0}function lt(e){if(at()){let t=e.target,n=[],r=()=>Li(n);n.push(va(t,`touchmove`,ut(()=>de))),n.push(va(t,`touchend`,r)),n.push(va(t,`touchcancel`,r))}}function ut(e){return t=>{e()&&t.preventDefault()}}gi(()=>va(window,`touchmove`,Ri,{passive:!1}));var dt={draggable:Ne,drag:D,resize:Pe,select:Fe,noAction:Ie,handleScroll:ze,unselect:st,noClick:ct};xr(`pointermove`,tn,Be),xr(`pointerup`,tn,Ve),xr(`pointercancel`,tn,He),xr(`scroll`,tn,ze);var ft=j(()=>ut(at));xr(`selectstart`,tn,function(...e){B(ft)?.apply(this,e)});var pt=j(()=>ut(()=>Ae));return xr(`contextmenu`,tn,function(...e){B(pt)?.apply(this,e)}),xr(`touchstart`,tn,lt,void 0,!0),A(dt)}function Is(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).iEvents),i=j(()=>B(n).options.slotDuration),a=0,o=0,s;function c(){let e=_a(a,o);if(e&&!B(r).has(`action`)){let{allDay:t,date:n,resource:c,disabled:l}=fa(e)(a,o);if(!l){s||d(),s.allDay=t,s.start=n,s.end=Wi(Q(n),B(i)),s.resourceIds=c?[c.id]:[],B(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,B(r).delete(`pointer`)}function p(e){return e.isPrimary&&e.pointerType===`mouse`}var m={handleScroll:l};return xr(`pointermove`,tn,u),xr(`scroll`,tn,l),A(m)}var Ls=H(`<div></div>`),Rs=H(`<div></div>`),zs=H(`<!> <!> <!>`,1);function Bs(e,t){k(t,!0);let n=Y(t,`forceDate`,3,void 0),r=Y(t,`forceMargin`,3,void 0),i=j(()=>O(`state`)),a=j(()=>B(i).interaction.action),o=j(()=>B(i).options.editable),s=j(()=>B(i).options.eventDurationEditable),c=j(()=>B(i).options.eventResizableFromStart),l=j(()=>B(i).options.theme),u=j(()=>O(`view-state`)),d=j(()=>B(u).snap),f=j(()=>t.chunk.event),p=j(()=>t.chunk.event.display),m=j(()=>!Fa(B(p))&&!Pa(B(p))&&Os(B(f),B(s),B(o)));function h(e){return i=>B(a).resize(B(f),i,e,t.axis,n(),r(),t.chunk.zeroDuration,B(d))}var g=zs(),_=F(g),v=e=>{var t=Ls(),n=j(()=>h(!0));L(()=>J(t,1,`${B(l).resizer??``} ${B(l).start??``}`)),Sr(`pointerdown`,t,function(...e){B(n)?.apply(this,e)}),W(e,t)};G(_,e=>{B(m)&&B(c)&&e(v)});var y=I(_,2);Gr(y,()=>t.children);var b=I(y,2),x=e=>{var t=Rs(),n=j(()=>h(!1));L(()=>J(t,1,B(l).resizer)),Sr(`pointerdown`,t,function(...e){B(n)?.apply(this,e)}),W(e,t)};G(b,e=>{B(m)&&e(x)}),W(e,g),A()}Cr([`pointerdown`]);var Vs=H(`<!> <!>`,1);function Hs(e,t){k(t,!0);let n=O(`state`);new Ps(n);let r=j(()=>n.interaction),i=j(()=>n.options.pointer);B(r).resizer=Bs;var a=Vs(),o=F(a);mi(Fs(o,{}),e=>B(r).action=e,()=>B(r)?.action);var s=I(o,2),c=e=>{mi(Is(e,{}),e=>B(r).pointer=e,()=>B(r)?.pointer)};G(s,e=>{B(i)&&e(c)}),W(e,a),A()}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 B(this.#e)}set intlListDay(e){N(this.#e,e)}#t;get intlListDaySide(){return B(this.#t)}set intlListDaySide(e){N(this.#t,e)}constructor(e){this.#e=j(Ka(e,`listDayFormat`)),this.#t=j(Ka(e,`listDaySideFormat`))}},Gs=H(`<div></div> <!>`,1);function Ks(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).interaction),i=j(()=>B(n).options.theme),a=j(()=>e=>(delete e[`background-color`],delete e.color,e));{let n=(e,t=f,n=f,r=f)=>{var a=Gs(),o=F(a);let s;Gr(I(o,2),t),L(()=>{J(o,1,B(i).eventTag),s=ri(o,``,s,{"background-color":n()})}),W(e,a)},o=j(()=>B(r).action?.noAction);cs(e,{get chunk(){return t.chunk},get styles(){return B(a)},get onpointerdown(){return B(o)},body:n,$$slots:{body:!0}})}A()}var qs=H(`<h4><time></time> <time></time></h4> <!>`,1);function Js(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).filteredEvents),i=j(()=>B(n).options.highlightedDates),a=j(()=>B(n).options.theme),o=j(()=>B(n).options.validRange),s=j(()=>O(`view-state`)),c=j(()=>B(s).intlListDay),l=j(()=>B(s).intlListDaySide),u=j(()=>B(i).some(e=>Zi(e,t.date))),d=j(()=>no(t.date,B(o))),f=j(()=>Xi(t.date,10)),p=j(()=>{let e=[];if(!B(d)){let n=t.date,i=Ki(Q(t.date));for(let t of B(r))if(!Fa(t.display)&&Na(t,n,i)){let r=za(t,n,i);e.push(r)}}return e});var m=U(),h=F(m),g=e=>{as(e,{get date(){return t.date},allDay:!0,role:`listitem`,get disabled(){return B(d)},get highlight(){return B(u)},children:(e,n)=>{var r=qs(),i=F(r),o=P(i);qr(o,()=>yi(B(c).format(t.date)));var s=I(o,2);qr(s,()=>yi(B(l).format(t.date))),D(i),q(I(i,2),17,()=>B(p),e=>e.event,(e,t)=>{Ks(e,{get chunk(){return B(t)}})}),L(()=>{J(i,1,B(a).dayHead),si(o,`datetime`,B(f)),J(s,1,B(a).daySide),si(s,`datetime`,B(f))}),W(e,r)},$$slots:{default:!0}})};G(h,e=>{B(p).length&&e(g)}),W(e,m),A()}var Ys=H(`<div></div>`),Xs=H(`<section><!></section>`);function Zs(e,t){k(t,!0);let n=O(`state`);We(`view-state`,new Ws(n));let r=j(()=>n.filteredEvents),i=j(()=>n.view),a=j(()=>n.viewDates),o=j(()=>n.options.noEventsClick),s=j(()=>n.options.noEventsContent),c=j(()=>n.options.theme),l=j(()=>{let e=!0;if(!Mi(B(a))){let t=B(a)[0],n=Ki(Q(B(a).at(-1)));for(let i of B(r))if(!Fa(i.display)&&i.start<n&&i.end>t){e=!1;break}}return e}),u=j(()=>Z(B(s))?B(s)():B(s));function d(e){Z(B(o))&&B(o)({jsEvent:e,view:xa(B(i))})}var f=Xs(),p=P(f),m=e=>{var t=Ys();qr(t,()=>yi(B(u))),L(()=>J(t,1,B(c).noEvents)),Sr(`click`,t,d),W(e,t)},h=e=>{var t=U();q(F(t),17,()=>B(a),K,(e,t)=>{Js(e,{get date(){return B(t)}})}),W(e,t)};G(p,e=>{B(l)?e(m):e(h,-1)}),D(f),mi(f,e=>n.mainEl=e,()=>n?.mainEl),L(()=>J(f,1,B(c).main)),W(e,f),A()}Cr([`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:`list`,listWeek:`list`,listMonth:`list`,listYear:`list`}),X(e.theme,{daySide:`ec-day-side`,eventTag:`ec-event-tag`,noEvents:`ec-no-events`}),X(e.views,{listDay:{buttonText:Ya,component:$s,duration:{days:1},theme:eo(`ec-list ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},listWeek:{buttonText:Xa,component:$s,duration:{weeks:1},theme:eo(`ec-list ec-week-view`)},listMonth:{buttonText:Za,component:$s,duration:{months:1},theme:eo(`ec-list ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},listYear:{buttonText:Qa,component:$s,duration:{years:1},theme:eo(`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&&Na(e,s,c,o)){let t=za(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&&Ga(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){Wi(qi(n),r);let e=qi(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:Ui,slotDuration:Ui,slotLabelInterval:e=>e===void 0?void 0:Ui(e),slotMaxTime:Ui,slotMinTime:Ui,snapDuration:e=>e===void 0?void 0:Ui(e)})}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 V(()=>{let e=1;for(let t of n)o.push({gridColumn:e,gridRow:1,resource:void 0,start:Wi(Q(t),a.min),end:Wi(Q(t),a.max),dayStart:t,dayEnd:Ki(Q(t)),disabled:no(t,i),highlight:r.some(e=>Zi(e,t))}),++e}),[o]}}function lc(e,t){return()=>{let{filteredEvents:n}=e,{grid:r}=t,i=[],a=[],o=[],s=[];return V(()=>{for(let e of n)for(let t of r)Fa(e.display)?(a=a.concat(ec(e,t)),e.allDay&&(s=s.concat(Ba(e,t)))):e.allDay?o=o.concat(Ba(e,t)):i=i.concat(ec(e,t));tc(i),Va(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&&V(()=>{for(let t of r)e.allDay?a=a.concat(Ba(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 V(()=>{o=uo(i,a,r,n,t)}),o}}function fc(e){return()=>{let{options:{slotDuration:t,slotLabelInterval:n}}=e,r;return V(()=>{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 V(()=>{o=lo(Ji(Hi()),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 B(this.#e)}set intlSlotLabel(e){N(this.#e,e)}#t;get slotLabelPeriodicity(){return B(this.#t)}set slotLabelPeriodicity(e){N(this.#t,e)}#n;get sidebarWidth(){return B(this.#n)}set sidebarWidth(e){N(this.#n,e,!0)}#r;get snap(){return B(this.#r)}set snap(e){N(this.#r,e)}constructor(e){this.#e=j(Ka(e,`slotLabelFormat`)),this.#t=j(fc(e)),this.#n=M(0),this.#r=j(mc(e))}}}function gc(e){return class extends e{#e;get slotTimeLimits(){return B(this.#e)}set slotTimeLimits(e){N(this.#e,e)}#t;get slots(){return B(this.#t)}set slots(e){N(this.#t,e)}#n;get chunks(){return B(this.#n)}set chunks(e){N(this.#n,e)}#r;get bgChunks(){return B(this.#r)}set bgChunks(e){N(this.#r,e)}#i;get allDayChunks(){return B(this.#i)}set allDayChunks(e){N(this.#i,e)}#a;get allDayBgChunks(){return B(this.#a)}set allDayBgChunks(e){N(this.#a,e)}#o;get iChunks(){return B(this.#o)}set iChunks(e){N(this.#o,e)}#s;get allDayIChunks(){return B(this.#s)}set allDayIChunks(e){N(this.#s,e)}constructor(e){super(e),this.#e=j(dc(e)),this.#t=j(pc(e,this));let t=j(lc(e,this)),n=j(()=>B(t).chunks),r=j(()=>B(t).bgChunks),i=j(()=>B(t).allDayChunks),a=j(()=>B(t).allDayBgChunks);this.#n=j(()=>B(n)),this.#r=j(()=>B(r)),this.#i=j(()=>B(i)),this.#a=j(()=>B(a));let o=j(uc(e,this)),s=j(()=>B(o).iChunks),c=j(()=>B(o).allDayIChunks);this.#o=j(()=>B(s)),this.#s=j(()=>B(c))}}}var _c=class extends gc(hc()){#e;get grid(){return B(this.#e)}set grid(e){N(this.#e,e)}constructor(e){super(e),this.#e=j(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 V(()=>{i&&(o=r.filter(e=>n.some(n=>!Fa(n.display)&&Na(n,t.start,t.end,e)))),o.length||(o=ro([{}]))}),o}}function yc(e,t){return()=>{let{viewDates:n,options:{datesAboveResources:r,highlightedDates:i,validRange:a}}=e,{slotTimeLimits:o,viewResources:s}=t,c=[];return V(()=>{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:Wi(Q(t),o.min),end:Wi(Q(t),o.max),dayStart:t,dayEnd:Ki(Q(t)),disabled:no(t,a),highlight:i.some(e=>Zi(e,t))}),++e}c.push(s)}}),c}}function bc(e){return class extends e{#e;get viewResources(){return B(this.#e)}set viewResources(e){N(this.#e,e)}constructor(e){super(e),this.#e=j(vc(e))}}}var xc=class extends bc(gc(hc())){#e;get grid(){return B(this.#e)}set grid(e){N(this.#e,e)}constructor(e){super(e),this.#e=j(yc(e,this))}},Sc=H(`<span></span>`);function Cc(e,t){k(t,!0);let n=Y(t,`date`,3,void 0),r=Y(t,`setLabel`,3,void 0),i=j(()=>O(`state`)),a=j(()=>B(i).intlDayHeaderAL),o=j(()=>B(i).options.resourceLabelContent),s=j(()=>B(i).options.resourceLabelDidMount),c=M(void 0),l=j(()=>B(o)?Z(B(o))?B(o)({resource:t.resource,date:n()?Yi(n()):void 0}):B(o):t.resource.title),u=M(void 0);xn(()=>{B(l),V(()=>{n()?N(u,B(a).format(n())+`, `+B(c).innerText):r()&&(N(u,void 0),r()(B(c).innerText))})}),gi(()=>{Z(B(s))&&B(s)({resource:t.resource,date:n()?Yi(n()):void 0,el:B(c)})});var d=Sc();mi(d,e=>N(c,e),()=>B(c)),qr(d,()=>yi(B(l))),L(()=>si(d,`aria-label`,B(u))),W(e,d),A()}function wc(e,t){k(t,!0);let n=Y(t,`allDay`,3,!1),r=j(()=>O(`state`)),i=j(()=>B(r).options.slotHeight),a=j(()=>O(`view-state`)),o=j(()=>B(a).snap),s=j(()=>t.day.dayStart),c=j(()=>t.day.start),l=j(()=>t.day.resource),u=j(()=>t.day.disabled),d=j(()=>t.day.highlight),f=M(void 0);function p(e,t){if(n())return B(s);{let e=ma(B(f)),n=e.height/B(f).offsetHeight;return Wi(Q(B(c)),B(o).duration,Ei((t-e.top)/(B(i)*B(o).ratio*n)))}}as(e,{get date(){return B(s)},get allDay(){return n()},get resource(){return B(l)},dateFromPoint:p,get disabled(){return B(u)},get highlight(){return B(d)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return B(f)},set el(e){N(f,e,!0)}}),A()}function Tc(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).options.slotEventOverlap),i=j(()=>B(n).options.slotDuration),a=j(()=>B(n).options.slotHeight),o=j(()=>e=>{let n=$(B(i)),o=t.chunk.top/n*B(a),s=t.chunk.height/n*B(a)||B(a),c=t.chunk.maxHeight/n*B(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} * ${B(r)?.5*(1+n-t.chunk.groupColumn):1})`}return e});ps(e,{get chunk(){return t.chunk},get styles(){return B(o)},axis:`y`}),A()}function Ec(e,t){k(t,!0);let n=M(void 0),r=M(0),i=j(()=>t.chunk.event),a=j(()=>e=>(e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,(B(r)||B(i)._margin)&&(e[`margin-block-start`]=`${B(i)._margin??B(r)}px`),e));function o(){N(r,Ha(t.chunk,ga(B(n))),!0)}var s={reposition:o};return ps(e,{get chunk(){return t.chunk},get styles(){return B(a)},axis:`x`,get forceMargin(){return B(r)},get el(){return B(n)},set el(e){N(n,e,!0)}}),A(s)}var Dc=H(`<div></div>`);function Oc(e,t){k(t,!0);let n=Y(t,`span`,3,1),r=j(()=>O(`state`)),i=j(()=>B(r).mainEl),a=j(()=>B(r).now),o=j(()=>B(r).today),s=j(()=>B(r).options.slotDuration),c=j(()=>B(r).options.slotHeight),l=j(()=>B(r).options.theme),u=j(()=>O(`view-state`)),d=j(()=>B(u).sidebarWidth),f=j(()=>{for(let e of t.days)if(Zi(e.dayStart,B(o)))return e;return{}}),p=j(()=>B(f).gridColumn),m=j(()=>B(f).start),h=j(()=>B(f).end),g=j(()=>{if(B(a)<B(m)||B(a)>B(h))return null;let e=$(B(s));return(B(a)-B(m))/1e3/e*B(c)}),_=j(()=>({root:B(i),rootMargin:Bi()?`0px -${B(d)+5.5}px 0px 0px`:`0px 0px 0px -${B(d)+5.5}px`,threshold:0}));function v(e,t){e.classList.toggle(B(l).hidden,!t.isIntersecting)}var y=U(),b=F(y),x=e=>{var t=Dc();let r;qr(t,()=>Si(v,B(_))),L(()=>{J(t,1,B(l).nowIndicator),r=ri(t,``,r,{"grid-column":`${B(p)+1} / span ${n()??``}`,"inset-block-start":`${B(g)??``}px`})}),W(e,t)};G(b,e=>{B(p)&&B(g)!==null&&e(x)}),W(e,y),A()}var kc=H(`<div><aside></aside> <div role="row"></div> <div><!> <!> <!></div></div>`),Ac=H(`<div><time></time></div>`),jc=H(`<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){k(t,!0);let n=Y(t,`viewState`,7),r=O(`state`);n()||n(new _c(r)),We(`view-state`,n());let i=j(()=>r.mainEl),a=j(()=>r.viewDates),o=j(()=>r.options.allDayContent),s=j(()=>r.options.allDaySlot),c=j(()=>r.options.columnWidth),l=j(()=>r.options.nowIndicator),u=j(()=>r.options.scrollTime),d=j(()=>r.options.slotHeight),f=j(()=>r.options.slotDuration),p=j(()=>r.options.theme),m=j(()=>n().allDayChunks),h=j(()=>n().allDayBgChunks),g=j(()=>n().allDayIChunks),_=j(()=>n().bgChunks),v=j(()=>n().chunks),y=j(()=>n().iChunks),b=j(()=>n().grid),x=j(()=>n().sidebarWidth),S=j(()=>n().slots),ee=j(()=>n().slotLabelPeriodicity),te=j(()=>n().slotTimeLimits),ne=M(0),re=j(()=>nc(B(o)));xn(()=>{B(u),Mi(B(a))||fr().then(ie)});function ie(){B(i).scrollTop=(($(B(u))-$(B(te).min))/$(B(f))-.5)*B(d)}let ae=[];function oe(){Ma(ae,B(m))}xn(oe);var se=U(),ce=F(se),le=e=>{var i=jc();let a;var o=P(i),u=P(o),f=I(u,2),te=P(f),ie=e=>{var n=U();Gr(F(n),()=>t.header),W(e,n)},se=e=>{var t=U();q(F(t),17,()=>B(b)[0],K,(e,t,n)=>{let r=()=>B(t).dayStart,i=()=>B(t).disabled,a=()=>B(t).highlight;us(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{fs(e,{get date(){return r()}})},$$slots:{default:!0}})}),W(e,t)};G(te,e=>{t.header?e(ie):e(se,-1)}),D(f);var ce=I(f,2),le=e=>{var t=kc(),n=P(t);qr(n,()=>yi(B(re)));var r=I(n,2);q(r,21,()=>B(b),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{{let a=j(()=>n+1===ji(B(b))&&i+1===ji(B(t)));wc(e,{get day(){return B(r)},allDay:!0,get noIeb(){return B(a)}})}}),W(e,r)}),D(r);var i=I(r,2),a=P(i);q(a,19,()=>B(m),e=>e.id,(e,t,n)=>{mi(Ec(e,{get chunk(){return B(t)}}),(e,t)=>ae[t]=e,e=>ae?.[e],()=>[B(n)])});var o=I(a,2);q(o,17,()=>B(h),e=>e.id,(e,t)=>{Ec(e,{get chunk(){return B(t)}})}),q(I(o,2),17,()=>B(g),K,(e,t)=>{Ec(e,{get chunk(){return B(t)}})}),D(i),D(t),L(()=>{J(t,1,B(p).allDay),J(n,1,B(p).sidebar),J(r,1,B(p).grid),J(i,1,B(p).events)}),W(e,t)};G(ce,e=>{B(s)&&e(le)}),D(o);var ue=I(o,2),de=P(ue);q(de,21,()=>B(S),K,(e,t,n)=>{var r=Ac();let i;var a=P(r);qr(a,()=>yi(B(t)[1])),D(r),L(()=>{J(r,1,Xr([B(p).slot,!n&&B(p).hidden])),i=ri(r,``,i,{"--ec-slot-label-periodicity":B(t)[2]}),si(a,`datetime`,B(t)[0])}),W(e,r)}),D(de);var C=I(de,2);q(C,21,()=>B(b),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{{let a=j(()=>n+1===ji(B(b))&&i+1===ji(B(t)));wc(e,{get day(){return B(r)},get noIeb(){return B(a)},noBeb:!0})}}),W(e,r)}),D(C);var w=I(C,2),fe=P(w);q(fe,17,()=>B(v),e=>e.id,(e,t)=>{Tc(e,{get chunk(){return B(t)}})});var pe=I(fe,2);q(pe,17,()=>B(_),e=>e.id,(e,t)=>{Tc(e,{get chunk(){return B(t)}})}),q(I(pe,2),17,()=>B(y),K,(e,t)=>{Tc(e,{get chunk(){return B(t)}})}),D(w),D(ue);var me=I(ue,2),he=e=>{var n=U(),r=F(n),i=e=>{var n=U();Gr(F(n),()=>t.nowIndicator),W(e,n)},a=e=>{Oc(e,{get days(){return B(b)[0]}})};G(r,e=>{t.nowIndicator?e(i):e(a,-1)}),W(e,n)};G(me,e=>{B(l)&&e(he)}),D(i),mi(i,e=>r.mainEl=e,()=>r?.mainEl),qr(i,()=>xi(oe)),L(e=>{J(i,1,B(p).main),a=ri(i,``,a,e),J(o,1,B(p).header),J(u,1,B(p).sidebar),J(f,1,B(p).grid),J(ue,1,B(p).body),J(de,1,B(p).sidebar),J(C,1,B(p).grid),J(w,1,B(p).events)},[()=>({"--ec-grid-cols":ji(B(b))*ji(B(b)[0]),"--ec-col-group-span":ji(B(b)[0]),"--ec-col-width":B(c)??`minmax(0, 1fr)`,"--ec-slot-label-periodicity":B(ee),"--ec-slot-height":`${B(d)??``}px`,"--ec-header-height":`${B(ne)??``}px`,"--ec-sidebar-width":`${B(x)??``}px`})]),fi(u,`offsetWidth`,e=>n().sidebarWidth=e),fi(o,`offsetHeight`,e=>N(ne,e)),W(e,i)},ue=j(()=>!Mi(B(b))&&!Mi(B(b)[0]));G(ce,e=>{B(ue)&&e(le)}),W(e,se),A()}var Nc=H(`<!> <!>`,1);function Pc(e,t){k(t,!0);let n=O(`state`),r=new xc(n),i=j(()=>n.today),a=j(()=>n.mainEl),o=j(()=>n.viewDates),s=j(()=>n.options.scrollTime),c=j(()=>n.options.datesAboveResources),l=j(()=>n.options.theme),u=j(()=>r.grid),d=j(()=>r.sidebarWidth),f=en([]);xn(()=>{B(c)&&(B(o),B(s),fr().then(p))});function p(){if(B(i)>=B(o)[0]&&B(i)<=B(o).at(-1))for(let e of B(u)){let t=e[0];if(Zi(t.dayStart,B(i))){B(a).scrollLeft=(B(a).scrollWidth-B(d))/(ji(B(u))*ji(e))*(t.gridColumn-1)*(Bi()?-1:1);break}}}Mc(e,{get viewState(){return r},header:e=>{var t=Nc(),n=F(t);q(n,17,()=>B(u),K,(e,t,n)=>{let r=j(()=>{let{dayStart:e,resource:n,disabled:r,highlight:i}=B(t)[0];return{date:e,resource:n,disabled:r,highlight:i}});{let i=j(()=>ji(B(u)[0])>1?B(l).colGroup:void 0),a=j(()=>ji(B(t))),o=j(()=>1+n*ji(B(t))),s=j(()=>B(c)&&B(r).disabled),d=j(()=>B(c)&&B(r).highlight);us(e,{get date(){return B(r).date},get className(){return B(i)},get weekday(){return B(c)},get colSpan(){return B(a)},get colIndex(){return B(o)},get disabled(){return B(s)},get highlight(){return B(d)},children:(e,t)=>{var i=U(),a=F(i),o=e=>{fs(e,{get date(){return B(r).date}})},s=e=>{Cc(e,{get resource(){return B(r).resource},setLabel:e=>f[n]=e+`, `})};G(a,e=>{B(c)?e(o):e(s,-1)}),W(e,i)},$$slots:{default:!0}})}});var r=I(n,2),i=e=>{var t=U();q(F(t),17,()=>B(u),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{let a=j(()=>{let{dayStart:e,resource:t,disabled:n,highlight:i}=B(r);return{date:e,resource:t,disabled:n,highlight:i}});{let r=j(()=>1+i+n*ji(B(t)));us(e,{get date(){return B(a).date},get colIndex(){return B(r)},get disabled(){return B(a).disabled},get highlight(){return B(a).highlight},children:(e,t)=>{var r=U(),i=F(r),o=e=>{Cc(e,{get resource(){return B(a).resource},get date(){return B(a).date}})},s=e=>{fs(e,{get date(){return B(a).date},get alPrefix(){return f[n]}})};G(i,e=>{B(c)?e(o):e(s,-1)}),W(e,r)},$$slots:{default:!0}})}}),W(e,r)}),W(e,t)},a=j(()=>ji(B(u)[0])>1);G(r,e=>{B(a)&&e(i)}),W(e,t)},nowIndicator:e=>{var t=U(),n=F(t),r=e=>{{let t=j(()=>B(u).flat()),n=j(()=>ji(B(u)[0]));Oc(e,{get days(){return B(t)},get span(){return B(n)}})}},i=e=>{var t=U(),n=F(t),r=e=>{var t=U();q(F(t),17,()=>B(u),K,(e,t)=>{Oc(e,{get days(){return B(t)}})}),W(e,t)},i=j(()=>ji(B(u)[0])>1),a=e=>{{let t=j(()=>B(u).flat()),n=j(()=>ji(B(u)));Oc(e,{get days(){return B(t)},get span(){return B(n)}})}};G(n,e=>{B(i)?e(r):e(a,-1)}),W(e,t)};G(n,e=>{B(c)?e(r):e(i,-1)}),W(e,t)},$$slots:{header:!0,nowIndicator:!0}}),A()}var Fc={createOptions(e){ac(e),ic(e),sc(e),X(e,{datesAboveResources:!1,view:`resourceTimeGridWeek`}),X(e.buttonText,{resourceTimeGridDay:`resources`,resourceTimeGridWeek:`resources`}),X(e.theme,{colGroup:`ec-col-group`}),X(e.views,{resourceTimeGridDay:{buttonText:Ya,component:Ic,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:eo(`ec-resource ec-time-grid ec-day-view`)},resourceTimeGridWeek:{buttonText:Xa,component:Ic,duration:{weeks:1},theme:eo(`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?Na(e,m,h,p)&&(i.length||(a=m,s=r,c=f,l=p),i.push(m),o=_):Na(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=za(e,a,o);return X(t,{gridColumn:s,gridRow:c,resource:l,dates:i,left:u,width:d}),r&&Ga(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:Ui(0),max:Ui(`24:00:00`)}}function Vc(e,t){return()=>{let{viewDates:n,options:{highlightedDates:r,validRange:i}}=e,{dayTimeLimits:a,viewResources:o}=t,s=[];return V(()=>{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:Wi(Q(s),n.min),end:Wi(Q(s),n.max),dayStart:s,dayEnd:Ki(Q(s)),disabled:no(s,i),highlight:r.some(e=>Zi(e,s))}),++c}s.push(o),++e}}),s}}function Hc(e,t){return()=>{let{options:{firstDay:n,weekNumbers:r}}=e,{grid:i}=t,a=[],o=[];return V(()=>{let e,t;if(!Mi(i)){for(let{dayStart:s,gridColumn:c}of i[0])if(e&&e.date.getUTCMonth()===s.getUTCMonth()?++e.span:(e={date:s,gridColumn:c,span:1},a.push(e)),r){let e=aa(s,n);t&&t.number===e?++t.span:(t={number:e,date:s,gridColumn:c,span:1},o.push(t))}}}),{months:a,weeks:o}}}function Uc(e,t){return()=>{let{filteredEvents:n}=e,{grid:r,monthView:i}=t,a=[],o=[];return V(()=>{for(let e of n)for(let t of r)Fa(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&&V(()=>{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 V(()=>{for(let e of n)o[e.getTime()]=uo(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 V(()=>{for(let e of n){let t=e.getTime();s[t]=t in i?lo(e,r,o,i[t],a):[]}}),s}}function qc(e){return()=>{let{resources:t}=e,n;return V(()=>{n=t.some(e=>fa(e).children.length)}),n}}function Jc(e){return()=>{let{options:{slotDuration:t}}=e,n;return V(()=>{n=!$(t)}),n}}var Yc=class extends bc(hc()){#e;get dayTimeLimits(){return B(this.#e)}set dayTimeLimits(e){N(this.#e,e)}#t;get daySlots(){return B(this.#t)}set daySlots(e){N(this.#t,e)}#n;get grid(){return B(this.#n)}set grid(e){N(this.#n,e)}#r;get extraHeads(){return B(this.#r)}set extraHeads(e){N(this.#r,e)}#i;get intlMonthHeader(){return B(this.#i)}set intlMonthHeader(e){N(this.#i,e)}#a;get monthView(){return B(this.#a)}set monthView(e){N(this.#a,e)}#o;get chunks(){return B(this.#o)}set chunks(e){N(this.#o,e)}#s;get bgChunks(){return B(this.#s)}set bgChunks(e){N(this.#s,e)}#c;get iChunks(){return B(this.#c)}set iChunks(e){N(this.#c,e)}#l;get nestedResources(){return B(this.#l)}set nestedResources(e){N(this.#l,e)}constructor(e){super(e),this.#e=j(Gc(e)),this.#t=j(Kc(e,this)),this.#n=j(Vc(e,this)),this.#r=j(Hc(e,this)),this.#i=j(Ka(e,`monthHeaderFormat`)),this.#a=j(Jc(e));let t=j(Uc(e,this)),n=j(()=>B(t).chunks),r=j(()=>B(t).bgChunks);this.#o=j(()=>B(n)),this.#s=j(()=>B(r)),this.#c=j(Wc(e,this)),this.#l=j(qc(e))}};function Xc(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).options.slotWidth),i=j(()=>O(`view-state`)),a=j(()=>B(i).monthView),o=j(()=>B(i).snap),s=j(()=>t.day.dayStart),c=j(()=>t.day.start),l=j(()=>t.day.resource),u=j(()=>t.day.disabled),d=j(()=>t.day.highlight),f=M(void 0);function p(e,t){if(B(a))return B(s);{let t=ma(B(f)),n=t.width/B(f).offsetWidth;return Wi(Q(B(c)),B(o).duration,Ei((Bi()?t.right-e:e-t.left)/(B(r)*B(o).ratio*n)))}}as(e,{get allDay(){return B(a)},get date(){return B(s)},get resource(){return B(l)},dateFromPoint:p,get disabled(){return B(u)},get highlight(){return B(d)},get noIeb(){return t.noIeb},get noBeb(){return t.noBeb},get el(){return B(f)},set el(e){N(f,e,!0)}}),A()}function Zc(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).options.slotDuration),i=j(()=>B(n).options.slotWidth),a=j(()=>O(`view-state`)),o=j(()=>B(a).monthView),s=M(void 0),c=M(1),l=j(()=>t.chunk.event),u=j(()=>e=>{e[`grid-column`]=`${t.chunk.gridColumn} / span ${t.chunk.dates.length}`,e[`grid-row`]=t.chunk.gridRow,B(o)||(e[`inset-inline-start`]=`${t.chunk.left/$(B(r))*B(i)}px`,e[`inline-size`]=`${t.chunk.width/$(B(r))*B(i)}px`);let n=B(c);if(B(l)._margin){let[e,r]=B(l)._margin;t.chunk.gridRow===r&&(n=e)}return e[`margin-block-start`]=`${n}px`,e});function d(){N(c,zc(t.chunk,ga(B(s)),B(o)),!0)}var f={reposition:d};{let n=j(()=>[B(c),t.chunk.gridRow]);ps(e,{get chunk(){return t.chunk},get styles(){return B(u)},axis:`x`,get forceMargin(){return B(n)},get el(){return B(s)},set el(e){N(s,e,!0)}})}return A(f)}var Qc=H(`<span></span>`),$c=H(`<button></button>`),el=H(`<!> <span><!></span>`,1);function tl(e,t){k(t,!0);let n=Y(t,`resource`,7),r=j(()=>O(`state`)),i=j(()=>B(r).resources),a=j(()=>B(r).view),o=j(()=>B(r).options.buttonText),s=j(()=>B(r).options.icons),c=j(()=>B(r).options.resourceExpand),l=j(()=>B(r).options.theme),u=M({}),d=j(()=>n().expanded),f=j(()=>B(o)[B(d)?`collapse`:`expand`]);Cn(()=>{N(u,fa(n()))});function p(e){n().expanded=N(d,!B(d)),m(B(u).children),B(i).length=B(i).length,Z(B(c))&&B(c)({resource:n(),jsEvent:e,view:xa(B(a))})}function m(e){for(let t of e){let e=fa(t);e.hidden=!B(d),t.expanded&&m(e.children)}}var h=el(),g=F(h);q(g,17,()=>Array(B(u).level),K,(e,t)=>{var n=Qc();L(()=>J(n,1,B(l).expander)),W(e,n)});var _=I(g,2),v=P(_),y=e=>{var t=$c();qr(t,()=>yi(B(s)[B(d)?`collapse`:`expand`])),L(()=>{J(t,1,B(l).button),si(t,`aria-label`,B(f)),si(t,`title`,B(f))}),Sr(`click`,t,p),W(e,t)};G(v,e=>{B(u).children?.length&&e(y)}),D(_),L(()=>J(_,1,B(l).expander)),W(e,h),A()}Cr([`click`]);var nl=H(`<div></div>`);function rl(e,t){k(t,!0);let n=j(()=>O(`state`)),r=j(()=>B(n).mainEl),i=j(()=>B(n).now),a=j(()=>B(n).today),o=j(()=>B(n).options.slotDuration),s=j(()=>B(n).options.slotWidth),c=j(()=>B(n).options.theme),l=j(()=>O(`view-state`)),u=j(()=>B(l).grid),d=j(()=>B(l).sidebarWidth),f=j(()=>{for(let e of B(u)[0])if(Zi(e.dayStart,B(a)))return e;return{}}),p=j(()=>B(f).gridColumn),m=j(()=>B(f).start),h=j(()=>B(f).end),g=j(()=>{if(B(i)<B(m)||B(i)>B(h))return null;let e=$(B(o));return(B(i)-B(m))/1e3/e*B(s)}),_=j(()=>({root:B(r),rootMargin:Bi()?`0px -${B(d)+1}px 0px 0px`:`0px 0px 0px -${B(d)+1}px`,threshold:0}));function v(e,t){e.classList.toggle(B(c).hidden,!t.isIntersecting)}var y=U(),b=F(y),x=e=>{var t=nl();let n;qr(t,()=>Si(v,B(_))),L(()=>{J(t,1,B(c).nowIndicator),n=ri(t,``,n,{"grid-column":B(p)+1,"grid-row":`2 / span ${B(u).length??``}`,"inset-inline-start":`${B(g)??``}px`})}),W(e,t)};G(b,e=>{B(p)&&B(g)!==null&&e(x)}),W(e,y),A()}var il=H(`<time></time>`),al=H(`<span></span>`),ol=H(`<div><time></time></div>`),sl=H(`<div role="rowheader"><!> <!></div>`),cl=H(`<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){k(t,!0);let n=O(`state`),r=new Yc(n);We(`view-state`,r);let i=j(()=>n.mainEl),a=j(()=>n.today),o=j(()=>n.viewDates),s=j(()=>n.options.columnWidth),c=j(()=>n.options.nowIndicator),l=j(()=>n.options.scrollTime),u=j(()=>n.options.slotDuration),d=j(()=>n.options.slotHeight),f=j(()=>n.options.slotWidth),p=j(()=>n.options.theme),m=j(()=>n.options.weekNumberContent),h=j(()=>r.chunks),g=j(()=>r.bgChunks),_=j(()=>r.iChunks),v=j(()=>r.daySlots),y=j(()=>r.dayTimeLimits),b=j(()=>r.grid),x=j(()=>r.extraHeads),S=j(()=>r.intlMonthHeader),ee=j(()=>r.monthView),te=j(()=>r.nestedResources),ne=j(()=>r.sidebarWidth),re=j(()=>r.slotLabelPeriodicity),ie=j(()=>r.viewResources),ae=M(0);xn(()=>{B(l),Mi(B(o))||fr().then(oe)});function oe(){let e=0,t=B(a)<B(o)[0]||B(a)>B(o).at(-1);if(B(ee)){if(!t){let e=B(b)[0];for(let t of e)if(Zi(t.dayStart,B(a))){B(i).scrollLeft=(B(i).scrollWidth-B(ne))/ji(e)*(t.gridColumn-1)*(Bi()?-1:1);break}}}else{for(let n of B(o)){let r=Bc(B(y),n);if(t||Zi(n,B(a))){e+=ki(Oi($(B(l)),$(r.max))-$(r.min),0);break}else e+=$(r.max)-$(r.min)}B(i).scrollLeft=e/$(B(u))*B(f)*(Bi()?-1:1)}}let se=[];function ce(){Ma(se,B(h))}xn(ce);var le=U(),ue=F(le),de=e=>{var t=cl();let i;var a=P(t),o=P(a),l=I(o,2),u=P(l),y=e=>{var t=U();q(F(t),17,()=>B(x).months,K,(e,t)=>{let n=()=>B(t).date,r=()=>B(t).gridColumn,i=()=>B(t).span;us(e,{get className(){return B(p).colGroup},get colIndex(){return r()},get colSpan(){return i()},cssSpan:!0,weekday:!1,children:(e,t)=>{var r=il();qr(r,()=>yi(B(S).format(n()))),L(e=>si(r,`datetime`,e),[()=>Xi(n(),10)]),W(e,r)},$$slots:{default:!0}})}),W(e,t)},oe=j(()=>ji(B(x).months)>1);G(u,e=>{B(oe)&&e(y)});var le=I(u,2),ue=e=>{var t=U();q(F(t),17,()=>B(x).weeks,K,(e,t)=>{let n=()=>B(t).number,r=()=>B(t).date,i=()=>B(t).gridColumn,a=()=>B(t).span;us(e,{get className(){return B(p).colGroup},get colIndex(){return i()},get colSpan(){return a()},cssSpan:!0,weekday:!1,children:(e,t)=>{var i=al();qr(i,()=>yi(oa(n(),B(m),r()))),L(()=>J(i,1,B(p).weekNumber)),W(e,i)},$$slots:{default:!0}})}),W(e,t)},de=j(()=>ji(B(x).weeks)>1);G(le,e=>{B(de)&&e(ue)});var C=I(le,2);q(C,17,()=>B(b)[0],K,(e,t,n)=>{let r=()=>B(t).dayStart,i=()=>B(t).disabled,a=()=>B(t).highlight;us(e,{get date(){return r()},colIndex:1+n,get disabled(){return i()},get highlight(){return a()},children:(e,t)=>{fs(e,{get date(){return r()}})},$$slots:{default:!0}})});var w=I(C,2),fe=e=>{var t=U();q(F(t),17,()=>B(b)[0],K,(e,t)=>{let n=()=>B(t).dayStart,r=()=>B(t).disabled,i=()=>B(t).highlight;us(e,{get date(){return n()},get className(){return B(p).slots},get disabled(){return r()},get highlight(){return i()},ariaHidden:!0,children:(e,t)=>{var r=U();q(F(r),17,()=>B(v)[n().getTime()],K,(e,t)=>{var n=ol();let r;var i=P(n);qr(i,()=>yi(B(t)[1])),D(n),L(()=>{J(n,1,B(p).slot),r=ri(n,``,r,{"--ec-slot-label-periodicity":B(t)[2]}),si(i,`datetime`,B(t)[0])}),W(e,n)}),W(e,r)},$$slots:{default:!0}})}),W(e,t)};G(w,e=>{B(ee)||e(fe)}),D(l),D(a);var pe=I(a,2),me=P(pe);q(me,21,()=>B(ie),K,(e,t)=>{var n=sl(),r=P(n),i=e=>{tl(e,{get resource(){return B(t)}})};G(r,e=>{B(te)&&e(i)}),Cc(I(r,2),{get resource(){return B(t)}}),D(n),L(()=>J(n,1,B(p).rowHead)),W(e,n)}),D(me);var he=I(me,2);q(he,21,()=>B(b),K,(e,t,n)=>{var r=U();q(F(r),17,()=>B(t),K,(e,r,i)=>{{let a=j(()=>i+1===ji(B(t))),o=j(()=>n+1===ji(B(b)));Xc(e,{get day(){return B(r)},get noIeb(){return B(a)},get noBeb(){return B(o)}})}}),W(e,r)}),D(he);var ge=I(he,2),_e=P(ge);q(_e,19,()=>B(h),e=>e.id,(e,t,n)=>{mi(Zc(e,{get chunk(){return B(t)}}),(e,t)=>se[t]=e,e=>se?.[e],()=>[B(n)])});var ve=I(_e,2);q(ve,17,()=>B(g),e=>e.id,(e,t)=>{Zc(e,{get chunk(){return B(t)}})}),q(I(ve,2),17,()=>B(_),K,(e,t)=>{Zc(e,{get chunk(){return B(t)}})}),D(ge),D(pe);var ye=I(pe,2),be=e=>{rl(e,{})};G(ye,e=>{B(c)&&!B(ee)&&e(be)}),D(t),mi(t,e=>n.mainEl=e,()=>n?.mainEl),qr(t,()=>xi(ce)),L(e=>{J(t,1,B(p).main),i=ri(t,``,i,e),J(a,1,B(p).header),J(o,1,B(p).sidebar),J(l,1,B(p).grid),J(pe,1,B(p).body),J(me,1,B(p).sidebar),J(he,1,B(p).grid),J(ge,1,B(p).events)},[()=>({"--ec-grid-cols":ji(B(b)[0]),"--ec-grid-rows":`${ji(B(b))>1?`repeat(${ji(B(b))-1}, auto)`:``} 1fr`,"--ec-col-width":B(s)??`minmax(4em, 1fr)`,"--ec-slot-label-periodicity":B(re),"--ec-slot-height":`${B(d)??``}px`,"--ec-slot-width":`${B(f)??``}px`,"--ec-header-height":`${B(ae)??``}px`,"--ec-sidebar-width":`${B(ne)??``}px`})]),fi(o,`offsetWidth`,e=>r.sidebarWidth=e),fi(a,`offsetHeight`,e=>N(ae,e)),W(e,t)},C=j(()=>!Mi(B(b))&&!Mi(B(b)[0]));G(ue,e=>{B(C)&&e(de)}),W(e,le),A()}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:`timeline`,resourceTimelineWeek:`timeline`,resourceTimelineMonth:`timeline`,resourceTimelineYear:`timeline`}),X(e.icons,{collapse:{html:`&minus;`},expand:{html:`&plus;`}}),X(e.theme,{expander:`ec-expander`,rowHead:`ec-row-head`,slots:`ec-slots`}),X(e.views,{resourceTimelineDay:{buttonText:Ya,component:dl,displayEventEnd:!1,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:eo(`ec-resource ec-timeline ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},resourceTimelineWeek:{buttonText:Xa,component:dl,displayEventEnd:!1,duration:{weeks:1},theme:eo(`ec-resource ec-timeline ec-week-view`)},resourceTimelineMonth:{buttonText:Za,component:fl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{months:1},slotDuration:{days:1},theme:eo(`ec-resource ec-timeline ec-month-view`),titleFormat:{year:`numeric`,month:`long`}},resourceTimelineYear:{buttonText:Qa,component:fl,displayEventEnd:!1,dayHeaderFormat:{weekday:`short`,day:`numeric`},duration:{years:1},slotDuration:{days:1},theme:eo(`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)}function pl(e){return e.features=[`timeline`],e.extensions.viewResources=e=>e.filter(e=>!fa(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:Ya,component:hl,dayHeaderFormat:{weekday:`long`},duration:{days:1},theme:eo(`ec-time-grid ec-day-view`),titleFormat:{year:`numeric`,month:`long`,day:`numeric`}},timeGridWeek:{buttonText:Xa,component:hl,duration:{weeks:1},theme:eo(`ec-time-grid ec-week-view`)}})},createParsers(e){oc(e)}};function hl(e){return rc(e),Mc}function gl(e,t,n){return jr(Qo,{target:e,props:{plugins:t,options:n}})}function _l(e){return Fr(e)}function vl(e,t){return gl(e,[Ts,Us,Qs,Fc,ul,ml],t)}return e.create=vl,e.destroy=_l,e})({});
7
+ //# sourceMappingURL=event-calendar.min.js.map