79 lines
639 KiB
JavaScript
79 lines
639 KiB
JavaScript
var app=function(){"use strict";function e(){}const t=e=>e;function n(e,t){for(const n in t)e[n]=t[n];return e}function r(e){return e()}function o(){return Object.create(null)}function i(e){e.forEach(r)}function s(e){return"function"==typeof e}function a(e,t){return e!=e?t==t:e!==t||e&&"object"==typeof e||"function"==typeof e}function l(t,...n){if(null==t)return e;const r=t.subscribe(...n);return r.unsubscribe?()=>r.unsubscribe():r}function u(e,t,n){e.$$.on_destroy.push(l(t,n))}function c(e,t,n,r){if(e){const o=d(e,t,n,r);return e[0](o)}}function d(e,t,r,o){return e[1]&&o?n(r.ctx.slice(),e[1](o(t))):r.ctx}function f(e,t,n,r){if(e[2]&&r){const o=e[2](r(n));if(void 0===t.dirty)return o;if("object"==typeof o){const e=[],n=Math.max(t.dirty.length,o.length);for(let r=0;r<n;r+=1)e[r]=t.dirty[r]|o[r];return e}return t.dirty|o}return t.dirty}function p(e,t,n,r,o,i){if(o){const s=d(t,n,r,i);e.p(s,o)}}function h(e){if(e.ctx.length>32){const t=[],n=e.ctx.length/32;for(let e=0;e<n;e++)t[e]=-1;return t}return-1}function g(e){const t={};for(const n in e)"$"!==n[0]&&(t[n]=e[n]);return t}function v(e,t){const n={};t=new Set(t);for(const r in e)t.has(r)||"$"===r[0]||(n[r]=e[r]);return n}const m="undefined"!=typeof window;let y=m?()=>window.performance.now():()=>Date.now(),b=m?e=>requestAnimationFrame(e):e;const _=new Set;function w(e){_.forEach((t=>{t.c(e)||(_.delete(t),t.f())})),0!==_.size&&b(w)}function C(e){let t;return 0===_.size&&b(w),{promise:new Promise((n=>{_.add(t={c:e,f:n})})),abort(){_.delete(t)}}}const k="undefined"!=typeof window?window:"undefined"!=typeof globalThis?globalThis:global;function S(e,t){e.appendChild(t)}function E(e){if(!e)return document;const t=e.getRootNode?e.getRootNode():e.ownerDocument;return t&&t.host?t:e.ownerDocument}function x(e){const t=$("style");return function(e,t){S(e.head||e,t),t.sheet}(E(e),t),t.sheet}function R(e,t,n){e.insertBefore(t,n||null)}function D(e){e.parentNode&&e.parentNode.removeChild(e)}function T(e,t){for(let n=0;n<e.length;n+=1)e[n]&&e[n].d(t)}function $(e){return document.createElement(e)}function M(e){return document.createElementNS("http://www.w3.org/2000/svg",e)}function I(e){return document.createTextNode(e)}function A(){return I(" ")}function O(){return I("")}function N(e,t,n,r){return e.addEventListener(t,n,r),()=>e.removeEventListener(t,n,r)}function P(e){return function(t){return t.stopPropagation(),e.call(this,t)}}function L(e,t,n){null==n?e.removeAttribute(t):e.getAttribute(t)!==n&&e.setAttribute(t,n)}const H=["width","height"];function W(e,t){const n=Object.getOwnPropertyDescriptors(e.__proto__);for(const r in t)null==t[r]?e.removeAttribute(r):"style"===r?e.style.cssText=t[r]:"__value"===r?e.value=e[r]=t[r]:n[r]&&n[r].set&&-1===H.indexOf(r)?e[r]=t[r]:L(e,r,t[r])}function U(e,t){t=""+t,e.data!==t&&(e.data=t)}function z(e,t,n,r){null==n?e.style.removeProperty(t):e.style.setProperty(t,n,r?"important":"")}function j(e,t,n){e.classList[n?"add":"remove"](t)}function B(e,t,{bubbles:n=!1,cancelable:r=!1}={}){const o=document.createEvent("CustomEvent");return o.initCustomEvent(e,n,r,t),o}class F{constructor(e=!1){this.is_svg=!1,this.is_svg=e,this.e=this.n=null}c(e){this.h(e)}m(e,t,n=null){this.e||(this.is_svg?this.e=M(t.nodeName):this.e=$(11===t.nodeType?"TEMPLATE":t.nodeName),this.t="TEMPLATE"!==t.tagName?t:t.content,this.c(e)),this.i(n)}h(e){this.e.innerHTML=e,this.n=Array.from("TEMPLATE"===this.e.nodeName?this.e.content.childNodes:this.e.childNodes)}i(e){for(let t=0;t<this.n.length;t+=1)R(this.t,this.n[t],e)}p(e){this.d(),this.h(e),this.i(this.a)}d(){this.n.forEach(D)}}function q(e,t){return new e(t)}const V=new Map;let Y,G=0;function Z(e,t,n,r,o,i,s,a=0){const l=16.666/r;let u="{\n";for(let e=0;e<=1;e+=l){const r=t+(n-t)*i(e);u+=100*e+`%{${s(r,1-r)}}\n`}const c=u+`100% {${s(n,1-n)}}\n}`,d=`__svelte_${function(e){let t=5381,n=e.length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return t>>>0}(c)}_${a}`,f=E(e),{stylesheet:p,rules:h}=V.get(f)||function(e,t){const n={stylesheet:x(t),rules:{}};return V.set(e,n),n}(f,e);h[d]||(h[d]=!0,p.insertRule(`@keyframes ${d} ${c}`,p.cssRules.length));const g=e.style.animation||"";return e.style.animation=`${g?`${g}, `:""}${d} ${r}ms linear ${o}ms 1 both`,G+=1,d}function K(e,t){const n=(e.style.animation||"").split(", "),r=n.filter(t?e=>e.indexOf(t)<0:e=>-1===e.indexOf("__svelte")),o=n.length-r.length;o&&(e.style.animation=r.join(", "),G-=o,G||b((()=>{G||(V.forEach((e=>{const{ownerNode:t}=e.stylesheet;t&&D(t)})),V.clear())})))}function X(e){Y=e}function J(){if(!Y)throw new Error("Function called outside component initialization");return Y}function Q(e){J().$$.on_mount.push(e)}function ee(e){J().$$.on_destroy.push(e)}function te(){const e=J();return(t,n,{cancelable:r=!1}={})=>{const o=e.$$.callbacks[t];if(o){const i=B(t,n,{cancelable:r});return o.slice().forEach((t=>{t.call(e,i)})),!i.defaultPrevented}return!0}}function ne(e,t){const n=e.$$.callbacks[t.type];n&&n.slice().forEach((e=>e.call(this,t)))}const re=[],oe=[];let ie=[];const se=[],ae=Promise.resolve();let le=!1;function ue(e){ie.push(e)}function ce(e){se.push(e)}const de=new Set;let fe,pe=0;function he(){if(0!==pe)return;const e=Y;do{try{for(;pe<re.length;){const e=re[pe];pe++,X(e),ge(e.$$)}}catch(e){throw re.length=0,pe=0,e}for(X(null),re.length=0,pe=0;oe.length;)oe.pop()();for(let e=0;e<ie.length;e+=1){const t=ie[e];de.has(t)||(de.add(t),t())}ie.length=0}while(re.length);for(;se.length;)se.pop()();le=!1,de.clear(),X(e)}function ge(e){if(null!==e.fragment){e.update(),i(e.before_update);const t=e.dirty;e.dirty=[-1],e.fragment&&e.fragment.p(e.ctx,t),e.after_update.forEach(ue)}}function ve(){return fe||(fe=Promise.resolve(),fe.then((()=>{fe=null}))),fe}function me(e,t,n){e.dispatchEvent(B(`${t?"intro":"outro"}${n}`))}const ye=new Set;let be;function _e(){be={r:0,c:[],p:be}}function we(){be.r||i(be.c),be=be.p}function Ce(e,t){e&&e.i&&(ye.delete(e),e.i(t))}function ke(e,t,n,r){if(e&&e.o){if(ye.has(e))return;ye.add(e),be.c.push((()=>{ye.delete(e),r&&(n&&e.d(1),r())})),e.o(t)}else r&&r()}const Se={duration:0};function Ee(n,r,o){const i={direction:"in"};let a,l,u=r(n,o,i),c=!1,d=0;function f(){a&&K(n,a)}function p(){const{delay:r=0,duration:o=300,easing:i=t,tick:s=e,css:p}=u||Se;p&&(a=Z(n,0,1,o,r,i,p,d++)),s(0,1);const h=y()+r,g=h+o;l&&l.abort(),c=!0,ue((()=>me(n,!0,"start"))),l=C((e=>{if(c){if(e>=g)return s(1,0),me(n,!0,"end"),f(),c=!1;if(e>=h){const t=i((e-h)/o);s(t,1-t)}}return c}))}let h=!1;return{start(){h||(h=!0,K(n),s(u)?(u=u(i),ve().then(p)):p())},invalidate(){h=!1},end(){c&&(f(),c=!1)}}}function xe(n,r,o){const a={direction:"out"};let l,u=r(n,o,a),c=!0;const d=be;function f(){const{delay:r=0,duration:o=300,easing:s=t,tick:a=e,css:f}=u||Se;f&&(l=Z(n,1,0,o,r,s,f));const p=y()+r,h=p+o;ue((()=>me(n,!1,"start"))),C((e=>{if(c){if(e>=h)return a(0,1),me(n,!1,"end"),--d.r||i(d.c),!1;if(e>=p){const t=s((e-p)/o);a(1-t,t)}}return c}))}return d.r+=1,s(u)?ve().then((()=>{u=u(a),f()})):f(),{end(e){e&&u.tick&&u.tick(1,0),c&&(l&&K(n,l),c=!1)}}}function Re(n,r,o,a){const l={direction:"both"};let u=r(n,o,l),c=a?0:1,d=null,f=null,p=null;function h(){p&&K(n,p)}function g(e,t){const n=e.b-c;return t*=Math.abs(n),{a:c,b:e.b,d:n,duration:t,start:e.start,end:e.start+t,group:e.group}}function v(r){const{delay:o=0,duration:s=300,easing:a=t,tick:l=e,css:v}=u||Se,m={start:y()+o,b:r};r||(m.group=be,be.r+=1),d||f?f=m:(v&&(h(),p=Z(n,c,r,s,o,a,v)),r&&l(0,1),d=g(m,s),ue((()=>me(n,r,"start"))),C((e=>{if(f&&e>f.start&&(d=g(f,s),f=null,me(n,d.b,"start"),v&&(h(),p=Z(n,c,d.b,d.duration,0,a,u.css))),d)if(e>=d.end)l(c=d.b,1-c),me(n,d.b,"end"),f||(d.b?h():--d.group.r||i(d.group.c)),d=null;else if(e>=d.start){const t=e-d.start;c=d.a+d.d*a(t/d.duration),l(c,1-c)}return!(!d&&!f)})))}return{run(e){s(u)?ve().then((()=>{u=u(l),v(e)})):v(e)},end(){h(),d=f=null}}}function De(e,t){const n={},r={},o={$$scope:1};let i=e.length;for(;i--;){const s=e[i],a=t[i];if(a){for(const e in s)e in a||(r[e]=1);for(const e in a)o[e]||(n[e]=a[e],o[e]=1);e[i]=a}else for(const e in s)o[e]=1}for(const e in r)e in n||(n[e]=void 0);return n}function Te(e,t,n){const r=e.$$.props[t];void 0!==r&&(e.$$.bound[r]=n,n(e.$$.ctx[r]))}function $e(e){e&&e.c()}function Me(e,t,n,o){const{fragment:a,after_update:l}=e.$$;a&&a.m(t,n),o||ue((()=>{const t=e.$$.on_mount.map(r).filter(s);e.$$.on_destroy?e.$$.on_destroy.push(...t):i(t),e.$$.on_mount=[]})),l.forEach(ue)}function Ie(e,t){const n=e.$$;null!==n.fragment&&(!function(e){const t=[],n=[];ie.forEach((r=>-1===e.indexOf(r)?t.push(r):n.push(r))),n.forEach((e=>e())),ie=t}(n.after_update),i(n.on_destroy),n.fragment&&n.fragment.d(t),n.on_destroy=n.fragment=null,n.ctx=[])}function Ae(e,t){-1===e.$$.dirty[0]&&(re.push(e),le||(le=!0,ae.then(he)),e.$$.dirty.fill(0)),e.$$.dirty[t/31|0]|=1<<t%31}function Oe(t,n,r,s,a,l,u,c=[-1]){const d=Y;X(t);const f=t.$$={fragment:null,ctx:[],props:l,update:e,not_equal:a,bound:o(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(n.context||(d?d.$$.context:[])),callbacks:o(),dirty:c,skip_bound:!1,root:n.target||d.$$.root};u&&u(f.root);let p=!1;if(f.ctx=r?r(t,n.props||{},((e,n,...r)=>{const o=r.length?r[0]:n;return f.ctx&&a(f.ctx[e],f.ctx[e]=o)&&(!f.skip_bound&&f.bound[e]&&f.bound[e](o),p&&Ae(t,e)),n})):[],f.update(),p=!0,i(f.before_update),f.fragment=!!s&&s(f.ctx),n.target){if(n.hydrate){const e=function(e){return Array.from(e.childNodes)}(n.target);f.fragment&&f.fragment.l(e),e.forEach(D)}else f.fragment&&f.fragment.c();n.intro&&Ce(t.$$.fragment),Me(t,n.target,n.anchor,n.customElement),he()}X(d)}class Ne{$destroy(){Ie(this,1),this.$destroy=e}$on(t,n){if(!s(n))return e;const r=this.$$.callbacks[t]||(this.$$.callbacks[t]=[]);return r.push(n),()=>{const e=r.indexOf(n);-1!==e&&r.splice(e,1)}}$set(e){var t;this.$$set&&(t=e,0!==Object.keys(t).length)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const Pe=[];function Le(t,n=e){let r;const o=new Set;function i(e){if(a(t,e)&&(t=e,r)){const e=!Pe.length;for(const e of o)e[1](),Pe.push(e,t);if(e){for(let e=0;e<Pe.length;e+=2)Pe[e][0](Pe[e+1]);Pe.length=0}}}return{set:i,update:function(e){i(e(t))},subscribe:function(s,a=e){const l=[s,a];return o.add(l),1===o.size&&(r=n(i)||e),s(t),()=>{o.delete(l),0===o.size&&r&&(r(),r=null)}}}}var He=function(e,t){return He=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n])},He(e,t)};function We(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function n(){this.constructor=e}He(e,t),e.prototype=null===t?Object.create(t):(n.prototype=t.prototype,new n)}var Ue=function(){return Ue=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},Ue.apply(this,arguments)};function ze(e,t,n){if(n||2===arguments.length)for(var r,o=0,i=t.length;o<i;o++)!r&&o in t||(r||(r=Array.prototype.slice.call(t,0,o)),r[o]=t[o]);return e.concat(r||Array.prototype.slice.call(t))}"function"==typeof SuppressedError&&SuppressedError;var je,Be,Fe,qe,Ve,Ye,Ge,Ze,Ke={},Xe=[],Je=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function Qe(e,t){for(var n in t)e[n]=t[n];return e}function et(e){var t=e.parentNode;t&&t.removeChild(e)}function tt(e,t,n){var r,o,i,s={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:s[i]=t[i];if(arguments.length>2&&(s.children=arguments.length>3?je.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===s[i]&&(s[i]=e.defaultProps[i]);return nt(e,s,r,o,null)}function nt(e,t,n,r,o){var i={type:e,props:t,key:n,ref:r,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==o?++Fe:o};return null==o&&null!=Be.vnode&&Be.vnode(i),i}function rt(e){return e.children}function ot(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||Je.test(t)?n:n+"px"}function it(e,t,n,r,o){var i;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof r&&(e.style.cssText=r=""),r)for(t in r)n&&t in n||ot(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||ot(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])i=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=n,n?r||e.addEventListener(t,i?at:st,i):e.removeEventListener(t,i?at:st,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&-1==t.indexOf("-")?e.removeAttribute(t):e.setAttribute(t,n))}}function st(e){qe=!0;try{return this.l[e.type+!1](Be.event?Be.event(e):e)}finally{qe=!1}}function at(e){qe=!0;try{return this.l[e.type+!0](Be.event?Be.event(e):e)}finally{qe=!1}}function lt(e,t){this.props=e,this.context=t}function ut(e,t){if(null==t)return e.__?ut(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?ut(e):null}function ct(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return ct(e)}}function dt(e){qe?setTimeout(e):Ge(e)}function ft(e){(!e.__d&&(e.__d=!0)&&Ve.push(e)&&!pt.__r++||Ye!==Be.debounceRendering)&&((Ye=Be.debounceRendering)||dt)(pt)}function pt(){var e,t,n,r,o,i,s,a;for(Ve.sort((function(e,t){return e.__v.__b-t.__v.__b}));e=Ve.shift();)e.__d&&(t=Ve.length,r=void 0,o=void 0,s=(i=(n=e).__v).__e,(a=n.__P)&&(r=[],(o=Qe({},i)).__v=i.__v+1,bt(a,i,o,n.__n,void 0!==a.ownerSVGElement,null!=i.__h?[s]:null,r,null==s?ut(i):s,i.__h),_t(r,i),i.__e!=s&&ct(i)),Ve.length>t&&Ve.sort((function(e,t){return e.__v.__b-t.__v.__b})));pt.__r=0}function ht(e,t,n,r,o,i,s,a,l,u){var c,d,f,p,h,g,v,m=r&&r.__k||Xe,y=m.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(p=n.__k[c]=null==(p=t[c])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?nt(null,p,null,null,p):Array.isArray(p)?nt(rt,{children:p},null,null,null):p.__b>0?nt(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(f=m[c])||f&&p.key==f.key&&p.type===f.type)m[c]=void 0;else for(d=0;d<y;d++){if((f=m[d])&&p.key==f.key&&p.type===f.type){m[d]=void 0;break}f=null}bt(e,p,f=f||Ke,o,i,s,a,l,u),h=p.__e,(d=p.ref)&&f.ref!=d&&(v||(v=[]),f.ref&&v.push(f.ref,null,p),v.push(d,p.__c||h,p)),null!=h?(null==g&&(g=h),"function"==typeof p.type&&p.__k===f.__k?p.__d=l=gt(p,l,e):l=mt(e,p,f,m,h,l),"function"==typeof n.type&&(n.__d=l)):l&&f.__e==l&&l.parentNode!=e&&(l=ut(f))}for(n.__e=g,c=y;c--;)null!=m[c]&&("function"==typeof n.type&&null!=m[c].__e&&m[c].__e==n.__d&&(n.__d=yt(r).nextSibling),kt(m[c],m[c]));if(v)for(c=0;c<v.length;c++)Ct(v[c],v[++c],v[++c])}function gt(e,t,n){for(var r,o=e.__k,i=0;o&&i<o.length;i++)(r=o[i])&&(r.__=e,t="function"==typeof r.type?gt(r,t,n):mt(n,r,r,o,r.__e,t));return t}function vt(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){vt(e,t)})):t.push(e)),t}function mt(e,t,n,r,o,i){var s,a,l;if(void 0!==t.__d)s=t.__d,t.__d=void 0;else if(null==n||o!=i||null==o.parentNode)e:if(null==i||i.parentNode!==e)e.appendChild(o),s=null;else{for(a=i,l=0;(a=a.nextSibling)&&l<r.length;l+=1)if(a==o)break e;e.insertBefore(o,i),s=i}return void 0!==s?s:o.nextSibling}function yt(e){var t,n,r;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k)for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(r=yt(n)))return r;return null}function bt(e,t,n,r,o,i,s,a,l){var u,c,d,f,p,h,g,v,m,y,b,_,w,C,k,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,i=[a]),(u=Be.__b)&&u(t);try{e:if("function"==typeof S){if(v=t.props,m=(u=S.contextType)&&r[u.__c],y=u?m?m.props.value:u.__:r,n.__c?g=(c=t.__c=n.__c).__=c.__E:("prototype"in S&&S.prototype.render?t.__c=c=new S(v,y):(t.__c=c=new lt(v,y),c.constructor=S,c.render=St),m&&m.sub(c),c.props=v,c.state||(c.state={}),c.context=y,c.__n=r,d=c.__d=!0,c.__h=[],c._sb=[]),null==c.__s&&(c.__s=c.state),null!=S.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=Qe({},c.__s)),Qe(c.__s,S.getDerivedStateFromProps(v,c.__s))),f=c.props,p=c.state,c.__v=t,d)null==S.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==S.getDerivedStateFromProps&&v!==f&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(v,y),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(v,c.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(c.props=v,c.state=c.__s,c.__d=!1),t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b<c._sb.length;b++)c.__h.push(c._sb[b]);c._sb=[],c.__h.length&&s.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(v,c.__s,y),null!=c.componentDidUpdate&&c.__h.push((function(){c.componentDidUpdate(f,p,h)}))}if(c.context=y,c.props=v,c.__P=e,_=Be.__r,w=0,"prototype"in S&&S.prototype.render){for(c.state=c.__s,c.__d=!1,_&&_(t),u=c.render(c.props,c.state,c.context),C=0;C<c._sb.length;C++)c.__h.push(c._sb[C]);c._sb=[]}else do{c.__d=!1,_&&_(t),u=c.render(c.props,c.state,c.context),c.state=c.__s}while(c.__d&&++w<25);c.state=c.__s,null!=c.getChildContext&&(r=Qe(Qe({},r),c.getChildContext())),d||null==c.getSnapshotBeforeUpdate||(h=c.getSnapshotBeforeUpdate(f,p)),k=null!=u&&u.type===rt&&null==u.key?u.props.children:u,ht(e,Array.isArray(k)?k:[k],t,n,r,o,i,s,a,l),c.base=t.__e,t.__h=null,c.__h.length&&s.push(c),g&&(c.__E=c.__=null),c.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=wt(n.__e,t,n,r,o,i,s,l);(u=Be.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=i)&&(t.__e=a,t.__h=!!l,i[i.indexOf(a)]=null),Be.__e(e,t,n)}}function _t(e,t){Be.__c&&Be.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Be.__e(e,t.__v)}}))}function wt(e,t,n,r,o,i,s,a){var l,u,c,d=n.props,f=t.props,p=t.type,h=0;if("svg"===p&&(o=!0),null!=i)for(;h<i.length;h++)if((l=i[h])&&"setAttribute"in l==!!p&&(p?l.localName===p:3===l.nodeType)){e=l,i[h]=null;break}if(null==e){if(null===p)return document.createTextNode(f);e=o?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,f.is&&f),i=null,a=!1}if(null===p)d===f||a&&e.data===f||(e.data=f);else{if(i=i&&je.call(e.childNodes),u=(d=n.props||Ke).dangerouslySetInnerHTML,c=f.dangerouslySetInnerHTML,!a){if(null!=i)for(d={},h=0;h<e.attributes.length;h++)d[e.attributes[h].name]=e.attributes[h].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||it(e,i,null,n[i],r);for(i in t)o&&"function"!=typeof t[i]||"children"===i||"key"===i||"value"===i||"checked"===i||n[i]===t[i]||it(e,i,t[i],n[i],r)}(e,f,d,o,a),c)t.__k=[];else if(h=t.props.children,ht(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==p,i,s,i?i[0]:n.__k&&ut(n,0),a),null!=i)for(h=i.length;h--;)null!=i[h]&&et(i[h]);a||("value"in f&&void 0!==(h=f.value)&&(h!==e.value||"progress"===p&&!h||"option"===p&&h!==d.value)&&it(e,"value",h,d.value,!1),"checked"in f&&void 0!==(h=f.checked)&&h!==e.checked&&it(e,"checked",h,d.checked,!1))}return e}function Ct(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Be.__e(e,n)}}function kt(e,t,n){var r,o;if(Be.unmount&&Be.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ct(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Be.__e(e,t)}r.base=r.__P=null,e.__c=void 0}if(r=e.__k)for(o=0;o<r.length;o++)r[o]&&kt(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||et(e.__e),e.__=e.__e=e.__d=void 0}function St(e,t,n){return this.constructor(e,n)}function Et(e,t,n){var r,o,i;Be.__&&Be.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],bt(t,e=(!r&&n||t).__k=tt(rt,null,[e]),o||Ke,Ke,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?je.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),_t(i,e)}je=Xe.slice,Be={__e:function(e,t,n,r){for(var o,i,s;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),s=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),s=o.__d),s)return o.__E=o}catch(t){e=t}throw e}},Fe=0,qe=!1,lt.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=Qe({},this.state),"function"==typeof e&&(e=e(Qe({},n),this.props)),e&&Qe(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),ft(this))},lt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),ft(this))},lt.prototype.render=rt,Ve=[],Ge="function"==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,pt.__r=0,Ze=0;var xt,Rt,Dt,Tt=[],$t=[],Mt=Be.__b,It=Be.__r,At=Be.diffed,Ot=Be.__c,Nt=Be.unmount;function Pt(){for(var e;e=Tt.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Wt),e.__H.__h.forEach(Ut),e.__H.__h=[]}catch(t){e.__H.__h=[],Be.__e(t,e.__v)}}Be.__b=function(e){xt=null,Mt&&Mt(e)},Be.__r=function(e){It&&It(e);var t=(xt=e.__c).__H;t&&(Rt===xt?(t.__h=[],xt.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=$t,e.__N=e.i=void 0}))):(t.__h.forEach(Wt),t.__h.forEach(Ut),t.__h=[])),Rt=xt},Be.diffed=function(e){At&&At(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Tt.push(t)&&Dt===Be.requestAnimationFrame||((Dt=Be.requestAnimationFrame)||Ht)(Pt)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==$t&&(e.__=e.__V),e.i=void 0,e.__V=$t}))),Rt=xt=null},Be.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Wt),e.__h=e.__h.filter((function(e){return!e.__||Ut(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Be.__e(n,e.__v)}})),Ot&&Ot(e,t)},Be.unmount=function(e){Nt&&Nt(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Wt(e)}catch(e){t=e}})),n.__H=void 0,t&&Be.__e(t,n.__v))};var Lt="function"==typeof requestAnimationFrame;function Ht(e){var t,n=function(){clearTimeout(r),Lt&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);Lt&&(t=requestAnimationFrame(n))}function Wt(e){var t=xt,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),xt=t}function Ut(e){var t=xt;e.__c=e.__(),xt=t}function zt(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var r in t)if("__source"!==r&&e[r]!==t[r])return!0;return!1}function jt(e){this.props=e}(jt.prototype=new lt).isPureReactComponent=!0,jt.prototype.shouldComponentUpdate=function(e,t){return zt(this.props,e)||zt(this.state,t)};var Bt=Be.__b;Be.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Bt&&Bt(e)};var Ft=Be.__e;Be.__e=function(e,t,n,r){if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),o.__c(e,t);Ft(e,t,n,r)};var qt=Be.unmount;function Vt(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((function(e){"function"==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var n in t)e[n]=t[n];return e}({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Vt(e,t,n)}))),e}function Yt(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return Yt(e,t,n)})),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function Gt(){this.__u=0,this.t=null,this.__b=null}function Zt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Kt(){this.u=null,this.o=null}Be.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),qt&&qt(e)},(Gt.prototype=new lt).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=Zt(r.__v),i=!1,s=function(){i||(i=!0,n.__R=null,o?o(a):a())};n.__R=s;var a=function(){if(! --r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=Yt(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},l=!0===t.__h;r.__u++||l||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(s,s)},Gt.prototype.componentWillUnmount=function(){this.t=[]},Gt.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),r=this.__v.__k[0].__c;this.__v.__k[0]=Vt(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&tt(rt,null,e.fallback);return o&&(o.__h=null),[tt(rt,null,t.__a?null:e.children),o]};var Xt=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};function Jt(e){return this.getChildContext=function(){return e.context},e.children}function Qt(e){var t=this,n=e.i;t.componentWillUnmount=function(){Et(null,t.l),t.l=null,t.i=null},t.i&&t.i!==n&&t.componentWillUnmount(),e.__v?(t.l||(t.i=n,t.l={nodeType:1,parentNode:n,childNodes:[],appendChild:function(e){this.childNodes.push(e),t.i.appendChild(e)},insertBefore:function(e,n){this.childNodes.push(e),t.i.appendChild(e)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.i.removeChild(e)}}),Et(tt(Jt,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}(Kt.prototype=new lt).__a=function(e){var t=this,n=Zt(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),Xt(t,e,r)):o()};n?n(i):i()}},Kt.prototype.render=function(e){this.u=null,this.o=new Map;var t=vt(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},Kt.prototype.componentDidUpdate=Kt.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){Xt(e,n,t)}))};var en="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,tn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,nn="undefined"!=typeof document,rn=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};lt.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(lt.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var on=Be.event;function sn(){}function an(){return this.cancelBubble}function ln(){return this.defaultPrevented}Be.event=function(e){return on&&(e=on(e)),e.persist=sn,e.isPropagationStopped=an,e.isDefaultPrevented=ln,e.nativeEvent=e};var un={configurable:!0,get:function(){return this.class}},cn=Be.vnode;Be.vnode=function(e){var t=e.type,n=e.props,r=n;if("string"==typeof t){var o=-1===t.indexOf("-");for(var i in r={},n){var s=n[i];nn&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==s||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===s?s="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!rn(n.type)?i="oninput":/^onfocus$/i.test(i)?i="onfocusin":/^onblur$/i.test(i)?i="onfocusout":/^on(Ani|Tra|Tou|BeforeInp|Compo)/.test(i)?i=i.toLowerCase():o&&tn.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===s&&(s=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=s)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=vt(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=vt(n.children).forEach((function(e){e.props.selected=r.multiple?-1!=r.defaultValue.indexOf(e.props.value):r.defaultValue==e.props.value}))),e.props=r,n.class!=n.className&&(un.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",un))}e.$$typeof=en,cn&&cn(e)};var dn=Be.__r;Be.__r=function(e){dn&&dn(e),e.__c};var fn="undefined"!=typeof globalThis?globalThis:window;fn.FullCalendarVDom?console.warn("FullCalendar VDOM already loaded"):fn.FullCalendarVDom={Component:lt,createElement:tt,render:Et,createRef:function(){return{current:null}},Fragment:rt,createContext:function(e){var t=function(e,t){var n={__c:t="__cC"+Ze++,__:e,Consumer:function(e,t){return e.children(t)},Provider:function(e){var n,r;return this.getChildContext||(n=[],(r={})[t]=this,this.getChildContext=function(){return r},this.shouldComponentUpdate=function(e){this.props.value!==e.value&&n.some((function(e){e.__e=!0,ft(e)}))},this.sub=function(e){n.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){n.splice(n.indexOf(e),1),t&&t.call(e)}}),e.children}};return n.Provider.__=n.Consumer.contextType=n}(e),n=t.Provider;return t.Provider=function(){var e=this,t=!this.getChildContext,r=n.apply(this,arguments);if(t){var o=[];this.shouldComponentUpdate=function(t){e.props.value!==t.value&&o.forEach((function(e){e.context=t.value,e.forceUpdate()}))},this.sub=function(e){o.push(e);var t=e.componentWillUnmount;e.componentWillUnmount=function(){o.splice(o.indexOf(e),1),t&&t.call(e)}}}return r},t},createPortal:function(e,t){var n=tt(Qt,{__v:e,i:t});return n.containerInfo=t,n},flushSync:function(e){e();var t=Be.debounceRendering,n=[];function r(e){n.push(e)}Be.debounceRendering=r,Et(tt(pn,{}),document.createElement("div"));for(;n.length;)n.shift()();Be.debounceRendering=t},unmountComponentAtNode:function(e){Et(null,e)}};var pn=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){return tt("div",{})},t.prototype.componentDidMount=function(){this.setState({})},t}(lt);var hn=Object.freeze({__proto__:null});function gn(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var r=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===n&&r.firstChild?r.insertBefore(o,r.firstChild):r.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}if(gn(""),"undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var vn=FullCalendarVDom.Component,mn=FullCalendarVDom.createElement,yn=FullCalendarVDom.render,bn=FullCalendarVDom.createRef,_n=FullCalendarVDom.Fragment,wn=FullCalendarVDom.createContext,Cn=FullCalendarVDom.createPortal,kn=FullCalendarVDom.flushSync,Sn=FullCalendarVDom.unmountComponentAtNode,En=function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}();function xn(e){e.parentNode&&e.parentNode.removeChild(e)}function Rn(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(Dn(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function Dn(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function Tn(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o<n.length;o+=1)for(var i=n[o].querySelectorAll(t),s=0;s<i.length;s+=1)r.push(i[s]);return r}var $n=/(top|left|right|bottom|width|height)$/i;function Mn(e,t){for(var n in t)In(e,n,t[n])}function In(e,t,n){null==n?e.style[t]="":"number"==typeof n&&$n.test(t)?e.style[t]=n+"px":e.style[t]=n}var An=0;function On(){return"fc-dom-"+(An+=1)}function Nn(e,t,n,r){var o=function(e,t){return function(n){var r=Rn(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,o),function(){e.removeEventListener(t,o)}}function Pn(e){return Ue({onClick:e},Ln(e))}function Ln(e){return{tabIndex:0,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}var Hn=0;function Wn(){return String(Hn+=1)}function Un(e){var t,n,r=[],o=[];for("string"==typeof e?o=e.split(/\s*,\s*/):"function"==typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t+=1)"string"==typeof(n=o[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function zn(e,t,n){var r,o;for(r=0;r<n.length;r+=1)if(o=jn(e,t,n[r]))return o;return 0}function jn(e,t,n){return n.func?n.func(e,t):Bn(e[n.field],t[n.field])*(n.order||1)}function Bn(e,t){return e||t?null==t?-1:null==e?1:"string"==typeof e||"string"==typeof t?String(e).localeCompare(String(t)):e-t:0}function Fn(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function qn(e,t,n){return"function"==typeof e?e.apply(void 0,t):"string"==typeof e?t.reduce((function(e,t,n){return e.replace("$"+n,t||"")}),e):n}function Vn(e){return e%1==0}function Yn(e){var t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var Gn=["sun","mon","tue","wed","thu","fri","sat"];function Zn(e,t){var n=ir(e);return n[2]+=7*t,sr(n)}function Kn(e,t){var n=ir(e);return n[2]+=t,sr(n)}function Xn(e,t){var n=ir(e);return n[6]+=t,sr(n)}function Jn(e,t){return(t.valueOf()-e.valueOf())/864e5}function Qn(e,t){return lr(e)===lr(t)?Math.round(Jn(e,t)):null}function er(e){return sr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function tr(e,t,n,r){var o=sr([t,0,1+nr(t,n,r)]),i=er(e),s=Math.round(Jn(o,i));return Math.floor(s/7)+1}function nr(e,t,n){var r=7+t-n;return-((7+sr([e,0,r]).getUTCDay()-t)%7)+r-1}function rr(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function or(e){return new Date(e[0],e[1]||0,null==e[2]?1:e[2],e[3]||0,e[4]||0,e[5]||0)}function ir(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function sr(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function ar(e){return!isNaN(e.valueOf())}function lr(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function ur(e,t,n,r){return{instanceId:Wn(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var cr=Object.prototype.hasOwnProperty;function dr(e,t){var n={};if(t)for(var r in t){for(var o=[],i=e.length-1;i>=0;i-=1){var s=e[i][r];if("object"==typeof s&&s)o.unshift(s);else if(void 0!==s){n[r]=s;break}}o.length&&(n[r]=dr(o))}for(i=e.length-1;i>=0;i-=1){var a=e[i];for(var l in a)l in n||(n[l]=a[l])}return n}function fr(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function pr(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function hr(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function gr(e){var t=[];for(var n in e)t.push(e[n]);return t}function vr(e,t){if(e===t)return!0;for(var n in e)if(cr.call(e,n)&&!(n in t))return!1;for(var n in t)if(cr.call(t,n)&&e[n]!==t[n])return!1;return!0}function mr(e,t){var n=[];for(var r in e)cr.call(e,r)&&(r in t||n.push(r));for(var r in t)cr.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function yr(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var r in t)if(!(r in e)||!br(e[r],t[r],n[r]))return!1;for(var r in e)if(!(r in t))return!1;return!0}function br(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function _r(e,t,n,r){void 0===t&&(t=0),void 0===r&&(r=1);var o=[];null==n&&(n=Object.keys(e).length);for(var i=t;i<n;i+=r){var s=e[i];void 0!==s&&o.push(s)}return o}function wr(e,t,n){var r=n.dateEnv,o=n.pluginHooks,i=n.options,s=e.defs,a=e.instances;for(var l in a=fr(a,(function(e){return!s[e.defId].recurringDef})),s){var u=s[l];if(u.recurringDef){var c=u.recurringDef.duration;c||(c=u.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);for(var d=0,f=Cr(u,c,t,r,o.recurringTypes);d<f.length;d++){var p=f[d],h=ur(l,{start:p,end:r.add(p,c)});a[h.instanceId]=h}}}return{defs:s,instances:a}}function Cr(e,t,n,r,o){var i=o[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(i=i.map(er)),i}var kr=["years","months","days","milliseconds"],Sr=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Er(e,t){var n;return"string"==typeof e?function(e){var t=Sr.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?xr(e):"number"==typeof e?xr(((n={})[t||"milliseconds"]=e,n)):null}function xr(e){var t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function Rr(e){return e.years||e.months||e.milliseconds?0:e.days}function Dr(e,t){return{years:e.years+t.years,months:e.months+t.months,days:e.days+t.days,milliseconds:e.milliseconds+t.milliseconds}}function Tr(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}function $r(e){return Mr(e)/864e5}function Mr(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Ir(e,t){for(var n=null,r=0;r<kr.length;r+=1){var o=kr[r];if(t[o]){var i=e[o]/t[o];if(!Vn(i)||null!==n&&n!==i)return null;n=i}else if(e[o])return null}return n}function Ar(e){var t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Or(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Pr(t,!0)))),r}function Nr(e){return e.toISOString().replace(/T.*$/,"")}function Pr(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=Math.round(r%60);return t?n+Fn(o,2)+":"+Fn(i,2):"GMT"+n+o+(i?":"+Fn(i,2):"")}function Lr(e,t,n){if(e===t)return!0;var r,o=e.length;if(o!==t.length)return!1;for(r=0;r<o;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function Hr(e,t,n){var r,o;return function(){for(var i=[],s=0;s<arguments.length;s++)i[s]=arguments[s];if(r){if(!Lr(r,i)){n&&n(o);var a=e.apply(this,i);t&&t(a,o)||(o=a)}}else o=e.apply(this,i);return r=i,o}}function Wr(e,t,n){var r,o,i=this;return function(s){if(r){if(!vr(r,s)){n&&n(o);var a=e.call(i,s);t&&t(a,o)||(o=a)}}else o=e.call(i,s);return r=s,o}}function Ur(e,t,n){var r=this,o=[],i=[];return function(s){for(var a=o.length,l=s.length,u=0;u<a;u+=1)if(s[u]){if(!Lr(o[u],s[u])){n&&n(i[u]);var c=e.apply(r,s[u]);t&&t(c,i[u])||(i[u]=c)}}else n&&n(i[u]);for(;u<l;u+=1)i[u]=e.apply(r,s[u]);return o=s,i.splice(l),i}}function zr(e,t,n){var r=this,o={},i={};return function(s){var a={};for(var l in s)if(i[l])if(Lr(o[l],s[l]))a[l]=i[l];else{n&&n(i[l]);var u=e.apply(r,s[l]);a[l]=t&&t(u,i[l])?i[l]:u}else a[l]=e.apply(r,s[l]);return o=s,i=a,a}}var jr={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Br={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Fr=/\s*([ap])\.?m\.?/i,qr=/,/g,Vr=/\s+/g,Yr=/\u200e/g,Gr=/UTC|GMT/,Zr=function(){function e(e){var t={},n={},r=0;for(var o in e)o in jr?(n[o]=e[o],r=Math.max(jr[o],r)):(t[o]=e[o],o in Br&&(r=Math.max(Br[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Hr(Kr)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n,r){var o=this.standardDateProps,i=this.extendedSettings,s=function(e,t,n){if(n.getMarkerYear(e)!==n.getMarkerYear(t))return 5;if(n.getMarkerMonth(e)!==n.getMarkerMonth(t))return 4;if(n.getMarkerDay(e)!==n.getMarkerDay(t))return 2;if(lr(e)!==lr(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!s)return this.format(e,n);var a=s;!(a>1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(a=1);var l=this.format(e,n),u=this.format(t,n);if(l===u)return l;var c=Kr(function(e,t){var n={};for(var r in e)(!(r in Br)||Br[r]<=t)&&(n[r]=e[r]);return n}(o,a),i,n),d=c(e),f=c(t),p=function(e,t,n,r){var o=0;for(;o<e.length;){var i=e.indexOf(t,o);if(-1===i)break;var s=e.substr(0,i);o=i+t.length;for(var a=e.substr(o),l=0;l<n.length;){var u=n.indexOf(r,l);if(-1===u)break;var c=n.substr(0,u);l=u+r.length;var d=n.substr(l);if(s===c&&a===d)return{before:s,after:a}}}return null}(l,d,u,f),h=i.separator||r||n.defaultSeparator||"";return p?p.before+d+h+f+p.after:l+h+u},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}},e}();function Kr(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return Pr(e.timeZoneOffset)}:0===r&&t.week?function(e){return function(e,t,n,r,o){var i=[];"long"===o?i.push(n):"short"!==o&&"narrow"!==o||i.push(t);"long"!==o&&"short"!==o||i.push(" ");i.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&i.reverse();return i.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week)}:function(e,t,n){e=Ue({},e),t=Ue({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";var r,o=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var i=Ue({},e);delete i.minute,r=new Intl.DateTimeFormat(n.locale.codes,i)}return function(i){var s=i.marker;return function(e,t,n,r,o){e=e.replace(Yr,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(Gr,(function(){return n=!0,t})),n||(e+=" "+t);return e}(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":Pr(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(qr,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(Fr,"").trim():"narrow"===r.meridiem?e=e.replace(Fr,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(Fr,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(e=e.replace(Fr,(function(e){return e.toLocaleLowerCase()})));return e=e.replace(Vr," "),e=e.trim(),e}((r&&!s.getUTCMinutes()?r:o).format(s),i,e,t,n)}}(e,t,n)}function Xr(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function Jr(e,t,n,r){var o=Xr(e,n.calendarSystem);return{date:o,start:o,end:t?Xr(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var Qr=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,Jr(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,Jr(e,t,n,r))},e}(),eo=function(){function e(e){this.func=e}return e.prototype.format=function(e,t,n){return this.func(Jr(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return this.func(Jr(e,t,n,r))},e}();function to(e){return"object"==typeof e&&e?new Zr(e):"string"==typeof e?new Qr(e):"function"==typeof e?new eo(e):null}var no={navLinkDayClick:fo,navLinkWeekClick:fo,duration:Er,bootstrapFontAwesome:fo,buttonIcons:fo,customButtons:fo,defaultAllDayEventDuration:Er,defaultTimedEventDuration:Er,nextDayThreshold:Er,scrollTime:Er,scrollTimeReset:Boolean,slotMinTime:Er,slotMaxTime:Er,dayPopoverFormat:to,slotDuration:Er,snapDuration:Er,headerToolbar:fo,footerToolbar:fo,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:to,dayHeaderClassNames:fo,dayHeaderContent:fo,dayHeaderDidMount:fo,dayHeaderWillUnmount:fo,dayCellClassNames:fo,dayCellContent:fo,dayCellDidMount:fo,dayCellWillUnmount:fo,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:fo,weekNumbers:Boolean,weekNumberClassNames:fo,weekNumberContent:fo,weekNumberDidMount:fo,weekNumberWillUnmount:fo,editable:Boolean,viewClassNames:fo,viewDidMount:fo,viewWillUnmount:fo,nowIndicator:Boolean,nowIndicatorClassNames:fo,nowIndicatorContent:fo,nowIndicatorDidMount:fo,nowIndicatorWillUnmount:fo,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:fo,locale:fo,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:fo,eventOrder:Un,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:fo,contentHeight:fo,direction:String,weekNumberFormat:to,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:fo,initialDate:fo,now:fo,eventDataTransform:fo,stickyHeaderDates:fo,stickyFooterScrollbar:fo,viewHeight:fo,defaultAllDay:Boolean,eventSourceFailure:fo,eventSourceSuccess:fo,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:fo,eventConstraint:fo,eventAllow:fo,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:fo,eventContent:fo,eventDidMount:fo,eventWillUnmount:fo,selectConstraint:fo,selectOverlap:fo,selectAllow:fo,droppable:Boolean,unselectCancel:String,slotLabelFormat:fo,slotLaneClassNames:fo,slotLaneContent:fo,slotLaneDidMount:fo,slotLaneWillUnmount:fo,slotLabelClassNames:fo,slotLabelContent:fo,slotLabelDidMount:fo,slotLabelWillUnmount:fo,dayMaxEvents:fo,dayMaxEventRows:fo,dayMinWidth:Number,slotLabelInterval:Er,allDayText:String,allDayClassNames:fo,allDayContent:fo,allDayDidMount:fo,allDayWillUnmount:fo,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:to,rerenderDelay:Number,moreLinkText:fo,moreLinkHint:fo,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:fo,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Er,hiddenDays:fo,monthMode:Boolean,fixedWeekCount:Boolean,validRange:fo,visibleRange:fo,titleFormat:fo,eventInteractive:Boolean,noEventsText:String,viewHint:fo,navLinkHint:fo,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:fo,moreLinkClassNames:fo,moreLinkContent:fo,moreLinkDidMount:fo,moreLinkWillUnmount:fo},ro={eventDisplay:"auto",defaultRangeSeparator:" - ",titleRangeSeparator:" – ",defaultTimedEventDuration:"01:00:00",defaultAllDayEventDuration:{day:1},forceEventDuration:!1,nextDayThreshold:"00:00:00",dayHeaders:!0,initialView:"",aspectRatio:1.35,headerToolbar:{start:"title",center:"",end:"today prev,next"},weekends:!0,weekNumbers:!1,weekNumberCalculation:"local",editable:!1,nowIndicator:!1,scrollTime:"06:00:00",scrollTimeReset:!0,slotMinTime:"00:00:00",slotMaxTime:"24:00:00",showNonCurrentDates:!0,lazyFetching:!0,startParam:"start",endParam:"end",timeZoneParam:"timeZone",timeZone:"local",locales:[],locale:"",themeSystem:"standard",dragRevertDuration:500,dragScroll:!0,allDayMaintainDuration:!1,unselectAuto:!0,dropAccept:"*",eventOrder:"start,-duration,allDay,title",dayPopoverFormat:{month:"long",day:"numeric",year:"numeric"},handleWindowResize:!0,windowResizeDelay:100,longPressDelay:1e3,eventDragMinDistance:5,expandRows:!1,navLinks:!1,selectable:!1,eventMinHeight:15,eventMinWidth:30,eventShortHeight:30},oo={datesSet:fo,eventsSet:fo,eventAdd:fo,eventChange:fo,eventRemove:fo,windowResize:fo,eventClick:fo,eventMouseEnter:fo,eventMouseLeave:fo,select:fo,unselect:fo,loading:fo,_unmount:fo,_beforeprint:fo,_afterprint:fo,_noEventDrop:fo,_noEventResize:fo,_resize:fo,_scrollRequest:fo},io={buttonText:fo,buttonHints:fo,views:fo,plugins:fo,initialEvents:fo,events:fo,eventSources:fo},so={headerToolbar:ao,footerToolbar:ao,buttonText:ao,buttonHints:ao,buttonIcons:ao,dateIncrement:ao};function ao(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?vr(e,t):e===t}var lo={type:String,component:fo,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:fo,usesMinMaxTime:Boolean,classNames:fo,content:fo,didMount:fo,willUnmount:fo};function uo(e){return dr(e,so)}function co(e,t){var n={},r={};for(var o in t)o in e&&(n[o]=t[o](e[o]));for(var o in e)o in t||(r[o]=e[o]);return{refined:n,extra:r}}function fo(e){return e}function po(e,t,n,r){for(var o={defs:{},instances:{}},i=To(n),s=0,a=e;s<a.length;s++){var l=Ro(a[s],t,n,r,i);l&&ho(l,o)}return o}function ho(e,t){return void 0===t&&(t={defs:{},instances:{}}),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function go(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],o=mo(e,(function(e){return t=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n}));return o.defs[r.defId]=r,o.instances[n.instanceId]=n,o}return{defs:{},instances:{}}}function vo(e,t){return{defs:Ue(Ue({},e.defs),t.defs),instances:Ue(Ue({},e.instances),t.instances)}}function mo(e,t){var n=fr(e.defs,t),r=fr(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function yo(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var bo={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:fo,overlap:fo,allow:fo,className:yo,classNames:yo,color:String,backgroundColor:String,borderColor:String,textColor:String},_o={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function wo(e,t){var n=function(e,t){return Array.isArray(e)?po(e,null,t,!0):"object"==typeof e&&e?po([e],null,t,!0):null!=e?String(e):null}(e.constraint,t);return{display:e.display||null,startEditable:null!=e.startEditable?e.startEditable:e.editable,durationEditable:null!=e.durationEditable?e.durationEditable:e.editable,constraints:null!=n?[n]:[],overlap:null!=e.overlap?e.overlap:null,allows:null!=e.allow?[e.allow]:[],backgroundColor:e.backgroundColor||e.color||"",borderColor:e.borderColor||e.color||"",textColor:e.textColor||"",classNames:(e.className||[]).concat(e.classNames||[])}}function Co(e){return e.reduce(ko,_o)}function ko(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var So={id:String,groupId:String,title:String,url:String,interactive:Boolean},Eo={start:fo,end:fo,date:fo,allDay:Boolean},xo=Ue(Ue(Ue({},So),Eo),{extendedProps:fo});function Ro(e,t,n,r,o){void 0===o&&(o=To(n));var i=Do(e,n,o),s=i.refined,a=i.extra,l=function(e,t){var n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),u=function(e,t,n,r){for(var o=0;o<r.length;o+=1){var i=r[o].parse(e,n);if(i){var s=e.allDay;return null==s&&null==(s=t)&&null==(s=i.allDayGuess)&&(s=!1),{allDay:s,duration:i.duration,typeData:i.typeData,typeId:o}}}return null}(s,l,n.dateEnv,n.pluginHooks.recurringTypes);if(u)return(c=$o(s,a,t?t.sourceId:"",u.allDay,Boolean(u.duration),n)).recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:c,instance:null};var c,d=function(e,t,n,r){var o,i,s=e.allDay,a=null,l=!1,u=null,c=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(c),o)a=o.marker;else if(!r)return null;null!=e.end&&(i=n.dateEnv.createMarkerMeta(e.end));null==s&&(s=null!=t?t:(!o||o.isTimeUnspecified)&&(!i||i.isTimeUnspecified));s&&a&&(a=er(a));i&&(u=i.marker,s&&(u=er(u)),a&&u<=a&&(u=null));u?l=!0:r||(l=n.options.forceEventDuration||!1,u=n.dateEnv.add(a,s?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:s,hasEnd:l,range:{start:a,end:u},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:i?i.forcedTzo:null}}(s,l,n,r);return d?{def:c=$o(s,a,t?t.sourceId:"",d.allDay,d.hasEnd,n),instance:ur(c.defId,d.range,d.forcedStartTzo,d.forcedEndTzo)}:null}function Do(e,t,n){return void 0===n&&(n=To(t)),co(e,n)}function To(e){return Ue(Ue(Ue({},bo),xo),e.pluginHooks.eventRefiners)}function $o(e,t,n,r,o,i){for(var s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:Wn(),sourceId:n,allDay:r,hasEnd:o,interactive:e.interactive,ui:wo(e,i),extendedProps:Ue(Ue({},e.extendedProps||{}),t)},a=0,l=i.pluginHooks.eventDefMemberAdders;a<l.length;a++){var u=l[a];Ue(s,u(e))}return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function Mo(e){var t=Math.floor(Jn(e.start,e.end))||1,n=er(e.start);return{start:n,end:Kn(n,t)}}function Io(e,t){void 0===t&&(t=Er(0));var n=null,r=null;if(e.end){r=er(e.end);var o=e.end.valueOf()-r.valueOf();o&&o>=Mr(t)&&(r=Kn(r,1))}return e.start&&(n=er(e.start),r&&r<=n&&(r=Kn(n,1))),{start:n,end:r}}function Ao(e,t,n,r){return"year"===r?Er(n.diffWholeYears(e,t),"year"):"month"===r?Er(n.diffWholeMonths(e,t),"month"):(i=t,s=er(o=e),a=er(i),{years:0,months:0,days:Math.round(Jn(s,a)),milliseconds:i.valueOf()-a.valueOf()-(o.valueOf()-s.valueOf())});var o,i,s,a}function Oo(e,t){var n,r,o=[],i=t.start;for(e.sort(No),n=0;n<e.length;n+=1)(r=e[n]).start>i&&o.push({start:i,end:r.start}),r.end>i&&(i=r.end);return i<t.end&&o.push({start:i,end:t.end}),o}function No(e,t){return e.start.valueOf()-t.start.valueOf()}function Po(e,t){var n=e.start,r=e.end,o=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(o={start:n,end:r}),o}function Lo(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Ho(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Wo(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Uo(e,t,n,r){var o={},i={},s={},a=[],l=[],u=Bo(e.defs,t);for(var c in e.defs){"inverse-background"===(p=u[(_=e.defs[c]).defId]).display&&(_.groupId?(o[_.groupId]=[],s[_.groupId]||(s[_.groupId]=_)):i[c]=[])}for(var d in e.instances){var f=e.instances[d],p=u[(_=e.defs[f.defId]).defId],h=f.range,g=!_.allDay&&r?Io(h,r):h,v=Po(g,n);v&&("inverse-background"===p.display?_.groupId?o[_.groupId].push(v):i[f.defId].push(v):"none"!==p.display&&("background"===p.display?a:l).push({def:_,ui:p,instance:f,range:v,isStart:g.start&&g.start.valueOf()===v.start.valueOf(),isEnd:g.end&&g.end.valueOf()===v.end.valueOf()}))}for(var m in o)for(var y=0,b=Oo(o[m],n);y<b.length;y++){var _,w=b[y];p=u[(_=s[m]).defId];a.push({def:_,ui:p,instance:null,range:w,isStart:!1,isEnd:!1})}for(var c in i)for(var C=0,k=Oo(i[c],n);C<k.length;C++){w=k[C];a.push({def:e.defs[c],ui:u[c],instance:null,range:w,isStart:!1,isEnd:!1})}return{bg:a,fg:l}}function zo(e,t){e.fcSeg=t}function jo(e){return e.fcSeg||e.parentNode.fcSeg||null}function Bo(e,t){return pr(e,(function(e){return Fo(e,t)}))}function Fo(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Co(n)}function qo(e,t){var n=e.map(Vo);return n.sort((function(e,n){return zn(e,n,t)})),n.map((function(e){return e._seg}))}function Vo(e){var t=e.eventRange,n=t.def,r=t.instance?t.instance.range:t.range,o=r.start?r.start.valueOf():0,i=r.end?r.end.valueOf():0;return Ue(Ue(Ue({},n.extendedProps),n),{id:n.publicId,start:o,end:i,duration:i-o,allDay:Number(n.allDay),_seg:e})}function Yo(e,t){for(var n=t.pluginHooks.isDraggableTransformers,r=e.eventRange,o=r.def,i=r.ui,s=i.startEditable,a=0,l=n;a<l.length;a++){s=(0,l[a])(s,o,i,t)}return s}function Go(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Zo(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function Ko(e,t,n,r,o,i,s){var a=n.dateEnv,l=n.options,u=l.displayEventTime,c=l.displayEventEnd,d=e.eventRange.def,f=e.eventRange.instance;null==u&&(u=!1!==r),null==c&&(c=!1!==o);var p=f.range.start,h=f.range.end,g=i||e.start||e.eventRange.range.start,v=s||e.end||e.eventRange.range.end,m=er(p).valueOf()===er(g).valueOf(),y=er(Xn(h,-1)).valueOf()===er(Xn(v,-1)).valueOf();return u&&!d.allDay&&(m||y)?(g=m?p:g,v=y?h:v,c&&d.hasEnd?a.formatRange(g,v,t,{forcedStartTzo:i?null:f.forcedStartTzo,forcedEndTzo:s?null:f.forcedEndTzo}):a.format(g,t,{forcedTzo:i?null:f.forcedStartTzo})):""}function Xo(e,t,n){var r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Wo(t,r.start)}}function Jo(e){return e.instance?e.instance.instanceId:e.def.defId+":"+e.range.start.toISOString()}function Qo(e,t){var n=e.eventRange,r=n.def,o=n.instance,i=r.url;if(i)return{href:i};var s=t.emitter,a=t.options.eventInteractive;return null==a&&null==(a=r.interactive)&&(a=Boolean(s.hasHandlers("eventClick"))),a?Ln((function(e){s.trigger("eventClick",{el:e.target,event:new hi(t,r,o),jsEvent:e,view:t.viewApi})})):{}}var ei={start:fo,end:fo,allDay:Boolean};function ti(e,t,n){var r=function(e,t){var n=co(e,ei),r=n.refined,o=n.extra,i=r.start?t.createMarkerMeta(r.start):null,s=r.end?t.createMarkerMeta(r.end):null,a=r.allDay;null==a&&(a=i&&i.isTimeUnspecified&&(!s||s.isTimeUnspecified));return Ue({range:{start:i?i.marker:null,end:s?s.marker:null},allDay:a},o)}(e,t),o=r.range;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=t.add(o.start,n)}return r}function ni(e,t,n){return Ue(Ue({},ri(e,t,n)),{timeZone:t.timeZone})}function ri(e,t,n){return{start:t.toDate(e.start),end:t.toDate(e.end),startStr:t.formatIso(e.start,{omitTime:n}),endStr:t.formatIso(e.end,{omitTime:n})}}function oi(e,t){for(var n,r,o={},i=0,s=t.pluginHooks.dateSpanTransforms;i<s.length;i++){var a=s[i];Ue(o,a(e,t))}return Ue(o,(n=e,r=t.dateEnv,Ue(Ue({},ri(n.range,r,n.allDay)),{allDay:n.allDay}))),o}function ii(e,t,n){var r=n.dateEnv,o=n.options,i=t;return e?(i=er(i),i=r.add(i,o.defaultAllDayEventDuration)):i=r.add(i,o.defaultTimedEventDuration),i}function si(e,t,n,r){var o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);var i=Ue(Ue(Ue({},e),o),{ui:Ue(Ue({},e.ui),o.ui)});n.extendedProps&&(i.extendedProps=Ue(Ue({},i.extendedProps),n.extendedProps));for(var s=0,a=r.pluginHooks.eventDefMutationAppliers;s<a.length;s++){(0,a[s])(i,n,r)}return!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0),i}function ai(e,t,n,r,o){var i=o.dateEnv,s=r.standardProps&&!0===r.standardProps.allDay,a=r.standardProps&&!1===r.standardProps.hasEnd,l=Ue({},e);return s&&(l.range=Mo(l.range)),r.datesDelta&&n.startEditable&&(l.range={start:i.add(l.range.start,r.datesDelta),end:i.add(l.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(l.range={start:i.add(l.range.start,r.startDelta),end:l.range.end}),r.endDelta&&n.durationEditable&&(l.range={start:l.range.start,end:i.add(l.range.end,r.endDelta)}),a&&(l.range={start:l.range.start,end:ii(t.allDay,l.range.start,o)}),t.allDay&&(l.range={start:er(l.range.start),end:er(l.range.end)}),l.range.end<l.range.start&&(l.range.end=ii(t.allDay,l.range.start,o)),l}var li=function(){function e(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),e.prototype.getOption=function(e){return this.getCurrentData().options[e]},e}(),ui={id:String,defaultAllDay:Boolean,url:String,format:String,events:fo,eventDataTransform:fo,success:fo,failure:fo};function ci(e,t,n){var r;if(void 0===n&&(n=di(t)),"string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){var o=co(r,n),i=o.refined,s=o.extra,a=function(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;r-=1){var o=n[r].parseMeta(e);if(o)return{sourceDefId:r,meta:o}}return null}(i,t);if(a)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:Wn(),sourceDefId:a.sourceDefId,meta:a.meta,ui:wo(i,t),extendedProps:s}}return null}function di(e){return Ue(Ue(Ue({},bo),ui),e.pluginHooks.eventSourceRefiners)}function fi(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var pi=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger("_resize",!0)},e.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.currentDataManager.emitter).trigger.apply(t,ze([e],n))},e.prototype.changeView=function(e,t){var n=this;this.batchRendering((function(){if(n.unselect(),t)if(t.start&&t.end)n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),n.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{var r=n.getCurrentData().dateEnv;n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(t)})}else n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))},e.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,n,r=this.getCurrentData(),o=r.viewSpecs,i=r.toolbarConfig,s=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]);for(var a in o)s.push(a);for(t=0;t<s.length;t+=1)if((n=o[s[t]])&&n.singleUnit===e)return n;return null},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},e.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})},e.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:fi(e.calendarOptions.now,e.dateEnv)})},e.prototype.gotoDate=function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=this.getCurrentData(),n=Er(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))},e.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},e.prototype.formatDate=function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),to(t))},e.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),to(n),n)},e.prototype.formatIso=function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.select=function(e,t){var n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};var r=this.getCurrentData(),o=ti(n,r.dateEnv,Er({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),function(e,t,n){n.emitter.trigger("select",Ue(Ue({},oi(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}(o,null,r))},e.prototype.unselect=function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))},e.prototype.addEvent=function(e,t){if(e instanceof hi){var n=e._def,r=e._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:ho({def:n,instance:r})}),this.triggerEventAdd(e)),e}var o,i=this.getCurrentData();if(t instanceof En)o=t.internalEventSource;else if("boolean"==typeof t)t&&(o=gr(i.eventSources)[0]);else if(null!=t){var s=this.getEventSourceById(t);if(!s)return console.warn('Could not find an event source with ID "'+t+'"'),null;o=s.internalEventSource}var a=Ro(e,o,i,!1);if(a){var l=new hi(i,a.def,a.def.recurringDef?null:a.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:ho(a)}),this.triggerEventAdd(l),l}return null},e.prototype.triggerEventAdd=function(e){var t=this;this.getCurrentData().emitter.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:gi(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,o=n.instances;for(var i in e=String(e),r){var s=r[i];if(s.publicId===e){if(s.recurringDef)return new hi(t,s,null);for(var a in o){var l=o[a];if(l.defId===s.defId)return new hi(t,s,l)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return vi(e.eventStore,e)},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.getEventSources=function(){var e=this.getCurrentData(),t=e.eventSources,n=[];for(var r in t)n.push(new En(e,t[r]));return n},e.prototype.getEventSourceById=function(e){var t=this.getCurrentData(),n=t.eventSources;for(var r in e=String(e),n)if(n[r].publicId===e)return new En(t,n[r]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof En)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=ci(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new En(t,n)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},e.prototype.scrollToTime=function(e){var t=Er(e);t&&this.trigger("_scrollRequest",{time:t})},e}(),hi=function(){function e(e,t,n){this._context=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in Eo)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=So[e](t),this.mutate({standardProps:{publicId:t}});else if(e in So)t=So[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in bo){var o=bo[e](t);"color"===e?o={backgroundColor:t,borderColor:t}:"editable"===e?o={startEditable:t,durationEditable:t}:((r={})[e]=t,o=r),this.mutate({standardProps:{ui:o}})}else console.warn("Could not set prop '"+e+"'. Use setExtendedProp instead.")},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._context.dateEnv,r=n.createMarker(e);if(r&&this._instance){var o=Ao(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:o}):this.mutate({startDelta:o})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._context.dateEnv;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){var o=Ao(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,o,i,s=this._context.dateEnv,a={allDay:n.allDay},l=s.createMarker(e);if(l&&((null==t||(r=s.createMarker(t)))&&this._instance)){var u=this._instance.range;!0===n.allDay&&(u=Mo(u));var c=Ao(u.start,l,s,n.granularity);if(r){var d=Ao(u.end,r,s,n.granularity);i=d,(o=c).years===i.years&&o.months===i.months&&o.days===i.days&&o.milliseconds===i.milliseconds?this.mutate({datesDelta:c,standardProps:a}):this.mutate({startDelta:c,endDelta:d,standardProps:a})}else a.hasEnd=!1,this.mutate({datesDelta:c,standardProps:a})}},e.prototype.moveStart=function(e){var t=Er(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=Er(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=Er(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._context.dateEnv,n=this._instance,r=to(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},e.prototype.mutate=function(t){var n=this._instance;if(n){var r=this._def,o=this._context,i=o.getCurrentData().eventStore,s=go(i,n.instanceId);s=function(e,t,n,r){var o=Bo(e.defs,t),i={defs:{},instances:{}};for(var s in e.defs){var a=e.defs[s];i.defs[s]=si(a,o[s],n,r)}for(var l in e.instances){var u=e.instances[l];a=i.defs[u.defId],i.instances[l]=ai(u,a,o[u.defId],n,r)}return i}(s,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,o);var a=new e(o,r,n);this._def=s.defs[r.defId],this._instance=s.instances[n.instanceId],o.dispatch({type:"MERGE_EVENTS",eventStore:s}),o.emitter.trigger("eventChange",{oldEvent:a,event:this,relatedEvents:vi(s,o,n),revert:function(){o.dispatch({type:"RESET_EVENTS",eventStore:i})}})}},e.prototype.remove=function(){var e=this._context,t=gi(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new En(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._def,n=t.ui,r=this.startStr,o=this.endStr,i={};return t.title&&(i.title=t.title),r&&(i.start=r),o&&(i.end=o),t.publicId&&(i.id=t.publicId),t.groupId&&(i.groupId=t.groupId),t.url&&(i.url=t.url),n.display&&"auto"!==n.display&&(i.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?i.color=n.backgroundColor:(n.backgroundColor&&(i.backgroundColor=n.backgroundColor),n.borderColor&&(i.borderColor=n.borderColor)),n.textColor&&(i.textColor=n.textColor),n.classNames.length&&(i.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Ue(i,t.extendedProps):i.extendedProps=t.extendedProps),i},e.prototype.toJSON=function(){return this.toPlainObject()},e}();function gi(e){var t,n,r=e._def,o=e._instance;return{defs:(t={},t[r.defId]=r,t),instances:o?(n={},n[o.instanceId]=o,n):{}}}function vi(e,t,n){var r=e.defs,o=e.instances,i=[],s=n?n.instanceId:"";for(var a in o){var l=o[a],u=r[l.defId];l.instanceId!==s&&i.push(new hi(t,u,l))}return i}var mi={};var yi,bi=function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return sr(e)},e.prototype.markerToArray=function(e){return ir(e)},e}();yi=bi,mi["gregory"]=yi;var _i=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;function wi(e){var t=_i.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(ar(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}var Ci=function(){function e(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new mi[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):sr(rr(new Date))},e.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=sr(e)),null!==t&&ar(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=wi(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return lr(e)===lr(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return lr(e)===lr(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(e,t))?{unit:"month",value:n}:(n=function(e,t){var n=Qn(e,t);return null!==n&&n%7==0?n/7:null}(e,t),null!==n?{unit:"week",value:n}:null!==(n=Qn(e,t))?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),Vn(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),Vn(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),Vn(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))},e.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/($r(n)/365):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/function(e){return $r(e)/30}(n):n.days&&null!==(r=Qn(e,t))?r/$r(n):(t.valueOf()-e.valueOf())/Mr(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?er(e):"hour"===t?function(e){return sr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return sr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return sr([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){var r=e.getUTCFullYear(),o=tr(e,r,t,n);if(o<1)return tr(e,r-1,t,n);var i=tr(e,r+1,t,n);return i>=1?Math.min(o,i):o}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=Xn(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),Or(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?sr(rr(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?sr(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-or(ir(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(ir(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?or(ir(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(ir(e))*60):new Date(e.valueOf()-(t||0))},e}(),ki=[],Si={code:"en",week:{dow:0,doy:4},direction:"ltr",buttonText:{prev:"prev",next:"next",prevYear:"prev year",nextYear:"next year",year:"year",today:"today",month:"month",week:"week",day:"day",list:"list"},weekText:"W",weekTextLong:"Week",closeHint:"Close",timeHint:"Time",eventHint:"Event",allDayText:"all-day",moreLinkText:"more",noEventsText:"No events to display"},Ei=Ue(Ue({},Si),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(e,t){return"day"===t?"Today":"This "+e}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show "+e+" more event"+(1===e?"":"s")}});function xi(e){for(var t=e.length>0?e[0].code:"en",n=ki.concat(e),r={en:Ei},o=0,i=n;o<i.length;o++){var s=i[o];r[s.code]=s}return{map:r,defaultCode:t}}function Ri(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){var n=[].concat(e||[]),r=function(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split("-"),o=r.length;o>0;o-=1){var i=r.slice(0,o).join("-");if(t[i])return t[i]}return null}(n,t)||Ei;return Di(e,n,r)}(e,t):Di(e.code,[e.code],e)}function Di(e,t,n){var r=dr([Si,n],["buttonText"]);delete r.code;var o=r.week;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var Ti,$i={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Mi(e,t){return po(function(e){var t;t=!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"==typeof e&&e?[e]:[];return t=t.map((function(e){return Ue(Ue({},$i),e)}))}(e),null,t)}function Ii(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}function Ai(){return null==Ti&&(Ti=function(){if("undefined"==typeof document)return!0;var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);var t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),Ti}var Oi={defs:{},instances:{}},Ni=function(){function e(){this.getKeysForEventDefs=Hr(this._getKeysForEventDefs),this.splitDateSelection=Hr(this._splitDateSpan),this.splitEventStore=Hr(this._splitEventStore),this.splitIndividualUi=Hr(this._splitIndividualUi),this.splitEventDrag=Hr(this._splitInteraction),this.splitEventResize=Hr(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),o=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,r),s=this.splitEventStore(e.eventStore,r),a=this.splitEventDrag(e.eventDrag),l=this.splitEventResize(e.eventResize),u={};for(var c in this.eventUiBuilders=pr(n,(function(e,n){return t.eventUiBuilders[n]||Hr(Pi)})),n){var d=n[c],f=s[c]||Oi,p=this.eventUiBuilders[c];u[c]={businessHours:d.businessHours||e.businessHours,dateSelection:o[c]||null,eventStore:f,eventUiBases:p(e.eventUiBases[""],d.ui,i[c]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[c]||null,eventResize:l[c]||null}}return u},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,r=this.getKeysForDateSpan(e);n<r.length;n++){t[r[n]]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return pr(e.defs,(function(e){return t.getKeysForEventDef(e)}))},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,o={};for(var i in n)for(var s=0,a=t[i];s<a.length;s++){o[f=a[s]]||(o[f]={defs:{},instances:{}}),o[f].defs[i]=n[i]}for(var l in r)for(var u=r[l],c=0,d=t[u.defId];c<d.length;c++){var f;o[f=d[c]]&&(o[f].instances[l]=u)}return o},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var o=0,i=t[r];o<i.length;o++){var s=i[o];n[s]||(n[s]={}),n[s][r]=e[r]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,r),i=function(r){t[r]||(t[r]={affectedEvents:n[r]||Oi,mutatedEvents:o[r]||Oi,isEvent:e.isEvent})};for(var s in n)i(s);for(var s in o)i(s)}return t},e}();function Pi(e,t,n){var r=[];e&&r.push(e),t&&r.push(t);var o={"":Co(r)};return n&&Ue(o,n),o}function Li(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!Wo(r.activeRange,e)),isOther:Boolean(r&&!Wo(r.currentRange,e)),isToday:Boolean(t&&Wo(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Hi(e,t){var n=["fc-day","fc-day-"+Gn[e.dow]];return e.isDisabled?n.push("fc-day-disabled"):(e.isToday&&(n.push("fc-day-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-day-past"),e.isFuture&&n.push("fc-day-future"),e.isOther&&n.push("fc-day-other")),n}function Wi(e,t){var n=["fc-slot","fc-slot-"+Gn[e.dow]];return e.isDisabled?n.push("fc-slot-disabled"):(e.isToday&&(n.push("fc-slot-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-slot-past"),e.isFuture&&n.push("fc-slot-future")),n}var Ui=to({year:"numeric",month:"long",day:"numeric"}),zi=to({week:"long"});function ji(e,t,n,r){void 0===n&&(n="day"),void 0===r&&(r=!0);var o=e.dateEnv,i=e.options,s=e.calendarApi,a=o.format(t,"week"===n?zi:Ui);if(i.navLinks){var l=o.toDate(t),u=function(e){var r="day"===n?i.navLinkDayClick:"week"===n?i.navLinkWeekClick:null;"function"==typeof r?r.call(s,o.toDate(t),e):("string"==typeof r&&(n=r),s.zoomTo(t,n))};return Ue({title:qn(i.navLinkHint,[a,l],a),"data-navlink":""},r?Pn(u):{onClick:u})}return{"aria-label":a}}var Bi,Fi=null;function qi(){return null===Fi&&(Fi=function(){var e=document.createElement("div");Mn(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return xn(e),t}()),Fi}function Vi(){return Bi||(Bi=function(){var e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);var t=Yi(e);return document.body.removeChild(e),t}()),Bi}function Yi(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function Gi(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,s=parseInt(n.borderBottomWidth,10)||0,a=Yi(e),l=a.y-r-o,u={borderLeft:r,borderRight:o,borderTop:i,borderBottom:s,scrollbarBottom:a.x-i-s,scrollbarLeft:0,scrollbarRight:0};return qi()&&"rtl"===n.direction?u.scrollbarLeft=l:u.scrollbarRight=l,t&&(u.paddingLeft=parseInt(n.paddingLeft,10)||0,u.paddingRight=parseInt(n.paddingRight,10)||0,u.paddingTop=parseInt(n.paddingTop,10)||0,u.paddingBottom=parseInt(n.paddingBottom,10)||0),u}function Zi(e,t,n){void 0===t&&(t=!1);var r=n?e.getBoundingClientRect():function(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}(e),o=Gi(e,t),i={left:r.left+o.borderLeft+o.scrollbarLeft,right:r.right-o.borderRight-o.scrollbarRight,top:r.top+o.borderTop,bottom:r.bottom-o.borderBottom-o.scrollbarBottom};return t&&(i.left+=o.paddingLeft,i.right-=o.paddingRight,i.top+=o.paddingTop,i.bottom-=o.paddingBottom),i}function Ki(e){for(var t,n,r,o=function(e){var t=[];for(;e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}(e),i=e.getBoundingClientRect(),s=0,a=o;s<a.length;s++){var l=a[s],u=(t=i,n=l.getBoundingClientRect(),r=void 0,(r={left:Math.max(t.left,n.left),right:Math.min(t.right,n.right),top:Math.max(t.top,n.top),bottom:Math.min(t.bottom,n.bottom)}).left<r.right&&r.top<r.bottom&&r);if(!u)return null;i=u}return i}function Xi(e,t,n){var r=!1,o=function(){r||(r=!0,t.apply(this,arguments))},i=function(){r||(r=!0,n&&n.apply(this,arguments))},s=e(o,i);s&&"function"==typeof s.then&&s.then(o,i)}var Ji=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)},e.prototype.off=function(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=this.handlers[e]||[],o=this.options&&this.options[e],i=0,s=[].concat(o||[],r);i<s.length;i++){s[i].apply(this.thisContext,t)}},e.prototype.hasHandlers=function(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])},e}();var Qi=function(){function e(e,t,n,r){this.els=t;var o=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(o.left),r&&this.buildElVerticals(o.top)}return e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r].getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r].getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this.lefts,r=this.rights,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.topToIndex=function(e){var t,n=this.tops,r=this.bottoms,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),es=function(){function e(){}return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}();!function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}We(t,e),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth}}(es),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}We(t,e),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth}}(es);var ts=function(){function e(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}return e.prototype.setIconOverride=function(e){var t,n;if("object"==typeof e&&e){for(n in t=Ue({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e,t){var n;return(n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e])?this.baseIconClass+" "+n:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();ts.prototype.classes={},ts.prototype.iconClasses={},ts.prototype.baseIconClass="",ts.prototype.iconOverridePrefix="";var ns=function(){function e(e,t,n,r){var o=this;this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=function(e){o.queuedRequest=Ue({},o.queuedRequest||{},e),o.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return e.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},e.prototype.update=function(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},e.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},e.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},e}(),rs=wn({});function os(e,t,n,r,o,i,s,a,l,u,c,d,f){return{dateEnv:o,options:n,pluginHooks:s,emitter:u,dispatch:a,getCurrentData:l,calendarApi:c,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:i,isRtl:"rtl"===n.direction,addResizeHandler:function(e){u.on("_resize",e)},removeResizeHandler:function(e){u.off("_resize",e)},createScrollResponder:function(e){return new ns(e,u,Er(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:f}}var is=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(mr(e,this.props),mr(t,this.state)),!yr(this.props,e,this.propEquality)||!yr(this.state,t,this.stateEquality)},t.prototype.safeSetState=function(e){yr(this.state,Ue(Ue({},this.state),e),this.stateEquality)||this.setState(e)},t.addPropsEquality=as,t.addStateEquality=ls,t.contextType=rs,t}(vn);is.prototype.propEquality={},is.prototype.stateEquality={};var ss=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.contextType=rs,t}(is);function as(e){var t=Object.create(this.prototype.propEquality);Ue(t,e),this.prototype.propEquality=t}function ls(e){var t=Object.create(this.prototype.stateEquality);Ue(t,e),this.prototype.stateEquality=t}function us(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var cs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uid=Wn(),t}return We(t,e),t.prototype.prepareHits=function(){},t.prototype.queryHit=function(e,t,n,r){return null},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!Rn(e,".fc-event-mirror")},t.prototype.isValidDateDownEl=function(e){return!(Rn(e,".fc-event:not(.fc-bg-event)")||Rn(e,".fc-more-link")||Rn(e,"a[data-navlink]")||Rn(e,".fc-popover"))},t}(ss);function ds(e){return{id:Wn(),deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,contentTypeHandlers:e.contentTypeHandlers||{},listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function fs(){var e,t=[],n=[];return function(r,o){return e&&Lr(r,t)&&Lr(o,n)||(e=function(e,t){var n={},r={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(e){for(var t=0,i=e;t<i.length;t++){var s=i[t];n[s.id]||(n[s.id]=!0,o(s.deps),l=s,r={reducers:(a=r).reducers.concat(l.reducers),isLoadingFuncs:a.isLoadingFuncs.concat(l.isLoadingFuncs),contextInit:a.contextInit.concat(l.contextInit),eventRefiners:Ue(Ue({},a.eventRefiners),l.eventRefiners),eventDefMemberAdders:a.eventDefMemberAdders.concat(l.eventDefMemberAdders),eventSourceRefiners:Ue(Ue({},a.eventSourceRefiners),l.eventSourceRefiners),isDraggableTransformers:a.isDraggableTransformers.concat(l.isDraggableTransformers),eventDragMutationMassagers:a.eventDragMutationMassagers.concat(l.eventDragMutationMassagers),eventDefMutationAppliers:a.eventDefMutationAppliers.concat(l.eventDefMutationAppliers),dateSelectionTransformers:a.dateSelectionTransformers.concat(l.dateSelectionTransformers),datePointTransforms:a.datePointTransforms.concat(l.datePointTransforms),dateSpanTransforms:a.dateSpanTransforms.concat(l.dateSpanTransforms),views:Ue(Ue({},a.views),l.views),viewPropsTransformers:a.viewPropsTransformers.concat(l.viewPropsTransformers),isPropsValid:l.isPropsValid||a.isPropsValid,externalDefTransforms:a.externalDefTransforms.concat(l.externalDefTransforms),viewContainerAppends:a.viewContainerAppends.concat(l.viewContainerAppends),eventDropTransformers:a.eventDropTransformers.concat(l.eventDropTransformers),calendarInteractions:a.calendarInteractions.concat(l.calendarInteractions),componentInteractions:a.componentInteractions.concat(l.componentInteractions),themeClasses:Ue(Ue({},a.themeClasses),l.themeClasses),eventSourceDefs:a.eventSourceDefs.concat(l.eventSourceDefs),cmdFormatter:l.cmdFormatter||a.cmdFormatter,recurringTypes:a.recurringTypes.concat(l.recurringTypes),namedTimeZonedImpl:l.namedTimeZonedImpl||a.namedTimeZonedImpl,initialView:a.initialView||l.initialView,elementDraggingImpl:a.elementDraggingImpl||l.elementDraggingImpl,optionChangeHandlers:Ue(Ue({},a.optionChangeHandlers),l.optionChangeHandlers),scrollGridImpl:l.scrollGridImpl||a.scrollGridImpl,contentTypeHandlers:Ue(Ue({},a.contentTypeHandlers),l.contentTypeHandlers),listenerRefiners:Ue(Ue({},a.listenerRefiners),l.listenerRefiners),optionRefiners:Ue(Ue({},a.optionRefiners),l.optionRefiners),propSetHandlers:Ue(Ue({},a.propSetHandlers),l.propSetHandlers)})}var a,l}return e&&o(e),o(t),r}(r,o)),t=r,n=o,e}}var ps=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t}(ts);function hs(e,t,n,r){if(t[e])return t[e];var o=function(e,t,n,r){var o=n[e],i=r[e],s=function(e){return o&&null!==o[e]?o[e]:i&&null!==i[e]?i[e]:null},a=s("component"),l=s("superType"),u=null;if(l){if(l===e)throw new Error("Can't have a custom view type that references itself");u=hs(l,t,n,r)}!a&&u&&(a=u.component);if(!a)return null;return{type:e,component:a,defaults:Ue(Ue({},u?u.defaults:{}),o?o.rawOptions:{}),overrides:Ue(Ue({},u?u.overrides:{}),i?i.rawOptions:{})}}(e,t,n,r);return o&&(t[e]=o),o}ps.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},ps.prototype.baseIconClass="fc-icon",ps.prototype.iconClasses={close:"fc-icon-x",prev:"fc-icon-chevron-left",next:"fc-icon-chevron-right",prevYear:"fc-icon-chevrons-left",nextYear:"fc-icon-chevrons-right"},ps.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},ps.prototype.iconOverrideOption="buttonIcons",ps.prototype.iconOverrideCustomButtonOption="icon",ps.prototype.iconOverridePrefix="fc-icon-";var gs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=bn(),t.handleRootEl=function(e){us(t.rootElRef,e),t.props.elRef&&us(t.props.elRef,e)},t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.hookProps;return mn(bs,{hookProps:n,didMount:t.didMount,willUnmount:t.willUnmount,elRef:this.handleRootEl},(function(r){return mn(ms,{hookProps:n,content:t.content,defaultContent:t.defaultContent,backupElRef:e.rootElRef},(function(e,o){return t.children(r,ws(t.classNames,n),e,o)}))}))},t}(ss),vs=wn(0);function ms(e){return mn(vs.Consumer,null,(function(t){return mn(ys,Ue({renderId:t},e))}))}var ys=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerElRef=bn(),t}return We(t,e),t.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},t.prototype.componentDidMount=function(){this.updateCustomContent()},t.prototype.componentDidUpdate=function(){this.updateCustomContent()},t.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},t.prototype.renderInnerContent=function(){var e=this.customContentInfo,t=this.getInnerContent(),n=this.getContentMeta(t);return e&&e.contentKey===n.contentKey?e&&(e.contentVal=t[n.contentKey]):(e&&(e.destroy&&e.destroy(),e=this.customContentInfo=null),n.contentKey&&(e=this.customContentInfo=Ue({contentKey:n.contentKey,contentVal:t[n.contentKey]},n.buildLifecycleFuncs()))),e?[]:t},t.prototype.getInnerContent=function(){var e=this.props,t=Cs(e.content,e.hookProps);return void 0===t&&(t=Cs(e.defaultContent,e.hookProps)),null==t?null:t},t.prototype.getContentMeta=function(e){var t=this.context.pluginHooks.contentTypeHandlers,n="",r=null;if(e)for(var o in t)if(void 0!==e[o]){n=o,r=t[o];break}return{contentKey:n,buildLifecycleFuncs:r}},t.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},t}(ss),bs=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&us(t.props.elRef,e)},t}return We(t,e),t.prototype.render=function(){return this.props.children(this.handleRootEl)},t.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e(Ue(Ue({},this.props.hookProps),{el:this.rootEl}))},t.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e(Ue(Ue({},this.props.hookProps),{el:this.rootEl}))},t}(ss);function _s(){var e,t,n=[];return function(r,o){return t&&vr(t,o)&&r===e||(e=r,t=o,n=ws(r,o)),n}}function ws(e,t){return"function"==typeof e&&(e=e(t)),yo(e)}function Cs(e,t){return"function"==typeof e?e(t,mn):e}var ks=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.normalizeClassNames=_s(),t}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r={view:t.viewApi},o=this.normalizeClassNames(n.viewClassNames,r);return mn(bs,{hookProps:r,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount,elRef:e.elRef},(function(t){return e.children(t,["fc-"+e.viewSpec.type+"-view","fc-view"].concat(o))}))},t}(ss);function Ss(e){return pr(e,Es)}function Es(e){var t,n="function"==typeof e?{component:e}:e,r=n.component;return n.content&&(t=n,r=function(e){return mn(rs.Consumer,null,(function(n){return mn(ks,{viewSpec:n.viewSpec},(function(r,o){var i=Ue(Ue({},e),{nextDayThreshold:n.options.nextDayThreshold});return mn(gs,{hookProps:i,classNames:t.classNames,content:t.content,didMount:t.didMount,willUnmount:t.willUnmount,elRef:r},(function(e,t,n,r){return mn("div",{className:o.concat(t).join(" "),ref:e},r)}))}))}))}),{superType:n.type,component:r,rawOptions:n}}function xs(e,t,n,r){var o=Ss(e),i=Ss(t.views),s=function(e,t){var n,r={};for(n in e)hs(n,r,e,t);for(n in t)hs(n,r,e,t);return r}(o,i);return pr(s,(function(e){return function(e,t,n,r,o){var i=e.overrides.duration||e.defaults.duration||r.duration||n.duration,s=null,a="",l="",u={};if(i&&(s=function(e){var t=JSON.stringify(e),n=Rs[t];void 0===n&&(n=Er(e),Rs[t]=n);return n}(i),s)){var c=Ar(s);a=c.unit,1===c.value&&(l=a,u=t[a]?t[a].rawOptions:{})}var d=function(t){var n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null},f=function(t){var n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[l]?n[l]:null};return{type:e.type,component:e.component,duration:s,durationUnit:a,singleUnit:l,optionDefaults:e.defaults,optionOverrides:Ue(Ue({},u),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(o)||e.defaults.buttonText||d(ro)||e.type,buttonTitleOverride:f(r)||f(n)||e.overrides.buttonHint,buttonTitleDefault:f(o)||e.defaults.buttonHint||f(ro)}}(e,i,t,n,r)}))}var Rs={};var Ds=function(){function e(e){this.props=e,this.nowDate=fi(e.nowInput,e.dateEnv),this.initHiddenDays()}return e.prototype.buildPrev=function(e,t,n){var r=this.props.dateEnv,o=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,n)},e.prototype.buildNext=function(e,t,n){var r=this.props.dateEnv,o=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,n)},e.prototype.build=function(e,t,n){void 0===n&&(n=!0);var r,o,i,s,a,l,u=this.props;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=function(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}(e,r)),o=this.buildCurrentRangeInfo(e,t),i=/^(year|month|week|day)$/.test(o.unit),s=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,i),a=s=this.trimHiddenDays(s),u.showNonCurrentDates||(a=Po(a,o.range)),a=Po(a=this.adjustActiveRange(a),r),l=Lo(o.range,r),{validRange:r,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:i,activeRange:a,renderRange:s,slotMinTime:u.slotMinTime,slotMaxTime:u.slotMaxTime,isValid:l,dateIncrement:this.buildDateIncrement(o.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.props,o=null,i=null,s=null;return r.duration?(o=r.duration,i=r.durationUnit,s=this.buildRangeFromDuration(e,t,o,i)):(n=this.props.dayCount)?(i="day",s=this.buildRangeFromDayCount(e,t,n)):(s=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(s.start,s.end).unit:(i=Ar(o=this.getFallbackDuration()).unit,s=this.buildRangeFromDuration(e,t,o,i)),{duration:o,unit:i,range:s}},e.prototype.getFallbackDuration=function(){return Er({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,o=t.slotMinTime,i=t.slotMaxTime,s=e.start,a=e.end;return r&&($r(o)<0&&(s=er(s),s=n.add(s,o)),$r(i)>1&&(a=Kn(a=er(a),-1),a=n.add(a,i))),{start:s,end:a}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var o,i,s,a=this.props,l=a.dateEnv,u=a.dateAlignment;if(!u){var c=this.props.dateIncrement;u=c&&Mr(c)<Mr(n)?Ar(c).unit:r}function d(){o=l.startOf(e,u),i=l.add(o,n),s={start:o,end:i}}return $r(n)<=1&&this.isHiddenDay(o)&&(o=er(o=this.skipHiddenDays(o,t))),d(),this.trimHiddenDays(s)||(e=this.skipHiddenDays(e,t),d()),s},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,o=this.props,i=o.dateEnv,s=o.dateAlignment,a=0,l=e;s&&(l=i.startOf(l,s)),l=er(l),r=l=this.skipHiddenDays(l,t);do{r=Kn(r,1),this.isHiddenDay(r)||(a+=1)}while(a<n);return{start:l,end:r}},e.prototype.buildCustomVisibleRange=function(e){var t=this.props,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,o=this.refineRange(r);return!o||null!=o.start&&null!=o.end?o:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.props.dateIncrement;return n||((t=this.props.dateAlignment)?Er(1,t):e||Er({days:1}))},e.prototype.refineRange=function(e){if(e){var t=function(e,t){var n=null,r=null;return e.start&&(n=t.createMarker(e.start)),e.end&&(r=t.createMarker(e.end)),n||r?n&&r&&r<n?null:{start:n,end:r}:null}(e,this.props.dateEnv);return t&&(t=Io(t)),t}return null},e.prototype.initHiddenDays=function(){var e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=Kn(e,t);return e},e}();function Ts(e,t,n){var r=t?t.activeRange:null;return Is({},function(e,t){var n=di(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(var i=0,s=r;i<s.length;i++){var a=ci(s[i],t,n);a&&o.push(a)}return o}(e,n),r,n)}function $s(e,t,n,r){var o,i,s=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Is(e,t.sources,s,r);case"REMOVE_EVENT_SOURCE":return o=e,i=t.sourceId,fr(o,(function(e){return e.sourceId!==i}));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?As(e,s,r):e;case"FETCH_EVENT_SOURCES":return Os(e,t.sourceIds?hr(t.sourceIds):Ps(e,r),s,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){var o,i=e[t];if(i&&n===i.latestFetchId)return Ue(Ue({},e),((o={})[t]=Ue(Ue({},i),{isFetching:!1,fetchRange:r}),o));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function Ms(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function Is(e,t,n,r){for(var o={},i=0,s=t;i<s.length;i++){var a=s[i];o[a.sourceId]=a}return n&&(o=As(o,n,r)),Ue(Ue({},e),o)}function As(e,t,n){return Os(e,fr(e,(function(e){return function(e,t,n){if(!Ls(e,n))return!e.latestFetchId;return!n.options.lazyFetching||!e.fetchRange||e.isFetching||t.start<e.fetchRange.start||t.end>e.fetchRange.end}(e,t,n)})),t,!1,n)}function Os(e,t,n,r,o){var i={};for(var s in e){var a=e[s];t[s]?i[s]=Ns(a,n,r,o):i[s]=a}return i}function Ns(e,t,n,r){var o=r.options,i=r.calendarApi,s=r.pluginHooks.eventSourceDefs[e.sourceDefId],a=Wn();return s.fetch({eventSource:e,range:t,isRefetch:n,context:r},(function(n){var s=n.rawEvents;o.eventSourceSuccess&&(s=o.eventSourceSuccess.call(i,s,n.xhr)||s),e.success&&(s=e.success.call(i,s,n.xhr)||s),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:a,fetchRange:t,rawEvents:s})}),(function(n){console.warn(n.message,n),o.eventSourceFailure&&o.eventSourceFailure.call(i,n),e.failure&&e.failure(n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:a,fetchRange:t,error:n})})),Ue(Ue({},e),{isFetching:!0,latestFetchId:a})}function Ps(e,t){return fr(e,(function(e){return Ls(e,t)}))}function Ls(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function Hs(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,o,i){if(t&&n===t.latestFetchId){var s=po(function(e,t,n){var r=n.options.eventDataTransform,o=t?t.eventDataTransform:null;o&&(e=Ws(e,o));r&&(e=Ws(e,r));return e}(o,t,i),t,i);return r&&(s=wr(s,r,i)),vo(Us(e,t.sourceId),s)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=wr(t,n,r));return vo(e,t)}(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return vo(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?wr(e,r.activeRange,o):e;case"REMOVE_EVENTS":return function(e,t){var n=e.defs,r=e.instances,o={},i={};for(var s in n)t.defs[s]||(o[s]=n[s]);for(var a in r)!t.instances[a]&&o[r[a].defId]&&(i[a]=r[a]);return{defs:o,instances:i}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return Us(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return mo(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Ws(e,t){var n;if(t){n=[];for(var r=0,o=e;r<o.length;r++){var i=o[r],s=t(i);s?n.push(s):null==s&&n.push(i)}}else n=e;return n}function Us(e,t){return mo(e,(function(e){return e.sourceId!==t}))}function zs(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function js(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function Bs(e,t){var n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Fs(e,t){var n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function qs(e,t,n,r,o){return{header:e.headerToolbar?Vs(e.headerToolbar,e,t,n,r,o):null,footer:e.footerToolbar?Vs(e.footerToolbar,e,t,n,r,o):null}}function Vs(e,t,n,r,o,i){var s={},a=[],l=!1;for(var u in e){var c=Ys(e[u],t,n,r,o,i);s[u]=c.widgets,a.push.apply(a,c.viewsWithButtons),l=l||c.hasTitle}return{sectionWidgets:s,viewsWithButtons:a,hasTitle:l}}function Ys(e,t,n,r,o,i){var s="rtl"===t.direction,a=t.customButtons||{},l=n.buttonText||{},u=t.buttonText||{},c=n.buttonHints||{},d=t.buttonHints||{},f=e?e.split(" "):[],p=[],h=!1;return{widgets:f.map((function(e){return e.split(",").map((function(e){if("title"===e)return h=!0,{buttonName:e};var n,f,g,v,m,y;if(n=a[e])g=function(e){n.click&&n.click.call(e.target,e,e.target)},(v=r.getCustomButtonIconClass(n))||(v=r.getIconClass(e,s))||(m=n.text),y=n.hint||n.text;else if(f=o[e]){p.push(e),g=function(){i.changeView(e)},(m=f.buttonTextOverride)||(v=r.getIconClass(e,s))||(m=f.buttonTextDefault);var b=f.buttonTextOverride||f.buttonTextDefault;y=qn(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[b,e],b)}else if(i[e])if(g=function(){i[e]()},(m=l[e])||(v=r.getIconClass(e,s))||(m=u[e]),"prevYear"===e||"nextYear"===e){var _="prevYear"===e?"prev":"next";y=qn(c[_]||d[_],[u.year||"year","year"],u[e])}else y=function(t){return qn(c[e]||d[e],[u[t]||t,t],u[e])};return{buttonName:e,buttonClick:g,buttonIcon:v,buttonText:m,buttonHint:y}}))})),viewsWithButtons:p,hasTitle:h}}function Gs(e,t,n,r,o){var i=null;"GET"===(e=e.toUpperCase())?t=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+Zs(t)}(t,n):i=Zs(n);var s=new XMLHttpRequest;s.open(e,t,!0),"GET"!==e&&s.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),s.onload=function(){if(s.status>=200&&s.status<400){var e=!1,t=void 0;try{t=JSON.parse(s.responseText),e=!0}catch(e){}e?r(t,s):o("Failure parsing JSON",s)}else o("Request failed",s)},s.onerror=function(){o("Request failed",s)},s.send(i)}function Zs(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}var Ks={parseMeta:function(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var r=e.eventSource.meta,o=function(e,t,n){var r,o,i,s,a=n.dateEnv,l=n.options,u={};r=e.startParam,null==r&&(r=l.startParam);o=e.endParam,null==o&&(o=l.endParam);i=e.timeZoneParam,null==i&&(i=l.timeZoneParam);s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Ue(u,s),u[r]=a.formatIso(t.start),u[o]=a.formatIso(t.end),"local"!==a.timeZone&&(u[i]=a.timeZone);return u}(r,e.range,e.context);Gs(r.method,r.url,o,(function(e,n){t({rawEvents:e,xhr:n})}),(function(e,t){n({message:e,xhr:t})}))}};function Xs(e,t){for(var n=gr(t.getCurrentData().eventSources),r=[],o=0,i=e;o<i.length;o++){for(var s=i[o],a=!1,l=0;l<n.length;l+=1)if(n[l]._raw===s){n.splice(l,1),a=!0;break}a||r.push(s)}for(var u=0,c=n;u<c.length;u++){var d=c[u];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var f=0,p=r;f<p.length;f++){var h=p[f];t.calendarApi.addEventSource(h)}}var Js=[ds({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),ds({eventSourceDefs:[{parseMeta:function(e){return"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.context.dateEnv;Xi(e.eventSource.meta.bind(null,ni(e.range,r)),(function(e){t({rawEvents:e})}),n)}}]}),ds({eventSourceRefiners:{method:String,extraParams:fo,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[Ks]}),ds({recurringTypes:[{parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r=void 0;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(o=e.endTime,i=e.startTime,r={years:o.years-i.years,months:o.months-i.months,days:o.days-i.days,milliseconds:o.milliseconds-i.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}var o,i;return null},expand:function(e,t,n){var r=Po(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){var o=e?hr(e):null,i=er(n.start),s=n.end,a=[];for(;i<s;){var l=void 0;o&&!o[i.getUTCDay()]||(l=t?r.add(i,t):i,a.push(l)),i=Kn(i,1)}return a}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:fo,startTime:Er,endTime:Er,duration:Er,startRecur:fo,endRecur:fo}}),ds({optionChangeHandlers:{events:function(e,t){Xs([e],t)},eventSources:Xs}}),ds({isLoadingFuncs:[function(e){return Ms(e.eventSources)}],contentTypeHandlers:{html:function(){var e=null,t="";return{render:function(n,r){n===e&&r===t||(n.innerHTML=r),e=n,t=r},destroy:function(){e.innerHTML="",e=null,t=""}}},domNodes:function(){var e=null,t=[];function n(){t.forEach(xn),t=[],e=null}return{render:function(r,o){var i=Array.prototype.slice.call(o);if(r!==e||!Lr(t,i)){for(var s=0,a=i;s<a.length;s++){var l=a[s];r.appendChild(l)}n()}e=r,t=i},destroy:n}}},propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Ue(Ue({},ni(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",vi(e,t))}}})];var Qs=function(){function e(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return e.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},e.prototype.pause=function(e){void 0===e&&(e="");var t=this.pauseDepths;t[e]=(t[e]||0)+1,this.clearTimeout()},e.prototype.resume=function(e,t){void 0===e&&(e="");var n=this.pauseDepths;if(e in n){if(t)delete n[e];else n[e]-=1,n[e]<=0&&delete n[e];this.tryDrain()}},e.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},e.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},e.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},e.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},e.prototype.drained=function(){this.drainedOption&&this.drainedOption()},e}(),ea=function(){function e(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Qs(this.drain.bind(this))}return e.prototype.request=function(e,t){this.queue.push(e),this.delayedRunner.request(t)},e.prototype.pause=function(e){this.delayedRunner.pause(e)},e.prototype.resume=function(e,t){this.delayedRunner.resume(e,t)},e.prototype.drain=function(){for(var e=this.queue;e.length;){for(var t=[],n=void 0;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}},e.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},e.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},e}();function ta(e,t,n){var r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,to(t.titleFormat||function(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=Qn(e.currentRange.start,e.currentRange.end);if(null!==n&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}var na=function(){function e(e){var t=this;this.computeOptionsData=Hr(this._computeOptionsData),this.computeCurrentViewData=Hr(this._computeCurrentViewData),this.organizeRawLocales=Hr(xi),this.buildLocale=Hr(Ri),this.buildPluginHooks=fs(),this.buildDateEnv=Hr(ra),this.buildTheme=Hr(oa),this.parseToolbars=Hr(qs),this.buildViewSpecs=Hr(xs),this.buildDateProfileGenerator=Wr(ia),this.buildViewApi=Hr(sa),this.buildViewUiProps=Wr(ua),this.buildEventUiBySource=Hr(aa,vr),this.buildEventUiBases=Hr(la),this.parseContextBusinessHours=Wr(da),this.buildTitle=Hr(ta),this.emitter=new Ji,this.actionRunner=new ea(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return t.data},this.dispatch=function(e){t.actionRunner.request(e)},this.props=e,this.actionRunner.pause();var n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),o=r.calendarOptions.initialView||r.pluginHooks.initialView,i=this.computeCurrentViewData(o,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);var s,a,l,u=(s=r.calendarOptions,a=r.dateEnv,null!=(l=s.initialDate)?a.createMarker(l):fi(s.now,a)),c=i.dateProfileGenerator.build(u);Wo(c.activeRange,u)||(u=c.currentRange.start);for(var d={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},f=0,p=r.pluginHooks.contextInit;f<p.length;f++){(0,p[f])(d)}for(var h=Ts(r.calendarOptions,c,d),g={dynamicOptionOverrides:n,currentViewType:o,currentDate:u,dateProfile:c,businessHours:this.parseContextBusinessHours(d),eventSources:h,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(d).selectionConfig},v=Ue(Ue({},d),g),m=0,y=r.pluginHooks.reducers;m<y.length;m++){var b=y[m];Ue(g,b(null,null,v))}ca(g,d)&&this.emitter.trigger("loading",!0),this.state=g,this.updateData(),this.actionRunner.resume()}return e.prototype.resetOptions=function(e,t){var n=this.props;n.optionOverrides=t?Ue(Ue({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},e.prototype._handleAction=function(e){var t=this,n=t.props,r=t.state,o=t.emitter,i=function(e,t){var n;return"SET_OPTION"===t.type?Ue(Ue({},e),((n={})[t.optionName]=t.rawOptionValue,n)):e}(r.dynamicOptionOverrides,e),s=this.computeOptionsData(n.optionOverrides,i,n.calendarApi),a=function(e,t){"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType);return e}(r.currentViewType,e),l=this.computeCurrentViewData(a,s,n.optionOverrides,i);n.calendarApi.currentDataManager=this,o.setThisContext(n.calendarApi),o.setOptions(l.options);var u={dateEnv:s.dateEnv,options:s.calendarOptions,pluginHooks:s.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:o,getCurrentData:this.getCurrentData},c=r.currentDate,d=r.dateProfile;this.data&&this.data.dateProfileGenerator!==l.dateProfileGenerator&&(d=l.dateProfileGenerator.build(c)),c=function(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}(c,e),d=function(e,t,n,r){var o;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if((o=r.buildPrev(e,n)).isValid)return o;break;case"NEXT":if((o=r.buildNext(e,n)).isValid)return o}return e}(d,e,c,l.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&Wo(d.currentRange,c)||(c=d.currentRange.start);for(var f=$s(r.eventSources,e,d,u),p=Hs(r.eventStore,e,f,d,u),h=Ms(f)&&!l.options.progressiveEventRendering&&r.renderableEventStore||p,g=this.buildViewUiProps(u),v=g.eventUiSingleBase,m=g.selectionConfig,y=this.buildEventUiBySource(f),b={dynamicOptionOverrides:i,currentViewType:a,currentDate:c,dateProfile:d,eventSources:f,eventStore:p,renderableEventStore:h,selectionConfig:m,eventUiBases:this.buildEventUiBases(h.defs,v,y),businessHours:this.parseContextBusinessHours(u),dateSelection:zs(r.dateSelection,e),eventSelection:js(r.eventSelection,e),eventDrag:Bs(r.eventDrag,e),eventResize:Fs(r.eventResize,e)},_=Ue(Ue({},u),b),w=0,C=s.pluginHooks.reducers;w<C.length;w++){var k=C[w];Ue(b,k(r,e,_))}var S=ca(r,u),E=ca(b,u);!S&&E?o.trigger("loading",!0):S&&!E&&o.trigger("loading",!1),this.state=b,n.onAction&&n.onAction(e)},e.prototype.updateData=function(){var e,t,n,r,o=this.props,i=this.state,s=this.data,a=this.computeOptionsData(o.optionOverrides,i.dynamicOptionOverrides,o.calendarApi),l=this.computeCurrentViewData(i.currentViewType,a,o.optionOverrides,i.dynamicOptionOverrides),u=this.data=Ue(Ue(Ue({viewTitle:this.buildTitle(i.dateProfile,l.options,a.dateEnv),calendarApi:o.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},a),l),i),c=a.pluginHooks.optionChangeHandlers,d=s&&s.calendarOptions,f=a.calendarOptions;if(d&&d!==f)for(var p in d.timeZone!==f.timeZone&&(i.eventSources=u.eventSources=(e=u.eventSources,t=i.dateProfile,n=u,r=t?t.activeRange:null,Os(e,Ps(e,n),r,!0,n)),i.eventStore=u.eventStore=function(e,t,n){var r=e.defs,o=pr(e.instances,(function(e){var o=r[e.defId];return o.allDay||o.recurringDef?e:Ue(Ue({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:r,instances:o}}(u.eventStore,s.dateEnv,u.dateEnv)),c)d[p]!==f[p]&&c[p](f[p],u);o.onData&&o.onData(u)},e.prototype._computeOptionsData=function(e,t,n){var r=this.processRawCalendarOptions(e,t),o=r.refinedOptions,i=r.pluginHooks,s=r.localeDefaults,a=r.availableLocaleData;fa(r.extra);var l=this.buildDateEnv(o.timeZone,o.locale,o.weekNumberCalculation,o.firstDay,o.weekText,i,a,o.defaultRangeSeparator),u=this.buildViewSpecs(i.views,e,t,s),c=this.buildTheme(o,i);return{calendarOptions:o,pluginHooks:i,dateEnv:l,viewSpecs:u,theme:c,toolbarConfig:this.parseToolbars(o,e,c,u,n),localeDefaults:s,availableRawLocales:a.map}},e.prototype.processRawCalendarOptions=function(e,t){var n=uo([ro,e,t]),r=n.locales,o=n.locale,i=this.organizeRawLocales(r),s=i.map,a=this.buildLocale(o||i.defaultCode,s).options,l=this.buildPluginHooks(e.plugins||[],Js),u=this.currentCalendarOptionsRefiners=Ue(Ue(Ue(Ue(Ue({},no),oo),io),l.listenerRefiners),l.optionRefiners),c={},d=uo([ro,a,e,t]),f={},p=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,g=!1;for(var v in d)"plugins"!==v&&(d[v]===p[v]||so[v]&&v in p&&so[v](p[v],d[v])?f[v]=h[v]:u[v]?(f[v]=u[v](d[v]),g=!0):c[v]=p[v]);return g&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=f),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:l,availableLocaleData:i,localeDefaults:a,extra:c}},e.prototype._computeCurrentViewData=function(e,t,n,r){var o=t.viewSpecs[e];if(!o)throw new Error('viewType "'+e+"\" is not available. Please make sure you've loaded all neccessary plugins");var i=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,r),s=i.refinedOptions;return fa(i.extra),{viewSpec:o,options:s,dateProfileGenerator:this.buildDateProfileGenerator({dateProfileGeneratorClass:o.optionDefaults.dateProfileGeneratorClass,duration:o.duration,durationUnit:o.durationUnit,usesMinMaxTime:o.optionDefaults.usesMinMaxTime,dateEnv:t.dateEnv,calendarApi:this.props.calendarApi,slotMinTime:s.slotMinTime,slotMaxTime:s.slotMaxTime,showNonCurrentDates:s.showNonCurrentDates,dayCount:s.dayCount,dateAlignment:s.dateAlignment,dateIncrement:s.dateIncrement,hiddenDays:s.hiddenDays,weekends:s.weekends,nowInput:s.now,validRangeInput:s.validRange,visibleRangeInput:s.visibleRange,monthMode:s.monthMode,fixedWeekCount:s.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}},e.prototype.processRawViewOptions=function(e,t,n,r,o){var i=uo([ro,e.optionDefaults,n,r,e.optionOverrides,o]),s=Ue(Ue(Ue(Ue(Ue(Ue({},no),oo),io),lo),t.listenerRefiners),t.optionRefiners),a={},l=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,c=!1,d={};for(var f in i)i[f]===l[f]||so[f]&&so[f](i[f],l[f])?a[f]=u[f]:(i[f]===this.currentCalendarOptionsInput[f]||so[f]&&so[f](i[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(a[f]=this.currentCalendarOptionsRefined[f]):s[f]?a[f]=s[f](i[f]):d[f]=i[f],c=!0);return c&&(this.currentViewOptionsInput=i,this.currentViewOptionsRefined=a),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}},e}();function ra(e,t,n,r,o,i,s,a){var l=Ri(t||s.defaultCode,s.map);return new Ci({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:l,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:i.cmdFormatter,defaultSeparator:a})}function oa(e,t){return new(t.themeClasses[e.themeSystem]||ps)(e)}function ia(e){return new(e.dateProfileGeneratorClass||Ds)(e)}function sa(e,t,n){return new li(e,t,n)}function aa(e){return pr(e,(function(e){return e.ui}))}function la(e,t,n){var r={"":t};for(var o in e){var i=e[o];i.sourceId&&n[i.sourceId]&&(r[o]=n[i.sourceId])}return r}function ua(e){var t=e.options;return{eventUiSingleBase:wo({display:t.eventDisplay,editable:t.editable,startEditable:t.eventStartEditable,durationEditable:t.eventDurationEditable,constraint:t.eventConstraint,overlap:"boolean"==typeof t.eventOverlap?t.eventOverlap:void 0,allow:t.eventAllow,backgroundColor:t.eventBackgroundColor,borderColor:t.eventBorderColor,textColor:t.eventTextColor,color:t.eventColor},e),selectionConfig:wo({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function ca(e,t){for(var n=0,r=t.pluginHooks.isLoadingFuncs;n<r.length;n++){if((0,r[n])(e))return!0}return!1}function da(e){return Mi(e.options.businessHours,e)}function fa(e,t){for(var n in e)console.warn("Unknown option '"+n+"'"+(t?" for view '"+t+"'":""))}!function(e){function t(t){var n=e.call(this,t)||this;return n.handleData=function(e){n.dataManager?n.setState(e):n.state=e},n.dataManager=new na({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:n.handleData}),n}We(t,e),t.prototype.render=function(){return this.props.children(this.state)},t.prototype.componentDidUpdate=function(e){var t=this.props.optionOverrides;t!==e.optionOverrides&&this.dataManager.resetOptions(t)}}(vn);var pa=function(){function e(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return e.prototype.addSegs=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];this.insertEntry(o,t)}return t},e.prototype.insertEntry=function(e,t){var n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)},e.prototype.isInsertionValid=function(e,t){return(-1===this.maxCoord||e.levelCoord+t.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)},e.prototype.handleInvalidInsertion=function(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)},e.prototype.splitEntry=function(e,t,n){var r=0,o=[],i=e.span,s=t.span;return i.start<s.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:s.start}},o)),i.end>s.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:s.end,end:i.end}},o)),r?(n.push.apply(n,ze([{index:e.index,thickness:e.thickness,span:ma(s,i)}],o)),r):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this.entriesByLevel,r=this.levelCoords;-1===t.lateral?(ya(r,t.level,t.levelCoord),ya(n,t.level,[e])):ya(n[t.level],t.lateral,e),this.stackCnts[ga(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this,n=t.levelCoords,r=t.entriesByLevel,o=t.strictOrder,i=t.stackCnts,s=n.length,a=0,l=-1,u=-1,c=null,d=0,f=0;f<s;f+=1){var p=n[f];if(!o&&p>=a+e.thickness)break;for(var h=r[f],g=void 0,v=ba(h,e.span.start,ha),m=v[0]+v[1];(g=h[m])&&g.span.start<e.span.end;){var y=p+g.thickness;y>a&&(a=y,c=g,l=f,u=m),y===a&&(d=Math.max(d,i[ga(g)]+1)),m+=1}}var b=0;if(c)for(b=l+1;b<s&&n[b]<a;)b+=1;var _=-1;return b<s&&n[b]===a&&(_=ba(r[b],e.span.end,ha)[0]),{touchingLevel:l,touchingLateral:u,touchingEntry:c,stackCnt:d,levelCoord:a,level:b,lateral:_}},e.prototype.toRects=function(){for(var e=this.entriesByLevel,t=this.levelCoords,n=e.length,r=[],o=0;o<n;o+=1)for(var i=e[o],s=t[o],a=0,l=i;a<l.length;a++){var u=l[a];r.push(Ue(Ue({},u),{levelCoord:s}))}return r},e}();function ha(e){return e.span.end}function ga(e){return e.index+":"+e.span.start}function va(e){for(var t,n,r=[],o=0,i=e;o<i.length;o++){for(var s=i[o],a=[],l={span:s.span,entries:[s]},u=0,c=r;u<c.length;u++){var d=c[u];ma(d.span,l.span)?l={entries:d.entries.concat(l.entries),span:(t=d.span,n=l.span,{start:Math.min(t.start,n.start),end:Math.max(t.end,n.end)})}:a.push(d)}a.push(l),r=a}return r}function ma(e,t){var n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function ya(e,t,n){e.splice(t,0,n)}function ba(e,t,n){var r=0,o=e.length;if(!o||t<n(e[r]))return[0,0];if(t>n(e[o-1]))return[o,0];for(;r<o;){var i=Math.floor(r+(o-r)/2),s=n(e[i]);if(t<s)o=i;else{if(!(t>s))return[i,1];r=i+1}}return[r,0]}var _a=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}();var wa={},Ca={},ka=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map((function(t){return e.renderWidgetGroup(t)}));return mn.apply(void 0,ze(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,r=[],o=!0,i=0,s=e;i<s.length;i++){var a=s[i],l=a.buttonName,u=a.buttonClick,c=a.buttonText,d=a.buttonIcon,f=a.buttonHint;if("title"===l)o=!1,r.push(mn("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{var p=l===t.activeButton,h=!t.isTodayEnabled&&"today"===l||!t.isPrevEnabled&&"prev"===l||!t.isNextEnabled&&"next"===l,g=["fc-"+l+"-button",n.getClass("button")];p&&g.push(n.getClass("buttonActive")),r.push(mn("button",{type:"button",title:"function"==typeof f?f(t.navUnit):f,disabled:h,"aria-pressed":p,className:g.join(" "),onClick:u},c||(d?mn("span",{className:d}):"")))}}if(r.length>1){var v=o&&n.getClass("buttonGroup")||"";return mn.apply(void 0,ze(["div",{className:v}],r))}return r[0]},t}(ss),Sa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.model,o=n.extraClassName,i=!1,s=r.sectionWidgets,a=s.center;return s.left?(i=!0,e=s.left):e=s.start,s.right?(i=!0,t=s.right):t=s.end,mn("div",{className:[o||"","fc-toolbar",i?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",a||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return mn(ka,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})},t}(ss),Ea=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,us(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=e.aspectRatio,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",i="";return n?null!==t.availableWidth?o=t.availableWidth/n:i=1/n*100+"%":o=e.height||"",mn("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:o,paddingBottom:i}},e.children)},t.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},t.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},t}(ss),xa=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var r=n.component,o=r.context,i=jo(t);if(i&&r.isValidSegDownEl(e.target)){var s=Rn(e.target,".fc-event-forced-url"),a=s?s.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:t,event:new hi(r.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:o.viewApi}),a&&!e.defaultPrevented&&(window.location.href=a)}},n.destroy=Nn(t.el,"click",".fc-event",n.handleSegClick),n}return We(t,e),t}(_a),Ra=function(e){function t(t){var n,r,o,i,s,a=e.call(this,t)||this;return a.handleEventElRemove=function(e){e===a.currentSegEl&&a.handleSegLeave(null,a.currentSegEl)},a.handleSegEnter=function(e,t){jo(t)&&(a.currentSegEl=t,a.triggerEvent("eventMouseEnter",e,t))},a.handleSegLeave=function(e,t){a.currentSegEl&&(a.currentSegEl=null,a.triggerEvent("eventMouseLeave",e,t))},a.removeHoverListeners=(n=t.el,r=".fc-event",o=a.handleSegEnter,i=a.handleSegLeave,Nn(n,"mouseover",r,(function(e,t){if(t!==s){s=t,o(e,t);var n=function(e){s=null,i(e,t),t.removeEventListener("mouseleave",n)};t.addEventListener("mouseleave",n)}}))),a}return We(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var r=this.component,o=r.context,i=jo(n);t&&!r.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new hi(o,i.eventRange.def,i.eventRange.instance),jsEvent:t,view:o.viewApi})},t}(_a),Da=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=Hr(os),t.buildViewPropTransformers=Hr($a),t.buildToolbarProps=Hr(Ta),t.headerRef=bn(),t.footerRef=bn(),t.interactionsStore={},t.state={viewLabelId:On()},t.registerInteractiveComponent=function(e,n){var r=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,n),o=[xa,Ra].concat(t.props.pluginHooks.componentInteractions).map((function(e){return new e(r)}));t.interactionsStore[e.uid]=o,wa[e.uid]=r},t.unregisterInteractiveComponent=function(e){var n=t.interactionsStore[e.uid];if(n){for(var r=0,o=n;r<o.length;r++){o[r].destroy()}delete t.interactionsStore[e.uid]}delete wa[e.uid]},t.resizeRunner=new Qs((function(){t.props.emitter.trigger("_resize",!0),t.props.emitter.trigger("windowResize",{view:t.props.viewApi})})),t.handleWindowResize=function(e){var n=t.props.options;n.handleWindowResize&&e.target===window&&t.resizeRunner.request(n.windowResizeDelay)},t}return We(t,e),t.prototype.render=function(){var e,t=this.props,n=t.toolbarConfig,r=t.options,o=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,fi(t.options.now,t.dateEnv),t.viewTitle),i=!1,s="";t.isHeightAuto||t.forPrint?s="":null!=r.height?i=!0:null!=r.contentHeight?s=r.contentHeight:e=Math.max(r.aspectRatio,.5);var a=this.buildViewContext(t.viewSpec,t.viewApi,t.options,t.dateProfileGenerator,t.dateEnv,t.theme,t.pluginHooks,t.dispatch,t.getCurrentData,t.emitter,t.calendarApi,this.registerInteractiveComponent,this.unregisterInteractiveComponent),l=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return mn(rs.Provider,{value:a},n.header&&mn(Sa,Ue({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:l},o)),mn(Ea,{liquid:i,height:s,aspectRatio:e,labeledById:l},this.renderView(t),this.buildAppendContent()),n.footer&&mn(Sa,Ue({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},o)))},t.prototype.componentDidMount=function(){var e=this.props;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((function(t){return new t(e)})),window.addEventListener("resize",this.handleWindowResize);var t=e.pluginHooks.propSetHandlers;for(var n in t)t[n](e[n],e)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.pluginHooks.propSetHandlers;for(var r in n)t[r]!==e[r]&&n[r](t[r],t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var e=0,t=this.calendarInteractions;e<t.length;e++){t[e].destroy()}this.props.emitter.trigger("_unmount")},t.prototype.buildAppendContent=function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map((function(t){return t(e)}));return mn.apply(void 0,ze([_n,{}],t))},t.prototype.renderView=function(e){for(var t=e.pluginHooks,n=e.viewSpec,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},o=0,i=this.buildViewPropTransformers(t.viewPropsTransformers);o<i.length;o++){var s=i[o];Ue(r,s.transform(r,e))}var a=n.component;return mn(a,Ue({},r))},t}(is);function Ta(e,t,n,r,o,i){var s=n.build(o,void 0,!1),a=n.buildPrev(t,r,!1),l=n.buildNext(t,r,!1);return{title:i,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:s.isValid&&!Wo(t.currentRange,o),isPrevEnabled:a.isValid,isNextEnabled:l.isValid}}function $a(e){return e.map((function(e){return new e}))}var Ma=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={forPrint:!1},t.handleBeforePrint=function(){t.setState({forPrint:!0})},t.handleAfterPrint=function(){t.setState({forPrint:!1})},t}return We(t,e),t.prototype.render=function(){var e=this.props,t=e.options,n=this.state.forPrint,r=n||"auto"===t.height||"auto"===t.contentHeight,o=r||null==t.height?"":t.height,i=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")];return Ai()||i.push("fc-liquid-hack"),e.children(i,o,r,n)},t.prototype.componentDidMount=function(){var e=this.props.emitter;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)},t.prototype.componentWillUnmount=function(){var e=this.props.emitter;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)},t}(ss);function Ia(e,t){return to(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}var Aa="fc-col-header-cell";function Oa(e){return e.text}var Na=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,r=e.theme,o=e.viewApi,i=this.props,s=i.date,a=i.dateProfile,l=Li(s,i.todayRange,null,a),u=[Aa].concat(Hi(l,r)),c=t.format(s,i.dayHeaderFormat),d=!l.isDisabled&&i.colCnt>1?ji(this.context,s):{},f=Ue(Ue(Ue({date:t.toDate(s),view:o},i.extraHookProps),{text:c}),l);return mn(gs,{hookProps:f,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:Oa,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(e,t,n,r){return mn("th",Ue({ref:e,role:"columnheader",className:u.concat(t).join(" "),"data-date":l.isDisabled?void 0:Nr(s),colSpan:i.colSpan},i.extraDataAttrs),mn("div",{className:"fc-scrollgrid-sync-inner"},!l.isDisabled&&mn("a",Ue({ref:n,className:["fc-col-header-cell-cushion",i.isSticky?"fc-sticky":""].join(" ")},d),r)))}))},t}(ss),Pa=to({weekday:"long"}),La=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,r=t.theme,o=t.viewApi,i=t.options,s=Kn(new Date(2592e5),e.dow),a={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},l=[Aa].concat(Hi(a,r),e.extraClassNames||[]),u=n.format(s,e.dayHeaderFormat),c=Ue(Ue(Ue(Ue({date:s},a),{view:o}),e.extraHookProps),{text:u});return mn(gs,{hookProps:c,classNames:i.dayHeaderClassNames,content:i.dayHeaderContent,defaultContent:Oa,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},(function(t,r,o,i){return mn("th",Ue({ref:t,role:"columnheader",className:l.concat(r).join(" "),colSpan:e.colSpan},e.extraDataAttrs),mn("div",{className:"fc-scrollgrid-sync-inner"},mn("a",{"aria-label":n.format(s,Pa),className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:o},i)))}))},t}(ss),Ha=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=fi(n.options.now,n.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return e.children(t.nowDate,t.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var e=this.props,t=this.context,n=Xn(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),o=t.dateEnv.add(r,Er(1,e.unit)),i=o.valueOf()-n.valueOf();return i=Math.min(864e5,i),{currentState:{nowDate:r,todayRange:Wa(r)},nextState:{nowDate:o,todayRange:Wa(o)},waitMs:i}},t.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,r=t.waitMs;this.timeoutId=setTimeout((function(){e.setState(n,(function(){e.setTimeout()}))}),r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=rs,t}(vn);function Wa(e){var t=er(e);return{start:t,end:Kn(t,1)}}var Ua=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=Hr(za),t}return We(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,o=t.datesRepDistinctDays,i=t.renderIntro,s=this.createDayHeaderFormatter(e.options.dayHeaderFormat,o,n.length);return mn(Ha,{unit:"day"},(function(e,t){return mn("tr",{role:"row"},i&&i("day"),n.map((function(e){return o?mn(Na,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:s}):mn(La,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:s})})))}))},t}(ss);function za(e,t,n){return e||Ia(t,n)}var ja=function(){function e(e,t){for(var n=e.start,r=e.end,o=[],i=[],s=-1;n<r;)t.isHiddenDay(n)?o.push(s+.5):(s+=1,o.push(s),i.push(n)),n=Kn(n,1);this.dates=i,this.indices=o,this.cnt=i.length}return e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(Kn(e.end,-1)),r=Math.max(0,t),o=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(o=Math.floor(o))?{firstIndex:r,lastIndex:o,isStart:t===r,isEnd:n===o}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(Jn(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]},e}(),Ba=function(){function e(e,t){var n,r,o,i=e.dates;if(t){for(r=i[0].getUTCDay(),n=1;n<i.length&&i[n].getUTCDay()!==r;n+=1);o=Math.ceil(i.length/n)}else o=1,n=i.length;this.rowCnt=o,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}return e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t+=1){for(var n=[],r=0;r<this.colCnt;r+=1)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){var n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var o=n.firstIndex,i=n.lastIndex,s=o;s<=i;){var a=Math.floor(s/t),l=Math.min((a+1)*t,i+1);r.push({row:a,firstCol:s%t,lastCol:(l-1)%t,isStart:n.isStart&&s===o,isEnd:n.isEnd&&l-1===i}),s=l}return r},e}(),Fa=function(){function e(){this.sliceBusinessHours=Hr(this._sliceBusinessHours),this.sliceDateSelection=Hr(this._sliceDateSpan),this.sliceEventStore=Hr(this._sliceEventStore),this.sliceEventDrag=Hr(this._sliceInteraction),this.sliceEventResize=Hr(this._sliceInteraction),this.forceDayIfListItem=!1}return e.prototype.sliceProps=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var s=e.eventUiBases,a=this.sliceEventStore.apply(this,ze([e.eventStore,s,t,n],o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,ze([e.dateSelection,s,r],o)),businessHourSegs:this.sliceBusinessHours.apply(this,ze([e.businessHours,t,n,r],o)),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag.apply(this,ze([e.eventDrag,s,t,n],o)),eventResize:this.sliceEventResize.apply(this,ze([e.eventResize,s,t,n],o)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,ze([{range:{start:e,end:Xn(e,1)},allDay:!1},{},t],n))},e.prototype._sliceBusinessHours=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];return e?this._sliceEventStore.apply(this,ze([wr(e,qa(t,Boolean(n)),r),{},t,n],o)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(e){var s=Uo(e,t,qa(n,Boolean(r)),r);return{bg:this.sliceEventRanges(s.bg,o),fg:this.sliceEventRanges(s.fg,o)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(!e)return null;var s=Uo(e.mutatedEvents,t,qa(n,Boolean(r)),r);return{segs:this.sliceEventRanges(s.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},e.prototype._sliceDateSpan=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];if(!e)return[];for(var i=function(e,t,n){var r=Do({editable:!1},n),o=$o(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:Fo(o,t),instance:ur(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e,t,n),s=this.sliceRange.apply(this,ze([e.range],r)),a=0,l=s;a<l.length;a++){l[a].eventRange=i}return s},e.prototype.sliceEventRanges=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];n.push.apply(n,this.sliceEventRange(i,t))}return n},e.prototype.sliceEventRange=function(e,t){var n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:Kn(n.start,1)});for(var r=this.sliceRange.apply(this,ze([n],t)),o=0,i=r;o<i.length;o++){var s=i[o];s.eventRange=e,s.isStart=e.isStart&&s.isStart,s.isEnd=e.isEnd&&s.isEnd}return r},e}();function qa(e,t){var n=e.activeRange;return t?n:{start:Xn(n.start,e.slotMinTime.milliseconds),end:Xn(n.end,e.slotMaxTime.milliseconds-864e5)}}function Va(e,t,n,r){return void 0===n&&(n={}),!(e.eventDrag&&!function(e,t,n,r){var o=t.getCurrentData(),i=e.eventDrag,s=i.mutatedEvents,a=s.defs,l=s.instances,u=Bo(a,i.isEvent?e.eventUiBases:{"":o.selectionConfig});r&&(u=pr(u,r));var c=(h=e.eventStore,g=i.affectedEvents.instances,{defs:h.defs,instances:fr(h.instances,(function(e){return!g[e.instanceId]}))}),d=c.defs,f=c.instances,p=Bo(d,e.eventUiBases);var h,g;for(var v in l){var m=l[v],y=m.range,b=u[m.defId],_=a[m.defId];if(!Ya(b.constraints,y,c,e.businessHours,t))return!1;var w=t.options.eventOverlap,C="function"==typeof w?w:null;for(var k in f){var S=f[k];if(Lo(y,S.range)){if(!1===p[S.defId].overlap&&i.isEvent)return!1;if(!1===b.overlap)return!1;if(C&&!C(new hi(t,d[S.defId],S),new hi(t,_,m)))return!1}}for(var E=o.eventStore,x=0,R=b.allows;x<R.length;x++){var D=R[x],T=Ue(Ue({},n),{range:m.range,allDay:_.allDay}),$=E.defs[_.defId],M=E.instances[v],I=void 0;if(I=$?new hi(t,$,M):new hi(t,_),!D(oi(T,t),I))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){var o=e.eventStore,i=o.defs,s=o.instances,a=e.dateSelection,l=a.range,u=t.getCurrentData().selectionConfig;r&&(u=r(u));if(!Ya(u.constraints,l,o,e.businessHours,t))return!1;var c=t.options.selectOverlap,d="function"==typeof c?c:null;for(var f in s){var p=s[f];if(Lo(l,p.range)){if(!1===u.overlap)return!1;if(d&&!d(new hi(t,i[p.defId],p),null))return!1}}for(var h=0,g=u.allows;h<g.length;h++){if(!(0,g[h])(oi(Ue(Ue({},n),a),t),null))return!1}return!0}(e,t,n,r))}function Ya(e,t,n,r,o){for(var i=0,s=e;i<s.length;i++){if(!Ka(Ga(s[i],t,n,r,o),t))return!1}return!0}function Ga(e,t,n,r,o){return"businessHours"===e?Za(wr(r,t,o)):"string"==typeof e?Za(mo(n,(function(t){return t.groupId===e}))):"object"==typeof e&&e?Za(wr(e,t,o)):[]}function Za(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function Ka(e,t){for(var n=0,r=e;n<r.length;n++){if(Ho(r[n],t))return!0}return!1}var Xa=/^(visible|hidden)$/,Ja=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,us(t.props.elRef,e)},t}return We(t,e),t.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),mn("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)},t.prototype.needsXScrolling=function(){if(Xa.test(this.props.overflowX))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().width>t)return!0}return!1},t.prototype.needsYScrolling=function(){if(Xa.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().height>t)return!0}return!1},t.prototype.getXScrollbarWidth=function(){return Xa.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return Xa.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(ss),Qa=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var r=t,o=r.depths,i=r.currentMap,s=!1,a=!1;null!==e?(s=n in i,i[n]=e,o[n]=(o[n]||0)+1,a=!0):(o[n]-=1,o[n]||(delete i[n],delete t.callbackMap[n],s=!0)),t.masterCallback&&(s&&t.masterCallback(null,String(n)),a&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n},e.prototype.collect=function(e,t,n){return _r(this.currentMap,e,t,n)},e.prototype.getAll=function(){return gr(this.currentMap)},e}();function el(e){for(var t=0,n=0,r=Tn(e,".fc-scrollgrid-shrink");n<r.length;n++){var o=r[n];t=Math.max(t,Yn(o))}return Math.ceil(t)}function tl(e,t){return e.liquid&&t.liquid}function nl(e,t){return null!=t.maxHeight||tl(e,t)}function rl(e,t,n,r){var o=n.expandRows;return"function"==typeof t.content?t.content(n):mn("table",{role:"presentation",className:[t.tableClassName,e.syncRowHeights?"fc-scrollgrid-sync-table":""].join(" "),style:{minWidth:n.tableMinWidth,width:n.clientWidth,height:o?n.clientHeight:""}},n.tableColGroupNode,mn(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}function ol(e,t){return Lr(e,t,vr)}function il(e,t){for(var n=[],r=0,o=e;r<o.length;r++)for(var i=o[r],s=i.span||1,a=0;a<s;a+=1)n.push(mn("col",{style:{width:"shrink"===i.width?sl(t):i.width||"",minWidth:i.minWidth||""}}));return mn.apply(void 0,ze(["colgroup",{}],n))}function sl(e){return null==e?4:e}function al(e){for(var t=0,n=e;t<n.length;t++){if("shrink"===n[t].width)return!0}return!1}function ll(e,t){var n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function ul(e,t){var n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function cl(e){return mn("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function dl(e){var t=e.stickyHeaderDates;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function fl(e){var t=e.stickyFooterScrollbar;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}var pl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processCols=Hr((function(e){return e}),ol),t.renderMicroColGroup=Hr(il),t.scrollerRefs=new Qa,t.scrollerElRefs=new Qa(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.safeSetState(Ue({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return We(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=e.context,o=t.sections||[],i=this.processCols(t.cols),s=this.renderMicroColGroup(i,n.shrinkWidth),a=ll(t.liquid,r);t.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");for(var l,u=o.length,c=0,d=[],f=[],p=[];c<u&&"header"===(l=o[c]).type;)d.push(this.renderSection(l,s,!0)),c+=1;for(;c<u&&"body"===(l=o[c]).type;)f.push(this.renderSection(l,s,!1)),c+=1;for(;c<u&&"footer"===(l=o[c]).type;)p.push(this.renderSection(l,s,!0)),c+=1;var h=!Ai(),g={role:"rowgroup"};return mn("table",{role:"grid",className:a.join(" "),style:{height:t.height}},Boolean(!h&&d.length)&&mn.apply(void 0,ze(["thead",g],d)),Boolean(!h&&f.length)&&mn.apply(void 0,ze(["tbody",g],f)),Boolean(!h&&p.length)&&mn.apply(void 0,ze(["tfoot",g],p)),h&&mn.apply(void 0,ze(ze(ze(["tbody",g],d),f),p)))},t.prototype.renderSection=function(e,t,n){return"outerContent"in e?mn(_n,{key:e.key},e.outerContent):mn("tr",{key:e.key,role:"presentation",className:ul(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))},t.prototype.renderChunkTd=function(e,t,n,r){if("outerContent"in n)return n.outerContent;var o=this.props,i=this.state,s=i.forceYScrollbars,a=i.scrollerClientWidths,l=i.scrollerClientHeights,u=nl(o,e),c=tl(o,e),d=o.liquid?s?"scroll":u?"auto":"hidden":"visible",f=e.key,p=rl(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:o.collapsibleWidth||void 0===a[f]?null:a[f],clientHeight:void 0!==l[f]?l[f]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},r);return mn(r?"th":"td",{ref:n.elRef,role:"presentation"},mn("div",{className:"fc-scroller-harness"+(c?" fc-scroller-harness-liquid":"")},mn(Ja,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:d,overflowX:o.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:c,liquidIsAbsolute:!0},p)))},t.prototype._handleScrollerEl=function(e,t){var n=function(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.key===t)return o}return null}(this.props.sections,t);n&&us(n.chunk.scrollerElRef,e)},t.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(){this.handleSizing()},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},t.prototype.computeShrinkWidth=function(){return al(this.props.cols)?el(this.scrollerElRefs.getAll()):0},t.prototype.computeScrollerDims=function(){var e=Vi(),t=this.scrollerRefs,n=this.scrollerElRefs,r=!1,o={},i={};for(var s in t.currentMap){var a=t.currentMap[s];if(a&&a.needsYScrolling()){r=!0;break}}for(var l=0,u=this.props.sections;l<u.length;l++){s=u[l].key;var c=n.currentMap[s];if(c){var d=c.parentNode;o[s]=Math.floor(d.getBoundingClientRect().width-(r?e.y:0)),i[s]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:o,scrollerClientHeights:i}},t}(ss);pl.addStateEquality({scrollerClientWidths:vr,scrollerClientHeights:vr});var hl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=bn(),t}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=e.seg,o=r.eventRange,i=o.ui,s={event:new hi(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,isDraggable:!e.disableDragging&&Yo(r,t),isStartResizable:!e.disableResizing&&Go(r,t),isEndResizable:!e.disableResizing&&Zo(r),isMirror:Boolean(e.isDragging||e.isResizing||e.isDateSelecting),isStart:Boolean(r.isStart),isEnd:Boolean(r.isEnd),isPast:Boolean(e.isPast),isFuture:Boolean(e.isFuture),isToday:Boolean(e.isToday),isSelected:Boolean(e.isSelected),isDragging:Boolean(e.isDragging),isResizing:Boolean(e.isResizing)},a=function(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}(s).concat(i.classNames);return mn(gs,{hookProps:s,classNames:n.eventClassNames,content:n.eventContent,defaultContent:e.defaultContent,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount,elRef:this.elRef},(function(t,n,r,o){return e.children(t,a.concat(n),r,o,s)}))},t.prototype.componentDidMount=function(){zo(this.elRef.current,this.props.seg)},t.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&zo(this.elRef.current,t)},t}(ss),gl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.seg,r=t.options.eventTimeFormat||e.defaultTimeFormat,o=Ko(n,r,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return mn(hl,{seg:n,timeText:o,disableDragging:e.disableDragging,disableResizing:e.disableResizing,defaultContent:e.defaultContent||vl,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(r,o,i,s,a){return mn("a",Ue({className:e.extraClassNames.concat(o).join(" "),style:{borderColor:a.borderColor,backgroundColor:a.backgroundColor},ref:r},Qo(n,t)),mn("div",{className:"fc-event-main",ref:i,style:{color:a.textColor}},s),a.isStartResizable&&mn("div",{className:"fc-event-resizer fc-event-resizer-start"}),a.isEndResizable&&mn("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},t}(ss);function vl(e){return mn("div",{className:"fc-event-main-frame"},e.timeText&&mn("div",{className:"fc-event-time"},e.timeText),mn("div",{className:"fc-event-title-container"},mn("div",{className:"fc-event-title fc-sticky"},e.event.title||mn(_n,null," "))))}var ml=function(e){return mn(rs.Consumer,null,(function(t){var n=t.options,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return mn(gs,{hookProps:r,classNames:n.nowIndicatorClassNames,content:n.nowIndicatorContent,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)}))},yl=to({day:"numeric"}),bl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=_l({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv});return mn(ms,{hookProps:r,content:n.dayCellContent,defaultContent:e.defaultContent},e.children)},t}(ss);function _l(e){var t=e.date,n=e.dateEnv,r=Li(t,e.todayRange,null,e.dateProfile);return Ue(Ue(Ue({date:n.toDate(t),view:e.viewApi},r),{dayNumberText:e.showDayNumber?n.format(t,yl):""}),e.extraProps)}var wl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=Wr(_l),t.normalizeClassNames=_s(),t}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=this.refineHookProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv}),o=Hi(r,t.theme).concat(r.isDisabled?[]:this.normalizeClassNames(n.dayCellClassNames,r)),i=r.isDisabled?{}:{"data-date":Nr(e.date)};return mn(bs,{hookProps:r,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount,elRef:e.elRef},(function(t){return e.children(t,o,i,r.isDisabled)}))},t}(ss);function Cl(e){return mn("div",{className:"fc-"+e})}var kl=function(e){return mn(hl,{defaultContent:Sl,seg:e.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(e,t,n,r,o){return mn("div",{ref:e,className:["fc-bg-event"].concat(t).join(" "),style:{backgroundColor:o.backgroundColor}},r)}))};function Sl(e){return e.event.title&&mn("div",{className:"fc-event-title"},e.event.title)}var El=function(e){return mn(rs.Consumer,null,(function(t){var n=t.dateEnv,r=t.options,o=e.date,i=r.weekNumberFormat||e.defaultFormat,s=n.computeWeekNumber(o),a=n.format(o,i);return mn(gs,{hookProps:{num:s,text:a,date:o},classNames:r.weekNumberClassNames,content:r.weekNumberContent,defaultContent:xl,didMount:r.weekNumberDidMount,willUnmount:r.weekNumberWillUnmount},e.children)}))};function xl(e){return e.text}var Rl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={titleId:On()},t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&us(t.props.elRef,e)},t.handleDocumentMouseDown=function(e){var n=function(e){var t,n;return null!==(n=null===(t=e.composedPath)||void 0===t?void 0:t.call(e)[0])&&void 0!==n?n:e.target}(e);t.rootEl.contains(n)||t.handleCloseClick()},t.handleDocumentKeyDown=function(e){"Escape"===e.key&&t.handleCloseClick()},t.handleCloseClick=function(){var e=t.props.onClose;e&&e()},t}return We(t,e),t.prototype.render=function(){var e=this.context,t=e.theme,n=e.options,r=this.props,o=this.state,i=["fc-popover",t.getClass("popover")].concat(r.extraClassNames||[]);return Cn(mn("div",Ue({id:r.id,className:i.join(" "),"aria-labelledby":o.titleId},r.extraAttrs,{ref:this.handleRootEl}),mn("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},mn("span",{className:"fc-popover-title",id:o.titleId},r.title),mn("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),mn("div",{className:"fc-popover-body "+t.getClass("popoverContent")},r.children)),r.parentEl)},t.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)},t.prototype.updateSize=function(){var e=this.context.isRtl,t=this.props,n=t.alignmentEl,r=t.alignGridTop,o=this.rootEl,i=Ki(n);if(i){var s=o.getBoundingClientRect(),a=r?Rn(n,".fc-scrollgrid").getBoundingClientRect().top:i.top,l=e?i.right-s.width:i.left;a=Math.max(a,10),l=Math.min(l,document.documentElement.clientWidth-10-s.width),l=Math.max(l,10);var u=o.offsetParent.getBoundingClientRect();Mn(o,{top:a-u.top,left:l-u.left})}},t}(ss),Dl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,useEventCenter:!1}):t.context.unregisterInteractiveComponent(t)},t}return We(t,e),t.prototype.render=function(){var e=this.context,t=e.options,n=e.dateEnv,r=this.props,o=r.startDate,i=r.todayRange,s=r.dateProfile,a=n.format(o,t.dayPopoverFormat);return mn(wl,{date:o,dateProfile:s,todayRange:i,elRef:this.handleRootEl},(function(e,t,n){return mn(Rl,{elRef:e,id:r.id,title:a,extraClassNames:["fc-more-popover"].concat(t),extraAttrs:n,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},mn(bl,{date:o,dateProfile:s,todayRange:i},(function(e,t){return t&&mn("div",{className:"fc-more-popover-misc",ref:e},t)})),r.children)}))},t.prototype.queryHit=function(e,t,n,r){var o=this.rootEl,i=this.props;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:i.dateProfile,dateSpan:Ue({allDay:!0,range:{start:i.startDate,end:i.endDate}},i.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null},t}(cs),Tl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.linkElRef=bn(),t.state={isPopoverOpen:!1,popoverId:On()},t.handleClick=function(e){var n=t,r=n.props,o=n.context,i=o.options.moreLinkClick,s=Ml(r).start;function a(e){var t=e.eventRange,n=t.def,r=t.instance,i=t.range;return{event:new hi(o,n,r),start:o.dateEnv.toDate(i.start),end:o.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof i&&(i=i({date:s,allDay:Boolean(r.allDayDate),allSegs:r.allSegs.map(a),hiddenSegs:r.hiddenSegs.map(a),jsEvent:e,view:o.viewApi})),i&&"popover"!==i?"string"==typeof i&&o.calendarApi.zoomTo(s,i):t.setState({isPopoverOpen:!0})},t.handlePopoverClose=function(){t.setState({isPopoverOpen:!1})},t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.state;return mn(rs.Consumer,null,(function(r){var o=r.viewApi,i=r.options,s=r.calendarApi,a=i.moreLinkText,l=t.moreCnt,u=Ml(t),c="function"==typeof a?a.call(s,l):"+"+l+" "+a,d=qn(i.moreLinkHint,[l],c),f={num:l,shortText:"+"+l,text:c,view:o};return mn(_n,null,Boolean(t.moreCnt)&&mn(gs,{elRef:e.linkElRef,hookProps:f,classNames:i.moreLinkClassNames,content:i.moreLinkContent,defaultContent:t.defaultContent||$l,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},(function(r,o,i,s){return t.children(r,["fc-more-link"].concat(o),i,s,e.handleClick,d,n.isPopoverOpen,n.isPopoverOpen?n.popoverId:"")})),n.isPopoverOpen&&mn(Dl,{id:n.popoverId,startDate:u.start,endDate:u.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:e.parentEl,alignmentEl:t.alignmentElRef.current,alignGridTop:t.alignGridTop,onClose:e.handlePopoverClose},t.popoverContent()))}))},t.prototype.componentDidMount=function(){this.updateParentEl()},t.prototype.componentDidUpdate=function(){this.updateParentEl()},t.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=Rn(this.linkElRef.current,".fc-view-harness"))},t}(ss);function $l(e){return e.text}function Ml(e){if(e.allDayDate)return{start:e.allDayDate,end:Kn(e.allDayDate,1)};var t,n=e.hiddenSegs;return{start:Il(n),end:(t=n,t.reduce(Ol).eventRange.range.end)}}function Il(e){return e.reduce(Al).eventRange.range.start}function Al(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Ol(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}
|
||
/*!
|
||
FullCalendar v5.11.5
|
||
Docs & License: https://fullcalendar.io/
|
||
(c) 2022 Adam Shaw
|
||
*/var Nl=function(e){function t(t,n){void 0===n&&(n={});var r=e.call(this)||this;return r.isRendering=!1,r.isRendered=!1,r.currentClassNames=[],r.customContentRenderId=0,r.handleAction=function(e){switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":r.renderRunner.tryDrain()}},r.handleData=function(e){r.currentData=e,r.renderRunner.request(e.calendarOptions.rerenderDelay)},r.handleRenderRequest=function(){if(r.isRendering){r.isRendered=!0;var e=r.currentData;kn((function(){yn(mn(Ma,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,n,o,i){return r.setClassNames(t),r.setHeight(n),mn(vs.Provider,{value:r.customContentRenderId},mn(Da,Ue({isHeightAuto:o,forPrint:i},e)))})),r.el)}))}else r.isRendered&&(r.isRendered=!1,Sn(r.el),r.setClassNames([]),r.setHeight(""))},r.el=t,r.renderRunner=new Qs(r.handleRenderRequest),new na({optionOverrides:n,calendarApi:r,onAction:r.handleAction,onData:r.handleData}),r}return We(t,e),Object.defineProperty(t.prototype,"view",{get:function(){return this.currentData.viewApi},enumerable:!1,configurable:!0}),t.prototype.render=function(){var e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()},t.prototype.destroy=function(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())},t.prototype.updateSize=function(){var t=this;kn((function(){e.prototype.updateSize.call(t)}))},t.prototype.batchRendering=function(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")},t.prototype.pauseRendering=function(){this.renderRunner.pause("pauseRendering")},t.prototype.resumeRendering=function(){this.renderRunner.resume("pauseRendering",!0)},t.prototype.resetOptions=function(e,t){this.currentDataManager.resetOptions(e,t)},t.prototype.setClassNames=function(e){if(!Lr(e,this.currentClassNames)){for(var t=this.el.classList,n=0,r=this.currentClassNames;n<r.length;n++){var o=r[n];t.remove(o)}for(var i=0,s=e;i<s.length;i++){o=s[i];t.add(o)}this.currentClassNames=e}},t.prototype.setHeight=function(e){In(this.el,"height",e)},t}(pi);function Pl(t){let n;return{c(){n=$("div"),L(n,"class",t[0]),L(n,"style",t[1])},m(e,r){R(e,n,r),t[7](n)},p(e,[t]){1&t&&L(n,"class",e[0]),2&t&&L(n,"style",e[1])},i:e,o:e,d(e){e&&D(n),t[7](null)}}}function Ll(e,t,n){let r,o,i,{class:s=null}=t,{style:a=null}=t,{options:l}=t;function u(){n(5,i=new Nl(o,l)),i.render()}return Q((async()=>{if(await Promise.resolve().then((function(){return hn})),r)return u(),()=>{i&&i.destroy()}})),e.$$set=e=>{"class"in e&&n(0,s=e.class),"style"in e&&n(1,a=e.style),"options"in e&&n(3,l=e.options)},e.$$.update=()=>{44&e.$$.dirty&&n(6,r=l&&l.plugins&&l.plugins.length&&o&&!i),104&e.$$.dirty&&(i&&l&&l.plugins&&l.plugins.length&&(i.pauseRendering(),i.resetOptions(l),i.resumeRendering()),r&&u())},[s,a,o,l,function(){return i},i,r,function(e){oe[e?"unshift":"push"]((()=>{o=e,n(2,o)}))}]}class Hl extends Ne{constructor(e){super(),Oe(this,e,Ll,Pl,a,{class:0,style:1,options:3,getAPI:4})}get getAPI(){return this.$$.ctx[4]}}gn("");gn("");
|
||
/*!
|
||
FullCalendar v5.11.5
|
||
Docs & License: https://fullcalendar.io/
|
||
(c) 2022 Adam Shaw
|
||
*/
|
||
var Wl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.headerElRef=bn(),t}return We(t,e),t.prototype.renderSimpleLayout=function(e,t){var n=this.props,r=this.context,o=[],i=dl(r.options);return e&&o.push({type:"header",key:"header",isSticky:i,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),o.push({type:"body",key:"body",liquid:!0,chunk:{content:t}}),mn(ks,{viewSpec:r.viewSpec},(function(e,t){return mn("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},mn(pl,{liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:n.forPrint,cols:[],sections:o}))}))},t.prototype.renderHScrollLayout=function(e,t,n,r){var o=this.context.pluginHooks.scrollGridImpl;if(!o)throw new Error("No ScrollGrid implementation");var i=this.props,s=this.context,a=!i.forPrint&&dl(s.options),l=!i.forPrint&&fl(s.options),u=[];return e&&u.push({type:"header",key:"header",isSticky:a,chunks:[{key:"main",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),u.push({type:"body",key:"body",liquid:!0,chunks:[{key:"main",content:t}]}),l&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"main",content:cl}]}),mn(ks,{viewSpec:s.viewSpec},(function(e,t){return mn("div",{ref:e,className:["fc-daygrid"].concat(t).join(" ")},mn(o,{liquid:!i.isHeightAuto&&!i.forPrint,collapsibleWidth:i.forPrint,colGroups:[{cols:[{span:n,minWidth:r}]}],sections:u}))}))},t}(cs);function Ul(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var o=0,i=e;o<i.length;o++){var s=i[o];n[s.row].push(s)}return n}function zl(e,t){for(var n=[],r=0;r<t;r+=1)n[r]=[];for(var o=0,i=e;o<i.length;o++){var s=i[o];n[s.firstCol].push(s)}return n}function jl(e,t){var n=[];if(e){for(s=0;s<t;s+=1)n[s]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,o=e.segs;r<o.length;r++){var i=o[r];n[i.row].segs.push(i)}}else for(var s=0;s<t;s+=1)n[s]=null;return n}var Bl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=ji(this.context,e.date);return mn(bl,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraHookProps:e.extraHookProps,defaultContent:Fl},(function(n,r){return(r||e.forceDayTop)&&mn("div",{className:"fc-daygrid-day-top",ref:n},mn("a",Ue({id:e.dayNumberId,className:"fc-daygrid-day-number"},t),r||mn(_n,null," ")))}))},t}(ss);function Fl(e){return e.dayNumberText}var ql=to({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});function Vl(e){var t=e.eventRange.ui.display;return"list-item"===t||"auto"===t&&!e.eventRange.def.allDay&&e.firstCol===e.lastCol&&e.isStart&&e.isEnd}var Yl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props;return mn(gl,Ue({},e,{extraClassNames:["fc-daygrid-event","fc-daygrid-block-event","fc-h-event"],defaultTimeFormat:ql,defaultDisplayEventEnd:e.defaultDisplayEventEnd,disableResizing:!e.seg.eventRange.def.allDay}))},t}(ss),Gl=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options.eventTimeFormat||ql,r=Ko(e.seg,n,t,!0,e.defaultDisplayEventEnd);return mn(hl,{seg:e.seg,timeText:r,defaultContent:Zl,isDragging:e.isDragging,isResizing:!1,isDateSelecting:!1,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(n,r,o,i){return mn("a",Ue({className:["fc-daygrid-event","fc-daygrid-dot-event"].concat(r).join(" "),ref:n},Qo(e.seg,t)),i)}))},t}(ss);function Zl(e){return mn(_n,null,mn("div",{className:"fc-daygrid-event-dot",style:{borderColor:e.borderColor||e.backgroundColor}}),e.timeText&&mn("div",{className:"fc-event-time"},e.timeText),mn("div",{className:"fc-event-title"},e.event.title||mn(_n,null," ")))}var Kl=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.compileSegs=Hr(Xl),t}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.compileSegs(e.singlePlacements),n=t.allSegs,r=t.invisibleSegs;return mn(Tl,{dateProfile:e.dateProfile,todayRange:e.todayRange,allDayDate:e.allDayDate,moreCnt:e.moreCnt,allSegs:n,hiddenSegs:r,alignmentElRef:e.alignmentElRef,alignGridTop:e.alignGridTop,extraDateSpan:e.extraDateSpan,popoverContent:function(){var t=(e.eventDrag?e.eventDrag.affectedInstances:null)||(e.eventResize?e.eventResize.affectedInstances:null)||{};return mn(_n,null,n.map((function(n){var r=n.eventRange.instance.instanceId;return mn("div",{className:"fc-daygrid-event-harness",key:r,style:{visibility:t[r]?"hidden":""}},Vl(n)?mn(Gl,Ue({seg:n,isDragging:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Xo(n,e.todayRange))):mn(Yl,Ue({seg:n,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:r===e.eventSelection,defaultDisplayEventEnd:!1},Xo(n,e.todayRange))))})))}},(function(e,t,n,r,o,i,s,a){return mn("a",Ue({ref:e,className:["fc-daygrid-more-link"].concat(t).join(" "),title:i,"aria-expanded":s,"aria-controls":a},Pn(o)),r)}))},t}(ss);function Xl(e){for(var t=[],n=[],r=0,o=e;r<o.length;r++){var i=o[r];t.push(i.seg),i.isVisible||n.push(i.seg)}return{allSegs:t,invisibleSegs:n}}var Jl=to({week:"narrow"}),Ql=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=bn(),t.state={dayNumberId:On()},t.handleRootEl=function(e){us(t.rootElRef,e),us(t.props.elRef,e)},t}return We(t,e),t.prototype.render=function(){var e=this,t=e.context,n=e.props,r=e.state,o=e.rootElRef,i=n.date,s=n.dateProfile,a=ji(t,i,"week");return mn(wl,{date:i,dateProfile:s,todayRange:n.todayRange,showDayNumber:n.showDayNumber,extraHookProps:n.extraHookProps,elRef:this.handleRootEl},(function(e,t,l,u){return mn("td",Ue({ref:e,role:"gridcell",className:["fc-daygrid-day"].concat(t,n.extraClassNames||[]).join(" ")},l,n.extraDataAttrs,n.showDayNumber?{"aria-labelledby":r.dayNumberId}:{}),mn("div",{className:"fc-daygrid-day-frame fc-scrollgrid-sync-inner",ref:n.innerElRef},n.showWeekNumber&&mn(El,{date:i,defaultFormat:Jl},(function(e,t,n,r){return mn("a",Ue({ref:e,className:["fc-daygrid-week-number"].concat(t).join(" ")},a),r)})),!u&&mn(Bl,{date:i,dateProfile:s,showDayNumber:n.showDayNumber,dayNumberId:r.dayNumberId,forceDayTop:n.forceDayTop,todayRange:n.todayRange,extraHookProps:n.extraHookProps}),mn("div",{className:"fc-daygrid-day-events",ref:n.fgContentElRef},n.fgContent,mn("div",{className:"fc-daygrid-day-bottom",style:{marginTop:n.moreMarginTop}},mn(Kl,{allDayDate:i,singlePlacements:n.singlePlacements,moreCnt:n.moreCnt,alignmentElRef:o,alignGridTop:!n.showDayNumber,extraDateSpan:n.extraDateSpan,dateProfile:n.dateProfile,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,todayRange:n.todayRange}))),mn("div",{className:"fc-daygrid-day-bg"},n.bgContent)))}))},t}(cs);function eu(e,t,n,r,o,i,s){var a=new nu;a.allowReslicing=!0,a.strictOrder=r,!0===t||!0===n?(a.maxCoord=i,a.hiddenConsumes=!0):"number"==typeof t?a.maxStackCnt=t:"number"==typeof n&&(a.maxStackCnt=n,a.hiddenConsumes=!0);for(var l=[],u=[],c=0;c<e.length;c+=1){var d=o[(E=e[c]).eventRange.instance.instanceId];null!=d?l.push({index:c,thickness:d,span:{start:E.firstCol,end:E.lastCol+1}}):u.push(E)}for(var f=a.addSegs(l),p=function(e,t,n){for(var r=function(e,t){for(var n=[],r=0;r<t;r+=1)n.push([]);for(var o=0,i=e;o<i.length;o++){var s=i[o];for(r=s.span.start;r<s.span.end;r+=1)n[r].push(s)}return n}(e,n.length),o=[],i=[],s=[],a=0;a<n.length;a+=1){for(var l=r[a],u=[],c=0,d=0,f=0,p=l;f<p.length;f++){var h=t[(y=p[f]).index];u.push({seg:tu(h,a,a+1,n),isVisible:!0,isAbsolute:!1,absoluteTop:y.levelCoord,marginTop:y.levelCoord-c}),c=y.levelCoord+y.thickness}var g=[];c=0,d=0;for(var v=0,m=l;v<m.length;v++){h=t[(y=m[v]).index];var y,b=y.span.end-y.span.start>1,_=y.span.start===a;d+=y.levelCoord-c,c=y.levelCoord+y.thickness,b?(d+=y.thickness,_&&g.push({seg:tu(h,y.span.start,y.span.end,n),isVisible:!0,isAbsolute:!0,absoluteTop:y.levelCoord,marginTop:0})):_&&(g.push({seg:tu(h,y.span.start,y.span.end,n),isVisible:!0,isAbsolute:!1,absoluteTop:y.levelCoord,marginTop:d}),d=0)}o.push(u),i.push(g),s.push(d)}return{singleColPlacements:o,multiColPlacements:i,leftoverMargins:s}}(a.toRects(),e,s),h=p.singleColPlacements,g=p.multiColPlacements,v=p.leftoverMargins,m=[],y=[],b=0,_=u;b<_.length;b++){g[(E=_[b]).firstCol].push({seg:E,isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(var w=E.firstCol;w<=E.lastCol;w+=1)h[w].push({seg:tu(E,w,w+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(w=0;w<s.length;w+=1)m.push(0);for(var C=0,k=f;C<k.length;C++){var S=k[C],E=e[S.index],x=S.span;g[x.start].push({seg:tu(E,x.start,x.end,s),isVisible:!1,isAbsolute:!0,absoluteTop:0,marginTop:0});for(w=x.start;w<x.end;w+=1)m[w]+=1,h[w].push({seg:tu(E,w,w+1,s),isVisible:!1,isAbsolute:!1,absoluteTop:0,marginTop:0})}for(w=0;w<s.length;w+=1)y.push(v[w]);return{singleColPlacements:h,multiColPlacements:g,moreCnts:m,moreMarginTops:y}}function tu(e,t,n,r){if(e.firstCol===t&&e.lastCol===n-1)return e;var o=e.eventRange,i=o.range,s=Po(i,{start:r[t].date,end:Kn(r[n-1].date,1)});return Ue(Ue({},e),{firstCol:t,lastCol:n-1,eventRange:{def:o.def,ui:Ue(Ue({},o.ui),{durationEditable:!1}),instance:o.instance,range:s},isStart:e.isStart&&s.start.valueOf()===i.start.valueOf(),isEnd:e.isEnd&&s.end.valueOf()===i.end.valueOf()})}var nu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.hiddenConsumes=!1,t.forceHidden={},t}return We(t,e),t.prototype.addSegs=function(t){for(var n=this,r=e.prototype.addSegs.call(this,t),o=this.entriesByLevel,i=function(e){return!n.forceHidden[ga(e)]},s=0;s<o.length;s+=1)o[s]=o[s].filter(i);return r},t.prototype.handleInvalidInsertion=function(t,n,r){var o=this.entriesByLevel,i=this.forceHidden,s=t.touchingEntry,a=t.touchingLevel,l=t.touchingLateral;if(this.hiddenConsumes&&s){var u=ga(s);if(!i[u])if(this.allowReslicing){var c=Ue(Ue({},s),{span:ma(s.span,n.span)});i[ga(c)]=!0,o[a][l]=c,this.splitEntry(s,n,r)}else i[u]=!0,r.push(s)}return e.prototype.handleInvalidInsertion.call(this,t,n,r)},t}(pa),ru=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.cellElRefs=new Qa,t.frameElRefs=new Qa,t.fgElRefs=new Qa,t.segHarnessRefs=new Qa,t.rootElRef=bn(),t.state={framePositions:null,maxContentHeight:null,eventInstanceHeights:{}},t}return We(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.state,o=t.context.options,i=n.cells.length,s=zl(n.businessHourSegs,i),a=zl(n.bgEventSegs,i),l=zl(this.getHighlightSegs(),i),u=zl(this.getMirrorSegs(),i),c=eu(qo(n.fgEventSegs,o.eventOrder),n.dayMaxEvents,n.dayMaxEventRows,o.eventOrderStrict,r.eventInstanceHeights,r.maxContentHeight,n.cells),d=c.singleColPlacements,f=c.multiColPlacements,p=c.moreCnts,h=c.moreMarginTops,g=n.eventDrag&&n.eventDrag.affectedInstances||n.eventResize&&n.eventResize.affectedInstances||{};return mn("tr",{ref:this.rootElRef,role:"row"},n.renderIntro&&n.renderIntro(),n.cells.map((function(t,r){var o=e.renderFgSegs(r,n.forPrint?d[r]:f[r],n.todayRange,g),i=e.renderFgSegs(r,function(e,t){if(!e.length)return[];var n=function(e){for(var t={},n=0,r=e;n<r.length;n++)for(var o=0,i=r[n];o<i.length;o++){var s=i[o];t[s.seg.eventRange.instance.instanceId]=s.absoluteTop}return t}(t);return e.map((function(e){return{seg:e,isVisible:!0,isAbsolute:!0,absoluteTop:n[e.eventRange.instance.instanceId],marginTop:0}}))}(u[r],f),n.todayRange,{},Boolean(n.eventDrag),Boolean(n.eventResize),!1);return mn(Ql,{key:t.key,elRef:e.cellElRefs.createRef(t.key),innerElRef:e.frameElRefs.createRef(t.key),dateProfile:n.dateProfile,date:t.date,showDayNumber:n.showDayNumbers,showWeekNumber:n.showWeekNumbers&&0===r,forceDayTop:n.showWeekNumbers,todayRange:n.todayRange,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,extraHookProps:t.extraHookProps,extraDataAttrs:t.extraDataAttrs,extraClassNames:t.extraClassNames,extraDateSpan:t.extraDateSpan,moreCnt:p[r],moreMarginTop:h[r],singlePlacements:d[r],fgContentElRef:e.fgElRefs.createRef(t.key),fgContent:mn(_n,null,mn(_n,null,o),mn(_n,null,i)),bgContent:mn(_n,null,e.renderFillSegs(l[r],"highlight"),e.renderFillSegs(s[r],"non-business"),e.renderFillSegs(a[r],"bg-event"))})})))},t.prototype.componentDidMount=function(){this.updateSizing(!0)},t.prototype.componentDidUpdate=function(e,t){var n=this.props;this.updateSizing(!vr(e,n))},t.prototype.getHighlightSegs=function(){var e=this.props;return e.eventDrag&&e.eventDrag.segs.length?e.eventDrag.segs:e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:e.dateSelectionSegs},t.prototype.getMirrorSegs=function(){var e=this.props;return e.eventResize&&e.eventResize.segs.length?e.eventResize.segs:[]},t.prototype.renderFgSegs=function(e,t,n,r,o,i,s){var a=this.context,l=this.props.eventSelection,u=this.state.framePositions,c=1===this.props.cells.length,d=o||i||s,f=[];if(u)for(var p=0,h=t;p<h.length;p++){var g=h[p],v=g.seg,m=v.eventRange.instance.instanceId,y=m+":"+e,b=g.isVisible&&!r[m],_=g.isAbsolute,w="",C="";_&&(a.isRtl?(C=0,w=u.lefts[v.lastCol]-u.lefts[v.firstCol]):(w=0,C=u.rights[v.firstCol]-u.rights[v.lastCol])),f.push(mn("div",{className:"fc-daygrid-event-harness"+(_?" fc-daygrid-event-harness-abs":""),key:y,ref:d?null:this.segHarnessRefs.createRef(y),style:{visibility:b?"":"hidden",marginTop:_?"":g.marginTop,top:_?g.absoluteTop:"",left:w,right:C}},Vl(v)?mn(Gl,Ue({seg:v,isDragging:o,isSelected:m===l,defaultDisplayEventEnd:c},Xo(v,n))):mn(Yl,Ue({seg:v,isDragging:o,isResizing:i,isDateSelecting:s,isSelected:m===l,defaultDisplayEventEnd:c},Xo(v,n)))))}return f},t.prototype.renderFillSegs=function(e,t){var n=this.context.isRtl,r=this.props.todayRange,o=this.state.framePositions,i=[];if(o)for(var s=0,a=e;s<a.length;s++){var l=a[s],u=n?{right:0,left:o.lefts[l.lastCol]-o.lefts[l.firstCol]}:{left:0,right:o.rights[l.firstCol]-o.rights[l.lastCol]};i.push(mn("div",{key:Jo(l.eventRange),className:"fc-daygrid-bg-harness",style:u},"bg-event"===t?mn(kl,Ue({seg:l},Xo(l,r))):Cl(t)))}return mn.apply(void 0,ze([_n,{}],i))},t.prototype.updateSizing=function(e){var t=this.props,n=this.frameElRefs;if(!t.forPrint&&null!==t.clientWidth){if(e){var r=t.cells.map((function(e){return n.currentMap[e.key]}));if(r.length){var o=this.rootElRef.current;this.setState({framePositions:new Qi(o,r,!0,!1)})}}var i=this.state.eventInstanceHeights,s=this.queryEventInstanceHeights(),a=!0===t.dayMaxEvents||!0===t.dayMaxEventRows;this.safeSetState({eventInstanceHeights:Ue(Ue({},i),s),maxContentHeight:a?this.computeMaxContentHeight():null})}},t.prototype.queryEventInstanceHeights=function(){var e=this.segHarnessRefs.currentMap,t={};for(var n in e){var r=Math.round(e[n].getBoundingClientRect().height),o=n.split(":")[0];t[o]=Math.max(t[o]||0,r)}return t},t.prototype.computeMaxContentHeight=function(){var e=this.props.cells[0].key,t=this.cellElRefs.currentMap[e],n=this.fgElRefs.currentMap[e];return t.getBoundingClientRect().bottom-n.getBoundingClientRect().top},t.prototype.getCellEls=function(){var e=this.cellElRefs.currentMap;return this.props.cells.map((function(t){return e[t.key]}))},t}(cs);ru.addStateEquality({eventInstanceHeights:vr});var ou=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitBusinessHourSegs=Hr(Ul),t.splitBgEventSegs=Hr(Ul),t.splitFgEventSegs=Hr(Ul),t.splitDateSelectionSegs=Hr(Ul),t.splitEventDrag=Hr(jl),t.splitEventResize=Hr(jl),t.rowRefs=new Qa,t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.dateProfile,r=t.dayMaxEventRows,o=t.dayMaxEvents,i=t.expandRows,s=t.cells.length,a=this.splitBusinessHourSegs(t.businessHourSegs,s),l=this.splitBgEventSegs(t.bgEventSegs,s),u=this.splitFgEventSegs(t.fgEventSegs,s),c=this.splitDateSelectionSegs(t.dateSelectionSegs,s),d=this.splitEventDrag(t.eventDrag,s),f=this.splitEventResize(t.eventResize,s),p=!0===o||!0===r;return p&&!i&&(p=!1,r=null,o=null),mn("div",{className:["fc-daygrid-body",p?"fc-daygrid-body-balanced":"fc-daygrid-body-unbalanced",i?"":"fc-daygrid-body-natural"].join(" "),ref:this.handleRootEl,style:{width:t.clientWidth,minWidth:t.tableMinWidth}},mn(Ha,{unit:"day"},(function(p,h){return mn(_n,null,mn("table",{role:"presentation",className:"fc-scrollgrid-sync-table",style:{width:t.clientWidth,minWidth:t.tableMinWidth,height:i?t.clientHeight:""}},t.colGroupNode,mn("tbody",{role:"presentation"},t.cells.map((function(i,p){return mn(ru,{ref:e.rowRefs.createRef(p),key:i.length?i[0].date.toISOString():p,showDayNumbers:s>1,showWeekNumbers:t.showWeekNumbers,todayRange:h,dateProfile:n,cells:i,renderIntro:t.renderRowIntro,businessHourSegs:a[p],eventSelection:t.eventSelection,bgEventSegs:l[p].filter(iu),fgEventSegs:u[p],dateSelectionSegs:c[p],eventDrag:d[p],eventResize:f[p],dayMaxEvents:o,dayMaxEventRows:r,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:t.forPrint})})))))})))},t.prototype.prepareHits=function(){this.rowPositions=new Qi(this.rootEl,this.rowRefs.collect().map((function(e){return e.getCellEls()[0]})),!1,!0),this.colPositions=new Qi(this.rootEl,this.rowRefs.currentMap[0].getCellEls(),!0,!1)},t.prototype.queryHit=function(e,t){var n=this.colPositions,r=this.rowPositions,o=n.leftToIndex(e),i=r.topToIndex(t);if(null!=i&&null!=o){var s=this.props.cells[i][o];return{dateProfile:this.props.dateProfile,dateSpan:Ue({range:this.getCellRange(i,o),allDay:!0},s.extraDateSpan),dayEl:this.getCellEl(i,o),rect:{left:n.lefts[o],right:n.rights[o],top:r.tops[i],bottom:r.bottoms[i]},layer:0}}return null},t.prototype.getCellEl=function(e,t){return this.rowRefs.currentMap[e].getCellEls()[t]},t.prototype.getCellRange=function(e,t){var n=this.props.cells[e][t].date;return{start:n,end:Kn(n,1)}},t}(cs);function iu(e){return e.eventRange.def.allDay}var su=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.forceDayIfListItem=!0,t}return We(t,e),t.prototype.sliceRange=function(e,t){return t.sliceRange(e)},t}(Fa),au=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new su,t.tableRef=bn(),t}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return mn(ou,Ue({ref:this.tableRef},this.slicer.sliceProps(e,e.dateProfile,e.nextDayThreshold,t,e.dayTableModel),{dateProfile:e.dateProfile,cells:e.dayTableModel.cells,colGroupNode:e.colGroupNode,tableMinWidth:e.tableMinWidth,renderRowIntro:e.renderRowIntro,dayMaxEvents:e.dayMaxEvents,dayMaxEventRows:e.dayMaxEventRows,showWeekNumbers:e.showWeekNumbers,expandRows:e.expandRows,headerAlignElRef:e.headerAlignElRef,clientWidth:e.clientWidth,clientHeight:e.clientHeight,forPrint:e.forPrint}))},t}(cs),lu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayTableModel=Hr(uu),t.headerRef=bn(),t.tableRef=bn(),t}return We(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,r=t.dateProfileGenerator,o=this.props,i=this.buildDayTableModel(o.dateProfile,r),s=n.dayHeaders&&mn(Ua,{ref:this.headerRef,dateProfile:o.dateProfile,dates:i.headerDates,datesRepDistinctDays:1===i.rowCnt}),a=function(t){return mn(au,{ref:e.tableRef,dateProfile:o.dateProfile,dayTableModel:i,businessHours:o.businessHours,dateSelection:o.dateSelection,eventStore:o.eventStore,eventUiBases:o.eventUiBases,eventSelection:o.eventSelection,eventDrag:o.eventDrag,eventResize:o.eventResize,nextDayThreshold:n.nextDayThreshold,colGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,dayMaxEvents:n.dayMaxEvents,dayMaxEventRows:n.dayMaxEventRows,showWeekNumbers:n.weekNumbers,expandRows:!o.isHeightAuto,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:o.forPrint})};return n.dayMinWidth?this.renderHScrollLayout(s,a,i.colCnt,n.dayMinWidth):this.renderSimpleLayout(s,a)},t}(Wl);function uu(e,t){var n=new ja(e.renderRange,t);return new Ba(n,/year|month|week/.test(e.currentRangeUnit))}var cu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.buildRenderRange=function(t,n,r){var o,i=this.props.dateEnv,s=e.prototype.buildRenderRange.call(this,t,n,r),a=s.start,l=s.end;(/^(year|month)$/.test(n)&&(a=i.startOfWeek(a),(o=i.startOfWeek(l)).valueOf()!==l.valueOf()&&(l=Zn(o,1))),this.props.monthMode&&this.props.fixedWeekCount)&&(l=Zn(l,6-Math.ceil(Jn(a,l)/7)));return{start:a,end:l}},t}(Ds),du=ds({initialView:"dayGridMonth",views:{dayGrid:{component:lu,dateProfileGeneratorClass:cu},dayGridDay:{type:"dayGrid",duration:{days:1}},dayGridWeek:{type:"dayGrid",duration:{weeks:1}},dayGridMonth:{type:"dayGrid",duration:{months:1},monthMode:!0,fixedWeekCount:!0}}}),fu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.getKeyInfo=function(){return{allDay:{},timed:{}}},t.prototype.getKeysForDateSpan=function(e){return e.allDay?["allDay"]:["timed"]},t.prototype.getKeysForEventDef=function(e){return e.allDay?"background"===(t=e).ui.display||"inverse-background"===t.ui.display?["timed","allDay"]:["allDay"]:["timed"];var t},t}(Ni),pu=to({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"});function hu(e){var t=["fc-timegrid-slot","fc-timegrid-slot-label",e.isLabeled?"fc-scrollgrid-shrink":"fc-timegrid-slot-minor"];return mn(rs.Consumer,null,(function(n){if(!e.isLabeled)return mn("td",{className:t.join(" "),"data-time":e.isoTimeStr});var r=n.dateEnv,o=n.options,i=n.viewApi,s=null==o.slotLabelFormat?pu:Array.isArray(o.slotLabelFormat)?to(o.slotLabelFormat[0]):to(o.slotLabelFormat),a={level:0,time:e.time,date:r.toDate(e.date),view:i,text:r.format(e.date,s)};return mn(gs,{hookProps:a,classNames:o.slotLabelClassNames,content:o.slotLabelContent,defaultContent:gu,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},(function(n,r,o,i){return mn("td",{ref:n,className:t.concat(r).join(" "),"data-time":e.isoTimeStr},mn("div",{className:"fc-timegrid-slot-label-frame fc-scrollgrid-shrink-frame"},mn("div",{className:"fc-timegrid-slot-label-cushion fc-scrollgrid-shrink-cushion",ref:o},i)))}))}))}function gu(e){return e.text}var vu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){return this.props.slatMetas.map((function(e){return mn("tr",{key:e.key},mn(hu,Ue({},e)))}))},t}(ss),mu=to({week:"short"}),yu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.allDaySplitter=new fu,t.headerElRef=bn(),t.rootElRef=bn(),t.scrollerElRef=bn(),t.state={slatCoords:null},t.handleScrollTopRequest=function(e){var n=t.scrollerElRef.current;n&&(n.scrollTop=e)},t.renderHeadAxis=function(e,n){void 0===n&&(n="");var r=t.context.options,o=t.props.dateProfile.renderRange,i=1===Jn(o.start,o.end)?ji(t.context,o.start,"week"):{};return r.weekNumbers&&"day"===e?mn(El,{date:o.start,defaultFormat:mu},(function(e,t,r,o){return mn("th",{ref:e,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(t).join(" ")},mn("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame fc-timegrid-axis-frame-liquid",style:{height:n}},mn("a",Ue({ref:r,className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner"},i),o)))})):mn("th",{"aria-hidden":!0,className:"fc-timegrid-axis"},mn("div",{className:"fc-timegrid-axis-frame",style:{height:n}}))},t.renderTableRowAxis=function(e){var n=t.context,r=n.options,o=n.viewApi,i={text:r.allDayText,view:o};return mn(gs,{hookProps:i,classNames:r.allDayClassNames,content:r.allDayContent,defaultContent:bu,didMount:r.allDayDidMount,willUnmount:r.allDayWillUnmount},(function(t,n,r,o){return mn("td",{ref:t,"aria-hidden":!0,className:["fc-timegrid-axis","fc-scrollgrid-shrink"].concat(n).join(" ")},mn("div",{className:"fc-timegrid-axis-frame fc-scrollgrid-shrink-frame"+(null==e?" fc-timegrid-axis-frame-liquid":""),style:{height:e}},mn("span",{className:"fc-timegrid-axis-cushion fc-scrollgrid-shrink-cushion fc-scrollgrid-sync-inner",ref:r},o)))}))},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t}return We(t,e),t.prototype.renderSimpleLayout=function(e,t,n){var r=this.context,o=this.props,i=[],s=dl(r.options);return e&&i.push({type:"header",key:"header",isSticky:s,chunk:{elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}}),t&&(i.push({type:"body",key:"all-day",chunk:{content:t}}),i.push({type:"body",key:"all-day-divider",outerContent:mn("tr",{role:"presentation",className:"fc-scrollgrid-section"},mn("td",{className:"fc-timegrid-divider "+r.theme.getClass("tableCellShaded")}))})),i.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(r.options.expandRows),chunk:{scrollerElRef:this.scrollerElRef,content:n}}),mn(ks,{viewSpec:r.viewSpec,elRef:this.rootElRef},(function(e,t){return mn("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},mn(pl,{liquid:!o.isHeightAuto&&!o.forPrint,collapsibleWidth:o.forPrint,cols:[{width:"shrink"}],sections:i}))}))},t.prototype.renderHScrollLayout=function(e,t,n,r,o,i,s){var a=this,l=this.context.pluginHooks.scrollGridImpl;if(!l)throw new Error("No ScrollGrid implementation");var u=this.context,c=this.props,d=!c.forPrint&&dl(u.options),f=!c.forPrint&&fl(u.options),p=[];e&&p.push({type:"header",key:"header",isSticky:d,syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return mn("tr",{role:"presentation"},a.renderHeadAxis("day",e.rowSyncHeights[0]))}},{key:"cols",elRef:this.headerElRef,tableClassName:"fc-col-header",rowContent:e}]}),t&&(p.push({type:"body",key:"all-day",syncRowHeights:!0,chunks:[{key:"axis",rowContent:function(e){return mn("tr",{role:"presentation"},a.renderTableRowAxis(e.rowSyncHeights[0]))}},{key:"cols",content:t}]}),p.push({key:"all-day-divider",type:"body",outerContent:mn("tr",{role:"presentation",className:"fc-scrollgrid-section"},mn("td",{colSpan:2,className:"fc-timegrid-divider "+u.theme.getClass("tableCellShaded")}))}));var h=u.options.nowIndicator;return p.push({type:"body",key:"body",liquid:!0,expandRows:Boolean(u.options.expandRows),chunks:[{key:"axis",content:function(e){return mn("div",{className:"fc-timegrid-axis-chunk"},mn("table",{"aria-hidden":!0,style:{height:e.expandRows?e.clientHeight:""}},e.tableColGroupNode,mn("tbody",null,mn(vu,{slatMetas:i}))),mn("div",{className:"fc-timegrid-now-indicator-container"},mn(Ha,{unit:h?"minute":"day"},(function(e){var t=h&&s&&s.safeComputeTop(e);return"number"==typeof t?mn(ml,{isAxis:!0,date:e},(function(e,n,r,o){return mn("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(n).join(" "),style:{top:t}},o)})):null}))))}},{key:"cols",scrollerElRef:this.scrollerElRef,content:n}]}),f&&p.push({key:"footer",type:"footer",isSticky:!0,chunks:[{key:"axis",content:cl},{key:"cols",content:cl}]}),mn(ks,{viewSpec:u.viewSpec,elRef:this.rootElRef},(function(e,t){return mn("div",{className:["fc-timegrid"].concat(t).join(" "),ref:e},mn(l,{liquid:!c.isHeightAuto&&!c.forPrint,collapsibleWidth:!1,colGroups:[{width:"shrink",cols:[{width:"shrink"}]},{cols:[{span:r,minWidth:o}]}],sections:p}))}))},t.prototype.getAllDayMaxEventProps=function(){var e=this.context.options,t=e.dayMaxEvents,n=e.dayMaxEventRows;return!0!==t&&!0!==n||(t=void 0,n=5),{dayMaxEvents:t,dayMaxEventRows:n}},t}(cs);function bu(e){return e.text}var _u=function(){function e(e,t,n){this.positions=e,this.dateProfile=t,this.slotDuration=n}return e.prototype.safeComputeTop=function(e){var t=this.dateProfile;if(Wo(t.currentRange,e)){var n=er(e),r=e.valueOf()-n.valueOf();if(r>=Mr(t.slotMinTime)&&r<Mr(t.slotMaxTime))return this.computeTimeTop(Er(r))}return null},e.prototype.computeDateTop=function(e,t){return t||(t=er(e)),this.computeTimeTop(Er(e.valueOf()-t.valueOf()))},e.prototype.computeTimeTop=function(e){var t,n,r=this.positions,o=this.dateProfile,i=r.els.length,s=(e.milliseconds-Mr(o.slotMinTime))/Mr(this.slotDuration);return s=Math.max(0,s),s=Math.min(i,s),t=Math.floor(s),n=s-(t=Math.min(t,i-1)),r.tops[t]+r.getHeight(t)*n},e}(),wu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=e.slatElRefs;return mn("tbody",null,e.slatMetas.map((function(o,i){var s={time:o.time,date:t.dateEnv.toDate(o.date),view:t.viewApi},a=["fc-timegrid-slot","fc-timegrid-slot-lane",o.isLabeled?"":"fc-timegrid-slot-minor"];return mn("tr",{key:o.key,ref:r.createRef(o.key)},e.axis&&mn(hu,Ue({},o)),mn(gs,{hookProps:s,classNames:n.slotLaneClassNames,content:n.slotLaneContent,didMount:n.slotLaneDidMount,willUnmount:n.slotLaneWillUnmount},(function(e,t,n,r){return mn("td",{ref:e,className:a.concat(t).join(" "),"data-time":o.isoTimeStr},r)})))})))},t}(ss),Cu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=bn(),t.slatElRefs=new Qa,t}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return mn("div",{ref:this.rootElRef,className:"fc-timegrid-slots"},mn("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},e.tableColGroupNode,mn(wu,{slatElRefs:this.slatElRefs,axis:e.axis,slatMetas:e.slatMetas})))},t.prototype.componentDidMount=function(){this.updateSizing()},t.prototype.componentDidUpdate=function(){this.updateSizing()},t.prototype.componentWillUnmount=function(){this.props.onCoords&&this.props.onCoords(null)},t.prototype.updateSizing=function(){var e,t=this.context,n=this.props;n.onCoords&&null!==n.clientWidth&&(this.rootElRef.current.offsetHeight&&n.onCoords(new _u(new Qi(this.rootElRef.current,(e=this.slatElRefs.currentMap,n.slatMetas.map((function(t){return e[t.key]}))),!1,!0),this.props.dateProfile,t.options.slotDuration)))},t}(ss);function ku(e,t){var n,r=[];for(n=0;n<t;n+=1)r.push([]);if(e)for(n=0;n<e.length;n+=1)r[e[n].col].push(e[n]);return r}function Su(e,t){var n=[];if(e){for(s=0;s<t;s+=1)n[s]={affectedInstances:e.affectedInstances,isEvent:e.isEvent,segs:[]};for(var r=0,o=e.segs;r<o.length;r++){var i=o[r];n[i.col].segs.push(i)}}else for(var s=0;s<t;s+=1)n[s]=null;return n}var Eu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=bn(),t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props;return mn(Tl,{allDayDate:null,moreCnt:t.hiddenSegs.length,allSegs:t.hiddenSegs,hiddenSegs:t.hiddenSegs,alignmentElRef:this.rootElRef,defaultContent:xu,extraDateSpan:t.extraDateSpan,dateProfile:t.dateProfile,todayRange:t.todayRange,popoverContent:function(){return Lu(t.hiddenSegs,t)}},(function(n,r,o,i,s,a,l,u){return mn("a",{ref:function(t){us(n,t),us(e.rootElRef,t)},className:["fc-timegrid-more-link"].concat(r).join(" "),style:{top:t.top,bottom:t.bottom},onClick:s,title:a,"aria-expanded":l,"aria-controls":u},mn("div",{ref:o,className:"fc-timegrid-more-link-inner fc-sticky"},i))}))},t}(ss);function xu(e){return e.shortText}function Ru(e,t,n){var r=new pa;null!=t&&(r.strictOrder=t),null!=n&&(r.maxStackCnt=n);var o,i,s,a=va(r.addSegs(e)),l=function(e){var t=e.entriesByLevel,n=Mu((function(e,t){return e+":"+t}),(function(r,o){var i=function(e,t,n){for(var r=e.levelCoords,o=e.entriesByLevel,i=o[t][n],s=r[t]+i.thickness,a=r.length,l=t;l<a&&r[l]<s;l+=1);for(;l<a;l+=1){for(var u=o[l],c=void 0,d=ba(u,i.span.start,ha),f=d[0]+d[1],p=f;(c=u[p])&&c.span.start<i.span.end;)p+=1;if(f<p)return{level:l,lateralStart:f,lateralEnd:p}}return null}(e,r,o),s=Du(i,n),a=t[r][o];return[Ue(Ue({},a),{nextLevelNodes:s[0]}),a.thickness+s[1]]}));return Du(t.length?{level:0,lateralStart:0,lateralEnd:t[0].length}:null,n)[0]}(r);return o=l,i=1,s=Mu((function(e,t,n){return ga(e)}),(function(e,t,n){var r,o=e.nextLevelNodes,a=e.thickness,l=a+n,u=a/l,c=[];if(o.length)for(var d=0,f=o;d<f.length;d++){var p=f[d];if(void 0===r)r=(h=s(p,t,l))[0],c.push(h[1]);else{var h=s(p,r,0);c.push(h[1])}}else r=i;var g=(r-t)*u;return[r-g,Ue(Ue({},e),{thickness:g,nextLevelNodes:c})]})),{segRects:function(e){var t=[],n=Mu((function(e,t,n){return ga(e)}),(function(e,n,o){var i=Ue(Ue({},e),{levelCoord:n,stackDepth:o,stackForward:0});return t.push(i),i.stackForward=r(e.nextLevelNodes,n+e.thickness,o+1)+1}));function r(e,t,r){for(var o=0,i=0,s=e;i<s.length;i++){var a=s[i];o=Math.max(n(a,t,r),o)}return o}return r(e,0,0),t}(l=o.map((function(e){return s(e,0,0)[1]}))),hiddenGroups:a}}function Du(e,t){if(!e)return[[],0];for(var n=e.level,r=e.lateralStart,o=e.lateralEnd,i=r,s=[];i<o;)s.push(t(n,i)),i+=1;return s.sort(Tu),[s.map($u),s[0][1]]}function Tu(e,t){return t[1]-e[1]}function $u(e){return e[0]}function Mu(e,t){var n={};return function(){for(var r=[],o=0;o<arguments.length;o++)r[o]=arguments[o];var i=e.apply(void 0,r);return i in n?n[i]:n[i]=t.apply(void 0,r)}}function Iu(e,t,n,r){void 0===n&&(n=null),void 0===r&&(r=0);var o=[];if(n)for(var i=0;i<e.length;i+=1){var s=e[i],a=n.computeDateTop(s.start,t),l=Math.max(a+(r||0),n.computeDateTop(s.end,t));o.push({start:Math.round(a),end:Math.round(l)})}return o}var Au=to({hour:"numeric",minute:"2-digit",meridiem:!1}),Ou=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=["fc-timegrid-event","fc-v-event"];return this.props.isShort&&e.push("fc-timegrid-event-short"),mn(gl,Ue({},this.props,{defaultTimeFormat:Au,extraClassNames:e}))},t}(ss),Nu=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props;return mn(bl,{date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,extraHookProps:e.extraHookProps},(function(e,t){return t&&mn("div",{className:"fc-timegrid-col-misc",ref:e},t)}))},t}(ss),Pu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.sortEventSegs=Hr(qo),t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,r=n.options.selectMirror,o=t.eventDrag&&t.eventDrag.segs||t.eventResize&&t.eventResize.segs||r&&t.dateSelectionSegs||[],i=t.eventDrag&&t.eventDrag.affectedInstances||t.eventResize&&t.eventResize.affectedInstances||{},s=this.sortEventSegs(t.fgEventSegs,n.options.eventOrder);return mn(wl,{elRef:t.elRef,date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps},(function(n,a,l){return mn("td",Ue({ref:n,role:"gridcell",className:["fc-timegrid-col"].concat(a,t.extraClassNames||[]).join(" ")},l,t.extraDataAttrs),mn("div",{className:"fc-timegrid-col-frame"},mn("div",{className:"fc-timegrid-col-bg"},e.renderFillSegs(t.businessHourSegs,"non-business"),e.renderFillSegs(t.bgEventSegs,"bg-event"),e.renderFillSegs(t.dateSelectionSegs,"highlight")),mn("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(s,i,!1,!1,!1)),mn("div",{className:"fc-timegrid-col-events"},e.renderFgSegs(o,{},Boolean(t.eventDrag),Boolean(t.eventResize),Boolean(r))),mn("div",{className:"fc-timegrid-now-indicator-container"},e.renderNowIndicator(t.nowIndicatorSegs)),mn(Nu,{date:t.date,dateProfile:t.dateProfile,todayRange:t.todayRange,extraHookProps:t.extraHookProps})))}))},t.prototype.renderFgSegs=function(e,t,n,r,o){var i=this.props;return i.forPrint?Lu(e,i):this.renderPositionedFgSegs(e,t,n,r,o)},t.prototype.renderPositionedFgSegs=function(e,t,n,r,o){var i=this,s=this.context.options,a=s.eventMaxStack,l=s.eventShortHeight,u=s.eventOrderStrict,c=s.eventMinHeight,d=this.props,f=d.date,p=d.slatCoords,h=d.eventSelection,g=d.todayRange,v=d.nowDate,m=n||r||o,y=function(e,t,n,r){for(var o=[],i=[],s=0;s<e.length;s+=1){var a=t[s];a?o.push({index:s,thickness:1,span:a}):i.push(e[s])}for(var l=Ru(o,n,r),u=l.segRects,c=l.hiddenGroups,d=[],f=0,p=u;f<p.length;f++){var h=p[f];d.push({seg:e[h.index],rect:h})}for(var g=0,v=i;g<v.length;g++){var m=v[g];d.push({seg:m,rect:null})}return{segPlacements:d,hiddenGroups:c}}(e,Iu(e,f,p,c),u,a),b=y.segPlacements,_=y.hiddenGroups;return mn(_n,null,this.renderHiddenGroups(_,e),b.map((function(e){var s=e.seg,a=e.rect,u=s.eventRange.instance.instanceId,c=m||Boolean(!t[u]&&a),d=Hu(a&&a.span),f=!m&&a?i.computeSegHStyle(a):{left:0,right:0},p=Boolean(a)&&a.stackForward>0,y=Boolean(a)&&a.span.end-a.span.start<l;return mn("div",{className:"fc-timegrid-event-harness"+(p?" fc-timegrid-event-harness-inset":""),key:u,style:Ue(Ue({visibility:c?"":"hidden"},d),f)},mn(Ou,Ue({seg:s,isDragging:n,isResizing:r,isDateSelecting:o,isSelected:u===h,isShort:y},Xo(s,g,v))))})))},t.prototype.renderHiddenGroups=function(e,t){var n=this.props,r=n.extraDateSpan,o=n.dateProfile,i=n.todayRange,s=n.nowDate,a=n.eventSelection,l=n.eventDrag,u=n.eventResize;return mn(_n,null,e.map((function(e){var n,c,d=Hu(e.span),f=(n=e.entries,c=t,n.map((function(e){return c[e.index]})));return mn(Eu,{key:Or(Il(f)),hiddenSegs:f,top:d.top,bottom:d.bottom,extraDateSpan:r,dateProfile:o,todayRange:i,nowDate:s,eventSelection:a,eventDrag:l,eventResize:u})})))},t.prototype.renderFillSegs=function(e,t){var n=this.props,r=this.context,o=Iu(e,n.date,n.slatCoords,r.options.eventMinHeight).map((function(r,o){var i=e[o];return mn("div",{key:Jo(i.eventRange),className:"fc-timegrid-bg-harness",style:Hu(r)},"bg-event"===t?mn(kl,Ue({seg:i},Xo(i,n.todayRange,n.nowDate))):Cl(t))}));return mn(_n,null,o)},t.prototype.renderNowIndicator=function(e){var t=this.props,n=t.slatCoords,r=t.date;return n?e.map((function(e,t){return mn(ml,{isAxis:!1,date:r,key:t},(function(t,o,i,s){return mn("div",{ref:t,className:["fc-timegrid-now-indicator-line"].concat(o).join(" "),style:{top:n.computeDateTop(e.start,r)}},s)}))})):null},t.prototype.computeSegHStyle=function(e){var t,n,r=this.context,o=r.isRtl,i=r.options.slotEventOverlap,s=e.levelCoord,a=e.levelCoord+e.thickness;i&&(a=Math.min(1,s+2*(a-s))),o?(t=1-a,n=s):(t=s,n=1-a);var l={zIndex:e.stackDepth+1,left:100*t+"%",right:100*n+"%"};return i&&!e.stackForward&&(l[o?"marginLeft":"marginRight"]=20),l},t}(ss);function Lu(e,t){var n=t.todayRange,r=t.nowDate,o=t.eventSelection,i=t.eventDrag,s=t.eventResize,a=(i?i.affectedInstances:null)||(s?s.affectedInstances:null)||{};return mn(_n,null,e.map((function(e){var t=e.eventRange.instance.instanceId;return mn("div",{key:t,style:{visibility:a[t]?"hidden":""}},mn(Ou,Ue({seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:t===o,isShort:!1},Xo(e,n,r))))})))}function Hu(e){return e?{top:e.start,bottom:-e.end}:{top:"",bottom:""}}var Wu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.splitFgEventSegs=Hr(ku),t.splitBgEventSegs=Hr(ku),t.splitBusinessHourSegs=Hr(ku),t.splitNowIndicatorSegs=Hr(ku),t.splitDateSelectionSegs=Hr(ku),t.splitEventDrag=Hr(Su),t.splitEventResize=Hr(Su),t.rootElRef=bn(),t.cellElRefs=new Qa,t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context.options.nowIndicator&&t.slatCoords&&t.slatCoords.safeComputeTop(t.nowDate),r=t.cells.length,o=this.splitFgEventSegs(t.fgEventSegs,r),i=this.splitBgEventSegs(t.bgEventSegs,r),s=this.splitBusinessHourSegs(t.businessHourSegs,r),a=this.splitNowIndicatorSegs(t.nowIndicatorSegs,r),l=this.splitDateSelectionSegs(t.dateSelectionSegs,r),u=this.splitEventDrag(t.eventDrag,r),c=this.splitEventResize(t.eventResize,r);return mn("div",{className:"fc-timegrid-cols",ref:this.rootElRef},mn("table",{role:"presentation",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,mn("tbody",{role:"presentation"},mn("tr",{role:"row"},t.axis&&mn("td",{"aria-hidden":!0,className:"fc-timegrid-col fc-timegrid-axis"},mn("div",{className:"fc-timegrid-col-frame"},mn("div",{className:"fc-timegrid-now-indicator-container"},"number"==typeof n&&mn(ml,{isAxis:!0,date:t.nowDate},(function(e,t,r,o){return mn("div",{ref:e,className:["fc-timegrid-now-indicator-arrow"].concat(t).join(" "),style:{top:n}},o)}))))),t.cells.map((function(n,r){return mn(Pu,{key:n.key,elRef:e.cellElRefs.createRef(n.key),dateProfile:t.dateProfile,date:n.date,nowDate:t.nowDate,todayRange:t.todayRange,extraHookProps:n.extraHookProps,extraDataAttrs:n.extraDataAttrs,extraClassNames:n.extraClassNames,extraDateSpan:n.extraDateSpan,fgEventSegs:o[r],bgEventSegs:i[r],businessHourSegs:s[r],nowIndicatorSegs:a[r],dateSelectionSegs:l[r],eventDrag:u[r],eventResize:c[r],slatCoords:t.slatCoords,eventSelection:t.eventSelection,forPrint:t.forPrint})}))))))},t.prototype.componentDidMount=function(){this.updateCoords()},t.prototype.componentDidUpdate=function(){this.updateCoords()},t.prototype.updateCoords=function(){var e,t=this.props;t.onColCoords&&null!==t.clientWidth&&t.onColCoords(new Qi(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.cells.map((function(t){return e[t.key]}))),!0,!1))},t}(ss);var Uu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processSlotOptions=Hr(zu),t.state={slatCoords:null},t.handleRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e,isHitComboAllowed:t.props.isHitComboAllowed}):t.context.unregisterInteractiveComponent(t)},t.handleScrollRequest=function(e){var n=t.props.onScrollTopRequest,r=t.state.slatCoords;if(n&&r){if(e.time){var o=r.computeTimeTop(e.time);(o=Math.ceil(o))&&(o+=1),n(o)}return!0}return!1},t.handleColCoords=function(e){t.colCoords=e},t.handleSlatCoords=function(e){t.setState({slatCoords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return mn("div",{className:"fc-timegrid-body",ref:this.handleRootEl,style:{width:e.clientWidth,minWidth:e.tableMinWidth}},mn(Cu,{axis:e.axis,dateProfile:e.dateProfile,slatMetas:e.slatMetas,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,tableColGroupNode:e.axis?e.tableColGroupNode:null,onCoords:this.handleSlatCoords}),mn(Wu,{cells:e.cells,axis:e.axis,dateProfile:e.dateProfile,businessHourSegs:e.businessHourSegs,bgEventSegs:e.bgEventSegs,fgEventSegs:e.fgEventSegs,dateSelectionSegs:e.dateSelectionSegs,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,todayRange:e.todayRange,nowDate:e.nowDate,nowIndicatorSegs:e.nowIndicatorSegs,clientWidth:e.clientWidth,tableMinWidth:e.tableMinWidth,tableColGroupNode:e.tableColGroupNode,slatCoords:t.slatCoords,onColCoords:this.handleColCoords,forPrint:e.forPrint}))},t.prototype.componentDidMount=function(){this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.componentDidUpdate=function(e){this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},t.prototype.queryHit=function(e,t){var n=this.context,r=n.dateEnv,o=n.options,i=this.colCoords,s=this.props.dateProfile,a=this.state.slatCoords,l=this.processSlotOptions(this.props.slotDuration,o.snapDuration),u=l.snapDuration,c=l.snapsPerSlot,d=i.leftToIndex(e),f=a.positions.topToIndex(t);if(null!=d&&null!=f){var p=this.props.cells[d],h=a.positions.tops[f],g=a.positions.getHeight(f),v=(t-h)/g,m=f*c+Math.floor(v*c),y=this.props.cells[d].date,b=Dr(s.slotMinTime,Tr(u,m)),_=r.add(y,b),w=r.add(_,u);return{dateProfile:s,dateSpan:Ue({range:{start:_,end:w},allDay:!1},p.extraDateSpan),dayEl:i.els[d],rect:{left:i.lefts[d],right:i.rights[d],top:h,bottom:h+g},layer:0}}return null},t}(cs);function zu(e,t){var n=t||e,r=Ir(e,n);return null===r&&(n=e,r=1),{snapDuration:n,snapsPerSlot:r}}var ju=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.sliceRange=function(e,t){for(var n=[],r=0;r<t.length;r+=1){var o=Po(e,t[r]);o&&n.push({start:o.start,end:o.end,isStart:o.start.valueOf()===e.start.valueOf(),isEnd:o.end.valueOf()===e.end.valueOf(),col:r})}return n},t}(Fa),Bu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDayRanges=Hr(Fu),t.slicer=new ju,t.timeColsRef=bn(),t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,r=t.dateProfile,o=t.dayTableModel,i=n.options.nowIndicator,s=this.buildDayRanges(o,r,n.dateEnv);return mn(Ha,{unit:i?"minute":"day"},(function(a,l){return mn(Uu,Ue({ref:e.timeColsRef},e.slicer.sliceProps(t,r,null,n,s),{forPrint:t.forPrint,axis:t.axis,dateProfile:r,slatMetas:t.slatMetas,slotDuration:t.slotDuration,cells:o.cells[0],tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,expandRows:t.expandRows,nowDate:a,nowIndicatorSegs:i&&e.slicer.sliceNowDate(a,n,s),todayRange:l,onScrollTopRequest:t.onScrollTopRequest,onSlatCoords:t.onSlatCoords}))}))},t}(cs);function Fu(e,t,n){for(var r=[],o=0,i=e.headerDates;o<i.length;o++){var s=i[o];r.push({start:n.add(s,t.slotMinTime),end:n.add(s,t.slotMaxTime)})}return r}var qu=[{hours:1},{minutes:30},{minutes:15},{seconds:30},{seconds:15}];function Vu(e,t,n,r,o){for(var i,s=new Date(0),a=e,l=Er(0),u=n||function(e){var t,n,r;for(t=qu.length-1;t>=0;t-=1)if(null!==(r=Ir(n=Er(qu[t]),e))&&r>1)return n;return e}(r),c=[];Mr(a)<Mr(t);){var d=o.add(s,a),f=null!==Ir(l,u);c.push({date:d,time:a,key:d.toISOString(),isoTimeStr:(i=d,Fn(i.getUTCHours(),2)+":"+Fn(i.getUTCMinutes(),2)+":"+Fn(i.getUTCSeconds(),2)),isLabeled:f}),a=Dr(a,r),l=Dr(l,r)}return c}var Yu=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildTimeColsModel=Hr(Gu),t.buildSlatMetas=Hr(Vu),t}return We(t,e),t.prototype.render=function(){var e=this,t=this.context,n=t.options,r=t.dateEnv,o=t.dateProfileGenerator,i=this.props,s=i.dateProfile,a=this.buildTimeColsModel(s,o),l=this.allDaySplitter.splitProps(i),u=this.buildSlatMetas(s.slotMinTime,s.slotMaxTime,n.slotLabelInterval,n.slotDuration,r),c=n.dayMinWidth,d=!c,f=c,p=n.dayHeaders&&mn(Ua,{dates:a.headerDates,dateProfile:s,datesRepDistinctDays:!0,renderIntro:d?this.renderHeadAxis:null}),h=!1!==n.allDaySlot&&function(t){return mn(au,Ue({},l.allDay,{dateProfile:s,dayTableModel:a,nextDayThreshold:n.nextDayThreshold,tableMinWidth:t.tableMinWidth,colGroupNode:t.tableColGroupNode,renderRowIntro:d?e.renderTableRowAxis:null,showWeekNumbers:!1,expandRows:!1,headerAlignElRef:e.headerElRef,clientWidth:t.clientWidth,clientHeight:t.clientHeight,forPrint:i.forPrint},e.getAllDayMaxEventProps()))},g=function(t){return mn(Bu,Ue({},l.timed,{dayTableModel:a,dateProfile:s,axis:d,slotDuration:n.slotDuration,slatMetas:u,forPrint:i.forPrint,tableColGroupNode:t.tableColGroupNode,tableMinWidth:t.tableMinWidth,clientWidth:t.clientWidth,clientHeight:t.clientHeight,onSlatCoords:e.handleSlatCoords,expandRows:t.expandRows,onScrollTopRequest:e.handleScrollTopRequest}))};return f?this.renderHScrollLayout(p,h,g,a.colCnt,c,u,this.state.slatCoords):this.renderSimpleLayout(p,h,g)},t}(yu);function Gu(e,t){var n=new ja(e.renderRange,t);return new Ba(n,!1)}var Zu=ds({initialView:"timeGridWeek",optionRefiners:{allDaySlot:Boolean},views:{timeGrid:{component:Yu,usesMinMaxTime:!0,allDaySlot:!0,slotDuration:"00:30:00",slotEventOverlap:!0},timeGridDay:{type:"timeGrid",duration:{days:1}},timeGridWeek:{type:"timeGrid",duration:{weeks:1}}}});gn("");
|
||
/*!
|
||
FullCalendar Scheduler v5.11.5
|
||
Docs & License: https://fullcalendar.io/scheduler
|
||
(c) 2022 Adam Shaw
|
||
*/
|
||
var Ku="2023-05-08",Xu=372,Ju=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],Qu={position:"absolute",zIndex:99999,bottom:"1px",left:"1px",background:"#eee",borderColor:"#ddd",borderStyle:"solid",borderWidth:"1px 1px 0 0",padding:"2px 4px",fontSize:"12px",borderTopRightRadius:"3px"};var ec=ds({optionRefiners:{schedulerLicenseKey:String},viewContainerAppends:[function(e){var t=e.options.schedulerLicenseKey,n="undefined"!=typeof window?window.location.href:"";if(!/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(n)){var r=function(e){if(-1!==Ju.indexOf(e))return"valid";var t=(e||"").match(/^(\d+)-fcs-(\d+)$/);if(t&&10===t[1].length){var n=new Date(1e3*parseInt(t[2],10)),r=new Date(Ca.mockSchedulerReleaseDate||Ku);if(ar(r))return Kn(r,-Xu)<n?"valid":"outdated"}return"invalid"}(t);if("valid"!==r)return mn("div",{className:"fc-license-message",style:Qu},"outdated"===r?mn(_n,null,"Your license key is too old to work with this version. ",mn("a",{href:"http://fullcalendar.io/docs/schedulerLicenseKey#outdated"},"More Info")):mn(_n,null,"Your license key is invalid. ",mn("a",{href:"http://fullcalendar.io/docs/schedulerLicenseKey#invalid"},"More Info")))}return null}]});
|
||
/*!
|
||
FullCalendar Scheduler v5.11.5
|
||
Docs & License: https://fullcalendar.io/scheduler
|
||
(c) 2022 Adam Shaw
|
||
*/
|
||
Ca.COLLAPSIBLE_WIDTH_THRESHOLD=1200;var tc=[],nc=[],rc=ds({deps:[ec],contextInit:function(e){tc.length||(window.addEventListener("beforeprint",oc),window.addEventListener("afterprint",ic)),tc.push(e),e.calendarApi.on("_unmount",(function(){!function(e,t){for(var n=0,r=0;r<e.length;)e[r]===t?(e.splice(r,1),n+=1):r+=1}(tc,e),tc.length||(window.removeEventListener("beforeprint",oc),window.removeEventListener("afterprint",ic))}))}});function oc(){for(var e=Tn(document.body,".fc-scroller-harness > .fc-scroller"),t=e.map((function(e){var t=window.getComputedStyle(e);return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,overflowX:t.overflowX,overflowY:t.overflowY,marginBottom:t.marginBottom}})),n=0,r=tc;n<r.length;n++){r[n].emitter.trigger("_beforeprint")}kn((function(){!function(e,t){e.forEach((function(e,n){e.style.overflowX="visible",e.style.overflowY="visible",e.style.marginBottom="",e.style.left=-t[n].scrollLeft+"px"}))}(e,t),nc.push((function(){return function(e,t){e.forEach((function(e,n){var r=t[n];e.style.overflowX=r.overflowX,e.style.overflowY=r.overflowY,e.style.marginBottom=r.marginBottom,e.style.left="",e.scrollLeft=r.scrollLeft,e.scrollTop=r.scrollTop}))}(e,t)})),nc.push(function(){var e=Tn(document.body,".fc-scrollgrid");return e.forEach(sc),function(){return e.forEach(ac)}}())}))}function ic(){for(var e=0,t=tc;e<t.length;e++){t[e].emitter.trigger("_afterprint")}kn((function(){for(;nc.length;)nc.shift()()}))}function sc(e){var t=e.getBoundingClientRect().width;(!e.classList.contains("fc-scrollgrid-collapsible")||t<Ca.COLLAPSIBLE_WIDTH_THRESHOLD)&&(e.style.width=t+"px")}function ac(e){e.style.width=""}var lc=["MO","TU","WE","TH","FR","SA","SU"],uc=function(){function e(e,t){if(0===t)throw new Error("Can't create weekday with n == 0");this.weekday=e,this.n=t}return e.fromStr=function(t){return new e(lc.indexOf(t))},e.prototype.nth=function(t){return this.n===t?this:new e(this.weekday,t)},e.prototype.equals=function(e){return this.weekday===e.weekday&&this.n===e.n},e.prototype.toString=function(){var e=lc[this.weekday];return this.n&&(e=(this.n>0?"+":"")+String(this.n)+e),e},e.prototype.getJsWeekday=function(){return 6===this.weekday?0:this.weekday+1},e}(),cc=function(e){return null!=e},dc=function(e){return"number"==typeof e},fc=function(e){return"string"==typeof e&&lc.includes(e)},pc=Array.isArray,hc=function(e,t){void 0===t&&(t=e),1===arguments.length&&(t=e,e=0);for(var n=[],r=e;r<t;r++)n.push(r);return n},gc=function(e,t){var n=0,r=[];if(pc(e))for(;n<t;n++)r[n]=[].concat(e);else for(;n<t;n++)r[n]=e;return r};function vc(e,t,n){void 0===n&&(n=" ");var r=String(e);return t>>=0,r.length>t?String(r):((t-=r.length)>n.length&&(n+=gc(n,t/n.length)),n.slice(0,t)+String(r))}var mc,yc=function(e,t,n){var r=e.split(t);return n?r.slice(0,n).concat([r.slice(n).join(t)]):r},bc=function(e,t){var n=e%t;return n*t<0?n+t:n},_c=function(e,t){return{div:Math.floor(e/t),mod:bc(e,t)}},wc=function(e){return!cc(e)||0===e.length},Cc=function(e){return!wc(e)},kc=function(e,t){return Cc(e)&&-1!==e.indexOf(t)},Sc=function(e,t,n,r,o,i){return void 0===r&&(r=0),void 0===o&&(o=0),void 0===i&&(i=0),new Date(Date.UTC(e,t-1,n,r,o,i))},Ec=[31,28,31,30,31,30,31,31,30,31,30,31],xc=864e5,Rc=9999,Dc=Sc(1970,1,1),Tc=[6,0,1,2,3,4,5],$c=function(e){return e%4==0&&e%100!=0||e%400==0},Mc=function(e){return e instanceof Date},Ic=function(e){return Mc(e)&&!isNaN(e.getTime())},Ac=function(e){return 60*e.getTimezoneOffset()*1e3},Oc=function(e){return n=Dc,r=(t=e).getTime()-Ac(t)-(n.getTime()-Ac(n)),Math.round(r/xc);var t,n,r},Nc=function(e){return new Date(Dc.getTime()+e*xc)},Pc=function(e){var t=e.getUTCMonth();return 1===t&&$c(e.getUTCFullYear())?29:Ec[t]},Lc=function(e){return Tc[e.getUTCDay()]},Hc=function(e,t){var n=Sc(e,t+1,1);return[Lc(n),Pc(n)]},Wc=function(e,t){return t=t||e,new Date(Date.UTC(e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))},Uc=function(e){return new Date(e.getTime())},zc=function(e){for(var t=[],n=0;n<e.length;n++)t.push(Uc(e[n]));return t},jc=function(e){e.sort((function(e,t){return e.getTime()-t.getTime()}))},Bc=function(e,t){void 0===t&&(t=!0);var n=new Date(e);return[vc(n.getUTCFullYear().toString(),4,"0"),vc(n.getUTCMonth()+1,2,"0"),vc(n.getUTCDate(),2,"0"),"T",vc(n.getUTCHours(),2,"0"),vc(n.getUTCMinutes(),2,"0"),vc(n.getUTCSeconds(),2,"0"),t?"Z":""].join("")},Fc=function(e){var t=/^(\d{4})(\d{2})(\d{2})(T(\d{2})(\d{2})(\d{2})Z?)?$/.exec(e);if(!t)throw new Error("Invalid UNTIL value: ".concat(e));return new Date(Date.UTC(parseInt(t[1],10),parseInt(t[2],10)-1,parseInt(t[3],10),parseInt(t[5],10)||0,parseInt(t[6],10)||0,parseInt(t[7],10)||0))},qc=function(e,t){return e.toLocaleString("sv-SE",{timeZone:t}).replace(" ","T")+"Z"},Vc=function(){function e(e,t){this.minDate=null,this.maxDate=null,this._result=[],this.total=0,this.method=e,this.args=t,"between"===e?(this.maxDate=t.inc?t.before:new Date(t.before.getTime()-1),this.minDate=t.inc?t.after:new Date(t.after.getTime()+1)):"before"===e?this.maxDate=t.inc?t.dt:new Date(t.dt.getTime()-1):"after"===e&&(this.minDate=t.inc?t.dt:new Date(t.dt.getTime()+1))}return e.prototype.accept=function(e){++this.total;var t=this.minDate&&e<this.minDate,n=this.maxDate&&e>this.maxDate;if("between"===this.method){if(t)return!0;if(n)return!1}else if("before"===this.method){if(n)return!1}else if("after"===this.method)return!!t||(this.add(e),!1);return this.add(e)},e.prototype.add=function(e){return this._result.push(e),!0},e.prototype.getValue=function(){var e=this._result;switch(this.method){case"all":case"between":return e;default:return e.length?e[e.length-1]:null}},e.prototype.clone=function(){return new e(this.method,this.args)},e}(),Yc=function(e){function t(t,n,r){var o=e.call(this,t,n)||this;return o.iterator=r,o}return We(t,e),t.prototype.add=function(e){return!!this.iterator(e,this._result.length)&&(this._result.push(e),!0)},t}(Vc),Gc={dayNames:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],monthNames:["January","February","March","April","May","June","July","August","September","October","November","December"],tokens:{SKIP:/^[ \r\n\t]+|^\.$/,number:/^[1-9][0-9]*/,numberAsText:/^(one|two|three)/i,every:/^every/i,"day(s)":/^days?/i,"weekday(s)":/^weekdays?/i,"week(s)":/^weeks?/i,"hour(s)":/^hours?/i,"minute(s)":/^minutes?/i,"month(s)":/^months?/i,"year(s)":/^years?/i,on:/^(on|in)/i,at:/^(at)/i,the:/^the/i,first:/^first/i,second:/^second/i,third:/^third/i,nth:/^([1-9][0-9]*)(\.|th|nd|rd|st)/i,last:/^last/i,for:/^for/i,"time(s)":/^times?/i,until:/^(un)?til/i,monday:/^mo(n(day)?)?/i,tuesday:/^tu(e(s(day)?)?)?/i,wednesday:/^we(d(n(esday)?)?)?/i,thursday:/^th(u(r(sday)?)?)?/i,friday:/^fr(i(day)?)?/i,saturday:/^sa(t(urday)?)?/i,sunday:/^su(n(day)?)?/i,january:/^jan(uary)?/i,february:/^feb(ruary)?/i,march:/^mar(ch)?/i,april:/^apr(il)?/i,may:/^may/i,june:/^june?/i,july:/^july?/i,august:/^aug(ust)?/i,september:/^sep(t(ember)?)?/i,october:/^oct(ober)?/i,november:/^nov(ember)?/i,december:/^dec(ember)?/i,comma:/^(,\s*|(and|or)\s*)+/i}},Zc=function(e,t){return-1!==e.indexOf(t)},Kc=function(e){return e.toString()},Xc=function(e,t,n){return"".concat(t," ").concat(n,", ").concat(e)},Jc=function(){function e(e,t,n,r){if(void 0===t&&(t=Kc),void 0===n&&(n=Gc),void 0===r&&(r=Xc),this.text=[],this.language=n||Gc,this.gettext=t,this.dateFormatter=r,this.rrule=e,this.options=e.options,this.origOptions=e.origOptions,this.origOptions.bymonthday){var o=[].concat(this.options.bymonthday),i=[].concat(this.options.bynmonthday);o.sort((function(e,t){return e-t})),i.sort((function(e,t){return t-e})),this.bymonthday=o.concat(i),this.bymonthday.length||(this.bymonthday=null)}if(cc(this.origOptions.byweekday)){var s=pc(this.origOptions.byweekday)?this.origOptions.byweekday:[this.origOptions.byweekday],a=String(s);this.byweekday={allWeeks:s.filter((function(e){return!e.n})),someWeeks:s.filter((function(e){return Boolean(e.n)})),isWeekdays:-1!==a.indexOf("MO")&&-1!==a.indexOf("TU")&&-1!==a.indexOf("WE")&&-1!==a.indexOf("TH")&&-1!==a.indexOf("FR")&&-1===a.indexOf("SA")&&-1===a.indexOf("SU"),isEveryDay:-1!==a.indexOf("MO")&&-1!==a.indexOf("TU")&&-1!==a.indexOf("WE")&&-1!==a.indexOf("TH")&&-1!==a.indexOf("FR")&&-1!==a.indexOf("SA")&&-1!==a.indexOf("SU")};var l=function(e,t){return e.weekday-t.weekday};this.byweekday.allWeeks.sort(l),this.byweekday.someWeeks.sort(l),this.byweekday.allWeeks.length||(this.byweekday.allWeeks=null),this.byweekday.someWeeks.length||(this.byweekday.someWeeks=null)}else this.byweekday=null}return e.isFullyConvertible=function(t){if(!(t.options.freq in e.IMPLEMENTED))return!1;if(t.origOptions.until&&t.origOptions.count)return!1;for(var n in t.origOptions){if(Zc(["dtstart","wkst","freq"],n))return!0;if(!Zc(e.IMPLEMENTED[t.options.freq],n))return!1}return!0},e.prototype.isFullyConvertible=function(){return e.isFullyConvertible(this.rrule)},e.prototype.toString=function(){var t=this.gettext;if(!(this.options.freq in e.IMPLEMENTED))return t("RRule error: Unable to fully convert this rrule to text");if(this.text=[t("every")],this[Yd.FREQUENCIES[this.options.freq]](),this.options.until){this.add(t("until"));var n=this.options.until;this.add(this.dateFormatter(n.getUTCFullYear(),this.language.monthNames[n.getUTCMonth()],n.getUTCDate()))}else this.options.count&&this.add(t("for")).add(this.options.count.toString()).add(this.plural(this.options.count)?t("times"):t("time"));return this.isFullyConvertible()||this.add(t("(~ approximate)")),this.text.join("")},e.prototype.HOURLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("hours"):e("hour"))},e.prototype.MINUTELY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("minutes"):e("minute"))},e.prototype.DAILY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()),this.byweekday&&this.byweekday.isWeekdays?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(this.plural(this.options.interval)?e("days"):e("day")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday?this._byweekday():this.origOptions.byhour&&this._byhour()},e.prototype.WEEKLY=function(){var e=this.gettext;1!==this.options.interval&&this.add(this.options.interval.toString()).add(this.plural(this.options.interval)?e("weeks"):e("week")),this.byweekday&&this.byweekday.isWeekdays?1===this.options.interval?this.add(this.plural(this.options.interval)?e("weekdays"):e("weekday")):this.add(e("on")).add(e("weekdays")):this.byweekday&&this.byweekday.isEveryDay?this.add(this.plural(this.options.interval)?e("days"):e("day")):(1===this.options.interval&&this.add(e("week")),this.origOptions.bymonth&&(this.add(e("in")),this._bymonth()),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday())},e.prototype.MONTHLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()).add(e("months")),this.plural(this.options.interval)&&this.add(e("in"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("months"):e("month"))),this.bymonthday?this._bymonthday():this.byweekday&&this.byweekday.isWeekdays?this.add(e("on")).add(e("weekdays")):this.byweekday&&this._byweekday()},e.prototype.YEARLY=function(){var e=this.gettext;this.origOptions.bymonth?(1!==this.options.interval&&(this.add(this.options.interval.toString()),this.add(e("years"))),this._bymonth()):(1!==this.options.interval&&this.add(this.options.interval.toString()),this.add(this.plural(this.options.interval)?e("years"):e("year"))),this.bymonthday?this._bymonthday():this.byweekday&&this._byweekday(),this.options.byyearday&&this.add(e("on the")).add(this.list(this.options.byyearday,this.nth,e("and"))).add(e("day")),this.options.byweekno&&this.add(e("in")).add(this.plural(this.options.byweekno.length)?e("weeks"):e("week")).add(this.list(this.options.byweekno,void 0,e("and")))},e.prototype._bymonthday=function(){var e=this.gettext;this.byweekday&&this.byweekday.allWeeks?this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext,e("or"))).add(e("the")).add(this.list(this.bymonthday,this.nth,e("or"))):this.add(e("on the")).add(this.list(this.bymonthday,this.nth,e("and")))},e.prototype._byweekday=function(){var e=this.gettext;this.byweekday.allWeeks&&!this.byweekday.isWeekdays&&this.add(e("on")).add(this.list(this.byweekday.allWeeks,this.weekdaytext)),this.byweekday.someWeeks&&(this.byweekday.allWeeks&&this.add(e("and")),this.add(e("on the")).add(this.list(this.byweekday.someWeeks,this.weekdaytext,e("and"))))},e.prototype._byhour=function(){var e=this.gettext;this.add(e("at")).add(this.list(this.origOptions.byhour,void 0,e("and")))},e.prototype._bymonth=function(){this.add(this.list(this.options.bymonth,this.monthtext,this.gettext("and")))},e.prototype.nth=function(e){var t;e=parseInt(e.toString(),10);var n=this.gettext;if(-1===e)return n("last");var r=Math.abs(e);switch(r){case 1:case 21:case 31:t=r+n("st");break;case 2:case 22:t=r+n("nd");break;case 3:case 23:t=r+n("rd");break;default:t=r+n("th")}return e<0?t+" "+n("last"):t},e.prototype.monthtext=function(e){return this.language.monthNames[e-1]},e.prototype.weekdaytext=function(e){var t=dc(e)?(e+1)%7:e.getJsWeekday();return(e.n?this.nth(e.n)+" ":"")+this.language.dayNames[t]},e.prototype.plural=function(e){return e%100!=1},e.prototype.add=function(e){return this.text.push(" "),this.text.push(e),this},e.prototype.list=function(e,t,n,r){var o=this;void 0===r&&(r=","),pc(e)||(e=[e]);t=t||function(e){return e.toString()};var i=function(e){return t&&t.call(o,e)};return n?function(e,t,n){for(var r="",o=0;o<e.length;o++)0!==o&&(o===e.length-1?r+=" "+n+" ":r+=t+" "),r+=e[o];return r}(e.map(i),r,n):e.map(i).join(r+" ")},e}(),Qc=function(){function e(e){this.done=!0,this.rules=e}return e.prototype.start=function(e){return this.text=e,this.done=!1,this.nextSymbol()},e.prototype.isDone=function(){return this.done&&null===this.symbol},e.prototype.nextSymbol=function(){var e,t;this.symbol=null,this.value=null;do{if(this.done)return!1;for(var n in e=null,this.rules){var r=this.rules[n].exec(this.text);r&&(null===e||r[0].length>e[0].length)&&(e=r,t=n)}if(null!=e&&(this.text=this.text.substr(e[0].length),""===this.text&&(this.done=!0)),null==e)return this.done=!0,this.symbol=null,void(this.value=null)}while("SKIP"===t);return this.symbol=t,this.value=e,!0},e.prototype.accept=function(e){if(this.symbol===e){if(this.value){var t=this.value;return this.nextSymbol(),t}return this.nextSymbol(),!0}return!1},e.prototype.acceptNumber=function(){return this.accept("number")},e.prototype.expect=function(e){if(this.accept(e))return!0;throw new Error("expected "+e+" but found "+this.symbol)},e}();function ed(e,t){void 0===t&&(t=Gc);var n={},r=new Qc(t.tokens);return r.start(e)?(function(){r.expect("every");var e=r.acceptNumber();e&&(n.interval=parseInt(e[0],10));if(r.isDone())throw new Error("Unexpected end");switch(r.symbol){case"day(s)":n.freq=Yd.DAILY,r.nextSymbol()&&(!function(){if(!r.accept("at"))return;do{var e=r.acceptNumber();if(!e)throw new Error("Unexpected symbol "+r.symbol+", expected hour");for(n.byhour=[parseInt(e[0],10)];r.accept("comma");){if(!(e=r.acceptNumber()))throw new Error("Unexpected symbol "+r.symbol+"; expected hour");n.byhour.push(parseInt(e[0],10))}}while(r.accept("comma")||r.accept("at"))}(),l());break;case"weekday(s)":n.freq=Yd.WEEKLY,n.byweekday=[Yd.MO,Yd.TU,Yd.WE,Yd.TH,Yd.FR],r.nextSymbol(),l();break;case"week(s)":n.freq=Yd.WEEKLY,r.nextSymbol()&&(o(),l());break;case"hour(s)":n.freq=Yd.HOURLY,r.nextSymbol()&&(o(),l());break;case"minute(s)":n.freq=Yd.MINUTELY,r.nextSymbol()&&(o(),l());break;case"month(s)":n.freq=Yd.MONTHLY,r.nextSymbol()&&(o(),l());break;case"year(s)":n.freq=Yd.YEARLY,r.nextSymbol()&&(o(),l());break;case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":n.freq=Yd.WEEKLY;var t=r.symbol.substr(0,2).toUpperCase();if(n.byweekday=[Yd[t]],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw new Error("Unexpected end");var u=s();if(!u)throw new Error("Unexpected symbol "+r.symbol+", expected weekday");n.byweekday.push(Yd[u]),r.nextSymbol()}!function(){r.accept("on"),r.accept("the");var e=a();if(!e)return;n.bymonthday=[e],r.nextSymbol();for(;r.accept("comma");){if(!(e=a()))throw new Error("Unexpected symbol "+r.symbol+"; expected monthday");n.bymonthday.push(e),r.nextSymbol()}}(),l();break;case"january":case"february":case"march":case"april":case"may":case"june":case"july":case"august":case"september":case"october":case"november":case"december":if(n.freq=Yd.YEARLY,n.bymonth=[i()],!r.nextSymbol())return;for(;r.accept("comma");){if(r.isDone())throw new Error("Unexpected end");var c=i();if(!c)throw new Error("Unexpected symbol "+r.symbol+", expected month");n.bymonth.push(c),r.nextSymbol()}o(),l();break;default:throw new Error("Unknown symbol")}}(),n):null;function o(){var e=r.accept("on"),t=r.accept("the");if(e||t)do{var o=a(),l=s(),u=i();if(o)l?(r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(Yd[l].nth(o))):(n.bymonthday||(n.bymonthday=[]),n.bymonthday.push(o),r.accept("day(s)"));else if(l)r.nextSymbol(),n.byweekday||(n.byweekday=[]),n.byweekday.push(Yd[l]);else if("weekday(s)"===r.symbol)r.nextSymbol(),n.byweekday||(n.byweekday=[Yd.MO,Yd.TU,Yd.WE,Yd.TH,Yd.FR]);else if("week(s)"===r.symbol){r.nextSymbol();var c=r.acceptNumber();if(!c)throw new Error("Unexpected symbol "+r.symbol+", expected week number");for(n.byweekno=[parseInt(c[0],10)];r.accept("comma");){if(!(c=r.acceptNumber()))throw new Error("Unexpected symbol "+r.symbol+"; expected monthday");n.byweekno.push(parseInt(c[0],10))}}else{if(!u)return;r.nextSymbol(),n.bymonth||(n.bymonth=[]),n.bymonth.push(u)}}while(r.accept("comma")||r.accept("the")||r.accept("on"))}function i(){switch(r.symbol){case"january":return 1;case"february":return 2;case"march":return 3;case"april":return 4;case"may":return 5;case"june":return 6;case"july":return 7;case"august":return 8;case"september":return 9;case"october":return 10;case"november":return 11;case"december":return 12;default:return!1}}function s(){switch(r.symbol){case"monday":case"tuesday":case"wednesday":case"thursday":case"friday":case"saturday":case"sunday":return r.symbol.substr(0,2).toUpperCase();default:return!1}}function a(){switch(r.symbol){case"last":return r.nextSymbol(),-1;case"first":return r.nextSymbol(),1;case"second":return r.nextSymbol(),r.accept("last")?-2:2;case"third":return r.nextSymbol(),r.accept("last")?-3:3;case"nth":var e=parseInt(r.value[1],10);if(e<-366||e>366)throw new Error("Nth out of range: "+e);return r.nextSymbol(),r.accept("last")?-e:e;default:return!1}}function l(){if("until"===r.symbol){var e=Date.parse(r.text);if(!e)throw new Error("Cannot parse until date:"+r.text);n.until=new Date(e)}else r.accept("for")&&(n.count=parseInt(r.value[0],10),r.expect("number"))}}function td(e){return e<mc.HOURLY}!function(e){e[e.YEARLY=0]="YEARLY",e[e.MONTHLY=1]="MONTHLY",e[e.WEEKLY=2]="WEEKLY",e[e.DAILY=3]="DAILY",e[e.HOURLY=4]="HOURLY",e[e.MINUTELY=5]="MINUTELY",e[e.SECONDLY=6]="SECONDLY"}(mc||(mc={}));var nd=function(e,t){return void 0===t&&(t=Gc),new Yd(ed(e,t)||void 0)},rd=["count","until","interval","byweekday","bymonthday","bymonth"];Jc.IMPLEMENTED=[],Jc.IMPLEMENTED[mc.HOURLY]=rd,Jc.IMPLEMENTED[mc.MINUTELY]=rd,Jc.IMPLEMENTED[mc.DAILY]=["byhour"].concat(rd),Jc.IMPLEMENTED[mc.WEEKLY]=rd,Jc.IMPLEMENTED[mc.MONTHLY]=rd,Jc.IMPLEMENTED[mc.YEARLY]=["byweekno","byyearday"].concat(rd);var od=Jc.isFullyConvertible,id=function(){function e(e,t,n,r){this.hour=e,this.minute=t,this.second=n,this.millisecond=r||0}return e.prototype.getHours=function(){return this.hour},e.prototype.getMinutes=function(){return this.minute},e.prototype.getSeconds=function(){return this.second},e.prototype.getMilliseconds=function(){return this.millisecond},e.prototype.getTime=function(){return 1e3*(60*this.hour*60+60*this.minute+this.second)+this.millisecond},e}(),sd=function(e){function t(t,n,r,o,i,s,a){var l=e.call(this,o,i,s,a)||this;return l.year=t,l.month=n,l.day=r,l}return We(t,e),t.fromDate=function(e){return new this(e.getUTCFullYear(),e.getUTCMonth()+1,e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.valueOf()%1e3)},t.prototype.getWeekday=function(){return Lc(new Date(this.getTime()))},t.prototype.getTime=function(){return new Date(Date.UTC(this.year,this.month-1,this.day,this.hour,this.minute,this.second,this.millisecond)).getTime()},t.prototype.getDay=function(){return this.day},t.prototype.getMonth=function(){return this.month},t.prototype.getYear=function(){return this.year},t.prototype.addYears=function(e){this.year+=e},t.prototype.addMonths=function(e){if(this.month+=e,this.month>12){var t=Math.floor(this.month/12),n=bc(this.month,12);this.month=n,this.year+=t,0===this.month&&(this.month=12,--this.year)}},t.prototype.addWeekly=function(e,t){t>this.getWeekday()?this.day+=-(this.getWeekday()+1+(6-t))+7*e:this.day+=-(this.getWeekday()-t)+7*e,this.fixDay()},t.prototype.addDaily=function(e){this.day+=e,this.fixDay()},t.prototype.addHours=function(e,t,n){for(t&&(this.hour+=Math.floor((23-this.hour)/e)*e);;){this.hour+=e;var r=_c(this.hour,24),o=r.div,i=r.mod;if(o&&(this.hour=i,this.addDaily(o)),wc(n)||kc(n,this.hour))break}},t.prototype.addMinutes=function(e,t,n,r){for(t&&(this.minute+=Math.floor((1439-(60*this.hour+this.minute))/e)*e);;){this.minute+=e;var o=_c(this.minute,60),i=o.div,s=o.mod;if(i&&(this.minute=s,this.addHours(i,!1,n)),(wc(n)||kc(n,this.hour))&&(wc(r)||kc(r,this.minute)))break}},t.prototype.addSeconds=function(e,t,n,r,o){for(t&&(this.second+=Math.floor((86399-(3600*this.hour+60*this.minute+this.second))/e)*e);;){this.second+=e;var i=_c(this.second,60),s=i.div,a=i.mod;if(s&&(this.second=a,this.addMinutes(s,!1,n,r)),(wc(n)||kc(n,this.hour))&&(wc(r)||kc(r,this.minute))&&(wc(o)||kc(o,this.second)))break}},t.prototype.fixDay=function(){if(!(this.day<=28)){var e=Hc(this.year,this.month-1)[1];if(!(this.day<=e))for(;this.day>e;){if(this.day-=e,++this.month,13===this.month&&(this.month=1,++this.year,this.year>Rc))return;e=Hc(this.year,this.month-1)[1]}}},t.prototype.add=function(e,t){var n=e.freq,r=e.interval,o=e.wkst,i=e.byhour,s=e.byminute,a=e.bysecond;switch(n){case mc.YEARLY:return this.addYears(r);case mc.MONTHLY:return this.addMonths(r);case mc.WEEKLY:return this.addWeekly(r,o);case mc.DAILY:return this.addDaily(r);case mc.HOURLY:return this.addHours(r,t,i);case mc.MINUTELY:return this.addMinutes(r,t,i,s);case mc.SECONDLY:return this.addSeconds(r,t,i,s,a)}},t}(id);function ad(e){for(var t=[],n=0,r=Object.keys(e);n<r.length;n++){var o=r[n];kc(Vd,o)||t.push(o),Mc(e[o])&&!Ic(e[o])&&t.push(o)}if(t.length)throw new Error("Invalid options: "+t.join(", "));return Ue({},e)}function ld(e){var t=Ue(Ue({},qd),ad(e));if(cc(t.byeaster)&&(t.freq=Yd.YEARLY),!cc(t.freq)||!Yd.FREQUENCIES[t.freq])throw new Error("Invalid frequency: ".concat(t.freq," ").concat(e.freq));if(t.dtstart||(t.dtstart=new Date((new Date).setMilliseconds(0))),cc(t.wkst)?dc(t.wkst)||(t.wkst=t.wkst.weekday):t.wkst=Yd.MO.weekday,cc(t.bysetpos)){dc(t.bysetpos)&&(t.bysetpos=[t.bysetpos]);for(var n=0;n<t.bysetpos.length;n++){if(0===(i=t.bysetpos[n])||!(i>=-366&&i<=366))throw new Error("bysetpos must be between 1 and 366, or between -366 and -1")}}if(!(Boolean(t.byweekno)||Cc(t.byweekno)||Cc(t.byyearday)||Boolean(t.bymonthday)||Cc(t.bymonthday)||cc(t.byweekday)||cc(t.byeaster)))switch(t.freq){case Yd.YEARLY:t.bymonth||(t.bymonth=t.dtstart.getUTCMonth()+1),t.bymonthday=t.dtstart.getUTCDate();break;case Yd.MONTHLY:t.bymonthday=t.dtstart.getUTCDate();break;case Yd.WEEKLY:t.byweekday=[Lc(t.dtstart)]}if(cc(t.bymonth)&&!pc(t.bymonth)&&(t.bymonth=[t.bymonth]),cc(t.byyearday)&&!pc(t.byyearday)&&dc(t.byyearday)&&(t.byyearday=[t.byyearday]),cc(t.bymonthday))if(pc(t.bymonthday)){var r=[],o=[];for(n=0;n<t.bymonthday.length;n++){var i;(i=t.bymonthday[n])>0?r.push(i):i<0&&o.push(i)}t.bymonthday=r,t.bynmonthday=o}else t.bymonthday<0?(t.bynmonthday=[t.bymonthday],t.bymonthday=[]):(t.bynmonthday=[],t.bymonthday=[t.bymonthday]);else t.bymonthday=[],t.bynmonthday=[];if(cc(t.byweekno)&&!pc(t.byweekno)&&(t.byweekno=[t.byweekno]),cc(t.byweekday))if(dc(t.byweekday))t.byweekday=[t.byweekday],t.bynweekday=null;else if(fc(t.byweekday))t.byweekday=[uc.fromStr(t.byweekday).weekday],t.bynweekday=null;else if(t.byweekday instanceof uc)!t.byweekday.n||t.freq>Yd.MONTHLY?(t.byweekday=[t.byweekday.weekday],t.bynweekday=null):(t.bynweekday=[[t.byweekday.weekday,t.byweekday.n]],t.byweekday=null);else{var s=[],a=[];for(n=0;n<t.byweekday.length;n++){var l=t.byweekday[n];dc(l)?s.push(l):fc(l)?s.push(uc.fromStr(l).weekday):!l.n||t.freq>Yd.MONTHLY?s.push(l.weekday):a.push([l.weekday,l.n])}t.byweekday=Cc(s)?s:null,t.bynweekday=Cc(a)?a:null}else t.bynweekday=null;return cc(t.byhour)?dc(t.byhour)&&(t.byhour=[t.byhour]):t.byhour=t.freq<Yd.HOURLY?[t.dtstart.getUTCHours()]:null,cc(t.byminute)?dc(t.byminute)&&(t.byminute=[t.byminute]):t.byminute=t.freq<Yd.MINUTELY?[t.dtstart.getUTCMinutes()]:null,cc(t.bysecond)?dc(t.bysecond)&&(t.bysecond=[t.bysecond]):t.bysecond=t.freq<Yd.SECONDLY?[t.dtstart.getUTCSeconds()]:null,{parsedOptions:t}}function ud(e){var t=e.split("\n").map(dd).filter((function(e){return null!==e}));return Ue(Ue({},t[0]),t[1])}function cd(e){var t={},n=/DTSTART(?:;TZID=([^:=]+?))?(?::|=)([^;\s]+)/i.exec(e);if(!n)return t;var r=n[1],o=n[2];return r&&(t.tzid=r),t.dtstart=Fc(o),t}function dd(e){if(!(e=e.replace(/^\s+|\s+$/,"")).length)return null;var t=/^([A-Z]+?)[:;]/.exec(e.toUpperCase());if(!t)return fd(e);var n=t[1];switch(n.toUpperCase()){case"RRULE":case"EXRULE":return fd(e);case"DTSTART":return cd(e);default:throw new Error("Unsupported RFC prop ".concat(n," in ").concat(e))}}function fd(e){var t=cd(e.replace(/^RRULE:/i,""));return e.replace(/^(?:RRULE|EXRULE):/i,"").split(";").forEach((function(n){var r=n.split("="),o=r[0],i=r[1];switch(o.toUpperCase()){case"FREQ":t.freq=mc[i.toUpperCase()];break;case"WKST":t.wkst=Fd[i.toUpperCase()];break;case"COUNT":case"INTERVAL":case"BYSETPOS":case"BYMONTH":case"BYMONTHDAY":case"BYYEARDAY":case"BYWEEKNO":case"BYHOUR":case"BYMINUTE":case"BYSECOND":var s=function(e){if(-1!==e.indexOf(",")){return e.split(",").map(pd)}return pd(e)}(i),a=o.toLowerCase();t[a]=s;break;case"BYWEEKDAY":case"BYDAY":t.byweekday=function(e){var t=e.split(",");return t.map((function(e){if(2===e.length)return Fd[e];var t=e.match(/^([+-]?\d{1,2})([A-Z]{2})$/);if(!t||t.length<3)throw new SyntaxError("Invalid weekday string: ".concat(e));var n=Number(t[1]),r=t[2],o=Fd[r].weekday;return new uc(o,n)}))}(i);break;case"DTSTART":case"TZID":var l=cd(e);t.tzid=l.tzid,t.dtstart=l.dtstart;break;case"UNTIL":t.until=Fc(i);break;case"BYEASTER":t.byeaster=Number(i);break;default:throw new Error("Unknown RRULE property '"+o+"'")}})),t}function pd(e){return/^[+-]?\d+$/.test(e)?Number(e):e}var hd=function(){function e(e,t){if(isNaN(e.getTime()))throw new RangeError("Invalid date passed to DateWithZone");this.date=e,this.tzid=t}return Object.defineProperty(e.prototype,"isUTC",{get:function(){return!this.tzid||"UTC"===this.tzid.toUpperCase()},enumerable:!1,configurable:!0}),e.prototype.toString=function(){var e=Bc(this.date.getTime(),this.isUTC);return this.isUTC?":".concat(e):";TZID=".concat(this.tzid,":").concat(e)},e.prototype.getTime=function(){return this.date.getTime()},e.prototype.rezonedDate=function(){return this.isUTC?this.date:function(e,t){var n=Intl.DateTimeFormat().resolvedOptions().timeZone,r=new Date(qc(e,n)),o=new Date(qc(e,null!=t?t:"UTC")).getTime()-r.getTime();return new Date(e.getTime()-o)}(this.date,this.tzid)},e}();function gd(e){for(var t,n=[],r="",o=Object.keys(e),i=Object.keys(qd),s=0;s<o.length;s++)if("tzid"!==o[s]&&kc(i,o[s])){var a=o[s].toUpperCase(),l=e[o[s]],u="";if(cc(l)&&(!pc(l)||l.length)){switch(a){case"FREQ":u=Yd.FREQUENCIES[e.freq];break;case"WKST":u=dc(l)?new uc(l).toString():l.toString();break;case"BYWEEKDAY":a="BYDAY",u=(t=l,pc(t)?t:[t]).map((function(e){return e instanceof uc?e:pc(e)?new uc(e[0],e[1]):new uc(e)})).toString();break;case"DTSTART":r=vd(l,e.tzid);break;case"UNTIL":u=Bc(l,!e.tzid);break;default:if(pc(l)){for(var c=[],d=0;d<l.length;d++)c[d]=String(l[d]);u=c.toString()}else u=String(l)}u&&n.push([a,u])}}var f=n.map((function(e){var t=e[0],n=e[1];return"".concat(t,"=").concat(n.toString())})).join(";"),p="";return""!==f&&(p="RRULE:".concat(f)),[r,p].filter((function(e){return!!e})).join("\n")}function vd(e,t){return e?"DTSTART"+new hd(new Date(e),t).toString():""}function md(e,t){return Array.isArray(e)?!!Array.isArray(t)&&(e.length===t.length&&e.every((function(e,n){return e.getTime()===t[n].getTime()}))):e instanceof Date?t instanceof Date&&e.getTime()===t.getTime():e===t}var yd=function(){function e(){this.all=!1,this.before=[],this.after=[],this.between=[]}return e.prototype._cacheAdd=function(e,t,n){t&&(t=t instanceof Date?Uc(t):zc(t)),"all"===e?this.all=t:(n._value=t,this[e].push(n))},e.prototype._cacheGet=function(e,t){var n=!1,r=t?Object.keys(t):[],o=function(e){for(var n=0;n<r.length;n++){var o=r[n];if(!md(t[o],e[o]))return!0}return!1},i=this[e];if("all"===e)n=this.all;else if(pc(i))for(var s=0;s<i.length;s++){var a=i[s];if(!r.length||!o(a)){n=a._value;break}}if(!n&&this.all){var l=new Vc(e,t);for(s=0;s<this.all.length&&l.accept(this.all[s]);s++);n=l.getValue(),this._cacheAdd(e,n,t)}return pc(n)?zc(n):n instanceof Date?Uc(n):n},e}(),bd=ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze([],gc(1,31),!0),gc(2,28),!0),gc(3,31),!0),gc(4,30),!0),gc(5,31),!0),gc(6,30),!0),gc(7,31),!0),gc(8,31),!0),gc(9,30),!0),gc(10,31),!0),gc(11,30),!0),gc(12,31),!0),gc(1,7),!0),_d=ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze([],gc(1,31),!0),gc(2,29),!0),gc(3,31),!0),gc(4,30),!0),gc(5,31),!0),gc(6,30),!0),gc(7,31),!0),gc(8,31),!0),gc(9,30),!0),gc(10,31),!0),gc(11,30),!0),gc(12,31),!0),gc(1,7),!0),wd=hc(1,29),Cd=hc(1,30),kd=hc(1,31),Sd=hc(1,32),Ed=ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze([],Sd,!0),Cd,!0),Sd,!0),kd,!0),Sd,!0),kd,!0),Sd,!0),Sd,!0),kd,!0),Sd,!0),kd,!0),Sd,!0),Sd.slice(0,7),!0),xd=ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze([],Sd,!0),wd,!0),Sd,!0),kd,!0),Sd,!0),kd,!0),Sd,!0),Sd,!0),kd,!0),Sd,!0),kd,!0),Sd,!0),Sd.slice(0,7),!0),Rd=hc(-28,0),Dd=hc(-29,0),Td=hc(-30,0),$d=hc(-31,0),Md=ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze([],$d,!0),Dd,!0),$d,!0),Td,!0),$d,!0),Td,!0),$d,!0),$d,!0),Td,!0),$d,!0),Td,!0),$d,!0),$d.slice(0,7),!0),Id=ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze(ze([],$d,!0),Rd,!0),$d,!0),Td,!0),$d,!0),Td,!0),$d,!0),$d,!0),Td,!0),$d,!0),Td,!0),$d,!0),$d.slice(0,7),!0),Ad=[0,31,60,91,121,152,182,213,244,274,305,335,366],Od=[0,31,59,90,120,151,181,212,243,273,304,334,365],Nd=function(){for(var e=[],t=0;t<55;t++)e=e.concat(hc(7));return e}();function Pd(e,t){var n,r,o=Sc(e,1,1),i=$c(e)?366:365,s=$c(e+1)?366:365,a=Oc(o),l=Lc(o),u=Ue(Ue({yearlen:i,nextyearlen:s,yearordinal:a,yearweekday:l},function(e){var t=$c(e)?366:365,n=Sc(e,1,1),r=Lc(n);if(365===t)return{mmask:bd,mdaymask:xd,nmdaymask:Id,wdaymask:Nd.slice(r),mrange:Od};return{mmask:_d,mdaymask:Ed,nmdaymask:Md,wdaymask:Nd.slice(r),mrange:Ad}}(e)),{wnomask:null});if(wc(t.byweekno))return u;u.wnomask=gc(0,i+7);var c=n=bc(7-l+t.wkst,7);c>=4?(c=0,r=u.yearlen+bc(l-t.wkst,7)):r=i-c;for(var d=Math.floor(r/7),f=bc(r,7),p=Math.floor(d+f/4),h=0;h<t.byweekno.length;h++){var g=t.byweekno[h];if(g<0&&(g+=p+1),g>0&&g<=p){var v=void 0;g>1?(v=c+7*(g-1),c!==n&&(v-=7-n)):v=c;for(var m=0;m<7&&(u.wnomask[v]=1,v++,u.wdaymask[v]!==t.wkst);m++);}}if(kc(t.byweekno,1)){v=c+7*p;if(c!==n&&(v-=7-n),v<i)for(h=0;h<7&&(u.wnomask[v]=1,v+=1,u.wdaymask[v]!==t.wkst);h++);}if(c){var y=void 0;if(kc(t.byweekno,-1))y=-1;else{var b=Lc(Sc(e-1,1,1)),_=bc(7-b.valueOf()+t.wkst,7),w=$c(e-1)?366:365,C=void 0;_>=4?(_=0,C=w+bc(b-t.wkst,7)):C=i-c,y=Math.floor(52+bc(C,7)/4)}if(kc(t.byweekno,y))for(v=0;v<c;v++)u.wnomask[v]=1}return u}var Ld=function(){function e(e){this.options=e}return e.prototype.rebuild=function(e,t){var n=this.options;if(e!==this.lastyear&&(this.yearinfo=Pd(e,n)),Cc(n.bynweekday)&&(t!==this.lastmonth||e!==this.lastyear)){var r=this.yearinfo,o=r.yearlen,i=r.mrange,s=r.wdaymask;this.monthinfo=function(e,t,n,r,o,i){var s={lastyear:e,lastmonth:t,nwdaymask:[]},a=[];if(i.freq===Yd.YEARLY)if(wc(i.bymonth))a=[[0,n]];else for(var l=0;l<i.bymonth.length;l++)t=i.bymonth[l],a.push(r.slice(t-1,t+1));else i.freq===Yd.MONTHLY&&(a=[r.slice(t-1,t+1)]);if(wc(a))return s;for(s.nwdaymask=gc(0,n),l=0;l<a.length;l++)for(var u=a[l],c=u[0],d=u[1]-1,f=0;f<i.bynweekday.length;f++){var p=void 0,h=i.bynweekday[f],g=h[0],v=h[1];v<0?(p=d+7*(v+1),p-=bc(o[p]-g,7)):(p=c+7*(v-1),p+=bc(7-o[p]+g,7)),c<=p&&p<=d&&(s.nwdaymask[p]=1)}return s}(e,t,o,i,s,n)}cc(n.byeaster)&&(this.eastermask=function(e,t){void 0===t&&(t=0);var n=e%19,r=Math.floor(e/100),o=e%100,i=Math.floor(r/4),s=r%4,a=Math.floor((r+8)/25),l=Math.floor((r-a+1)/3),u=Math.floor(19*n+r-i-l+15)%30,c=Math.floor(o/4),d=o%4,f=Math.floor(32+2*s+2*c-u-d)%7,p=Math.floor((n+11*u+22*f)/451),h=Math.floor((u+f-7*p+114)/31),g=(u+f-7*p+114)%31+1,v=Date.UTC(e,h-1,g+t),m=Date.UTC(e,0,1);return[Math.ceil((v-m)/864e5)]}(e,n.byeaster))},Object.defineProperty(e.prototype,"lastyear",{get:function(){return this.monthinfo?this.monthinfo.lastyear:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"lastmonth",{get:function(){return this.monthinfo?this.monthinfo.lastmonth:null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearlen",{get:function(){return this.yearinfo.yearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"yearordinal",{get:function(){return this.yearinfo.yearordinal},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mrange",{get:function(){return this.yearinfo.mrange},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wdaymask",{get:function(){return this.yearinfo.wdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mmask",{get:function(){return this.yearinfo.mmask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"wnomask",{get:function(){return this.yearinfo.wnomask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nwdaymask",{get:function(){return this.monthinfo?this.monthinfo.nwdaymask:[]},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextyearlen",{get:function(){return this.yearinfo.nextyearlen},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"mdaymask",{get:function(){return this.yearinfo.mdaymask},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nmdaymask",{get:function(){return this.yearinfo.nmdaymask},enumerable:!1,configurable:!0}),e.prototype.ydayset=function(){return[hc(this.yearlen),0,this.yearlen]},e.prototype.mdayset=function(e,t){for(var n=this.mrange[t-1],r=this.mrange[t],o=gc(null,this.yearlen),i=n;i<r;i++)o[i]=i;return[o,n,r]},e.prototype.wdayset=function(e,t,n){for(var r=gc(null,this.yearlen+7),o=Oc(Sc(e,t,n))-this.yearordinal,i=o,s=0;s<7&&(r[o]=o,++o,this.wdaymask[o]!==this.options.wkst);s++);return[r,i,o]},e.prototype.ddayset=function(e,t,n){var r=gc(null,this.yearlen),o=Oc(Sc(e,t,n))-this.yearordinal;return r[o]=o,[r,o,o+1]},e.prototype.htimeset=function(e,t,n,r){var o=this,i=[];return this.options.byminute.forEach((function(t){i=i.concat(o.mtimeset(e,t,n,r))})),jc(i),i},e.prototype.mtimeset=function(e,t,n,r){var o=this.options.bysecond.map((function(n){return new id(e,t,n,r)}));return jc(o),o},e.prototype.stimeset=function(e,t,n,r){return[new id(e,t,n,r)]},e.prototype.getdayset=function(e){switch(e){case mc.YEARLY:return this.ydayset.bind(this);case mc.MONTHLY:return this.mdayset.bind(this);case mc.WEEKLY:return this.wdayset.bind(this);case mc.DAILY:default:return this.ddayset.bind(this)}},e.prototype.gettimeset=function(e){switch(e){case mc.HOURLY:return this.htimeset.bind(this);case mc.MINUTELY:return this.mtimeset.bind(this);case mc.SECONDLY:return this.stimeset.bind(this)}},e}();function Hd(e,t,n,r,o,i){for(var s=[],a=0;a<e.length;a++){var l=void 0,u=void 0,c=e[a];c<0?(l=Math.floor(c/t.length),u=bc(c,t.length)):(l=Math.floor((c-1)/t.length),u=bc(c-1,t.length));for(var d=[],f=n;f<r;f++){var p=i[f];cc(p)&&d.push(p)}var h=void 0;h=l<0?d.slice(l)[0]:d[l];var g=t[u],v=Nc(o.yearordinal+h),m=Wc(v,g);kc(s,m)||s.push(m)}return jc(s),s}function Wd(e,t){var n=t.dtstart,r=t.freq,o=t.interval,i=t.until,s=t.bysetpos,a=t.count;if(0===a||0===o)return jd(e);var l=sd.fromDate(n),u=new Ld(t);u.rebuild(l.year,l.month);for(var c=function(e,t,n){var r=n.freq,o=n.byhour,i=n.byminute,s=n.bysecond;if(td(r))return function(e){var t=e.dtstart.getTime()%1e3;if(!td(e.freq))return[];var n=[];return e.byhour.forEach((function(r){e.byminute.forEach((function(o){e.bysecond.forEach((function(e){n.push(new id(r,o,e,t))}))}))})),n}(n);if(r>=Yd.HOURLY&&Cc(o)&&!kc(o,t.hour)||r>=Yd.MINUTELY&&Cc(i)&&!kc(i,t.minute)||r>=Yd.SECONDLY&&Cc(s)&&!kc(s,t.second))return[];return e.gettimeset(r)(t.hour,t.minute,t.second,t.millisecond)}(u,l,t);;){var d=u.getdayset(r)(l.year,l.month,l.day),f=d[0],p=d[1],h=d[2],g=Bd(f,p,h,u,t);if(Cc(s))for(var v=Hd(s,c,p,h,u,f),m=0;m<v.length;m++){var y=v[m];if(i&&y>i)return jd(e);if(y>=n){var b=zd(y,t);if(!e.accept(b))return jd(e);if(a&&! --a)return jd(e)}}else for(m=p;m<h;m++){var _=f[m];if(cc(_))for(var w=Nc(u.yearordinal+_),C=0;C<c.length;C++){var k=c[C];y=Wc(w,k);if(i&&y>i)return jd(e);if(y>=n){b=zd(y,t);if(!e.accept(b))return jd(e);if(a&&! --a)return jd(e)}}}if(0===t.interval)return jd(e);if(l.add(t,g),l.year>Rc)return jd(e);td(r)||(c=u.gettimeset(r)(l.hour,l.minute,l.second,0)),u.rebuild(l.year,l.month)}}function Ud(e,t,n){var r=n.bymonth,o=n.byweekno,i=n.byweekday,s=n.byeaster,a=n.bymonthday,l=n.bynmonthday,u=n.byyearday;return Cc(r)&&!kc(r,e.mmask[t])||Cc(o)&&!e.wnomask[t]||Cc(i)&&!kc(i,e.wdaymask[t])||Cc(e.nwdaymask)&&!e.nwdaymask[t]||null!==s&&!kc(e.eastermask,t)||(Cc(a)||Cc(l))&&!kc(a,e.mdaymask[t])&&!kc(l,e.nmdaymask[t])||Cc(u)&&(t<e.yearlen&&!kc(u,t+1)&&!kc(u,-e.yearlen+t)||t>=e.yearlen&&!kc(u,t+1-e.yearlen)&&!kc(u,-e.nextyearlen+t-e.yearlen))}function zd(e,t){return new hd(e,t.tzid).rezonedDate()}function jd(e){return e.getValue()}function Bd(e,t,n,r,o){for(var i=!1,s=t;s<n;s++){var a=e[s];(i=Ud(r,a,o))&&(e[a]=null)}return i}var Fd={MO:new uc(0),TU:new uc(1),WE:new uc(2),TH:new uc(3),FR:new uc(4),SA:new uc(5),SU:new uc(6)},qd={freq:mc.YEARLY,dtstart:null,interval:1,wkst:Fd.MO,count:null,until:null,tzid:null,bysetpos:null,bymonth:null,bymonthday:null,bynmonthday:null,byyearday:null,byweekno:null,byweekday:null,bynweekday:null,byhour:null,byminute:null,bysecond:null,byeaster:null},Vd=Object.keys(qd),Yd=function(){function e(e,t){void 0===e&&(e={}),void 0===t&&(t=!1),this._cache=t?null:new yd,this.origOptions=ad(e);var n=ld(e).parsedOptions;this.options=n}return e.parseText=function(e,t){return ed(e,t)},e.fromText=function(e,t){return nd(e,t)},e.fromString=function(t){return new e(e.parseString(t)||void 0)},e.prototype._iter=function(e){return Wd(e,this.options)},e.prototype._cacheGet=function(e,t){return!!this._cache&&this._cache._cacheGet(e,t)},e.prototype._cacheAdd=function(e,t,n){if(this._cache)return this._cache._cacheAdd(e,t,n)},e.prototype.all=function(e){if(e)return this._iter(new Yc("all",{},e));var t=this._cacheGet("all");return!1===t&&(t=this._iter(new Vc("all",{})),this._cacheAdd("all",t)),t},e.prototype.between=function(e,t,n,r){if(void 0===n&&(n=!1),!Ic(e)||!Ic(t))throw new Error("Invalid date passed in to RRule.between");var o={before:t,after:e,inc:n};if(r)return this._iter(new Yc("between",o,r));var i=this._cacheGet("between",o);return!1===i&&(i=this._iter(new Vc("between",o)),this._cacheAdd("between",i,o)),i},e.prototype.before=function(e,t){if(void 0===t&&(t=!1),!Ic(e))throw new Error("Invalid date passed in to RRule.before");var n={dt:e,inc:t},r=this._cacheGet("before",n);return!1===r&&(r=this._iter(new Vc("before",n)),this._cacheAdd("before",r,n)),r},e.prototype.after=function(e,t){if(void 0===t&&(t=!1),!Ic(e))throw new Error("Invalid date passed in to RRule.after");var n={dt:e,inc:t},r=this._cacheGet("after",n);return!1===r&&(r=this._iter(new Vc("after",n)),this._cacheAdd("after",r,n)),r},e.prototype.count=function(){return this.all().length},e.prototype.toString=function(){return gd(this.origOptions)},e.prototype.toText=function(e,t,n){return function(e,t,n,r){return new Jc(e,t,n,r).toString()}(this,e,t,n)},e.prototype.isFullyConvertibleToText=function(){return od(this)},e.prototype.clone=function(){return new e(this.origOptions)},e.FREQUENCIES=["YEARLY","MONTHLY","WEEKLY","DAILY","HOURLY","MINUTELY","SECONDLY"],e.YEARLY=mc.YEARLY,e.MONTHLY=mc.MONTHLY,e.WEEKLY=mc.WEEKLY,e.DAILY=mc.DAILY,e.HOURLY=mc.HOURLY,e.MINUTELY=mc.MINUTELY,e.SECONDLY=mc.SECONDLY,e.MO=Fd.MO,e.TU=Fd.TU,e.WE=Fd.WE,e.TH=Fd.TH,e.FR=Fd.FR,e.SA=Fd.SA,e.SU=Fd.SU,e.parseString=ud,e.optionsToString=gd,e}();var Gd={dtstart:null,cache:!1,unfold:!1,forceset:!1,compatible:!1,tzid:null};function Zd(e,t){var n=[],r=[],o=[],i=[],s=cd(e),a=s.dtstart,l=s.tzid,u=function(e,t){void 0===t&&(t=!1);if(e=e&&e.trim(),!e)throw new Error("Invalid empty string");if(!t)return e.split(/\s/);var n=e.split("\n"),r=0;for(;r<n.length;){var o=n[r]=n[r].replace(/\s+$/g,"");o?r>0&&" "===o[0]?(n[r-1]+=o.slice(1),n.splice(r,1)):r+=1:n.splice(r,1)}return n}(e,t.unfold);return u.forEach((function(e){var t;if(e){var s=function(e){var t=function(e){if(-1===e.indexOf(":"))return{name:"RRULE",value:e};var t=yc(e,":",1),n=t[0],r=t[1];return{name:n,value:r}}(e),n=t.name,r=t.value,o=n.split(";");if(!o)throw new Error("empty property name");return{name:o[0].toUpperCase(),parms:o.slice(1),value:r}}(e),a=s.name,u=s.parms,c=s.value;switch(a.toUpperCase()){case"RRULE":if(u.length)throw new Error("unsupported RRULE parm: ".concat(u.join(",")));n.push(ud(e));break;case"RDATE":var d=(null!==(t=/RDATE(?:;TZID=([^:=]+))?/i.exec(e))&&void 0!==t?t:[])[1];d&&!l&&(l=d),r=r.concat(Jd(c,u));break;case"EXRULE":if(u.length)throw new Error("unsupported EXRULE parm: ".concat(u.join(",")));o.push(ud(c));break;case"EXDATE":i=i.concat(Jd(c,u));break;case"DTSTART":break;default:throw new Error("unsupported property: "+a)}}})),{dtstart:a,tzid:l,rrulevals:n,rdatevals:r,exrulevals:o,exdatevals:i}}function Kd(e,t){return void 0===t&&(t={}),function(e,t){var n=Zd(e,t),r=n.rrulevals,o=n.rdatevals,i=n.exrulevals,s=n.exdatevals,a=n.dtstart,l=n.tzid,u=!1===t.cache;if(t.compatible&&(t.forceset=!0,t.unfold=!0),t.forceset||r.length>1||o.length||i.length||s.length){var c=new ef(u);return c.dtstart(a),c.tzid(l||void 0),r.forEach((function(e){c.rrule(new Yd(Xd(e,a,l),u))})),o.forEach((function(e){c.rdate(e)})),i.forEach((function(e){c.exrule(new Yd(Xd(e,a,l),u))})),s.forEach((function(e){c.exdate(e)})),t.compatible&&t.dtstart&&c.rdate(a),c}var d=r[0]||{};return new Yd(Xd(d,d.dtstart||t.dtstart||a,d.tzid||t.tzid||l),u)}(e,function(e){var t=[],n=Object.keys(e),r=Object.keys(Gd);if(n.forEach((function(e){kc(r,e)||t.push(e)})),t.length)throw new Error("Invalid options: "+t.join(", "));return Ue(Ue({},Gd),e)}(t))}function Xd(e,t,n){return Ue(Ue({},e),{dtstart:t,tzid:n})}function Jd(e,t){return function(e){e.forEach((function(e){if(!/(VALUE=DATE(-TIME)?)|(TZID=)/.test(e))throw new Error("unsupported RDATE/EXDATE parm: "+e)}))}(t),e.split(",").map((function(e){return Fc(e)}))}function Qd(e){var t=this;return function(n){if(void 0!==n&&(t["_".concat(e)]=n),void 0!==t["_".concat(e)])return t["_".concat(e)];for(var r=0;r<t._rrule.length;r++){var o=t._rrule[r].origOptions[e];if(o)return o}}}var ef=function(e){function t(t){void 0===t&&(t=!1);var n=e.call(this,{},t)||this;return n.dtstart=Qd.apply(n,["dtstart"]),n.tzid=Qd.apply(n,["tzid"]),n._rrule=[],n._rdate=[],n._exrule=[],n._exdate=[],n}return We(t,e),t.prototype._iter=function(e){return function(e,t,n,r,o,i){var s={},a=e.accept;function l(e,t){n.forEach((function(n){n.between(e,t,!0).forEach((function(e){s[Number(e)]=!0}))}))}o.forEach((function(e){var t=new hd(e,i).rezonedDate();s[Number(t)]=!0})),e.accept=function(e){var t=Number(e);return isNaN(t)?a.call(this,e):!(!s[t]&&(l(new Date(t-1),new Date(t+1)),!s[t]))||(s[t]=!0,a.call(this,e))},"between"===e.method&&(l(e.args.after,e.args.before),e.accept=function(e){var t=Number(e);return!!s[t]||(s[t]=!0,a.call(this,e))});for(var u=0;u<r.length;u++){var c=new hd(r[u],i).rezonedDate();if(!e.accept(new Date(c.getTime())))break}t.forEach((function(t){Wd(e,t.options)}));var d=e._result;switch(jc(d),e.method){case"all":case"between":return d;case"before":return d.length&&d[d.length-1]||null;default:return d.length&&d[0]||null}}(e,this._rrule,this._exrule,this._rdate,this._exdate,this.tzid())},t.prototype.rrule=function(e){tf(e,this._rrule)},t.prototype.exrule=function(e){tf(e,this._exrule)},t.prototype.rdate=function(e){nf(e,this._rdate)},t.prototype.exdate=function(e){nf(e,this._exdate)},t.prototype.rrules=function(){return this._rrule.map((function(e){return Kd(e.toString())}))},t.prototype.exrules=function(){return this._exrule.map((function(e){return Kd(e.toString())}))},t.prototype.rdates=function(){return this._rdate.map((function(e){return new Date(e.getTime())}))},t.prototype.exdates=function(){return this._exdate.map((function(e){return new Date(e.getTime())}))},t.prototype.valueOf=function(){var e=[];return!this._rrule.length&&this._dtstart&&(e=e.concat(gd({dtstart:this._dtstart}))),this._rrule.forEach((function(t){e=e.concat(t.toString().split("\n"))})),this._exrule.forEach((function(t){e=e.concat(t.toString().split("\n").map((function(e){return e.replace(/^RRULE:/,"EXRULE:")})).filter((function(e){return!/^DTSTART/.test(e)})))})),this._rdate.length&&e.push(rf("RDATE",this._rdate,this.tzid())),this._exdate.length&&e.push(rf("EXDATE",this._exdate,this.tzid())),e},t.prototype.toString=function(){return this.valueOf().join("\n")},t.prototype.clone=function(){var e=new t(!!this._cache);return this._rrule.forEach((function(t){return e.rrule(t.clone())})),this._exrule.forEach((function(t){return e.exrule(t.clone())})),this._rdate.forEach((function(t){return e.rdate(new Date(t.getTime()))})),this._exdate.forEach((function(t){return e.exdate(new Date(t.getTime()))})),e},t}(Yd);function tf(e,t){if(!(e instanceof Yd))throw new TypeError(String(e)+" is not RRule instance");kc(t.map(String),String(e))||t.push(e)}function nf(e,t){if(!(e instanceof Date))throw new TypeError(String(e)+" is not Date instance");kc(t.map(Number),Number(e))||(t.push(e),jc(t))}function rf(e,t,n){var r=!n||"UTC"===n.toUpperCase(),o=r?"".concat(e,":"):"".concat(e,";TZID=").concat(n,":"),i=t.map((function(e){return Bc(e.valueOf(),r)})).join(",");return"".concat(o).concat(i)}
|
||
/*!
|
||
FullCalendar v5.11.5
|
||
Docs & License: https://fullcalendar.io/
|
||
(c) 2022 Adam Shaw
|
||
*/var of=ds({recurringTypes:[{parse:function(e,t){if(null!=e.rrule){var n=function(e,t){var n,r=!1,o=!1;if("string"==typeof e.rrule){var i=function(e){var t=Kd(e,{forceset:!0}),n=function(e){var t=!1,n=!1;function r(e,r,o){var i=wi(o);t=t||!i.isTimeUnspecified,n=n||null!==i.timeZoneOffset}return e.replace(/\b(DTSTART:)([^\n]*)/,r),e.replace(/\b(EXDATE:)([^\n]*)/,r),e.replace(/\b(UNTIL=)([^;\n]*)/,r),{isTimeSpecified:t,isTimeZoneSpecified:n}}(e);return Ue({rruleSet:t},n)}(e.rrule);n=i.rruleSet,r=i.isTimeSpecified,o=i.isTimeZoneSpecified}if("object"==typeof e.rrule&&e.rrule){i=sf(e.rrule,t);(n=new ef).rrule(i.rrule),r=i.isTimeSpecified,o=i.isTimeZoneSpecified}for(var s=[].concat(e.exdate||[]),a=[].concat(e.exrule||[]),l=0,u=s;l<u.length;l++){i=wi(u[l]);r=r||!i.isTimeUnspecified,o=o||null!==i.timeZoneOffset,n.exdate(new Date(i.marker.valueOf()-60*(i.timeZoneOffset||0)*1e3))}for(var c=0,d=a;c<d.length;c++){i=sf(d[c],t);r=r||i.isTimeSpecified,o=o||i.isTimeZoneSpecified,n.exrule(i.rrule)}return{rruleSet:n,isTimeSpecified:r,isTimeZoneSpecified:o}}(e,t);if(n)return{typeData:{rruleSet:n.rruleSet,isTimeZoneSpecified:n.isTimeZoneSpecified},allDayGuess:!n.isTimeSpecified,duration:e.duration}}return null},expand:function(e,t,n){return e.isTimeZoneSpecified?e.rruleSet.between(n.toDate(t.start),n.toDate(t.end),!0).map((function(e){return n.createMarker(e)})):e.rruleSet.between(t.start,t.end,!0)}}],eventRefiners:{rrule:fo,exrule:fo,exdate:fo,duration:Er}});function sf(e,t){var n=!1,r=!1;function o(e){if("string"==typeof e){var t=wi(e);return t?(n=n||!t.isTimeUnspecified,r=r||null!==t.timeZoneOffset,new Date(t.marker.valueOf()-60*(t.timeZoneOffset||0)*1e3)):null}return e}var i=Ue(Ue({},e),{dtstart:o(e.dtstart),until:o(e.until),freq:lf(e.freq),wkst:null==e.wkst?(t.weekDow-1+7)%7:lf(e.wkst),byweekday:af(e.byweekday)});return{rrule:new Yd(i),isTimeSpecified:n,isTimeZoneSpecified:r}}function af(e){return Array.isArray(e)?e.map(lf):lf(e)}function lf(e){return"string"==typeof e?Yd[e.toUpperCase()]:e}gn("");
|
||
/*!
|
||
FullCalendar v5.11.5
|
||
Docs & License: https://fullcalendar.io/
|
||
(c) 2022 Adam Shaw
|
||
*/
|
||
var uf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={textId:On()},t}return We(t,e),t.prototype.render=function(){var e=this.context,t=e.theme,n=e.dateEnv,r=e.options,o=e.viewApi,i=this.props,s=i.cellId,a=i.dayDate,l=i.todayRange,u=this.state.textId,c=Li(a,l),d=r.listDayFormat?n.format(a,r.listDayFormat):"",f=r.listDaySideFormat?n.format(a,r.listDaySideFormat):"",p=Ue({date:n.toDate(a),view:o,textId:u,text:d,sideText:f,navLinkAttrs:ji(this.context,a),sideNavLinkAttrs:ji(this.context,a,"day",!1)},c),h=["fc-list-day"].concat(Hi(c,t));return mn(gs,{hookProps:p,classNames:r.dayHeaderClassNames,content:r.dayHeaderContent,defaultContent:cf,didMount:r.dayHeaderDidMount,willUnmount:r.dayHeaderWillUnmount},(function(e,n,r,o){return mn("tr",{ref:e,className:h.concat(n).join(" "),"data-date":Nr(a)},mn("th",{scope:"colgroup",colSpan:3,id:s,"aria-labelledby":u},mn("div",{className:"fc-list-day-cushion "+t.getClass("tableCellShaded"),ref:r},o)))}))},t}(ss);function cf(e){return mn(_n,null,e.text&&mn("a",Ue({id:e.textId,className:"fc-list-day-text"},e.navLinkAttrs),e.text),e.sideText&&mn("a",Ue({"aria-hidden":!0,className:"fc-list-day-side-text"},e.sideNavLinkAttrs),e.sideText))}var df=to({hour:"numeric",minute:"2-digit",meridiem:"short"}),ff=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.seg,r=e.timeHeaderId,o=e.eventHeaderId,i=e.dateHeaderId,s=t.options.eventTimeFormat||df;return mn(hl,{seg:n,timeText:"",disableDragging:!0,disableResizing:!0,defaultContent:function(){return function(e,t){var n=Qo(e,t);return mn("a",Ue({},n),e.eventRange.def.title)}(n,t)},isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,isSelected:e.isSelected,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting},(function(e,a,l,u,c){return mn("tr",{className:["fc-list-event",c.event.url?"fc-event-forced-url":""].concat(a).join(" "),ref:e},function(e,t,n,r,o){var i=n.options;if(!1!==i.displayEventTime){var s=e.eventRange.def,a=e.eventRange.instance,l=!1,u=void 0;if(s.allDay?l=!0:!function(e){var t=Io(e);return Jn(t.start,t.end)>1}(e.eventRange.range)?u=Ko(e,t,n):e.isStart?u=Ko(e,t,n,null,null,a.range.start,e.end):e.isEnd?u=Ko(e,t,n,null,null,e.start,a.range.end):l=!0,l){var c={text:n.options.allDayText,view:n.viewApi};return mn(gs,{hookProps:c,classNames:i.allDayClassNames,content:i.allDayContent,defaultContent:pf,didMount:i.allDayDidMount,willUnmount:i.allDayWillUnmount},(function(e,t,n,i){return mn("td",{ref:e,headers:r+" "+o,className:["fc-list-event-time"].concat(t).join(" ")},i)}))}return mn("td",{className:"fc-list-event-time"},u)}return null}(n,s,t,r,i),mn("td",{"aria-hidden":!0,className:"fc-list-event-graphic"},mn("span",{className:"fc-list-event-dot",style:{borderColor:c.borderColor||c.backgroundColor}})),mn("td",{ref:l,headers:o+" "+i,className:"fc-list-event-title"},u))}))},t}(ss);function pf(e){return e.text}var hf=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.computeDateVars=Hr(vf),t.eventStoreToSegs=Hr(t._eventStoreToSegs),t.state={timeHeaderId:On(),eventHeaderId:On(),dateHeaderIdRoot:On()},t.setRootEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,r=["fc-list",n.theme.getClass("table"),!1!==n.options.stickyHeaderDates?"fc-list-sticky":""],o=this.computeDateVars(t.dateProfile),i=o.dayDates,s=o.dayRanges,a=this.eventStoreToSegs(t.eventStore,t.eventUiBases,s);return mn(ks,{viewSpec:n.viewSpec,elRef:this.setRootEl},(function(n,o){return mn("div",{ref:n,className:r.concat(o).join(" ")},mn(Ja,{liquid:!t.isHeightAuto,overflowX:t.isHeightAuto?"visible":"hidden",overflowY:t.isHeightAuto?"visible":"auto"},a.length>0?e.renderSegList(a,i):e.renderEmptyMessage()))}))},t.prototype.renderEmptyMessage=function(){var e=this.context,t=e.options,n=e.viewApi,r={text:t.noEventsText,view:n};return mn(gs,{hookProps:r,classNames:t.noEventsClassNames,content:t.noEventsContent,defaultContent:gf,didMount:t.noEventsDidMount,willUnmount:t.noEventsWillUnmount},(function(e,t,n,r){return mn("div",{className:["fc-list-empty"].concat(t).join(" "),ref:e},mn("div",{className:"fc-list-empty-cushion",ref:n},r))}))},t.prototype.renderSegList=function(e,t){var n=this.context,r=n.theme,o=n.options,i=this.state,s=i.timeHeaderId,a=i.eventHeaderId,l=i.dateHeaderIdRoot,u=function(e){var t,n,r=[];for(t=0;t<e.length;t+=1)(r[(n=e[t]).dayIndex]||(r[n.dayIndex]=[])).push(n);return r}(e);return mn(Ha,{unit:"day"},(function(e,n){for(var i=[],c=0;c<u.length;c+=1){var d=u[c];if(d){var f=Nr(t[c]),p=l+"-"+f;i.push(mn(uf,{key:f,cellId:p,dayDate:t[c],todayRange:n}));for(var h=0,g=d=qo(d,o.eventOrder);h<g.length;h++){var v=g[h];i.push(mn(ff,Ue({key:f+":"+v.eventRange.instance.instanceId,seg:v,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,timeHeaderId:s,eventHeaderId:a,dateHeaderId:p},Xo(v,n,e))))}}}return mn("table",{className:"fc-list-table "+r.getClass("table")},mn("thead",null,mn("tr",null,mn("th",{scope:"col",id:s},o.timeHint),mn("th",{scope:"col","aria-hidden":!0}),mn("th",{scope:"col",id:a},o.eventHint))),mn("tbody",null,i))}))},t.prototype._eventStoreToSegs=function(e,t,n){return this.eventRangesToSegs(Uo(e,t,this.props.dateProfile.activeRange,this.context.options.nextDayThreshold).fg,n)},t.prototype.eventRangesToSegs=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];n.push.apply(n,this.eventRangeToSegs(i,t))}return n},t.prototype.eventRangeToSegs=function(e,t){var n,r,o,i=this.context.dateEnv,s=this.context.options.nextDayThreshold,a=e.range,l=e.def.allDay,u=[];for(n=0;n<t.length;n+=1)if((r=Po(a,t[n]))&&(o={component:this,eventRange:e,start:r.start,end:r.end,isStart:e.isStart&&r.start.valueOf()===a.start.valueOf(),isEnd:e.isEnd&&r.end.valueOf()===a.end.valueOf(),dayIndex:n},u.push(o),!o.isEnd&&!l&&n+1<t.length&&a.end<i.add(t[n+1].start,s))){o.end=a.end,o.isEnd=!0;break}return u},t}(cs);function gf(e){return e.text}function vf(e){for(var t=er(e.renderRange.start),n=e.renderRange.end,r=[],o=[];t<n;)r.push(t),o.push({start:t,end:Kn(t,1)}),t=Kn(t,1);return{dayDates:r,dayRanges:o}}function mf(e){return!1===e?null:to(e)}var yf=ds({optionRefiners:{listDayFormat:mf,listDaySideFormat:mf,noEventsClassNames:fo,noEventsContent:fo,noEventsDidMount:fo,noEventsWillUnmount:fo},views:{list:{component:hf,buttonTextKey:"list",listDayFormat:{month:"long",day:"numeric",year:"numeric"}},listDay:{type:"list",duration:{days:1},listDayFormat:{weekday:"long"}},listWeek:{type:"list",duration:{weeks:1},listDayFormat:{weekday:"long"},listDaySideFormat:{month:"long",day:"numeric",year:"numeric"}},listMonth:{type:"list",duration:{month:1},listDaySideFormat:{weekday:"long"}},listYear:{type:"list",duration:{year:1},listDaySideFormat:{weekday:"long"}}}});gn("");gn("");
|
||
/*!
|
||
FullCalendar Scheduler v5.11.5
|
||
Docs & License: https://fullcalendar.io/scheduler
|
||
(c) 2022 Adam Shaw
|
||
*/
|
||
var bf,_f="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" "),wf=function(){function e(e){var t=this;this.el=e,this.emitter=new Ji,this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new Qs(this._handleWheelWaited.bind(this)),this.scrollWaiter=new Qs(this._handleScrollWaited.bind(this)),this.handleScroll=function(){t.startScroll(),t.emitter.trigger("scroll",t.isRecentlyWheeled,t.isTouching),t.isRecentlyScrolled=!0,t.scrollWaiter.request(500)},this.handleWheel=function(){t.isRecentlyWheeled=!0,t.wheelWaiter.request(500)},this.handleTouchStart=function(){t.isTouching=!0},this.handleTouchEnd=function(){t.isTouching=!1,t.isRecentlyScrolled||t.endScroll()},e.addEventListener("scroll",this.handleScroll),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd);for(var n=0,r=_f;n<r.length;n++){var o=r[n];e.addEventListener(o,this.handleWheel)}}return e.prototype.destroy=function(){var e=this.el;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd);for(var t=0,n=_f;t<n.length;t++){var r=n[t];e.removeEventListener(r,this.handleWheel)}},e.prototype.startScroll=function(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))},e.prototype.endScroll=function(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())},e.prototype._handleScrollWaited=function(){this.isRecentlyScrolled=!1,this.isTouching||this.endScroll()},e.prototype._handleWheelWaited=function(){this.isRecentlyWheeled=!1},e}();function Cf(e){var t=e.scrollLeft;if("rtl"===window.getComputedStyle(e).direction)switch(Sf()){case"negative":t*=-1;case"reverse":t=e.scrollWidth-t-e.clientWidth}return t}function kf(e,t){if("rtl"===window.getComputedStyle(e).direction)switch(Sf()){case"reverse":t=e.scrollWidth-t;break;case"negative":t=-(e.scrollWidth-t)}e.scrollLeft=t}function Sf(){return bf||(bf=function(){var e,t=document.createElement("div");t.style.position="absolute",t.style.top="-1000px",t.style.width="1px",t.style.height="1px",t.style.overflow="scroll",t.style.direction="rtl",t.style.fontSize="100px",t.innerHTML="A",document.body.appendChild(t),t.scrollLeft>0?e="positive":(t.scrollLeft=1,e=t.scrollLeft>0?"reverse":"negative");return xn(t),e}())}var Ef,xf="undefined"!=typeof navigator&&/Edge/.test(navigator.userAgent),Rf=function(){function e(e,t){var n=this;this.scrollEl=e,this.isRtl=t,this.usingRelative=null,this.updateSize=function(){var e=n.scrollEl,t=Tn(e,".fc-sticky"),r=n.queryElGeoms(t),o=e.clientWidth,i=e.clientHeight;n.usingRelative?function(e,t,n,r,o){e.forEach((function(e,i){var s,a,l=t[i],u=l.naturalBound,c=l.parentBound,d=c.right-c.left,f=c.bottom-c.bottom;d>r||f>o?(s=n[i].left-u.left,a=n[i].top-u.top):(s="",a=""),Mn(e,{position:"relative",left:s,right:-s,top:a})}))}(t,r,n.computeElDestinations(r,o),o,i):function(e,t,n){e.forEach((function(e,r){var o,i=t[r],s=i.textAlign,a=i.elWidth,l=i.parentBound,u=l.right-l.left;Mn(e,{left:o="center"===s&&u>n?(n-a)/2:"",right:o,top:0})}))}(t,r,o)},this.usingRelative=!function(){null==Ef&&(Ef=function(){var e=document.createElement("div");e.style.position="sticky",document.body.appendChild(e);var t=window.getComputedStyle(e).position;return xn(e),"sticky"===t}());return Ef}()||xf&&t,this.usingRelative&&(this.listener=new wf(e),this.listener.emitter.on("scrollEnd",this.updateSize))}return e.prototype.destroy=function(){this.listener&&this.listener.destroy()},e.prototype.queryElGeoms=function(e){for(var t=this.scrollEl,n=this.isRtl,r=function(e){var t=e.getBoundingClientRect(),n=Gi(e);return{left:t.left+n.borderLeft+n.scrollbarLeft-Cf(e),top:t.top+n.borderTop-e.scrollTop}}(t),o=[],i=0,s=e;i<s.length;i++){var a=s[i],l=Ii(Zi(a.parentNode,!0,!0),-r.left,-r.top),u=a.getBoundingClientRect(),c=window.getComputedStyle(a),d=window.getComputedStyle(a.parentNode).textAlign,f=null;"start"===d?d=n?"right":"left":"end"===d&&(d=n?"left":"right"),"sticky"!==c.position&&(f=Ii(u,-r.left-(parseFloat(c.left)||0),-r.top-(parseFloat(c.top)||0))),o.push({parentBound:l,naturalBound:f,elWidth:u.width,elHeight:u.height,textAlign:d})}return o},e.prototype.computeElDestinations=function(e,t){var n=this.scrollEl,r=n.scrollTop,o=Cf(n),i=o+t;return e.map((function(e){var t,n,s=e.elWidth,a=e.elHeight,l=e.parentBound,u=e.naturalBound;switch(e.textAlign){case"left":t=o;break;case"right":t=i-s;break;case"center":t=(o+i)/2-s/2}return t=Math.min(t,l.right-s),t=Math.max(t,l.left),n=r,n=Math.min(n,l.bottom-a),{left:t,top:n=Math.max(n,u.top)}}))},e}();var Df=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=bn(),t.state={xScrollbarWidth:0,yScrollbarWidth:0},t.handleScroller=function(e){t.scroller=e,us(t.props.scrollerRef,e)},t.handleSizing=function(){var e=t.props;"scroll-hidden"===e.overflowY&&t.setState({yScrollbarWidth:t.scroller.getYScrollbarWidth()}),"scroll-hidden"===e.overflowX&&t.setState({xScrollbarWidth:t.scroller.getXScrollbarWidth()})},t}return We(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=e.context.isRtl&&qi(),o=0,i=0,s=0;return"scroll-hidden"===t.overflowX&&(s=n.xScrollbarWidth),"scroll-hidden"===t.overflowY&&null!=n.yScrollbarWidth&&(r?o=n.yScrollbarWidth:i=n.yScrollbarWidth),mn("div",{ref:this.elRef,className:"fc-scroller-harness"+(t.liquid?" fc-scroller-harness-liquid":"")},mn(Ja,{ref:this.handleScroller,elRef:this.props.scrollerElRef,overflowX:"scroll-hidden"===t.overflowX?"scroll":t.overflowX,overflowY:"scroll-hidden"===t.overflowY?"scroll":t.overflowY,overcomeLeft:o,overcomeRight:i,overcomeBottom:s,maxHeight:"number"==typeof t.maxHeight?t.maxHeight+("scroll-hidden"===t.overflowX?n.xScrollbarWidth:0):"",liquid:t.liquid,liquidIsAbsolute:!0},t.children))},t.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(e){vr(e,this.props)||this.handleSizing()},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},t.prototype.needsXScrolling=function(){return this.scroller.needsXScrolling()},t.prototype.needsYScrolling=function(){return this.scroller.needsYScrolling()},t}(ss),Tf=function(){function e(e,t){var n=this;this.isVertical=e,this.scrollEls=t,this.isPaused=!1,this.scrollListeners=t.map((function(e){return n.bindScroller(e)}))}return e.prototype.destroy=function(){for(var e=0,t=this.scrollListeners;e<t.length;e++){t[e].destroy()}},e.prototype.bindScroller=function(e){var t=this,n=this.scrollEls,r=this.isVertical,o=new wf(e);return o.emitter.on("scroll",(function(o,i){if(!t.isPaused&&((!t.masterEl||t.masterEl!==e&&(o||i))&&t.assignMaster(e),t.masterEl===e))for(var s=0,a=n;s<a.length;s++){var l=a[s];l!==e&&(r?l.scrollTop=e.scrollTop:l.scrollLeft=e.scrollLeft)}})),o.emitter.on("scrollEnd",(function(){t.masterEl===e&&(t.masterEl=null)})),o},e.prototype.assignMaster=function(e){this.masterEl=e;for(var t=0,n=this.scrollListeners;t<n.length;t++){var r=n[t];r.el!==e&&r.endScroll()}},e.prototype.forceScrollLeft=function(e){this.isPaused=!0;for(var t=0,n=this.scrollListeners;t<n.length;t++){kf(n[t].el,e)}this.isPaused=!1},e.prototype.forceScrollTop=function(e){this.isPaused=!0;for(var t=0,n=this.scrollListeners;t<n.length;t++){n[t].el.scrollTop=e}this.isPaused=!1},e}(),$f=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.compileColGroupStats=Ur(Of,Lf),t.renderMicroColGroups=Ur(il),t.clippedScrollerRefs=new Qa,t.scrollerElRefs=new Qa(t._handleScrollerEl.bind(t)),t.chunkElRefs=new Qa(t._handleChunkEl.bind(t)),t.stickyScrollings=[],t.scrollSyncersBySection={},t.scrollSyncersByColumn={},t.rowUnstableMap=new Map,t.rowInnerMaxHeightMap=new Map,t.anyRowHeightsChanged=!1,t.recentSizingCnt=0,t.state={shrinkWidths:[],forceYScrollbars:!1,forceXScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{},sectionRowMaxHeights:[]},t.handleSizing=function(e,n){if(t.allowSizing()){n||(t.anyRowHeightsChanged=!0);var r={};(e||!n&&!t.rowUnstableMap.size)&&(r.sectionRowMaxHeights=t.computeSectionRowMaxHeights()),t.setState(Ue(Ue({shrinkWidths:t.computeShrinkWidths()},t.computeScrollerDims()),r),(function(){t.rowUnstableMap.size||t.updateStickyScrolling()}))}},t.handleRowHeightChange=function(e,n){var r=t,o=r.rowUnstableMap,i=r.rowInnerMaxHeightMap;if(n){o.delete(e);var s=If(e);i.has(e)&&i.get(e)===s||(i.set(e,s),t.anyRowHeightsChanged=!0),!o.size&&t.anyRowHeightsChanged&&(t.anyRowHeightsChanged=!1,t.setState({sectionRowMaxHeights:t.computeSectionRowMaxHeights()}))}else o.set(e,!0)},t}return We(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=e.context,o=n.shrinkWidths,i=this.compileColGroupStats(t.colGroups.map((function(e){return[e]}))),s=this.renderMicroColGroups(i.map((function(e,t){return[e.cols,o[t]]}))),a=ll(t.liquid,r),l=this.getDims();l[0],l[1];for(var u,c=t.sections,d=c.length,f=0,p=[],h=[],g=[];f<d&&"header"===(u=c[f]).type;)p.push(this.renderSection(u,f,i,s,n.sectionRowMaxHeights,!0)),f+=1;for(;f<d&&"body"===(u=c[f]).type;)h.push(this.renderSection(u,f,i,s,n.sectionRowMaxHeights,!1)),f+=1;for(;f<d&&"footer"===(u=c[f]).type;)g.push(this.renderSection(u,f,i,s,n.sectionRowMaxHeights,!0)),f+=1;var v=!Ai(),m={role:"rowgroup"};return mn("table",{ref:t.elRef,role:"grid",className:a.join(" ")},function(e,t){var n=e.map((function(e,n){var r=e.width;return"shrink"===r&&(r=e.totalColWidth+sl(t[n])+1),mn("col",{style:{width:r}})}));return mn.apply(void 0,ze(["colgroup",{}],n))}(i,o),Boolean(!v&&p.length)&&mn.apply(void 0,ze(["thead",m],p)),Boolean(!v&&h.length)&&mn.apply(void 0,ze(["tbody",m],h)),Boolean(!v&&g.length)&&mn.apply(void 0,ze(["tfoot",m],g)),v&&mn.apply(void 0,ze(ze(ze(["tbody",m],p),h),g)))},t.prototype.renderSection=function(e,t,n,r,o,i){var s=this;return"outerContent"in e?mn(_n,{key:e.key},e.outerContent):mn("tr",{key:e.key,role:"presentation",className:ul(e,this.props.liquid).join(" ")},e.chunks.map((function(a,l){return s.renderChunk(e,t,n[l],r[l],a,l,(o[t]||[])[l]||[],i)})))},t.prototype.renderChunk=function(e,t,n,r,o,i,s,a){if("outerContent"in o)return mn(_n,{key:o.key},o.outerContent);var l=this.state,u=l.scrollerClientWidths,c=l.scrollerClientHeights,d=this.getDims(),f=d[0],p=d[1],h=t*p+i,g=i===(!this.context.isRtl||qi()?p-1:0),v=t===f-1,m=v&&l.forceXScrollbars,y=g&&l.forceYScrollbars,b=n&&n.allowXScrolling,_=nl(this.props,e),w=tl(this.props,e),C=e.expandRows&&w,k=rl(e,o,{tableColGroupNode:r,tableMinWidth:n&&n.totalColMinWidth||"",clientWidth:void 0!==u[h]?u[h]:null,clientHeight:void 0!==c[h]?c[h]:null,expandRows:C,syncRowHeights:Boolean(e.syncRowHeights),rowSyncHeights:s,reportRowHeightChange:this.handleRowHeightChange},a),S=m?v?"scroll":"scroll-hidden":b?v?"auto":"scroll-hidden":"hidden",E=y?g?"scroll":"scroll-hidden":_?g?"auto":"scroll-hidden":"hidden";return k=mn(Df,{ref:this.clippedScrollerRefs.createRef(h),scrollerElRef:this.scrollerElRefs.createRef(h),overflowX:S,overflowY:E,liquid:w,maxHeight:e.maxHeight},k),mn(a?"th":"td",{key:o.key,ref:this.chunkElRefs.createRef(h),role:"presentation"},k)},t.prototype.componentDidMount=function(){this.getStickyScrolling=Ur(Uf,null,zf),this.getScrollSyncersBySection=zr(Hf.bind(this,!0),null,Wf),this.getScrollSyncersByColumn=zr(Hf.bind(this,!1),null,Wf),this.updateScrollSyncers(),this.handleSizing(!1),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(e,t){this.updateScrollSyncers(),this.handleSizing(!1,t.sectionRowMaxHeights!==this.state.sectionRowMaxHeights)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing),this.destroyStickyScrolling(),this.destroyScrollSyncers()},t.prototype.allowSizing=function(){var e=new Date;return!this.lastSizingDate||e.valueOf()>this.lastSizingDate.valueOf()+Ca.SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=e,this.recentSizingCnt=0,!0):(this.recentSizingCnt+=1)<=10},t.prototype.computeShrinkWidths=function(){var e=this,t=this.compileColGroupStats(this.props.colGroups.map((function(e){return[e]}))),n=this.getDims(),r=n[0],o=n[1],i=r*o,s=[];return t.forEach((function(t,n){if(t.hasShrinkCol){var r=e.chunkElRefs.collect(n,i,o);s[n]=el(r)}})),s},t.prototype.computeSectionRowMaxHeights=function(){for(var e=new Map,t=this.getDims(),n=t[0],r=t[1],o=[],i=0;i<n;i+=1){var s=this.props.sections[i],a=[];if(s&&s.syncRowHeights){for(var l=[],u=0;u<r;u+=1){var c=i*r+u,d=[],f=this.chunkElRefs.currentMap[c];d=f?Tn(f,".fc-scrollgrid-sync-table tr").map((function(t){var n=If(t);return e.set(t,n),n})):[],l.push(d)}var p=l[0].length,h=!0;for(u=1;u<r;u+=1){if(!(s.chunks[u]&&void 0!==s.chunks[u].outerContent)&&l[u].length!==p){h=!1;break}}if(h){for(u=0;u<r;u+=1)a.push([]);for(_=0;_<p;_+=1){var g=[];for(u=0;u<r;u+=1){var v=l[u][_];null!=v&&g.push(v)}var m=Math.max.apply(Math,g);for(u=0;u<r;u+=1)a[u].push(m)}}else{for(var y=[],u=0;u<r;u+=1)y.push(Mf(l[u])+l[u].length);for(var b=Math.max.apply(Math,y),u=0;u<r;u+=1){var _,w=l[u].length,C=b-w,k=Math.floor(C/w),S=C-k*(w-1),E=[];for((_=0)<w&&(E.push(S),_+=1);_<w;)E.push(k),_+=1;a.push(E)}}}o.push(a)}return this.rowInnerMaxHeightMap=e,o},t.prototype.computeScrollerDims=function(){for(var e=Vi(),t=this.getDims(),n=t[0],r=t[1],o=!this.context.isRtl||qi()?r-1:0,i=n-1,s=this.clippedScrollerRefs.currentMap,a=this.scrollerElRefs.currentMap,l=!1,u=!1,c={},d={},f=0;f<n;f+=1){if((h=s[g=f*r+o])&&h.needsYScrolling()){l=!0;break}}for(var p=0;p<r;p+=1){var h;if((h=s[g=i*r+p])&&h.needsXScrolling()){u=!0;break}}for(f=0;f<n;f+=1)for(p=0;p<r;p+=1){var g,v=a[g=f*r+p];if(v){var m=v.parentNode;c[g]=Math.floor(m.getBoundingClientRect().width-(p===o&&l?e.y:0)),d[g]=Math.floor(m.getBoundingClientRect().height-(f===i&&u?e.x:0))}}return{forceYScrollbars:l,forceXScrollbars:u,scrollerClientWidths:c,scrollerClientHeights:d}},t.prototype.updateStickyScrolling=function(){var e=this.context.isRtl,t=this.scrollerElRefs.getAll().map((function(t){return[t,e]})),n=this.getStickyScrolling(t);n.forEach((function(e){return e.updateSize()})),this.stickyScrollings=n},t.prototype.destroyStickyScrolling=function(){this.stickyScrollings.forEach(zf)},t.prototype.updateScrollSyncers=function(){for(var e=this.getDims(),t=e[0],n=e[1],r=t*n,o={},i={},s=this.scrollerElRefs.currentMap,a=0;a<t;a+=1){var l=a*n,u=l+n;o[a]=_r(s,l,u,1)}for(var c=0;c<n;c+=1)i[c]=this.scrollerElRefs.collect(c,r,n);this.scrollSyncersBySection=this.getScrollSyncersBySection(o),this.scrollSyncersByColumn=this.getScrollSyncersByColumn(i)},t.prototype.destroyScrollSyncers=function(){pr(this.scrollSyncersBySection,Wf),pr(this.scrollSyncersByColumn,Wf)},t.prototype.getChunkConfigByIndex=function(e){var t=this.getDims()[1],n=Math.floor(e/t),r=e%t,o=this.props.sections[n];return o&&o.chunks[r]},t.prototype.forceScrollLeft=function(e,t){var n=this.scrollSyncersByColumn[e];n&&n.forceScrollLeft(t)},t.prototype.forceScrollTop=function(e,t){var n=this.scrollSyncersBySection[e];n&&n.forceScrollTop(t)},t.prototype._handleChunkEl=function(e,t){var n=this.getChunkConfigByIndex(parseInt(t,10));n&&us(n.elRef,e)},t.prototype._handleScrollerEl=function(e,t){var n=this.getChunkConfigByIndex(parseInt(t,10));n&&us(n.scrollerElRef,e)},t.prototype.getDims=function(){var e=this.props.sections.length;return[e,e?this.props.sections[0].chunks.length:0]},t}(ss);function Mf(e){for(var t=0,n=0,r=e;n<r.length;n++){t+=r[n]}return t}function If(e){var t=Tn(e,".fc-scrollgrid-sync-inner").map(Af);return t.length?Math.max.apply(Math,t):0}function Af(e){return e.offsetHeight}function Of(e){var t=Nf(e.cols,"width"),n=Nf(e.cols,"minWidth"),r=al(e.cols);return{hasShrinkCol:r,totalColWidth:t,totalColMinWidth:n,allowXScrolling:"shrink"!==e.width&&Boolean(t||n||r),cols:e.cols,width:e.width}}function Nf(e,t){for(var n=0,r=0,o=e;r<o.length;r++){var i=o[r],s=i[t];"number"==typeof s&&(n+=s*(i.span||1))}return n}$f.addStateEquality({shrinkWidths:Lr,scrollerClientWidths:vr,scrollerClientHeights:vr});var Pf={cols:ol};function Lf(e,t){return yr(e,t,Pf)}function Hf(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];return new Tf(e,t)}function Wf(e){e.destroy()}function Uf(e,t){return new Rf(e,t)}function zf(e){e.destroy()}ds({deps:[ec],scrollGridImpl:$f}),Ca.SCROLLGRID_RESIZE_INTERVAL=500;
|
||
/*!
|
||
FullCalendar Scheduler v5.11.5
|
||
Docs & License: https://fullcalendar.io/scheduler
|
||
(c) 2022 Adam Shaw
|
||
*/
|
||
var jf=18,Bf=6,Ff=200;Ca.MAX_TIMELINE_SLOTS=1e3;var qf=[{years:1},{months:1},{days:1},{hours:1},{minutes:30},{minutes:15},{minutes:10},{minutes:5},{minutes:1},{seconds:30},{seconds:15},{seconds:10},{seconds:5},{seconds:1},{milliseconds:500},{milliseconds:100},{milliseconds:10},{milliseconds:1}];function Vf(e,t,n,r){var o={labelInterval:n.slotLabelInterval,slotDuration:n.slotDuration};!function(e,t,n){var r=t.currentRange;if(e.labelInterval){n.countDurationsBetween(r.start,r.end,e.labelInterval)>Ca.MAX_TIMELINE_SLOTS&&(console.warn("slotLabelInterval results in too many cells"),e.labelInterval=null)}if(e.slotDuration){n.countDurationsBetween(r.start,r.end,e.slotDuration)>Ca.MAX_TIMELINE_SLOTS&&(console.warn("slotDuration results in too many cells"),e.slotDuration=null)}if(e.labelInterval&&e.slotDuration){var o=Ir(e.labelInterval,e.slotDuration);(null===o||o<1)&&(console.warn("slotLabelInterval must be a multiple of slotDuration"),e.slotDuration=null)}}(o,e,t),Zf(o,e,t),function(e,t,n){var r=t.currentRange,o=e.slotDuration;if(!o){for(var i=Zf(e,t,n),s=0,a=qf;s<a.length;s++){var l=Er(a[s]),u=Ir(i,l);if(null!==u&&u>1&&u<=Bf){o=l;break}}if(o)n.countDurationsBetween(r.start,r.end,o)>Ff&&(o=null);o||(o=i),e.slotDuration=o}}(o,e,t);var i=n.slotLabelFormat,s=Array.isArray(i)?i:null!=i?[i]:function(e,t,n,r){var o,i,s=e.labelInterval,a=Ar(s).unit,l=r.weekNumbers,u=o=i=null;"week"!==a||l||(a="day");switch(a){case"year":u={year:"numeric"};break;case"month":Kf("years",t,n)>1&&(u={year:"numeric"}),o={month:"short"};break;case"week":Kf("years",t,n)>1&&(u={year:"numeric"}),o={week:"narrow"};break;case"day":Kf("years",t,n)>1?u={year:"numeric",month:"long"}:Kf("months",t,n)>1&&(u={month:"long"}),l&&(o={week:"short"}),i={weekday:"narrow",day:"numeric"};break;case"hour":l&&(u={week:"short"}),Kf("days",t,n)>1&&(o={weekday:"short",day:"numeric",month:"numeric",omitCommas:!0}),i={hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"short"};break;case"minute":Mr(s)/6e4/60>=Bf?(u={hour:"numeric",meridiem:"short"},o=function(e){return":"+Fn(e.date.minute,2)}):u={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":(function(e){return Mr(e)/1e3})(s)/60>=Bf?(u={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},o=function(e){return":"+Fn(e.date.second,2)}):u={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"};break;case"millisecond":u={hour:"numeric",minute:"2-digit",second:"2-digit",meridiem:"lowercase"},o=function(e){return"."+Fn(e.millisecond,3)}}return[].concat(u||[],o||[],i||[])}(o,e,t,n);o.headerFormats=s.map((function(e){return to(e)})),o.isTimeScale=Boolean(o.slotDuration.milliseconds);var a=null;if(!o.isTimeScale){var l=Ar(o.slotDuration).unit;/year|month|week/.test(l)&&(a=l)}o.largeUnit=a,o.emphasizeWeeks=1===Rr(o.slotDuration)&&Kf("weeks",e,t)>=2&&!n.businessHours;var u,c,d=n.snapDuration;d&&(u=Er(d),c=Ir(o.slotDuration,u)),null==c&&(u=o.slotDuration,c=1),o.snapDuration=u,o.snapsPerSlot=c;var f=Mr(e.slotMaxTime)-Mr(e.slotMinTime),p=Yf(e.renderRange.start,o,t),h=Yf(e.renderRange.end,o,t);o.isTimeScale&&(p=t.add(p,e.slotMinTime),h=t.add(Kn(h,-1),e.slotMaxTime)),o.timeWindowMs=f,o.normalizedRange={start:p,end:h};for(var g=[],v=p;v<h;)Gf(v,o,e,r)&&g.push(v),v=t.add(v,o.slotDuration);o.slotDates=g;var m=-1,y=0,b=[],_=[];for(v=p;v<h;)Gf(v,o,e,r)?(m+=1,b.push(m),_.push(y)):b.push(m+.5),v=t.add(v,o.snapDuration),y+=1;return o.snapDiffToIndex=b,o.snapIndexToDiff=_,o.snapCnt=m+1,o.slotCnt=o.snapCnt/o.snapsPerSlot,o.isWeekStarts=function(e,t){for(var n=e.slotDates,r=e.emphasizeWeeks,o=null,i=[],s=0,a=n;s<a.length;s++){var l=a[s],u=t.computeWeekNumber(l),c=r&&null!==o&&o!==u;o=u,i.push(c)}return i}(o,t),o.cellRows=function(e,t){for(var n=e.slotDates,r=e.headerFormats,o=r.map((function(){return[]})),i=Rr(e.slotDuration),s=7===i?"week":1===i?"day":null,a=r.map((function(e){return e.getLargestUnit?e.getLargestUnit():null})),l=0;l<n.length;l+=1)for(var u=n[l],c=e.isWeekStarts[l],d=0;d<r.length;d+=1){var f=r[d],p=o[d],h=p[p.length-1],g=d===r.length-1,v=r.length>1&&!g,m=null,y=a[d]||(g?s:null);if(v){var b=t.format(u,f);h&&h.text===b?h.colspan+=1:m=Xf(u,b,y)}else if(!h||Vn(t.countDurationsBetween(e.normalizedRange.start,u,e.labelInterval))){m=Xf(u,b=t.format(u,f),y)}else h.colspan+=1;m&&(m.weekStart=c,p.push(m))}return o}(o,t),o.slotsPerLabel=Ir(o.labelInterval,o.slotDuration),o}function Yf(e,t,n){var r=e;return t.isTimeScale||(r=er(r),t.largeUnit&&(r=n.startOf(r,t.largeUnit))),r}function Gf(e,t,n,r){if(r.isHiddenDay(e))return!1;if(t.isTimeScale){var o=er(e),i=e.valueOf()-o.valueOf()-Mr(n.slotMinTime);return(i=(i%864e5+864e5)%864e5)<t.timeWindowMs}return!0}function Zf(e,t,n){var r=t.currentRange,o=e.labelInterval;if(!o){if(e.slotDuration){for(var i=0,s=qf;i<s.length;i++){var a=Er(s[i]),l=Ir(a,e.slotDuration);if(null!==l&&l<=Bf){o=a;break}}o||(o=e.slotDuration)}else for(var u=0,c=qf;u<c.length;u++){if(o=Er(c[u]),n.countDurationsBetween(r.start,r.end,o)>=jf)break}e.labelInterval=o}return o}function Kf(e,t,n){var r=t.currentRange,o=null;return"years"===e?o=n.diffWholeYears(r.start,r.end):"months"===e||"weeks"===e?o=n.diffWholeMonths(r.start,r.end):"days"===e&&(o=Qn(r.start,r.end)),o||0}function Xf(e,t,n){return{date:e,text:t,rowUnit:n,colspan:1,isWeekStart:!1}}var Jf=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return mn(ms,{hookProps:e.hookProps,content:t.options.slotLabelContent,defaultContent:Qf},(function(t,n){return mn("a",Ue({ref:t,className:"fc-timeline-slot-cushion fc-scrollgrid-sync-inner"+(e.isSticky?" fc-sticky":"")},e.navLinkAttrs),n)}))},t}(ss);function Qf(e){return e.text}function ep(e){return{level:e.level,date:e.dateEnv.toDate(e.dateMarker),view:e.viewApi,text:e.text}}var tp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=Wr(ep),t.normalizeClassNames=_s(),t.buildCellNavLinkAttrs=Hr(np),t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,r=n.dateEnv,o=n.options,i=t.cell,s=t.dateProfile,a=t.tDateProfile,l=Li(i.date,t.todayRange,t.nowDate,s),u=["fc-timeline-slot","fc-timeline-slot-label"].concat("time"===i.rowUnit?Wi(l,n.theme):Hi(l,n.theme));i.isWeekStart&&u.push("fc-timeline-slot-em");var c=this.refineHookProps({level:t.rowLevel,dateMarker:i.date,text:i.text,dateEnv:n.dateEnv,viewApi:n.viewApi}),d=this.normalizeClassNames(o.slotLabelClassNames,c);return mn(bs,{hookProps:c,didMount:o.slotLabelDidMount,willUnmount:o.slotLabelWillUnmount},(function(o){return mn("th",{ref:o,className:u.concat(d).join(" "),"data-date":r.formatIso(i.date,{omitTime:!a.isTimeScale,omitTimeZoneOffset:!0}),colSpan:i.colspan},mn("div",{className:"fc-timeline-slot-frame",style:{height:t.rowInnerHeight}},mn(Jf,{hookProps:c,isSticky:t.isSticky,navLinkAttrs:e.buildCellNavLinkAttrs(n,i.date,i.rowUnit)})))}))},t}(ss);function np(e,t,n){return n&&"time"!==n?ji(e,t,n):{}}var rp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=e.dateProfile,n=e.tDateProfile,r=e.rowInnerHeights,o=e.todayRange,i=e.nowDate,s=n.cellRows;return mn(_n,null,s.map((function(e,a){var l=a===s.length-1,u=n.isTimeScale&&l;return mn("tr",{key:a,className:["fc-timeline-header-row",u?"fc-timeline-header-row-chrono":""].join(" ")},e.map((function(e){return mn(tp,{key:e.date.toISOString(),cell:e,rowLevel:a,dateProfile:t,tDateProfile:n,todayRange:o,nowDate:i,rowInnerHeight:r&&r[a],isSticky:!l})})))})))},t}(ss),op=function(){function e(e,t,n,r,o,i){this.slatRootEl=e,this.dateProfile=n,this.tDateProfile=r,this.dateEnv=o,this.isRtl=i,this.outerCoordCache=new Qi(e,t,!0,!1),this.innerCoordCache=new Qi(e,function(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o<n.length;o+=1)for(var i=n[o].children,s=0;s<i.length;s+=1){var a=i[s];t&&!Dn(a,t)||r.push(a)}return r}(t,"div"),!0,!1)}return e.prototype.isDateInRange=function(e){return Wo(this.dateProfile.currentRange,e)},e.prototype.dateToCoord=function(e){var t=this.tDateProfile,n=this.computeDateSnapCoverage(e)/t.snapsPerSlot,r=Math.floor(n),o=n-(r=Math.min(r,t.slotCnt-1)),i=this.innerCoordCache,s=this.outerCoordCache;return this.isRtl?s.originClientRect.width-(s.rights[r]-i.getWidth(r)*o):s.lefts[r]+i.getWidth(r)*o},e.prototype.rangeToCoords=function(e){return{start:this.dateToCoord(e.start),end:this.dateToCoord(e.end)}},e.prototype.durationToCoord=function(e){var t=this,n=t.dateProfile,r=t.tDateProfile,o=t.dateEnv,i=t.isRtl,s=0;if(n){var a=o.add(n.activeRange.start,e);r.isTimeScale||(a=er(a)),s=this.dateToCoord(a),!i&&s&&(s+=1)}return s},e.prototype.coordFromLeft=function(e){return this.isRtl?this.outerCoordCache.originClientRect.width-e:e},e.prototype.computeDateSnapCoverage=function(e){return ip(e,this.tDateProfile,this.dateEnv)},e}();function ip(e,t,n){var r=n.countDurationsBetween(t.normalizedRange.start,e,t.snapDuration);if(r<0)return 0;if(r>=t.snapDiffToIndex.length)return t.snapCnt;var o=Math.floor(r),i=t.snapDiffToIndex[o];return Vn(i)?i+=r-o:i=Math.ceil(i),i}function sp(e,t){return null===e?{left:"",right:""}:t?{right:e,left:""}:{left:e,right:""}}function ap(e,t){return e?t?{right:e.start,left:-e.end}:{left:e.start,right:-e.end}:{left:"",right:""}}var lp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=bn(),t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,r=Ar(t.tDateProfile.slotDuration).unit,o=t.slatCoords&&t.slatCoords.dateProfile===t.dateProfile?t.slatCoords:null;return mn(Ha,{unit:r},(function(r,i){return mn("div",{className:"fc-timeline-header",ref:e.rootElRef},mn("table",{"aria-hidden":!0,className:"fc-scrollgrid-sync-table",style:{minWidth:t.tableMinWidth,width:t.clientWidth}},t.tableColGroupNode,mn("tbody",null,mn(rp,{dateProfile:t.dateProfile,tDateProfile:t.tDateProfile,nowDate:r,todayRange:i,rowInnerHeights:t.rowInnerHeights}))),n.options.nowIndicator&&mn("div",{className:"fc-timeline-now-indicator-container"},o&&o.isDateInRange(r)&&mn(ml,{isAxis:!0,date:r},(function(e,t,i,s){return mn("div",{ref:e,className:["fc-timeline-now-indicator-arrow"].concat(t).join(" "),style:sp(o.dateToCoord(r),n.isRtl)},s)}))))}))},t.prototype.componentDidMount=function(){this.updateSize()},t.prototype.componentDidUpdate=function(){this.updateSize()},t.prototype.updateSize=function(){this.props.onMaxCushionWidth&&this.props.onMaxCushionWidth(this.computeMaxCushionWidth())},t.prototype.computeMaxCushionWidth=function(){return Math.max.apply(Math,Tn(this.rootElRef.current,".fc-timeline-header-row:last-child .fc-timeline-slot-cushion").map((function(e){return e.getBoundingClientRect().width})))},t}(ss),up=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,r=t.options,o=t.theme,i=e.date,s=e.tDateProfile,a=e.isEm,l=Li(e.date,e.todayRange,e.nowDate,e.dateProfile),u=["fc-timeline-slot","fc-timeline-slot-lane"],c={"data-date":n.formatIso(i,{omitTimeZoneOffset:!0,omitTime:!s.isTimeScale})},d=Ue(Ue({date:n.toDate(e.date)},l),{view:t.viewApi});return a&&u.push("fc-timeline-slot-em"),s.isTimeScale&&u.push(Vn(n.countDurationsBetween(s.normalizedRange.start,e.date,s.labelInterval))?"fc-timeline-slot-major":"fc-timeline-slot-minor"),u.push.apply(u,e.isDay?Hi(l,o):Wi(l,o)),mn(gs,{hookProps:d,classNames:r.slotLaneClassNames,content:r.slotLaneContent,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount,elRef:e.elRef},(function(e,t,n,r){return mn("td",Ue({ref:e,className:u.concat(t).join(" ")},c),mn("div",{ref:n},r))}))},t}(ss),cp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=e.tDateProfile,n=e.cellElRefs,r=t.slotDates,o=t.isWeekStarts,i=!t.isTimeScale&&!t.largeUnit;return mn("tbody",null,mn("tr",null,r.map((function(r,s){var a=r.toISOString();return mn(up,{key:a,elRef:n.createRef(a),date:r,dateProfile:e.dateProfile,tDateProfile:t,nowDate:e.nowDate,todayRange:e.todayRange,isEm:o[s],isDay:i})}))))},t}(ss),dp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=bn(),t.cellElRefs=new Qa,t.handleScrollRequest=function(e){var n=t.props.onScrollLeftRequest,r=t.coords;if(n&&r){if(e.time)n(r.coordFromLeft(r.durationToCoord(e.time)));return!0}return null},t}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return mn("div",{className:"fc-timeline-slots",ref:this.rootElRef},mn("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,mn(cp,{cellElRefs:this.cellElRefs,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange})))},t.prototype.componentDidMount=function(){this.updateSizing(),this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.componentDidUpdate=function(e){this.updateSizing(),this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach(),this.props.onCoords&&this.props.onCoords(null)},t.prototype.updateSizing=function(){var e,t=this.props,n=this.context;null!==t.clientWidth&&this.scrollResponder&&(this.rootElRef.current.offsetWidth&&(this.coords=new op(this.rootElRef.current,(e=this.cellElRefs.currentMap,t.tDateProfile.slotDates.map((function(t){var n=t.toISOString();return e[n]}))),t.dateProfile,t.tDateProfile,n.dateEnv,n.isRtl),t.onCoords&&t.onCoords(this.coords),this.scrollResponder.update(!1)))},t.prototype.positionToHit=function(e){var t=this.coords.outerCoordCache,n=this.context,r=n.dateEnv,o=n.isRtl,i=this.props.tDateProfile,s=t.leftToIndex(e);if(null!=s){var a=t.getWidth(s),l=o?(t.rights[s]-e)/a:(e-t.lefts[s])/a,u=Math.floor(l*i.snapsPerSlot),c=r.add(i.slotDates[s],Tr(i.snapDuration,u));return{dateSpan:{range:{start:c,end:r.add(c,i.snapDuration)},allDay:!this.props.tDateProfile.isTimeScale},dayEl:this.cellElRefs.currentMap[s],left:t.lefts[s],right:t.rights[s]}}return null},t}(ss);function fp(e,t,n){var r=[];if(n)for(var o=0,i=e;o<i.length;o++){var s=i[o],a=n.rangeToCoords(s),l=Math.round(a.start),u=Math.round(a.end);u-l<t&&(u=l+t),r.push({start:l,end:u})}return r}var pp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=[].concat(e.eventResizeSegs,e.dateSelectionSegs);return e.timelineCoords&&mn("div",{className:"fc-timeline-bg"},this.renderSegs(e.businessHourSegs||[],e.timelineCoords,"non-business"),this.renderSegs(e.bgEventSegs||[],e.timelineCoords,"bg-event"),this.renderSegs(t,e.timelineCoords,"highlight"))},t.prototype.renderSegs=function(e,t,n){var r=this.props,o=r.todayRange,i=r.nowDate,s=this.context.isRtl,a=fp(e,0,t),l=e.map((function(e,t){var r=ap(a[t],s);return mn("div",{key:Jo(e.eventRange),className:"fc-timeline-bg-harness",style:r},"bg-event"===n?mn(kl,Ue({seg:e},Xo(e,o,i))):Cl(n))}));return mn(_n,null,l)},t}(ss),hp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.sliceRange=function(e,t,n,r,o){var i=function(e,t,n){if(!t.isTimeScale&&(e=Io(e),t.largeUnit)){var r=e;((e={start:n.startOf(e.start,t.largeUnit),end:n.startOf(e.end,t.largeUnit)}).end.valueOf()!==r.end.valueOf()||e.end<=e.start)&&(e={start:e.start,end:n.add(e.end,t.slotDuration)})}return e}(e,r,o),s=[];if(ip(i.start,r,o)<ip(i.end,r,o)){var a=Po(i,r.normalizedRange);a&&s.push({start:a.start,end:a.end,isStart:a.start.valueOf()===i.start.valueOf()&&Gf(a.start,r,t,n),isEnd:a.end.valueOf()===i.end.valueOf()&&Gf(Xn(a.end,-1),r,t,n)})}return s},t}(Fa),gp=to({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"}),vp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props;return mn(gl,Ue({},e,{extraClassNames:["fc-timeline-event","fc-h-event"],defaultTimeFormat:gp,defaultDisplayEventTime:!e.isTimeScale}))},t}(ss),mp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=bn(),t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,r=t.hiddenSegs,o=t.elRef,i=t.placement,s=t.resourceId,a=i.top,l=i.hcoords,u=l&&null!==a,c=ap(l,n.isRtl),d=s?{resourceId:s}:{};return mn(Tl,{allDayDate:null,moreCnt:r.length,allSegs:r,hiddenSegs:r,alignmentElRef:this.rootElRef,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:d,popoverContent:function(){return mn(_n,null,r.map((function(e){var n=e.eventRange.instance.instanceId;return mn("div",{key:n,style:{visibility:t.isForcedInvisible[n]?"hidden":""}},mn(vp,Ue({isTimeScale:t.isTimeScale,seg:e,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:n===t.eventSelection},Xo(e,t.todayRange,t.nowDate))))})))}},(function(t,n,r,i,s,l,d,f){return mn("a",{ref:function(n){us(t,n),us(o,n),us(e.rootElRef,n)},className:["fc-timeline-more-link"].concat(n).join(" "),style:Ue({visibility:u?"":"hidden",top:a||0},c),onClick:s,title:l,"aria-expanded":d,"aria-controls":f},mn("div",{ref:r,className:"fc-timeline-more-link-inner fc-sticky"},i))}))},t}(ss),yp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slicer=new hp,t.sortEventSegs=Hr(qo),t.harnessElRefs=new Qa,t.moreElRefs=new Qa,t.innerElRef=bn(),t.state={eventInstanceHeights:{},moreLinkHeights:{}},t}return We(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=e.context,o=r.options,i=t.dateProfile,s=t.tDateProfile,a=this.slicer.sliceProps(t,i,s.isTimeScale?null:t.nextDayThreshold,r,i,r.dateProfileGenerator,s,r.dateEnv),l=(a.eventDrag?a.eventDrag.segs:null)||(a.eventResize?a.eventResize.segs:null)||[],u=this.sortEventSegs(a.fgEventSegs,o.eventOrder),c=function(e,t,n,r,o,i){for(var s=[],a=[],l=0;l<e.length;l+=1){var u=e[l],c=n[u.eventRange.instance.instanceId],d=t[l];c&&d?s.push({index:l,span:d,thickness:c}):a.push({seg:u,hcoords:d,top:null})}var f=new pa;null!=o&&(f.strictOrder=o),null!=i&&(f.maxStackCnt=i);var p=f.addSegs(s),h=p.map((function(t){return{seg:e[t.index],hcoords:t.span,top:null}})),g=va(p),v=[],m=[],y=function(t){return e[t.index]};for(l=0;l<g.length;l+=1){var b=g[l],_=b.entries.map(y);null!=(c=r[Or(Il(_))])?v.push({index:e.length+l,thickness:c,span:b.span}):m.push({seg:_,hcoords:b.span,top:null})}f.maxStackCnt=-1,f.addSegs(v);for(var w=[],C=0,k=0,S=f.toRects();k<S.length;k++){var E=S[k],x=E.index;w.push({seg:x<e.length?e[x]:g[x-e.length].entries.map(y),hcoords:E.span,top:E.levelCoord}),C=Math.max(C,E.levelCoord+E.thickness)}return[w.concat(a,h,m),C]}(u,fp(u,o.eventMinWidth,t.timelineCoords),n.eventInstanceHeights,n.moreLinkHeights,o.eventOrderStrict,o.eventMaxStack),d=c[0],f=c[1],p=(a.eventDrag?a.eventDrag.affectedInstances:null)||(a.eventResize?a.eventResize.affectedInstances:null)||{};return mn(_n,null,mn(pp,{businessHourSegs:a.businessHourSegs,bgEventSegs:a.bgEventSegs,timelineCoords:t.timelineCoords,eventResizeSegs:a.eventResize?a.eventResize.segs:[],dateSelectionSegs:a.dateSelectionSegs,nowDate:t.nowDate,todayRange:t.todayRange}),mn("div",{className:"fc-timeline-events fc-scrollgrid-sync-inner",ref:this.innerElRef,style:{height:f}},this.renderFgSegs(d,p,!1,!1,!1),this.renderFgSegs(function(e,t,n){if(!e.length||!t)return[];var r=function(e){for(var t={},n=0,r=e;n<r.length;n++){var o=r[n],i=o.seg;Array.isArray(i)||(t[i.eventRange.instance.instanceId]=o.top)}return t}(n);return e.map((function(e){return{seg:e,hcoords:t.rangeToCoords(e),top:r[e.eventRange.instance.instanceId]}}))}(l,t.timelineCoords,d),{},Boolean(a.eventDrag),Boolean(a.eventResize),!1)))},t.prototype.componentDidMount=function(){this.updateSize()},t.prototype.componentDidUpdate=function(e,t){e.eventStore===this.props.eventStore&&e.timelineCoords===this.props.timelineCoords&&t.moreLinkHeights===this.state.moreLinkHeights||this.updateSize()},t.prototype.updateSize=function(){var e=this.props,t=e.timelineCoords,n=this.innerElRef.current;e.onHeightChange&&e.onHeightChange(n,!1),t&&this.setState({eventInstanceHeights:pr(this.harnessElRefs.currentMap,(function(e){return Math.round(e.getBoundingClientRect().height)})),moreLinkHeights:pr(this.moreElRefs.currentMap,(function(e){return Math.round(e.getBoundingClientRect().height)}))},(function(){e.onHeightChange&&e.onHeightChange(n,!0)})),e.syncParentMinHeight&&(n.parentElement.style.minHeight=n.style.height)},t.prototype.renderFgSegs=function(e,t,n,r,o){var i=this,s=i.harnessElRefs,a=i.moreElRefs,l=i.props,u=i.context,c=n||r||o;return mn(_n,null,e.map((function(e){var i=e.seg,d=e.hcoords,f=e.top;if(Array.isArray(i)){var p=Or(Il(i));return mn(mp,{key:"m:"+p,elRef:a.createRef(p),hiddenSegs:i,placement:e,dateProfile:l.dateProfile,nowDate:l.nowDate,todayRange:l.todayRange,isTimeScale:l.tDateProfile.isTimeScale,eventSelection:l.eventSelection,resourceId:l.resourceId,isForcedInvisible:t})}var h=i.eventRange.instance.instanceId,g=c||Boolean(!t[h]&&d&&null!==f),v=ap(d,u.isRtl);return mn("div",{key:"e:"+h,ref:c?null:s.createRef(h),className:"fc-timeline-event-harness",style:Ue({visibility:g?"":"hidden",top:f||0},v)},mn(vp,Ue({isTimeScale:l.tDateProfile.isTimeScale,seg:i,isDragging:n,isResizing:r,isDateSelecting:o,isSelected:h===l.eventSelection},Xo(i,l.todayRange,l.nowDate))))})))},t}(ss);yp.addStateEquality({eventInstanceHeights:vr,moreLinkHeights:vr});var bp=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.slatsRef=bn(),t.state={coords:null},t.handeEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t.handleCoords=function(e){t.setState({coords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t}return We(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.state,o=t.context,i=o.options,s=n.dateProfile,a=n.tDateProfile,l=Ar(a.slotDuration).unit;return mn("div",{className:"fc-timeline-body",ref:this.handeEl,style:{minWidth:n.tableMinWidth,height:n.clientHeight,width:n.clientWidth}},mn(Ha,{unit:l},(function(t,l){return mn(_n,null,mn(dp,{ref:e.slatsRef,dateProfile:s,tDateProfile:a,nowDate:t,todayRange:l,clientWidth:n.clientWidth,tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,onCoords:e.handleCoords,onScrollLeftRequest:n.onScrollLeftRequest}),mn(yp,{dateProfile:s,tDateProfile:n.tDateProfile,nowDate:t,todayRange:l,nextDayThreshold:i.nextDayThreshold,businessHours:n.businessHours,eventStore:n.eventStore,eventUiBases:n.eventUiBases,dateSelection:n.dateSelection,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,timelineCoords:r.coords,syncParentMinHeight:!0}),i.nowIndicator&&r.coords&&r.coords.isDateInRange(t)&&mn("div",{className:"fc-timeline-now-indicator-container"},mn(ml,{isAxis:!1,date:t},(function(e,n,i,s){return mn("div",{ref:e,className:["fc-timeline-now-indicator-line"].concat(n).join(" "),style:sp(r.coords.dateToCoord(t),o.isRtl)},s)}))))})))},t.prototype.queryHit=function(e,t,n,r){var o=this.slatsRef.current.positionToHit(e);return o?{dateProfile:this.props.dateProfile,dateSpan:o.dateSpan,rect:{left:o.left,right:o.right,top:0,bottom:r},dayEl:o.dayEl,layer:0}:null},t}(cs),_p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildTimelineDateProfile=Hr(Vf),t.scrollGridRef=bn(),t.state={slatCoords:null,slotCushionMaxWidth:null},t.handleSlatCoords=function(e){t.setState({slatCoords:e})},t.handleScrollLeftRequest=function(e){t.scrollGridRef.current.forceScrollLeft(0,e)},t.handleMaxCushionWidth=function(e){t.setState({slotCushionMaxWidth:Math.ceil(e)})},t}return We(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.state,o=t.context,i=o.options,s=!n.forPrint&&dl(i),a=!n.forPrint&&fl(i),l=this.buildTimelineDateProfile(n.dateProfile,o.dateEnv,i,o.dateProfileGenerator),u=["fc-timeline",!1===i.eventOverlap?"fc-timeline-overlap-disabled":""],c=i.slotMinWidth,d=wp(l,c||this.computeFallbackSlotMinWidth(l)),f=[{type:"header",key:"header",isSticky:s,chunks:[{key:"timeline",content:function(t){return mn(lp,{dateProfile:n.dateProfile,clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,tDateProfile:l,slatCoords:r.slatCoords,onMaxCushionWidth:c?null:e.handleMaxCushionWidth})}}]},{type:"body",key:"body",liquid:!0,chunks:[{key:"timeline",content:function(t){return mn(bp,Ue({},n,{clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,tDateProfile:l,onSlatCoords:e.handleSlatCoords,onScrollLeftRequest:e.handleScrollLeftRequest}))}}]}];return a&&f.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"timeline",content:cl}]}),mn(ks,{viewSpec:o.viewSpec},(function(t,r){return mn("div",{ref:t,className:u.concat(r).join(" ")},mn($f,{ref:e.scrollGridRef,liquid:!n.isHeightAuto&&!n.forPrint,collapsibleWidth:!1,colGroups:[{cols:d}],sections:f}))}))},t.prototype.computeFallbackSlotMinWidth=function(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)},t}(cs);function wp(e,t){return[{span:e.slotCnt,minWidth:t||1}]}var Cp=ds({deps:[ec],initialView:"timelineDay",views:{timeline:{component:_p,usesMinMaxTime:!0,eventResizableFromStart:!0},timelineDay:{type:"timeline",duration:{days:1}},timelineWeek:{type:"timeline",duration:{weeks:1}},timelineMonth:{type:"timeline",duration:{months:1}},timelineYear:{type:"timeline",duration:{years:1}}}});
|
||
/*!
|
||
FullCalendar Scheduler v5.11.5
|
||
Docs & License: https://fullcalendar.io/scheduler
|
||
(c) 2022 Adam Shaw
|
||
*/function kp(e,t){var n=e.resourceEditable;if(null==n){var r=e.sourceId&&t.getCurrentData().eventSources[e.sourceId];r&&(n=r.extendedProps.resourceEditable),null==n&&null==(n=t.options.eventResourceEditable)&&(n=t.options.editable)}return n}var Sp=function(){function e(){this.filterResources=Hr(Ep)}return e.prototype.transform=function(e,t){return t.viewSpec.optionDefaults.needsResourceData?{resourceStore:this.filterResources(t.resourceStore,t.options.filterResourcesWithEvents,t.eventStore,t.dateProfile.activeRange),resourceEntityExpansions:t.resourceEntityExpansions}:null},e}();function Ep(e,t,n,r){if(t){var o=function(e,t){return fr(e,(function(e){return Lo(e.range,t)}))}(n.instances,r),i=function(e,t){var n={};for(var r in e)for(var o=0,i=t[e[r].defId].resourceIds;o<i.length;o++){n[i[o]]=!0}return n}(o,n.defs);return Ue(i,function(e,t){var n={};for(var r in e)for(var o=void 0;(o=t[r])&&(r=o.parentId);)n[r]=!0;return n}(i,e)),fr(e,(function(e,t){return i[t]}))}return e}var xp=function(){function e(){this.buildResourceEventUis=Hr(Rp,vr),this.injectResourceEventUis=Hr(Dp)}return e.prototype.transform=function(e,t){return t.viewSpec.optionDefaults.needsResourceData?null:{eventUiBases:this.injectResourceEventUis(e.eventUiBases,e.eventStore.defs,this.buildResourceEventUis(t.resourceStore))}},e}();function Rp(e){return pr(e,(function(e){return e.ui}))}function Dp(e,t,n){return pr(e,(function(e,r){return r?function(e,t,n){for(var r=[],o=0,i=t.resourceIds;o<i.length;o++){var s=i[o];n[s]&&r.unshift(n[s])}return r.unshift(e),Co(r)}(e,t[r],n):e}))}var Tp=[];function $p(e){Tp.push(e)}function Mp(e){return Tp[e]}function Ip(){return Tp}var Ap={id:String,resources:fo,url:String,method:String,startParam:String,endParam:String,timeZoneParam:String,extraParams:fo};function Op(e){var t;if("string"==typeof e?t={url:e}:"function"==typeof e||Array.isArray(e)?t={resources:e}:"object"==typeof e&&e&&(t=e),t){var n=co(t,Ap),r=n.refined;!function(e){for(var t in e)console.warn("Unknown resource prop '"+t+"'")}(n.extra);var o=function(e){for(var t=Ip(),n=t.length-1;n>=0;n-=1){var r=t[n].parseMeta(e);if(r)return{meta:r,sourceDefId:n}}return null}(r);if(o)return{_raw:e,sourceId:Wn(),sourceDefId:o.sourceDefId,meta:o.meta,publicId:r.id||"",isFetching:!1,latestFetchId:"",fetchRange:null}}return null}function Np(e,t,n){var r=n.options,o=n.dateProfile;if(!e||!t)return Pp(r.initialResources||r.resources,o.activeRange,r.refetchResourcesOnNavigate,n);switch(t.type){case"RESET_RESOURCE_SOURCE":return Pp(t.resourceSourceInput,o.activeRange,r.refetchResourcesOnNavigate,n);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return function(e,t,n,r){if(n&&!function(e){return Boolean(Mp(e.sourceDefId).ignoreRange)}(e)&&(!e.fetchRange||(o=e.fetchRange,i=t,(null===o.start?null:o.start.valueOf())!==(null===i.start?null:i.start.valueOf())||(null===o.end?null:o.end.valueOf())!==(null===i.end?null:i.end.valueOf()))))return Lp(e,t,r);var o,i;return e}(e,o.activeRange,r.refetchResourcesOnNavigate,n);case"RECEIVE_RESOURCES":case"RECEIVE_RESOURCE_ERROR":return function(e,t,n){if(t===e.latestFetchId)return Ue(Ue({},e),{isFetching:!1,fetchRange:n});return e}(e,t.fetchId,t.fetchRange);case"REFETCH_RESOURCES":return Lp(e,o.activeRange,n);default:return e}}function Pp(e,t,n,r){if(e){var o=Op(e);return o=Lp(o,n?t:null,r)}return null}function Lp(e,t,n){var r=Mp(e.sourceDefId),o=Wn();return r.fetch({resourceSource:e,range:t,context:n},(function(e){n.dispatch({type:"RECEIVE_RESOURCES",fetchId:o,fetchRange:t,rawResources:e.rawResources})}),(function(e){n.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:o,fetchRange:t,error:e})})),Ue(Ue({},e),{isFetching:!0,latestFetchId:o})}var Hp="_fc:",Wp={id:String,parentId:String,children:fo,title:String,businessHours:fo,extendedProps:fo,eventEditable:Boolean,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventConstraint:fo,eventOverlap:Boolean,eventAllow:fo,eventClassNames:yo,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String};function Up(e,t,n,r){void 0===t&&(t="");var o=co(e,Wp),i=o.refined,s=o.extra,a={id:i.id||Hp+Wn(),parentId:i.parentId||t,title:i.title||"",businessHours:i.businessHours?Mi(i.businessHours,r):null,ui:wo({editable:i.eventEditable,startEditable:i.eventStartEditable,durationEditable:i.eventDurationEditable,constraint:i.eventConstraint,overlap:i.eventOverlap,allow:i.eventAllow,classNames:i.eventClassNames,backgroundColor:i.eventBackgroundColor,borderColor:i.eventBorderColor,textColor:i.eventTextColor,color:i.eventColor},r),extendedProps:Ue(Ue({},s),i.extendedProps)};if(Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),n[a.id]);else if(n[a.id]=a,i.children)for(var l=0,u=i.children;l<u.length;l++){Up(u[l],a.id,n,r)}return a}function zp(e){return 0===e.indexOf(Hp)?"":e}function jp(e,t,n,r){if(!e||!t)return{};switch(t.type){case"RECEIVE_RESOURCES":return function(e,t,n,r,o){if(r.latestFetchId===n){for(var i={},s=0,a=t;s<a.length;s++){Up(a[s],"",i,o)}return i}return e}(e,t.rawResources,t.fetchId,n,r);case"ADD_RESOURCE":return o=e,i=t.resourceHash,Ue(Ue({},o),i);case"REMOVE_RESOURCE":return function(e,t){var n=Ue({},e);for(var r in delete n[t],n)n[r].parentId===t&&(n[r]=Ue(Ue({},n[r]),{parentId:""}));return n}(e,t.resourceId);case"SET_RESOURCE_PROP":return function(e,t,n,r){var o,i,s=e[t];if(s)return Ue(Ue({},e),((o={})[t]=Ue(Ue({},s),((i={})[n]=r,i)),o));return e}(e,t.resourceId,t.propName,t.propValue);case"SET_RESOURCE_EXTENDED_PROP":return function(e,t,n,r){var o,i,s=e[t];if(s)return Ue(Ue({},e),((o={})[t]=Ue(Ue({},s),{extendedProps:Ue(Ue({},s.extendedProps),(i={},i[n]=r,i))}),o));return e}(e,t.resourceId,t.propName,t.propValue);default:return e}var o,i}var Bp={resourceId:String,resourceIds:fo,resourceEditable:Boolean};var Fp=function(){function e(e,t){this._context=e,this._resource=t}return e.prototype.setProp=function(e,t){var n=this._resource;this._context.dispatch({type:"SET_RESOURCE_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)},e.prototype.setExtendedProp=function(e,t){var n=this._resource;this._context.dispatch({type:"SET_RESOURCE_EXTENDED_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)},e.prototype.sync=function(t){var n=this._context,r=t.id;this._resource=n.getCurrentData().resourceStore[r],n.emitter.trigger("resourceChange",{oldResource:new e(n,t),resource:this,revert:function(){var e;n.dispatch({type:"ADD_RESOURCE",resourceHash:(e={},e[r]=t,e)})}})},e.prototype.remove=function(){var e=this._context,t=this._resource,n=t.id;e.dispatch({type:"REMOVE_RESOURCE",resourceId:n}),e.emitter.trigger("resourceRemove",{resource:this,revert:function(){var r;e.dispatch({type:"ADD_RESOURCE",resourceHash:(r={},r[n]=t,r)})}})},e.prototype.getParent=function(){var t=this._context,n=this._resource.parentId;return n?new e(t,t.getCurrentData().resourceSource[n]):null},e.prototype.getChildren=function(){var t=this._resource.id,n=this._context,r=n.getCurrentData().resourceStore,o=[];for(var i in r)r[i].parentId===t&&o.push(new e(n,r[i]));return o},e.prototype.getEvents=function(){var e=this._resource.id,t=this._context,n=t.getCurrentData().eventStore,r=n.defs,o=n.instances,i=[];for(var s in o){var a=o[s],l=r[a.defId];-1!==l.resourceIds.indexOf(e)&&i.push(new hi(t,l,a))}return i},Object.defineProperty(e.prototype,"id",{get:function(){return zp(this._resource.id)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._resource.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventConstraint",{get:function(){return this._resource.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventOverlap",{get:function(){return this._resource.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventAllow",{get:function(){return this._resource.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventBackgroundColor",{get:function(){return this._resource.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventBorderColor",{get:function(){return this._resource.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventTextColor",{get:function(){return this._resource.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"eventClassNames",{get:function(){return this._resource.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._resource.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._resource,n=t.ui,r=this.id,o={};return r&&(o.id=r),t.title&&(o.title=t.title),e.collapseEventColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?o.eventColor=n.backgroundColor:(n.backgroundColor&&(o.eventBackgroundColor=n.backgroundColor),n.borderColor&&(o.eventBorderColor=n.borderColor)),n.textColor&&(o.eventTextColor=n.textColor),n.classNames.length&&(o.eventClassNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?Ue(o,t.extendedProps):o.extendedProps=t.extendedProps),o},e.prototype.toJSON=function(){return this.toPlainObject()},e}();pi.prototype.addResource=function(e,t){var n,r=this;void 0===t&&(t=!0);var o,i,s=this.getCurrentData();e instanceof Fp?((n={})[(i=e._resource).id]=i,o=n):i=Up(e,"",o={},s),this.dispatch({type:"ADD_RESOURCE",resourceHash:o}),t&&this.trigger("_scrollRequest",{resourceId:i.id});var a=new Fp(s,i);return s.emitter.trigger("resourceAdd",{resource:a,revert:function(){r.dispatch({type:"REMOVE_RESOURCE",resourceId:i.id})}}),a},pi.prototype.getResourceById=function(e){e=String(e);var t=this.getCurrentData();if(t.resourceStore){var n=t.resourceStore[e];if(n)return new Fp(t,n)}return null},pi.prototype.getResources=function(){var e=this.getCurrentData(),t=e.resourceStore,n=[];if(t)for(var r in t)n.push(new Fp(e,t[r]));return n},pi.prototype.getTopLevelResources=function(){var e=this.getCurrentData(),t=e.resourceStore,n=[];if(t)for(var r in t)t[r].parentId||n.push(new Fp(e,t[r]));return n},pi.prototype.refetchResources=function(){this.dispatch({type:"REFETCH_RESOURCES"})};var qp=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.getKeyInfo=function(e){return Ue({"":{}},e.resourceStore)},t.prototype.getKeysForDateSpan=function(e){return[e.resourceId||""]},t.prototype.getKeysForEventDef=function(e){var t=e.resourceIds;return t.length?t:[""]},t}(Ni);function Vp(e,t){return Ue(Ue({},t),{constraints:Yp(e,t.constraints)})}function Yp(e,t){return t.map((function(t){var n=t.defs;if(n)for(var r in n){var o=n[r].resourceIds;if(o.length&&-1===o.indexOf(e))return!1}return t}))}hi.prototype.getResources=function(){var e=this._context.calendarApi;return this._def.resourceIds.map((function(t){return e.getResourceById(t)}))},hi.prototype.setResources=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n],i=null;"string"==typeof o?i=o:"number"==typeof o?i=String(o):o instanceof Fp?i=o.id:console.warn("unknown resource type: "+o),i&&t.push(i)}this.mutate({standardProps:{resourceIds:t}})};var Gp={resources:function(e,t){t.getCurrentData().resourceSource._raw!==e&&t.dispatch({type:"RESET_RESOURCE_SOURCE",resourceSourceInput:e})}};var Zp=Un("id,title");var Kp={initialResources:fo,resources:fo,eventResourceEditable:Boolean,refetchResourcesOnNavigate:Boolean,resourceOrder:Un,filterResourcesWithEvents:Boolean,resourceGroupField:String,resourceAreaWidth:fo,resourceAreaColumns:fo,resourcesInitiallyExpanded:Boolean,datesAboveResources:Boolean,needsResourceData:Boolean,resourceAreaHeaderClassNames:fo,resourceAreaHeaderContent:fo,resourceAreaHeaderDidMount:fo,resourceAreaHeaderWillUnmount:fo,resourceGroupLabelClassNames:fo,resourceGroupLabelContent:fo,resourceGroupLabelDidMount:fo,resourceGroupLabelWillUnmount:fo,resourceLabelClassNames:fo,resourceLabelContent:fo,resourceLabelDidMount:fo,resourceLabelWillUnmount:fo,resourceLaneClassNames:fo,resourceLaneContent:fo,resourceLaneDidMount:fo,resourceLaneWillUnmount:fo,resourceGroupLaneClassNames:fo,resourceGroupLaneContent:fo,resourceGroupLaneDidMount:fo,resourceGroupLaneWillUnmount:fo},Xp={resourcesSet:fo,resourceAdd:fo,resourceChange:fo,resourceRemove:fo};function Jp(e){return mn(rs.Consumer,null,(function(t){var n=t.options,r={resource:new Fp(t,e.resource),date:e.date?t.dateEnv.toDate(e.date):null,view:t.viewApi},o={"data-resource-id":e.resource.id,"data-date":e.date?Nr(e.date):void 0};return mn(gs,{hookProps:r,classNames:n.resourceLabelClassNames,content:n.resourceLabelContent,defaultContent:Qp,didMount:n.resourceLabelDidMount,willUnmount:n.resourceLabelWillUnmount},(function(t,n,r,i){return e.children(t,n,o,r,i)}))}))}function Qp(e){return e.resource.title||e.resource.id}$p({ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.resources)?e.resources:null},fetch:function(e,t){t({rawResources:e.resourceSource.meta})}}),$p({parseMeta:function(e){return"function"==typeof e.resources?e.resources:null},fetch:function(e,t,n){var r=e.context.dateEnv,o=e.resourceSource.meta,i=e.range?{start:r.toDate(e.range.start),end:r.toDate(e.range.end),startStr:r.formatIso(e.range.start),endStr:r.formatIso(e.range.end),timeZone:r.timeZone}:{};Xi(o.bind(null,i),(function(e){t({rawResources:e})}),n)}}),$p({parseMeta:function(e){return e.url?{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams}:null},fetch:function(e,t,n){var r=e.resourceSource.meta,o=function(e,t,n){var r,o,i,s,a=n.dateEnv,l=n.options,u={};t&&(null==(r=e.startParam)&&(r=l.startParam),null==(o=e.endParam)&&(o=l.endParam),null==(i=e.timeZoneParam)&&(i=l.timeZoneParam),u[r]=a.formatIso(t.start),u[o]=a.formatIso(t.end),"local"!==a.timeZone&&(u[i]=a.timeZone));s="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};return Ue(u,s),u}(r,e.range,e.context);Gs(r.method,r.url,o,(function(e,n){t({rawResources:e,xhr:n})}),(function(e,t){n({message:e,xhr:t})}))}});var eh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props;return mn(Jp,{resource:e.resource,date:e.date},(function(t,n,r,o,i){return mn("th",Ue({ref:t,role:"columnheader",className:["fc-col-header-cell","fc-resource"].concat(n).join(" "),colSpan:e.colSpan},r),mn("div",{className:"fc-scrollgrid-sync-inner"},mn("span",{className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:o},i)))}))},t}(ss);function th(e,t,n){return e||Ia(t,n)}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildDateFormat=Hr(th),t}We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,r=this.buildDateFormat(n.options.dayHeaderFormat,t.datesRepDistinctDays,t.dates.length);return mn(Ha,{unit:"day"},(function(o,i){return 1===t.dates.length?e.renderResourceRow(t.resources,t.dates[0]):n.options.datesAboveResources?e.renderDayAndResourceRows(t.dates,r,i,t.resources):e.renderResourceAndDayRows(t.resources,t.dates,r,i)}))},t.prototype.renderResourceRow=function(e,t){var n=e.map((function(e){return mn(eh,{key:e.id,resource:e,colSpan:1,date:t})}));return this.buildTr(n,"resources")},t.prototype.renderDayAndResourceRows=function(e,t,n,r){for(var o=[],i=[],s=0,a=e;s<a.length;s++){var l=a[s];o.push(this.renderDateCell(l,t,n,r.length,null,!0));for(var u=0,c=r;u<c.length;u++){var d=c[u];i.push(mn(eh,{key:d.id+":"+l.toISOString(),resource:d,colSpan:1,date:l}))}}return mn(_n,null,this.buildTr(o,"day"),this.buildTr(i,"resources"))},t.prototype.renderResourceAndDayRows=function(e,t,n,r){for(var o=[],i=[],s=0,a=e;s<a.length;s++){var l=a[s];o.push(mn(eh,{key:l.id,resource:l,colSpan:t.length,isSticky:!0}));for(var u=0,c=t;u<c.length;u++){var d=c[u];i.push(this.renderDateCell(d,n,r,1,l))}}return mn(_n,null,this.buildTr(o,"resources"),this.buildTr(i,"day"))},t.prototype.renderDateCell=function(e,t,n,r,o,i){var s=this.props,a=o?":"+o.id:"",l=o?{resource:new Fp(this.context,o)}:{},u=o?{"data-resource-id":o.id}:{};return s.datesRepDistinctDays?mn(Na,{key:e.toISOString()+a,date:e,dateProfile:s.dateProfile,todayRange:n,colCnt:s.dates.length*s.resources.length,dayHeaderFormat:t,colSpan:r,isSticky:i,extraHookProps:l,extraDataAttrs:u}):mn(La,{key:e.getUTCDay()+a,dow:e.getUTCDay(),dayHeaderFormat:t,colSpan:r,isSticky:i,extraHookProps:l,extraDataAttrs:u})},t.prototype.buildTr=function(e,t){var n=this.props.renderIntro;return e.length||(e=[mn("td",{key:0}," ")]),mn("tr",{key:t,role:"row"},n&&n(t),e)}}(ss);var nh=function(e){for(var t={},n=[],r=0;r<e.length;r+=1){var o=e[r].id;n.push(o),t[o]=r}this.ids=n,this.indicesById=t,this.length=e.length},rh=function(){function e(e,t,n){this.dayTableModel=e,this.resources=t,this.context=n,this.resourceIndex=new nh(t),this.rowCnt=e.rowCnt,this.colCnt=e.colCnt*t.length,this.cells=this.buildCells()}return e.prototype.buildCells=function(){for(var e=this,t=e.rowCnt,n=e.dayTableModel,r=e.resources,o=[],i=0;i<t;i+=1){for(var s=[],a=0;a<n.colCnt;a+=1)for(var l=0;l<r.length;l+=1){var u=r[l],c={resource:new Fp(this.context,u)},d={"data-resource-id":u.id},f={resourceId:u.id},p=n.cells[i][a].date;s[this.computeCol(a,l)]={key:u.id+":"+p.toISOString(),date:p,extraHookProps:c,extraDataAttrs:d,extraClassNames:["fc-resource"],extraDateSpan:f}}o.push(s)}return o},e}();function oh(e,t,n,r,o,i){var s=function(e,t,n,r){var o=function(e,t){var n={};for(var r in e){var o=e[r];n[r]={resource:o,resourceFields:lh(o),children:[]}}for(var r in e){if((o=e[r]).parentId){var i=n[o.parentId];i&&ah(n[r],i.children,t)}}return n}(e,r),i=[];for(var s in o){var a=o[s];a.resource.parentId||sh(a,i,n,0,t,r)}return i}(e,r?-1:1,t,n),a=[];return ih(s,a,r,[],0,o,i),a}function ih(e,t,n,r,o,i,s){for(var a=0;a<e.length;a+=1){var l=e[a],u=l.group;if(u)if(n){var c=t.length,d=r.length;if(ih(l.children,t,n,r.concat(0),o,i,s),c<t.length){var f=t[c];(f.rowSpans=f.rowSpans.slice())[d]=t.length-c}}else{var p=null!=i[h=u.spec.field+":"+u.value]?i[h]:s;t.push({id:h,group:u,isExpanded:p}),p&&ih(l.children,t,n,r,o+1,i,s)}else if(l.resource){var h;p=null!=i[h=l.resource.id]?i[h]:s;t.push({id:h,rowSpans:r,depth:o,isExpanded:p,hasChildren:Boolean(l.children.length),resource:l.resource,resourceFields:l.resourceFields}),p&&ih(l.children,t,n,r,o+1,i,s)}}}function sh(e,t,n,r,o,i){if(n.length&&(-1===o||r<=o)){var s=function(e,t,n){var r,o,i=e.resourceFields[n.field];if(n.order)for(o=0;o<t.length;o+=1){if((a=t[o]).group){var s=Bn(i,a.group.value)*n.order;if(0===s){r=a;break}if(s<0)break}}else for(o=0;o<t.length;o+=1){var a;if((a=t[o]).group&&i===a.group.value){r=a;break}}r||(r={group:{value:i,spec:n},children:[]},t.splice(o,0,r));return r}(e,t,n[0]);sh(e,s.children,n.slice(1),r+1,o,i)}else ah(e,t,i)}function ah(e,t,n){var r;for(r=0;r<t.length;r+=1){if(zn(t[r].resourceFields,e.resourceFields,n)>0)break}t.splice(r,0,e)}function lh(e){var t=Ue(Ue(Ue({},e.extendedProps),e.ui),e);return delete t.ui,delete t.extendedProps,t}!function(e){function t(){return null!==e&&e.apply(this,arguments)||this}We(t,e),t.prototype.computeCol=function(e,t){return t*this.dayTableModel.colCnt+e},t.prototype.computeColRanges=function(e,t,n){return[{firstCol:this.computeCol(e,n),lastCol:this.computeCol(t,n),isStart:!0,isEnd:!0}]}}(rh),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}We(t,e),t.prototype.computeCol=function(e,t){return e*this.resources.length+t},t.prototype.computeColRanges=function(e,t,n){for(var r=[],o=e;o<=t;o+=1){var i=this.computeCol(o,n);r.push({firstCol:i,lastCol:i,isStart:o===e,isEnd:o===t})}return r}}(rh),function(e){function t(){return null!==e&&e.apply(this,arguments)||this}We(t,e),t.prototype.getKeyInfo=function(e){var t=e.resourceDayTableModel,n=pr(t.resourceIndex.indicesById,(function(e){return t.resources[e]}));return n[""]={},n},t.prototype.getKeysForDateSpan=function(e){return[e.resourceId||""]},t.prototype.getKeysForEventDef=function(e){var t=e.resourceIds;return t.length?t:[""]}}(Ni);var uh=ds({deps:[ec],reducers:[function(e,t,n){var r=Np(e&&e.resourceSource,t,n),o=jp(e&&e.resourceStore,t,r,n),i=function(e,t){var n;return e&&t?"SET_RESOURCE_ENTITY_EXPANDED"===t.type?Ue(Ue({},e),((n={})[t.id]=t.isExpanded,n)):e:{}}(e&&e.resourceEntityExpansions,t);return{resourceSource:r,resourceStore:o,resourceEntityExpansions:i}}],isLoadingFuncs:[function(e){return e.resourceSource&&e.resourceSource.isFetching}],eventRefiners:Bp,eventDefMemberAdders:[function(e){return{resourceIds:(t=e.resourceIds,(t||[]).map((function(e){return String(e)}))).concat(e.resourceId?[e.resourceId]:[]),resourceEditable:e.resourceEditable};var t}],isDraggableTransformers:[function(e,t,n,r){if(!e){var o=r.getCurrentData();if(o.viewSpecs[o.currentViewType].optionDefaults.needsResourceData&&kp(t,r))return!0}return e}],eventDragMutationMassagers:[function(e,t,n){var r=t.dateSpan.resourceId,o=n.dateSpan.resourceId;r&&o&&r!==o&&(e.resourceMutation={matchResourceId:r,setResourceId:o})}],eventDefMutationAppliers:[function(e,t,n){var r=t.resourceMutation;if(r&&kp(e,n)){var o=e.resourceIds.indexOf(r.matchResourceId);if(-1!==o){var i=e.resourceIds.slice();i.splice(o,1),-1===i.indexOf(r.setResourceId)&&i.push(r.setResourceId),e.resourceIds=i}}}],dateSelectionTransformers:[function(e,t){var n=e.dateSpan.resourceId,r=t.dateSpan.resourceId;return n&&r?{resourceId:n}:null}],datePointTransforms:[function(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}],dateSpanTransforms:[function(e,t){return e.resourceId?{resource:t.calendarApi.getResourceById(e.resourceId)}:{}}],viewPropsTransformers:[Sp,xp],isPropsValid:function(e,t){var n=(new qp).splitProps(Ue(Ue({},e),{resourceStore:t.getCurrentData().resourceStore}));for(var r in n){var o=n[r];if(r&&n[""]&&(o=Ue(Ue({},o),{eventStore:vo(n[""].eventStore,o.eventStore),eventUiBases:Ue(Ue({},n[""].eventUiBases),o.eventUiBases)})),!Va(o,t,{resourceId:r},Vp.bind(null,r)))return!1}return!0},externalDefTransforms:[function(e){return e.resourceId?{resourceId:e.resourceId}:{}}],eventDropTransformers:[function(e,t){var n=e.resourceMutation;if(n){var r=t.calendarApi;return{oldResource:r.getResourceById(n.matchResourceId),newResource:r.getResourceById(n.setResourceId)}}return{oldResource:null,newResource:null}}],optionChangeHandlers:Gp,optionRefiners:Kp,listenerRefiners:Xp,propSetHandlers:{resourceStore:function(e,t){var n=t.emitter;n.hasHandlers("resourcesSet")&&n.trigger("resourcesSet",function(e,t){var n=[];for(var r in e)n.push(new Fp(t,e[r]));return n}(e,t))}}});
|
||
/*!
|
||
FullCalendar Scheduler v5.11.5
|
||
Docs & License: https://fullcalendar.io/scheduler
|
||
(c) 2022 Adam Shaw
|
||
*/function ch(e){for(var t=e.depth,n=e.hasChildren,r=e.isExpanded,o=e.onExpanderClick,i=[],s=0;s<t;s+=1)i.push(mn("span",{className:"fc-icon"}));var a=["fc-icon"];return n&&(r?a.push("fc-icon-minus-square"):a.push("fc-icon-plus-square")),i.push(mn("span",{className:"fc-datagrid-expander"+(n?"":" fc-datagrid-expander-placeholder"),onClick:o},mn("span",{className:a.join(" ")}))),mn.apply(void 0,ze([_n,{}],i))}function dh(e){return{resource:new Fp(e.context,e.resource),fieldValue:e.fieldValue,view:e.context.viewApi}}var fh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props;return mn(ms,{hookProps:e.hookProps,content:e.colSpec.cellContent,defaultContent:ph},(function(e,t){return mn("span",{className:"fc-datagrid-cell-main",ref:e},t)}))},t}(ss);function ph(e){return e.fieldValue||mn(_n,null," ")}var hh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=Wr(dh),t.normalizeClassNames=_s(),t.onExpanderClick=function(e){var n=t.props;n.hasChildren&&t.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:n.resource.id,isExpanded:!n.isExpanded})},t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,r=t.colSpec,o=this.refineHookProps({resource:t.resource,fieldValue:t.fieldValue,context:n}),i=this.normalizeClassNames(r.cellClassNames,o);return mn(bs,{hookProps:o,didMount:r.cellDidMount,willUnmount:r.cellWillUnmount},(function(n){return mn("td",{ref:n,role:"gridcell","data-resource-id":t.resource.id,className:["fc-datagrid-cell","fc-resource"].concat(i).join(" ")},mn("div",{className:"fc-datagrid-cell-frame",style:{height:t.innerHeight}},mn("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},r.isMain&&mn(ch,{depth:t.depth,hasChildren:t.hasChildren,isExpanded:t.isExpanded,onExpanderClick:e.onExpanderClick}),mn(fh,{hookProps:o,colSpec:r}))))}))},t}(ss),gh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.colSpec,r={groupValue:e.fieldValue,view:t.viewApi};return mn(gs,{hookProps:r,classNames:n.cellClassNames,content:n.cellContent,defaultContent:vh,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},(function(t,n,r,o){return mn("td",{ref:t,role:"gridcell",rowSpan:e.rowSpan,className:["fc-datagrid-cell","fc-resource-group"].concat(n).join(" ")},mn("div",{className:"fc-datagrid-cell-frame fc-datagrid-cell-frame-liquid"},mn("div",{className:"fc-datagrid-cell-cushion fc-sticky",ref:r},o)))}))},t}(ss);function vh(e){return e.groupValue||mn(_n,null," ")}var mh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=e.resource,n=e.rowSpans,r=e.depth,o=lh(t);return mn("tr",{role:"row"},e.colSpecs.map((function(i,s){var a=n[s];if(0===a)return null;null==a&&(a=1);var l=i.field?o[i.field]:t.title||zp(t.id);return a>1?mn(gh,{key:s,colSpec:i,fieldValue:l,rowSpan:a}):mn(hh,{key:s,colSpec:i,resource:t,fieldValue:l,depth:r,hasChildren:e.hasChildren,isExpanded:e.isExpanded,innerHeight:e.innerHeight})})))},t}(ss);mh.addPropsEquality({rowSpans:Lr});var yh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerInnerRef=bn(),t.onExpanderClick=function(){var e=t.props;t.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:e.id,isExpanded:!e.isExpanded})},t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,r={groupValue:t.group.value,view:n.viewApi},o=t.group.spec;return mn("tr",{role:"row"},mn(gs,{hookProps:r,classNames:o.labelClassNames,content:o.labelContent,defaultContent:bh,didMount:o.labelDidMount,willUnmount:o.labelWillUnmount},(function(r,o,i,s){return mn("th",{ref:r,role:"columnheader",scope:"colgroup",colSpan:t.spreadsheetColCnt,className:["fc-datagrid-cell","fc-resource-group",n.theme.getClass("tableCellShaded")].concat(o).join(" ")},mn("div",{className:"fc-datagrid-cell-frame",style:{height:t.innerHeight}},mn("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:e.innerInnerRef},mn(ch,{depth:0,hasChildren:!0,isExpanded:t.isExpanded,onExpanderClick:e.onExpanderClick}),mn("span",{className:"fc-datagrid-cell-main",ref:i},s))))})))},t}(ss);function bh(e){return e.groupValue||mn(_n,null," ")}yh.addPropsEquality({group:function(e,t){return e.spec===t.spec&&e.value===t.value}});var _h=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.resizerElRefs=new Qa(t._handleColResizerEl.bind(t)),t.colDraggings={},t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.colSpecs,r=t.superHeaderRendering,o=t.rowInnerHeights,i={view:this.context.viewApi},s=[];if(o=o.slice(),r){var a=o.shift();s.push(mn("tr",{key:"row-super",role:"row"},mn(gs,{hookProps:i,classNames:r.headerClassNames,content:r.headerContent,didMount:r.headerDidMount,willUnmount:r.headerWillUnmount},(function(e,t,r,o){return mn("th",{ref:e,role:"columnheader",scope:"colgroup",colSpan:n.length,className:["fc-datagrid-cell","fc-datagrid-cell-super"].concat(t).join(" ")},mn("div",{className:"fc-datagrid-cell-frame",style:{height:a}},mn("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:r},o)))}))))}var l=o.shift();return s.push(mn("tr",{key:"row",role:"row"},n.map((function(t,r){var o=r===n.length-1;return mn(gs,{key:r,hookProps:i,classNames:t.headerClassNames,content:t.headerContent,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},(function(n,i,s,a){return mn("th",{ref:n,role:"columnheader",className:["fc-datagrid-cell"].concat(i).join(" ")},mn("div",{className:"fc-datagrid-cell-frame",style:{height:l}},mn("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},t.isMain&&mn("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},mn("span",{className:"fc-icon"})),mn("span",{className:"fc-datagrid-cell-main",ref:s},a)),!o&&mn("div",{className:"fc-datagrid-cell-resizer",ref:e.resizerElRefs.createRef(r)})))}))})))),mn(_n,null,s)},t.prototype._handleColResizerEl=function(e,t){var n,r=this.colDraggings;e?(n=this.initColResizing(e,parseInt(t,10)))&&(r[t]=n):(n=r[t])&&(n.destroy(),delete r[t])},t.prototype.initColResizing=function(e,t){var n=this.context,r=n.pluginHooks,o=n.isRtl,i=this.props.onColWidthChange,s=r.elementDraggingImpl;if(s){var a,l,u=new s(e);return u.emitter.on("dragstart",(function(){var n=Tn(Rn(e,"tr"),"th");l=n.map((function(e){return e.getBoundingClientRect().width})),a=l[t]})),u.emitter.on("dragmove",(function(e){l[t]=Math.max(a+e.deltaX*(o?-1:1),20),i&&i(l.slice())})),u.setAutoScrollEnabled(!1),u}return null},t}(ss),wh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n={resource:new Fp(t,e.resource)};return mn(ms,{hookProps:n,content:t.options.resourceLaneContent},(function(e,t){return t&&mn("div",{className:"fc-timeline-lane-misc",ref:e},t)}))},t}(ss),Ch=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=Wr(kh),t.normalizeClassNames=_s(),t.handleHeightChange=function(e,n){t.props.onHeightChange&&t.props.onHeightChange(Rn(e,"tr"),n)},t}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.context,r=n.options,o=this.refineHookProps({resource:t.resource,context:n}),i=this.normalizeClassNames(r.resourceLaneClassNames,o);return mn("tr",{ref:t.elRef},mn(bs,{hookProps:o,didMount:r.resourceLaneDidMount,willUnmount:r.resourceLaneWillUnmount},(function(n){return mn("td",{ref:n,className:["fc-timeline-lane","fc-resource"].concat(i).join(" "),"data-resource-id":t.resource.id},mn("div",{className:"fc-timeline-lane-frame",style:{height:t.innerHeight}},mn(wh,{resource:t.resource}),mn(yp,{dateProfile:t.dateProfile,tDateProfile:t.tDateProfile,nowDate:t.nowDate,todayRange:t.todayRange,nextDayThreshold:t.nextDayThreshold,businessHours:t.businessHours,eventStore:t.eventStore,eventUiBases:t.eventUiBases,dateSelection:t.dateSelection,eventSelection:t.eventSelection,eventDrag:t.eventDrag,eventResize:t.eventResize,timelineCoords:t.timelineCoords,onHeightChange:e.handleHeightChange,resourceId:t.resource.id})))})))},t}(ss);function kh(e){return{resource:new Fp(e.context,e.resource)}}var Sh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.props.renderingHooks,r={groupValue:t.groupValue,view:this.context.viewApi};return mn("tr",{ref:t.elRef},mn(gs,{hookProps:r,classNames:n.laneClassNames,content:n.laneContent,didMount:n.laneDidMount,willUnmount:n.laneWillUnmount},(function(n,r,o,i){return mn("td",{ref:n,className:["fc-timeline-lane","fc-resource-group",e.context.theme.getClass("tableCellShaded")].concat(r).join(" ")},mn("div",{style:{height:t.innerHeight},ref:o},i))})))},t}(ss),Eh=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.rowElRefs,r=e.innerHeights;return mn("tbody",null,e.rowNodes.map((function(o,i){if(o.group)return mn(Sh,{key:o.id,elRef:n.createRef(o.id),groupValue:o.group.value,renderingHooks:o.group.spec,innerHeight:r[i]||""});if(o.resource){var s=o.resource;return mn(Ch,Ue({key:o.id,elRef:n.createRef(o.id)},e.splitProps[s.id],{resource:s,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:t.options.nextDayThreshold,businessHours:s.businessHours||e.fallbackBusinessHours,innerHeight:r[i]||"",timelineCoords:e.slatCoords,onHeightChange:e.onRowHeightChange}))}return null})))},t}(ss),xh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=bn(),t.rowElRefs=new Qa,t}return We(t,e),t.prototype.render=function(){var e=this.props,t=this.context;return mn("table",{ref:this.rootElRef,"aria-hidden":!0,className:"fc-scrollgrid-sync-table "+t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth,height:e.minHeight}},mn(Eh,{rowElRefs:this.rowElRefs,rowNodes:e.rowNodes,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,splitProps:e.splitProps,fallbackBusinessHours:e.fallbackBusinessHours,slatCoords:e.slatCoords,innerHeights:e.innerHeights,onRowHeightChange:e.onRowHeightChange}))},t.prototype.componentDidMount=function(){this.updateCoords()},t.prototype.componentDidUpdate=function(){this.updateCoords()},t.prototype.componentWillUnmount=function(){this.props.onRowCoords&&this.props.onRowCoords(null)},t.prototype.updateCoords=function(){var e,t=this.props;t.onRowCoords&&null!==t.clientWidth&&this.props.onRowCoords(new Qi(this.rootElRef.current,(e=this.rowElRefs.currentMap,t.rowNodes.map((function(t){return e[t.id]}))),!1,!0))},t}(ss);var Rh=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.computeHasResourceBusinessHours=Hr(Dh),t.resourceSplitter=new qp,t.bgSlicer=new hp,t.slatsRef=bn(),t.state={slatCoords:null},t.handleEl=function(e){e?t.context.registerInteractiveComponent(t,{el:e}):t.context.unregisterInteractiveComponent(t)},t.handleSlatCoords=function(e){t.setState({slatCoords:e}),t.props.onSlatCoords&&t.props.onSlatCoords(e)},t.handleRowCoords=function(e){t.rowCoords=e,t.props.onRowCoords&&t.props.onRowCoords(e)},t}return We(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.state,o=t.context,i=n.dateProfile,s=n.tDateProfile,a=Ar(s.slotDuration).unit,l=this.computeHasResourceBusinessHours(n.rowNodes),u=this.resourceSplitter.splitProps(n),c=u[""],d=this.bgSlicer.sliceProps(c,i,s.isTimeScale?null:n.nextDayThreshold,o,i,o.dateProfileGenerator,s,o.dateEnv),f=r.slatCoords&&r.slatCoords.dateProfile===n.dateProfile?r.slatCoords:null;return mn("div",{ref:this.handleEl,className:["fc-timeline-body",n.expandRows?"fc-timeline-body-expandrows":""].join(" "),style:{minWidth:n.tableMinWidth}},mn(Ha,{unit:a},(function(t,r){return mn(_n,null,mn(dp,{ref:e.slatsRef,dateProfile:i,tDateProfile:s,nowDate:t,todayRange:r,clientWidth:n.clientWidth,tableColGroupNode:n.tableColGroupNode,tableMinWidth:n.tableMinWidth,onCoords:e.handleSlatCoords,onScrollLeftRequest:n.onScrollLeftRequest}),mn(pp,{businessHourSegs:l?null:d.businessHourSegs,bgEventSegs:d.bgEventSegs,timelineCoords:f,eventResizeSegs:d.eventResize?d.eventResize.segs:[],dateSelectionSegs:d.dateSelectionSegs,nowDate:t,todayRange:r}),mn(xh,{rowNodes:n.rowNodes,dateProfile:i,tDateProfile:n.tDateProfile,nowDate:t,todayRange:r,splitProps:u,fallbackBusinessHours:l?n.businessHours:null,clientWidth:n.clientWidth,minHeight:n.expandRows?n.clientHeight:"",tableMinWidth:n.tableMinWidth,innerHeights:n.rowInnerHeights,slatCoords:f,onRowCoords:e.handleRowCoords,onRowHeightChange:n.onRowHeightChange}),o.options.nowIndicator&&f&&f.isDateInRange(t)&&mn("div",{className:"fc-timeline-now-indicator-container"},mn(ml,{isAxis:!1,date:t},(function(e,n,r,i){return mn("div",{ref:e,className:["fc-timeline-now-indicator-line"].concat(n).join(" "),style:sp(f.dateToCoord(t),o.isRtl)},i)}))))})))},t.prototype.queryHit=function(e,t){var n=this.rowCoords,r=n.topToIndex(t);if(null!=r){var o=this.props.rowNodes[r].resource;if(o){var i=this.slatsRef.current.positionToHit(e);if(i)return{dateProfile:this.props.dateProfile,dateSpan:{range:i.dateSpan.range,allDay:i.dateSpan.allDay,resourceId:o.id},rect:{left:i.left,right:i.right,top:n.tops[r],bottom:n.bottoms[r]},dayEl:i.dayEl,layer:0}}}return null},t}(cs);function Dh(e){for(var t=0,n=e;t<n.length;t++){var r=n[t].resource;if(r&&r.businessHours)return!0}return!1}var Th=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.scrollGridRef=bn(),t.timeBodyScrollerElRef=bn(),t.spreadsheetHeaderChunkElRef=bn(),t.rootElRef=bn(),t.ensureScrollGridResizeId=0,t.state={resourceAreaWidthOverride:null},t.ensureScrollGridResize=function(){t.ensureScrollGridResizeId&&clearTimeout(t.ensureScrollGridResizeId),t.ensureScrollGridResizeId=setTimeout((function(){t.scrollGridRef.current.handleSizing(!1)}),Ca.SCROLLGRID_RESIZE_INTERVAL+1)},t}return We(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=e.context,o=r.options,i=!t.forPrint&&dl(o),s=!t.forPrint&&fl(o),a=[{type:"header",key:"header",syncRowHeights:!0,isSticky:i,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:t.spreadsheetHeaderRows},{key:"divider",outerContent:mn("td",{role:"presentation",className:"fc-resource-timeline-divider "+r.theme.getClass("tableCellShaded")})},{key:"timeline",content:t.timeHeaderContent}]},{type:"body",key:"body",syncRowHeights:!0,liquid:!0,expandRows:Boolean(o.expandRows),chunks:[{key:"datagrid",tableClassName:"fc-datagrid-body",rowContent:t.spreadsheetBodyRows},{key:"divider",outerContent:mn("td",{role:"presentation",className:"fc-resource-timeline-divider "+r.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:t.timeBodyContent}]}];s&&a.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:cl},{key:"divider",outerContent:mn("td",{role:"presentation",className:"fc-resource-timeline-divider "+r.theme.getClass("tableCellShaded")})},{key:"timeline",content:cl}]});var l=null!=n.resourceAreaWidthOverride?n.resourceAreaWidthOverride:o.resourceAreaWidth;return mn($f,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!t.isHeightAuto&&!t.forPrint,collapsibleWidth:!1,colGroups:[{cols:t.spreadsheetCols,width:l},{cols:[]},{cols:t.timeCols}],sections:a})},t.prototype.forceTimeScroll=function(e){this.scrollGridRef.current.forceScrollLeft(2,e)},t.prototype.forceResourceScroll=function(e){this.scrollGridRef.current.forceScrollTop(1,e)},t.prototype.getResourceScroll=function(){return this.timeBodyScrollerElRef.current.scrollTop},t.prototype.componentDidMount=function(){this.initSpreadsheetResizing()},t.prototype.componentWillUnmount=function(){this.destroySpreadsheetResizing()},t.prototype.initSpreadsheetResizing=function(){var e=this,t=this.context,n=t.isRtl,r=t.pluginHooks.elementDraggingImpl,o=this.spreadsheetHeaderChunkElRef.current;if(r){var i,s,a=this.rootElRef.current,l=this.spreadsheetResizerDragging=new r(a,".fc-resource-timeline-divider");l.emitter.on("dragstart",(function(){i=o.getBoundingClientRect().width,s=a.getBoundingClientRect().width})),l.emitter.on("dragmove",(function(t){var r=i+t.deltaX*(n?-1:1);r=Math.max(r,30),r=Math.min(r,s-30),e.setState({resourceAreaWidthOverride:r},e.ensureScrollGridResize)})),l.setAutoScrollEnabled(!1)}},t.prototype.destroySpreadsheetResizing=function(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()},t}(ss),$h=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.processColOptions=Hr(Oh),r.buildTimelineDateProfile=Hr(Vf),r.hasNesting=Hr(Ah),r.buildRowNodes=Hr(oh),r.layoutRef=bn(),r.rowNodes=[],r.renderedRowNodes=[],r.buildRowIndex=Hr(Mh),r.handleSlatCoords=function(e){r.setState({slatCoords:e})},r.handleRowCoords=function(e){r.rowCoords=e,r.scrollResponder.update(!1)},r.handleMaxCushionWidth=function(e){r.setState({slotCushionMaxWidth:Math.ceil(e)})},r.handleScrollLeftRequest=function(e){r.layoutRef.current.forceTimeScroll(e)},r.handleScrollRequest=function(e){var t=r.rowCoords,n=r.layoutRef.current,o=e.rowId||e.resourceId;if(t){if(o){var i=r.buildRowIndex(r.renderedRowNodes)[o];if(null!=i){var s=null!=e.fromBottom?t.bottoms[i]-e.fromBottom:t.tops[i];n.forceResourceScroll(s)}}return!0}return null},r.handleColWidthChange=function(e){r.setState({spreadsheetColWidths:e})},r.state={resourceAreaWidth:n.options.resourceAreaWidth,spreadsheetColWidths:[]},r}return We(t,e),t.prototype.render=function(){var e=this,t=this,n=t.props,r=t.state,o=t.context,i=o.options,s=o.viewSpec,a=this.processColOptions(o.options),l=a.superHeaderRendering,u=a.groupSpecs,c=a.orderSpecs,d=a.isVGrouping,f=a.colSpecs,p=this.buildTimelineDateProfile(n.dateProfile,o.dateEnv,i,o.dateProfileGenerator),h=this.rowNodes=this.buildRowNodes(n.resourceStore,u,c,d,n.resourceEntityExpansions,i.resourcesInitiallyExpanded),g=["fc-resource-timeline",this.hasNesting(h)?"":"fc-resource-timeline-flat","fc-timeline",!1===i.eventOverlap?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled"],v=i.slotMinWidth,m=wp(p,v||this.computeFallbackSlotMinWidth(p));return mn(ks,{viewSpec:s},(function(t,i){return mn("div",{ref:t,className:g.concat(i).join(" ")},mn(Th,{ref:e.layoutRef,forPrint:n.forPrint,isHeightAuto:n.isHeightAuto,spreadsheetCols:Ih(f,r.spreadsheetColWidths,""),spreadsheetHeaderRows:function(t){return mn(_h,{superHeaderRendering:l,colSpecs:f,onColWidthChange:e.handleColWidthChange,rowInnerHeights:t.rowSyncHeights})},spreadsheetBodyRows:function(t){return mn(_n,null,e.renderSpreadsheetRows(h,f,t.rowSyncHeights))},timeCols:m,timeHeaderContent:function(t){return mn(lp,{clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,dateProfile:n.dateProfile,tDateProfile:p,slatCoords:r.slatCoords,rowInnerHeights:t.rowSyncHeights,onMaxCushionWidth:v?null:e.handleMaxCushionWidth})},timeBodyContent:function(t){return mn(Rh,{dateProfile:n.dateProfile,clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,expandRows:t.expandRows,tDateProfile:p,rowNodes:h,businessHours:n.businessHours,dateSelection:n.dateSelection,eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:n.eventSelection,eventDrag:n.eventDrag,eventResize:n.eventResize,resourceStore:n.resourceStore,nextDayThreshold:o.options.nextDayThreshold,rowInnerHeights:t.rowSyncHeights,onSlatCoords:e.handleSlatCoords,onRowCoords:e.handleRowCoords,onScrollLeftRequest:e.handleScrollLeftRequest,onRowHeightChange:t.reportRowHeightChange})}}))}))},t.prototype.renderSpreadsheetRows=function(e,t,n){return e.map((function(e,r){return e.group?mn(yh,{key:e.id,id:e.id,spreadsheetColCnt:t.length,isExpanded:e.isExpanded,group:e.group,innerHeight:n[r]||""}):e.resource?mn(mh,{key:e.id,colSpecs:t,rowSpans:e.rowSpans,depth:e.depth,isExpanded:e.isExpanded,hasChildren:e.hasChildren,resource:e.resource,innerHeight:n[r]||""}):null}))},t.prototype.componentDidMount=function(){this.renderedRowNodes=this.rowNodes,this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)},t.prototype.getSnapshotBeforeUpdate=function(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}},t.prototype.componentDidUpdate=function(e,t,n){this.renderedRowNodes=this.rowNodes,this.scrollResponder.update(e.dateProfile!==this.props.dateProfile),n.resourceScroll&&this.handleScrollRequest(n.resourceScroll)},t.prototype.componentWillUnmount=function(){this.scrollResponder.detach()},t.prototype.computeFallbackSlotMinWidth=function(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)},t.prototype.queryResourceScroll=function(){var e=this.rowCoords,t=this.renderedRowNodes;if(e){for(var n=this.layoutRef.current,r=e.bottoms,o=n.getResourceScroll(),i={},s=0;s<r.length;s+=1){var a=t[s],l=r[s]-o;if(l>0){i.rowId=a.id,i.fromBottom=l;break}}return i}return null},t}(ss);function Mh(e){for(var t={},n=0;n<e.length;n+=1)t[e[n].id]=n;return t}function Ih(e,t,n){return void 0===n&&(n=""),e.map((function(e,r){return{className:e.isMain?"fc-main-col":"",width:t[r]||e.width||n}}))}function Ah(e){for(var t=0,n=e;t<n.length;t++){var r=n[t];if(r.group)return!0;if(r.resource&&r.hasChildren)return!0}return!1}function Oh(e){var t=e.resourceAreaColumns||[],n=null;t.length?e.resourceAreaHeaderContent&&(n={headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent,headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount}):t.push({headerClassNames:e.resourceAreaHeaderClassNames,headerContent:e.resourceAreaHeaderContent||"Resources",headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount});for(var r=[],o=[],i=[],s=!1,a=0,l=t;a<l.length;a++){var u=l[a];u.group?o.push(Ue(Ue({},u),{cellClassNames:u.cellClassNames||e.resourceGroupLabelClassNames,cellContent:u.cellContent||e.resourceGroupLabelContent,cellDidMount:u.cellDidMount||e.resourceGroupLabelDidMount,cellWillUnmount:u.cellWillUnmount||e.resourceGroupLaneWillUnmount})):r.push(u)}var c=r[0];if(c.isMain=!0,c.cellClassNames=c.cellClassNames||e.resourceLabelClassNames,c.cellContent=c.cellContent||e.resourceLabelContent,c.cellDidMount=c.cellDidMount||e.resourceLabelDidMount,c.cellWillUnmount=c.cellWillUnmount||e.resourceLabelWillUnmount,o.length)i=o,s=!0;else{var d=e.resourceGroupField;d&&i.push({field:d,labelClassNames:e.resourceGroupLabelClassNames,labelContent:e.resourceGroupLabelContent,labelDidMount:e.resourceGroupLabelDidMount,labelWillUnmount:e.resourceGroupLabelWillUnmount,laneClassNames:e.resourceGroupLaneClassNames,laneContent:e.resourceGroupLaneContent,laneDidMount:e.resourceGroupLaneDidMount,laneWillUnmount:e.resourceGroupLaneWillUnmount})}for(var f=[],p=0,h=e.resourceOrder||Zp;p<h.length;p++){for(var g=h[p],v=!1,m=0,y=i;m<y.length;m++){var b=y[m];if(b.field===g.field){b.order=g.order,v=!0;break}}v||f.push(g)}return{superHeaderRendering:n,isVGrouping:s,groupSpecs:i,colSpecs:o.concat(r),orderSpecs:f}}$h.addStateEquality({spreadsheetColWidths:Lr});var Nh=ds({deps:[ec,uh,Cp],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:$h,needsResourceData:!0,resourceAreaWidth:"30%",resourcesInitiallyExpanded:!0,eventResizableFromStart:!0},resourceTimelineDay:{type:"resourceTimeline",duration:{days:1}},resourceTimelineWeek:{type:"resourceTimeline",duration:{weeks:1}},resourceTimelineMonth:{type:"resourceTimeline",duration:{months:1}},resourceTimelineYear:{type:"resourceTimeline",duration:{years:1}}}}),Ph={code:"fr",week:{dow:1,doy:4},buttonText:{prev:"Précédent",next:"Suivant",today:"Aujourd'hui",year:"Année",month:"Mois",week:"Semaine",day:"Jour",list:"Planning"},weekText:"Sem.",allDayText:"Toute la journée",moreLinkText:"en plus",noEventsText:"Aucun événement à afficher"};function Lh(e){document.body.style.paddingRight=e>0?`${e}px`:null}function Hh(){const e=function(){let e=document.createElement("div");e.style.position="absolute",e.style.top="-9999px",e.style.width="50px",e.style.height="50px",e.style.overflow="scroll",document.body.appendChild(e);const t=e.offsetWidth-e.clientWidth;return document.body.removeChild(e),t}(),t=document.querySelectorAll(".fixed-top, .fixed-bottom, .is-fixed, .sticky-top")[0],n=t?parseInt(t.style.paddingRight||0,10):0;window&&document.body.clientWidth<window.innerWidth&&Lh(n+e)}function Wh(e,...t){return e.addEventListener(...t),()=>e.removeEventListener(...t)}function Uh(e){let t="";if("string"==typeof e||"number"==typeof e)t+=e;else if("object"==typeof e)if(Array.isArray(e))t=e.map(Uh).filter(Boolean).join(" ");else for(let n in e)e[n]&&(t&&(t+=" "),t+=n);return t}function zh(...e){return e.map(Uh).filter(Boolean).join(" ")}function jh(e){if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),o=Number.parseFloat(n);return r||o?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0}function Bh(){return"xxxxxxxx-xxxx-4xxx-yxxx-xxxxxxxxxxxx".replace(/[xy]/g,(e=>{const t=16*Math.random()|0;return("x"==e?t:3&t|8).toString(16)}))}function Fh(e){e.style.display="block";return{duration:jh(e),tick:t=>{0===t&&e.classList.add("show")}}}function qh(e){e.classList.remove("show");return{duration:jh(e),tick:t=>{0===t&&(e.style.display="none")}}}function Vh(e){e.style.display="block";return{duration:jh(e),tick:t=>{t>0&&e.classList.add("show")}}}function Yh(e){e.classList.remove("show");return{duration:jh(e),tick:t=>{1===t&&(e.style.display="none")}}}function Gh(e,{delay:n=0,duration:r=400,easing:o=t}={}){const i=+getComputedStyle(e).opacity;return{delay:n,duration:r,easing:o,css:e=>"opacity: "+e*i}}function Zh(e){let t,r,o,i;const s=[Jh,Xh],a=[];function l(e,t){return e[0]?0:1}r=l(e),o=a[r]=s[r](e);let u=[e[3],{class:e[2]}],c={};for(let e=0;e<u.length;e+=1)c=n(c,u[e]);return{c(){t=$("span"),o.c(),W(t,c)},m(e,n){R(e,t,n),a[r].m(t,null),i=!0},p(e,n){let d=r;r=l(e),r===d?a[r].p(e,n):(_e(),ke(a[d],1,1,(()=>{a[d]=null})),we(),o=a[r],o?o.p(e,n):(o=a[r]=s[r](e),o.c()),Ce(o,1),o.m(t,null)),W(t,c=De(u,[8&n&&e[3],(!i||4&n)&&{class:e[2]}]))},i(e){i||(Ce(o),i=!0)},o(e){ke(o),i=!1},d(e){e&&D(t),a[r].d()}}}function Kh(e){let t,r,o,i;const s=[eg,Qh],a=[];function l(e,t){return e[0]?0:1}r=l(e),o=a[r]=s[r](e);let u=[e[3],{href:e[1]},{class:e[2]}],c={};for(let e=0;e<u.length;e+=1)c=n(c,u[e]);return{c(){t=$("a"),o.c(),W(t,c)},m(e,n){R(e,t,n),a[r].m(t,null),i=!0},p(e,n){let d=r;r=l(e),r===d?a[r].p(e,n):(_e(),ke(a[d],1,1,(()=>{a[d]=null})),we(),o=a[r],o?o.p(e,n):(o=a[r]=s[r](e),o.c()),Ce(o,1),o.m(t,null)),W(t,c=De(u,[8&n&&e[3],(!i||2&n)&&{href:e[1]},(!i||4&n)&&{class:e[2]}]))},i(e){i||(Ce(o),i=!0)},o(e){ke(o),i=!1},d(e){e&&D(t),a[r].d()}}}function Xh(e){let t;const n=e[8].default,r=c(n,e,e[7],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,o){r&&r.p&&(!t||128&o)&&p(r,n,e,e[7],t?f(n,e[7],o,null):h(e[7]),null)},i(e){t||(Ce(r,e),t=!0)},o(e){ke(r,e),t=!1},d(e){r&&r.d(e)}}}function Jh(t){let n;return{c(){n=I(t[0])},m(e,t){R(e,n,t)},p(e,t){1&t&&U(n,e[0])},i:e,o:e,d(e){e&&D(n)}}}function Qh(e){let t;const n=e[8].default,r=c(n,e,e[7],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,o){r&&r.p&&(!t||128&o)&&p(r,n,e,e[7],t?f(n,e[7],o,null):h(e[7]),null)},i(e){t||(Ce(r,e),t=!0)},o(e){ke(r,e),t=!1},d(e){r&&r.d(e)}}}function eg(t){let n;return{c(){n=I(t[0])},m(e,t){R(e,n,t)},p(e,t){1&t&&U(n,e[0])},i:e,o:e,d(e){e&&D(n)}}}function tg(e){let t,n,r,o;const i=[Kh,Zh],s=[];function a(e,t){return e[1]?0:1}return t=a(e),n=s[t]=i[t](e),{c(){n.c(),r=O()},m(e,n){s[t].m(e,n),R(e,r,n),o=!0},p(e,[o]){let l=t;t=a(e),t===l?s[t].p(e,o):(_e(),ke(s[l],1,1,(()=>{s[l]=null})),we(),n=s[t],n?n.p(e,o):(n=s[t]=i[t](e),n.c()),Ce(n,1),n.m(r.parentNode,r))},i(e){o||(Ce(n),o=!0)},o(e){ke(n),o=!1},d(e){s[t].d(e),e&&D(r)}}}function ng(e,t,r){let o;const i=["class","children","color","href","pill"];let s=v(t,i),{$$slots:a={},$$scope:l}=t,{class:u=""}=t,{children:c}=t,{color:d="secondary"}=t,{href:f}=t,{pill:p=!1}=t;return e.$$set=e=>{t=n(n({},t),g(e)),r(3,s=v(t,i)),"class"in e&&r(4,u=e.class),"children"in e&&r(0,c=e.children),"color"in e&&r(5,d=e.color),"href"in e&&r(1,f=e.href),"pill"in e&&r(6,p=e.pill),"$$scope"in e&&r(7,l=e.$$scope)},e.$$.update=()=>{112&e.$$.dirty&&r(2,o=zh(u,"badge",`bg-${d}`,!!p&&"rounded-pill"))},[c,f,o,s,u,d,p,l,a]}class rg extends Ne{constructor(e){super(),Oe(this,e,ng,tg,a,{class:4,children:0,color:5,href:1,pill:6})}}function og(e){let t,r,o,i,s;const a=e[19].default,l=c(a,e,e[18],null),u=l||function(e){let t,n,r,o;const i=[ag,sg],s=[];function a(e,t){return e[1]?0:1}return t=a(e),n=s[t]=i[t](e),{c(){n.c(),r=O()},m(e,n){s[t].m(e,n),R(e,r,n),o=!0},p(e,o){let l=t;t=a(e),t===l?s[t].p(e,o):(_e(),ke(s[l],1,1,(()=>{s[l]=null})),we(),n=s[t],n?n.p(e,o):(n=s[t]=i[t](e),n.c()),Ce(n,1),n.m(r.parentNode,r))},i(e){o||(Ce(n),o=!0)},o(e){ke(n),o=!1},d(e){s[t].d(e),e&&D(r)}}}(e);let d=[e[9],{class:e[7]},{disabled:e[2]},{value:e[5]},{"aria-label":r=e[8]||e[6]},{style:e[4]}],g={};for(let e=0;e<d.length;e+=1)g=n(g,d[e]);return{c(){t=$("button"),u&&u.c(),W(t,g)},m(n,r){R(n,t,r),u&&u.m(t,null),t.autofocus&&t.focus(),e[23](t),o=!0,i||(s=N(t,"click",e[21]),i=!0)},p(e,n){l?l.p&&(!o||262144&n)&&p(l,a,e,e[18],o?f(a,e[18],n,null):h(e[18]),null):u&&u.p&&(!o||262146&n)&&u.p(e,o?n:-1),W(t,g=De(d,[512&n&&e[9],(!o||128&n)&&{class:e[7]},(!o||4&n)&&{disabled:e[2]},(!o||32&n)&&{value:e[5]},(!o||320&n&&r!==(r=e[8]||e[6]))&&{"aria-label":r},(!o||16&n)&&{style:e[4]}]))},i(e){o||(Ce(u,e),o=!0)},o(e){ke(u,e),o=!1},d(n){n&&D(t),u&&u.d(n),e[23](null),i=!1,s()}}}function ig(e){let t,r,o,i,s,a,l;const u=[ug,lg],c=[];function d(e,t){return e[1]?0:1}r=d(e),o=c[r]=u[r](e);let f=[e[9],{class:e[7]},{disabled:e[2]},{href:e[3]},{"aria-label":i=e[8]||e[6]},{style:e[4]}],p={};for(let e=0;e<f.length;e+=1)p=n(p,f[e]);return{c(){t=$("a"),o.c(),W(t,p)},m(n,o){R(n,t,o),c[r].m(t,null),e[22](t),s=!0,a||(l=N(t,"click",e[20]),a=!0)},p(e,n){let a=r;r=d(e),r===a?c[r].p(e,n):(_e(),ke(c[a],1,1,(()=>{c[a]=null})),we(),o=c[r],o?o.p(e,n):(o=c[r]=u[r](e),o.c()),Ce(o,1),o.m(t,null)),W(t,p=De(f,[512&n&&e[9],(!s||128&n)&&{class:e[7]},(!s||4&n)&&{disabled:e[2]},(!s||8&n)&&{href:e[3]},(!s||320&n&&i!==(i=e[8]||e[6]))&&{"aria-label":i},(!s||16&n)&&{style:e[4]}]))},i(e){s||(Ce(o),s=!0)},o(e){ke(o),s=!1},d(n){n&&D(t),c[r].d(),e[22](null),a=!1,l()}}}function sg(e){let t;const n=e[19].default,r=c(n,e,e[18],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,o){r&&r.p&&(!t||262144&o)&&p(r,n,e,e[18],t?f(n,e[18],o,null):h(e[18]),null)},i(e){t||(Ce(r,e),t=!0)},o(e){ke(r,e),t=!1},d(e){r&&r.d(e)}}}function ag(t){let n;return{c(){n=I(t[1])},m(e,t){R(e,n,t)},p(e,t){2&t&&U(n,e[1])},i:e,o:e,d(e){e&&D(n)}}}function lg(e){let t;const n=e[19].default,r=c(n,e,e[18],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,o){r&&r.p&&(!t||262144&o)&&p(r,n,e,e[18],t?f(n,e[18],o,null):h(e[18]),null)},i(e){t||(Ce(r,e),t=!0)},o(e){ke(r,e),t=!1},d(e){r&&r.d(e)}}}function ug(t){let n;return{c(){n=I(t[1])},m(e,t){R(e,n,t)},p(e,t){2&t&&U(n,e[1])},i:e,o:e,d(e){e&&D(n)}}}function cg(e){let t,n,r,o;const i=[ig,og],s=[];function a(e,t){return e[3]?0:1}return t=a(e),n=s[t]=i[t](e),{c(){n.c(),r=O()},m(e,n){s[t].m(e,n),R(e,r,n),o=!0},p(e,[o]){let l=t;t=a(e),t===l?s[t].p(e,o):(_e(),ke(s[l],1,1,(()=>{s[l]=null})),we(),n=s[t],n?n.p(e,o):(n=s[t]=i[t](e),n.c()),Ce(n,1),n.m(r.parentNode,r))},i(e){o||(Ce(n),o=!0)},o(e){ke(n),o=!1},d(e){s[t].d(e),e&&D(r)}}}function dg(e,t,r){let o,i,s;const a=["class","active","block","children","close","color","disabled","href","inner","outline","size","style","value","white"];let l=v(t,a),{$$slots:u={},$$scope:c}=t,{class:d=""}=t,{active:f=!1}=t,{block:p=!1}=t,{children:h}=t,{close:m=!1}=t,{color:y="secondary"}=t,{disabled:b=!1}=t,{href:_=""}=t,{inner:w}=t,{outline:C=!1}=t,{size:k=null}=t,{style:S=""}=t,{value:E=""}=t,{white:x=!1}=t;return e.$$set=e=>{r(24,t=n(n({},t),g(e))),r(9,l=v(t,a)),"class"in e&&r(10,d=e.class),"active"in e&&r(11,f=e.active),"block"in e&&r(12,p=e.block),"children"in e&&r(1,h=e.children),"close"in e&&r(13,m=e.close),"color"in e&&r(14,y=e.color),"disabled"in e&&r(2,b=e.disabled),"href"in e&&r(3,_=e.href),"inner"in e&&r(0,w=e.inner),"outline"in e&&r(15,C=e.outline),"size"in e&&r(16,k=e.size),"style"in e&&r(4,S=e.style),"value"in e&&r(5,E=e.value),"white"in e&&r(17,x=e.white),"$$scope"in e&&r(18,c=e.$$scope)},e.$$.update=()=>{r(8,o=t["aria-label"]),261120&e.$$.dirty&&r(7,i=zh(d,m?"btn-close":"btn",m||`btn${C?"-outline":""}-${y}`,!!k&&`btn-${k}`,!!p&&"d-block w-100",{active:f,"btn-close-white":m&&x})),8192&e.$$.dirty&&r(6,s=m?"Close":null)},t=g(t),[w,h,b,_,S,E,s,i,o,l,d,f,p,m,y,C,k,x,c,u,function(t){ne.call(this,e,t)},function(t){ne.call(this,e,t)},function(e){oe[e?"unshift":"push"]((()=>{w=e,r(0,w)}))},function(e){oe[e?"unshift":"push"]((()=>{w=e,r(0,w)}))}]}class fg extends Ne{constructor(e){super(),Oe(this,e,dg,cg,a,{class:10,active:11,block:12,children:1,close:13,color:14,disabled:2,href:3,inner:0,outline:15,size:16,style:4,value:5,white:17})}}function pg(t){let r,o=[t[1],{class:t[0]}],i={};for(let e=0;e<o.length;e+=1)i=n(i,o[e]);return{c(){r=$("i"),W(r,i)},m(e,t){R(e,r,t)},p(e,[t]){W(r,i=De(o,[2&t&&e[1],1&t&&{class:e[0]}]))},i:e,o:e,d(e){e&&D(r)}}}function hg(e,t,r){let o;const i=["class","name"];let s=v(t,i),{class:a=""}=t,{name:l=""}=t;return e.$$set=e=>{t=n(n({},t),g(e)),r(1,s=v(t,i)),"class"in e&&r(2,a=e.class),"name"in e&&r(3,l=e.name)},e.$$.update=()=>{12&e.$$.dirty&&r(0,o=zh(a,`bi-${l}`))},[o,s,a,l]}class gg extends Ne{constructor(e){super(),Oe(this,e,hg,pg,a,{class:2,name:3})}}function vg(e){let t,n;const r=e[1].default,o=c(r,e,e[0],null);return{c(){t=$("div"),o&&o.c()},m(e,r){R(e,t,r),o&&o.m(t,null),n=!0},p(e,[t]){o&&o.p&&(!n||1&t)&&p(o,r,e,e[0],n?f(r,e[0],t,null):h(e[0]),null)},i(e){n||(Ce(o,e),n=!0)},o(e){ke(o,e),n=!1},d(e){e&&D(t),o&&o.d(e)}}}function mg(e,t,n){let{$$slots:r={},$$scope:o}=t;return e.$$set=e=>{"$$scope"in e&&n(0,o=e.$$scope)},[o,r]}class yg extends Ne{constructor(e){super(),Oe(this,e,mg,vg,a,{})}}function bg(e){let t,r,o,i,s,a,l=[e[4],{class:e[3]}],u={};for(let e=0;e<l.length;e+=1)u=n(u,l[e]);return{c(){t=$("div"),W(t,u),j(t,"fade",e[1])},m(n,r){R(n,t,r),i=!0,s||(a=N(t,"click",e[6]),s=!0)},p(e,n){W(t,u=De(l,[16&n&&e[4],(!i||8&n)&&{class:e[3]}])),j(t,"fade",e[1])},i(e){i||(ue((()=>{i&&(o&&o.end(1),r=Ee(t,Fh,{}),r.start())})),i=!0)},o(e){r&&r.invalidate(),o=xe(t,qh,{}),i=!1},d(e){e&&D(t),e&&o&&o.end(),s=!1,a()}}}function _g(e){let t,n,r=e[0]&&e[2]&&bg(e);return{c(){r&&r.c(),t=O()},m(e,o){r&&r.m(e,o),R(e,t,o),n=!0},p(e,[n]){e[0]&&e[2]?r?(r.p(e,n),5&n&&Ce(r,1)):(r=bg(e),r.c(),Ce(r,1),r.m(t.parentNode,t)):r&&(_e(),ke(r,1,1,(()=>{r=null})),we())},i(e){n||(Ce(r),n=!0)},o(e){ke(r),n=!1},d(e){r&&r.d(e),e&&D(t)}}}function wg(e,t,r){let o;const i=["class","isOpen","fade"];let s=v(t,i),{class:a=""}=t,{isOpen:l=!1}=t,{fade:u=!0}=t,c=!1;return Q((()=>{r(2,c=!0)})),e.$$set=e=>{t=n(n({},t),g(e)),r(4,s=v(t,i)),"class"in e&&r(5,a=e.class),"isOpen"in e&&r(0,l=e.isOpen),"fade"in e&&r(1,u=e.fade)},e.$$.update=()=>{32&e.$$.dirty&&r(3,o=zh(a,"modal-backdrop"))},[l,u,c,o,s,a,function(t){ne.call(this,e,t)}]}class Cg extends Ne{constructor(e){super(),Oe(this,e,wg,_g,a,{class:5,isOpen:0,fade:1})}}function kg(e){let t,r;const o=e[4].default,i=c(o,e,e[3],null);let s=[e[1],{class:e[0]}],a={};for(let e=0;e<s.length;e+=1)a=n(a,s[e]);return{c(){t=$("div"),i&&i.c(),W(t,a)},m(e,n){R(e,t,n),i&&i.m(t,null),r=!0},p(e,[n]){i&&i.p&&(!r||8&n)&&p(i,o,e,e[3],r?f(o,e[3],n,null):h(e[3]),null),W(t,a=De(s,[2&n&&e[1],(!r||1&n)&&{class:e[0]}]))},i(e){r||(Ce(i,e),r=!0)},o(e){ke(i,e),r=!1},d(e){e&&D(t),i&&i.d(e)}}}function Sg(e,t,r){let o;const i=["class"];let s=v(t,i),{$$slots:a={},$$scope:l}=t,{class:u=""}=t;return e.$$set=e=>{t=n(n({},t),g(e)),r(1,s=v(t,i)),"class"in e&&r(2,u=e.class),"$$scope"in e&&r(3,l=e.$$scope)},e.$$.update=()=>{4&e.$$.dirty&&r(0,o=zh(u,"modal-body"))},[o,s,u,l,a]}class Eg extends Ne{constructor(e){super(),Oe(this,e,Sg,kg,a,{class:2})}}const xg=e=>({}),Rg=e=>({});function Dg(e){let t;const n=e[8].default,r=c(n,e,e[7],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,o){r&&r.p&&(!t||128&o)&&p(r,n,e,e[7],t?f(n,e[7],o,null):h(e[7]),null)},i(e){t||(Ce(r,e),t=!0)},o(e){ke(r,e),t=!1},d(e){r&&r.d(e)}}}function Tg(t){let n;return{c(){n=I(t[2])},m(e,t){R(e,n,t)},p(e,t){4&t&&U(n,e[2])},i:e,o:e,d(e){e&&D(n)}}}function $g(e){let t,n,r;return{c(){t=$("button"),L(t,"type","button"),L(t,"class","btn-close"),L(t,"aria-label",e[1])},m(o,i){R(o,t,i),n||(r=N(t,"click",(function(){s(e[0])&&e[0].apply(this,arguments)})),n=!0)},p(n,r){e=n,2&r&&L(t,"aria-label",e[1])},d(e){e&&D(t),n=!1,r()}}}function Mg(e){let t,r,o,i,s,a;const l=[Tg,Dg],u=[];function d(e,t){return e[2]?0:1}o=d(e),i=u[o]=l[o](e);const g=e[8].close,v=c(g,e,e[7],Rg),m=v||function(e){let t,n="function"==typeof e[0]&&$g(e);return{c(){n&&n.c(),t=O()},m(e,r){n&&n.m(e,r),R(e,t,r)},p(e,r){"function"==typeof e[0]?n?n.p(e,r):(n=$g(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&D(t)}}}(e);let y=[e[5],{class:e[4]}],b={};for(let e=0;e<y.length;e+=1)b=n(b,y[e]);return{c(){t=$("div"),r=$("h5"),i.c(),s=A(),m&&m.c(),L(r,"class","modal-title"),L(r,"id",e[3]),W(t,b)},m(e,n){R(e,t,n),S(t,r),u[o].m(r,null),S(t,s),m&&m.m(t,null),a=!0},p(e,[n]){let s=o;o=d(e),o===s?u[o].p(e,n):(_e(),ke(u[s],1,1,(()=>{u[s]=null})),we(),i=u[o],i?i.p(e,n):(i=u[o]=l[o](e),i.c()),Ce(i,1),i.m(r,null)),(!a||8&n)&&L(r,"id",e[3]),v?v.p&&(!a||128&n)&&p(v,g,e,e[7],a?f(g,e[7],n,xg):h(e[7]),Rg):m&&m.p&&(!a||3&n)&&m.p(e,a?n:-1),W(t,b=De(y,[32&n&&e[5],(!a||16&n)&&{class:e[4]}]))},i(e){a||(Ce(i),Ce(m,e),a=!0)},o(e){ke(i),ke(m,e),a=!1},d(e){e&&D(t),u[o].d(),m&&m.d(e)}}}function Ig(e,t,r){let o;const i=["class","toggle","closeAriaLabel","children","id"];let s=v(t,i),{$$slots:a={},$$scope:l}=t,{class:u=""}=t,{toggle:c}=t,{closeAriaLabel:d="Close"}=t,{children:f}=t,{id:p}=t;return e.$$set=e=>{t=n(n({},t),g(e)),r(5,s=v(t,i)),"class"in e&&r(6,u=e.class),"toggle"in e&&r(0,c=e.toggle),"closeAriaLabel"in e&&r(1,d=e.closeAriaLabel),"children"in e&&r(2,f=e.children),"id"in e&&r(3,p=e.id),"$$scope"in e&&r(7,l=e.$$scope)},e.$$.update=()=>{64&e.$$.dirty&&r(4,o=zh(u,"modal-header"))},[c,d,f,p,o,s,u,l,a]}class Ag extends Ne{constructor(e){super(),Oe(this,e,Ig,Mg,a,{class:6,toggle:0,closeAriaLabel:1,children:2,id:3})}}function Og(e){let t,r;const o=e[3].default,i=c(o,e,e[2],null);let s=[e[1]],a={};for(let e=0;e<s.length;e+=1)a=n(a,s[e]);return{c(){t=$("div"),i&&i.c(),W(t,a)},m(n,o){R(n,t,o),i&&i.m(t,null),e[4](t),r=!0},p(e,[n]){i&&i.p&&(!r||4&n)&&p(i,o,e,e[2],r?f(o,e[2],n,null):h(e[2]),null),W(t,a=De(s,[2&n&&e[1]]))},i(e){r||(Ce(i,e),r=!0)},o(e){ke(i,e),r=!1},d(n){n&&D(t),i&&i.d(n),e[4](null)}}}function Ng(e,t,r){const o=[];let i,s,a=v(t,o),{$$slots:l={},$$scope:u}=t;return Q((()=>{s=document.createElement("div"),document.body.appendChild(s),s.appendChild(i)})),ee((()=>{"undefined"!=typeof document&&document.body.removeChild(s)})),e.$$set=e=>{t=n(n({},t),g(e)),r(1,a=v(t,o)),"$$scope"in e&&r(2,u=e.$$scope)},[i,a,u,l,function(e){oe[e?"unshift":"push"]((()=>{i=e,r(0,i)}))}]}class Pg extends Ne{constructor(e){super(),Oe(this,e,Ng,Og,a,{})}}gn("");const Lg=e=>({}),Hg=e=>({});function Wg(e){let t,n,r;var o=e[13];function i(e){return{props:{$$slots:{default:[Vg]},$$scope:{ctx:e}}}}return o&&(t=q(o,i(e))),{c(){t&&$e(t.$$.fragment),n=O()},m(e,o){t&&Me(t,e,o),R(e,n,o),r=!0},p(e,r){const s={};if(2119615&r[0]|8&r[1]&&(s.$$scope={dirty:r,ctx:e}),8192&r[0]&&o!==(o=e[13])){if(t){_e();const e=t;ke(e.$$.fragment,1,0,(()=>{Ie(e,1)})),we()}o?(t=q(o,i(e)),$e(t.$$.fragment),Ce(t.$$.fragment,1),Me(t,n.parentNode,n)):t=null}else o&&t.$set(s)},i(e){r||(t&&Ce(t.$$.fragment,e),r=!0)},o(e){t&&ke(t.$$.fragment,e),r=!1},d(e){e&&D(n),t&&Ie(t,e)}}}function Ug(e){let t,n,r,o,s,a,l,u,d,g,v,m,y,b;const _=e[31].external,w=c(_,e,e[34],Hg);let C=e[3]&&zg(e);const k=[Fg,Bg],E=[];function x(e,t){return e[2]?0:1}return a=x(e),l=E[a]=k[a](e),{c(){t=$("div"),w&&w.c(),n=A(),r=$("div"),o=$("div"),C&&C.c(),s=A(),l.c(),L(o,"class",u=zh("modal-content",e[9])),L(r,"class",e[14]),L(r,"role","document"),L(t,"aria-labelledby",e[5]),L(t,"class",d=zh("modal",e[8],{fade:e[10],"position-static":e[0]})),L(t,"role","dialog")},m(i,l){R(i,t,l),w&&w.m(t,null),S(t,n),S(t,r),S(r,o),C&&C.m(o,null),S(o,s),E[a].m(o,null),e[32](r),m=!0,y||(b=[N(t,"introstart",e[33]),N(t,"introend",e[17]),N(t,"outrostart",e[18]),N(t,"outroend",e[19]),N(t,"click",e[16]),N(t,"mousedown",e[20])],y=!0)},p(e,n){w&&w.p&&(!m||8&n[1])&&p(w,_,e,e[34],m?f(_,e[34],n,Lg):h(e[34]),Hg),e[3]?C?(C.p(e,n),8&n[0]&&Ce(C,1)):(C=zg(e),C.c(),Ce(C,1),C.m(o,s)):C&&(_e(),ke(C,1,1,(()=>{C=null})),we());let i=a;a=x(e),a===i?E[a].p(e,n):(_e(),ke(E[i],1,1,(()=>{E[i]=null})),we(),l=E[a],l?l.p(e,n):(l=E[a]=k[a](e),l.c()),Ce(l,1),l.m(o,null)),(!m||512&n[0]&&u!==(u=zh("modal-content",e[9])))&&L(o,"class",u),(!m||16384&n[0])&&L(r,"class",e[14]),(!m||32&n[0])&&L(t,"aria-labelledby",e[5]),(!m||1281&n[0]&&d!==(d=zh("modal",e[8],{fade:e[10],"position-static":e[0]})))&&L(t,"class",d)},i(e){m||(Ce(w,e),Ce(C),Ce(l),ue((()=>{m&&(v&&v.end(1),g=Ee(t,Vh,{}),g.start())})),m=!0)},o(e){ke(w,e),ke(C),ke(l),g&&g.invalidate(),v=xe(t,Yh,{}),m=!1},d(n){n&&D(t),w&&w.d(n),C&&C.d(),E[a].d(),e[32](null),n&&v&&v.end(),y=!1,i(b)}}}function zg(e){let t,n;return t=new Ag({props:{toggle:e[4],id:e[5],$$slots:{default:[jg]},$$scope:{ctx:e}}}),{c(){$e(t.$$.fragment)},m(e,r){Me(t,e,r),n=!0},p(e,n){const r={};16&n[0]&&(r.toggle=e[4]),32&n[0]&&(r.id=e[5]),8&n[0]|8&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Ce(t.$$.fragment,e),n=!0)},o(e){ke(t.$$.fragment,e),n=!1},d(e){Ie(t,e)}}}function jg(e){let t;return{c(){t=I(e[3])},m(e,n){R(e,t,n)},p(e,n){8&n[0]&&U(t,e[3])},d(e){e&&D(t)}}}function Bg(e){let t;const n=e[31].default,r=c(n,e,e[34],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,o){r&&r.p&&(!t||8&o[1])&&p(r,n,e,e[34],t?f(n,e[34],o,null):h(e[34]),null)},i(e){t||(Ce(r,e),t=!0)},o(e){ke(r,e),t=!1},d(e){r&&r.d(e)}}}function Fg(e){let t,n;return t=new Eg({props:{$$slots:{default:[qg]},$$scope:{ctx:e}}}),{c(){$e(t.$$.fragment)},m(e,r){Me(t,e,r),n=!0},p(e,n){const r={};8&n[1]&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Ce(t.$$.fragment,e),n=!0)},o(e){ke(t.$$.fragment,e),n=!1},d(e){Ie(t,e)}}}function qg(e){let t;const n=e[31].default,r=c(n,e,e[34],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,o){r&&r.p&&(!t||8&o[1])&&p(r,n,e,e[34],t?f(n,e[34],o,null):h(e[34]),null)},i(e){t||(Ce(r,e),t=!0)},o(e){ke(r,e),t=!1},d(e){r&&r.d(e)}}}function Vg(e){let t,r,o=e[1]&&Ug(e),i=[{class:e[7]},{tabindex:"-1"},e[21]],s={};for(let e=0;e<i.length;e+=1)s=n(s,i[e]);return{c(){t=$("div"),o&&o.c(),W(t,s)},m(e,n){R(e,t,n),o&&o.m(t,null),r=!0},p(e,n){e[1]?o?(o.p(e,n),2&n[0]&&Ce(o,1)):(o=Ug(e),o.c(),Ce(o,1),o.m(t,null)):o&&(_e(),ke(o,1,1,(()=>{o=null})),we()),W(t,s=De(i,[(!r||128&n[0])&&{class:e[7]},{tabindex:"-1"},2097152&n[0]&&e[21]]))},i(e){r||(Ce(o),r=!0)},o(e){ke(o),r=!1},d(e){e&&D(t),o&&o.d()}}}function Yg(e){let t,n,r;var o=e[13];function i(e){return{props:{$$slots:{default:[Gg]},$$scope:{ctx:e}}}}return o&&(t=q(o,i(e))),{c(){t&&$e(t.$$.fragment),n=O()},m(e,o){t&&Me(t,e,o),R(e,n,o),r=!0},p(e,r){const s={};if(1026&r[0]|8&r[1]&&(s.$$scope={dirty:r,ctx:e}),8192&r[0]&&o!==(o=e[13])){if(t){_e();const e=t;ke(e.$$.fragment,1,0,(()=>{Ie(e,1)})),we()}o?(t=q(o,i(e)),$e(t.$$.fragment),Ce(t.$$.fragment,1),Me(t,n.parentNode,n)):t=null}else o&&t.$set(s)},i(e){r||(t&&Ce(t.$$.fragment,e),r=!0)},o(e){t&&ke(t.$$.fragment,e),r=!1},d(e){e&&D(n),t&&Ie(t,e)}}}function Gg(e){let t,n;return t=new Cg({props:{fade:e[10],isOpen:e[1]}}),{c(){$e(t.$$.fragment)},m(e,r){Me(t,e,r),n=!0},p(e,n){const r={};1024&n[0]&&(r.fade=e[10]),2&n[0]&&(r.isOpen=e[1]),t.$set(r)},i(e){n||(Ce(t.$$.fragment,e),n=!0)},o(e){ke(t.$$.fragment,e),n=!1},d(e){Ie(t,e)}}}function Zg(e){let t,n,r,o=e[11]&&Wg(e),i=e[6]&&!e[0]&&Yg(e);return{c(){o&&o.c(),t=A(),i&&i.c(),n=O()},m(e,s){o&&o.m(e,s),R(e,t,s),i&&i.m(e,s),R(e,n,s),r=!0},p(e,r){e[11]?o?(o.p(e,r),2048&r[0]&&Ce(o,1)):(o=Wg(e),o.c(),Ce(o,1),o.m(t.parentNode,t)):o&&(_e(),ke(o,1,1,(()=>{o=null})),we()),e[6]&&!e[0]?i?(i.p(e,r),65&r[0]&&Ce(i,1)):(i=Yg(e),i.c(),Ce(i,1),i.m(n.parentNode,n)):i&&(_e(),ke(i,1,1,(()=>{i=null})),we())},i(e){r||(Ce(o),Ce(i),r=!0)},o(e){ke(o),ke(i),r=!1},d(e){o&&o.d(e),e&&D(t),i&&i.d(e),e&&D(n)}}}let Kg=0;const Xg="modal-dialog";function Jg(e,t,r){let o,i;const s=["class","static","isOpen","autoFocus","body","centered","container","fullscreen","header","scrollable","size","toggle","labelledBy","backdrop","wrapClassName","modalClassName","contentClassName","fade","unmountOnClose","returnFocusAfterClose"];let a=v(t,s),{$$slots:l={},$$scope:u}=t;const c=te();let d,f,p,h,m,{class:y=""}=t,{static:b=!1}=t,{isOpen:_=!1}=t,{autoFocus:w=!0}=t,{body:C=!1}=t,{centered:k=!1}=t,{container:S}=t,{fullscreen:E=!1}=t,{header:x}=t,{scrollable:R=!1}=t,{size:D=""}=t,{toggle:T}=t,{labelledBy:$=(x?`modal-${Bh()}`:void 0)}=t,{backdrop:M=!0}=t,{wrapClassName:I=""}=t,{modalClassName:A=""}=t,{contentClassName:O=""}=t,{fade:N=!0}=t,{unmountOnClose:P=!0}=t,{returnFocusAfterClose:L=!0}=t,H=!1,W=!1,U=_,z=H;var j;function B(){p&&p.parentNode&&"function"==typeof p.parentNode.focus&&p.parentNode.focus()}function F(){try{d=document.activeElement}catch(e){d=null}b||(f=function(){const e=window?window.getComputedStyle(document.body,null):{};return parseInt(e&&e.getPropertyValue("padding-right")||0,10)}(),Hh(),0===Kg&&(document.body.className=zh(document.body.className,"modal-open")),++Kg),r(11,W=!0)}function q(){d&&("function"==typeof d.focus&&L&&d.focus(),d=null)}function V(){q()}function Y(){Kg<=1&&document.body.classList.remove("modal-open"),q(),Kg=Math.max(0,Kg-1),Lh(f)}Q((()=>{_&&(F(),H=!0),H&&w&&B()})),ee((()=>{V(),H&&Y()})),j=()=>{_&&!U&&(F(),H=!0),w&&H&&!z&&B(),U=_,z=H},J().$$.after_update.push(j);return e.$$set=e=>{t=n(n({},t),g(e)),r(21,a=v(t,s)),"class"in e&&r(22,y=e.class),"static"in e&&r(0,b=e.static),"isOpen"in e&&r(1,_=e.isOpen),"autoFocus"in e&&r(23,w=e.autoFocus),"body"in e&&r(2,C=e.body),"centered"in e&&r(24,k=e.centered),"container"in e&&r(25,S=e.container),"fullscreen"in e&&r(26,E=e.fullscreen),"header"in e&&r(3,x=e.header),"scrollable"in e&&r(27,R=e.scrollable),"size"in e&&r(28,D=e.size),"toggle"in e&&r(4,T=e.toggle),"labelledBy"in e&&r(5,$=e.labelledBy),"backdrop"in e&&r(6,M=e.backdrop),"wrapClassName"in e&&r(7,I=e.wrapClassName),"modalClassName"in e&&r(8,A=e.modalClassName),"contentClassName"in e&&r(9,O=e.contentClassName),"fade"in e&&r(10,N=e.fade),"unmountOnClose"in e&&r(29,P=e.unmountOnClose),"returnFocusAfterClose"in e&&r(30,L=e.returnFocusAfterClose),"$$scope"in e&&r(34,u=e.$$scope)},e.$$.update=()=>{490733568&e.$$.dirty[0]&&r(14,o=zh(Xg,y,{[`modal-${D}`]:D,"modal-fullscreen":!0===E,[`modal-fullscreen-${E}-down`]:E&&"string"==typeof E,[`${Xg}-centered`]:k,[`${Xg}-scrollable`]:R})),33554433&e.$$.dirty[0]&&r(13,i="inline"===S||b?yg:Pg)},[b,_,C,x,T,$,M,I,A,O,N,W,p,i,o,c,function(e){if(e.target===h){if(!_||!M)return;const t=p?p.parentNode:null;!0===M&&t&&e.target===t&&T&&(e.stopPropagation(),T(e))}},function(){c("open"),m=Wh(document,"keydown",(e=>{e.key&&"Escape"===e.key&&T&&!0===M&&(m&&m(),T(e))}))},function(){c("closing"),m&&m()},function(){c("close"),P&&V(),Y(),W&&(H=!1),r(11,W=!1)},function(e){h=e.target},a,y,w,k,S,E,R,D,P,L,l,function(e){oe[e?"unshift":"push"]((()=>{p=e,r(12,p)}))},()=>c("opening"),u]}class Qg extends Ne{constructor(e){super(),Oe(this,e,Jg,Zg,a,{class:22,static:0,isOpen:1,autoFocus:23,body:2,centered:24,container:25,fullscreen:26,header:3,scrollable:27,size:28,toggle:4,labelledBy:5,backdrop:6,wrapClassName:7,modalClassName:8,contentClassName:9,fade:10,unmountOnClose:29,returnFocusAfterClose:30},null,[-1,-1])}}function ev(e){let t,r;const o=e[4].default,i=c(o,e,e[3],null);let s=[e[1],{class:e[0]}],a={};for(let e=0;e<s.length;e+=1)a=n(a,s[e]);return{c(){t=$("div"),i&&i.c(),W(t,a)},m(e,n){R(e,t,n),i&&i.m(t,null),r=!0},p(e,[n]){i&&i.p&&(!r||8&n)&&p(i,o,e,e[3],r?f(o,e[3],n,null):h(e[3]),null),W(t,a=De(s,[2&n&&e[1],(!r||1&n)&&{class:e[0]}]))},i(e){r||(Ce(i,e),r=!0)},o(e){ke(i,e),r=!1},d(e){e&&D(t),i&&i.d(e)}}}function tv(e,t,r){let o;const i=["class"];let s=v(t,i),{$$slots:a={},$$scope:l}=t,{class:u=""}=t;return e.$$set=e=>{t=n(n({},t),g(e)),r(1,s=v(t,i)),"class"in e&&r(2,u=e.class),"$$scope"in e&&r(3,l=e.$$scope)},e.$$.update=()=>{4&e.$$.dirty&&r(0,o=zh(u,"modal-footer"))},[o,s,u,l,a]}class nv extends Ne{constructor(e){super(),Oe(this,e,tv,ev,a,{class:2})}}function rv(e){let t,r,o,i,s,a,l=[e[3],{class:e[2]}],u={};for(let e=0;e<l.length;e+=1)u=n(u,l[e]);return{c(){t=$("div"),W(t,u),j(t,"fade",e[1])},m(n,r){R(n,t,r),i=!0,s||(a=N(t,"click",e[5]),s=!0)},p(e,n){W(t,u=De(l,[8&n&&e[3],(!i||4&n)&&{class:e[2]}])),j(t,"fade",e[1])},i(e){i||(ue((()=>{i&&(o&&o.end(1),r=Ee(t,Fh,{}),r.start())})),i=!0)},o(e){r&&r.invalidate(),o=xe(t,qh,{}),i=!1},d(e){e&&D(t),e&&o&&o.end(),s=!1,a()}}}function ov(e){let t,n,r=e[0]&&rv(e);return{c(){r&&r.c(),t=O()},m(e,o){r&&r.m(e,o),R(e,t,o),n=!0},p(e,[n]){e[0]?r?(r.p(e,n),1&n&&Ce(r,1)):(r=rv(e),r.c(),Ce(r,1),r.m(t.parentNode,t)):r&&(_e(),ke(r,1,1,(()=>{r=null})),we())},i(e){n||(Ce(r),n=!0)},o(e){ke(r),n=!1},d(e){r&&r.d(e),e&&D(t)}}}function iv(e,t,r){let o;const i=["class","isOpen","fade"];let s=v(t,i),{class:a=""}=t,{isOpen:l=!1}=t,{fade:u=!0}=t;return e.$$set=e=>{t=n(n({},t),g(e)),r(3,s=v(t,i)),"class"in e&&r(4,a=e.class),"isOpen"in e&&r(0,l=e.isOpen),"fade"in e&&r(1,u=e.fade)},e.$$.update=()=>{16&e.$$.dirty&&r(2,o=zh(a,"offcanvas-backdrop"))},[l,u,o,s,a,function(t){ne.call(this,e,t)}]}class sv extends Ne{constructor(e){super(),Oe(this,e,iv,ov,a,{class:4,isOpen:0,fade:1})}}function av(e){let t,r;const o=e[4].default,i=c(o,e,e[3],null);let s=[e[1],{class:e[0]}],a={};for(let e=0;e<s.length;e+=1)a=n(a,s[e]);return{c(){t=$("div"),i&&i.c(),W(t,a)},m(e,n){R(e,t,n),i&&i.m(t,null),r=!0},p(e,[n]){i&&i.p&&(!r||8&n)&&p(i,o,e,e[3],r?f(o,e[3],n,null):h(e[3]),null),W(t,a=De(s,[2&n&&e[1],(!r||1&n)&&{class:e[0]}]))},i(e){r||(Ce(i,e),r=!0)},o(e){ke(i,e),r=!1},d(e){e&&D(t),i&&i.d(e)}}}function lv(e,t,r){let o;const i=["class"];let s=v(t,i),{$$slots:a={},$$scope:l}=t,{class:u=""}=t;return e.$$set=e=>{t=n(n({},t),g(e)),r(1,s=v(t,i)),"class"in e&&r(2,u=e.class),"$$scope"in e&&r(3,l=e.$$scope)},e.$$.update=()=>{4&e.$$.dirty&&r(0,o=zh(u,"offcanvas-body"))},[o,s,u,l,a]}class uv extends Ne{constructor(e){super(),Oe(this,e,lv,av,a,{class:2})}}const cv=e=>({}),dv=e=>({});function fv(e){let t;const n=e[7].default,r=c(n,e,e[6],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,o){r&&r.p&&(!t||64&o)&&p(r,n,e,e[6],t?f(n,e[6],o,null):h(e[6]),null)},i(e){t||(Ce(r,e),t=!0)},o(e){ke(r,e),t=!1},d(e){r&&r.d(e)}}}function pv(t){let n;return{c(){n=I(t[0])},m(e,t){R(e,n,t)},p(e,t){1&t&&U(n,e[0])},i:e,o:e,d(e){e&&D(n)}}}function hv(e){let t,n,r;return{c(){t=$("button"),L(t,"aria-label",e[1]),L(t,"class","btn-close"),L(t,"type","button")},m(o,i){R(o,t,i),n||(r=N(t,"click",(function(){s(e[2])&&e[2].apply(this,arguments)})),n=!0)},p(n,r){e=n,2&r&&L(t,"aria-label",e[1])},d(e){e&&D(t),n=!1,r()}}}function gv(e){let t,r,o,i,s,a;const l=[pv,fv],u=[];function d(e,t){return e[0]?0:1}o=d(e),i=u[o]=l[o](e);const g=e[7].close,v=c(g,e,e[6],dv),m=v||function(e){let t,n="function"==typeof e[2]&&hv(e);return{c(){n&&n.c(),t=O()},m(e,r){n&&n.m(e,r),R(e,t,r)},p(e,r){"function"==typeof e[2]?n?n.p(e,r):(n=hv(e),n.c(),n.m(t.parentNode,t)):n&&(n.d(1),n=null)},d(e){n&&n.d(e),e&&D(t)}}}(e);let y=[e[4],{class:e[3]}],b={};for(let e=0;e<y.length;e+=1)b=n(b,y[e]);return{c(){t=$("div"),r=$("h5"),i.c(),s=A(),m&&m.c(),L(r,"class","offcanvas-title"),W(t,b)},m(e,n){R(e,t,n),S(t,r),u[o].m(r,null),S(t,s),m&&m.m(t,null),a=!0},p(e,[n]){let s=o;o=d(e),o===s?u[o].p(e,n):(_e(),ke(u[s],1,1,(()=>{u[s]=null})),we(),i=u[o],i?i.p(e,n):(i=u[o]=l[o](e),i.c()),Ce(i,1),i.m(r,null)),v?v.p&&(!a||64&n)&&p(v,g,e,e[6],a?f(g,e[6],n,cv):h(e[6]),dv):m&&m.p&&(!a||6&n)&&m.p(e,a?n:-1),W(t,b=De(y,[16&n&&e[4],(!a||8&n)&&{class:e[3]}]))},i(e){a||(Ce(i),Ce(m,e),a=!0)},o(e){ke(i),ke(m,e),a=!1},d(e){e&&D(t),u[o].d(),m&&m.d(e)}}}function vv(e,t,r){let o;const i=["class","children","closeAriaLabel","toggle"];let s=v(t,i),{$$slots:a={},$$scope:l}=t,{class:u=""}=t,{children:c}=t,{closeAriaLabel:d="Close"}=t,{toggle:f}=t;return e.$$set=e=>{t=n(n({},t),g(e)),r(4,s=v(t,i)),"class"in e&&r(5,u=e.class),"children"in e&&r(0,c=e.children),"closeAriaLabel"in e&&r(1,d=e.closeAriaLabel),"toggle"in e&&r(2,f=e.toggle),"$$scope"in e&&r(6,l=e.$$scope)},e.$$.update=()=>{32&e.$$.dirty&&r(3,o=zh(u,"offcanvas-header"))},[c,d,f,o,s,u,l,a]}class mv extends Ne{constructor(e){super(),Oe(this,e,vv,gv,a,{class:5,children:0,closeAriaLabel:1,toggle:2})}}gn("");const{document:yv}=k,bv=e=>({}),_v=e=>({});function wv(e){let t,n;return t=new mv({props:{toggle:e[6],$$slots:{default:[kv]},$$scope:{ctx:e}}}),{c(){$e(t.$$.fragment)},m(e,r){Me(t,e,r),n=!0},p(e,n){const r={};64&n&&(r.toggle=e[6]),268435472&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Ce(t.$$.fragment,e),n=!0)},o(e){ke(t.$$.fragment,e),n=!1},d(e){Ie(t,e)}}}function Cv(e){let t;return{c(){t=I(e[4])},m(e,n){R(e,t,n)},p(e,n){16&n&&U(t,e[4])},d(e){e&&D(t)}}}function kv(e){let t,n,r=e[4]&&Cv(e);const o=e[25].header,i=c(o,e,e[28],_v);return{c(){r&&r.c(),t=A(),i&&i.c()},m(e,o){r&&r.m(e,o),R(e,t,o),i&&i.m(e,o),n=!0},p(e,s){e[4]?r?r.p(e,s):(r=Cv(e),r.c(),r.m(t.parentNode,t)):r&&(r.d(1),r=null),i&&i.p&&(!n||268435456&s)&&p(i,o,e,e[28],n?f(o,e[28],s,bv):h(e[28]),_v)},i(e){n||(Ce(i,e),n=!0)},o(e){ke(i,e),n=!1},d(e){r&&r.d(e),e&&D(t),i&&i.d(e)}}}function Sv(e){let t;const n=e[25].default,r=c(n,e,e[28],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,o){r&&r.p&&(!t||268435456&o)&&p(r,n,e,e[28],t?f(n,e[28],o,null):h(e[28]),null)},i(e){t||(Ce(r,e),t=!0)},o(e){ke(r,e),t=!1},d(e){r&&r.d(e)}}}function Ev(e){let t,n;return t=new uv({props:{$$slots:{default:[xv]},$$scope:{ctx:e}}}),{c(){$e(t.$$.fragment)},m(e,r){Me(t,e,r),n=!0},p(e,n){const r={};268435456&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Ce(t.$$.fragment,e),n=!0)},o(e){ke(t.$$.fragment,e),n=!1},d(e){Ie(t,e)}}}function xv(e){let t;const n=e[25].default,r=c(n,e,e[28],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,o){r&&r.p&&(!t||268435456&o)&&p(r,n,e,e[28],t?f(n,e[28],o,null):h(e[28]),null)},i(e){t||(Ce(r,e),t=!0)},o(e){ke(r,e),t=!1},d(e){r&&r.d(e)}}}function Rv(e){let t,n;return t=new sv({props:{fade:e[3],isOpen:e[0]}}),t.$on("click",(function(){s(e[6]?e[27]:void 0)&&(e[6]?e[27]:void 0).apply(this,arguments)})),{c(){$e(t.$$.fragment)},m(e,r){Me(t,e,r),n=!0},p(n,r){e=n;const o={};8&r&&(o.fade=e[3]),1&r&&(o.isOpen=e[0]),t.$set(o)},i(e){n||(Ce(t.$$.fragment,e),n=!0)},o(e){ke(t.$$.fragment,e),n=!1},d(e){Ie(t,e)}}}function Dv(e){let t,r,o,i,s,a,l,u,c,d,f,p=(e[6]||e[4]||e[13].header)&&wv(e);const h=[Ev,Sv],g=[];function v(e,t){return e[2]?0:1}o=v(e),i=g[o]=h[o](e);let m=[e[12],{"aria-hidden":s=!e[0]||void 0},{"aria-modal":a=!!e[0]||void 0},{class:e[10]},{role:l=e[0]||e[7]?"dialog":void 0},{style:u=`visibility: ${e[0]||e[7]?"visible":"hidden"};${e[5]}`},{tabindex:"-1"}],y={};for(let e=0;e<m.length;e+=1)y=n(y,m[e]);let b=e[1]&&Rv(e);return{c(){t=$("div"),p&&p.c(),r=A(),i.c(),c=A(),b&&b.c(),d=O(),W(t,y)},m(n,i){R(n,t,i),p&&p.m(t,null),S(t,r),g[o].m(t,null),e[26](t),R(n,c,i),b&&b.m(n,i),R(n,d,i),f=!0},p(e,n){e[6]||e[4]||e[13].header?p?(p.p(e,n),8272&n&&Ce(p,1)):(p=wv(e),p.c(),Ce(p,1),p.m(t,r)):p&&(_e(),ke(p,1,1,(()=>{p=null})),we());let c=o;o=v(e),o===c?g[o].p(e,n):(_e(),ke(g[c],1,1,(()=>{g[c]=null})),we(),i=g[o],i?i.p(e,n):(i=g[o]=h[o](e),i.c()),Ce(i,1),i.m(t,null)),W(t,y=De(m,[4096&n&&e[12],(!f||1&n&&s!==(s=!e[0]||void 0))&&{"aria-hidden":s},(!f||1&n&&a!==(a=!!e[0]||void 0))&&{"aria-modal":a},(!f||1024&n)&&{class:e[10]},(!f||129&n&&l!==(l=e[0]||e[7]?"dialog":void 0))&&{role:l},(!f||161&n&&u!==(u=`visibility: ${e[0]||e[7]?"visible":"hidden"};${e[5]}`))&&{style:u},{tabindex:"-1"}])),e[1]?b?(b.p(e,n),2&n&&Ce(b,1)):(b=Rv(e),b.c(),Ce(b,1),b.m(d.parentNode,d)):b&&(_e(),ke(b,1,1,(()=>{b=null})),we())},i(e){f||(Ce(p),Ce(i),Ce(b),f=!0)},o(e){ke(p),ke(i),ke(b),f=!1},d(n){n&&D(t),p&&p.d(),g[o].d(),e[26](null),n&&D(c),b&&b.d(n),n&&D(d)}}}function Tv(e){let t,n,r,o,i,a;var l=e[9];function u(e){return{props:{$$slots:{default:[Dv]},$$scope:{ctx:e}}}}return l&&(n=q(l,u(e))),{c(){t=A(),n&&$e(n.$$.fragment),r=O()},m(l,u){R(l,t,u),n&&Me(n,l,u),R(l,r,u),o=!0,i||(a=N(yv.body,"mousedown",(function(){s(e[11])&&e[11].apply(this,arguments)})),i=!0)},p(t,[o]){e=t;const i={};if(268449279&o&&(i.$$scope={dirty:o,ctx:e}),512&o&&l!==(l=e[9])){if(n){_e();const e=n;ke(e.$$.fragment,1,0,(()=>{Ie(e,1)})),we()}l?(n=q(l,u(e)),$e(n.$$.fragment),Ce(n.$$.fragment,1),Me(n,r.parentNode,r)):n=null}else l&&n.$set(i)},i(e){o||(n&&Ce(n.$$.fragment,e),o=!0)},o(e){n&&ke(n.$$.fragment,e),o=!1},d(e){e&&D(t),e&&D(r),n&&Ie(n,e),i=!1,a()}}}function $v(e,t,r){let o,i,s;const a=["class","backdrop","body","container","fade","header","isOpen","placement","scroll","sm","md","lg","xl","xxl","style","toggle"];let l=v(t,a),{$$slots:u={},$$scope:c}=t;const d=function(e){const t={};for(const n in e)t[n]=!0;return t}(u),f=te();let p,h,m,{class:y=""}=t,{backdrop:b=!0}=t,{body:_=!0}=t,{container:w="body"}=t,{fade:C=!0}=t,{header:k}=t,{isOpen:S=!1}=t,{placement:E="start"}=t,{scroll:x=!1}=t,{sm:R=!1}=t,{md:D=!1}=t,{lg:T=!1}=t,{xl:$=!1}=t,{xxl:M=!1}=t,{style:I=""}=t,{toggle:A}=t,O=!1;Q((()=>r(23,p=document.body)));return e.$$set=e=>{t=n(n({},t),g(e)),r(12,l=v(t,a)),"class"in e&&r(14,y=e.class),"backdrop"in e&&r(1,b=e.backdrop),"body"in e&&r(2,_=e.body),"container"in e&&r(15,w=e.container),"fade"in e&&r(3,C=e.fade),"header"in e&&r(4,k=e.header),"isOpen"in e&&r(0,S=e.isOpen),"placement"in e&&r(16,E=e.placement),"scroll"in e&&r(17,x=e.scroll),"sm"in e&&r(18,R=e.sm),"md"in e&&r(19,D=e.md),"lg"in e&&r(20,T=e.lg),"xl"in e&&r(21,$=e.xl),"xxl"in e&&r(22,M=e.xxl),"style"in e&&r(5,I=e.style),"toggle"in e&&r(6,A=e.toggle),"$$scope"in e&&r(28,c=e.$$scope)},e.$$.update=()=>{257&e.$$.dirty&&h&&(r(0,S),r(8,h),r(7,O=!0),f(S?"opening":"closing"),setTimeout((()=>{r(7,O=!1),f(S?"open":"close")}),jh(h))),8519809&e.$$.dirty&&p&&(x||p.classList.toggle("overflow-noscroll",S||O)),65&e.$$.dirty&&S&&A&&"undefined"!=typeof window&&r(24,m=Wh(document,"keydown",(e=>{e.key&&"Escape"===e.key&&A()}))),16777217&e.$$.dirty&&!S&&m&&m(),8388675&e.$$.dirty&&r(11,o=b&&A&&p&&S?e=>{e.target===p&&A()}:void 0),8208385&e.$$.dirty&&r(10,i=zh({offcanvas:!(R||D||T||$||M),"offcanvas-sm":R,"offcanvas-md":D,"offcanvas-lg":T,"offcanvas-xl":$,"offcanvas-xxl":M,show:S},`offcanvas-${E}`,y)),32768&e.$$.dirty&&r(9,s="inline"===w?yg:Pg)},[S,b,_,C,k,I,A,O,h,s,i,o,l,d,y,w,E,x,R,D,T,$,M,p,m,u,function(e){oe[e?"unshift":"push"]((()=>{h=e,r(8,h)}))},()=>A(),c]}class Mv extends Ne{constructor(e){super(),Oe(this,e,$v,Tv,a,{class:14,backdrop:1,body:2,container:15,fade:3,header:4,isOpen:0,placement:16,scroll:17,sm:18,md:19,lg:20,xl:21,xxl:22,style:5,toggle:6})}}function Iv(e){let t,r;const o=e[4].default,i=c(o,e,e[3],null);let s=[e[1],{class:e[0]}],a={};for(let e=0;e<s.length;e+=1)a=n(a,s[e]);return{c(){t=$("div"),i&&i.c(),W(t,a)},m(e,n){R(e,t,n),i&&i.m(t,null),r=!0},p(e,[n]){i&&i.p&&(!r||8&n)&&p(i,o,e,e[3],r?f(o,e[3],n,null):h(e[3]),null),W(t,a=De(s,[2&n&&e[1],(!r||1&n)&&{class:e[0]}]))},i(e){r||(Ce(i,e),r=!0)},o(e){ke(i,e),r=!1},d(e){e&&D(t),i&&i.d(e)}}}function Av(e,t,r){let o;const i=["class"];let s=v(t,i),{$$slots:a={},$$scope:l}=t,{class:u=""}=t;return e.$$set=e=>{t=n(n({},t),g(e)),r(1,s=v(t,i)),"class"in e&&r(2,u=e.class),"$$scope"in e&&r(3,l=e.$$scope)},e.$$.update=()=>{4&e.$$.dirty&&r(0,o=zh(u,"toast-body"))},[o,s,u,l,a]}class Ov extends Ne{constructor(e){super(),Oe(this,e,Av,Iv,a,{class:2})}}const Nv=e=>({}),Pv=e=>({}),Lv=e=>({}),Hv=e=>({});function Wv(e){let t;const n=e[8].icon,r=c(n,e,e[7],Hv);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,o){r&&r.p&&(!t||128&o)&&p(r,n,e,e[7],t?f(n,e[7],o,Lv):h(e[7]),Hv)},i(e){t||(Ce(r,e),t=!0)},o(e){ke(r,e),t=!1},d(e){r&&r.d(e)}}}function Uv(t){let n,r,o;return{c(){n=M("svg"),r=M("rect"),L(r,"fill","currentColor"),L(r,"width","100%"),L(r,"height","100%"),L(n,"class",o=`rounded text-${t[0]}`),L(n,"width","20"),L(n,"height","20"),L(n,"xmlns","http://www.w3.org/2000/svg"),L(n,"preserveAspectRatio","xMidYMid slice"),L(n,"focusable","false"),L(n,"role","img")},m(e,t){R(e,n,t),S(n,r)},p(e,t){1&t&&o!==(o=`rounded text-${e[0]}`)&&L(n,"class",o)},i:e,o:e,d(e){e&&D(n)}}}function zv(e){let t;const n=e[8].close,r=c(n,e,e[7],Pv),o=r||function(e){let t,n;return t=new fg({props:{close:!0,"aria-label":e[2]}}),t.$on("click",(function(){s(e[1])&&e[1].apply(this,arguments)})),{c(){$e(t.$$.fragment)},m(e,r){Me(t,e,r),n=!0},p(n,r){e=n;const o={};4&r&&(o["aria-label"]=e[2]),t.$set(o)},i(e){n||(Ce(t.$$.fragment,e),n=!0)},o(e){ke(t.$$.fragment,e),n=!1},d(e){Ie(t,e)}}}(e);return{c(){o&&o.c()},m(e,n){o&&o.m(e,n),t=!0},p(e,i){r?r.p&&(!t||128&i)&&p(r,n,e,e[7],t?f(n,e[7],i,Nv):h(e[7]),Pv):o&&o.p&&(!t||6&i)&&o.p(e,t?i:-1)},i(e){t||(Ce(o,e),t=!0)},o(e){ke(o,e),t=!1},d(e){o&&o.d(e)}}}function jv(e){let t,r,o,i,s,a,l;const u=[Uv,Wv],d=[];function g(e,t){return e[0]?0:1}r=g(e),o=d[r]=u[r](e);const v=e[8].default,m=c(v,e,e[7],null);let y=e[1]&&zv(e),b=[e[5],{class:e[4]}],_={};for(let e=0;e<b.length;e+=1)_=n(_,b[e]);return{c(){t=$("div"),o.c(),i=A(),s=$("strong"),m&&m.c(),a=A(),y&&y.c(),L(s,"class",e[3]),W(t,_)},m(e,n){R(e,t,n),d[r].m(t,null),S(t,i),S(t,s),m&&m.m(s,null),S(t,a),y&&y.m(t,null),l=!0},p(e,[n]){let a=r;r=g(e),r===a?d[r].p(e,n):(_e(),ke(d[a],1,1,(()=>{d[a]=null})),we(),o=d[r],o?o.p(e,n):(o=d[r]=u[r](e),o.c()),Ce(o,1),o.m(t,i)),m&&m.p&&(!l||128&n)&&p(m,v,e,e[7],l?f(v,e[7],n,null):h(e[7]),null),(!l||8&n)&&L(s,"class",e[3]),e[1]?y?(y.p(e,n),2&n&&Ce(y,1)):(y=zv(e),y.c(),Ce(y,1),y.m(t,null)):y&&(_e(),ke(y,1,1,(()=>{y=null})),we()),W(t,_=De(b,[32&n&&e[5],(!l||16&n)&&{class:e[4]}]))},i(e){l||(Ce(o),Ce(m,e),Ce(y),l=!0)},o(e){ke(o),ke(m,e),ke(y),l=!1},d(e){e&&D(t),d[r].d(),m&&m.d(e),y&&y.d()}}}function Bv(e,t,r){let o,i;const s=["class","icon","toggle","closeAriaLabel"];let a=v(t,s),{$$slots:l={},$$scope:u}=t,{class:c=""}=t,{icon:d=null}=t,{toggle:f=null}=t,{closeAriaLabel:p="Close"}=t;return e.$$set=e=>{t=n(n({},t),g(e)),r(5,a=v(t,s)),"class"in e&&r(6,c=e.class),"icon"in e&&r(0,d=e.icon),"toggle"in e&&r(1,f=e.toggle),"closeAriaLabel"in e&&r(2,p=e.closeAriaLabel),"$$scope"in e&&r(7,u=e.$$scope)},e.$$.update=()=>{64&e.$$.dirty&&r(4,o=zh(c,"toast-header")),1&e.$$.dirty&&r(3,i=zh("me-auto",{"ms-2":null!=d}))},[d,f,p,i,o,a,c,u,l]}class Fv extends Ne{constructor(e){super(),Oe(this,e,Bv,jv,a,{class:6,icon:0,toggle:1,closeAriaLabel:2})}}function qv(e){let t,r,o,s,a,l,u,c,d=e[4]&&Vv(e);const f=[Zv,Gv],p=[];function h(e,t){return e[1]?0:1}o=h(e),s=p[o]=f[o](e);let g=[e[8],{class:e[6]},{role:"alert"}],v={};for(let e=0;e<g.length;e+=1)v=n(v,g[e]);return{c(){t=$("div"),d&&d.c(),r=A(),s.c(),W(t,v)},m(n,i){R(n,t,i),d&&d.m(t,null),S(t,r),p[o].m(t,null),l=!0,u||(c=[N(t,"introstart",e[13]),N(t,"introend",e[14]),N(t,"outrostart",e[15]),N(t,"outroend",e[16])],u=!0)},p(n,i){(e=n)[4]?d?(d.p(e,i),16&i&&Ce(d,1)):(d=Vv(e),d.c(),Ce(d,1),d.m(t,r)):d&&(_e(),ke(d,1,1,(()=>{d=null})),we());let a=o;o=h(e),o===a?p[o].p(e,i):(_e(),ke(p[a],1,1,(()=>{p[a]=null})),we(),s=p[o],s?s.p(e,i):(s=p[o]=f[o](e),s.c()),Ce(s,1),s.m(t,null)),W(t,v=De(g,[256&i&&e[8],(!l||64&i)&&{class:e[6]},{role:"alert"}]))},i(n){l||(Ce(d),Ce(s),ue((()=>{l&&(a||(a=Re(t,Gh,{duration:e[3]&&e[2]},!0)),a.run(1))})),l=!0)},o(n){ke(d),ke(s),a||(a=Re(t,Gh,{duration:e[3]&&e[2]},!1)),a.run(0),l=!1},d(e){e&&D(t),d&&d.d(),p[o].d(),e&&a&&a.end(),u=!1,i(c)}}}function Vv(e){let t,n;return t=new Fv({props:{toggle:e[5],$$slots:{default:[Yv]},$$scope:{ctx:e}}}),{c(){$e(t.$$.fragment)},m(e,r){Me(t,e,r),n=!0},p(e,n){const r={};32&n&&(r.toggle=e[5]),131088&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Ce(t.$$.fragment,e),n=!0)},o(e){ke(t.$$.fragment,e),n=!1},d(e){Ie(t,e)}}}function Yv(e){let t;return{c(){t=I(e[4])},m(e,n){R(e,t,n)},p(e,n){16&n&&U(t,e[4])},d(e){e&&D(t)}}}function Gv(e){let t;const n=e[12].default,r=c(n,e,e[17],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,o){r&&r.p&&(!t||131072&o)&&p(r,n,e,e[17],t?f(n,e[17],o,null):h(e[17]),null)},i(e){t||(Ce(r,e),t=!0)},o(e){ke(r,e),t=!1},d(e){r&&r.d(e)}}}function Zv(e){let t,n;return t=new Ov({props:{$$slots:{default:[Kv]},$$scope:{ctx:e}}}),{c(){$e(t.$$.fragment)},m(e,r){Me(t,e,r),n=!0},p(e,n){const r={};131072&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Ce(t.$$.fragment,e),n=!0)},o(e){ke(t.$$.fragment,e),n=!1},d(e){Ie(t,e)}}}function Kv(e){let t;const n=e[12].default,r=c(n,e,e[17],null);return{c(){r&&r.c()},m(e,n){r&&r.m(e,n),t=!0},p(e,o){r&&r.p&&(!t||131072&o)&&p(r,n,e,e[17],t?f(n,e[17],o,null):h(e[17]),null)},i(e){t||(Ce(r,e),t=!0)},o(e){ke(r,e),t=!1},d(e){r&&r.d(e)}}}function Xv(e){let t,n,r=e[0]&&qv(e);return{c(){r&&r.c(),t=O()},m(e,o){r&&r.m(e,o),R(e,t,o),n=!0},p(e,[n]){e[0]?r?(r.p(e,n),1&n&&Ce(r,1)):(r=qv(e),r.c(),Ce(r,1),r.m(t.parentNode,t)):r&&(_e(),ke(r,1,1,(()=>{r=null})),we())},i(e){n||(Ce(r),n=!0)},o(e){ke(r),n=!1},d(e){r&&r.d(e),e&&D(t)}}}function Jv(e,t,r){let o;const i=["class","autohide","body","delay","duration","fade","header","isOpen","toggle"];let s=v(t,i),{$$slots:a={},$$scope:l}=t;const u=te();let c,{class:d=""}=t,{autohide:f=!1}=t,{body:p=!1}=t,{delay:h=5e3}=t,{duration:m=200}=t,{fade:y=!0}=t,{header:b}=t,{isOpen:_=!0}=t,{toggle:w=null}=t;ee((()=>()=>clearTimeout(c)));return e.$$set=e=>{t=n(n({},t),g(e)),r(8,s=v(t,i)),"class"in e&&r(9,d=e.class),"autohide"in e&&r(10,f=e.autohide),"body"in e&&r(1,p=e.body),"delay"in e&&r(11,h=e.delay),"duration"in e&&r(2,m=e.duration),"fade"in e&&r(3,y=e.fade),"header"in e&&r(4,b=e.header),"isOpen"in e&&r(0,_=e.isOpen),"toggle"in e&&r(5,w=e.toggle),"$$scope"in e&&r(17,l=e.$$scope)},e.$$.update=()=>{3073&e.$$.dirty&&_&&f&&(c=setTimeout((()=>r(0,_=!1)),h)),513&e.$$.dirty&&r(6,o=zh(d,"toast",{show:_}))},[_,p,m,y,b,w,o,u,s,d,f,h,a,()=>u("opening"),()=>u("open"),()=>u("closing"),()=>u("close"),l]}class Qv extends Ne{constructor(e){super(),Oe(this,e,Jv,Xv,a,{class:9,autohide:10,body:1,delay:11,duration:2,fade:3,header:4,isOpen:0,toggle:5})}}var em;function tm(e){return(em=em||document.createElement("textarea")).innerHTML="&"+e+";",em.value}var nm=Object.prototype.hasOwnProperty;function rm(e){return[].slice.call(arguments,1).forEach((function(t){if(t){if("object"!=typeof t)throw new TypeError(t+"must be object");Object.keys(t).forEach((function(n){e[n]=t[n]}))}})),e}var om=/\\([\\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;function im(e){return e.indexOf("\\")<0?e:e.replace(om,"$1")}function sm(e){return!(e>=55296&&e<=57343)&&(!(e>=64976&&e<=65007)&&(65535!=(65535&e)&&65534!=(65535&e)&&(!(e>=0&&e<=8)&&(11!==e&&(!(e>=14&&e<=31)&&(!(e>=127&&e<=159)&&!(e>1114111)))))))}function am(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}var lm=/&([a-z#][a-z0-9]{1,31});/gi,um=/^#((?:x[a-f0-9]{1,8}|[0-9]{1,8}))/i;function cm(e,t){var n=0,r=tm(t);return t!==r?r:35===t.charCodeAt(0)&&um.test(t)&&sm(n="x"===t[1].toLowerCase()?parseInt(t.slice(2),16):parseInt(t.slice(1),10))?am(n):e}function dm(e){return e.indexOf("&")<0?e:e.replace(lm,cm)}var fm=/[&<>"]/,pm=/[&<>"]/g,hm={"&":"&","<":"<",">":">",'"':"""};function gm(e){return hm[e]}function vm(e){return fm.test(e)?e.replace(pm,gm):e}var mm={};function ym(e,t){return++t>=e.length-2?t:"paragraph_open"===e[t].type&&e[t].tight&&"inline"===e[t+1].type&&0===e[t+1].content.length&&"paragraph_close"===e[t+2].type&&e[t+2].tight?ym(e,t+2):t}mm.blockquote_open=function(){return"<blockquote>\n"},mm.blockquote_close=function(e,t){return"</blockquote>"+bm(e,t)},mm.code=function(e,t){return e[t].block?"<pre><code>"+vm(e[t].content)+"</code></pre>"+bm(e,t):"<code>"+vm(e[t].content)+"</code>"},mm.fence=function(e,t,n,r,o){var i,s,a,l,u=e[t],c="",d=n.langPrefix;if(u.params){if(s=(i=u.params.split(/\s+/g)).join(" "),a=o.rules.fence_custom,l=i[0],a&&nm.call(a,l))return o.rules.fence_custom[i[0]](e,t,n,r,o);c=' class="'+d+vm(dm(im(s)))+'"'}return"<pre><code"+c+">"+(n.highlight&&n.highlight.apply(n.highlight,[u.content].concat(i))||vm(u.content))+"</code></pre>"+bm(e,t)},mm.fence_custom={},mm.heading_open=function(e,t){return"<h"+e[t].hLevel+">"},mm.heading_close=function(e,t){return"</h"+e[t].hLevel+">\n"},mm.hr=function(e,t,n){return(n.xhtmlOut?"<hr />":"<hr>")+bm(e,t)},mm.bullet_list_open=function(){return"<ul>\n"},mm.bullet_list_close=function(e,t){return"</ul>"+bm(e,t)},mm.list_item_open=function(){return"<li>"},mm.list_item_close=function(){return"</li>\n"},mm.ordered_list_open=function(e,t){var n=e[t];return"<ol"+(n.order>1?' start="'+n.order+'"':"")+">\n"},mm.ordered_list_close=function(e,t){return"</ol>"+bm(e,t)},mm.paragraph_open=function(e,t){return e[t].tight?"":"<p>"},mm.paragraph_close=function(e,t){var n=!(e[t].tight&&t&&"inline"===e[t-1].type&&!e[t-1].content);return(e[t].tight?"":"</p>")+(n?bm(e,t):"")},mm.link_open=function(e,t,n){var r=e[t].title?' title="'+vm(dm(e[t].title))+'"':"",o=n.linkTarget?' target="'+n.linkTarget+'"':"";return'<a href="'+vm(e[t].href)+'"'+r+o+">"},mm.link_close=function(){return"</a>"},mm.image=function(e,t,n){var r=' src="'+vm(e[t].src)+'"',o=e[t].title?' title="'+vm(dm(e[t].title))+'"':"";return"<img"+r+(' alt="'+(e[t].alt?vm(dm(im(e[t].alt))):"")+'"')+o+(n.xhtmlOut?" /":"")+">"},mm.table_open=function(){return"<table>\n"},mm.table_close=function(){return"</table>\n"},mm.thead_open=function(){return"<thead>\n"},mm.thead_close=function(){return"</thead>\n"},mm.tbody_open=function(){return"<tbody>\n"},mm.tbody_close=function(){return"</tbody>\n"},mm.tr_open=function(){return"<tr>"},mm.tr_close=function(){return"</tr>\n"},mm.th_open=function(e,t){var n=e[t];return"<th"+(n.align?' style="text-align:'+n.align+'"':"")+">"},mm.th_close=function(){return"</th>"},mm.td_open=function(e,t){var n=e[t];return"<td"+(n.align?' style="text-align:'+n.align+'"':"")+">"},mm.td_close=function(){return"</td>"},mm.strong_open=function(){return"<strong>"},mm.strong_close=function(){return"</strong>"},mm.em_open=function(){return"<em>"},mm.em_close=function(){return"</em>"},mm.del_open=function(){return"<del>"},mm.del_close=function(){return"</del>"},mm.ins_open=function(){return"<ins>"},mm.ins_close=function(){return"</ins>"},mm.mark_open=function(){return"<mark>"},mm.mark_close=function(){return"</mark>"},mm.sub=function(e,t){return"<sub>"+vm(e[t].content)+"</sub>"},mm.sup=function(e,t){return"<sup>"+vm(e[t].content)+"</sup>"},mm.hardbreak=function(e,t,n){return n.xhtmlOut?"<br />\n":"<br>\n"},mm.softbreak=function(e,t,n){return n.breaks?n.xhtmlOut?"<br />\n":"<br>\n":"\n"},mm.text=function(e,t){return vm(e[t].content)},mm.htmlblock=function(e,t){return e[t].content},mm.htmltag=function(e,t){return e[t].content},mm.abbr_open=function(e,t){return'<abbr title="'+vm(dm(e[t].title))+'">'},mm.abbr_close=function(){return"</abbr>"},mm.footnote_ref=function(e,t){var n=Number(e[t].id+1).toString(),r="fnref"+n;return e[t].subId>0&&(r+=":"+e[t].subId),'<sup class="footnote-ref"><a href="#fn'+n+'" id="'+r+'">['+n+"]</a></sup>"},mm.footnote_block_open=function(e,t,n){return(n.xhtmlOut?'<hr class="footnotes-sep" />\n':'<hr class="footnotes-sep">\n')+'<section class="footnotes">\n<ol class="footnotes-list">\n'},mm.footnote_block_close=function(){return"</ol>\n</section>\n"},mm.footnote_open=function(e,t){return'<li id="fn'+Number(e[t].id+1).toString()+'" class="footnote-item">'},mm.footnote_close=function(){return"</li>\n"},mm.footnote_anchor=function(e,t){var n="fnref"+Number(e[t].id+1).toString();return e[t].subId>0&&(n+=":"+e[t].subId),' <a href="#'+n+'" class="footnote-backref">↩</a>'},mm.dl_open=function(){return"<dl>\n"},mm.dt_open=function(){return"<dt>"},mm.dd_open=function(){return"<dd>"},mm.dl_close=function(){return"</dl>\n"},mm.dt_close=function(){return"</dt>\n"},mm.dd_close=function(){return"</dd>\n"};var bm=mm.getBreak=function(e,t){return(t=ym(e,t))<e.length&&"list_item_close"===e[t].type?"":"\n"};function _m(){this.rules=rm({},mm),this.getBreak=mm.getBreak}function wm(){this.__rules__=[],this.__cache__=null}function Cm(e,t,n,r,o){this.src=e,this.env=r,this.options=n,this.parser=t,this.tokens=o,this.pos=0,this.posMax=this.src.length,this.level=0,this.pending="",this.pendingLevel=0,this.cache=[],this.isInLabel=!1,this.linkLevel=0,this.linkContent="",this.labelUnmatchedScopes=0}function km(e,t){var n,r,o,i=-1,s=e.posMax,a=e.pos,l=e.isInLabel;if(e.isInLabel)return-1;if(e.labelUnmatchedScopes)return e.labelUnmatchedScopes--,-1;for(e.pos=t+1,e.isInLabel=!0,n=1;e.pos<s;){if(91===(o=e.src.charCodeAt(e.pos)))n++;else if(93===o&&0===--n){r=!0;break}e.parser.skipToken(e)}return r?(i=e.pos,e.labelUnmatchedScopes=0):e.labelUnmatchedScopes=n-1,e.pos=a,e.isInLabel=l,i}function Sm(e,t,n,r){var o,i,s,a,l,u;if(42!==e.charCodeAt(0))return-1;if(91!==e.charCodeAt(1))return-1;if(-1===e.indexOf("]:"))return-1;if((i=km(o=new Cm(e,t,n,r,[]),1))<0||58!==e.charCodeAt(i+1))return-1;for(a=o.posMax,s=i+2;s<a&&10!==o.src.charCodeAt(s);s++);return l=e.slice(2,i),0===(u=e.slice(i+2,s).trim()).length?-1:(r.abbreviations||(r.abbreviations={}),void 0===r.abbreviations[":"+l]&&(r.abbreviations[":"+l]=u),s)}function Em(e){var t=dm(e);try{t=decodeURI(t)}catch(e){}return encodeURI(t)}function xm(e,t){var n,r,o,i=t,s=e.posMax;if(60===e.src.charCodeAt(t)){for(t++;t<s;){if(10===(n=e.src.charCodeAt(t)))return!1;if(62===n)return o=Em(im(e.src.slice(i+1,t))),!!e.parser.validateLink(o)&&(e.pos=t+1,e.linkContent=o,!0);92===n&&t+1<s?t+=2:t++}return!1}for(r=0;t<s&&32!==(n=e.src.charCodeAt(t))&&!(n<32||127===n);)if(92===n&&t+1<s)t+=2;else{if(40===n&&++r>1)break;if(41===n&&--r<0)break;t++}return i!==t&&(o=im(e.src.slice(i,t)),!!e.parser.validateLink(o)&&(e.linkContent=o,e.pos=t,!0))}function Rm(e,t){var n,r=t,o=e.posMax,i=e.src.charCodeAt(t);if(34!==i&&39!==i&&40!==i)return!1;for(t++,40===i&&(i=41);t<o;){if((n=e.src.charCodeAt(t))===i)return e.pos=t+1,e.linkContent=im(e.src.slice(r+1,t)),!0;92===n&&t+1<o?t+=2:t++}return!1}function Dm(e){return e.trim().replace(/\s+/g," ").toUpperCase()}function Tm(e,t,n,r){var o,i,s,a,l,u,c,d,f;if(91!==e.charCodeAt(0))return-1;if(-1===e.indexOf("]:"))return-1;if((i=km(o=new Cm(e,t,n,r,[]),0))<0||58!==e.charCodeAt(i+1))return-1;for(a=o.posMax,s=i+2;s<a&&(32===(l=o.src.charCodeAt(s))||10===l);s++);if(!xm(o,s))return-1;for(c=o.linkContent,u=s=o.pos,s+=1;s<a&&(32===(l=o.src.charCodeAt(s))||10===l);s++);for(s<a&&u!==s&&Rm(o,s)?(d=o.linkContent,s=o.pos):(d="",s=u);s<a&&32===o.src.charCodeAt(s);)s++;return s<a&&10!==o.src.charCodeAt(s)?-1:(f=Dm(e.slice(1,i)),void 0===r.references[f]&&(r.references[f]={title:d,href:c}),s)}_m.prototype.renderInline=function(e,t,n){for(var r=this.rules,o=e.length,i=0,s="";o--;)s+=r[e[i].type](e,i++,t,n,this);return s},_m.prototype.render=function(e,t,n){for(var r=this.rules,o=e.length,i=-1,s="";++i<o;)"inline"===e[i].type?s+=this.renderInline(e[i].children,t,n):s+=r[e[i].type](e,i,t,n,this);return s},wm.prototype.__find__=function(e){for(var t=this.__rules__.length,n=-1;t--;)if(this.__rules__[++n].name===e)return n;return-1},wm.prototype.__compile__=function(){var e=this,t=[""];e.__rules__.forEach((function(e){e.enabled&&e.alt.forEach((function(e){t.indexOf(e)<0&&t.push(e)}))})),e.__cache__={},t.forEach((function(t){e.__cache__[t]=[],e.__rules__.forEach((function(n){n.enabled&&(t&&n.alt.indexOf(t)<0||e.__cache__[t].push(n.fn))}))}))},wm.prototype.at=function(e,t,n){var r=this.__find__(e),o=n||{};if(-1===r)throw new Error("Parser rule not found: "+e);this.__rules__[r].fn=t,this.__rules__[r].alt=o.alt||[],this.__cache__=null},wm.prototype.before=function(e,t,n,r){var o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},wm.prototype.after=function(e,t,n,r){var o=this.__find__(e),i=r||{};if(-1===o)throw new Error("Parser rule not found: "+e);this.__rules__.splice(o+1,0,{name:t,enabled:!0,fn:n,alt:i.alt||[]}),this.__cache__=null},wm.prototype.push=function(e,t,n){var r=n||{};this.__rules__.push({name:e,enabled:!0,fn:t,alt:r.alt||[]}),this.__cache__=null},wm.prototype.enable=function(e,t){e=Array.isArray(e)?e:[e],t&&this.__rules__.forEach((function(e){e.enabled=!1})),e.forEach((function(e){var t=this.__find__(e);if(t<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[t].enabled=!0}),this),this.__cache__=null},wm.prototype.disable=function(e){(e=Array.isArray(e)?e:[e]).forEach((function(e){var t=this.__find__(e);if(t<0)throw new Error("Rules manager: invalid rule name "+e);this.__rules__[t].enabled=!1}),this),this.__cache__=null},wm.prototype.getRules=function(e){return null===this.__cache__&&this.__compile__(),this.__cache__[e]||[]},Cm.prototype.pushPending=function(){this.tokens.push({type:"text",content:this.pending,level:this.pendingLevel}),this.pending=""},Cm.prototype.push=function(e){this.pending&&this.pushPending(),this.tokens.push(e),this.pendingLevel=this.level},Cm.prototype.cacheSet=function(e,t){for(var n=this.cache.length;n<=e;n++)this.cache.push(0);this.cache[e]=t},Cm.prototype.cacheGet=function(e){return e<this.cache.length?this.cache[e]:0};var $m=" \n()[]'\".,!?-";function Mm(e){return e.replace(/([-()\[\]{}+?*.$\^|,:#<!\\])/g,"\\$1")}var Im=/\+-|\.\.|\?\?\?\?|!!!!|,,|--/,Am=/\((c|tm|r|p)\)/gi,Om={c:"©",r:"®",p:"§",tm:"™"};var Nm=/['"]/,Pm=/['"]/g,Lm=/[-\s()\[\]]/;function Hm(e,t){return!(t<0||t>=e.length)&&!Lm.test(e[t])}function Wm(e,t,n){return e.substr(0,t)+n+e.substr(t+1)}var Um=[["block",function(e){e.inlineMode?e.tokens.push({type:"inline",content:e.src.replace(/\n/g," ").trim(),level:0,lines:[0,1],children:[]}):e.block.parse(e.src,e.options,e.env,e.tokens)}],["abbr",function(e){var t,n,r,o,i=e.tokens;if(!e.inlineMode)for(t=1,n=i.length-1;t<n;t++)if("paragraph_open"===i[t-1].type&&"inline"===i[t].type&&"paragraph_close"===i[t+1].type){for(r=i[t].content;r.length&&!((o=Sm(r,e.inline,e.options,e.env))<0);)r=r.slice(o).trim();i[t].content=r,r.length||(i[t-1].tight=!0,i[t+1].tight=!0)}}],["references",function(e){var t,n,r,o,i=e.tokens;if(e.env.references=e.env.references||{},!e.inlineMode)for(t=1,n=i.length-1;t<n;t++)if("inline"===i[t].type&&"paragraph_open"===i[t-1].type&&"paragraph_close"===i[t+1].type){for(r=i[t].content;r.length&&!((o=Tm(r,e.inline,e.options,e.env))<0);)r=r.slice(o).trim();i[t].content=r,r.length||(i[t-1].tight=!0,i[t+1].tight=!0)}}],["inline",function(e){var t,n,r,o=e.tokens;for(n=0,r=o.length;n<r;n++)"inline"===(t=o[n]).type&&e.inline.parse(t.content,e.options,e.env,t.children)}],["footnote_tail",function(e){var t,n,r,o,i,s,a,l,u,c=0,d=!1,f={};if(e.env.footnotes&&(e.tokens=e.tokens.filter((function(e){return"footnote_reference_open"===e.type?(d=!0,l=[],u=e.label,!1):"footnote_reference_close"===e.type?(d=!1,f[":"+u]=l,!1):(d&&l.push(e),!d)})),e.env.footnotes.list)){for(s=e.env.footnotes.list,e.tokens.push({type:"footnote_block_open",level:c++}),t=0,n=s.length;t<n;t++){for(e.tokens.push({type:"footnote_open",id:t,level:c++}),s[t].tokens?((a=[]).push({type:"paragraph_open",tight:!1,level:c++}),a.push({type:"inline",content:"",level:c,children:s[t].tokens}),a.push({type:"paragraph_close",tight:!1,level:--c})):s[t].label&&(a=f[":"+s[t].label]),e.tokens=e.tokens.concat(a),i="paragraph_close"===e.tokens[e.tokens.length-1].type?e.tokens.pop():null,o=s[t].count>0?s[t].count:1,r=0;r<o;r++)e.tokens.push({type:"footnote_anchor",id:t,subId:r,level:c});i&&e.tokens.push(i),e.tokens.push({type:"footnote_close",level:--c})}e.tokens.push({type:"footnote_block_close",level:--c})}}],["abbr2",function(e){var t,n,r,o,i,s,a,l,u,c,d,f,p=e.tokens;if(e.env.abbreviations)for(e.env.abbrRegExp||(f="(^|["+$m.split("").map(Mm).join("")+"])("+Object.keys(e.env.abbreviations).map((function(e){return e.substr(1)})).sort((function(e,t){return t.length-e.length})).map(Mm).join("|")+")($|["+$m.split("").map(Mm).join("")+"])",e.env.abbrRegExp=new RegExp(f,"g")),c=e.env.abbrRegExp,n=0,r=p.length;n<r;n++)if("inline"===p[n].type)for(t=(o=p[n].children).length-1;t>=0;t--)if("text"===(i=o[t]).type){for(l=0,s=i.content,c.lastIndex=0,u=i.level,a=[];d=c.exec(s);)c.lastIndex>l&&a.push({type:"text",content:s.slice(l,d.index+d[1].length),level:u}),a.push({type:"abbr_open",title:e.env.abbreviations[":"+d[2]],level:u++}),a.push({type:"text",content:d[2],level:u}),a.push({type:"abbr_close",level:--u}),l=c.lastIndex-d[3].length;a.length&&(l<s.length&&a.push({type:"text",content:s.slice(l),level:u}),p[n].children=o=[].concat(o.slice(0,t),a,o.slice(t+1)))}}],["replacements",function(e){var t,n,r,o,i,s;if(e.options.typographer)for(i=e.tokens.length-1;i>=0;i--)if("inline"===e.tokens[i].type)for(t=(o=e.tokens[i].children).length-1;t>=0;t--)"text"===(n=o[t]).type&&(r=n.content,r=(s=r).indexOf("(")<0?s:s.replace(Am,(function(e,t){return Om[t.toLowerCase()]})),Im.test(r)&&(r=r.replace(/\+-/g,"±").replace(/\.{2,}/g,"…").replace(/([?!])…/g,"$1..").replace(/([?!]){4,}/g,"$1$1$1").replace(/,{2,}/g,",").replace(/(^|[^-])---([^-]|$)/gm,"$1—$2").replace(/(^|\s)--(\s|$)/gm,"$1–$2").replace(/(^|[^-\s])--([^-\s]|$)/gm,"$1–$2")),n.content=r)}],["smartquotes",function(e){var t,n,r,o,i,s,a,l,u,c,d,f,p,h,g,v,m;if(e.options.typographer)for(m=[],g=e.tokens.length-1;g>=0;g--)if("inline"===e.tokens[g].type)for(v=e.tokens[g].children,m.length=0,t=0;t<v.length;t++)if("text"===(n=v[t]).type&&!Nm.test(n.text)){for(a=v[t].level,p=m.length-1;p>=0&&!(m[p].level<=a);p--);m.length=p+1,i=0,s=(r=n.content).length;e:for(;i<s&&(Pm.lastIndex=i,o=Pm.exec(r));)if(l=!Hm(r,o.index-1),i=o.index+1,h="'"===o[0],(u=!Hm(r,i))||l){if(d=!u,f=!l)for(p=m.length-1;p>=0&&(c=m[p],!(m[p].level<a));p--)if(c.single===h&&m[p].level===a){c=m[p],h?(v[c.token].content=Wm(v[c.token].content,c.pos,e.options.quotes[2]),n.content=Wm(n.content,o.index,e.options.quotes[3])):(v[c.token].content=Wm(v[c.token].content,c.pos,e.options.quotes[0]),n.content=Wm(n.content,o.index,e.options.quotes[1])),m.length=p;continue e}d?m.push({token:t,pos:o.index,single:h,level:a}):f&&h&&(n.content=Wm(n.content,o.index,"’"))}else h&&(n.content=Wm(n.content,o.index,"’"))}}]];function zm(){this.options={},this.ruler=new wm;for(var e=0;e<Um.length;e++)this.ruler.push(Um[e][0],Um[e][1])}function jm(e,t,n,r,o){var i,s,a,l,u,c,d;for(this.src=e,this.parser=t,this.options=n,this.env=r,this.tokens=o,this.bMarks=[],this.eMarks=[],this.tShift=[],this.blkIndent=0,this.line=0,this.lineMax=0,this.tight=!1,this.parentType="root",this.ddIndent=-1,this.level=0,this.result="",c=0,d=!1,a=l=c=0,u=(s=this.src).length;l<u;l++){if(i=s.charCodeAt(l),!d){if(32===i){c++;continue}d=!0}10!==i&&l!==u-1||(10!==i&&l++,this.bMarks.push(a),this.eMarks.push(l),this.tShift.push(c),d=!1,c=0,a=l+1)}this.bMarks.push(s.length),this.eMarks.push(s.length),this.tShift.push(0),this.lineMax=this.bMarks.length-1}function Bm(e,t){var n,r,o;return(r=e.bMarks[t]+e.tShift[t])>=(o=e.eMarks[t])||42!==(n=e.src.charCodeAt(r++))&&45!==n&&43!==n||r<o&&32!==e.src.charCodeAt(r)?-1:r}function Fm(e,t){var n,r=e.bMarks[t]+e.tShift[t],o=e.eMarks[t];if(r+1>=o)return-1;if((n=e.src.charCodeAt(r++))<48||n>57)return-1;for(;;){if(r>=o)return-1;if(!((n=e.src.charCodeAt(r++))>=48&&n<=57)){if(41===n||46===n)break;return-1}}return r<o&&32!==e.src.charCodeAt(r)?-1:r}zm.prototype.process=function(e){var t,n,r;for(t=0,n=(r=this.ruler.getRules("")).length;t<n;t++)r[t](e)},jm.prototype.isEmpty=function(e){return this.bMarks[e]+this.tShift[e]>=this.eMarks[e]},jm.prototype.skipEmptyLines=function(e){for(var t=this.lineMax;e<t&&!(this.bMarks[e]+this.tShift[e]<this.eMarks[e]);e++);return e},jm.prototype.skipSpaces=function(e){for(var t=this.src.length;e<t&&32===this.src.charCodeAt(e);e++);return e},jm.prototype.skipChars=function(e,t){for(var n=this.src.length;e<n&&this.src.charCodeAt(e)===t;e++);return e},jm.prototype.skipCharsBack=function(e,t,n){if(e<=n)return e;for(;e>n;)if(t!==this.src.charCodeAt(--e))return e+1;return e},jm.prototype.getLines=function(e,t,n,r){var o,i,s,a,l,u=e;if(e>=t)return"";if(u+1===t)return i=this.bMarks[u]+Math.min(this.tShift[u],n),s=r?this.eMarks[u]+1:this.eMarks[u],this.src.slice(i,s);for(a=new Array(t-e),o=0;u<t;u++,o++)(l=this.tShift[u])>n&&(l=n),l<0&&(l=0),i=this.bMarks[u]+l,s=u+1<t||r?this.eMarks[u]+1:this.eMarks[u],a[o]=this.src.slice(i,s);return a.join("")};var qm={};["article","aside","button","blockquote","body","canvas","caption","col","colgroup","dd","div","dl","dt","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","iframe","li","map","object","ol","output","p","pre","progress","script","section","style","table","tbody","td","textarea","tfoot","th","tr","thead","ul","video"].forEach((function(e){qm[e]=!0}));var Vm=/^<([a-zA-Z]{1,15})[\s\/>]/,Ym=/^<\/([a-zA-Z]{1,15})[\s>]/;function Gm(e,t){var n=e.bMarks[t]+e.blkIndent,r=e.eMarks[t];return e.src.substr(n,r-n)}function Zm(e,t){var n,r,o=e.bMarks[t]+e.tShift[t],i=e.eMarks[t];return o>=i||126!==(r=e.src.charCodeAt(o++))&&58!==r||o===(n=e.skipSpaces(o))||n>=i?-1:n}var Km=[["code",function(e,t,n){var r,o;if(e.tShift[t]-e.blkIndent<4)return!1;for(o=r=t+1;r<n;)if(e.isEmpty(r))r++;else{if(!(e.tShift[r]-e.blkIndent>=4))break;o=++r}return e.line=r,e.tokens.push({type:"code",content:e.getLines(t,o,4+e.blkIndent,!0),block:!0,lines:[t,e.line],level:e.level}),!0}],["fences",function(e,t,n,r){var o,i,s,a,l,u=!1,c=e.bMarks[t]+e.tShift[t],d=e.eMarks[t];if(c+3>d)return!1;if(126!==(o=e.src.charCodeAt(c))&&96!==o)return!1;if(l=c,(i=(c=e.skipChars(c,o))-l)<3)return!1;if((s=e.src.slice(c,d).trim()).indexOf("`")>=0)return!1;if(r)return!0;for(a=t;!(++a>=n)&&!((c=l=e.bMarks[a]+e.tShift[a])<(d=e.eMarks[a])&&e.tShift[a]<e.blkIndent);)if(e.src.charCodeAt(c)===o&&!(e.tShift[a]-e.blkIndent>=4||(c=e.skipChars(c,o))-l<i||(c=e.skipSpaces(c))<d)){u=!0;break}return i=e.tShift[t],e.line=a+(u?1:0),e.tokens.push({type:"fence",params:s,content:e.getLines(t+1,a,i,!0),lines:[t,e.line],level:e.level}),!0},["paragraph","blockquote","list"]],["blockquote",function(e,t,n,r){var o,i,s,a,l,u,c,d,f,p,h,g=e.bMarks[t]+e.tShift[t],v=e.eMarks[t];if(g>v)return!1;if(62!==e.src.charCodeAt(g++))return!1;if(e.level>=e.options.maxNesting)return!1;if(r)return!0;for(32===e.src.charCodeAt(g)&&g++,l=e.blkIndent,e.blkIndent=0,a=[e.bMarks[t]],e.bMarks[t]=g,i=(g=g<v?e.skipSpaces(g):g)>=v,s=[e.tShift[t]],e.tShift[t]=g-e.bMarks[t],d=e.parser.ruler.getRules("blockquote"),o=t+1;o<n&&!((g=e.bMarks[o]+e.tShift[o])>=(v=e.eMarks[o]));o++)if(62!==e.src.charCodeAt(g++)){if(i)break;for(h=!1,f=0,p=d.length;f<p;f++)if(d[f](e,o,n,!0)){h=!0;break}if(h)break;a.push(e.bMarks[o]),s.push(e.tShift[o]),e.tShift[o]=-1337}else 32===e.src.charCodeAt(g)&&g++,a.push(e.bMarks[o]),e.bMarks[o]=g,i=(g=g<v?e.skipSpaces(g):g)>=v,s.push(e.tShift[o]),e.tShift[o]=g-e.bMarks[o];for(u=e.parentType,e.parentType="blockquote",e.tokens.push({type:"blockquote_open",lines:c=[t,0],level:e.level++}),e.parser.tokenize(e,t,o),e.tokens.push({type:"blockquote_close",level:--e.level}),e.parentType=u,c[1]=e.line,f=0;f<s.length;f++)e.bMarks[f+t]=a[f],e.tShift[f+t]=s[f];return e.blkIndent=l,!0},["paragraph","blockquote","list"]],["hr",function(e,t,n,r){var o,i,s,a=e.bMarks[t],l=e.eMarks[t];if((a+=e.tShift[t])>l)return!1;if(42!==(o=e.src.charCodeAt(a++))&&45!==o&&95!==o)return!1;for(i=1;a<l;){if((s=e.src.charCodeAt(a++))!==o&&32!==s)return!1;s===o&&i++}return!(i<3)&&(r||(e.line=t+1,e.tokens.push({type:"hr",lines:[t,e.line],level:e.level})),!0)},["paragraph","blockquote","list"]],["list",function(e,t,n,r){var o,i,s,a,l,u,c,d,f,p,h,g,v,m,y,b,_,w,C,k,S,E=!0;if((d=Fm(e,t))>=0)g=!0;else{if(!((d=Bm(e,t))>=0))return!1;g=!1}if(e.level>=e.options.maxNesting)return!1;if(h=e.src.charCodeAt(d-1),r)return!0;for(m=e.tokens.length,g?(c=e.bMarks[t]+e.tShift[t],p=Number(e.src.substr(c,d-c-1)),e.tokens.push({type:"ordered_list_open",order:p,lines:b=[t,0],level:e.level++})):e.tokens.push({type:"bullet_list_open",lines:b=[t,0],level:e.level++}),o=t,y=!1,w=e.parser.ruler.getRules("list");!(!(o<n)||((f=(v=e.skipSpaces(d))>=e.eMarks[o]?1:v-d)>4&&(f=1),f<1&&(f=1),i=d-e.bMarks[o]+f,e.tokens.push({type:"list_item_open",lines:_=[t,0],level:e.level++}),a=e.blkIndent,l=e.tight,s=e.tShift[t],u=e.parentType,e.tShift[t]=v-e.bMarks[t],e.blkIndent=i,e.tight=!0,e.parentType="list",e.parser.tokenize(e,t,n,!0),e.tight&&!y||(E=!1),y=e.line-t>1&&e.isEmpty(e.line-1),e.blkIndent=a,e.tShift[t]=s,e.tight=l,e.parentType=u,e.tokens.push({type:"list_item_close",level:--e.level}),o=t=e.line,_[1]=o,v=e.bMarks[t],o>=n)||e.isEmpty(o)||e.tShift[o]<e.blkIndent);){for(S=!1,C=0,k=w.length;C<k;C++)if(w[C](e,o,n,!0)){S=!0;break}if(S)break;if(g){if((d=Fm(e,o))<0)break}else if((d=Bm(e,o))<0)break;if(h!==e.src.charCodeAt(d-1))break}return e.tokens.push({type:g?"ordered_list_close":"bullet_list_close",level:--e.level}),b[1]=o,e.line=o,E&&function(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===o&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].tight=!0,e.tokens[n].tight=!0,n+=2)}(e,m),!0},["paragraph","blockquote"]],["footnote",function(e,t,n,r){var o,i,s,a,l,u=e.bMarks[t]+e.tShift[t],c=e.eMarks[t];if(u+4>c)return!1;if(91!==e.src.charCodeAt(u))return!1;if(94!==e.src.charCodeAt(u+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(a=u+2;a<c;a++){if(32===e.src.charCodeAt(a))return!1;if(93===e.src.charCodeAt(a))break}return a!==u+2&&(!(a+1>=c||58!==e.src.charCodeAt(++a))&&(r||(a++,e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.refs||(e.env.footnotes.refs={}),l=e.src.slice(u+2,a-2),e.env.footnotes.refs[":"+l]=-1,e.tokens.push({type:"footnote_reference_open",label:l,level:e.level++}),o=e.bMarks[t],i=e.tShift[t],s=e.parentType,e.tShift[t]=e.skipSpaces(a)-a,e.bMarks[t]=a,e.blkIndent+=4,e.parentType="footnote",e.tShift[t]<e.blkIndent&&(e.tShift[t]+=e.blkIndent,e.bMarks[t]-=e.blkIndent),e.parser.tokenize(e,t,n,!0),e.parentType=s,e.blkIndent-=4,e.tShift[t]=i,e.bMarks[t]=o,e.tokens.push({type:"footnote_reference_close",level:--e.level})),!0))},["paragraph"]],["heading",function(e,t,n,r){var o,i,s,a=e.bMarks[t]+e.tShift[t],l=e.eMarks[t];if(a>=l)return!1;if(35!==(o=e.src.charCodeAt(a))||a>=l)return!1;for(i=1,o=e.src.charCodeAt(++a);35===o&&a<l&&i<=6;)i++,o=e.src.charCodeAt(++a);return!(i>6||a<l&&32!==o)&&(r||(l=e.skipCharsBack(l,32,a),(s=e.skipCharsBack(l,35,a))>a&&32===e.src.charCodeAt(s-1)&&(l=s),e.line=t+1,e.tokens.push({type:"heading_open",hLevel:i,lines:[t,e.line],level:e.level}),a<l&&e.tokens.push({type:"inline",content:e.src.slice(a,l).trim(),level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"heading_close",hLevel:i,level:e.level})),!0)},["paragraph","blockquote"]],["lheading",function(e,t,n){var r,o,i,s=t+1;return!(s>=n)&&(!(e.tShift[s]<e.blkIndent)&&(!(e.tShift[s]-e.blkIndent>3)&&(!((o=e.bMarks[s]+e.tShift[s])>=(i=e.eMarks[s]))&&((45===(r=e.src.charCodeAt(o))||61===r)&&(o=e.skipChars(o,r),!((o=e.skipSpaces(o))<i)&&(o=e.bMarks[t]+e.tShift[t],e.line=s+1,e.tokens.push({type:"heading_open",hLevel:61===r?1:2,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:e.src.slice(o,e.eMarks[t]).trim(),level:e.level+1,lines:[t,e.line-1],children:[]}),e.tokens.push({type:"heading_close",hLevel:61===r?1:2,level:e.level}),!0))))))}],["htmlblock",function(e,t,n,r){var o,i,s,a=e.bMarks[t],l=e.eMarks[t],u=e.tShift[t];if(a+=u,!e.options.html)return!1;if(u>3||a+2>=l)return!1;if(60!==e.src.charCodeAt(a))return!1;if(33===(o=e.src.charCodeAt(a+1))||63===o){if(r)return!0}else{if(47!==o&&!function(e){var t=32|e;return t>=97&&t<=122}(o))return!1;if(47===o){if(!(i=e.src.slice(a,l).match(Ym)))return!1}else if(!(i=e.src.slice(a,l).match(Vm)))return!1;if(!0!==qm[i[1].toLowerCase()])return!1;if(r)return!0}for(s=t+1;s<e.lineMax&&!e.isEmpty(s);)s++;return e.line=s,e.tokens.push({type:"htmlblock",level:e.level,lines:[t,e.line],content:e.getLines(t,s,0,!0)}),!0},["paragraph","blockquote"]],["table",function(e,t,n,r){var o,i,s,a,l,u,c,d,f,p,h;if(t+2>n)return!1;if(l=t+1,e.tShift[l]<e.blkIndent)return!1;if((s=e.bMarks[l]+e.tShift[l])>=e.eMarks[l])return!1;if(124!==(o=e.src.charCodeAt(s))&&45!==o&&58!==o)return!1;if(i=Gm(e,t+1),!/^[-:| ]+$/.test(i))return!1;if((u=i.split("|"))<=2)return!1;for(d=[],a=0;a<u.length;a++){if(!(f=u[a].trim())){if(0===a||a===u.length-1)continue;return!1}if(!/^:?-+:?$/.test(f))return!1;58===f.charCodeAt(f.length-1)?d.push(58===f.charCodeAt(0)?"center":"right"):58===f.charCodeAt(0)?d.push("left"):d.push("")}if(-1===(i=Gm(e,t).trim()).indexOf("|"))return!1;if(u=i.replace(/^\||\|$/g,"").split("|"),d.length!==u.length)return!1;if(r)return!0;for(e.tokens.push({type:"table_open",lines:p=[t,0],level:e.level++}),e.tokens.push({type:"thead_open",lines:[t,t+1],level:e.level++}),e.tokens.push({type:"tr_open",lines:[t,t+1],level:e.level++}),a=0;a<u.length;a++)e.tokens.push({type:"th_open",align:d[a],lines:[t,t+1],level:e.level++}),e.tokens.push({type:"inline",content:u[a].trim(),lines:[t,t+1],level:e.level,children:[]}),e.tokens.push({type:"th_close",level:--e.level});for(e.tokens.push({type:"tr_close",level:--e.level}),e.tokens.push({type:"thead_close",level:--e.level}),e.tokens.push({type:"tbody_open",lines:h=[t+2,0],level:e.level++}),l=t+2;l<n&&!(e.tShift[l]<e.blkIndent)&&-1!==(i=Gm(e,l).trim()).indexOf("|");l++){for(u=i.replace(/^\||\|$/g,"").split("|"),e.tokens.push({type:"tr_open",level:e.level++}),a=0;a<u.length;a++)e.tokens.push({type:"td_open",align:d[a],level:e.level++}),c=u[a].substring(124===u[a].charCodeAt(0)?1:0,124===u[a].charCodeAt(u[a].length-1)?u[a].length-1:u[a].length).trim(),e.tokens.push({type:"inline",content:c,level:e.level,children:[]}),e.tokens.push({type:"td_close",level:--e.level});e.tokens.push({type:"tr_close",level:--e.level})}return e.tokens.push({type:"tbody_close",level:--e.level}),e.tokens.push({type:"table_close",level:--e.level}),p[1]=h[1]=l,e.line=l,!0},["paragraph"]],["deflist",function(e,t,n,r){var o,i,s,a,l,u,c,d,f,p,h,g,v,m;if(r)return!(e.ddIndent<0)&&Zm(e,t)>=0;if(c=t+1,e.isEmpty(c)&&++c>n)return!1;if(e.tShift[c]<e.blkIndent)return!1;if((o=Zm(e,c))<0)return!1;if(e.level>=e.options.maxNesting)return!1;u=e.tokens.length,e.tokens.push({type:"dl_open",lines:l=[t,0],level:e.level++}),s=t,i=c;e:for(;;){for(m=!0,v=!1,e.tokens.push({type:"dt_open",lines:[s,s],level:e.level++}),e.tokens.push({type:"inline",content:e.getLines(s,s+1,e.blkIndent,!1).trim(),level:e.level+1,lines:[s,s],children:[]}),e.tokens.push({type:"dt_close",level:--e.level});;){if(e.tokens.push({type:"dd_open",lines:a=[c,0],level:e.level++}),g=e.tight,f=e.ddIndent,d=e.blkIndent,h=e.tShift[i],p=e.parentType,e.blkIndent=e.ddIndent=e.tShift[i]+2,e.tShift[i]=o-e.bMarks[i],e.tight=!0,e.parentType="deflist",e.parser.tokenize(e,i,n,!0),e.tight&&!v||(m=!1),v=e.line-i>1&&e.isEmpty(e.line-1),e.tShift[i]=h,e.tight=g,e.parentType=p,e.blkIndent=d,e.ddIndent=f,e.tokens.push({type:"dd_close",level:--e.level}),a[1]=c=e.line,c>=n)break e;if(e.tShift[c]<e.blkIndent)break e;if((o=Zm(e,c))<0)break;i=c}if(c>=n)break;if(s=c,e.isEmpty(s))break;if(e.tShift[s]<e.blkIndent)break;if((i=s+1)>=n)break;if(e.isEmpty(i)&&i++,i>=n)break;if(e.tShift[i]<e.blkIndent)break;if((o=Zm(e,i))<0)break}return e.tokens.push({type:"dl_close",level:--e.level}),l[1]=c,e.line=c,m&&function(e,t){var n,r,o=e.level+2;for(n=t+2,r=e.tokens.length-2;n<r;n++)e.tokens[n].level===o&&"paragraph_open"===e.tokens[n].type&&(e.tokens[n+2].tight=!0,e.tokens[n].tight=!0,n+=2)}(e,u),!0},["paragraph"]],["paragraph",function(e,t){var n,r,o,i,s,a,l=t+1;if(l<(n=e.lineMax)&&!e.isEmpty(l))for(a=e.parser.ruler.getRules("paragraph");l<n&&!e.isEmpty(l);l++)if(!(e.tShift[l]-e.blkIndent>3)){for(o=!1,i=0,s=a.length;i<s;i++)if(a[i](e,l,n,!0)){o=!0;break}if(o)break}return r=e.getLines(t,l,e.blkIndent,!1).trim(),e.line=l,r.length&&(e.tokens.push({type:"paragraph_open",tight:!1,lines:[t,e.line],level:e.level}),e.tokens.push({type:"inline",content:r,level:e.level+1,lines:[t,e.line],children:[]}),e.tokens.push({type:"paragraph_close",tight:!1,level:e.level})),!0}]];function Xm(){this.ruler=new wm;for(var e=0;e<Km.length;e++)this.ruler.push(Km[e][0],Km[e][1],{alt:(Km[e][2]||[]).slice()})}Xm.prototype.tokenize=function(e,t,n){for(var r,o=this.ruler.getRules(""),i=o.length,s=t,a=!1;s<n&&(e.line=s=e.skipEmptyLines(s),!(s>=n))&&!(e.tShift[s]<e.blkIndent);){for(r=0;r<i&&!o[r](e,s,n,!1);r++);if(e.tight=!a,e.isEmpty(e.line-1)&&(a=!0),(s=e.line)<n&&e.isEmpty(s)){if(a=!0,++s<n&&"list"===e.parentType&&e.isEmpty(s))break;e.line=s}}};var Jm=/[\n\t]/g,Qm=/\r[\n\u0085]|[\u2424\u2028\u0085]/g,ey=/\u00a0/g;function ty(e){switch(e){case 10:case 92:case 96:case 42:case 95:case 94:case 91:case 93:case 33:case 38:case 60:case 62:case 123:case 125:case 36:case 37:case 64:case 126:case 43:case 61:case 58:return!0;default:return!1}}Xm.prototype.parse=function(e,t,n,r){var o,i=0,s=0;if(!e)return[];(e=(e=e.replace(ey," ")).replace(Qm,"\n")).indexOf("\t")>=0&&(e=e.replace(Jm,(function(t,n){var r;return 10===e.charCodeAt(n)?(i=n+1,s=0,t):(r=" ".slice((n-i-s)%4),s=n-i+1,r)}))),o=new jm(e,this,t,n,r),this.tokenize(o,o.line,o.lineMax)};for(var ny=[],ry=0;ry<256;ry++)ny.push(0);function oy(e){return e>=48&&e<=57||e>=65&&e<=90||e>=97&&e<=122}function iy(e,t){var n,r,o,i=t,s=!0,a=!0,l=e.posMax,u=e.src.charCodeAt(t);for(n=t>0?e.src.charCodeAt(t-1):-1;i<l&&e.src.charCodeAt(i)===u;)i++;return i>=l&&(s=!1),(o=i-t)>=4?s=a=!1:(32!==(r=i<l?e.src.charCodeAt(i):-1)&&10!==r||(s=!1),32!==n&&10!==n||(a=!1),95===u&&(oy(n)&&(s=!1),oy(r)&&(a=!1))),{can_open:s,can_close:a,delims:o}}"\\!\"#$%&'()*+,./:;<=>?@[]^_`{|}~-".split("").forEach((function(e){ny[e.charCodeAt(0)]=1}));var sy=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;var ay=/\\([ \\!"#$%&'()*+,.\/:;<=>?@[\]^_`{|}~-])/g;var ly=["coap","doi","javascript","aaa","aaas","about","acap","cap","cid","crid","data","dav","dict","dns","file","ftp","geo","go","gopher","h323","http","https","iax","icap","im","imap","info","ipp","iris","iris.beep","iris.xpc","iris.xpcs","iris.lwz","ldap","mailto","mid","msrp","msrps","mtqp","mupdate","news","nfs","ni","nih","nntp","opaquelocktoken","pop","pres","rtsp","service","session","shttp","sieve","sip","sips","sms","snmp","soap.beep","soap.beeps","tag","tel","telnet","tftp","thismessage","tn3270","tip","tv","urn","vemmi","ws","wss","xcon","xcon-userid","xmlrpc.beep","xmlrpc.beeps","xmpp","z39.50r","z39.50s","adiumxtra","afp","afs","aim","apt","attachment","aw","beshare","bitcoin","bolo","callto","chrome","chrome-extension","com-eventbrite-attendee","content","cvs","dlna-playsingle","dlna-playcontainer","dtn","dvb","ed2k","facetime","feed","finger","fish","gg","git","gizmoproject","gtalk","hcp","icon","ipn","irc","irc6","ircs","itms","jar","jms","keyparc","lastfm","ldaps","magnet","maps","market","message","mms","ms-help","msnim","mumble","mvn","notes","oid","palm","paparazzi","platform","proxy","psyc","query","res","resource","rmi","rsync","rtmp","secondlife","sftp","sgn","skype","smb","soldat","spotify","ssh","steam","svn","teamspeak","things","udp","unreal","ut2004","ventrilo","view-source","webcal","wtai","wyciwyg","xfire","xri","ymsgr"],uy=/^<([a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*)>/,cy=/^<([a-zA-Z.\-]{1,25}):([^<>\x00-\x20]*)>/;function dy(e,t){return e=e.source,t=t||"",function n(r,o){return r?(o=o.source||o,e=e.replace(r,o),n):new RegExp(e,t)}}var fy=dy(/(?:unquoted|single_quoted|double_quoted)/)("unquoted",/[^"'=<>`\x00-\x20]+/)("single_quoted",/'[^']*'/)("double_quoted",/"[^"]*"/)(),py=dy(/(?:\s+attr_name(?:\s*=\s*attr_value)?)/)("attr_name",/[a-zA-Z_:][a-zA-Z0-9:._-]*/)("attr_value",fy)(),hy=dy(/<[A-Za-z][A-Za-z0-9]*attribute*\s*\/?>/)("attribute",py)(),gy=dy(/^(?:open_tag|close_tag|comment|processing|declaration|cdata)/)("open_tag",hy)("close_tag",/<\/[A-Za-z][A-Za-z0-9]*\s*>/)("comment",/<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->/)("processing",/<[?].*?[?]>/)("declaration",/<![A-Z]+\s+[^>]*>/)("cdata",/<!\[CDATA\[[\s\S]*?\]\]>/)();var vy=/^&#((?:x[a-f0-9]{1,8}|[0-9]{1,8}));/i,my=/^&([a-z][a-z0-9]{1,31});/i;var yy=[["text",function(e,t){for(var n=e.pos;n<e.posMax&&!ty(e.src.charCodeAt(n));)n++;return n!==e.pos&&(t||(e.pending+=e.src.slice(e.pos,n)),e.pos=n,!0)}],["newline",function(e,t){var n,r,o=e.pos;if(10!==e.src.charCodeAt(o))return!1;if(n=e.pending.length-1,r=e.posMax,!t)if(n>=0&&32===e.pending.charCodeAt(n))if(n>=1&&32===e.pending.charCodeAt(n-1)){for(var i=n-2;i>=0;i--)if(32!==e.pending.charCodeAt(i)){e.pending=e.pending.substring(0,i+1);break}e.push({type:"hardbreak",level:e.level})}else e.pending=e.pending.slice(0,-1),e.push({type:"softbreak",level:e.level});else e.push({type:"softbreak",level:e.level});for(o++;o<r&&32===e.src.charCodeAt(o);)o++;return e.pos=o,!0}],["escape",function(e,t){var n,r=e.pos,o=e.posMax;if(92!==e.src.charCodeAt(r))return!1;if(++r<o){if((n=e.src.charCodeAt(r))<256&&0!==ny[n])return t||(e.pending+=e.src[r]),e.pos+=2,!0;if(10===n){for(t||e.push({type:"hardbreak",level:e.level}),r++;r<o&&32===e.src.charCodeAt(r);)r++;return e.pos=r,!0}}return t||(e.pending+="\\"),e.pos++,!0}],["backticks",function(e,t){var n,r,o,i,s,a=e.pos;if(96!==e.src.charCodeAt(a))return!1;for(n=a,a++,r=e.posMax;a<r&&96===e.src.charCodeAt(a);)a++;for(o=e.src.slice(n,a),i=s=a;-1!==(i=e.src.indexOf("`",s));){for(s=i+1;s<r&&96===e.src.charCodeAt(s);)s++;if(s-i===o.length)return t||e.push({type:"code",content:e.src.slice(a,i).replace(/[ \n]+/g," ").trim(),block:!1,level:e.level}),e.pos=s,!0}return t||(e.pending+=o),e.pos+=o.length,!0}],["del",function(e,t){var n,r,o,i,s,a=e.posMax,l=e.pos;if(126!==e.src.charCodeAt(l))return!1;if(t)return!1;if(l+4>=a)return!1;if(126!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(i=l>0?e.src.charCodeAt(l-1):-1,s=e.src.charCodeAt(l+2),126===i)return!1;if(126===s)return!1;if(32===s||10===s)return!1;for(r=l+2;r<a&&126===e.src.charCodeAt(r);)r++;if(r>l+3)return e.pos+=r-l,t||(e.pending+=e.src.slice(l,r)),!0;for(e.pos=l+2,o=1;e.pos+1<a;){if(126===e.src.charCodeAt(e.pos)&&126===e.src.charCodeAt(e.pos+1)&&(i=e.src.charCodeAt(e.pos-1),126!==(s=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1)&&126!==i&&(32!==i&&10!==i?o--:32!==s&&10!==s&&o++,o<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=l+2,t||(e.push({type:"del_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"del_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=a,!0):(e.pos=l,!1)}],["ins",function(e,t){var n,r,o,i,s,a=e.posMax,l=e.pos;if(43!==e.src.charCodeAt(l))return!1;if(t)return!1;if(l+4>=a)return!1;if(43!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(i=l>0?e.src.charCodeAt(l-1):-1,s=e.src.charCodeAt(l+2),43===i)return!1;if(43===s)return!1;if(32===s||10===s)return!1;for(r=l+2;r<a&&43===e.src.charCodeAt(r);)r++;if(r!==l+2)return e.pos+=r-l,t||(e.pending+=e.src.slice(l,r)),!0;for(e.pos=l+2,o=1;e.pos+1<a;){if(43===e.src.charCodeAt(e.pos)&&43===e.src.charCodeAt(e.pos+1)&&(i=e.src.charCodeAt(e.pos-1),43!==(s=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1)&&43!==i&&(32!==i&&10!==i?o--:32!==s&&10!==s&&o++,o<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=l+2,t||(e.push({type:"ins_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"ins_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=a,!0):(e.pos=l,!1)}],["mark",function(e,t){var n,r,o,i,s,a=e.posMax,l=e.pos;if(61!==e.src.charCodeAt(l))return!1;if(t)return!1;if(l+4>=a)return!1;if(61!==e.src.charCodeAt(l+1))return!1;if(e.level>=e.options.maxNesting)return!1;if(i=l>0?e.src.charCodeAt(l-1):-1,s=e.src.charCodeAt(l+2),61===i)return!1;if(61===s)return!1;if(32===s||10===s)return!1;for(r=l+2;r<a&&61===e.src.charCodeAt(r);)r++;if(r!==l+2)return e.pos+=r-l,t||(e.pending+=e.src.slice(l,r)),!0;for(e.pos=l+2,o=1;e.pos+1<a;){if(61===e.src.charCodeAt(e.pos)&&61===e.src.charCodeAt(e.pos+1)&&(i=e.src.charCodeAt(e.pos-1),61!==(s=e.pos+2<a?e.src.charCodeAt(e.pos+2):-1)&&61!==i&&(32!==i&&10!==i?o--:32!==s&&10!==s&&o++,o<=0))){n=!0;break}e.parser.skipToken(e)}return n?(e.posMax=e.pos,e.pos=l+2,t||(e.push({type:"mark_open",level:e.level++}),e.parser.tokenize(e),e.push({type:"mark_close",level:--e.level})),e.pos=e.posMax+2,e.posMax=a,!0):(e.pos=l,!1)}],["emphasis",function(e,t){var n,r,o,i,s,a,l,u=e.posMax,c=e.pos,d=e.src.charCodeAt(c);if(95!==d&&42!==d)return!1;if(t)return!1;if(n=(l=iy(e,c)).delims,!l.can_open)return e.pos+=n,t||(e.pending+=e.src.slice(c,e.pos)),!0;if(e.level>=e.options.maxNesting)return!1;for(e.pos=c+n,a=[n];e.pos<u;)if(e.src.charCodeAt(e.pos)!==d)e.parser.skipToken(e);else{if(r=(l=iy(e,e.pos)).delims,l.can_close){for(i=a.pop(),s=r;i!==s;){if(s<i){a.push(i-s);break}if(s-=i,0===a.length)break;e.pos+=i,i=a.pop()}if(0===a.length){n=i,o=!0;break}e.pos+=r;continue}l.can_open&&a.push(r),e.pos+=r}return o?(e.posMax=e.pos,e.pos=c+n,t||(2!==n&&3!==n||e.push({type:"strong_open",level:e.level++}),1!==n&&3!==n||e.push({type:"em_open",level:e.level++}),e.parser.tokenize(e),1!==n&&3!==n||e.push({type:"em_close",level:--e.level}),2!==n&&3!==n||e.push({type:"strong_close",level:--e.level})),e.pos=e.posMax+n,e.posMax=u,!0):(e.pos=c,!1)}],["sub",function(e,t){var n,r,o=e.posMax,i=e.pos;if(126!==e.src.charCodeAt(i))return!1;if(t)return!1;if(i+2>=o)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=i+1;e.pos<o;){if(126===e.src.charCodeAt(e.pos)){n=!0;break}e.parser.skipToken(e)}return n&&i+1!==e.pos?(r=e.src.slice(i+1,e.pos)).match(/(^|[^\\])(\\\\)*\s/)?(e.pos=i,!1):(e.posMax=e.pos,e.pos=i+1,t||e.push({type:"sub",level:e.level,content:r.replace(sy,"$1")}),e.pos=e.posMax+1,e.posMax=o,!0):(e.pos=i,!1)}],["sup",function(e,t){var n,r,o=e.posMax,i=e.pos;if(94!==e.src.charCodeAt(i))return!1;if(t)return!1;if(i+2>=o)return!1;if(e.level>=e.options.maxNesting)return!1;for(e.pos=i+1;e.pos<o;){if(94===e.src.charCodeAt(e.pos)){n=!0;break}e.parser.skipToken(e)}return n&&i+1!==e.pos?(r=e.src.slice(i+1,e.pos)).match(/(^|[^\\])(\\\\)*\s/)?(e.pos=i,!1):(e.posMax=e.pos,e.pos=i+1,t||e.push({type:"sup",level:e.level,content:r.replace(ay,"$1")}),e.pos=e.posMax+1,e.posMax=o,!0):(e.pos=i,!1)}],["links",function(e,t){var n,r,o,i,s,a,l,u,c=!1,d=e.pos,f=e.posMax,p=e.pos,h=e.src.charCodeAt(p);if(33===h&&(c=!0,h=e.src.charCodeAt(++p)),91!==h)return!1;if(e.level>=e.options.maxNesting)return!1;if(n=p+1,(r=km(e,p))<0)return!1;if((a=r+1)<f&&40===e.src.charCodeAt(a)){for(a++;a<f&&(32===(u=e.src.charCodeAt(a))||10===u);a++);if(a>=f)return!1;for(p=a,xm(e,a)?(i=e.linkContent,a=e.pos):i="",p=a;a<f&&(32===(u=e.src.charCodeAt(a))||10===u);a++);if(a<f&&p!==a&&Rm(e,a))for(s=e.linkContent,a=e.pos;a<f&&(32===(u=e.src.charCodeAt(a))||10===u);a++);else s="";if(a>=f||41!==e.src.charCodeAt(a))return e.pos=d,!1;a++}else{if(e.linkLevel>0)return!1;for(;a<f&&(32===(u=e.src.charCodeAt(a))||10===u);a++);if(a<f&&91===e.src.charCodeAt(a)&&(p=a+1,(a=km(e,a))>=0?o=e.src.slice(p,a++):a=p-1),o||(void 0===o&&(a=r+1),o=e.src.slice(n,r)),!(l=e.env.references[Dm(o)]))return e.pos=d,!1;i=l.href,s=l.title}return t||(e.pos=n,e.posMax=r,c?e.push({type:"image",src:i,title:s,alt:e.src.substr(n,r-n),level:e.level}):(e.push({type:"link_open",href:i,title:s,level:e.level++}),e.linkLevel++,e.parser.tokenize(e),e.linkLevel--,e.push({type:"link_close",level:--e.level}))),e.pos=a,e.posMax=f,!0}],["footnote_inline",function(e,t){var n,r,o,i,s=e.posMax,a=e.pos;return!(a+2>=s)&&(94===e.src.charCodeAt(a)&&(91===e.src.charCodeAt(a+1)&&(!(e.level>=e.options.maxNesting)&&(n=a+2,!((r=km(e,a+1))<0)&&(t||(e.env.footnotes||(e.env.footnotes={}),e.env.footnotes.list||(e.env.footnotes.list=[]),o=e.env.footnotes.list.length,e.pos=n,e.posMax=r,e.push({type:"footnote_ref",id:o,level:e.level}),e.linkLevel++,i=e.tokens.length,e.parser.tokenize(e),e.env.footnotes.list[o]={tokens:e.tokens.splice(i)},e.linkLevel--),e.pos=r+1,e.posMax=s,!0)))))}],["footnote_ref",function(e,t){var n,r,o,i,s=e.posMax,a=e.pos;if(a+3>s)return!1;if(!e.env.footnotes||!e.env.footnotes.refs)return!1;if(91!==e.src.charCodeAt(a))return!1;if(94!==e.src.charCodeAt(a+1))return!1;if(e.level>=e.options.maxNesting)return!1;for(r=a+2;r<s;r++){if(32===e.src.charCodeAt(r))return!1;if(10===e.src.charCodeAt(r))return!1;if(93===e.src.charCodeAt(r))break}return r!==a+2&&(!(r>=s)&&(r++,n=e.src.slice(a+2,r-1),void 0!==e.env.footnotes.refs[":"+n]&&(t||(e.env.footnotes.list||(e.env.footnotes.list=[]),e.env.footnotes.refs[":"+n]<0?(o=e.env.footnotes.list.length,e.env.footnotes.list[o]={label:n,count:0},e.env.footnotes.refs[":"+n]=o):o=e.env.footnotes.refs[":"+n],i=e.env.footnotes.list[o].count,e.env.footnotes.list[o].count++,e.push({type:"footnote_ref",id:o,subId:i,level:e.level})),e.pos=r,e.posMax=s,!0)))}],["autolink",function(e,t){var n,r,o,i,s,a=e.pos;return 60===e.src.charCodeAt(a)&&(!((n=e.src.slice(a)).indexOf(">")<0)&&((r=n.match(cy))?!(ly.indexOf(r[1].toLowerCase())<0)&&(s=Em(i=r[0].slice(1,-1)),!!e.parser.validateLink(i)&&(t||(e.push({type:"link_open",href:s,level:e.level}),e.push({type:"text",content:i,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=r[0].length,!0)):!!(o=n.match(uy))&&(s=Em("mailto:"+(i=o[0].slice(1,-1))),!!e.parser.validateLink(s)&&(t||(e.push({type:"link_open",href:s,level:e.level}),e.push({type:"text",content:i,level:e.level+1}),e.push({type:"link_close",level:e.level})),e.pos+=o[0].length,!0))))}],["htmltag",function(e,t){var n,r,o,i=e.pos;return!!e.options.html&&(o=e.posMax,!(60!==e.src.charCodeAt(i)||i+2>=o)&&(!(33!==(n=e.src.charCodeAt(i+1))&&63!==n&&47!==n&&!function(e){var t=32|e;return t>=97&&t<=122}(n))&&(!!(r=e.src.slice(i).match(gy))&&(t||e.push({type:"htmltag",content:e.src.slice(i,i+r[0].length),level:e.level}),e.pos+=r[0].length,!0))))}],["entity",function(e,t){var n,r,o=e.pos,i=e.posMax;if(38!==e.src.charCodeAt(o))return!1;if(o+1<i)if(35===e.src.charCodeAt(o+1)){if(r=e.src.slice(o).match(vy))return t||(n="x"===r[1][0].toLowerCase()?parseInt(r[1].slice(1),16):parseInt(r[1],10),e.pending+=sm(n)?am(n):am(65533)),e.pos+=r[0].length,!0}else if(r=e.src.slice(o).match(my)){var s=tm(r[1]);if(r[1]!==s)return t||(e.pending+=s),e.pos+=r[0].length,!0}return t||(e.pending+="&"),e.pos++,!0}]];function by(){this.ruler=new wm;for(var e=0;e<yy.length;e++)this.ruler.push(yy[e][0],yy[e][1]);this.validateLink=_y}function _y(e){var t=e.trim().toLowerCase();return-1===(t=dm(t)).indexOf(":")||-1===["vbscript","javascript","file","data"].indexOf(t.split(":")[0])}by.prototype.skipToken=function(e){var t,n,r=this.ruler.getRules(""),o=r.length,i=e.pos;if((n=e.cacheGet(i))>0)e.pos=n;else{for(t=0;t<o;t++)if(r[t](e,!0))return void e.cacheSet(i,e.pos);e.pos++,e.cacheSet(i,e.pos)}},by.prototype.tokenize=function(e){for(var t,n,r=this.ruler.getRules(""),o=r.length,i=e.posMax;e.pos<i;){for(n=0;n<o&&!(t=r[n](e,!1));n++);if(t){if(e.pos>=i)break}else e.pending+=e.src[e.pos++]}e.pending&&e.pushPending()},by.prototype.parse=function(e,t,n,r){var o=new Cm(e,this,t,n,r);this.tokenize(o)};var wy={default:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","replacements","smartquotes","references","abbr2","footnote_tail"]},block:{rules:["blockquote","code","fences","footnote","heading","hr","htmlblock","lheading","list","paragraph","table"]},inline:{rules:["autolink","backticks","del","emphasis","entity","escape","footnote_ref","htmltag","links","newline","text"]}}},full:{options:{html:!1,xhtmlOut:!1,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{},block:{},inline:{}}},commonmark:{options:{html:!0,xhtmlOut:!0,breaks:!1,langPrefix:"language-",linkTarget:"",typographer:!1,quotes:"“”‘’",highlight:null,maxNesting:20},components:{core:{rules:["block","inline","references","abbr2"]},block:{rules:["blockquote","code","fences","heading","hr","htmlblock","lheading","list","paragraph"]},inline:{rules:["autolink","backticks","emphasis","entity","escape","htmltag","links","newline","text"]}}}};function Cy(e,t,n){this.src=t,this.env=n,this.options=e.options,this.tokens=[],this.inlineMode=!1,this.inline=e.inline,this.block=e.block,this.renderer=e.renderer,this.typographer=e.typographer}function ky(e,t){"string"!=typeof e&&(t=e,e="default"),t&&null!=t.linkify&&console.warn("linkify option is removed. Use linkify plugin instead:\n\nimport Remarkable from 'remarkable';\nimport linkify from 'remarkable/linkify';\nnew Remarkable().use(linkify)\n"),this.inline=new by,this.block=new Xm,this.core=new zm,this.renderer=new _m,this.ruler=new wm,this.options={},this.configure(wy[e]),this.set(t||{})}function Sy(e){let t,n=e[0].extendedProps.calendar+"";return{c(){t=I(n)},m(e,n){R(e,t,n)},p(e,r){1&r&&n!==(n=e[0].extendedProps.calendar+"")&&U(t,n)},d(e){e&&D(t)}}}function Ey(e){let t,n,r,o,i,s,a=e[0].extendedProps.short_name+"";return n=new rg({props:{color:"custom",style:"background-color:"+e[0].backgroundColor+"; color:"+e[0].textColor,$$slots:{default:[Sy]},$$scope:{ctx:e}}}),{c(){t=$("span"),$e(n.$$.fragment),r=A(),o=$("b"),i=I(a),L(t,"class","pe-3")},m(e,a){R(e,t,a),Me(n,t,null),R(e,r,a),R(e,o,a),S(o,i),s=!0},p(e,t){const r={};1&t&&(r.style="background-color:"+e[0].backgroundColor+"; color:"+e[0].textColor),65&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r),(!s||1&t)&&a!==(a=e[0].extendedProps.short_name+"")&&U(i,a)},i(e){s||(Ce(n.$$.fragment,e),s=!0)},o(e){ke(n.$$.fragment,e),s=!1},d(e){e&&D(t),Ie(n),e&&D(r),e&&D(o)}}}function xy(e){let t,n,r,o,i;return n=new gg({props:{name:"info-circle"}}),{c(){t=$("p"),$e(n.$$.fragment),r=A(),o=$("b"),o.textContent="Évènement provisoire",L(o,"class","ms-1"),L(t,"class","w-100 text-primary text-center")},m(e,s){R(e,t,s),Me(n,t,null),S(t,r),S(t,o),i=!0},i(e){i||(Ce(n.$$.fragment,e),i=!0)},o(e){ke(n.$$.fragment,e),i=!1},d(e){e&&D(t),Ie(n)}}}function Ry(e){let t,n,r,o,i;return n=new gg({props:{name:"exclamation-triangle"}}),{c(){t=$("p"),$e(n.$$.fragment),r=A(),o=$("b"),o.textContent="Évènement annulé",L(o,"class","ms-1"),L(t,"class","w-100 text-center text-danger")},m(e,s){R(e,t,s),Me(n,t,null),S(t,r),S(t,o),i=!0},i(e){i||(Ce(n.$$.fragment,e),i=!0)},o(e){ke(n.$$.fragment,e),i=!1},d(e){e&&D(t),Ie(n)}}}function Dy(t){let n;return{c(){n=$("i"),n.textContent="Pas de description",L(n,"class","fs-7")},m(e,t){R(e,n,t)},p:e,d(e){e&&D(n)}}}function Ty(e){let t,n,r=e[3].render(e[0].extendedProps.description)+"";return{c(){t=new F(!1),n=O(),t.a=n},m(e,o){t.m(r,e,o),R(e,n,o)},p(e,n){1&n&&r!==(r=e[3].render(e[0].extendedProps.description)+"")&&t.p(r)},d(e){e&&D(n),e&&t.d()}}}function $y(e){let t,n,r,o,i;const s=[Ry,xy],a=[];function l(e,t){return"CANCELLED"===e[0].extendedProps.status?0:"TENTATIVE"==e[0].extendedProps.status?1:-1}function u(e,t){return e[0].extendedProps.description?Ty:Dy}~(t=l(e))&&(n=a[t]=s[t](e));let c=u(e),d=c(e);return{c(){n&&n.c(),r=A(),d.c(),o=O()},m(e,n){~t&&a[t].m(e,n),R(e,r,n),d.m(e,n),R(e,o,n),i=!0},p(e,i){let f=t;t=l(e),t!==f&&(n&&(_e(),ke(a[f],1,1,(()=>{a[f]=null})),we()),~t?(n=a[t],n||(n=a[t]=s[t](e),n.c()),Ce(n,1),n.m(r.parentNode,r)):n=null),c===(c=u(e))&&d?d.p(e,i):(d.d(1),d=c(e),d&&(d.c(),d.m(o.parentNode,o)))},i(e){i||(Ce(n),i=!0)},o(e){ke(n),i=!1},d(e){~t&&a[t].d(e),e&&D(r),d.d(e),e&&D(o)}}}function My(e){let t,n,r,o,i,s=e[0].extendedProps.location+"";return t=new gg({props:{name:"geo",class:"text-success"}}),{c(){$e(t.$$.fragment),n=A(),r=$("span"),o=I(s),L(r,"class","ms-1")},m(e,s){Me(t,e,s),R(e,n,s),R(e,r,s),S(r,o),i=!0},p(e,t){(!i||1&t)&&s!==(s=e[0].extendedProps.location+"")&&U(o,s)},i(e){i||(Ce(t.$$.fragment,e),i=!0)},o(e){ke(t.$$.fragment,e),i=!1},d(e){Ie(t,e),e&&D(n),e&&D(r)}}}function Iy(e){let t,n,r,o,i,s,a,l=e[4](e[0].start)+"",u=e[4](e[0].end)+"";return t=new gg({props:{name:"clock-history",class:"text-primary"}}),{c(){$e(t.$$.fragment),n=A(),r=$("span"),o=I(l),i=I(" - "),s=I(u),L(r,"class","ms-1")},m(e,l){Me(t,e,l),R(e,n,l),R(e,r,l),S(r,o),S(r,i),S(r,s),a=!0},p(e,t){(!a||1&t)&&l!==(l=e[4](e[0].start)+"")&&U(o,l),(!a||1&t)&&u!==(u=e[4](e[0].end)+"")&&U(s,u)},i(e){a||(Ce(t.$$.fragment,e),a=!0)},o(e){ke(t.$$.fragment,e),a=!1},d(e){Ie(t,e),e&&D(n),e&&D(r)}}}function Ay(e){let t,n,r,o,i,s,a,l=e[5](e[0].start)+"",u=e[5](e[0].end)+"";return t=new gg({props:{name:"calendar-range",class:"text-primary"}}),{c(){$e(t.$$.fragment),n=A(),r=$("span"),o=I(l),i=I(" - "),s=I(u),L(r,"class","ms-1")},m(e,l){Me(t,e,l),R(e,n,l),R(e,r,l),S(r,o),S(r,i),S(r,s),a=!0},p(e,t){(!a||1&t)&&l!==(l=e[5](e[0].start)+"")&&U(o,l),(!a||1&t)&&u!==(u=e[5](e[0].end)+"")&&U(s,u)},i(e){a||(Ce(t.$$.fragment,e),a=!0)},o(e){ke(t.$$.fragment,e),a=!1},d(e){Ie(t,e),e&&D(n),e&&D(r)}}}function Oy(e){let t,n,r,o,i,s,a=e[0].extendedProps.location&&My(e);const l=[Ay,Iy],u=[];function c(e,t){return e[0].allDay?0:1}return o=c(e),i=u[o]=l[o](e),{c(){t=$("span"),a&&a.c(),n=A(),r=$("span"),i.c()},m(e,i){R(e,t,i),a&&a.m(t,null),R(e,n,i),R(e,r,i),u[o].m(r,null),s=!0},p(e,n){e[0].extendedProps.location?a?(a.p(e,n),1&n&&Ce(a,1)):(a=My(e),a.c(),Ce(a,1),a.m(t,null)):a&&(_e(),ke(a,1,1,(()=>{a=null})),we());let s=o;o=c(e),o===s?u[o].p(e,n):(_e(),ke(u[s],1,1,(()=>{u[s]=null})),we(),i=u[o],i?i.p(e,n):(i=u[o]=l[o](e),i.c()),Ce(i,1),i.m(r,null))},i(e){s||(Ce(a),Ce(i),s=!0)},o(e){ke(a),ke(i),s=!1},d(e){e&&D(t),a&&a.d(),e&&D(n),e&&D(r),u[o].d()}}}function Ny(e){let t,n,r,o,i,s;return t=new Ag({props:{toggle:e[2],$$slots:{default:[Ey]},$$scope:{ctx:e}}}),r=new Eg({props:{$$slots:{default:[$y]},$$scope:{ctx:e}}}),i=new nv({props:{class:"justify-content-between",$$slots:{default:[Oy]},$$scope:{ctx:e}}}),{c(){$e(t.$$.fragment),n=A(),$e(r.$$.fragment),o=A(),$e(i.$$.fragment)},m(e,a){Me(t,e,a),R(e,n,a),Me(r,e,a),R(e,o,a),Me(i,e,a),s=!0},p(e,n){const o={};4&n&&(o.toggle=e[2]),65&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o);const s={};65&n&&(s.$$scope={dirty:n,ctx:e}),r.$set(s);const a={};65&n&&(a.$$scope={dirty:n,ctx:e}),i.$set(a)},i(e){s||(Ce(t.$$.fragment,e),Ce(r.$$.fragment,e),Ce(i.$$.fragment,e),s=!0)},o(e){ke(t.$$.fragment,e),ke(r.$$.fragment,e),ke(i.$$.fragment,e),s=!1},d(e){Ie(t,e),e&&D(n),Ie(r,e),e&&D(o),Ie(i,e)}}}function Py(e){let t,n;return t=new Qg({props:{isOpen:e[1],toggle:e[2],centered:!0,scrollable:!0,$$slots:{default:[Ny]},$$scope:{ctx:e}}}),{c(){$e(t.$$.fragment)},m(e,r){Me(t,e,r),n=!0},p(e,[n]){const r={};2&n&&(r.isOpen=e[1]),4&n&&(r.toggle=e[2]),69&n&&(r.$$scope={dirty:n,ctx:e}),t.$set(r)},i(e){n||(Ce(t.$$.fragment,e),n=!0)},o(e){ke(t.$$.fragment,e),n=!1},d(e){Ie(t,e)}}}function Ly(e,t,n){const r=new ky({breaks:!0});let{event:o}=t,{open:i}=t,{toggle:s}=t;return e.$$set=e=>{"event"in e&&n(0,o=e.event),"open"in e&&n(1,i=e.open),"toggle"in e&&n(2,s=e.toggle)},[o,i,s,r,e=>e.toLocaleTimeString([],{hour:"2-digit",minute:"2-digit"}),e=>e.toLocaleDateString("fr-FR",{month:"2-digit",day:"2-digit"})]}ky.prototype.set=function(e){rm(this.options,e)},ky.prototype.configure=function(e){var t=this;if(!e)throw new Error("Wrong `remarkable` preset, check name/content");e.options&&t.set(e.options),e.components&&Object.keys(e.components).forEach((function(n){e.components[n].rules&&t[n].ruler.enable(e.components[n].rules,!0)}))},ky.prototype.use=function(e,t){return e(this,t),this},ky.prototype.parse=function(e,t){var n=new Cy(this,e,t);return this.core.process(n),n.tokens},ky.prototype.render=function(e,t){return t=t||{},this.renderer.render(this.parse(e,t),this.options,t)},ky.prototype.parseInline=function(e,t){var n=new Cy(this,e,t);return n.inlineMode=!0,this.core.process(n),n.tokens},ky.prototype.renderInline=function(e,t){return t=t||{},this.renderer.render(this.parseInline(e,t),this.options,t)};class Hy extends Ne{constructor(e){super(),Oe(this,e,Ly,Py,a,{event:0,open:1,toggle:2})}}const Wy=0,Uy=1,zy=2;function jy(e){const{subscribe:t,set:n}=Le(e);return{subscribe:t,setUnchecked:()=>n(Wy),setWeird:()=>n(zy),setChecked:()=>n(Uy),set:n}}function By(e){let t,n,r,o,i;return n=new gg({props:{name:"cloud-download"}}),{c(){t=$("a"),$e(n.$$.fragment),L(t,"href",e[2]),L(t,"class","cal-link svelte-196siuc"),L(t,"download",e[1])},m(s,a){R(s,t,a),Me(n,t,null),r=!0,o||(i=N(t,"click",P(e[7])),o=!0)},p(e,n){(!r||4&n)&&L(t,"href",e[2]),(!r||2&n)&&L(t,"download",e[1])},i(e){r||(Ce(n.$$.fragment,e),r=!0)},o(e){ke(n.$$.fragment,e),r=!1},d(e){e&&D(t),Ie(n),o=!1,i()}}}function Fy(e){let t,n,r,o,i;return n=new gg({props:{name:e[3]}}),{c(){t=$("span"),$e(n.$$.fragment),L(t,"class","cal-link svelte-196siuc")},m(s,a){R(s,t,a),Me(n,t,null),r=!0,o||(i=N(t,"click",P(e[8])),o=!0)},p(e,t){const r={};8&t&&(r.name=e[3]),n.$set(r)},i(e){r||(Ce(n.$$.fragment,e),r=!0)},o(e){ke(n.$$.fragment,e),r=!1},d(e){e&&D(t),Ie(n),o=!1,i()}}}function qy(e){let t,n,r,o,i,s,a,l,u,c,d;n=new gg({props:{name:e[4],class:"ms-2"}});let f=e[2]&&By(e),p=void 0!==e[0]&&Fy(e);return{c(){t=$("span"),$e(n.$$.fragment),r=A(),o=$("span"),i=I(e[1]),s=A(),a=$("span"),f&&f.c(),l=A(),p&&p.c(),L(o,"class","ms-1 d-inline-block cal-title svelte-196siuc"),L(a,"class","float-end"),L(t,"class","cal w-100 d-block svelte-196siuc")},m(h,g){R(h,t,g),Me(n,t,null),S(t,r),S(t,o),S(o,i),S(t,s),S(t,a),f&&f.m(a,null),S(a,l),p&&p.m(a,null),u=!0,c||(d=N(t,"click",e[5]),c=!0)},p(e,[t]){const r={};16&t&&(r.name=e[4]),n.$set(r),(!u||2&t)&&U(i,e[1]),e[2]?f?(f.p(e,t),4&t&&Ce(f,1)):(f=By(e),f.c(),Ce(f,1),f.m(a,l)):f&&(_e(),ke(f,1,1,(()=>{f=null})),we()),void 0!==e[0]?p?(p.p(e,t),1&t&&Ce(p,1)):(p=Fy(e),p.c(),Ce(p,1),p.m(a,null)):p&&(_e(),ke(p,1,1,(()=>{p=null})),we())},i(e){u||(Ce(n.$$.fragment,e),Ce(f),Ce(p),u=!0)},o(e){ke(n.$$.fragment,e),ke(f),ke(p),u=!1},d(e){e&&D(t),Ie(n),f&&f.d(),p&&p.d(),c=!1,d()}}}function Vy(e,t,n){let r,o,{state:i}=t,{value:s}=t,{collapsed:a}=t,{url:l}=t;const u=(new Map).set(Wy,"square").set(Uy,"check-square-fill").set(zy,"square-half"),c=te();return e.$$set=e=>{"state"in e&&n(6,i=e.state),"value"in e&&n(1,s=e.value),"collapsed"in e&&n(0,a=e.collapsed),"url"in e&&n(2,l=e.url)},e.$$.update=()=>{64&e.$$.dirty&&n(4,r=u.get(i)),1&e.$$.dirty&&n(3,o=a?"chevron-expand":"chevron-contract")},[a,s,l,o,r,()=>{n(6,i=i===Uy?Wy:Uy),c("change",{value:i})},i,function(t){ne.call(this,e,t)},()=>n(0,a=!a)]}gn("");class Yy extends Ne{constructor(e){super(),Oe(this,e,Vy,qy,a,{state:6,value:1,collapsed:0,url:2})}}var Gy={COF:{"Évènements (COF)":{},"Assemblées Générales (COF)":{},BdA:{"Évènements (BdA)":{},"Spectacles du tirage BdA":{}}},"Clubs COF":{PLS:{},"Club réseau":{},"Club Bouffe":{},hackENS:{},"Écriv'ENS":{},"CinéClub":{},Ernestophone:{},"Club Jeux":{},DDR:{},"BandarrêtdurgENS":{},"L'Hômonerie":{},Ulmity:{},"Club Inutile ☔":{}},BDS:{},"La Nuit de l'ENS":{},"Délégation Générale":{},"K-Fêt":{},"Écocampus":{},"La Psychédéliste":{},"Ambassadeur·rice·s santé":{}},Zy={"eleves-ens":{qG6jpJPfK37Nw8ZC:{name:"PLS"},LLWm8qK9iC5YGrrR:{name:"Délégation Générale",short_name:"DG"},"2KGkWzBJGorxzyTW":{name:"La Nuit de l'ENS",short_name:"La Nuit"},w442JdS5AaQ6czrP:{name:"Écriv'ENS"},fRtjDkjrZyn6fxd8:{name:"K-Fêt",color:"#c63b52",default_location:"K-Fêt"},gsZtZK8c9EmREofn:{name:"Ernestophone"},dTHrXnYgsEoSTjWB:{name:"Évènements (COF)",short_name:"COF"},bCgRFByHLiCCNc55:{name:"Assemblées Générales (COF)",short_name:"AG COF"},r4yJZDHjwNtH8wkR:{name:"Évènements (BdA)"},"83AkowSYPnYrjSFr":{name:"Spectacles du tirage BdA",short_name:"Spectacles",initial:!1},ZtWm3MYSi388k2yk:{name:"DDR"},T5WoHbs4FT5A945Z:{name:"CinéClub"},"6SHG6cg9d7S3qqwD":{name:"Club Inutile ☔",initial:!1},TFjE83ASCMK9rfRi:{name:"BandarrêtdurgENS",short_name:"Banda"},kR8fMzmf4ciop9Je:{name:"Club Jeux",short_name:"Jeux",color:"#5f9ae0"},"22rQF3gjjz8LifZC":{name:"La Psychédéliste",short_name:"Psychédéliste"}},"klub-reseau":{"5WrcagPPARQ3BD87":{name:"Club réseau",default_location:"Cave d'hackENS"},TFEAKjAgNFQZpNjo:{name:"hackENS",default_location:"Cave d'hackENS"}},"frama-agenda":{TFjE83ASCMK9rfRi:{name:"BandarrêtdurgENS",short_name:"Banda"},dSYCtdC6bgyWpKyt:{name:"BDS"},goXLq2dQ8LgFAjkM:{name:"Club Bouffe"},Q8w6dw4jGLBP9ftB:{name:"Écocampus"},T5WoHbs4FT5A945Z:{name:"CinéClub"},zmgdYw62RatzmGDt:{name:"Ulmity"},iXGysEGxo7EsKjwG:{name:"Ambassadeur·rice·s santé",short_name:"Amba. santé",color:"#f5a142"},AYNpoC674yAjEmRy:{name:"L'Hômonerie"}}},Ky={nameMap:{"Amphi Jourdan":"Amphithéâtre Jourdan","R2-21 (Jourdan)":"R2-21","Salle Jean Ibanes (Jourdan, R1-07)":"Salle Jean Ibanes (R1-07)","Salle Madeleine Rebérioux (Jourdan, R2-02)":"Salle Madeleine Rebérioux (R2-02)","Salle Marcel Roncayolo (Jourdan, R2-05)":"Salle Marcel Roncayolo (R2-05)"},rooms:{"45 rue d'Ulm":["Amphithéâtre Galois","Bibliothèque Lettres","Salle Histoire","Salle Aron","Salle Cavaillès","Salle Dussane","Salle des Actes","Salle des Résistants","Salle Cavaillès","Salle Cartan","Salle Noether","Salle Bourbaki","Cour aux Ernests","Cour du NIR","Cour Pasteur","Pôt","Petit pôt","Canopée","K-Fêt","Cave d'hackENS","Gymnase"],"24 rue Lhomond":["Salle CONF IV"],"29 rue d'Ulm":["Bibliothèque des sciences expérimentales","Salle Jaurès"],Jourdan:["Bibliothèque de Jourdan","Salle Marcel Roncayolo (R2-05)","Salle Madeleine Rebérioux (R2-02)","Amphithéâtre Jourdan","R2-21","Salle Jean Ibanes"]}};function Xy(e){if(0===e.indexOf("#")&&(e=e.slice(1)),3===e.length&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]),6!==e.length)throw new Error("Invalid HEX color.");return.299*parseInt(e.slice(0,2),16)+.587*parseInt(e.slice(2,4),16)+.114*parseInt(e.slice(4,6),16)>186?"#000000":"#FFFFFF"}const Jy=(()=>{let e={};for(const[t,n]of Object.entries(Zy))for(const[r,o]of Object.entries(n))e[r]={cloud:t,...o};return e})(),Qy=Object.fromEntries(Object.entries(Jy).map((([e,{name:t}])=>[t,e]))),eb=Array.from(Object.entries(Jy).map((([e,{name:t,initial:n}])=>[t,n??!0]))).filter((e=>e[1])).map((e=>e[0])),tb=Gy,nb=(e,t,n)=>{for(const[r,o]of Object.entries(t))n[r]=null===e?[]:[e,...n[e]],nb(r,o,n)},rb=(()=>{let e=[];return nb(null,tb,e),e})();function ob(e,t=tb){let n;for(const[r,o]of Object.entries(t))n=r===e?o:n||ob(e,o);return n}function ib(e,{cloud:t}){return`/cal/${t}/${e}/?export`}function sb(e,t,n={}){return fetch(function(e,{cloud:t},n={}){return`/cal/${t}/${e}/?`+new URLSearchParams({...n,export:!0,expand:!0,accept:"jcal"})}(e,t,n),{credentials:"omit"}).then((e=>e.json())).catch((e=>console.error(e)))}class ab{constructor(e,t){const n=Jy[e];this.name=n.name,this.short_name=n.short_name,this.color=n.color||t[1][4][3],this.default_location=n.default_location,this.events=t[2].filter((e=>"vevent"===e[0])).map((e=>this._parse_vevent(e[1])))}_parse_vevent(e){const t={};return e.forEach((e=>{t[e[0]]=e[3]})),t}}function lb(e){return function(t){const n=new Date(t.dtstart),r=new Date(t.dtend),o={title:`${e.short_name??e.name} : ${t.summary}`,start:t.dtstart,end:t.dtend,color:e.color,textColor:Xy(e.color),duration:r-n};if(o.calendar=e.name,o.short_name=t.summary,o.description=t.description,o.location=t.location||e.default_location,o.location&&(o.resourceId=function(e){const t=Ky.nameMap[e]||e,n=Object.entries(Ky.rooms).find((([e,n])=>n.includes(t)));if(void 0===n)return;const[r,o]=n;return`${r}-${t}`}(o.location)),t.status&&(o.status=t.status,o.classNames=[`st-${t.status.toLowerCase()}`]),t.rrule){const{freq:e,byday:n,interval:r}=t.rrule;o.rrule={freq:e,byweekday:n,dtstart:t.dtstart},r&&(o.rrule.interval=r)}return o}}function ub(e){const t=Qy[e];if(!t)return null;const n=Jy[t];return{id:e,...n?.meta||{},success:e=>{if("vcalendar"!==e[0])return;const n=new ab(t,e);return n.events.map(lb(n))},failure:t=>{console.error(`Fatal error during event source fetching of '${e}': ${t}`)},events:(e,r,o)=>{const{start:i,end:s}=e;sb(t,n,{start:i.valueOf()/1e3,end:s.valueOf()/1e3}).then(r,o)},export_url:ib(t,n)}}function cb(e,t,n){const r=e.slice();return r[23]=t[n][0],r[24]=t[n][1],r[25]=t,r[26]=n,r}function db(e){let t,n,r,o,i,s,a;function l(t){e[15](t)}let u={state:e[7],value:e[0],url:e[12]};void 0!==e[6]&&(u.collapsed=e[6]),n=new Yy({props:u}),oe.push((()=>Te(n,"collapsed",l))),n.$on("change",e[11]);let c=Object.entries(e[3]),d=[];for(let t=0;t<c.length;t+=1)d[t]=hb(cb(e,c,t));const f=e=>ke(d[e],1,1,(()=>{d[e]=null}));return{c(){t=$("div"),$e(n.$$.fragment),o=A(),i=$("div");for(let e=0;e<d.length;e+=1)d[e].c();L(t,"class","ml-1"),z(t,"padding-left",2*e[1]+"em"),L(i,"class",s=e[8]())},m(e,r){R(e,t,r),Me(n,t,null),R(e,o,r),R(e,i,r);for(let e=0;e<d.length;e+=1)d[e]&&d[e].m(i,null);a=!0},p(e,o){const l={};if(128&o&&(l.state=e[7]),1&o&&(l.value=e[0]),!r&&64&o&&(r=!0,l.collapsed=e[6],ce((()=>r=!1))),n.$set(l),(!a||2&o)&&z(t,"padding-left",2*e[1]+"em"),1582&o){let t;for(c=Object.entries(e[3]),t=0;t<c.length;t+=1){const n=cb(e,c,t);d[t]?(d[t].p(n,o),Ce(d[t],1)):(d[t]=hb(n),d[t].c(),Ce(d[t],1),d[t].m(i,null))}for(_e(),t=c.length;t<d.length;t+=1)f(t);we()}(!a||256&o&&s!==(s=e[8]()))&&L(i,"class",s)},i(e){if(!a){Ce(n.$$.fragment,e);for(let e=0;e<c.length;e+=1)Ce(d[e]);a=!0}},o(e){ke(n.$$.fragment,e),d=d.filter(Boolean);for(let e=0;e<d.length;e+=1)ke(d[e]);a=!1},d(e){e&&D(t),Ie(n),e&&D(o),e&&D(i),T(d,e)}}}function fb(e){let t,n,r;function o(t){e[17](t,e[26])}let i={item:e[23],filtering:e[9].storeAt(e[26]),level:e[1]+1,initial:e[2]};return void 0!==e[5][e[26]]&&(i.selected=e[5][e[26]]),t=new yb({props:i}),oe.push((()=>Te(t,"selected",o))),t.$on("change",e[10](e[26])),{c(){$e(t.$$.fragment)},m(e,n){Me(t,e,n),r=!0},p(r,o){e=r;const i={};8&o&&(i.item=e[23]),2&o&&(i.level=e[1]+1),4&o&&(i.initial=e[2]),!n&&32&o&&(n=!0,i.selected=e[5][e[26]],ce((()=>n=!1))),t.$set(i)},i(e){r||(Ce(t.$$.fragment,e),r=!0)},o(e){ke(t.$$.fragment,e),r=!1},d(e){Ie(t,e)}}}function pb(e){let t,n,r;function o(t){e[16](t,e[26])}let i={item:e[23],children:e[24],filtering:e[9].storeAt(e[26]),level:e[1]+1,initial:e[2]};return void 0!==e[5][e[26]]&&(i.selected=e[5][e[26]]),t=new yb({props:i}),oe.push((()=>Te(t,"selected",o))),t.$on("change",e[10](e[26])),{c(){$e(t.$$.fragment)},m(e,n){Me(t,e,n),r=!0},p(r,o){e=r;const i={};8&o&&(i.item=e[23]),8&o&&(i.children=e[24]),2&o&&(i.level=e[1]+1),4&o&&(i.initial=e[2]),!n&&32&o&&(n=!0,i.selected=e[5][e[26]],ce((()=>n=!1))),t.$set(i)},i(e){r||(Ce(t.$$.fragment,e),r=!0)},o(e){ke(t.$$.fragment,e),r=!1},d(e){Ie(t,e)}}}function hb(e){let t,n,r,o;const i=[pb,fb],s=[];function a(e,t){return e[24]?0:1}return t=a(e),n=s[t]=i[t](e),{c(){n.c(),r=O()},m(e,n){s[t].m(e,n),R(e,r,n),o=!0},p(e,o){let l=t;t=a(e),t===l?s[t].p(e,o):(_e(),ke(s[l],1,1,(()=>{s[l]=null})),we(),n=s[t],n?n.p(e,o):(n=s[t]=i[t](e),n.c()),Ce(n,1),n.m(r.parentNode,r))},i(e){o||(Ce(n),o=!0)},o(e){ke(n),o=!1},d(e){s[t].d(e),e&&D(r)}}}function gb(e){let t,n,r=e[0]&&db(e);return{c(){r&&r.c(),t=O()},m(e,o){r&&r.m(e,o),R(e,t,o),n=!0},p(e,[n]){e[0]?r?(r.p(e,n),1&n&&Ce(r,1)):(r=db(e),r.c(),Ce(r,1),r.m(t.parentNode,t)):r&&(_e(),ke(r,1,1,(()=>{r=null})),we())},i(e){n||(Ce(r),n=!0)},o(e){ke(r),n=!1},d(e){r&&r.d(e),e&&D(t)}}}function vb(e){return function(t){return t===e}}function mb(t,n,r){let o,i,s=e,a=()=>(s(),s=l(v,(e=>r(7,i=e))),v);t.$$.on_destroy.push((()=>s()));let{item:u=null}=n,{level:c=1}=n,{generalToggle:d}=n,{initial:f}=n,{children:p=[]}=n,{selected:h=[]}=n;const g=f.includes(u)?Uy:Wy;let{filtering:v=jy(g)}=n;a();let m=function(e,t){const{subscribe:n,update:r,set:o}=Le(Array.from({length:t},(t=>e))),i=(e,t)=>{r((n=>[...n.slice(0,e),t,...n.slice(e+1)]))};return{subscribe:n,set:o,setAt:i,length:t,storeAt:e=>{const t=t=>i(e,t);return{subscribe:t=>n((n=>t(n[e]))),set:t,setUnchecked:()=>t(Wy),setWeird:()=>t(zy),setChecked:()=>t(Uy)}},updateAll:e=>{r((t=>t.map(e)))}}}(g,Object.entries(p).length),y=Array.from({length:Object.entries(p).length},(e=>[])),b=!Object.entries(p).length&&void 0;function _(e){return e.every(vb(Uy))}function w(e){return e.every(vb(Wy))}m.subscribe((e=>{_(e)&&i!==Uy?v.setChecked():w(e)&&i!==Wy?v.setUnchecked():_(e)||w(e)||i===zy||v.setWeird()})),m.length>0&&v.subscribe((e=>{switch(e){case Uy:m.updateAll((e=>Uy));break;case Wy:m.updateAll((e=>Wy))}}));const C=te();const k=(()=>{const e=ub(u);return e?e.export_url:void 0})();return setTimeout((()=>f.includes(u)?v.setChecked():v.setUnchecked()),0),t.$$set=e=>{"item"in e&&r(0,u=e.item),"level"in e&&r(1,c=e.level),"generalToggle"in e&&r(14,d=e.generalToggle),"initial"in e&&r(2,f=e.initial),"children"in e&&r(3,p=e.children),"selected"in e&&r(13,h=e.selected),"filtering"in e&&a(r(4,v=e.filtering))},t.$$.update=()=>{16384&t.$$.dirty&&null!=d&&(d?v.setChecked():v.setUnchecked(),C("change",{value:i})),161&t.$$.dirty&&r(13,h=i===Uy?[u,...y.flat()]:y.flat()),64&t.$$.dirty&&r(8,o=()=>b?"d-none":"")},[u,c,f,p,v,y,b,i,o,m,function(e){return function(t){m.setAt(e,t.detail.value)}},function(e){v.set(e.detail.value),C("change",{value:e.detail.value})},k,h,d,function(e){b=e,r(6,b)},function(e,n){t.$$.not_equal(y[n],e)&&(y[n]=e,r(5,y))},function(e,n){t.$$.not_equal(y[n],e)&&(y[n]=e,r(5,y))}]}class yb extends Ne{constructor(e){super(),Oe(this,e,mb,gb,a,{item:0,level:1,generalToggle:14,initial:2,children:3,selected:13,filtering:4})}}function bb(e,t,n){const r=e.slice();return r[11]=t[n][0],r[12]=t[n][1],r[13]=t,r[14]=n,r}function _b(t){let n,r,o,i;return o=new gg({props:{name:"chevron-double-right"}}),{c(){n=$("span"),n.textContent="Sélection des calendriers",r=A(),$e(o.$$.fragment),L(n,"class","me-2")},m(e,t){R(e,n,t),R(e,r,t),Me(o,e,t),i=!0},p:e,i(e){i||(Ce(o.$$.fragment,e),i=!0)},o(e){ke(o.$$.fragment,e),i=!1},d(e){e&&D(n),e&&D(r),Ie(o,e)}}}function wb(e){let t,n,r;function o(t){e[10](t,e[14])}let i={item:e[11],children:e[12],generalToggle:e[5],initial:e[1]};return void 0!==e[2][e[14]]&&(i.selected=e[2][e[14]]),t=new yb({props:i}),oe.push((()=>Te(t,"selected",o))),{c(){$e(t.$$.fragment)},m(e,n){Me(t,e,n),r=!0},p(r,o){e=r;const i={};1&o&&(i.item=e[11]),1&o&&(i.children=e[12]),32&o&&(i.generalToggle=e[5]),2&o&&(i.initial=e[1]),!n&&4&o&&(n=!0,i.selected=e[2][e[14]],ce((()=>n=!1))),t.$set(i)},i(e){r||(Ce(t.$$.fragment,e),r=!0)},o(e){ke(t.$$.fragment,e),r=!1},d(e){Ie(t,e)}}}function Cb(e){let t,n,r,o,i,s,a,l,u,c,d;n=new gg({props:{name:e[4]}});let f=Object.entries(e[0]),p=[];for(let t=0;t<f.length;t+=1)p[t]=wb(bb(e,f,t));const h=e=>ke(p[e],1,1,(()=>{p[e]=null}));return{c(){t=$("span"),$e(n.$$.fragment),r=A(),o=$("span"),o.textContent="Tous les calendriers",i=A(),s=$("hr"),a=A();for(let e=0;e<p.length;e+=1)p[e].c();l=O(),L(o,"class","ms-2"),L(t,"class","fs-5 toggle svelte-f9g6zx"),L(s,"class","my-3")},m(f,h){R(f,t,h),Me(n,t,null),S(t,r),S(t,o),R(f,i,h),R(f,s,h),R(f,a,h);for(let e=0;e<p.length;e+=1)p[e]&&p[e].m(f,h);R(f,l,h),u=!0,c||(d=N(t,"click",e[9]),c=!0)},p(e,t){const r={};if(16&t&&(r.name=e[4]),n.$set(r),39&t){let n;for(f=Object.entries(e[0]),n=0;n<f.length;n+=1){const r=bb(e,f,n);p[n]?(p[n].p(r,t),Ce(p[n],1)):(p[n]=wb(r),p[n].c(),Ce(p[n],1),p[n].m(l.parentNode,l))}for(_e(),n=f.length;n<p.length;n+=1)h(n);we()}},i(e){if(!u){Ce(n.$$.fragment,e);for(let e=0;e<f.length;e+=1)Ce(p[e]);u=!0}},o(e){ke(n.$$.fragment,e),p=p.filter(Boolean);for(let e=0;e<p.length;e+=1)ke(p[e]);u=!1},d(e){e&&D(t),Ie(n),e&&D(i),e&&D(s),e&&D(a),T(p,e),e&&D(l),c=!1,d()}}}function kb(e){let t,n,r,o;return t=new fg({props:{class:"mb-3 col-6 mx-auto",$$slots:{default:[_b]},$$scope:{ctx:e}}}),t.$on("click",e[7]),r=new Mv({props:{isOpen:e[3],toggle:e[7],scroll:!0,placement:"start",header:"Sélection des calendriers",$$slots:{default:[Cb]},$$scope:{ctx:e}}}),{c(){$e(t.$$.fragment),n=A(),$e(r.$$.fragment)},m(e,i){Me(t,e,i),R(e,n,i),Me(r,e,i),o=!0},p(e,[n]){const o={};32768&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o);const i={};8&n&&(i.isOpen=e[3]),32823&n&&(i.$$scope={dirty:n,ctx:e}),r.$set(i)},i(e){o||(Ce(t.$$.fragment,e),Ce(r.$$.fragment,e),o=!0)},o(e){ke(t.$$.fragment,e),ke(r.$$.fragment,e),o=!1},d(e){Ie(t,e),e&&D(n),Ie(r,e)}}}function Sb(e,t,n){let r,o,{calendarTree:i=[]}=t,{selected:s=null}=t,{initial:a=[]}=t,l=!1,c=Le(!0);u(e,c,(e=>n(5,r=e)));let d=Array.from({length:Object.keys(i).length},(e=>[]));c.subscribe((e=>n(4,o=e?"toggle-on":"toggle-off")));return e.$$set=e=>{"calendarTree"in e&&n(0,i=e.calendarTree),"selected"in e&&n(8,s=e.selected),"initial"in e&&n(1,a=e.initial)},e.$$.update=()=>{4&e.$$.dirty&&n(8,s=d.flat())},[i,a,d,l,o,r,c,()=>n(3,l=!l),s,()=>{return e=r=!r,t=r,c.set(t),e;var e,t},function(t,r){e.$$.not_equal(d[r],t)&&(d[r]=t,n(2,d))}]}gn("");class Eb extends Ne{constructor(e){super(),Oe(this,e,Sb,kb,a,{calendarTree:0,selected:8,initial:1})}}var xb="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};
|
||
/**
|
||
* @license
|
||
* Lodash <https://lodash.com/>
|
||
* Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
||
* Released under MIT license <https://lodash.com/license>
|
||
* Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
|
||
* Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
|
||
*/
|
||
var Rb,Db,Tb=(Rb=function(e,t){(function(){var n,r="Expected a function",o="__lodash_hash_undefined__",i="__lodash_placeholder__",s=16,a=32,l=64,u=128,c=256,d=1/0,f=9007199254740991,p=NaN,h=4294967295,g=[["ary",u],["bind",1],["bindKey",2],["curry",8],["curryRight",s],["flip",512],["partial",a],["partialRight",l],["rearg",c]],v="[object Arguments]",m="[object Array]",y="[object Boolean]",b="[object Date]",_="[object Error]",w="[object Function]",C="[object GeneratorFunction]",k="[object Map]",S="[object Number]",E="[object Object]",x="[object Promise]",R="[object RegExp]",D="[object Set]",T="[object String]",$="[object Symbol]",M="[object WeakMap]",I="[object ArrayBuffer]",A="[object DataView]",O="[object Float32Array]",N="[object Float64Array]",P="[object Int8Array]",L="[object Int16Array]",H="[object Int32Array]",W="[object Uint8Array]",U="[object Uint8ClampedArray]",z="[object Uint16Array]",j="[object Uint32Array]",B=/\b__p \+= '';/g,F=/\b(__p \+=) '' \+/g,q=/(__e\(.*?\)|\b__t\)) \+\n'';/g,V=/&(?:amp|lt|gt|quot|#39);/g,Y=/[&<>"']/g,G=RegExp(V.source),Z=RegExp(Y.source),K=/<%-([\s\S]+?)%>/g,X=/<%([\s\S]+?)%>/g,J=/<%=([\s\S]+?)%>/g,Q=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ee=/^\w*$/,te=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ne=/[\\^$.*+?()[\]{}|]/g,re=RegExp(ne.source),oe=/^\s+/,ie=/\s/,se=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ae=/\{\n\/\* \[wrapped with (.+)\] \*/,le=/,? & /,ue=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,ce=/[()=,{}\[\]\/\s]/,de=/\\(\\)?/g,fe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,pe=/\w*$/,he=/^[-+]0x[0-9a-f]+$/i,ge=/^0b[01]+$/i,ve=/^\[object .+?Constructor\]$/,me=/^0o[0-7]+$/i,ye=/^(?:0|[1-9]\d*)$/,be=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,_e=/($^)/,we=/['\n\r\u2028\u2029\\]/g,Ce="\\ud800-\\udfff",ke="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",Se="\\u2700-\\u27bf",Ee="a-z\\xdf-\\xf6\\xf8-\\xff",xe="A-Z\\xc0-\\xd6\\xd8-\\xde",Re="\\ufe0e\\ufe0f",De="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Te="['’]",$e="["+Ce+"]",Me="["+De+"]",Ie="["+ke+"]",Ae="\\d+",Oe="["+Se+"]",Ne="["+Ee+"]",Pe="[^"+Ce+De+Ae+Se+Ee+xe+"]",Le="\\ud83c[\\udffb-\\udfff]",He="[^"+Ce+"]",We="(?:\\ud83c[\\udde6-\\uddff]){2}",Ue="[\\ud800-\\udbff][\\udc00-\\udfff]",ze="["+xe+"]",je="\\u200d",Be="(?:"+Ne+"|"+Pe+")",Fe="(?:"+ze+"|"+Pe+")",qe="(?:['’](?:d|ll|m|re|s|t|ve))?",Ve="(?:['’](?:D|LL|M|RE|S|T|VE))?",Ye="(?:"+Ie+"|"+Le+")?",Ge="["+Re+"]?",Ze=Ge+Ye+"(?:"+je+"(?:"+[He,We,Ue].join("|")+")"+Ge+Ye+")*",Ke="(?:"+[Oe,We,Ue].join("|")+")"+Ze,Xe="(?:"+[He+Ie+"?",Ie,We,Ue,$e].join("|")+")",Je=RegExp(Te,"g"),Qe=RegExp(Ie,"g"),et=RegExp(Le+"(?="+Le+")|"+Xe+Ze,"g"),tt=RegExp([ze+"?"+Ne+"+"+qe+"(?="+[Me,ze,"$"].join("|")+")",Fe+"+"+Ve+"(?="+[Me,ze+Be,"$"].join("|")+")",ze+"?"+Be+"+"+qe,ze+"+"+Ve,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Ae,Ke].join("|"),"g"),nt=RegExp("["+je+Ce+ke+Re+"]"),rt=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,ot=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],it=-1,st={};st[O]=st[N]=st[P]=st[L]=st[H]=st[W]=st[U]=st[z]=st[j]=!0,st[v]=st[m]=st[I]=st[y]=st[A]=st[b]=st[_]=st[w]=st[k]=st[S]=st[E]=st[R]=st[D]=st[T]=st[M]=!1;var at={};at[v]=at[m]=at[I]=at[A]=at[y]=at[b]=at[O]=at[N]=at[P]=at[L]=at[H]=at[k]=at[S]=at[E]=at[R]=at[D]=at[T]=at[$]=at[W]=at[U]=at[z]=at[j]=!0,at[_]=at[w]=at[M]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ut=parseFloat,ct=parseInt,dt="object"==typeof xb&&xb&&xb.Object===Object&&xb,ft="object"==typeof self&&self&&self.Object===Object&&self,pt=dt||ft||Function("return this")(),ht=t&&!t.nodeType&&t,gt=ht&&e&&!e.nodeType&&e,vt=gt&>.exports===ht,mt=vt&&dt.process,yt=function(){try{var e=gt&>.require&>.require("util").types;return e||mt&&mt.binding&&mt.binding("util")}catch(e){}}(),bt=yt&&yt.isArrayBuffer,_t=yt&&yt.isDate,wt=yt&&yt.isMap,Ct=yt&&yt.isRegExp,kt=yt&&yt.isSet,St=yt&&yt.isTypedArray;function Et(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function xt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function Rt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Dt(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Tt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function $t(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function Mt(e,t){return!(null==e||!e.length)&&zt(e,t,0)>-1}function It(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function At(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ot(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function Nt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function Pt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Ht=qt("length");function Wt(e,t,n){var r;return n(e,(function(e,n,o){if(t(e,n,o))return r=n,!1})),r}function Ut(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function zt(e,t,n){return t==t?function(e,t,n){for(var r=n-1,o=e.length;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):Ut(e,Bt,n)}function jt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Bt(e){return e!=e}function Ft(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:p}function qt(e){return function(t){return null==t?n:t[e]}}function Vt(e){return function(t){return null==e?n:e[t]}}function Yt(e,t,n,r,o){return o(e,(function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)})),n}function Gt(e,t){for(var r,o=-1,i=e.length;++o<i;){var s=t(e[o]);s!==n&&(r=r===n?s:r+s)}return r}function Zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Kt(e){return e?e.slice(0,hn(e)+1).replace(oe,""):e}function Xt(e){return function(t){return e(t)}}function Jt(e,t){return At(t,(function(t){return e[t]}))}function Qt(e,t){return e.has(t)}function en(e,t){for(var n=-1,r=e.length;++n<r&&zt(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&zt(t,e[n],0)>-1;);return n}var nn=Vt({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"}),rn=Vt({"&":"&","<":"<",">":">",'"':""","'":"'"});function on(e){return"\\"+lt[e]}function sn(e){return nt.test(e)}function an(e){var t=-1,n=Array(e.size);return e.forEach((function(e,r){n[++t]=[r,e]})),n}function ln(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,r=e.length,o=0,s=[];++n<r;){var a=e[n];a!==t&&a!==i||(e[n]=i,s[o++]=n)}return s}function cn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return sn(e)?function(e){for(var t=et.lastIndex=0;et.test(e);)++t;return t}(e):Ht(e)}function pn(e){return sn(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function hn(e){for(var t=e.length;t--&&ie.test(e.charAt(t)););return t}var gn=Vt({"&":"&","<":"<",">":">",""":'"',"'":"'"}),vn=function e(t){var ie,Ce=(t=null==t?pt:vn.defaults(pt.Object(),t,vn.pick(pt,ot))).Array,ke=t.Date,Se=t.Error,Ee=t.Function,xe=t.Math,Re=t.Object,De=t.RegExp,Te=t.String,$e=t.TypeError,Me=Ce.prototype,Ie=Ee.prototype,Ae=Re.prototype,Oe=t["__core-js_shared__"],Ne=Ie.toString,Pe=Ae.hasOwnProperty,Le=0,He=(ie=/[^.]+$/.exec(Oe&&Oe.keys&&Oe.keys.IE_PROTO||""))?"Symbol(src)_1."+ie:"",We=Ae.toString,Ue=Ne.call(Re),ze=pt._,je=De("^"+Ne.call(Pe).replace(ne,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Be=vt?t.Buffer:n,Fe=t.Symbol,qe=t.Uint8Array,Ve=Be?Be.allocUnsafe:n,Ye=ln(Re.getPrototypeOf,Re),Ge=Re.create,Ze=Ae.propertyIsEnumerable,Ke=Me.splice,Xe=Fe?Fe.isConcatSpreadable:n,et=Fe?Fe.iterator:n,nt=Fe?Fe.toStringTag:n,lt=function(){try{var e=pi(Re,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==pt.clearTimeout&&t.clearTimeout,ft=ke&&ke.now!==pt.Date.now&&ke.now,ht=t.setTimeout!==pt.setTimeout&&t.setTimeout,gt=xe.ceil,mt=xe.floor,yt=Re.getOwnPropertySymbols,Ht=Be?Be.isBuffer:n,Vt=t.isFinite,mn=Me.join,yn=ln(Re.keys,Re),bn=xe.max,_n=xe.min,wn=ke.now,Cn=t.parseInt,kn=xe.random,Sn=Me.reverse,En=pi(t,"DataView"),xn=pi(t,"Map"),Rn=pi(t,"Promise"),Dn=pi(t,"Set"),Tn=pi(t,"WeakMap"),$n=pi(Re,"create"),Mn=Tn&&new Tn,In={},An=Wi(En),On=Wi(xn),Nn=Wi(Rn),Pn=Wi(Dn),Ln=Wi(Tn),Hn=Fe?Fe.prototype:n,Wn=Hn?Hn.valueOf:n,Un=Hn?Hn.toString:n;function zn(e){if(na(e)&&!qs(e)&&!(e instanceof qn)){if(e instanceof Fn)return e;if(Pe.call(e,"__wrapped__"))return Ui(e)}return new Fn(e)}var jn=function(){function e(){}return function(t){if(!ta(t))return{};if(Ge)return Ge(t);e.prototype=t;var r=new e;return e.prototype=n,r}}();function Bn(){}function Fn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=n}function qn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=h,this.__views__=[]}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Zn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Gn;++t<n;)this.add(e[t])}function Kn(e){var t=this.__data__=new Yn(e);this.size=t.size}function Xn(e,t){var n=qs(e),r=!n&&Fs(e),o=!n&&!r&&Zs(e),i=!n&&!r&&!o&&ca(e),s=n||r||o||i,a=s?Zt(e.length,Te):[],l=a.length;for(var u in e)!t&&!Pe.call(e,u)||s&&("length"==u||o&&("offset"==u||"parent"==u)||i&&("buffer"==u||"byteLength"==u||"byteOffset"==u)||_i(u,l))||a.push(u);return a}function Jn(e){var t=e.length;return t?e[Zr(0,t-1)]:n}function Qn(e,t){return Pi(Mo(e),lr(t,0,e.length))}function er(e){return Pi(Mo(e))}function tr(e,t,r){(r!==n&&!zs(e[t],r)||r===n&&!(t in e))&&sr(e,t,r)}function nr(e,t,r){var o=e[t];Pe.call(e,t)&&zs(o,r)&&(r!==n||t in e)||sr(e,t,r)}function rr(e,t){for(var n=e.length;n--;)if(zs(e[n][0],t))return n;return-1}function or(e,t,n,r){return pr(e,(function(e,o,i){t(r,e,n(e),i)})),r}function ir(e,t){return e&&Io(t,Ia(t),e)}function sr(e,t,n){"__proto__"==t&<?lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var r=-1,o=t.length,i=Ce(o),s=null==e;++r<o;)i[r]=s?n:Ra(e,t[r]);return i}function lr(e,t,r){return e==e&&(r!==n&&(e=e<=r?e:r),t!==n&&(e=e>=t?e:t)),e}function ur(e,t,r,o,i,s){var a,l=1&t,u=2&t,c=4&t;if(r&&(a=i?r(e,o,i,s):r(e)),a!==n)return a;if(!ta(e))return e;var d=qs(e);if(d){if(a=function(e){var t=e.length,n=new e.constructor(t);return t&&"string"==typeof e[0]&&Pe.call(e,"index")&&(n.index=e.index,n.input=e.input),n}(e),!l)return Mo(e,a)}else{var f=vi(e),p=f==w||f==C;if(Zs(e))return Eo(e,l);if(f==E||f==v||p&&!i){if(a=u||p?{}:yi(e),!l)return u?function(e,t){return Io(e,gi(e),t)}(e,function(e,t){return e&&Io(t,Aa(t),e)}(a,e)):function(e,t){return Io(e,hi(e),t)}(e,ir(a,e))}else{if(!at[f])return i?e:{};a=function(e,t,n){var r,o=e.constructor;switch(t){case I:return xo(e);case y:case b:return new o(+e);case A:return function(e,t){var n=t?xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case O:case N:case P:case L:case H:case W:case U:case z:case j:return Ro(e,n);case k:return new o;case S:case T:return new o(e);case R:return function(e){var t=new e.constructor(e.source,pe.exec(e));return t.lastIndex=e.lastIndex,t}(e);case D:return new o;case $:return r=e,Wn?Re(Wn.call(r)):{}}}(e,f,l)}}s||(s=new Kn);var h=s.get(e);if(h)return h;s.set(e,a),aa(e)?e.forEach((function(n){a.add(ur(n,t,r,n,e,s))})):ra(e)&&e.forEach((function(n,o){a.set(o,ur(n,t,r,o,e,s))}));var g=d?n:(c?u?si:ii:u?Aa:Ia)(e);return Rt(g||e,(function(n,o){g&&(n=e[o=n]),nr(a,o,ur(n,t,r,o,e,s))})),a}function cr(e,t,r){var o=r.length;if(null==e)return!o;for(e=Re(e);o--;){var i=r[o],s=t[i],a=e[i];if(a===n&&!(i in e)||!s(a))return!1}return!0}function dr(e,t,o){if("function"!=typeof e)throw new $e(r);return Ii((function(){e.apply(n,o)}),t)}function fr(e,t,n,r){var o=-1,i=Mt,s=!0,a=e.length,l=[],u=t.length;if(!a)return l;n&&(t=At(t,Xt(n))),r?(i=It,s=!1):t.length>=200&&(i=Qt,s=!1,t=new Zn(t));e:for(;++o<a;){var c=e[o],d=null==n?c:n(c);if(c=r||0!==c?c:0,s&&d==d){for(var f=u;f--;)if(t[f]===d)continue e;l.push(c)}else i(t,d,r)||l.push(c)}return l}zn.templateSettings={escape:K,evaluate:X,interpolate:J,variable:"",imports:{_:zn}},zn.prototype=Bn.prototype,zn.prototype.constructor=zn,Fn.prototype=jn(Bn.prototype),Fn.prototype.constructor=Fn,qn.prototype=jn(Bn.prototype),qn.prototype.constructor=qn,Vn.prototype.clear=function(){this.__data__=$n?$n(null):{},this.size=0},Vn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Vn.prototype.get=function(e){var t=this.__data__;if($n){var r=t[e];return r===o?n:r}return Pe.call(t,e)?t[e]:n},Vn.prototype.has=function(e){var t=this.__data__;return $n?t[e]!==n:Pe.call(t,e)},Vn.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=$n&&t===n?o:t,this},Yn.prototype.clear=function(){this.__data__=[],this.size=0},Yn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0||(n==t.length-1?t.pop():Ke.call(t,n,1),--this.size,0))},Yn.prototype.get=function(e){var t=this.__data__,r=rr(t,e);return r<0?n:t[r][1]},Yn.prototype.has=function(e){return rr(this.__data__,e)>-1},Yn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Gn.prototype.clear=function(){this.size=0,this.__data__={hash:new Vn,map:new(xn||Yn),string:new Vn}},Gn.prototype.delete=function(e){var t=di(this,e).delete(e);return this.size-=t?1:0,t},Gn.prototype.get=function(e){return di(this,e).get(e)},Gn.prototype.has=function(e){return di(this,e).has(e)},Gn.prototype.set=function(e,t){var n=di(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Zn.prototype.add=Zn.prototype.push=function(e){return this.__data__.set(e,o),this},Zn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.clear=function(){this.__data__=new Yn,this.size=0},Kn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Kn.prototype.get=function(e){return this.__data__.get(e)},Kn.prototype.has=function(e){return this.__data__.has(e)},Kn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Yn){var r=n.__data__;if(!xn||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Gn(r)}return n.set(e,t),this.size=n.size,this};var pr=No(wr),hr=No(Cr,!0);function gr(e,t){var n=!0;return pr(e,(function(e,r,o){return n=!!t(e,r,o)})),n}function vr(e,t,r){for(var o=-1,i=e.length;++o<i;){var s=e[o],a=t(s);if(null!=a&&(l===n?a==a&&!ua(a):r(a,l)))var l=a,u=s}return u}function mr(e,t){var n=[];return pr(e,(function(e,r,o){t(e,r,o)&&n.push(e)})),n}function yr(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=bi),o||(o=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?yr(a,t-1,n,r,o):Ot(o,a):r||(o[o.length]=a)}return o}var br=Po(),_r=Po(!0);function wr(e,t){return e&&br(e,t,Ia)}function Cr(e,t){return e&&_r(e,t,Ia)}function kr(e,t){return $t(t,(function(t){return Js(e[t])}))}function Sr(e,t){for(var r=0,o=(t=wo(t,e)).length;null!=e&&r<o;)e=e[Hi(t[r++])];return r&&r==o?e:n}function Er(e,t,n){var r=t(e);return qs(e)?r:Ot(r,n(e))}function xr(e){return null==e?e===n?"[object Undefined]":"[object Null]":nt&&nt in Re(e)?function(e){var t=Pe.call(e,nt),r=e[nt];try{e[nt]=n;var o=!0}catch(e){}var i=We.call(e);return o&&(t?e[nt]=r:delete e[nt]),i}(e):function(e){return We.call(e)}(e)}function Rr(e,t){return e>t}function Dr(e,t){return null!=e&&Pe.call(e,t)}function Tr(e,t){return null!=e&&t in Re(e)}function $r(e,t,r){for(var o=r?It:Mt,i=e[0].length,s=e.length,a=s,l=Ce(s),u=1/0,c=[];a--;){var d=e[a];a&&t&&(d=At(d,Xt(t))),u=_n(d.length,u),l[a]=!r&&(t||i>=120&&d.length>=120)?new Zn(a&&d):n}d=e[0];var f=-1,p=l[0];e:for(;++f<i&&c.length<u;){var h=d[f],g=t?t(h):h;if(h=r||0!==h?h:0,!(p?Qt(p,g):o(c,g,r))){for(a=s;--a;){var v=l[a];if(!(v?Qt(v,g):o(e[a],g,r)))continue e}p&&p.push(g),c.push(h)}}return c}function Mr(e,t,r){var o=null==(e=Ti(e,t=wo(t,e)))?e:e[Hi(Xi(t))];return null==o?n:Et(o,e,r)}function Ir(e){return na(e)&&xr(e)==v}function Ar(e,t,r,o,i){return e===t||(null==e||null==t||!na(e)&&!na(t)?e!=e&&t!=t:function(e,t,r,o,i,s){var a=qs(e),l=qs(t),u=a?m:vi(e),c=l?m:vi(t),d=(u=u==v?E:u)==E,f=(c=c==v?E:c)==E,p=u==c;if(p&&Zs(e)){if(!Zs(t))return!1;a=!0,d=!1}if(p&&!d)return s||(s=new Kn),a||ca(e)?ri(e,t,r,o,i,s):function(e,t,n,r,o,i,s){switch(n){case A:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case I:return!(e.byteLength!=t.byteLength||!i(new qe(e),new qe(t)));case y:case b:case S:return zs(+e,+t);case _:return e.name==t.name&&e.message==t.message;case R:case T:return e==t+"";case k:var a=an;case D:var l=1&r;if(a||(a=cn),e.size!=t.size&&!l)return!1;var u=s.get(e);if(u)return u==t;r|=2,s.set(e,t);var c=ri(a(e),a(t),r,o,i,s);return s.delete(e),c;case $:if(Wn)return Wn.call(e)==Wn.call(t)}return!1}(e,t,u,r,o,i,s);if(!(1&r)){var h=d&&Pe.call(e,"__wrapped__"),g=f&&Pe.call(t,"__wrapped__");if(h||g){var w=h?e.value():e,C=g?t.value():t;return s||(s=new Kn),i(w,C,r,o,s)}}return!!p&&(s||(s=new Kn),function(e,t,r,o,i,s){var a=1&r,l=ii(e),u=l.length,c=ii(t),d=c.length;if(u!=d&&!a)return!1;for(var f=u;f--;){var p=l[f];if(!(a?p in t:Pe.call(t,p)))return!1}var h=s.get(e),g=s.get(t);if(h&&g)return h==t&&g==e;var v=!0;s.set(e,t),s.set(t,e);for(var m=a;++f<u;){var y=e[p=l[f]],b=t[p];if(o)var _=a?o(b,y,p,t,e,s):o(y,b,p,e,t,s);if(!(_===n?y===b||i(y,b,r,o,s):_)){v=!1;break}m||(m="constructor"==p)}if(v&&!m){var w=e.constructor,C=t.constructor;w==C||!("constructor"in e)||!("constructor"in t)||"function"==typeof w&&w instanceof w&&"function"==typeof C&&C instanceof C||(v=!1)}return s.delete(e),s.delete(t),v}(e,t,r,o,i,s))}(e,t,r,o,Ar,i))}function Or(e,t,r,o){var i=r.length,s=i,a=!o;if(null==e)return!s;for(e=Re(e);i--;){var l=r[i];if(a&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++i<s;){var u=(l=r[i])[0],c=e[u],d=l[1];if(a&&l[2]){if(c===n&&!(u in e))return!1}else{var f=new Kn;if(o)var p=o(c,d,u,e,t,f);if(!(p===n?Ar(d,c,3,o,f):p))return!1}}return!0}function Nr(e){return!(!ta(e)||(t=e,He&&He in t))&&(Js(e)?je:ve).test(Wi(e));var t}function Pr(e){return"function"==typeof e?e:null==e?ol:"object"==typeof e?qs(e)?jr(e[0],e[1]):zr(e):pl(e)}function Lr(e){if(!Ei(e))return yn(e);var t=[];for(var n in Re(e))Pe.call(e,n)&&"constructor"!=n&&t.push(n);return t}function Hr(e){if(!ta(e))return function(e){var t=[];if(null!=e)for(var n in Re(e))t.push(n);return t}(e);var t=Ei(e),n=[];for(var r in e)("constructor"!=r||!t&&Pe.call(e,r))&&n.push(r);return n}function Wr(e,t){return e<t}function Ur(e,t){var n=-1,r=Ys(e)?Ce(e.length):[];return pr(e,(function(e,o,i){r[++n]=t(e,o,i)})),r}function zr(e){var t=fi(e);return 1==t.length&&t[0][2]?Ri(t[0][0],t[0][1]):function(n){return n===e||Or(n,e,t)}}function jr(e,t){return Ci(e)&&xi(t)?Ri(Hi(e),t):function(r){var o=Ra(r,e);return o===n&&o===t?Da(r,e):Ar(t,o,3)}}function Br(e,t,r,o,i){e!==t&&br(t,(function(s,a){if(i||(i=new Kn),ta(s))!function(e,t,r,o,i,s,a){var l=$i(e,r),u=$i(t,r),c=a.get(u);if(c)tr(e,r,c);else{var d=s?s(l,u,r+"",e,t,a):n,f=d===n;if(f){var p=qs(u),h=!p&&Zs(u),g=!p&&!h&&ca(u);d=u,p||h||g?qs(l)?d=l:Gs(l)?d=Mo(l):h?(f=!1,d=Eo(u,!0)):g?(f=!1,d=Ro(u,!0)):d=[]:ia(u)||Fs(u)?(d=l,Fs(l)?d=ya(l):ta(l)&&!Js(l)||(d=yi(u))):f=!1}f&&(a.set(u,d),i(d,u,o,s,a),a.delete(u)),tr(e,r,d)}}(e,t,a,r,Br,o,i);else{var l=o?o($i(e,a),s,a+"",e,t,i):n;l===n&&(l=s),tr(e,a,l)}}),Aa)}function Fr(e,t){var r=e.length;if(r)return _i(t+=t<0?r:0,r)?e[t]:n}function qr(e,t,n){t=t.length?At(t,(function(e){return qs(e)?function(t){return Sr(t,1===e.length?e[0]:e)}:e})):[ol];var r=-1;t=At(t,Xt(ci()));var o=Ur(e,(function(e,n,o){var i=At(t,(function(t){return t(e)}));return{criteria:i,index:++r,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,(function(e,t){return function(e,t,n){for(var r=-1,o=e.criteria,i=t.criteria,s=o.length,a=n.length;++r<s;){var l=Do(o[r],i[r]);if(l)return r>=a?l:l*("desc"==n[r]?-1:1)}return e.index-t.index}(e,t,n)}))}function Vr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],a=Sr(e,s);n(a,s)&&eo(i,wo(s,e),a)}return i}function Yr(e,t,n,r){var o=r?jt:zt,i=-1,s=t.length,a=e;for(e===t&&(t=Mo(t)),n&&(a=At(e,Xt(n)));++i<s;)for(var l=0,u=t[i],c=n?n(u):u;(l=o(a,c,l,r))>-1;)a!==e&&Ke.call(a,l,1),Ke.call(e,l,1);return e}function Gr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;_i(o)?Ke.call(e,o,1):po(e,o)}}return e}function Zr(e,t){return e+mt(kn()*(t-e+1))}function Kr(e,t){var n="";if(!e||t<1||t>f)return n;do{t%2&&(n+=e),(t=mt(t/2))&&(e+=e)}while(t);return n}function Xr(e,t){return Ai(Di(e,t,ol),e+"")}function Jr(e){return Jn(za(e))}function Qr(e,t){var n=za(e);return Pi(n,lr(t,0,n.length))}function eo(e,t,r,o){if(!ta(e))return e;for(var i=-1,s=(t=wo(t,e)).length,a=s-1,l=e;null!=l&&++i<s;){var u=Hi(t[i]),c=r;if("__proto__"===u||"constructor"===u||"prototype"===u)return e;if(i!=a){var d=l[u];(c=o?o(d,u,l):n)===n&&(c=ta(d)?d:_i(t[i+1])?[]:{})}nr(l,u,c),l=l[u]}return e}var to=Mn?function(e,t){return Mn.set(e,t),e}:ol,no=lt?function(e,t){return lt(e,"toString",{configurable:!0,enumerable:!1,value:tl(t),writable:!0})}:ol;function ro(e){return Pi(za(e))}function oo(e,t,n){var r=-1,o=e.length;t<0&&(t=-t>o?0:o+t),(n=n>o?o:n)<0&&(n+=o),o=t>n?0:n-t>>>0,t>>>=0;for(var i=Ce(o);++r<o;)i[r]=e[r+t];return i}function io(e,t){var n;return pr(e,(function(e,r,o){return!(n=t(e,r,o))})),!!n}function so(e,t,n){var r=0,o=null==e?r:e.length;if("number"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,s=e[i];null!==s&&!ua(s)&&(n?s<=t:s<t)?r=i+1:o=i}return o}return ao(e,t,ol,n)}function ao(e,t,r,o){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=r(t))!=t,l=null===t,u=ua(t),c=t===n;i<s;){var d=mt((i+s)/2),f=r(e[d]),p=f!==n,h=null===f,g=f==f,v=ua(f);if(a)var m=o||g;else m=c?g&&(o||p):l?g&&p&&(o||!h):u?g&&p&&!h&&(o||!v):!h&&!v&&(o?f<=t:f<t);m?i=d+1:s=d}return _n(s,4294967294)}function lo(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!zs(a,l)){var l=a;i[o++]=0===s?0:s}}return i}function uo(e){return"number"==typeof e?e:ua(e)?p:+e}function co(e){if("string"==typeof e)return e;if(qs(e))return At(e,co)+"";if(ua(e))return Un?Un.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function fo(e,t,n){var r=-1,o=Mt,i=e.length,s=!0,a=[],l=a;if(n)s=!1,o=It;else if(i>=200){var u=t?null:Xo(e);if(u)return cn(u);s=!1,o=Qt,l=new Zn}else l=t?[]:a;e:for(;++r<i;){var c=e[r],d=t?t(c):c;if(c=n||0!==c?c:0,s&&d==d){for(var f=l.length;f--;)if(l[f]===d)continue e;t&&l.push(d),a.push(c)}else o(l,d,n)||(l!==a&&l.push(d),a.push(c))}return a}function po(e,t){return null==(e=Ti(e,t=wo(t,e)))||delete e[Hi(Xi(t))]}function ho(e,t,n,r){return eo(e,t,n(Sr(e,t)),r)}function go(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function vo(e,t){var n=e;return n instanceof qn&&(n=n.value()),Nt(t,(function(e,t){return t.func.apply(t.thisArg,Ot([e],t.args))}),n)}function mo(e,t,n){var r=e.length;if(r<2)return r?fo(e[0]):[];for(var o=-1,i=Ce(r);++o<r;)for(var s=e[o],a=-1;++a<r;)a!=o&&(i[o]=fr(i[o]||s,e[a],t,n));return fo(yr(i,1),t,n)}function yo(e,t,r){for(var o=-1,i=e.length,s=t.length,a={};++o<i;){var l=o<s?t[o]:n;r(a,e[o],l)}return a}function bo(e){return Gs(e)?e:[]}function _o(e){return"function"==typeof e?e:ol}function wo(e,t){return qs(e)?e:Ci(e,t)?[e]:Li(ba(e))}var Co=Xr;function ko(e,t,r){var o=e.length;return r=r===n?o:r,!t&&r>=o?e:oo(e,t,r)}var So=dt||function(e){return pt.clearTimeout(e)};function Eo(e,t){if(t)return e.slice();var n=e.length,r=Ve?Ve(n):new e.constructor(n);return e.copy(r),r}function xo(e){var t=new e.constructor(e.byteLength);return new qe(t).set(new qe(e)),t}function Ro(e,t){var n=t?xo(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Do(e,t){if(e!==t){var r=e!==n,o=null===e,i=e==e,s=ua(e),a=t!==n,l=null===t,u=t==t,c=ua(t);if(!l&&!c&&!s&&e>t||s&&a&&u&&!l&&!c||o&&a&&u||!r&&u||!i)return 1;if(!o&&!s&&!c&&e<t||c&&r&&i&&!o&&!s||l&&r&&i||!a&&i||!u)return-1}return 0}function To(e,t,n,r){for(var o=-1,i=e.length,s=n.length,a=-1,l=t.length,u=bn(i-s,0),c=Ce(l+u),d=!r;++a<l;)c[a]=t[a];for(;++o<s;)(d||o<i)&&(c[n[o]]=e[o]);for(;u--;)c[a++]=e[o++];return c}function $o(e,t,n,r){for(var o=-1,i=e.length,s=-1,a=n.length,l=-1,u=t.length,c=bn(i-a,0),d=Ce(c+u),f=!r;++o<c;)d[o]=e[o];for(var p=o;++l<u;)d[p+l]=t[l];for(;++s<a;)(f||o<i)&&(d[p+n[s]]=e[o++]);return d}function Mo(e,t){var n=-1,r=e.length;for(t||(t=Ce(r));++n<r;)t[n]=e[n];return t}function Io(e,t,r,o){var i=!r;r||(r={});for(var s=-1,a=t.length;++s<a;){var l=t[s],u=o?o(r[l],e[l],l,r,e):n;u===n&&(u=e[l]),i?sr(r,l,u):nr(r,l,u)}return r}function Ao(e,t){return function(n,r){var o=qs(n)?xt:or,i=t?t():{};return o(n,e,ci(r,2),i)}}function Oo(e){return Xr((function(t,r){var o=-1,i=r.length,s=i>1?r[i-1]:n,a=i>2?r[2]:n;for(s=e.length>3&&"function"==typeof s?(i--,s):n,a&&wi(r[0],r[1],a)&&(s=i<3?n:s,i=1),t=Re(t);++o<i;){var l=r[o];l&&e(t,l,o,s)}return t}))}function No(e,t){return function(n,r){if(null==n)return n;if(!Ys(n))return e(n,r);for(var o=n.length,i=t?o:-1,s=Re(n);(t?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function Po(e){return function(t,n,r){for(var o=-1,i=Re(t),s=r(t),a=s.length;a--;){var l=s[e?a:++o];if(!1===n(i[l],l,i))break}return t}}function Lo(e){return function(t){var r=sn(t=ba(t))?pn(t):n,o=r?r[0]:t.charAt(0),i=r?ko(r,1).join(""):t.slice(1);return o[e]()+i}}function Ho(e){return function(t){return Nt(Ja(Fa(t).replace(Je,"")),e,"")}}function Wo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=jn(e.prototype),r=e.apply(n,t);return ta(r)?r:n}}function Uo(e){return function(t,r,o){var i=Re(t);if(!Ys(t)){var s=ci(r,3);t=Ia(t),r=function(e){return s(i[e],e,i)}}var a=e(t,r,o);return a>-1?i[s?t[a]:a]:n}}function zo(e){return oi((function(t){var o=t.length,i=o,s=Fn.prototype.thru;for(e&&t.reverse();i--;){var a=t[i];if("function"!=typeof a)throw new $e(r);if(s&&!l&&"wrapper"==li(a))var l=new Fn([],!0)}for(i=l?i:o;++i<o;){var u=li(a=t[i]),c="wrapper"==u?ai(a):n;l=c&&ki(c[0])&&424==c[1]&&!c[4].length&&1==c[9]?l[li(c[0])].apply(l,c[3]):1==a.length&&ki(a)?l[u]():l.thru(a)}return function(){var e=arguments,n=e[0];if(l&&1==e.length&&qs(n))return l.plant(n).value();for(var r=0,i=o?t[r].apply(this,e):n;++r<o;)i=t[r].call(this,i);return i}}))}function jo(e,t,r,o,i,s,a,l,c,d){var f=t&u,p=1&t,h=2&t,g=24&t,v=512&t,m=h?n:Wo(e);return function u(){for(var y=arguments.length,b=Ce(y),_=y;_--;)b[_]=arguments[_];if(g)var w=ui(u),C=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(b,w);if(o&&(b=To(b,o,i,g)),s&&(b=$o(b,s,a,g)),y-=C,g&&y<d){var k=un(b,w);return Zo(e,t,jo,u.placeholder,r,b,k,l,c,d-y)}var S=p?r:this,E=h?S[e]:e;return y=b.length,l?b=function(e,t){for(var r=e.length,o=_n(t.length,r),i=Mo(e);o--;){var s=t[o];e[o]=_i(s,r)?i[s]:n}return e}(b,l):v&&y>1&&b.reverse(),f&&c<y&&(b.length=c),this&&this!==pt&&this instanceof u&&(E=m||Wo(E)),E.apply(S,b)}}function Bo(e,t){return function(n,r){return function(e,t,n,r){return wr(e,(function(e,o,i){t(r,n(e),o,i)})),r}(n,e,t(r),{})}}function Fo(e,t){return function(r,o){var i;if(r===n&&o===n)return t;if(r!==n&&(i=r),o!==n){if(i===n)return o;"string"==typeof r||"string"==typeof o?(r=co(r),o=co(o)):(r=uo(r),o=uo(o)),i=e(r,o)}return i}}function qo(e){return oi((function(t){return t=At(t,Xt(ci())),Xr((function(n){var r=this;return e(t,(function(e){return Et(e,r,n)}))}))}))}function Vo(e,t){var r=(t=t===n?" ":co(t)).length;if(r<2)return r?Kr(t,e):t;var o=Kr(t,gt(e/fn(t)));return sn(t)?ko(pn(o),0,e).join(""):o.slice(0,e)}function Yo(e){return function(t,r,o){return o&&"number"!=typeof o&&wi(t,r,o)&&(r=o=n),t=ha(t),r===n?(r=t,t=0):r=ha(r),function(e,t,n,r){for(var o=-1,i=bn(gt((t-e)/(n||1)),0),s=Ce(i);i--;)s[r?i:++o]=e,e+=n;return s}(t,r,o=o===n?t<r?1:-1:ha(o),e)}}function Go(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=ma(t),n=ma(n)),e(t,n)}}function Zo(e,t,r,o,i,s,u,c,d,f){var p=8&t;t|=p?a:l,4&(t&=~(p?l:a))||(t&=-4);var h=[e,t,i,p?s:n,p?u:n,p?n:s,p?n:u,c,d,f],g=r.apply(n,h);return ki(e)&&Mi(g,h),g.placeholder=o,Oi(g,e,t)}function Ko(e){var t=xe[e];return function(e,n){if(e=ma(e),(n=null==n?0:_n(ga(n),292))&&Vt(e)){var r=(ba(e)+"e").split("e");return+((r=(ba(t(r[0]+"e"+(+r[1]+n)))+"e").split("e"))[0]+"e"+(+r[1]-n))}return t(e)}}var Xo=Dn&&1/cn(new Dn([,-0]))[1]==d?function(e){return new Dn(e)}:ul;function Jo(e){return function(t){var n=vi(t);return n==k?an(t):n==D?dn(t):function(e,t){return At(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Qo(e,t,o,d,f,p,h,g){var v=2&t;if(!v&&"function"!=typeof e)throw new $e(r);var m=d?d.length:0;if(m||(t&=-97,d=f=n),h=h===n?h:bn(ga(h),0),g=g===n?g:ga(g),m-=f?f.length:0,t&l){var y=d,b=f;d=f=n}var _=v?n:ai(e),w=[e,t,o,d,f,y,b,p,h,g];if(_&&function(e,t){var n=e[1],r=t[1],o=n|r,s=o<131,a=r==u&&8==n||r==u&&n==c&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!s&&!a)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var l=t[3];if(l){var d=e[3];e[3]=d?To(d,l,t[4]):l,e[4]=d?un(e[3],i):t[4]}(l=t[5])&&(d=e[5],e[5]=d?$o(d,l,t[6]):l,e[6]=d?un(e[5],i):t[6]),(l=t[7])&&(e[7]=l),r&u&&(e[8]=null==e[8]?t[8]:_n(e[8],t[8])),null==e[9]&&(e[9]=t[9]),e[0]=t[0],e[1]=o}(w,_),e=w[0],t=w[1],o=w[2],d=w[3],f=w[4],!(g=w[9]=w[9]===n?v?0:e.length:bn(w[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)C=8==t||t==s?function(e,t,r){var o=Wo(e);return function i(){for(var s=arguments.length,a=Ce(s),l=s,u=ui(i);l--;)a[l]=arguments[l];var c=s<3&&a[0]!==u&&a[s-1]!==u?[]:un(a,u);return(s-=c.length)<r?Zo(e,t,jo,i.placeholder,n,a,c,n,n,r-s):Et(this&&this!==pt&&this instanceof i?o:e,this,a)}}(e,t,g):t!=a&&33!=t||f.length?jo.apply(n,w):function(e,t,n,r){var o=1&t,i=Wo(e);return function t(){for(var s=-1,a=arguments.length,l=-1,u=r.length,c=Ce(u+a),d=this&&this!==pt&&this instanceof t?i:e;++l<u;)c[l]=r[l];for(;a--;)c[l++]=arguments[++s];return Et(d,o?n:this,c)}}(e,t,o,d);else var C=function(e,t,n){var r=1&t,o=Wo(e);return function t(){return(this&&this!==pt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,o);return Oi((_?to:Mi)(C,w),e,t)}function ei(e,t,r,o){return e===n||zs(e,Ae[r])&&!Pe.call(o,r)?t:e}function ti(e,t,r,o,i,s){return ta(e)&&ta(t)&&(s.set(t,e),Br(e,t,n,ti,s),s.delete(t)),e}function ni(e){return ia(e)?n:e}function ri(e,t,r,o,i,s){var a=1&r,l=e.length,u=t.length;if(l!=u&&!(a&&u>l))return!1;var c=s.get(e),d=s.get(t);if(c&&d)return c==t&&d==e;var f=-1,p=!0,h=2&r?new Zn:n;for(s.set(e,t),s.set(t,e);++f<l;){var g=e[f],v=t[f];if(o)var m=a?o(v,g,f,t,e,s):o(g,v,f,e,t,s);if(m!==n){if(m)continue;p=!1;break}if(h){if(!Lt(t,(function(e,t){if(!Qt(h,t)&&(g===e||i(g,e,r,o,s)))return h.push(t)}))){p=!1;break}}else if(g!==v&&!i(g,v,r,o,s)){p=!1;break}}return s.delete(e),s.delete(t),p}function oi(e){return Ai(Di(e,n,Vi),e+"")}function ii(e){return Er(e,Ia,hi)}function si(e){return Er(e,Aa,gi)}var ai=Mn?function(e){return Mn.get(e)}:ul;function li(e){for(var t=e.name+"",n=In[t],r=Pe.call(In,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ui(e){return(Pe.call(zn,"placeholder")?zn:e).placeholder}function ci(){var e=zn.iteratee||il;return e=e===il?Pr:e,arguments.length?e(arguments[0],arguments[1]):e}function di(e,t){var n,r,o=e.__data__;return("string"==(r=typeof(n=t))||"number"==r||"symbol"==r||"boolean"==r?"__proto__"!==n:null===n)?o["string"==typeof t?"string":"hash"]:o.map}function fi(e){for(var t=Ia(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,xi(o)]}return t}function pi(e,t){var r=function(e,t){return null==e?n:e[t]}(e,t);return Nr(r)?r:n}var hi=yt?function(e){return null==e?[]:(e=Re(e),$t(yt(e),(function(t){return Ze.call(e,t)})))}:vl,gi=yt?function(e){for(var t=[];e;)Ot(t,hi(e)),e=Ye(e);return t}:vl,vi=xr;function mi(e,t,n){for(var r=-1,o=(t=wo(t,e)).length,i=!1;++r<o;){var s=Hi(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ea(o)&&_i(s,o)&&(qs(e)||Fs(e))}function yi(e){return"function"!=typeof e.constructor||Ei(e)?{}:jn(Ye(e))}function bi(e){return qs(e)||Fs(e)||!!(Xe&&e&&e[Xe])}function _i(e,t){var n=typeof e;return!!(t=null==t?f:t)&&("number"==n||"symbol"!=n&&ye.test(e))&&e>-1&&e%1==0&&e<t}function wi(e,t,n){if(!ta(n))return!1;var r=typeof t;return!!("number"==r?Ys(n)&&_i(t,n.length):"string"==r&&t in n)&&zs(n[t],e)}function Ci(e,t){if(qs(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!ua(e))||ee.test(e)||!Q.test(e)||null!=t&&e in Re(t)}function ki(e){var t=li(e),n=zn[t];if("function"!=typeof n||!(t in qn.prototype))return!1;if(e===n)return!0;var r=ai(n);return!!r&&e===r[0]}(En&&vi(new En(new ArrayBuffer(1)))!=A||xn&&vi(new xn)!=k||Rn&&vi(Rn.resolve())!=x||Dn&&vi(new Dn)!=D||Tn&&vi(new Tn)!=M)&&(vi=function(e){var t=xr(e),r=t==E?e.constructor:n,o=r?Wi(r):"";if(o)switch(o){case An:return A;case On:return k;case Nn:return x;case Pn:return D;case Ln:return M}return t});var Si=Oe?Js:ml;function Ei(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||Ae)}function xi(e){return e==e&&!ta(e)}function Ri(e,t){return function(r){return null!=r&&r[e]===t&&(t!==n||e in Re(r))}}function Di(e,t,r){return t=bn(t===n?e.length-1:t,0),function(){for(var n=arguments,o=-1,i=bn(n.length-t,0),s=Ce(i);++o<i;)s[o]=n[t+o];o=-1;for(var a=Ce(t+1);++o<t;)a[o]=n[o];return a[t]=r(s),Et(e,this,a)}}function Ti(e,t){return t.length<2?e:Sr(e,oo(t,0,-1))}function $i(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Mi=Ni(to),Ii=ht||function(e,t){return pt.setTimeout(e,t)},Ai=Ni(no);function Oi(e,t,n){var r=t+"";return Ai(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?"& ":"")+t[r],t=t.join(n>2?", ":" "),e.replace(se,"{\n/* [wrapped with "+t+"] */\n")}(r,function(e,t){return Rt(g,(function(n){var r="_."+n[0];t&n[1]&&!Mt(e,r)&&e.push(r)})),e.sort()}(function(e){var t=e.match(ae);return t?t[1].split(le):[]}(r),n)))}function Ni(e){var t=0,r=0;return function(){var o=wn(),i=16-(o-r);if(r=o,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(n,arguments)}}function Pi(e,t){var r=-1,o=e.length,i=o-1;for(t=t===n?o:t;++r<t;){var s=Zr(r,i),a=e[s];e[s]=e[r],e[r]=a}return e.length=t,e}var Li=function(e){var t=Ns(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(te,(function(e,n,r,o){t.push(r?o.replace(de,"$1"):n||e)})),t}));function Hi(e){if("string"==typeof e||ua(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Wi(e){if(null!=e){try{return Ne.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Ui(e){if(e instanceof qn)return e.clone();var t=new Fn(e.__wrapped__,e.__chain__);return t.__actions__=Mo(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var zi=Xr((function(e,t){return Gs(e)?fr(e,yr(t,1,Gs,!0)):[]})),ji=Xr((function(e,t){var r=Xi(t);return Gs(r)&&(r=n),Gs(e)?fr(e,yr(t,1,Gs,!0),ci(r,2)):[]})),Bi=Xr((function(e,t){var r=Xi(t);return Gs(r)&&(r=n),Gs(e)?fr(e,yr(t,1,Gs,!0),n,r):[]}));function Fi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ga(n);return o<0&&(o=bn(r+o,0)),Ut(e,ci(t,3),o)}function qi(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o-1;return r!==n&&(i=ga(r),i=r<0?bn(o+i,0):_n(i,o-1)),Ut(e,ci(t,3),i,!0)}function Vi(e){return null!=e&&e.length?yr(e,1):[]}function Yi(e){return e&&e.length?e[0]:n}var Gi=Xr((function(e){var t=At(e,bo);return t.length&&t[0]===e[0]?$r(t):[]})),Zi=Xr((function(e){var t=Xi(e),r=At(e,bo);return t===Xi(r)?t=n:r.pop(),r.length&&r[0]===e[0]?$r(r,ci(t,2)):[]})),Ki=Xr((function(e){var t=Xi(e),r=At(e,bo);return(t="function"==typeof t?t:n)&&r.pop(),r.length&&r[0]===e[0]?$r(r,n,t):[]}));function Xi(e){var t=null==e?0:e.length;return t?e[t-1]:n}var Ji=Xr(Qi);function Qi(e,t){return e&&e.length&&t&&t.length?Yr(e,t):e}var es=oi((function(e,t){var n=null==e?0:e.length,r=ar(e,t);return Gr(e,At(t,(function(e){return _i(e,n)?+e:e})).sort(Do)),r}));function ts(e){return null==e?e:Sn.call(e)}var ns=Xr((function(e){return fo(yr(e,1,Gs,!0))})),rs=Xr((function(e){var t=Xi(e);return Gs(t)&&(t=n),fo(yr(e,1,Gs,!0),ci(t,2))})),os=Xr((function(e){var t=Xi(e);return t="function"==typeof t?t:n,fo(yr(e,1,Gs,!0),n,t)}));function is(e){if(!e||!e.length)return[];var t=0;return e=$t(e,(function(e){if(Gs(e))return t=bn(e.length,t),!0})),Zt(t,(function(t){return At(e,qt(t))}))}function ss(e,t){if(!e||!e.length)return[];var r=is(e);return null==t?r:At(r,(function(e){return Et(t,n,e)}))}var as=Xr((function(e,t){return Gs(e)?fr(e,t):[]})),ls=Xr((function(e){return mo($t(e,Gs))})),us=Xr((function(e){var t=Xi(e);return Gs(t)&&(t=n),mo($t(e,Gs),ci(t,2))})),cs=Xr((function(e){var t=Xi(e);return t="function"==typeof t?t:n,mo($t(e,Gs),n,t)})),ds=Xr(is),fs=Xr((function(e){var t=e.length,r=t>1?e[t-1]:n;return r="function"==typeof r?(e.pop(),r):n,ss(e,r)}));function ps(e){var t=zn(e);return t.__chain__=!0,t}function hs(e,t){return t(e)}var gs=oi((function(e){var t=e.length,r=t?e[0]:0,o=this.__wrapped__,i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&o instanceof qn&&_i(r)?((o=o.slice(r,+r+(t?1:0))).__actions__.push({func:hs,args:[i],thisArg:n}),new Fn(o,this.__chain__).thru((function(e){return t&&!e.length&&e.push(n),e}))):this.thru(i)})),vs=Ao((function(e,t,n){Pe.call(e,n)?++e[n]:sr(e,n,1)})),ms=Uo(Fi),ys=Uo(qi);function bs(e,t){return(qs(e)?Rt:pr)(e,ci(t,3))}function _s(e,t){return(qs(e)?Dt:hr)(e,ci(t,3))}var ws=Ao((function(e,t,n){Pe.call(e,n)?e[n].push(t):sr(e,n,[t])})),Cs=Xr((function(e,t,n){var r=-1,o="function"==typeof t,i=Ys(e)?Ce(e.length):[];return pr(e,(function(e){i[++r]=o?Et(t,e,n):Mr(e,t,n)})),i})),ks=Ao((function(e,t,n){sr(e,n,t)}));function Ss(e,t){return(qs(e)?At:Ur)(e,ci(t,3))}var Es=Ao((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]})),xs=Xr((function(e,t){if(null==e)return[];var n=t.length;return n>1&&wi(e,t[0],t[1])?t=[]:n>2&&wi(t[0],t[1],t[2])&&(t=[t[0]]),qr(e,yr(t,1),[])})),Rs=ft||function(){return pt.Date.now()};function Ds(e,t,r){return t=r?n:t,t=e&&null==t?e.length:t,Qo(e,u,n,n,n,n,t)}function Ts(e,t){var o;if("function"!=typeof t)throw new $e(r);return e=ga(e),function(){return--e>0&&(o=t.apply(this,arguments)),e<=1&&(t=n),o}}var $s=Xr((function(e,t,n){var r=1;if(n.length){var o=un(n,ui($s));r|=a}return Qo(e,r,t,n,o)})),Ms=Xr((function(e,t,n){var r=3;if(n.length){var o=un(n,ui(Ms));r|=a}return Qo(t,r,e,n,o)}));function Is(e,t,o){var i,s,a,l,u,c,d=0,f=!1,p=!1,h=!0;if("function"!=typeof e)throw new $e(r);function g(t){var r=i,o=s;return i=s=n,d=t,l=e.apply(o,r)}function v(e){var r=e-c;return c===n||r>=t||r<0||p&&e-d>=a}function m(){var e=Rs();if(v(e))return y(e);u=Ii(m,function(e){var n=t-(e-c);return p?_n(n,a-(e-d)):n}(e))}function y(e){return u=n,h&&i?g(e):(i=s=n,l)}function b(){var e=Rs(),r=v(e);if(i=arguments,s=this,c=e,r){if(u===n)return function(e){return d=e,u=Ii(m,t),f?g(e):l}(c);if(p)return So(u),u=Ii(m,t),g(c)}return u===n&&(u=Ii(m,t)),l}return t=ma(t)||0,ta(o)&&(f=!!o.leading,a=(p="maxWait"in o)?bn(ma(o.maxWait)||0,t):a,h="trailing"in o?!!o.trailing:h),b.cancel=function(){u!==n&&So(u),d=0,i=c=s=u=n},b.flush=function(){return u===n?l:y(Rs())},b}var As=Xr((function(e,t){return dr(e,1,t)})),Os=Xr((function(e,t,n){return dr(e,ma(t)||0,n)}));function Ns(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new $e(r);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Ns.Cache||Gn),n}function Ps(e){if("function"!=typeof e)throw new $e(r);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ns.Cache=Gn;var Ls=Co((function(e,t){var n=(t=1==t.length&&qs(t[0])?At(t[0],Xt(ci())):At(yr(t,1),Xt(ci()))).length;return Xr((function(r){for(var o=-1,i=_n(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Et(e,this,r)}))})),Hs=Xr((function(e,t){var r=un(t,ui(Hs));return Qo(e,a,n,t,r)})),Ws=Xr((function(e,t){var r=un(t,ui(Ws));return Qo(e,l,n,t,r)})),Us=oi((function(e,t){return Qo(e,c,n,n,n,t)}));function zs(e,t){return e===t||e!=e&&t!=t}var js=Go(Rr),Bs=Go((function(e,t){return e>=t})),Fs=Ir(function(){return arguments}())?Ir:function(e){return na(e)&&Pe.call(e,"callee")&&!Ze.call(e,"callee")},qs=Ce.isArray,Vs=bt?Xt(bt):function(e){return na(e)&&xr(e)==I};function Ys(e){return null!=e&&ea(e.length)&&!Js(e)}function Gs(e){return na(e)&&Ys(e)}var Zs=Ht||ml,Ks=_t?Xt(_t):function(e){return na(e)&&xr(e)==b};function Xs(e){if(!na(e))return!1;var t=xr(e);return t==_||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!ia(e)}function Js(e){if(!ta(e))return!1;var t=xr(e);return t==w||t==C||"[object AsyncFunction]"==t||"[object Proxy]"==t}function Qs(e){return"number"==typeof e&&e==ga(e)}function ea(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=f}function ta(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function na(e){return null!=e&&"object"==typeof e}var ra=wt?Xt(wt):function(e){return na(e)&&vi(e)==k};function oa(e){return"number"==typeof e||na(e)&&xr(e)==S}function ia(e){if(!na(e)||xr(e)!=E)return!1;var t=Ye(e);if(null===t)return!0;var n=Pe.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Ne.call(n)==Ue}var sa=Ct?Xt(Ct):function(e){return na(e)&&xr(e)==R},aa=kt?Xt(kt):function(e){return na(e)&&vi(e)==D};function la(e){return"string"==typeof e||!qs(e)&&na(e)&&xr(e)==T}function ua(e){return"symbol"==typeof e||na(e)&&xr(e)==$}var ca=St?Xt(St):function(e){return na(e)&&ea(e.length)&&!!st[xr(e)]},da=Go(Wr),fa=Go((function(e,t){return e<=t}));function pa(e){if(!e)return[];if(Ys(e))return la(e)?pn(e):Mo(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=vi(e);return(t==k?an:t==D?cn:za)(e)}function ha(e){return e?(e=ma(e))===d||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ga(e){var t=ha(e),n=t%1;return t==t?n?t-n:t:0}function va(e){return e?lr(ga(e),0,h):0}function ma(e){if("number"==typeof e)return e;if(ua(e))return p;if(ta(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Kt(e);var n=ge.test(e);return n||me.test(e)?ct(e.slice(2),n?2:8):he.test(e)?p:+e}function ya(e){return Io(e,Aa(e))}function ba(e){return null==e?"":co(e)}var _a=Oo((function(e,t){if(Ei(t)||Ys(t))Io(t,Ia(t),e);else for(var n in t)Pe.call(t,n)&&nr(e,n,t[n])})),wa=Oo((function(e,t){Io(t,Aa(t),e)})),Ca=Oo((function(e,t,n,r){Io(t,Aa(t),e,r)})),ka=Oo((function(e,t,n,r){Io(t,Ia(t),e,r)})),Sa=oi(ar),Ea=Xr((function(e,t){e=Re(e);var r=-1,o=t.length,i=o>2?t[2]:n;for(i&&wi(t[0],t[1],i)&&(o=1);++r<o;)for(var s=t[r],a=Aa(s),l=-1,u=a.length;++l<u;){var c=a[l],d=e[c];(d===n||zs(d,Ae[c])&&!Pe.call(e,c))&&(e[c]=s[c])}return e})),xa=Xr((function(e){return e.push(n,ti),Et(Na,n,e)}));function Ra(e,t,r){var o=null==e?n:Sr(e,t);return o===n?r:o}function Da(e,t){return null!=e&&mi(e,t,Tr)}var Ta=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=We.call(t)),e[t]=n}),tl(ol)),$a=Bo((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=We.call(t)),Pe.call(e,t)?e[t].push(n):e[t]=[n]}),ci),Ma=Xr(Mr);function Ia(e){return Ys(e)?Xn(e):Lr(e)}function Aa(e){return Ys(e)?Xn(e,!0):Hr(e)}var Oa=Oo((function(e,t,n){Br(e,t,n)})),Na=Oo((function(e,t,n,r){Br(e,t,n,r)})),Pa=oi((function(e,t){var n={};if(null==e)return n;var r=!1;t=At(t,(function(t){return t=wo(t,e),r||(r=t.length>1),t})),Io(e,si(e),n),r&&(n=ur(n,7,ni));for(var o=t.length;o--;)po(n,t[o]);return n})),La=oi((function(e,t){return null==e?{}:function(e,t){return Vr(e,t,(function(t,n){return Da(e,n)}))}(e,t)}));function Ha(e,t){if(null==e)return{};var n=At(si(e),(function(e){return[e]}));return t=ci(t),Vr(e,n,(function(e,n){return t(e,n[0])}))}var Wa=Jo(Ia),Ua=Jo(Aa);function za(e){return null==e?[]:Jt(e,Ia(e))}var ja=Ho((function(e,t,n){return t=t.toLowerCase(),e+(n?Ba(t):t)}));function Ba(e){return Xa(ba(e).toLowerCase())}function Fa(e){return(e=ba(e))&&e.replace(be,nn).replace(Qe,"")}var qa=Ho((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Va=Ho((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ya=Lo("toLowerCase"),Ga=Ho((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()})),Za=Ho((function(e,t,n){return e+(n?" ":"")+Xa(t)})),Ka=Ho((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Xa=Lo("toUpperCase");function Ja(e,t,r){return e=ba(e),(t=r?n:t)===n?function(e){return rt.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(ue)||[]}(e):e.match(t)||[]}var Qa=Xr((function(e,t){try{return Et(e,n,t)}catch(e){return Xs(e)?e:new Se(e)}})),el=oi((function(e,t){return Rt(t,(function(t){t=Hi(t),sr(e,t,$s(e[t],e))})),e}));function tl(e){return function(){return e}}var nl=zo(),rl=zo(!0);function ol(e){return e}function il(e){return Pr("function"==typeof e?e:ur(e,1))}var sl=Xr((function(e,t){return function(n){return Mr(n,e,t)}})),al=Xr((function(e,t){return function(n){return Mr(e,n,t)}}));function ll(e,t,n){var r=Ia(t),o=kr(t,r);null!=n||ta(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=kr(t,Ia(t)));var i=!(ta(n)&&"chain"in n&&!n.chain),s=Js(e);return Rt(o,(function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=Mo(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ot([this.value()],arguments))})})),e}function ul(){}var cl=qo(At),dl=qo(Tt),fl=qo(Lt);function pl(e){return Ci(e)?qt(Hi(e)):function(e){return function(t){return Sr(t,e)}}(e)}var hl=Yo(),gl=Yo(!0);function vl(){return[]}function ml(){return!1}var yl,bl=Fo((function(e,t){return e+t}),0),_l=Ko("ceil"),wl=Fo((function(e,t){return e/t}),1),Cl=Ko("floor"),kl=Fo((function(e,t){return e*t}),1),Sl=Ko("round"),El=Fo((function(e,t){return e-t}),0);return zn.after=function(e,t){if("function"!=typeof t)throw new $e(r);return e=ga(e),function(){if(--e<1)return t.apply(this,arguments)}},zn.ary=Ds,zn.assign=_a,zn.assignIn=wa,zn.assignInWith=Ca,zn.assignWith=ka,zn.at=Sa,zn.before=Ts,zn.bind=$s,zn.bindAll=el,zn.bindKey=Ms,zn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return qs(e)?e:[e]},zn.chain=ps,zn.chunk=function(e,t,r){t=(r?wi(e,t,r):t===n)?1:bn(ga(t),0);var o=null==e?0:e.length;if(!o||t<1)return[];for(var i=0,s=0,a=Ce(gt(o/t));i<o;)a[s++]=oo(e,i,i+=t);return a},zn.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},zn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=Ce(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Ot(qs(n)?Mo(n):[n],yr(t,1))},zn.cond=function(e){var t=null==e?0:e.length,n=ci();return e=t?At(e,(function(e){if("function"!=typeof e[1])throw new $e(r);return[n(e[0]),e[1]]})):[],Xr((function(n){for(var r=-1;++r<t;){var o=e[r];if(Et(o[0],this,n))return Et(o[1],this,n)}}))},zn.conforms=function(e){return function(e){var t=Ia(e);return function(n){return cr(n,e,t)}}(ur(e,1))},zn.constant=tl,zn.countBy=vs,zn.create=function(e,t){var n=jn(e);return null==t?n:ir(n,t)},zn.curry=function e(t,r,o){var i=Qo(t,8,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},zn.curryRight=function e(t,r,o){var i=Qo(t,s,n,n,n,n,n,r=o?n:r);return i.placeholder=e.placeholder,i},zn.debounce=Is,zn.defaults=Ea,zn.defaultsDeep=xa,zn.defer=As,zn.delay=Os,zn.difference=zi,zn.differenceBy=ji,zn.differenceWith=Bi,zn.drop=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=r||t===n?1:ga(t))<0?0:t,o):[]},zn.dropRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,0,(t=o-(t=r||t===n?1:ga(t)))<0?0:t):[]},zn.dropRightWhile=function(e,t){return e&&e.length?go(e,ci(t,3),!0,!0):[]},zn.dropWhile=function(e,t){return e&&e.length?go(e,ci(t,3),!0):[]},zn.fill=function(e,t,r,o){var i=null==e?0:e.length;return i?(r&&"number"!=typeof r&&wi(e,t,r)&&(r=0,o=i),function(e,t,r,o){var i=e.length;for((r=ga(r))<0&&(r=-r>i?0:i+r),(o=o===n||o>i?i:ga(o))<0&&(o+=i),o=r>o?0:va(o);r<o;)e[r++]=t;return e}(e,t,r,o)):[]},zn.filter=function(e,t){return(qs(e)?$t:mr)(e,ci(t,3))},zn.flatMap=function(e,t){return yr(Ss(e,t),1)},zn.flatMapDeep=function(e,t){return yr(Ss(e,t),d)},zn.flatMapDepth=function(e,t,r){return r=r===n?1:ga(r),yr(Ss(e,t),r)},zn.flatten=Vi,zn.flattenDeep=function(e){return null!=e&&e.length?yr(e,d):[]},zn.flattenDepth=function(e,t){return null!=e&&e.length?yr(e,t=t===n?1:ga(t)):[]},zn.flip=function(e){return Qo(e,512)},zn.flow=nl,zn.flowRight=rl,zn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},zn.functions=function(e){return null==e?[]:kr(e,Ia(e))},zn.functionsIn=function(e){return null==e?[]:kr(e,Aa(e))},zn.groupBy=ws,zn.initial=function(e){return null!=e&&e.length?oo(e,0,-1):[]},zn.intersection=Gi,zn.intersectionBy=Zi,zn.intersectionWith=Ki,zn.invert=Ta,zn.invertBy=$a,zn.invokeMap=Cs,zn.iteratee=il,zn.keyBy=ks,zn.keys=Ia,zn.keysIn=Aa,zn.map=Ss,zn.mapKeys=function(e,t){var n={};return t=ci(t,3),wr(e,(function(e,r,o){sr(n,t(e,r,o),e)})),n},zn.mapValues=function(e,t){var n={};return t=ci(t,3),wr(e,(function(e,r,o){sr(n,r,t(e,r,o))})),n},zn.matches=function(e){return zr(ur(e,1))},zn.matchesProperty=function(e,t){return jr(e,ur(t,1))},zn.memoize=Ns,zn.merge=Oa,zn.mergeWith=Na,zn.method=sl,zn.methodOf=al,zn.mixin=ll,zn.negate=Ps,zn.nthArg=function(e){return e=ga(e),Xr((function(t){return Fr(t,e)}))},zn.omit=Pa,zn.omitBy=function(e,t){return Ha(e,Ps(ci(t)))},zn.once=function(e){return Ts(2,e)},zn.orderBy=function(e,t,r,o){return null==e?[]:(qs(t)||(t=null==t?[]:[t]),qs(r=o?n:r)||(r=null==r?[]:[r]),qr(e,t,r))},zn.over=cl,zn.overArgs=Ls,zn.overEvery=dl,zn.overSome=fl,zn.partial=Hs,zn.partialRight=Ws,zn.partition=Es,zn.pick=La,zn.pickBy=Ha,zn.property=pl,zn.propertyOf=function(e){return function(t){return null==e?n:Sr(e,t)}},zn.pull=Ji,zn.pullAll=Qi,zn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Yr(e,t,ci(n,2)):e},zn.pullAllWith=function(e,t,r){return e&&e.length&&t&&t.length?Yr(e,t,n,r):e},zn.pullAt=es,zn.range=hl,zn.rangeRight=gl,zn.rearg=Us,zn.reject=function(e,t){return(qs(e)?$t:mr)(e,Ps(ci(t,3)))},zn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=ci(t,3);++r<i;){var s=e[r];t(s,r,e)&&(n.push(s),o.push(r))}return Gr(e,o),n},zn.rest=function(e,t){if("function"!=typeof e)throw new $e(r);return Xr(e,t=t===n?t:ga(t))},zn.reverse=ts,zn.sampleSize=function(e,t,r){return t=(r?wi(e,t,r):t===n)?1:ga(t),(qs(e)?Qn:Qr)(e,t)},zn.set=function(e,t,n){return null==e?e:eo(e,t,n)},zn.setWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:eo(e,t,r,o)},zn.shuffle=function(e){return(qs(e)?er:ro)(e)},zn.slice=function(e,t,r){var o=null==e?0:e.length;return o?(r&&"number"!=typeof r&&wi(e,t,r)?(t=0,r=o):(t=null==t?0:ga(t),r=r===n?o:ga(r)),oo(e,t,r)):[]},zn.sortBy=xs,zn.sortedUniq=function(e){return e&&e.length?lo(e):[]},zn.sortedUniqBy=function(e,t){return e&&e.length?lo(e,ci(t,2)):[]},zn.split=function(e,t,r){return r&&"number"!=typeof r&&wi(e,t,r)&&(t=r=n),(r=r===n?h:r>>>0)?(e=ba(e))&&("string"==typeof t||null!=t&&!sa(t))&&!(t=co(t))&&sn(e)?ko(pn(e),0,r):e.split(t,r):[]},zn.spread=function(e,t){if("function"!=typeof e)throw new $e(r);return t=null==t?0:bn(ga(t),0),Xr((function(n){var r=n[t],o=ko(n,0,t);return r&&Ot(o,r),Et(e,this,o)}))},zn.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},zn.take=function(e,t,r){return e&&e.length?oo(e,0,(t=r||t===n?1:ga(t))<0?0:t):[]},zn.takeRight=function(e,t,r){var o=null==e?0:e.length;return o?oo(e,(t=o-(t=r||t===n?1:ga(t)))<0?0:t,o):[]},zn.takeRightWhile=function(e,t){return e&&e.length?go(e,ci(t,3),!1,!0):[]},zn.takeWhile=function(e,t){return e&&e.length?go(e,ci(t,3)):[]},zn.tap=function(e,t){return t(e),e},zn.throttle=function(e,t,n){var o=!0,i=!0;if("function"!=typeof e)throw new $e(r);return ta(n)&&(o="leading"in n?!!n.leading:o,i="trailing"in n?!!n.trailing:i),Is(e,t,{leading:o,maxWait:t,trailing:i})},zn.thru=hs,zn.toArray=pa,zn.toPairs=Wa,zn.toPairsIn=Ua,zn.toPath=function(e){return qs(e)?At(e,Hi):ua(e)?[e]:Mo(Li(ba(e)))},zn.toPlainObject=ya,zn.transform=function(e,t,n){var r=qs(e),o=r||Zs(e)||ca(e);if(t=ci(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ta(e)&&Js(i)?jn(Ye(e)):{}}return(o?Rt:wr)(e,(function(e,r,o){return t(n,e,r,o)})),n},zn.unary=function(e){return Ds(e,1)},zn.union=ns,zn.unionBy=rs,zn.unionWith=os,zn.uniq=function(e){return e&&e.length?fo(e):[]},zn.uniqBy=function(e,t){return e&&e.length?fo(e,ci(t,2)):[]},zn.uniqWith=function(e,t){return t="function"==typeof t?t:n,e&&e.length?fo(e,n,t):[]},zn.unset=function(e,t){return null==e||po(e,t)},zn.unzip=is,zn.unzipWith=ss,zn.update=function(e,t,n){return null==e?e:ho(e,t,_o(n))},zn.updateWith=function(e,t,r,o){return o="function"==typeof o?o:n,null==e?e:ho(e,t,_o(r),o)},zn.values=za,zn.valuesIn=function(e){return null==e?[]:Jt(e,Aa(e))},zn.without=as,zn.words=Ja,zn.wrap=function(e,t){return Hs(_o(t),e)},zn.xor=ls,zn.xorBy=us,zn.xorWith=cs,zn.zip=ds,zn.zipObject=function(e,t){return yo(e||[],t||[],nr)},zn.zipObjectDeep=function(e,t){return yo(e||[],t||[],eo)},zn.zipWith=fs,zn.entries=Wa,zn.entriesIn=Ua,zn.extend=wa,zn.extendWith=Ca,ll(zn,zn),zn.add=bl,zn.attempt=Qa,zn.camelCase=ja,zn.capitalize=Ba,zn.ceil=_l,zn.clamp=function(e,t,r){return r===n&&(r=t,t=n),r!==n&&(r=(r=ma(r))==r?r:0),t!==n&&(t=(t=ma(t))==t?t:0),lr(ma(e),t,r)},zn.clone=function(e){return ur(e,4)},zn.cloneDeep=function(e){return ur(e,5)},zn.cloneDeepWith=function(e,t){return ur(e,5,t="function"==typeof t?t:n)},zn.cloneWith=function(e,t){return ur(e,4,t="function"==typeof t?t:n)},zn.conformsTo=function(e,t){return null==t||cr(e,t,Ia(t))},zn.deburr=Fa,zn.defaultTo=function(e,t){return null==e||e!=e?t:e},zn.divide=wl,zn.endsWith=function(e,t,r){e=ba(e),t=co(t);var o=e.length,i=r=r===n?o:lr(ga(r),0,o);return(r-=t.length)>=0&&e.slice(r,i)==t},zn.eq=zs,zn.escape=function(e){return(e=ba(e))&&Z.test(e)?e.replace(Y,rn):e},zn.escapeRegExp=function(e){return(e=ba(e))&&re.test(e)?e.replace(ne,"\\$&"):e},zn.every=function(e,t,r){var o=qs(e)?Tt:gr;return r&&wi(e,t,r)&&(t=n),o(e,ci(t,3))},zn.find=ms,zn.findIndex=Fi,zn.findKey=function(e,t){return Wt(e,ci(t,3),wr)},zn.findLast=ys,zn.findLastIndex=qi,zn.findLastKey=function(e,t){return Wt(e,ci(t,3),Cr)},zn.floor=Cl,zn.forEach=bs,zn.forEachRight=_s,zn.forIn=function(e,t){return null==e?e:br(e,ci(t,3),Aa)},zn.forInRight=function(e,t){return null==e?e:_r(e,ci(t,3),Aa)},zn.forOwn=function(e,t){return e&&wr(e,ci(t,3))},zn.forOwnRight=function(e,t){return e&&Cr(e,ci(t,3))},zn.get=Ra,zn.gt=js,zn.gte=Bs,zn.has=function(e,t){return null!=e&&mi(e,t,Dr)},zn.hasIn=Da,zn.head=Yi,zn.identity=ol,zn.includes=function(e,t,n,r){e=Ys(e)?e:za(e),n=n&&!r?ga(n):0;var o=e.length;return n<0&&(n=bn(o+n,0)),la(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&zt(e,t,n)>-1},zn.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ga(n);return o<0&&(o=bn(r+o,0)),zt(e,t,o)},zn.inRange=function(e,t,r){return t=ha(t),r===n?(r=t,t=0):r=ha(r),function(e,t,n){return e>=_n(t,n)&&e<bn(t,n)}(e=ma(e),t,r)},zn.invoke=Ma,zn.isArguments=Fs,zn.isArray=qs,zn.isArrayBuffer=Vs,zn.isArrayLike=Ys,zn.isArrayLikeObject=Gs,zn.isBoolean=function(e){return!0===e||!1===e||na(e)&&xr(e)==y},zn.isBuffer=Zs,zn.isDate=Ks,zn.isElement=function(e){return na(e)&&1===e.nodeType&&!ia(e)},zn.isEmpty=function(e){if(null==e)return!0;if(Ys(e)&&(qs(e)||"string"==typeof e||"function"==typeof e.splice||Zs(e)||ca(e)||Fs(e)))return!e.length;var t=vi(e);if(t==k||t==D)return!e.size;if(Ei(e))return!Lr(e).length;for(var n in e)if(Pe.call(e,n))return!1;return!0},zn.isEqual=function(e,t){return Ar(e,t)},zn.isEqualWith=function(e,t,r){var o=(r="function"==typeof r?r:n)?r(e,t):n;return o===n?Ar(e,t,n,r):!!o},zn.isError=Xs,zn.isFinite=function(e){return"number"==typeof e&&Vt(e)},zn.isFunction=Js,zn.isInteger=Qs,zn.isLength=ea,zn.isMap=ra,zn.isMatch=function(e,t){return e===t||Or(e,t,fi(t))},zn.isMatchWith=function(e,t,r){return r="function"==typeof r?r:n,Or(e,t,fi(t),r)},zn.isNaN=function(e){return oa(e)&&e!=+e},zn.isNative=function(e){if(Si(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Nr(e)},zn.isNil=function(e){return null==e},zn.isNull=function(e){return null===e},zn.isNumber=oa,zn.isObject=ta,zn.isObjectLike=na,zn.isPlainObject=ia,zn.isRegExp=sa,zn.isSafeInteger=function(e){return Qs(e)&&e>=-9007199254740991&&e<=f},zn.isSet=aa,zn.isString=la,zn.isSymbol=ua,zn.isTypedArray=ca,zn.isUndefined=function(e){return e===n},zn.isWeakMap=function(e){return na(e)&&vi(e)==M},zn.isWeakSet=function(e){return na(e)&&"[object WeakSet]"==xr(e)},zn.join=function(e,t){return null==e?"":mn.call(e,t)},zn.kebabCase=qa,zn.last=Xi,zn.lastIndexOf=function(e,t,r){var o=null==e?0:e.length;if(!o)return-1;var i=o;return r!==n&&(i=(i=ga(r))<0?bn(o+i,0):_n(i,o-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):Ut(e,Bt,i,!0)},zn.lowerCase=Va,zn.lowerFirst=Ya,zn.lt=da,zn.lte=fa,zn.max=function(e){return e&&e.length?vr(e,ol,Rr):n},zn.maxBy=function(e,t){return e&&e.length?vr(e,ci(t,2),Rr):n},zn.mean=function(e){return Ft(e,ol)},zn.meanBy=function(e,t){return Ft(e,ci(t,2))},zn.min=function(e){return e&&e.length?vr(e,ol,Wr):n},zn.minBy=function(e,t){return e&&e.length?vr(e,ci(t,2),Wr):n},zn.stubArray=vl,zn.stubFalse=ml,zn.stubObject=function(){return{}},zn.stubString=function(){return""},zn.stubTrue=function(){return!0},zn.multiply=kl,zn.nth=function(e,t){return e&&e.length?Fr(e,ga(t)):n},zn.noConflict=function(){return pt._===this&&(pt._=ze),this},zn.noop=ul,zn.now=Rs,zn.pad=function(e,t,n){e=ba(e);var r=(t=ga(t))?fn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return Vo(mt(o),n)+e+Vo(gt(o),n)},zn.padEnd=function(e,t,n){e=ba(e);var r=(t=ga(t))?fn(e):0;return t&&r<t?e+Vo(t-r,n):e},zn.padStart=function(e,t,n){e=ba(e);var r=(t=ga(t))?fn(e):0;return t&&r<t?Vo(t-r,n)+e:e},zn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),Cn(ba(e).replace(oe,""),t||0)},zn.random=function(e,t,r){if(r&&"boolean"!=typeof r&&wi(e,t,r)&&(t=r=n),r===n&&("boolean"==typeof t?(r=t,t=n):"boolean"==typeof e&&(r=e,e=n)),e===n&&t===n?(e=0,t=1):(e=ha(e),t===n?(t=e,e=0):t=ha(t)),e>t){var o=e;e=t,t=o}if(r||e%1||t%1){var i=kn();return _n(e+i*(t-e+ut("1e-"+((i+"").length-1))),t)}return Zr(e,t)},zn.reduce=function(e,t,n){var r=qs(e)?Nt:Yt,o=arguments.length<3;return r(e,ci(t,4),n,o,pr)},zn.reduceRight=function(e,t,n){var r=qs(e)?Pt:Yt,o=arguments.length<3;return r(e,ci(t,4),n,o,hr)},zn.repeat=function(e,t,r){return t=(r?wi(e,t,r):t===n)?1:ga(t),Kr(ba(e),t)},zn.replace=function(){var e=arguments,t=ba(e[0]);return e.length<3?t:t.replace(e[1],e[2])},zn.result=function(e,t,r){var o=-1,i=(t=wo(t,e)).length;for(i||(i=1,e=n);++o<i;){var s=null==e?n:e[Hi(t[o])];s===n&&(o=i,s=r),e=Js(s)?s.call(e):s}return e},zn.round=Sl,zn.runInContext=e,zn.sample=function(e){return(qs(e)?Jn:Jr)(e)},zn.size=function(e){if(null==e)return 0;if(Ys(e))return la(e)?fn(e):e.length;var t=vi(e);return t==k||t==D?e.size:Lr(e).length},zn.snakeCase=Ga,zn.some=function(e,t,r){var o=qs(e)?Lt:io;return r&&wi(e,t,r)&&(t=n),o(e,ci(t,3))},zn.sortedIndex=function(e,t){return so(e,t)},zn.sortedIndexBy=function(e,t,n){return ao(e,t,ci(n,2))},zn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=so(e,t);if(r<n&&zs(e[r],t))return r}return-1},zn.sortedLastIndex=function(e,t){return so(e,t,!0)},zn.sortedLastIndexBy=function(e,t,n){return ao(e,t,ci(n,2),!0)},zn.sortedLastIndexOf=function(e,t){if(null!=e&&e.length){var n=so(e,t,!0)-1;if(zs(e[n],t))return n}return-1},zn.startCase=Za,zn.startsWith=function(e,t,n){return e=ba(e),n=null==n?0:lr(ga(n),0,e.length),t=co(t),e.slice(n,n+t.length)==t},zn.subtract=El,zn.sum=function(e){return e&&e.length?Gt(e,ol):0},zn.sumBy=function(e,t){return e&&e.length?Gt(e,ci(t,2)):0},zn.template=function(e,t,r){var o=zn.templateSettings;r&&wi(e,t,r)&&(t=n),e=ba(e),t=Ca({},t,o,ei);var i,s,a=Ca({},t.imports,o.imports,ei),l=Ia(a),u=Jt(a,l),c=0,d=t.interpolate||_e,f="__p += '",p=De((t.escape||_e).source+"|"+d.source+"|"+(d===J?fe:_e).source+"|"+(t.evaluate||_e).source+"|$","g"),h="//# sourceURL="+(Pe.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++it+"]")+"\n";e.replace(p,(function(t,n,r,o,a,l){return r||(r=o),f+=e.slice(c,l).replace(we,on),n&&(i=!0,f+="' +\n__e("+n+") +\n'"),a&&(s=!0,f+="';\n"+a+";\n__p += '"),r&&(f+="' +\n((__t = ("+r+")) == null ? '' : __t) +\n'"),c=l+t.length,t})),f+="';\n";var g=Pe.call(t,"variable")&&t.variable;if(g){if(ce.test(g))throw new Se("Invalid `variable` option passed into `_.template`")}else f="with (obj) {\n"+f+"\n}\n";f=(s?f.replace(B,""):f).replace(F,"$1").replace(q,"$1;"),f="function("+(g||"obj")+") {\n"+(g?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(i?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+f+"return __p\n}";var v=Qa((function(){return Ee(l,h+"return "+f).apply(n,u)}));if(v.source=f,Xs(v))throw v;return v},zn.times=function(e,t){if((e=ga(e))<1||e>f)return[];var n=h,r=_n(e,h);t=ci(t),e-=h;for(var o=Zt(r,t);++n<e;)t(n);return o},zn.toFinite=ha,zn.toInteger=ga,zn.toLength=va,zn.toLower=function(e){return ba(e).toLowerCase()},zn.toNumber=ma,zn.toSafeInteger=function(e){return e?lr(ga(e),-9007199254740991,f):0===e?e:0},zn.toString=ba,zn.toUpper=function(e){return ba(e).toUpperCase()},zn.trim=function(e,t,r){if((e=ba(e))&&(r||t===n))return Kt(e);if(!e||!(t=co(t)))return e;var o=pn(e),i=pn(t);return ko(o,en(o,i),tn(o,i)+1).join("")},zn.trimEnd=function(e,t,r){if((e=ba(e))&&(r||t===n))return e.slice(0,hn(e)+1);if(!e||!(t=co(t)))return e;var o=pn(e);return ko(o,0,tn(o,pn(t))+1).join("")},zn.trimStart=function(e,t,r){if((e=ba(e))&&(r||t===n))return e.replace(oe,"");if(!e||!(t=co(t)))return e;var o=pn(e);return ko(o,en(o,pn(t))).join("")},zn.truncate=function(e,t){var r=30,o="...";if(ta(t)){var i="separator"in t?t.separator:i;r="length"in t?ga(t.length):r,o="omission"in t?co(t.omission):o}var s=(e=ba(e)).length;if(sn(e)){var a=pn(e);s=a.length}if(r>=s)return e;var l=r-fn(o);if(l<1)return o;var u=a?ko(a,0,l).join(""):e.slice(0,l);if(i===n)return u+o;if(a&&(l+=u.length-l),sa(i)){if(e.slice(l).search(i)){var c,d=u;for(i.global||(i=De(i.source,ba(pe.exec(i))+"g")),i.lastIndex=0;c=i.exec(d);)var f=c.index;u=u.slice(0,f===n?l:f)}}else if(e.indexOf(co(i),l)!=l){var p=u.lastIndexOf(i);p>-1&&(u=u.slice(0,p))}return u+o},zn.unescape=function(e){return(e=ba(e))&&G.test(e)?e.replace(V,gn):e},zn.uniqueId=function(e){var t=++Le;return ba(e)+t},zn.upperCase=Ka,zn.upperFirst=Xa,zn.each=bs,zn.eachRight=_s,zn.first=Yi,ll(zn,(yl={},wr(zn,(function(e,t){Pe.call(zn.prototype,t)||(yl[t]=e)})),yl),{chain:!1}),zn.VERSION="4.17.21",Rt(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){zn[e].placeholder=zn})),Rt(["drop","take"],(function(e,t){qn.prototype[e]=function(r){r=r===n?1:bn(ga(r),0);var o=this.__filtered__&&!t?new qn(this):this.clone();return o.__filtered__?o.__takeCount__=_n(r,o.__takeCount__):o.__views__.push({size:_n(r,h),type:e+(o.__dir__<0?"Right":"")}),o},qn.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Rt(["filter","map","takeWhile"],(function(e,t){var n=t+1,r=1==n||3==n;qn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ci(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}})),Rt(["head","last"],(function(e,t){var n="take"+(t?"Right":"");qn.prototype[e]=function(){return this[n](1).value()[0]}})),Rt(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");qn.prototype[e]=function(){return this.__filtered__?new qn(this):this[n](1)}})),qn.prototype.compact=function(){return this.filter(ol)},qn.prototype.find=function(e){return this.filter(e).head()},qn.prototype.findLast=function(e){return this.reverse().find(e)},qn.prototype.invokeMap=Xr((function(e,t){return"function"==typeof e?new qn(this):this.map((function(n){return Mr(n,e,t)}))})),qn.prototype.reject=function(e){return this.filter(Ps(ci(e)))},qn.prototype.slice=function(e,t){e=ga(e);var r=this;return r.__filtered__&&(e>0||t<0)?new qn(r):(e<0?r=r.takeRight(-e):e&&(r=r.drop(e)),t!==n&&(r=(t=ga(t))<0?r.dropRight(-t):r.take(t-e)),r)},qn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},qn.prototype.toArray=function(){return this.take(h)},wr(qn.prototype,(function(e,t){var r=/^(?:filter|find|map|reject)|While$/.test(t),o=/^(?:head|last)$/.test(t),i=zn[o?"take"+("last"==t?"Right":""):t],s=o||/^find/.test(t);i&&(zn.prototype[t]=function(){var t=this.__wrapped__,a=o?[1]:arguments,l=t instanceof qn,u=a[0],c=l||qs(t),d=function(e){var t=i.apply(zn,Ot([e],a));return o&&f?t[0]:t};c&&r&&"function"==typeof u&&1!=u.length&&(l=c=!1);var f=this.__chain__,p=!!this.__actions__.length,h=s&&!f,g=l&&!p;if(!s&&c){t=g?t:new qn(this);var v=e.apply(t,a);return v.__actions__.push({func:hs,args:[d],thisArg:n}),new Fn(v,f)}return h&&g?e.apply(this,a):(v=this.thru(d),h?o?v.value()[0]:v.value():v)})})),Rt(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Me[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",r=/^(?:pop|shift)$/.test(e);zn.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(qs(o)?o:[],e)}return this[n]((function(n){return t.apply(qs(n)?n:[],e)}))}})),wr(qn.prototype,(function(e,t){var n=zn[t];if(n){var r=n.name+"";Pe.call(In,r)||(In[r]=[]),In[r].push({name:t,func:n})}})),In[jo(n,2).name]=[{name:"wrapper",func:n}],qn.prototype.clone=function(){var e=new qn(this.__wrapped__);return e.__actions__=Mo(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Mo(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Mo(this.__views__),e},qn.prototype.reverse=function(){if(this.__filtered__){var e=new qn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},qn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=qs(e),r=t<0,o=n?e.length:0,i=function(e,t,n){for(var r=-1,o=n.length;++r<o;){var i=n[r],s=i.size;switch(i.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=_n(t,e+s);break;case"takeRight":e=bn(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,l=a-s,u=r?a:s-1,c=this.__iteratees__,d=c.length,f=0,p=_n(l,this.__takeCount__);if(!n||!r&&o==l&&p==l)return vo(e,this.__actions__);var h=[];e:for(;l--&&f<p;){for(var g=-1,v=e[u+=t];++g<d;){var m=c[g],y=m.iteratee,b=m.type,_=y(v);if(2==b)v=_;else if(!_){if(1==b)continue e;break e}}h[f++]=v}return h},zn.prototype.at=gs,zn.prototype.chain=function(){return ps(this)},zn.prototype.commit=function(){return new Fn(this.value(),this.__chain__)},zn.prototype.next=function(){this.__values__===n&&(this.__values__=pa(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?n:this.__values__[this.__index__++]}},zn.prototype.plant=function(e){for(var t,r=this;r instanceof Bn;){var o=Ui(r);o.__index__=0,o.__values__=n,t?i.__wrapped__=o:t=o;var i=o;r=r.__wrapped__}return i.__wrapped__=e,t},zn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof qn){var t=e;return this.__actions__.length&&(t=new qn(this)),(t=t.reverse()).__actions__.push({func:hs,args:[ts],thisArg:n}),new Fn(t,this.__chain__)}return this.thru(ts)},zn.prototype.toJSON=zn.prototype.valueOf=zn.prototype.value=function(){return vo(this.__wrapped__,this.__actions__)},zn.prototype.first=zn.prototype.head,et&&(zn.prototype[et]=function(){return this}),zn}();gt?((gt.exports=vn)._=vn,ht._=vn):pt._=vn}).call(xb)},Rb(Db={exports:{}},Db.exports),Db.exports);function $b(t){let n,r,o,i;return n=new gg({props:{name:"question-circle",class:"text-primary me-2"}}),{c(){$e(n.$$.fragment),r=A(),o=$("b"),o.textContent="Aide"},m(e,t){Me(n,e,t),R(e,r,t),R(e,o,t),i=!0},p:e,i(e){i||(Ce(n.$$.fragment,e),i=!0)},o(e){ke(n.$$.fragment,e),i=!1},d(e){Ie(n,e),e&&D(r),e&&D(o)}}}function Mb(t){let n,r,o,i,s,a,l;return{c(){n=$("p"),n.textContent="Kalendrier commun de la vie étudiante de l'ENS",r=A(),o=$("b"),o.textContent="Comment rajouter son calendrier :",i=A(),s=$("ul"),s.innerHTML='<li>Utiliser un NextCloud, idéalement\n <a href="https://cloud.eleves.ens.fr">cloud.eleves.ens.fr</a>, ou\n <a href="https://framagenda.org">Framagenda</a>.</li> \n <li>Créer un calendrier dessus, créer un lien de partage public.</li> \n <li>Envoyer le lien de partage public au Club Réseau<br/>\n (club-reseau [at] lists [.] ens [.] psl [.] eu) pour faire une requête d'ajout.</li>',a=A(),l=$("p"),l.textContent="Code source:"},m(e,t){R(e,n,t),R(e,r,t),R(e,o,t),R(e,i,t),R(e,s,t),R(e,a,t),R(e,l,t)},p:e,d(e){e&&D(n),e&&D(r),e&&D(o),e&&D(i),e&&D(s),e&&D(a),e&&D(l)}}}function Ib(t){let n,r,o,i;return n=new gg({props:{name:"balloon-heart",class:"text-danger fs-5"}}),{c(){$e(n.$$.fragment),r=A(),o=$("span"),o.textContent="Propulsé par le Club Réseau de l'ENS",L(o,"class","fs-7")},m(e,t){Me(n,e,t),R(e,r,t),R(e,o,t),i=!0},p:e,i(e){i||(Ce(n.$$.fragment,e),i=!0)},o(e){ke(n.$$.fragment,e),i=!1},d(e){Ie(n,e),e&&D(r),e&&D(o)}}}function Ab(e){let t,n,r,o,i,s;return t=new Ag({props:{toggle:e[1],$$slots:{default:[$b]},$$scope:{ctx:e}}}),r=new Eg({props:{$$slots:{default:[Mb]},$$scope:{ctx:e}}}),i=new nv({props:{$$slots:{default:[Ib]},$$scope:{ctx:e}}}),{c(){$e(t.$$.fragment),n=A(),$e(r.$$.fragment),o=A(),$e(i.$$.fragment)},m(e,a){Me(t,e,a),R(e,n,a),Me(r,e,a),R(e,o,a),Me(i,e,a),s=!0},p(e,n){const o={};4&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o);const s={};4&n&&(s.$$scope={dirty:n,ctx:e}),r.$set(s);const a={};4&n&&(a.$$scope={dirty:n,ctx:e}),i.$set(a)},i(e){s||(Ce(t.$$.fragment,e),Ce(r.$$.fragment,e),Ce(i.$$.fragment,e),s=!0)},o(e){ke(t.$$.fragment,e),ke(r.$$.fragment,e),ke(i.$$.fragment,e),s=!1},d(e){Ie(t,e),e&&D(n),Ie(r,e),e&&D(o),Ie(i,e)}}}function Ob(e){let t,n,r,o,i,s,a;return n=new gg({props:{name:"question-circle"}}),o=new Qg({props:{isOpen:e[0],toggle:e[1],centered:!0,scrollable:!0,$$slots:{default:[Ab]},$$scope:{ctx:e}}}),{c(){t=$("span"),$e(n.$$.fragment),r=A(),$e(o.$$.fragment),L(t,"class","help-toggle fs-4 no-print svelte-1ajhrtc")},m(l,u){R(l,t,u),Me(n,t,null),R(l,r,u),Me(o,l,u),i=!0,s||(a=N(t,"click",e[1]),s=!0)},p(e,[t]){const n={};1&t&&(n.isOpen=e[0]),4&t&&(n.$$scope={dirty:t,ctx:e}),o.$set(n)},i(e){i||(Ce(n.$$.fragment,e),Ce(o.$$.fragment,e),i=!0)},o(e){ke(n.$$.fragment,e),ke(o.$$.fragment,e),i=!1},d(e){e&&D(t),Ie(n),e&&D(r),Ie(o,e),s=!1,a()}}}function Nb(e,t,n){let r=!1;return[r,()=>n(0,r=!r)]}gn("");class Pb extends Ne{constructor(e){super(),Oe(this,e,Nb,Ob,a,{})}}function Lb(e){let t,n;return{c(){t=new F(!1),n=O(),t.a=n},m(r,o){t.m(e[3],r,o),R(r,n,o)},p(e,n){8&n&&t.p(e[3])},d(e){e&&D(n),e&&t.d()}}}function Hb(t){let n,r,o,i;return n=new gg({props:{name:"share",class:"text-success me-2"}}),{c(){$e(n.$$.fragment),r=A(),o=$("b"),o.textContent="Partage"},m(e,t){Me(n,e,t),R(e,r,t),R(e,o,t),i=!0},p:e,i(e){i||(Ce(n.$$.fragment,e),i=!0)},o(e){ke(n.$$.fragment,e),i=!1},d(e){Ie(n,e),e&&D(r),e&&D(o)}}}function Wb(e){let t,n,r,o;return{c(){t=$("p"),t.textContent="La vue actuelle du calendrier peut être partagée avec l'URL suivante :",n=A(),r=$("a"),o=I(e[0]),L(r,"id","share-url"),L(r,"class","svelte-1ii7jz3")},m(e,i){R(e,t,i),R(e,n,i),R(e,r,i),S(r,o)},p(e,t){1&t&&U(o,e[0])},d(e){e&&D(t),e&&D(n),e&&D(r)}}}function Ub(t){let n,r,o,i;return n=new gg({props:{name:"clipboard2-heart"}}),{c(){$e(n.$$.fragment),r=A(),o=$("span"),o.textContent="Copier",L(o,"class","ms-1")},m(e,t){Me(n,e,t),R(e,r,t),R(e,o,t),i=!0},p:e,i(e){i||(Ce(n.$$.fragment,e),i=!0)},o(e){ke(n.$$.fragment,e),i=!1},d(e){Ie(n,e),e&&D(r),e&&D(o)}}}function zb(e){let t,n,r,o,i,s,a;return n=new gg({props:{name:e[4],class:"fs-5"}}),o=new fg({props:{size:"sm",color:"primary",$$slots:{default:[Ub]},$$scope:{ctx:e}}}),o.$on("click",e[6]),{c(){t=$("span"),$e(n.$$.fragment),r=A(),$e(o.$$.fragment),L(t,"class","share-egg svelte-1ii7jz3"),L(t,"title","Partager en base64")},m(l,u){R(l,t,u),Me(n,t,null),R(l,r,u),Me(o,l,u),i=!0,s||(a=N(t,"click",e[7]),s=!0)},p(e,t){const r={};16&t&&(r.name=e[4]),n.$set(r);const i={};16384&t&&(i.$$scope={dirty:t,ctx:e}),o.$set(i)},i(e){i||(Ce(n.$$.fragment,e),Ce(o.$$.fragment,e),i=!0)},o(e){ke(n.$$.fragment,e),ke(o.$$.fragment,e),i=!1},d(e){e&&D(t),Ie(n),e&&D(r),Ie(o,e),s=!1,a()}}}function jb(e){let t,n,r,o,i,s;return t=new Ag({props:{toggle:e[5],$$slots:{default:[Hb]},$$scope:{ctx:e}}}),r=new Eg({props:{$$slots:{default:[Wb]},$$scope:{ctx:e}}}),i=new nv({props:{$$slots:{default:[zb]},$$scope:{ctx:e}}}),{c(){$e(t.$$.fragment),n=A(),$e(r.$$.fragment),o=A(),$e(i.$$.fragment)},m(e,a){Me(t,e,a),R(e,n,a),Me(r,e,a),R(e,o,a),Me(i,e,a),s=!0},p(e,n){const o={};16384&n&&(o.$$scope={dirty:n,ctx:e}),t.$set(o);const s={};16385&n&&(s.$$scope={dirty:n,ctx:e}),r.$set(s);const a={};16400&n&&(a.$$scope={dirty:n,ctx:e}),i.$set(a)},i(e){s||(Ce(t.$$.fragment,e),Ce(r.$$.fragment,e),Ce(i.$$.fragment,e),s=!0)},o(e){ke(t.$$.fragment,e),ke(r.$$.fragment,e),ke(i.$$.fragment,e),s=!1},d(e){Ie(t,e),e&&D(n),Ie(r,e),e&&D(o),Ie(i,e)}}}function Bb(e){let t,n,r,o,i,s,a,l,u,c;return n=new Qv({props:{autohide:!0,body:!0,isOpen:e[2],$$slots:{default:[Lb]},$$scope:{ctx:e}}}),n.$on("close",e[11]),i=new gg({props:{name:"share"}}),a=new Qg({props:{isOpen:e[1],toggle:e[5],centered:!0,scrollable:!0,$$slots:{default:[jb]},$$scope:{ctx:e}}}),{c(){t=$("div"),$e(n.$$.fragment),r=A(),o=$("span"),$e(i.$$.fragment),s=A(),$e(a.$$.fragment),L(t,"class","share-toast svelte-1ii7jz3"),L(o,"class","share-btn fs-4 no-print svelte-1ii7jz3"),L(o,"data-bs-toggle","tooltip"),L(o,"title","Partager")},m(d,f){R(d,t,f),Me(n,t,null),R(d,r,f),R(d,o,f),Me(i,o,null),R(d,s,f),Me(a,d,f),l=!0,u||(c=N(o,"click",e[5]),u=!0)},p(e,[t]){const r={};4&t&&(r.isOpen=e[2]),16392&t&&(r.$$scope={dirty:t,ctx:e}),n.$set(r);const o={};2&t&&(o.isOpen=e[1]),16401&t&&(o.$$scope={dirty:t,ctx:e}),a.$set(o)},i(e){l||(Ce(n.$$.fragment,e),Ce(i.$$.fragment,e),Ce(a.$$.fragment,e),l=!0)},o(e){ke(n.$$.fragment,e),ke(i.$$.fragment,e),ke(a.$$.fragment,e),l=!1},d(e){e&&D(t),Ie(n),e&&D(r),e&&D(o),Ie(i),e&&D(s),Ie(a,e),u=!1,c()}}}function Fb(e,t,n){let r,{calendar:o=null}=t,{selectedCalendars:i=[]}=t,s=document.URL,a=!1,l=!1,u=!1,c="";const d=()=>{const e=document.location,t=new URLSearchParams,r=o.getAPI();if(null!==o&&(t.append("v",r.view.type),(e=>{let t=[];return e.forEach((n=>{rb[n].some((t=>e.includes(t)))||t.push(n)})),t})(i).forEach((e=>t.append("c",e))),t.append("d",r.getDate().toISOString())),u){const r=window.btoa(t.toString());n(0,s=`${e.origin}${e.pathname}?b64=${r}`)}else n(0,s=`${e.origin}${e.pathname}?${t.toString()}`)};return e.$$set=e=>{"calendar"in e&&n(8,o=e.calendar),"selectedCalendars"in e&&n(9,i=e.selectedCalendars)},e.$$.update=()=>{1024&e.$$.dirty&&n(4,r=u?"code-square":"code")},[s,a,l,c,r,()=>{n(1,a=!a),d()},()=>{navigator.clipboard.writeText(s).then((()=>n(3,c="<b>Lien de partage copié dans le presse-papier.</b>"))).catch((()=>n(3,c="Erreur de copie automatique."))).finally(n(2,l=!0))},()=>{n(10,u=!u),d()},o,i,u,()=>n(2,l=!1)]}gn("");class qb extends Ne{constructor(e){super(),Oe(this,e,Fb,Bb,a,{calendar:8,selectedCalendars:9})}}gn("");function Vb(t){let n;return{c(){n=$("div"),L(n,"class","circle svelte-1vclic6"),z(n,"--size",t[0]+t[1]),z(n,"--colorInner",t[4]),z(n,"--colorCenter",t[3]),z(n,"--colorOuter",t[2]),z(n,"--durationInner",t[6]),z(n,"--durationCenter",t[7]),z(n,"--durationOuter",t[5])},m(e,t){R(e,n,t)},p(e,[t]){3&t&&z(n,"--size",e[0]+e[1]),16&t&&z(n,"--colorInner",e[4]),8&t&&z(n,"--colorCenter",e[3]),4&t&&z(n,"--colorOuter",e[2]),64&t&&z(n,"--durationInner",e[6]),128&t&&z(n,"--durationCenter",e[7]),32&t&&z(n,"--durationOuter",e[5])},i:e,o:e,d(e){e&&D(n)}}}function Yb(e,t,n){let{size:r="60"}=t,{unit:o="px"}=t,{colorOuter:i="#FF3E00"}=t,{colorCenter:s="#40B3FF"}=t,{colorInner:a="#676778"}=t,{durationMultiplier:l=1}=t,{durationOuter:u=2*l+"s"}=t,{durationInner:c=1.5*l+"s"}=t,{durationCenter:d=3*l+"s"}=t;return e.$$set=e=>{"size"in e&&n(0,r=e.size),"unit"in e&&n(1,o=e.unit),"colorOuter"in e&&n(2,i=e.colorOuter),"colorCenter"in e&&n(3,s=e.colorCenter),"colorInner"in e&&n(4,a=e.colorInner),"durationMultiplier"in e&&n(8,l=e.durationMultiplier),"durationOuter"in e&&n(5,u=e.durationOuter),"durationInner"in e&&n(6,c=e.durationInner),"durationCenter"in e&&n(7,d=e.durationCenter)},[r,o,i,s,a,u,c,d,l]}gn("");class Gb extends Ne{constructor(e){super(),Oe(this,e,Yb,Vb,a,{size:0,unit:1,colorOuter:2,colorCenter:3,colorInner:4,durationMultiplier:8,durationOuter:5,durationInner:6,durationCenter:7})}}gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");gn("");function Zb(e){let t,n,r,o;return r=new Gb({props:{colorOuter:"#e658ea",colorInner:"#eaac3f"}}),{c(){t=$("div"),n=$("div"),$e(r.$$.fragment),L(n,"class","position-absolute top-50 start-50"),L(t,"class","load-spinner svelte-1ba8hsm")},m(e,i){R(e,t,i),S(t,n),Me(r,n,null),o=!0},i(e){o||(Ce(r.$$.fragment,e),o=!0)},o(e){ke(r.$$.fragment,e),o=!1},d(e){e&&D(t),Ie(r)}}}function Kb(e){let t,n,r=e[0]&&Zb();return{c(){r&&r.c(),t=O()},m(e,o){r&&r.m(e,o),R(e,t,o),n=!0},p(e,[n]){e[0]?r?1&n&&Ce(r,1):(r=Zb(),r.c(),Ce(r,1),r.m(t.parentNode,t)):r&&(_e(),ke(r,1,1,(()=>{r=null})),we())},i(e){n||(Ce(r),n=!0)},o(e){ke(r),n=!1},d(e){r&&r.d(e),e&&D(t)}}}function Xb(e,t,n){let{isLoading:r=!1}=t;return e.$$set=e=>{"isLoading"in e&&n(0,r=e.isLoading)},[r]}gn("");class Jb extends Ne{constructor(e){super(),Oe(this,e,Xb,Kb,a,{isLoading:0})}}gn("");gn("");gn("");
|
||
/*!
|
||
FullCalendar v5.11.5
|
||
Docs & License: https://fullcalendar.io/
|
||
(c) 2022 Adam Shaw
|
||
*/
|
||
var Qb=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return We(t,e),t}(ts);Qb.prototype.classes={root:"fc-theme-bootstrap5",tableCellShaded:"fc-theme-bootstrap5-shaded",buttonGroup:"btn-group",button:"btn btn-primary",buttonActive:"active",popover:"popover",popoverHeader:"popover-header",popoverContent:"popover-body"},Qb.prototype.baseIconClass="bi",Qb.prototype.iconClasses={close:"bi-x-lg",prev:"bi-chevron-left",next:"bi-chevron-right",prevYear:"bi-chevron-double-left",nextYear:"bi-chevron-double-right"},Qb.prototype.rtlIconClasses={prev:"bi-chevron-right",next:"bi-chevron-left",prevYear:"bi-chevron-double-right",nextYear:"bi-chevron-double-left"},Qb.prototype.iconOverrideOption="buttonIcons",Qb.prototype.iconOverrideCustomButtonOption="icon",Qb.prototype.iconOverridePrefix="bi-";var e_=ds({themeClasses:{bootstrap5:Qb}}),t_="top",n_="bottom",r_="right",o_="left",i_="auto",s_=[t_,n_,r_,o_],a_="start",l_="end",u_="clippingParents",c_="viewport",d_="popper",f_="reference",p_=s_.reduce((function(e,t){return e.concat([t+"-"+a_,t+"-"+l_])}),[]),h_=[].concat(s_,[i_]).reduce((function(e,t){return e.concat([t,t+"-"+a_,t+"-"+l_])}),[]),g_="beforeRead",v_="read",m_="afterRead",y_="beforeMain",b_="main",__="afterMain",w_="beforeWrite",C_="write",k_="afterWrite",S_=[g_,v_,m_,y_,b_,__,w_,C_,k_];function E_(e){return e?(e.nodeName||"").toLowerCase():null}function x_(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function R_(e){return e instanceof x_(e).Element||e instanceof Element}function D_(e){return e instanceof x_(e).HTMLElement||e instanceof HTMLElement}function T_(e){return"undefined"!=typeof ShadowRoot&&(e instanceof x_(e).ShadowRoot||e instanceof ShadowRoot)}var $_={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];D_(o)&&E_(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});D_(r)&&E_(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function M_(e){return e.split("-")[0]}var I_=Math.max,A_=Math.min,O_=Math.round;function N_(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map((function(e){return e.brand+"/"+e.version})).join(" "):navigator.userAgent}function P_(){return!/^((?!chrome|android).)*safari/i.test(N_())}function L_(e,t,n){void 0===t&&(t=!1),void 0===n&&(n=!1);var r=e.getBoundingClientRect(),o=1,i=1;t&&D_(e)&&(o=e.offsetWidth>0&&O_(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&O_(r.height)/e.offsetHeight||1);var s=(R_(e)?x_(e):window).visualViewport,a=!P_()&&n,l=(r.left+(a&&s?s.offsetLeft:0))/o,u=(r.top+(a&&s?s.offsetTop:0))/i,c=r.width/o,d=r.height/i;return{width:c,height:d,top:u,right:l+c,bottom:u+d,left:l,x:l,y:u}}function H_(e){var t=L_(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function W_(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&T_(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function U_(e){return x_(e).getComputedStyle(e)}function z_(e){return["table","td","th"].indexOf(E_(e))>=0}function j_(e){return((R_(e)?e.ownerDocument:e.document)||window.document).documentElement}function B_(e){return"html"===E_(e)?e:e.assignedSlot||e.parentNode||(T_(e)?e.host:null)||j_(e)}function F_(e){return D_(e)&&"fixed"!==U_(e).position?e.offsetParent:null}function q_(e){for(var t=x_(e),n=F_(e);n&&z_(n)&&"static"===U_(n).position;)n=F_(n);return n&&("html"===E_(n)||"body"===E_(n)&&"static"===U_(n).position)?t:n||function(e){var t=/firefox/i.test(N_());if(/Trident/i.test(N_())&&D_(e)&&"fixed"===U_(e).position)return null;var n=B_(e);for(T_(n)&&(n=n.host);D_(n)&&["html","body"].indexOf(E_(n))<0;){var r=U_(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function V_(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Y_(e,t,n){return I_(e,A_(t,n))}function G_(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Z_(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var K_={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,s=n.modifiersData.popperOffsets,a=M_(n.placement),l=V_(a),u=[o_,r_].indexOf(a)>=0?"height":"width";if(i&&s){var c=function(e,t){return G_("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Z_(e,s_))}(o.padding,n),d=H_(i),f="y"===l?t_:o_,p="y"===l?n_:r_,h=n.rects.reference[u]+n.rects.reference[l]-s[l]-n.rects.popper[u],g=s[l]-n.rects.reference[l],v=q_(i),m=v?"y"===l?v.clientHeight||0:v.clientWidth||0:0,y=h/2-g/2,b=c[f],_=m-d[u]-c[p],w=m/2-d[u]/2+y,C=Y_(b,w,_),k=l;n.modifiersData[r]=((t={})[k]=C,t.centerOffset=C-w,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&W_(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function X_(e){return e.split("-")[1]}var J_={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Q_(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.variation,s=e.offsets,a=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,f=s.x,p=void 0===f?0:f,h=s.y,g=void 0===h?0:h,v="function"==typeof c?c({x:p,y:g}):{x:p,y:g};p=v.x,g=v.y;var m=s.hasOwnProperty("x"),y=s.hasOwnProperty("y"),b=o_,_=t_,w=window;if(u){var C=q_(n),k="clientHeight",S="clientWidth";if(C===x_(n)&&"static"!==U_(C=j_(n)).position&&"absolute"===a&&(k="scrollHeight",S="scrollWidth"),o===t_||(o===o_||o===r_)&&i===l_)_=n_,g-=(d&&C===w&&w.visualViewport?w.visualViewport.height:C[k])-r.height,g*=l?1:-1;if(o===o_||(o===t_||o===n_)&&i===l_)b=r_,p-=(d&&C===w&&w.visualViewport?w.visualViewport.width:C[S])-r.width,p*=l?1:-1}var E,x=Object.assign({position:a},u&&J_),R=!0===c?function(e,t){var n=e.x,r=e.y,o=t.devicePixelRatio||1;return{x:O_(n*o)/o||0,y:O_(r*o)/o||0}}({x:p,y:g},x_(n)):{x:p,y:g};return p=R.x,g=R.y,l?Object.assign({},x,((E={})[_]=y?"0":"",E[b]=m?"0":"",E.transform=(w.devicePixelRatio||1)<=1?"translate("+p+"px, "+g+"px)":"translate3d("+p+"px, "+g+"px, 0)",E)):Object.assign({},x,((t={})[_]=y?g+"px":"",t[b]=m?p+"px":"",t.transform="",t))}var ew={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,s=void 0===i||i,a=n.roundOffsets,l=void 0===a||a,u={placement:M_(t.placement),variation:X_(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Q_(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Q_(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},tw={passive:!0};var nw={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,s=r.resize,a=void 0===s||s,l=x_(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,tw)})),a&&l.addEventListener("resize",n.update,tw),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,tw)})),a&&l.removeEventListener("resize",n.update,tw)}},data:{}},rw={left:"right",right:"left",bottom:"top",top:"bottom"};function ow(e){return e.replace(/left|right|bottom|top/g,(function(e){return rw[e]}))}var iw={start:"end",end:"start"};function sw(e){return e.replace(/start|end/g,(function(e){return iw[e]}))}function aw(e){var t=x_(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function lw(e){return L_(j_(e)).left+aw(e).scrollLeft}function uw(e){var t=U_(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function cw(e){return["html","body","#document"].indexOf(E_(e))>=0?e.ownerDocument.body:D_(e)&&uw(e)?e:cw(B_(e))}function dw(e,t){var n;void 0===t&&(t=[]);var r=cw(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=x_(r),s=o?[i].concat(i.visualViewport||[],uw(r)?r:[]):r,a=t.concat(s);return o?a:a.concat(dw(B_(s)))}function fw(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function pw(e,t,n){return t===c_?fw(function(e,t){var n=x_(e),r=j_(e),o=n.visualViewport,i=r.clientWidth,s=r.clientHeight,a=0,l=0;if(o){i=o.width,s=o.height;var u=P_();(u||!u&&"fixed"===t)&&(a=o.offsetLeft,l=o.offsetTop)}return{width:i,height:s,x:a+lw(e),y:l}}(e,n)):R_(t)?function(e,t){var n=L_(e,!1,"fixed"===t);return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}(t,n):fw(function(e){var t,n=j_(e),r=aw(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=I_(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=I_(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-r.scrollLeft+lw(e),l=-r.scrollTop;return"rtl"===U_(o||n).direction&&(a+=I_(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:s,x:a,y:l}}(j_(e)))}function hw(e,t,n,r){var o="clippingParents"===t?function(e){var t=dw(B_(e)),n=["absolute","fixed"].indexOf(U_(e).position)>=0&&D_(e)?q_(e):e;return R_(n)?t.filter((function(e){return R_(e)&&W_(e,n)&&"body"!==E_(e)})):[]}(e):[].concat(t),i=[].concat(o,[n]),s=i[0],a=i.reduce((function(t,n){var o=pw(e,n,r);return t.top=I_(o.top,t.top),t.right=A_(o.right,t.right),t.bottom=A_(o.bottom,t.bottom),t.left=I_(o.left,t.left),t}),pw(e,s,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function gw(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?M_(o):null,s=o?X_(o):null,a=n.x+n.width/2-r.width/2,l=n.y+n.height/2-r.height/2;switch(i){case t_:t={x:a,y:n.y-r.height};break;case n_:t={x:a,y:n.y+n.height};break;case r_:t={x:n.x+n.width,y:l};break;case o_:t={x:n.x-r.width,y:l};break;default:t={x:n.x,y:n.y}}var u=i?V_(i):null;if(null!=u){var c="y"===u?"height":"width";switch(s){case a_:t[u]=t[u]-(n[c]/2-r[c]/2);break;case l_:t[u]=t[u]+(n[c]/2-r[c]/2)}}return t}function vw(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.strategy,s=void 0===i?e.strategy:i,a=n.boundary,l=void 0===a?u_:a,u=n.rootBoundary,c=void 0===u?c_:u,d=n.elementContext,f=void 0===d?d_:d,p=n.altBoundary,h=void 0!==p&&p,g=n.padding,v=void 0===g?0:g,m=G_("number"!=typeof v?v:Z_(v,s_)),y=f===d_?f_:d_,b=e.rects.popper,_=e.elements[h?y:f],w=hw(R_(_)?_:_.contextElement||j_(e.elements.popper),l,c,s),C=L_(e.elements.reference),k=gw({reference:C,element:b,strategy:"absolute",placement:o}),S=fw(Object.assign({},b,k)),E=f===d_?S:C,x={top:w.top-E.top+m.top,bottom:E.bottom-w.bottom+m.bottom,left:w.left-E.left+m.left,right:E.right-w.right+m.right},R=e.modifiersData.offset;if(f===d_&&R){var D=R[o];Object.keys(x).forEach((function(e){var t=[r_,n_].indexOf(e)>=0?1:-1,n=[t_,n_].indexOf(e)>=0?"y":"x";x[e]+=D[n]*t}))}return x}function mw(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,s=n.padding,a=n.flipVariations,l=n.allowedAutoPlacements,u=void 0===l?h_:l,c=X_(r),d=c?a?p_:p_.filter((function(e){return X_(e)===c})):s_,f=d.filter((function(e){return u.indexOf(e)>=0}));0===f.length&&(f=d);var p=f.reduce((function(t,n){return t[n]=vw(e,{placement:n,boundary:o,rootBoundary:i,padding:s})[M_(n)],t}),{});return Object.keys(p).sort((function(e,t){return p[e]-p[t]}))}var yw={name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0===s||s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,g=n.allowedAutoPlacements,v=t.options.placement,m=M_(v),y=l||(m===v||!h?[ow(v)]:function(e){if(M_(e)===i_)return[];var t=ow(e);return[sw(e),t,sw(t)]}(v)),b=[v].concat(y).reduce((function(e,n){return e.concat(M_(n)===i_?mw(t,{placement:n,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:g}):n)}),[]),_=t.rects.reference,w=t.rects.popper,C=new Map,k=!0,S=b[0],E=0;E<b.length;E++){var x=b[E],R=M_(x),D=X_(x)===a_,T=[t_,n_].indexOf(R)>=0,$=T?"width":"height",M=vw(t,{placement:x,boundary:c,rootBoundary:d,altBoundary:f,padding:u}),I=T?D?r_:o_:D?n_:t_;_[$]>w[$]&&(I=ow(I));var A=ow(I),O=[];if(i&&O.push(M[R]<=0),a&&O.push(M[I]<=0,M[A]<=0),O.every((function(e){return e}))){S=x,k=!1;break}C.set(x,O)}if(k)for(var N=function(e){var t=b.find((function(t){var n=C.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return S=t,"break"},P=h?3:1;P>0;P--){if("break"===N(P))break}t.placement!==S&&(t.modifiersData[r]._skip=!0,t.placement=S,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}};function bw(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function _w(e){return[t_,r_,n_,o_].some((function(t){return e[t]>=0}))}var ww={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,s=vw(t,{elementContext:"reference"}),a=vw(t,{altBoundary:!0}),l=bw(s,r),u=bw(a,o,i),c=_w(l),d=_w(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}};var Cw={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,s=h_.reduce((function(e,n){return e[n]=function(e,t,n){var r=M_(e),o=[o_,t_].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,s=i[0],a=i[1];return s=s||0,a=(a||0)*o,[o_,r_].indexOf(r)>=0?{x:a,y:s}:{x:s,y:a}}(n,t.rects,i),e}),{}),a=s[t.placement],l=a.x,u=a.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}};var kw={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=gw({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}};var Sw={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,g=void 0===h?0:h,v=vw(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),m=M_(t.placement),y=X_(t.placement),b=!y,_=V_(m),w="x"===_?"y":"x",C=t.modifiersData.popperOffsets,k=t.rects.reference,S=t.rects.popper,E="function"==typeof g?g(Object.assign({},t.rects,{placement:t.placement})):g,x="number"==typeof E?{mainAxis:E,altAxis:E}:Object.assign({mainAxis:0,altAxis:0},E),R=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,D={x:0,y:0};if(C){if(i){var T,$="y"===_?t_:o_,M="y"===_?n_:r_,I="y"===_?"height":"width",A=C[_],O=A+v[$],N=A-v[M],P=p?-S[I]/2:0,L=y===a_?k[I]:S[I],H=y===a_?-S[I]:-k[I],W=t.elements.arrow,U=p&&W?H_(W):{width:0,height:0},z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},j=z[$],B=z[M],F=Y_(0,k[I],U[I]),q=b?k[I]/2-P-F-j-x.mainAxis:L-F-j-x.mainAxis,V=b?-k[I]/2+P+F+B+x.mainAxis:H+F+B+x.mainAxis,Y=t.elements.arrow&&q_(t.elements.arrow),G=Y?"y"===_?Y.clientTop||0:Y.clientLeft||0:0,Z=null!=(T=null==R?void 0:R[_])?T:0,K=A+V-Z,X=Y_(p?A_(O,A+q-Z-G):O,A,p?I_(N,K):N);C[_]=X,D[_]=X-A}if(a){var J,Q="x"===_?t_:o_,ee="x"===_?n_:r_,te=C[w],ne="y"===w?"height":"width",re=te+v[Q],oe=te-v[ee],ie=-1!==[t_,o_].indexOf(m),se=null!=(J=null==R?void 0:R[w])?J:0,ae=ie?re:te-k[ne]-S[ne]-se+x.altAxis,le=ie?te+k[ne]+S[ne]-se-x.altAxis:oe,ue=p&&ie?function(e,t,n){var r=Y_(e,t,n);return r>n?n:r}(ae,te,le):Y_(p?ae:re,te,p?le:oe);C[w]=ue,D[w]=ue-te}t.modifiersData[r]=D}},requiresIfExists:["offset"]};function Ew(e,t,n){void 0===n&&(n=!1);var r,o=D_(t),i=D_(t)&&function(e){var t=e.getBoundingClientRect(),n=O_(t.width)/e.offsetWidth||1,r=O_(t.height)/e.offsetHeight||1;return 1!==n||1!==r}(t),s=j_(t),a=L_(e,i,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(o||!o&&!n)&&(("body"!==E_(t)||uw(s))&&(l=(r=t)!==x_(r)&&D_(r)?function(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}(r):aw(r)),D_(t)?((u=L_(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=lw(s))),{x:a.left+l.scrollLeft-u.x,y:a.top+l.scrollTop-u.y,width:a.width,height:a.height}}function xw(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}function Rw(e){var t;return function(){return t||(t=new Promise((function(n){Promise.resolve().then((function(){t=void 0,n(e())}))}))),t}}var Dw={placement:"bottom",modifiers:[],strategy:"absolute"};function Tw(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function $w(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?Dw:o;return function(e,t,n){void 0===n&&(n=i);var o={placement:"bottom",orderedModifiers:[],options:Object.assign({},Dw,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},s=[],a=!1,l={state:o,setOptions:function(n){var a="function"==typeof n?n(o.options):n;u(),o.options=Object.assign({},i,o.options,a),o.scrollParents={reference:R_(e)?dw(e):e.contextElement?dw(e.contextElement):[],popper:dw(t)};var c,d,f=function(e){var t=xw(e);return S_.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((c=[].concat(r,o.options.modifiers),d=c.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(d).map((function(e){return d[e]}))));return o.orderedModifiers=f.filter((function(e){return e.enabled})),o.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,i=e.effect;if("function"==typeof i){var a=i({state:o,name:t,instance:l,options:r}),u=function(){};s.push(a||u)}})),l.update()},forceUpdate:function(){if(!a){var e=o.elements,t=e.reference,n=e.popper;if(Tw(t,n)){o.rects={reference:Ew(t,q_(n),"fixed"===o.options.strategy),popper:H_(n)},o.reset=!1,o.placement=o.options.placement,o.orderedModifiers.forEach((function(e){return o.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<o.orderedModifiers.length;r++)if(!0!==o.reset){var i=o.orderedModifiers[r],s=i.fn,u=i.options,c=void 0===u?{}:u,d=i.name;"function"==typeof s&&(o=s({state:o,options:c,name:d,instance:l})||o)}else o.reset=!1,r=-1}}},update:Rw((function(){return new Promise((function(e){l.forceUpdate(),e(o)}))})),destroy:function(){u(),a=!0}};if(!Tw(e,t))return l;function u(){s.forEach((function(e){return e()})),s=[]}return l.setOptions(n).then((function(e){!a&&n.onFirstUpdate&&n.onFirstUpdate(e)})),l}}var Mw=$w(),Iw=$w({defaultModifiers:[nw,kw,ew,$_]}),Aw=$w({defaultModifiers:[nw,kw,ew,$_,Cw,yw,Sw,K_,ww]}),Ow=Object.freeze({__proto__:null,popperGenerator:$w,detectOverflow:vw,createPopperBase:Mw,createPopper:Aw,createPopperLite:Iw,top:t_,bottom:n_,right:r_,left:o_,auto:i_,basePlacements:s_,start:a_,end:l_,clippingParents:u_,viewport:c_,popper:d_,reference:f_,variationPlacements:p_,placements:h_,beforeRead:g_,read:v_,afterRead:m_,beforeMain:y_,main:b_,afterMain:__,beforeWrite:w_,write:C_,afterWrite:k_,modifierPhases:S_,applyStyles:$_,arrow:K_,computeStyles:ew,eventListeners:nw,flip:yw,hide:ww,offset:Cw,popperOffsets:kw,preventOverflow:Sw});
|
||
/*!
|
||
* Bootstrap v5.3.0 (https://getbootstrap.com/)
|
||
* Copyright 2011-2023 The Bootstrap Authors (https://github.com/twbs/bootstrap/graphs/contributors)
|
||
* Licensed under MIT (https://github.com/twbs/bootstrap/blob/main/LICENSE)
|
||
*/
|
||
const Nw=new Map,Pw={set(e,t,n){Nw.has(e)||Nw.set(e,new Map);const r=Nw.get(e);r.has(t)||0===r.size?r.set(t,n):console.error(`Bootstrap doesn't allow more than one instance per element. Bound instance: ${Array.from(r.keys())[0]}.`)},get:(e,t)=>Nw.has(e)&&Nw.get(e).get(t)||null,remove(e,t){if(!Nw.has(e))return;const n=Nw.get(e);n.delete(t),0===n.size&&Nw.delete(e)}},Lw="transitionend",Hw=e=>(e&&window.CSS&&window.CSS.escape&&(e=e.replace(/#([^\s"#']+)/g,((e,t)=>`#${CSS.escape(t)}`))),e),Ww=e=>{e.dispatchEvent(new Event(Lw))},Uw=e=>!(!e||"object"!=typeof e)&&(void 0!==e.jquery&&(e=e[0]),void 0!==e.nodeType),zw=e=>Uw(e)?e.jquery?e[0]:e:"string"==typeof e&&e.length>0?document.querySelector(Hw(e)):null,jw=e=>{if(!Uw(e)||0===e.getClientRects().length)return!1;const t="visible"===getComputedStyle(e).getPropertyValue("visibility"),n=e.closest("details:not([open])");if(!n)return t;if(n!==e){const t=e.closest("summary");if(t&&t.parentNode!==n)return!1;if(null===t)return!1}return t},Bw=e=>!e||e.nodeType!==Node.ELEMENT_NODE||(!!e.classList.contains("disabled")||(void 0!==e.disabled?e.disabled:e.hasAttribute("disabled")&&"false"!==e.getAttribute("disabled"))),Fw=e=>{if(!document.documentElement.attachShadow)return null;if("function"==typeof e.getRootNode){const t=e.getRootNode();return t instanceof ShadowRoot?t:null}return e instanceof ShadowRoot?e:e.parentNode?Fw(e.parentNode):null},qw=()=>{},Vw=e=>{e.offsetHeight},Yw=()=>window.jQuery&&!document.body.hasAttribute("data-bs-no-jquery")?window.jQuery:null,Gw=[],Zw=()=>"rtl"===document.documentElement.dir,Kw=e=>{var t;t=()=>{const t=Yw();if(t){const n=e.NAME,r=t.fn[n];t.fn[n]=e.jQueryInterface,t.fn[n].Constructor=e,t.fn[n].noConflict=()=>(t.fn[n]=r,e.jQueryInterface)}},"loading"===document.readyState?(Gw.length||document.addEventListener("DOMContentLoaded",(()=>{for(const e of Gw)e()})),Gw.push(t)):t()},Xw=(e,t=[],n=e)=>"function"==typeof e?e(...t):n,Jw=(e,t,n=!0)=>{if(!n)return void Xw(e);const r=(e=>{if(!e)return 0;let{transitionDuration:t,transitionDelay:n}=window.getComputedStyle(e);const r=Number.parseFloat(t),o=Number.parseFloat(n);return r||o?(t=t.split(",")[0],n=n.split(",")[0],1e3*(Number.parseFloat(t)+Number.parseFloat(n))):0})(t)+5;let o=!1;const i=({target:n})=>{n===t&&(o=!0,t.removeEventListener(Lw,i),Xw(e))};t.addEventListener(Lw,i),setTimeout((()=>{o||Ww(t)}),r)},Qw=(e,t,n,r)=>{const o=e.length;let i=e.indexOf(t);return-1===i?!n&&r?e[o-1]:e[0]:(i+=n?1:-1,r&&(i=(i+o)%o),e[Math.max(0,Math.min(i,o-1))])},eC=/[^.]*(?=\..*)\.|.*/,tC=/\..*/,nC=/::\d+$/,rC={};let oC=1;const iC={mouseenter:"mouseover",mouseleave:"mouseout"},sC=new Set(["click","dblclick","mouseup","mousedown","contextmenu","mousewheel","DOMMouseScroll","mouseover","mouseout","mousemove","selectstart","selectend","keydown","keypress","keyup","orientationchange","touchstart","touchmove","touchend","touchcancel","pointerdown","pointermove","pointerup","pointerleave","pointercancel","gesturestart","gesturechange","gestureend","focus","blur","change","reset","select","submit","focusin","focusout","load","unload","beforeunload","resize","move","DOMContentLoaded","readystatechange","error","abort","scroll"]);function aC(e,t){return t&&`${t}::${oC++}`||e.uidEvent||oC++}function lC(e){const t=aC(e);return e.uidEvent=t,rC[t]=rC[t]||{},rC[t]}function uC(e,t,n=null){return Object.values(e).find((e=>e.callable===t&&e.delegationSelector===n))}function cC(e,t,n){const r="string"==typeof t,o=r?n:t||n;let i=hC(e);return sC.has(i)||(i=e),[r,o,i]}function dC(e,t,n,r,o){if("string"!=typeof t||!e)return;let[i,s,a]=cC(t,n,r);if(t in iC){const e=e=>function(t){if(!t.relatedTarget||t.relatedTarget!==t.delegateTarget&&!t.delegateTarget.contains(t.relatedTarget))return e.call(this,t)};s=e(s)}const l=lC(e),u=l[a]||(l[a]={}),c=uC(u,s,i?n:null);if(c)return void(c.oneOff=c.oneOff&&o);const d=aC(s,t.replace(eC,"")),f=i?function(e,t,n){return function r(o){const i=e.querySelectorAll(t);for(let{target:s}=o;s&&s!==this;s=s.parentNode)for(const a of i)if(a===s)return vC(o,{delegateTarget:s}),r.oneOff&&gC.off(e,o.type,t,n),n.apply(s,[o])}}(e,n,s):function(e,t){return function n(r){return vC(r,{delegateTarget:e}),n.oneOff&&gC.off(e,r.type,t),t.apply(e,[r])}}(e,s);f.delegationSelector=i?n:null,f.callable=s,f.oneOff=o,f.uidEvent=d,u[d]=f,e.addEventListener(a,f,i)}function fC(e,t,n,r,o){const i=uC(t[n],r,o);i&&(e.removeEventListener(n,i,Boolean(o)),delete t[n][i.uidEvent])}function pC(e,t,n,r){const o=t[n]||{};for(const[i,s]of Object.entries(o))i.includes(r)&&fC(e,t,n,s.callable,s.delegationSelector)}function hC(e){return e=e.replace(tC,""),iC[e]||e}const gC={on(e,t,n,r){dC(e,t,n,r,!1)},one(e,t,n,r){dC(e,t,n,r,!0)},off(e,t,n,r){if("string"!=typeof t||!e)return;const[o,i,s]=cC(t,n,r),a=s!==t,l=lC(e),u=l[s]||{},c=t.startsWith(".");if(void 0===i){if(c)for(const n of Object.keys(l))pC(e,l,n,t.slice(1));for(const[n,r]of Object.entries(u)){const o=n.replace(nC,"");a&&!t.includes(o)||fC(e,l,s,r.callable,r.delegationSelector)}}else{if(!Object.keys(u).length)return;fC(e,l,s,i,o?n:null)}},trigger(e,t,n){if("string"!=typeof t||!e)return null;const r=Yw();let o=null,i=!0,s=!0,a=!1;t!==hC(t)&&r&&(o=r.Event(t,n),r(e).trigger(o),i=!o.isPropagationStopped(),s=!o.isImmediatePropagationStopped(),a=o.isDefaultPrevented());const l=vC(new Event(t,{bubbles:i,cancelable:!0}),n);return a&&l.preventDefault(),s&&e.dispatchEvent(l),l.defaultPrevented&&o&&o.preventDefault(),l}};function vC(e,t={}){for(const[n,r]of Object.entries(t))try{e[n]=r}catch(t){Object.defineProperty(e,n,{configurable:!0,get:()=>r})}return e}function mC(e){if("true"===e)return!0;if("false"===e)return!1;if(e===Number(e).toString())return Number(e);if(""===e||"null"===e)return null;if("string"!=typeof e)return e;try{return JSON.parse(decodeURIComponent(e))}catch(t){return e}}function yC(e){return e.replace(/[A-Z]/g,(e=>`-${e.toLowerCase()}`))}const bC={setDataAttribute(e,t,n){e.setAttribute(`data-bs-${yC(t)}`,n)},removeDataAttribute(e,t){e.removeAttribute(`data-bs-${yC(t)}`)},getDataAttributes(e){if(!e)return{};const t={},n=Object.keys(e.dataset).filter((e=>e.startsWith("bs")&&!e.startsWith("bsConfig")));for(const r of n){let n=r.replace(/^bs/,"");n=n.charAt(0).toLowerCase()+n.slice(1,n.length),t[n]=mC(e.dataset[r])}return t},getDataAttribute:(e,t)=>mC(e.getAttribute(`data-bs-${yC(t)}`))};class _C{static get Default(){return{}}static get DefaultType(){return{}}static get NAME(){throw new Error('You have to implement the static method "NAME", for each component!')}_getConfig(e){return e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e}_mergeConfigObj(e,t){const n=Uw(t)?bC.getDataAttribute(t,"config"):{};return{...this.constructor.Default,..."object"==typeof n?n:{},...Uw(t)?bC.getDataAttributes(t):{},..."object"==typeof e?e:{}}}_typeCheckConfig(e,t=this.constructor.DefaultType){for(const[r,o]of Object.entries(t)){const t=e[r],i=Uw(t)?"element":null==(n=t)?`${n}`:Object.prototype.toString.call(n).match(/\s([a-z]+)/i)[1].toLowerCase();if(!new RegExp(o).test(i))throw new TypeError(`${this.constructor.NAME.toUpperCase()}: Option "${r}" provided type "${i}" but expected type "${o}".`)}var n}}class wC extends _C{constructor(e,t){super(),(e=zw(e))&&(this._element=e,this._config=this._getConfig(t),Pw.set(this._element,this.constructor.DATA_KEY,this))}dispose(){Pw.remove(this._element,this.constructor.DATA_KEY),gC.off(this._element,this.constructor.EVENT_KEY);for(const e of Object.getOwnPropertyNames(this))this[e]=null}_queueCallback(e,t,n=!0){Jw(e,t,n)}_getConfig(e){return e=this._mergeConfigObj(e,this._element),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}static getInstance(e){return Pw.get(zw(e),this.DATA_KEY)}static getOrCreateInstance(e,t={}){return this.getInstance(e)||new this(e,"object"==typeof t?t:null)}static get VERSION(){return"5.3.0"}static get DATA_KEY(){return`bs.${this.NAME}`}static get EVENT_KEY(){return`.${this.DATA_KEY}`}static eventName(e){return`${e}${this.EVENT_KEY}`}}const CC=e=>{let t=e.getAttribute("data-bs-target");if(!t||"#"===t){let n=e.getAttribute("href");if(!n||!n.includes("#")&&!n.startsWith("."))return null;n.includes("#")&&!n.startsWith("#")&&(n=`#${n.split("#")[1]}`),t=n&&"#"!==n?n.trim():null}return Hw(t)},kC={find:(e,t=document.documentElement)=>[].concat(...Element.prototype.querySelectorAll.call(t,e)),findOne:(e,t=document.documentElement)=>Element.prototype.querySelector.call(t,e),children:(e,t)=>[].concat(...e.children).filter((e=>e.matches(t))),parents(e,t){const n=[];let r=e.parentNode.closest(t);for(;r;)n.push(r),r=r.parentNode.closest(t);return n},prev(e,t){let n=e.previousElementSibling;for(;n;){if(n.matches(t))return[n];n=n.previousElementSibling}return[]},next(e,t){let n=e.nextElementSibling;for(;n;){if(n.matches(t))return[n];n=n.nextElementSibling}return[]},focusableChildren(e){const t=["a","button","input","textarea","select","details","[tabindex]",'[contenteditable="true"]'].map((e=>`${e}:not([tabindex^="-"])`)).join(",");return this.find(t,e).filter((e=>!Bw(e)&&jw(e)))},getSelectorFromElement(e){const t=CC(e);return t&&kC.findOne(t)?t:null},getElementFromSelector(e){const t=CC(e);return t?kC.findOne(t):null},getMultipleElementsFromSelector(e){const t=CC(e);return t?kC.find(t):[]}},SC=(e,t="hide")=>{const n=`click.dismiss${e.EVENT_KEY}`,r=e.NAME;gC.on(document,n,`[data-bs-dismiss="${r}"]`,(function(n){if(["A","AREA"].includes(this.tagName)&&n.preventDefault(),Bw(this))return;const o=kC.getElementFromSelector(this)||this.closest(`.${r}`);e.getOrCreateInstance(o)[t]()}))},EC=".bs.alert",xC=`close${EC}`,RC=`closed${EC}`;class DC extends wC{static get NAME(){return"alert"}close(){if(gC.trigger(this._element,xC).defaultPrevented)return;this._element.classList.remove("show");const e=this._element.classList.contains("fade");this._queueCallback((()=>this._destroyElement()),this._element,e)}_destroyElement(){this._element.remove(),gC.trigger(this._element,RC),this.dispose()}static jQueryInterface(e){return this.each((function(){const t=DC.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}SC(DC,"close"),Kw(DC);const TC='[data-bs-toggle="button"]';class $C extends wC{static get NAME(){return"button"}toggle(){this._element.setAttribute("aria-pressed",this._element.classList.toggle("active"))}static jQueryInterface(e){return this.each((function(){const t=$C.getOrCreateInstance(this);"toggle"===e&&t[e]()}))}}gC.on(document,"click.bs.button.data-api",TC,(e=>{e.preventDefault();const t=e.target.closest(TC);$C.getOrCreateInstance(t).toggle()})),Kw($C);const MC=".bs.swipe",IC=`touchstart${MC}`,AC=`touchmove${MC}`,OC=`touchend${MC}`,NC=`pointerdown${MC}`,PC=`pointerup${MC}`,LC={endCallback:null,leftCallback:null,rightCallback:null},HC={endCallback:"(function|null)",leftCallback:"(function|null)",rightCallback:"(function|null)"};class WC extends _C{constructor(e,t){super(),this._element=e,e&&WC.isSupported()&&(this._config=this._getConfig(t),this._deltaX=0,this._supportPointerEvents=Boolean(window.PointerEvent),this._initEvents())}static get Default(){return LC}static get DefaultType(){return HC}static get NAME(){return"swipe"}dispose(){gC.off(this._element,MC)}_start(e){this._supportPointerEvents?this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX):this._deltaX=e.touches[0].clientX}_end(e){this._eventIsPointerPenTouch(e)&&(this._deltaX=e.clientX-this._deltaX),this._handleSwipe(),Xw(this._config.endCallback)}_move(e){this._deltaX=e.touches&&e.touches.length>1?0:e.touches[0].clientX-this._deltaX}_handleSwipe(){const e=Math.abs(this._deltaX);if(e<=40)return;const t=e/this._deltaX;this._deltaX=0,t&&Xw(t>0?this._config.rightCallback:this._config.leftCallback)}_initEvents(){this._supportPointerEvents?(gC.on(this._element,NC,(e=>this._start(e))),gC.on(this._element,PC,(e=>this._end(e))),this._element.classList.add("pointer-event")):(gC.on(this._element,IC,(e=>this._start(e))),gC.on(this._element,AC,(e=>this._move(e))),gC.on(this._element,OC,(e=>this._end(e))))}_eventIsPointerPenTouch(e){return this._supportPointerEvents&&("pen"===e.pointerType||"touch"===e.pointerType)}static isSupported(){return"ontouchstart"in document.documentElement||navigator.maxTouchPoints>0}}const UC=".bs.carousel",zC=".data-api",jC="next",BC="prev",FC="left",qC="right",VC=`slide${UC}`,YC=`slid${UC}`,GC=`keydown${UC}`,ZC=`mouseenter${UC}`,KC=`mouseleave${UC}`,XC=`dragstart${UC}`,JC=`load${UC}${zC}`,QC=`click${UC}${zC}`,ek="carousel",tk="active",nk=".active",rk=".carousel-item",ok=nk+rk,ik={ArrowLeft:qC,ArrowRight:FC},sk={interval:5e3,keyboard:!0,pause:"hover",ride:!1,touch:!0,wrap:!0},ak={interval:"(number|boolean)",keyboard:"boolean",pause:"(string|boolean)",ride:"(boolean|string)",touch:"boolean",wrap:"boolean"};class lk extends wC{constructor(e,t){super(e,t),this._interval=null,this._activeElement=null,this._isSliding=!1,this.touchTimeout=null,this._swipeHelper=null,this._indicatorsElement=kC.findOne(".carousel-indicators",this._element),this._addEventListeners(),this._config.ride===ek&&this.cycle()}static get Default(){return sk}static get DefaultType(){return ak}static get NAME(){return"carousel"}next(){this._slide(jC)}nextWhenVisible(){!document.hidden&&jw(this._element)&&this.next()}prev(){this._slide(BC)}pause(){this._isSliding&&Ww(this._element),this._clearInterval()}cycle(){this._clearInterval(),this._updateInterval(),this._interval=setInterval((()=>this.nextWhenVisible()),this._config.interval)}_maybeEnableCycle(){this._config.ride&&(this._isSliding?gC.one(this._element,YC,(()=>this.cycle())):this.cycle())}to(e){const t=this._getItems();if(e>t.length-1||e<0)return;if(this._isSliding)return void gC.one(this._element,YC,(()=>this.to(e)));const n=this._getItemIndex(this._getActive());if(n===e)return;const r=e>n?jC:BC;this._slide(r,t[e])}dispose(){this._swipeHelper&&this._swipeHelper.dispose(),super.dispose()}_configAfterMerge(e){return e.defaultInterval=e.interval,e}_addEventListeners(){this._config.keyboard&&gC.on(this._element,GC,(e=>this._keydown(e))),"hover"===this._config.pause&&(gC.on(this._element,ZC,(()=>this.pause())),gC.on(this._element,KC,(()=>this._maybeEnableCycle()))),this._config.touch&&WC.isSupported()&&this._addTouchEventListeners()}_addTouchEventListeners(){for(const e of kC.find(".carousel-item img",this._element))gC.on(e,XC,(e=>e.preventDefault()));const e={leftCallback:()=>this._slide(this._directionToOrder(FC)),rightCallback:()=>this._slide(this._directionToOrder(qC)),endCallback:()=>{"hover"===this._config.pause&&(this.pause(),this.touchTimeout&&clearTimeout(this.touchTimeout),this.touchTimeout=setTimeout((()=>this._maybeEnableCycle()),500+this._config.interval))}};this._swipeHelper=new WC(this._element,e)}_keydown(e){if(/input|textarea/i.test(e.target.tagName))return;const t=ik[e.key];t&&(e.preventDefault(),this._slide(this._directionToOrder(t)))}_getItemIndex(e){return this._getItems().indexOf(e)}_setActiveIndicatorElement(e){if(!this._indicatorsElement)return;const t=kC.findOne(nk,this._indicatorsElement);t.classList.remove(tk),t.removeAttribute("aria-current");const n=kC.findOne(`[data-bs-slide-to="${e}"]`,this._indicatorsElement);n&&(n.classList.add(tk),n.setAttribute("aria-current","true"))}_updateInterval(){const e=this._activeElement||this._getActive();if(!e)return;const t=Number.parseInt(e.getAttribute("data-bs-interval"),10);this._config.interval=t||this._config.defaultInterval}_slide(e,t=null){if(this._isSliding)return;const n=this._getActive(),r=e===jC,o=t||Qw(this._getItems(),n,r,this._config.wrap);if(o===n)return;const i=this._getItemIndex(o),s=t=>gC.trigger(this._element,t,{relatedTarget:o,direction:this._orderToDirection(e),from:this._getItemIndex(n),to:i});if(s(VC).defaultPrevented)return;if(!n||!o)return;const a=Boolean(this._interval);this.pause(),this._isSliding=!0,this._setActiveIndicatorElement(i),this._activeElement=o;const l=r?"carousel-item-start":"carousel-item-end",u=r?"carousel-item-next":"carousel-item-prev";o.classList.add(u),Vw(o),n.classList.add(l),o.classList.add(l);this._queueCallback((()=>{o.classList.remove(l,u),o.classList.add(tk),n.classList.remove(tk,u,l),this._isSliding=!1,s(YC)}),n,this._isAnimated()),a&&this.cycle()}_isAnimated(){return this._element.classList.contains("slide")}_getActive(){return kC.findOne(ok,this._element)}_getItems(){return kC.find(rk,this._element)}_clearInterval(){this._interval&&(clearInterval(this._interval),this._interval=null)}_directionToOrder(e){return Zw()?e===FC?BC:jC:e===FC?jC:BC}_orderToDirection(e){return Zw()?e===BC?FC:qC:e===BC?qC:FC}static jQueryInterface(e){return this.each((function(){const t=lk.getOrCreateInstance(this,e);if("number"!=typeof e){if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}else t.to(e)}))}}gC.on(document,QC,"[data-bs-slide], [data-bs-slide-to]",(function(e){const t=kC.getElementFromSelector(this);if(!t||!t.classList.contains(ek))return;e.preventDefault();const n=lk.getOrCreateInstance(t),r=this.getAttribute("data-bs-slide-to");return r?(n.to(r),void n._maybeEnableCycle()):"next"===bC.getDataAttribute(this,"slide")?(n.next(),void n._maybeEnableCycle()):(n.prev(),void n._maybeEnableCycle())})),gC.on(window,JC,(()=>{const e=kC.find('[data-bs-ride="carousel"]');for(const t of e)lk.getOrCreateInstance(t)})),Kw(lk);const uk=".bs.collapse",ck=`show${uk}`,dk=`shown${uk}`,fk=`hide${uk}`,pk=`hidden${uk}`,hk=`click${uk}.data-api`,gk="show",vk="collapse",mk="collapsing",yk=`:scope .${vk} .${vk}`,bk='[data-bs-toggle="collapse"]',_k={parent:null,toggle:!0},wk={parent:"(null|element)",toggle:"boolean"};class Ck extends wC{constructor(e,t){super(e,t),this._isTransitioning=!1,this._triggerArray=[];const n=kC.find(bk);for(const e of n){const t=kC.getSelectorFromElement(e),n=kC.find(t).filter((e=>e===this._element));null!==t&&n.length&&this._triggerArray.push(e)}this._initializeChildren(),this._config.parent||this._addAriaAndCollapsedClass(this._triggerArray,this._isShown()),this._config.toggle&&this.toggle()}static get Default(){return _k}static get DefaultType(){return wk}static get NAME(){return"collapse"}toggle(){this._isShown()?this.hide():this.show()}show(){if(this._isTransitioning||this._isShown())return;let e=[];if(this._config.parent&&(e=this._getFirstLevelChildren(".collapse.show, .collapse.collapsing").filter((e=>e!==this._element)).map((e=>Ck.getOrCreateInstance(e,{toggle:!1})))),e.length&&e[0]._isTransitioning)return;if(gC.trigger(this._element,ck).defaultPrevented)return;for(const t of e)t.hide();const t=this._getDimension();this._element.classList.remove(vk),this._element.classList.add(mk),this._element.style[t]=0,this._addAriaAndCollapsedClass(this._triggerArray,!0),this._isTransitioning=!0;const n=`scroll${t[0].toUpperCase()+t.slice(1)}`;this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(mk),this._element.classList.add(vk,gk),this._element.style[t]="",gC.trigger(this._element,dk)}),this._element,!0),this._element.style[t]=`${this._element[n]}px`}hide(){if(this._isTransitioning||!this._isShown())return;if(gC.trigger(this._element,fk).defaultPrevented)return;const e=this._getDimension();this._element.style[e]=`${this._element.getBoundingClientRect()[e]}px`,Vw(this._element),this._element.classList.add(mk),this._element.classList.remove(vk,gk);for(const e of this._triggerArray){const t=kC.getElementFromSelector(e);t&&!this._isShown(t)&&this._addAriaAndCollapsedClass([e],!1)}this._isTransitioning=!0;this._element.style[e]="",this._queueCallback((()=>{this._isTransitioning=!1,this._element.classList.remove(mk),this._element.classList.add(vk),gC.trigger(this._element,pk)}),this._element,!0)}_isShown(e=this._element){return e.classList.contains(gk)}_configAfterMerge(e){return e.toggle=Boolean(e.toggle),e.parent=zw(e.parent),e}_getDimension(){return this._element.classList.contains("collapse-horizontal")?"width":"height"}_initializeChildren(){if(!this._config.parent)return;const e=this._getFirstLevelChildren(bk);for(const t of e){const e=kC.getElementFromSelector(t);e&&this._addAriaAndCollapsedClass([t],this._isShown(e))}}_getFirstLevelChildren(e){const t=kC.find(yk,this._config.parent);return kC.find(e,this._config.parent).filter((e=>!t.includes(e)))}_addAriaAndCollapsedClass(e,t){if(e.length)for(const n of e)n.classList.toggle("collapsed",!t),n.setAttribute("aria-expanded",t)}static jQueryInterface(e){const t={};return"string"==typeof e&&/show|hide/.test(e)&&(t.toggle=!1),this.each((function(){const n=Ck.getOrCreateInstance(this,t);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e]()}}))}}gC.on(document,hk,bk,(function(e){("A"===e.target.tagName||e.delegateTarget&&"A"===e.delegateTarget.tagName)&&e.preventDefault();for(const e of kC.getMultipleElementsFromSelector(this))Ck.getOrCreateInstance(e,{toggle:!1}).toggle()})),Kw(Ck);const kk="dropdown",Sk=".bs.dropdown",Ek=".data-api",xk="ArrowUp",Rk="ArrowDown",Dk=`hide${Sk}`,Tk=`hidden${Sk}`,$k=`show${Sk}`,Mk=`shown${Sk}`,Ik=`click${Sk}${Ek}`,Ak=`keydown${Sk}${Ek}`,Ok=`keyup${Sk}${Ek}`,Nk="show",Pk='[data-bs-toggle="dropdown"]:not(.disabled):not(:disabled)',Lk=`${Pk}.${Nk}`,Hk=".dropdown-menu",Wk=Zw()?"top-end":"top-start",Uk=Zw()?"top-start":"top-end",zk=Zw()?"bottom-end":"bottom-start",jk=Zw()?"bottom-start":"bottom-end",Bk=Zw()?"left-start":"right-start",Fk=Zw()?"right-start":"left-start",qk={autoClose:!0,boundary:"clippingParents",display:"dynamic",offset:[0,2],popperConfig:null,reference:"toggle"},Vk={autoClose:"(boolean|string)",boundary:"(string|element)",display:"string",offset:"(array|string|function)",popperConfig:"(null|object|function)",reference:"(string|element|object)"};class Yk extends wC{constructor(e,t){super(e,t),this._popper=null,this._parent=this._element.parentNode,this._menu=kC.next(this._element,Hk)[0]||kC.prev(this._element,Hk)[0]||kC.findOne(Hk,this._parent),this._inNavbar=this._detectNavbar()}static get Default(){return qk}static get DefaultType(){return Vk}static get NAME(){return kk}toggle(){return this._isShown()?this.hide():this.show()}show(){if(Bw(this._element)||this._isShown())return;const e={relatedTarget:this._element};if(!gC.trigger(this._element,$k,e).defaultPrevented){if(this._createPopper(),"ontouchstart"in document.documentElement&&!this._parent.closest(".navbar-nav"))for(const e of[].concat(...document.body.children))gC.on(e,"mouseover",qw);this._element.focus(),this._element.setAttribute("aria-expanded",!0),this._menu.classList.add(Nk),this._element.classList.add(Nk),gC.trigger(this._element,Mk,e)}}hide(){if(Bw(this._element)||!this._isShown())return;const e={relatedTarget:this._element};this._completeHide(e)}dispose(){this._popper&&this._popper.destroy(),super.dispose()}update(){this._inNavbar=this._detectNavbar(),this._popper&&this._popper.update()}_completeHide(e){if(!gC.trigger(this._element,Dk,e).defaultPrevented){if("ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))gC.off(e,"mouseover",qw);this._popper&&this._popper.destroy(),this._menu.classList.remove(Nk),this._element.classList.remove(Nk),this._element.setAttribute("aria-expanded","false"),bC.removeDataAttribute(this._menu,"popper"),gC.trigger(this._element,Tk,e)}}_getConfig(e){if("object"==typeof(e=super._getConfig(e)).reference&&!Uw(e.reference)&&"function"!=typeof e.reference.getBoundingClientRect)throw new TypeError(`${kk.toUpperCase()}: Option "reference" provided type "object" without a required "getBoundingClientRect" method.`);return e}_createPopper(){if(void 0===Ow)throw new TypeError("Bootstrap's dropdowns require Popper (https://popper.js.org)");let e=this._element;"parent"===this._config.reference?e=this._parent:Uw(this._config.reference)?e=zw(this._config.reference):"object"==typeof this._config.reference&&(e=this._config.reference);const t=this._getPopperConfig();this._popper=Aw(e,this._menu,t)}_isShown(){return this._menu.classList.contains(Nk)}_getPlacement(){const e=this._parent;if(e.classList.contains("dropend"))return Bk;if(e.classList.contains("dropstart"))return Fk;if(e.classList.contains("dropup-center"))return"top";if(e.classList.contains("dropdown-center"))return"bottom";const t="end"===getComputedStyle(this._menu).getPropertyValue("--bs-position").trim();return e.classList.contains("dropup")?t?Uk:Wk:t?jk:zk}_detectNavbar(){return null!==this._element.closest(".navbar")}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_getPopperConfig(){const e={placement:this._getPlacement(),modifiers:[{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"offset",options:{offset:this._getOffset()}}]};return(this._inNavbar||"static"===this._config.display)&&(bC.setDataAttribute(this._menu,"popper","static"),e.modifiers=[{name:"applyStyles",enabled:!1}]),{...e,...Xw(this._config.popperConfig,[e])}}_selectMenuItem({key:e,target:t}){const n=kC.find(".dropdown-menu .dropdown-item:not(.disabled):not(:disabled)",this._menu).filter((e=>jw(e)));n.length&&Qw(n,t,e===Rk,!n.includes(t)).focus()}static jQueryInterface(e){return this.each((function(){const t=Yk.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}static clearMenus(e){if(2===e.button||"keyup"===e.type&&"Tab"!==e.key)return;const t=kC.find(Lk);for(const n of t){const t=Yk.getInstance(n);if(!t||!1===t._config.autoClose)continue;const r=e.composedPath(),o=r.includes(t._menu);if(r.includes(t._element)||"inside"===t._config.autoClose&&!o||"outside"===t._config.autoClose&&o)continue;if(t._menu.contains(e.target)&&("keyup"===e.type&&"Tab"===e.key||/input|select|option|textarea|form/i.test(e.target.tagName)))continue;const i={relatedTarget:t._element};"click"===e.type&&(i.clickEvent=e),t._completeHide(i)}}static dataApiKeydownHandler(e){const t=/input|textarea/i.test(e.target.tagName),n="Escape"===e.key,r=[xk,Rk].includes(e.key);if(!r&&!n)return;if(t&&!n)return;e.preventDefault();const o=this.matches(Pk)?this:kC.prev(this,Pk)[0]||kC.next(this,Pk)[0]||kC.findOne(Pk,e.delegateTarget.parentNode),i=Yk.getOrCreateInstance(o);if(r)return e.stopPropagation(),i.show(),void i._selectMenuItem(e);i._isShown()&&(e.stopPropagation(),i.hide(),o.focus())}}gC.on(document,Ak,Pk,Yk.dataApiKeydownHandler),gC.on(document,Ak,Hk,Yk.dataApiKeydownHandler),gC.on(document,Ik,Yk.clearMenus),gC.on(document,Ok,Yk.clearMenus),gC.on(document,Ik,Pk,(function(e){e.preventDefault(),Yk.getOrCreateInstance(this).toggle()})),Kw(Yk);const Gk="backdrop",Zk="show",Kk=`mousedown.bs.${Gk}`,Xk={className:"modal-backdrop",clickCallback:null,isAnimated:!1,isVisible:!0,rootElement:"body"},Jk={className:"string",clickCallback:"(function|null)",isAnimated:"boolean",isVisible:"boolean",rootElement:"(element|string)"};class Qk extends _C{constructor(e){super(),this._config=this._getConfig(e),this._isAppended=!1,this._element=null}static get Default(){return Xk}static get DefaultType(){return Jk}static get NAME(){return Gk}show(e){if(!this._config.isVisible)return void Xw(e);this._append();const t=this._getElement();this._config.isAnimated&&Vw(t),t.classList.add(Zk),this._emulateAnimation((()=>{Xw(e)}))}hide(e){this._config.isVisible?(this._getElement().classList.remove(Zk),this._emulateAnimation((()=>{this.dispose(),Xw(e)}))):Xw(e)}dispose(){this._isAppended&&(gC.off(this._element,Kk),this._element.remove(),this._isAppended=!1)}_getElement(){if(!this._element){const e=document.createElement("div");e.className=this._config.className,this._config.isAnimated&&e.classList.add("fade"),this._element=e}return this._element}_configAfterMerge(e){return e.rootElement=zw(e.rootElement),e}_append(){if(this._isAppended)return;const e=this._getElement();this._config.rootElement.append(e),gC.on(e,Kk,(()=>{Xw(this._config.clickCallback)})),this._isAppended=!0}_emulateAnimation(e){Jw(e,this._getElement(),this._config.isAnimated)}}const eS=".bs.focustrap",tS=`focusin${eS}`,nS=`keydown.tab${eS}`,rS="backward",oS={autofocus:!0,trapElement:null},iS={autofocus:"boolean",trapElement:"element"};class sS extends _C{constructor(e){super(),this._config=this._getConfig(e),this._isActive=!1,this._lastTabNavDirection=null}static get Default(){return oS}static get DefaultType(){return iS}static get NAME(){return"focustrap"}activate(){this._isActive||(this._config.autofocus&&this._config.trapElement.focus(),gC.off(document,eS),gC.on(document,tS,(e=>this._handleFocusin(e))),gC.on(document,nS,(e=>this._handleKeydown(e))),this._isActive=!0)}deactivate(){this._isActive&&(this._isActive=!1,gC.off(document,eS))}_handleFocusin(e){const{trapElement:t}=this._config;if(e.target===document||e.target===t||t.contains(e.target))return;const n=kC.focusableChildren(t);0===n.length?t.focus():this._lastTabNavDirection===rS?n[n.length-1].focus():n[0].focus()}_handleKeydown(e){"Tab"===e.key&&(this._lastTabNavDirection=e.shiftKey?rS:"forward")}}const aS=".fixed-top, .fixed-bottom, .is-fixed, .sticky-top",lS=".sticky-top",uS="padding-right",cS="margin-right";class dS{constructor(){this._element=document.body}getWidth(){const e=document.documentElement.clientWidth;return Math.abs(window.innerWidth-e)}hide(){const e=this.getWidth();this._disableOverFlow(),this._setElementAttributes(this._element,uS,(t=>t+e)),this._setElementAttributes(aS,uS,(t=>t+e)),this._setElementAttributes(lS,cS,(t=>t-e))}reset(){this._resetElementAttributes(this._element,"overflow"),this._resetElementAttributes(this._element,uS),this._resetElementAttributes(aS,uS),this._resetElementAttributes(lS,cS)}isOverflowing(){return this.getWidth()>0}_disableOverFlow(){this._saveInitialAttribute(this._element,"overflow"),this._element.style.overflow="hidden"}_setElementAttributes(e,t,n){const r=this.getWidth();this._applyManipulationCallback(e,(e=>{if(e!==this._element&&window.innerWidth>e.clientWidth+r)return;this._saveInitialAttribute(e,t);const o=window.getComputedStyle(e).getPropertyValue(t);e.style.setProperty(t,`${n(Number.parseFloat(o))}px`)}))}_saveInitialAttribute(e,t){const n=e.style.getPropertyValue(t);n&&bC.setDataAttribute(e,t,n)}_resetElementAttributes(e,t){this._applyManipulationCallback(e,(e=>{const n=bC.getDataAttribute(e,t);null!==n?(bC.removeDataAttribute(e,t),e.style.setProperty(t,n)):e.style.removeProperty(t)}))}_applyManipulationCallback(e,t){if(Uw(e))t(e);else for(const n of kC.find(e,this._element))t(n)}}const fS=".bs.modal",pS=`hide${fS}`,hS=`hidePrevented${fS}`,gS=`hidden${fS}`,vS=`show${fS}`,mS=`shown${fS}`,yS=`resize${fS}`,bS=`click.dismiss${fS}`,_S=`mousedown.dismiss${fS}`,wS=`keydown.dismiss${fS}`,CS=`click${fS}.data-api`,kS="modal-open",SS="show",ES="modal-static",xS={backdrop:!0,focus:!0,keyboard:!0},RS={backdrop:"(boolean|string)",focus:"boolean",keyboard:"boolean"};class DS extends wC{constructor(e,t){super(e,t),this._dialog=kC.findOne(".modal-dialog",this._element),this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._isShown=!1,this._isTransitioning=!1,this._scrollBar=new dS,this._addEventListeners()}static get Default(){return xS}static get DefaultType(){return RS}static get NAME(){return"modal"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown||this._isTransitioning)return;gC.trigger(this._element,vS,{relatedTarget:e}).defaultPrevented||(this._isShown=!0,this._isTransitioning=!0,this._scrollBar.hide(),document.body.classList.add(kS),this._adjustDialog(),this._backdrop.show((()=>this._showElement(e))))}hide(){if(!this._isShown||this._isTransitioning)return;gC.trigger(this._element,pS).defaultPrevented||(this._isShown=!1,this._isTransitioning=!0,this._focustrap.deactivate(),this._element.classList.remove(SS),this._queueCallback((()=>this._hideModal()),this._element,this._isAnimated()))}dispose(){gC.off(window,fS),gC.off(this._dialog,fS),this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}handleUpdate(){this._adjustDialog()}_initializeBackDrop(){return new Qk({isVisible:Boolean(this._config.backdrop),isAnimated:this._isAnimated()})}_initializeFocusTrap(){return new sS({trapElement:this._element})}_showElement(e){document.body.contains(this._element)||document.body.append(this._element),this._element.style.display="block",this._element.removeAttribute("aria-hidden"),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.scrollTop=0;const t=kC.findOne(".modal-body",this._dialog);t&&(t.scrollTop=0),Vw(this._element),this._element.classList.add(SS);this._queueCallback((()=>{this._config.focus&&this._focustrap.activate(),this._isTransitioning=!1,gC.trigger(this._element,mS,{relatedTarget:e})}),this._dialog,this._isAnimated())}_addEventListeners(){gC.on(this._element,wS,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():this._triggerBackdropTransition())})),gC.on(window,yS,(()=>{this._isShown&&!this._isTransitioning&&this._adjustDialog()})),gC.on(this._element,_S,(e=>{gC.one(this._element,bS,(t=>{this._element===e.target&&this._element===t.target&&("static"!==this._config.backdrop?this._config.backdrop&&this.hide():this._triggerBackdropTransition())}))}))}_hideModal(){this._element.style.display="none",this._element.setAttribute("aria-hidden",!0),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._isTransitioning=!1,this._backdrop.hide((()=>{document.body.classList.remove(kS),this._resetAdjustments(),this._scrollBar.reset(),gC.trigger(this._element,gS)}))}_isAnimated(){return this._element.classList.contains("fade")}_triggerBackdropTransition(){if(gC.trigger(this._element,hS).defaultPrevented)return;const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._element.style.overflowY;"hidden"===t||this._element.classList.contains(ES)||(e||(this._element.style.overflowY="hidden"),this._element.classList.add(ES),this._queueCallback((()=>{this._element.classList.remove(ES),this._queueCallback((()=>{this._element.style.overflowY=t}),this._dialog)}),this._dialog),this._element.focus())}_adjustDialog(){const e=this._element.scrollHeight>document.documentElement.clientHeight,t=this._scrollBar.getWidth(),n=t>0;if(n&&!e){const e=Zw()?"paddingLeft":"paddingRight";this._element.style[e]=`${t}px`}if(!n&&e){const e=Zw()?"paddingRight":"paddingLeft";this._element.style[e]=`${t}px`}}_resetAdjustments(){this._element.style.paddingLeft="",this._element.style.paddingRight=""}static jQueryInterface(e,t){return this.each((function(){const n=DS.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===n[e])throw new TypeError(`No method named "${e}"`);n[e](t)}}))}}gC.on(document,CS,'[data-bs-toggle="modal"]',(function(e){const t=kC.getElementFromSelector(this);["A","AREA"].includes(this.tagName)&&e.preventDefault(),gC.one(t,vS,(e=>{e.defaultPrevented||gC.one(t,gS,(()=>{jw(this)&&this.focus()}))}));const n=kC.findOne(".modal.show");n&&DS.getInstance(n).hide();DS.getOrCreateInstance(t).toggle(this)})),SC(DS),Kw(DS);const TS=".bs.offcanvas",$S=".data-api",MS=`load${TS}${$S}`,IS="show",AS="showing",OS="hiding",NS=".offcanvas.show",PS=`show${TS}`,LS=`shown${TS}`,HS=`hide${TS}`,WS=`hidePrevented${TS}`,US=`hidden${TS}`,zS=`resize${TS}`,jS=`click${TS}${$S}`,BS=`keydown.dismiss${TS}`,FS={backdrop:!0,keyboard:!0,scroll:!1},qS={backdrop:"(boolean|string)",keyboard:"boolean",scroll:"boolean"};class VS extends wC{constructor(e,t){super(e,t),this._isShown=!1,this._backdrop=this._initializeBackDrop(),this._focustrap=this._initializeFocusTrap(),this._addEventListeners()}static get Default(){return FS}static get DefaultType(){return qS}static get NAME(){return"offcanvas"}toggle(e){return this._isShown?this.hide():this.show(e)}show(e){if(this._isShown)return;if(gC.trigger(this._element,PS,{relatedTarget:e}).defaultPrevented)return;this._isShown=!0,this._backdrop.show(),this._config.scroll||(new dS).hide(),this._element.setAttribute("aria-modal",!0),this._element.setAttribute("role","dialog"),this._element.classList.add(AS);this._queueCallback((()=>{this._config.scroll&&!this._config.backdrop||this._focustrap.activate(),this._element.classList.add(IS),this._element.classList.remove(AS),gC.trigger(this._element,LS,{relatedTarget:e})}),this._element,!0)}hide(){if(!this._isShown)return;if(gC.trigger(this._element,HS).defaultPrevented)return;this._focustrap.deactivate(),this._element.blur(),this._isShown=!1,this._element.classList.add(OS),this._backdrop.hide();this._queueCallback((()=>{this._element.classList.remove(IS,OS),this._element.removeAttribute("aria-modal"),this._element.removeAttribute("role"),this._config.scroll||(new dS).reset(),gC.trigger(this._element,US)}),this._element,!0)}dispose(){this._backdrop.dispose(),this._focustrap.deactivate(),super.dispose()}_initializeBackDrop(){const e=Boolean(this._config.backdrop);return new Qk({className:"offcanvas-backdrop",isVisible:e,isAnimated:!0,rootElement:this._element.parentNode,clickCallback:e?()=>{"static"!==this._config.backdrop?this.hide():gC.trigger(this._element,WS)}:null})}_initializeFocusTrap(){return new sS({trapElement:this._element})}_addEventListeners(){gC.on(this._element,BS,(e=>{"Escape"===e.key&&(this._config.keyboard?this.hide():gC.trigger(this._element,WS))}))}static jQueryInterface(e){return this.each((function(){const t=VS.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}gC.on(document,jS,'[data-bs-toggle="offcanvas"]',(function(e){const t=kC.getElementFromSelector(this);if(["A","AREA"].includes(this.tagName)&&e.preventDefault(),Bw(this))return;gC.one(t,US,(()=>{jw(this)&&this.focus()}));const n=kC.findOne(NS);n&&n!==t&&VS.getInstance(n).hide();VS.getOrCreateInstance(t).toggle(this)})),gC.on(window,MS,(()=>{for(const e of kC.find(NS))VS.getOrCreateInstance(e).show()})),gC.on(window,zS,(()=>{for(const e of kC.find("[aria-modal][class*=show][class*=offcanvas-]"))"fixed"!==getComputedStyle(e).position&&VS.getOrCreateInstance(e).hide()})),SC(VS),Kw(VS);const YS={"*":["class","dir","id","lang","role",/^aria-[\w-]*$/i],a:["target","href","title","rel"],area:[],b:[],br:[],col:[],code:[],div:[],em:[],hr:[],h1:[],h2:[],h3:[],h4:[],h5:[],h6:[],i:[],img:["src","srcset","alt","title","width","height"],li:[],ol:[],p:[],pre:[],s:[],small:[],span:[],sub:[],sup:[],strong:[],u:[],ul:[]},GS=new Set(["background","cite","href","itemtype","longdesc","poster","src","xlink:href"]),ZS=/^(?!javascript:)(?:[a-z0-9+.-]+:|[^&:/?#]*(?:[/?#]|$))/i,KS=(e,t)=>{const n=e.nodeName.toLowerCase();return t.includes(n)?!GS.has(n)||Boolean(ZS.test(e.nodeValue)):t.filter((e=>e instanceof RegExp)).some((e=>e.test(n)))};const XS={allowList:YS,content:{},extraClass:"",html:!1,sanitize:!0,sanitizeFn:null,template:"<div></div>"},JS={allowList:"object",content:"object",extraClass:"(string|function)",html:"boolean",sanitize:"boolean",sanitizeFn:"(null|function)",template:"string"},QS={entry:"(string|element|function|null)",selector:"(string|element)"};class eE extends _C{constructor(e){super(),this._config=this._getConfig(e)}static get Default(){return XS}static get DefaultType(){return JS}static get NAME(){return"TemplateFactory"}getContent(){return Object.values(this._config.content).map((e=>this._resolvePossibleFunction(e))).filter(Boolean)}hasContent(){return this.getContent().length>0}changeContent(e){return this._checkContent(e),this._config.content={...this._config.content,...e},this}toHtml(){const e=document.createElement("div");e.innerHTML=this._maybeSanitize(this._config.template);for(const[t,n]of Object.entries(this._config.content))this._setContent(e,n,t);const t=e.children[0],n=this._resolvePossibleFunction(this._config.extraClass);return n&&t.classList.add(...n.split(" ")),t}_typeCheckConfig(e){super._typeCheckConfig(e),this._checkContent(e.content)}_checkContent(e){for(const[t,n]of Object.entries(e))super._typeCheckConfig({selector:t,entry:n},QS)}_setContent(e,t,n){const r=kC.findOne(n,e);r&&((t=this._resolvePossibleFunction(t))?Uw(t)?this._putElementInTemplate(zw(t),r):this._config.html?r.innerHTML=this._maybeSanitize(t):r.textContent=t:r.remove())}_maybeSanitize(e){return this._config.sanitize?function(e,t,n){if(!e.length)return e;if(n&&"function"==typeof n)return n(e);const r=(new window.DOMParser).parseFromString(e,"text/html"),o=[].concat(...r.body.querySelectorAll("*"));for(const e of o){const n=e.nodeName.toLowerCase();if(!Object.keys(t).includes(n)){e.remove();continue}const r=[].concat(...e.attributes),o=[].concat(t["*"]||[],t[n]||[]);for(const t of r)KS(t,o)||e.removeAttribute(t.nodeName)}return r.body.innerHTML}(e,this._config.allowList,this._config.sanitizeFn):e}_resolvePossibleFunction(e){return Xw(e,[this])}_putElementInTemplate(e,t){if(this._config.html)return t.innerHTML="",void t.append(e);t.textContent=e.textContent}}const tE=new Set(["sanitize","allowList","sanitizeFn"]),nE="fade",rE="show",oE=".modal",iE="hide.bs.modal",sE="hover",aE="focus",lE={AUTO:"auto",TOP:"top",RIGHT:Zw()?"left":"right",BOTTOM:"bottom",LEFT:Zw()?"right":"left"},uE={allowList:YS,animation:!0,boundary:"clippingParents",container:!1,customClass:"",delay:0,fallbackPlacements:["top","right","bottom","left"],html:!1,offset:[0,6],placement:"top",popperConfig:null,sanitize:!0,sanitizeFn:null,selector:!1,template:'<div class="tooltip" role="tooltip"><div class="tooltip-arrow"></div><div class="tooltip-inner"></div></div>',title:"",trigger:"hover focus"},cE={allowList:"object",animation:"boolean",boundary:"(string|element)",container:"(string|element|boolean)",customClass:"(string|function)",delay:"(number|object)",fallbackPlacements:"array",html:"boolean",offset:"(array|string|function)",placement:"(string|function)",popperConfig:"(null|object|function)",sanitize:"boolean",sanitizeFn:"(null|function)",selector:"(string|boolean)",template:"string",title:"(string|element|function)",trigger:"string"};class dE extends wC{constructor(e,t){if(void 0===Ow)throw new TypeError("Bootstrap's tooltips require Popper (https://popper.js.org)");super(e,t),this._isEnabled=!0,this._timeout=0,this._isHovered=null,this._activeTrigger={},this._popper=null,this._templateFactory=null,this._newContent=null,this.tip=null,this._setListeners(),this._config.selector||this._fixTitle()}static get Default(){return uE}static get DefaultType(){return cE}static get NAME(){return"tooltip"}enable(){this._isEnabled=!0}disable(){this._isEnabled=!1}toggleEnabled(){this._isEnabled=!this._isEnabled}toggle(){this._isEnabled&&(this._activeTrigger.click=!this._activeTrigger.click,this._isShown()?this._leave():this._enter())}dispose(){clearTimeout(this._timeout),gC.off(this._element.closest(oE),iE,this._hideModalHandler),this._element.getAttribute("data-bs-original-title")&&this._element.setAttribute("title",this._element.getAttribute("data-bs-original-title")),this._disposePopper(),super.dispose()}show(){if("none"===this._element.style.display)throw new Error("Please use show on visible elements");if(!this._isWithContent()||!this._isEnabled)return;const e=gC.trigger(this._element,this.constructor.eventName("show")),t=(Fw(this._element)||this._element.ownerDocument.documentElement).contains(this._element);if(e.defaultPrevented||!t)return;this._disposePopper();const n=this._getTipElement();this._element.setAttribute("aria-describedby",n.getAttribute("id"));const{container:r}=this._config;if(this._element.ownerDocument.documentElement.contains(this.tip)||(r.append(n),gC.trigger(this._element,this.constructor.eventName("inserted"))),this._popper=this._createPopper(n),n.classList.add(rE),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))gC.on(e,"mouseover",qw);this._queueCallback((()=>{gC.trigger(this._element,this.constructor.eventName("shown")),!1===this._isHovered&&this._leave(),this._isHovered=!1}),this.tip,this._isAnimated())}hide(){if(!this._isShown())return;if(gC.trigger(this._element,this.constructor.eventName("hide")).defaultPrevented)return;if(this._getTipElement().classList.remove(rE),"ontouchstart"in document.documentElement)for(const e of[].concat(...document.body.children))gC.off(e,"mouseover",qw);this._activeTrigger.click=!1,this._activeTrigger[aE]=!1,this._activeTrigger[sE]=!1,this._isHovered=null;this._queueCallback((()=>{this._isWithActiveTrigger()||(this._isHovered||this._disposePopper(),this._element.removeAttribute("aria-describedby"),gC.trigger(this._element,this.constructor.eventName("hidden")))}),this.tip,this._isAnimated())}update(){this._popper&&this._popper.update()}_isWithContent(){return Boolean(this._getTitle())}_getTipElement(){return this.tip||(this.tip=this._createTipElement(this._newContent||this._getContentForTemplate())),this.tip}_createTipElement(e){const t=this._getTemplateFactory(e).toHtml();if(!t)return null;t.classList.remove(nE,rE),t.classList.add(`bs-${this.constructor.NAME}-auto`);const n=(e=>{do{e+=Math.floor(1e6*Math.random())}while(document.getElementById(e));return e})(this.constructor.NAME).toString();return t.setAttribute("id",n),this._isAnimated()&&t.classList.add(nE),t}setContent(e){this._newContent=e,this._isShown()&&(this._disposePopper(),this.show())}_getTemplateFactory(e){return this._templateFactory?this._templateFactory.changeContent(e):this._templateFactory=new eE({...this._config,content:e,extraClass:this._resolvePossibleFunction(this._config.customClass)}),this._templateFactory}_getContentForTemplate(){return{".tooltip-inner":this._getTitle()}}_getTitle(){return this._resolvePossibleFunction(this._config.title)||this._element.getAttribute("data-bs-original-title")}_initializeOnDelegatedTarget(e){return this.constructor.getOrCreateInstance(e.delegateTarget,this._getDelegateConfig())}_isAnimated(){return this._config.animation||this.tip&&this.tip.classList.contains(nE)}_isShown(){return this.tip&&this.tip.classList.contains(rE)}_createPopper(e){const t=Xw(this._config.placement,[this,e,this._element]),n=lE[t.toUpperCase()];return Aw(this._element,e,this._getPopperConfig(n))}_getOffset(){const{offset:e}=this._config;return"string"==typeof e?e.split(",").map((e=>Number.parseInt(e,10))):"function"==typeof e?t=>e(t,this._element):e}_resolvePossibleFunction(e){return Xw(e,[this._element])}_getPopperConfig(e){const t={placement:e,modifiers:[{name:"flip",options:{fallbackPlacements:this._config.fallbackPlacements}},{name:"offset",options:{offset:this._getOffset()}},{name:"preventOverflow",options:{boundary:this._config.boundary}},{name:"arrow",options:{element:`.${this.constructor.NAME}-arrow`}},{name:"preSetPlacement",enabled:!0,phase:"beforeMain",fn:e=>{this._getTipElement().setAttribute("data-popper-placement",e.state.placement)}}]};return{...t,...Xw(this._config.popperConfig,[t])}}_setListeners(){const e=this._config.trigger.split(" ");for(const t of e)if("click"===t)gC.on(this._element,this.constructor.eventName("click"),this._config.selector,(e=>{this._initializeOnDelegatedTarget(e).toggle()}));else if("manual"!==t){const e=t===sE?this.constructor.eventName("mouseenter"):this.constructor.eventName("focusin"),n=t===sE?this.constructor.eventName("mouseleave"):this.constructor.eventName("focusout");gC.on(this._element,e,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusin"===e.type?aE:sE]=!0,t._enter()})),gC.on(this._element,n,this._config.selector,(e=>{const t=this._initializeOnDelegatedTarget(e);t._activeTrigger["focusout"===e.type?aE:sE]=t._element.contains(e.relatedTarget),t._leave()}))}this._hideModalHandler=()=>{this._element&&this.hide()},gC.on(this._element.closest(oE),iE,this._hideModalHandler)}_fixTitle(){const e=this._element.getAttribute("title");e&&(this._element.getAttribute("aria-label")||this._element.textContent.trim()||this._element.setAttribute("aria-label",e),this._element.setAttribute("data-bs-original-title",e),this._element.removeAttribute("title"))}_enter(){this._isShown()||this._isHovered?this._isHovered=!0:(this._isHovered=!0,this._setTimeout((()=>{this._isHovered&&this.show()}),this._config.delay.show))}_leave(){this._isWithActiveTrigger()||(this._isHovered=!1,this._setTimeout((()=>{this._isHovered||this.hide()}),this._config.delay.hide))}_setTimeout(e,t){clearTimeout(this._timeout),this._timeout=setTimeout(e,t)}_isWithActiveTrigger(){return Object.values(this._activeTrigger).includes(!0)}_getConfig(e){const t=bC.getDataAttributes(this._element);for(const e of Object.keys(t))tE.has(e)&&delete t[e];return e={...t,..."object"==typeof e&&e?e:{}},e=this._mergeConfigObj(e),e=this._configAfterMerge(e),this._typeCheckConfig(e),e}_configAfterMerge(e){return e.container=!1===e.container?document.body:zw(e.container),"number"==typeof e.delay&&(e.delay={show:e.delay,hide:e.delay}),"number"==typeof e.title&&(e.title=e.title.toString()),"number"==typeof e.content&&(e.content=e.content.toString()),e}_getDelegateConfig(){const e={};for(const[t,n]of Object.entries(this._config))this.constructor.Default[t]!==n&&(e[t]=n);return e.selector=!1,e.trigger="manual",e}_disposePopper(){this._popper&&(this._popper.destroy(),this._popper=null),this.tip&&(this.tip.remove(),this.tip=null)}static jQueryInterface(e){return this.each((function(){const t=dE.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Kw(dE);const fE={...dE.Default,content:"",offset:[0,8],placement:"right",template:'<div class="popover" role="tooltip"><div class="popover-arrow"></div><h3 class="popover-header"></h3><div class="popover-body"></div></div>',trigger:"click"},pE={...dE.DefaultType,content:"(null|string|element|function)"};class hE extends dE{static get Default(){return fE}static get DefaultType(){return pE}static get NAME(){return"popover"}_isWithContent(){return this._getTitle()||this._getContent()}_getContentForTemplate(){return{".popover-header":this._getTitle(),".popover-body":this._getContent()}}_getContent(){return this._resolvePossibleFunction(this._config.content)}static jQueryInterface(e){return this.each((function(){const t=hE.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e]()}}))}}Kw(hE);const gE=".bs.scrollspy",vE=`activate${gE}`,mE=`click${gE}`,yE=`load${gE}.data-api`,bE="active",_E="[href]",wE=".nav-link",CE=`${wE}, .nav-item > ${wE}, .list-group-item`,kE={offset:null,rootMargin:"0px 0px -25%",smoothScroll:!1,target:null,threshold:[.1,.5,1]},SE={offset:"(number|null)",rootMargin:"string",smoothScroll:"boolean",target:"element",threshold:"array"};class EE extends wC{constructor(e,t){super(e,t),this._targetLinks=new Map,this._observableSections=new Map,this._rootElement="visible"===getComputedStyle(this._element).overflowY?null:this._element,this._activeTarget=null,this._observer=null,this._previousScrollData={visibleEntryTop:0,parentScrollTop:0},this.refresh()}static get Default(){return kE}static get DefaultType(){return SE}static get NAME(){return"scrollspy"}refresh(){this._initializeTargetsAndObservables(),this._maybeEnableSmoothScroll(),this._observer?this._observer.disconnect():this._observer=this._getNewObserver();for(const e of this._observableSections.values())this._observer.observe(e)}dispose(){this._observer.disconnect(),super.dispose()}_configAfterMerge(e){return e.target=zw(e.target)||document.body,e.rootMargin=e.offset?`${e.offset}px 0px -30%`:e.rootMargin,"string"==typeof e.threshold&&(e.threshold=e.threshold.split(",").map((e=>Number.parseFloat(e)))),e}_maybeEnableSmoothScroll(){this._config.smoothScroll&&(gC.off(this._config.target,mE),gC.on(this._config.target,mE,_E,(e=>{const t=this._observableSections.get(e.target.hash);if(t){e.preventDefault();const n=this._rootElement||window,r=t.offsetTop-this._element.offsetTop;if(n.scrollTo)return void n.scrollTo({top:r,behavior:"smooth"});n.scrollTop=r}})))}_getNewObserver(){const e={root:this._rootElement,threshold:this._config.threshold,rootMargin:this._config.rootMargin};return new IntersectionObserver((e=>this._observerCallback(e)),e)}_observerCallback(e){const t=e=>this._targetLinks.get(`#${e.target.id}`),n=e=>{this._previousScrollData.visibleEntryTop=e.target.offsetTop,this._process(t(e))},r=(this._rootElement||document.documentElement).scrollTop,o=r>=this._previousScrollData.parentScrollTop;this._previousScrollData.parentScrollTop=r;for(const i of e){if(!i.isIntersecting){this._activeTarget=null,this._clearActiveClass(t(i));continue}const e=i.target.offsetTop>=this._previousScrollData.visibleEntryTop;if(o&&e){if(n(i),!r)return}else o||e||n(i)}}_initializeTargetsAndObservables(){this._targetLinks=new Map,this._observableSections=new Map;const e=kC.find(_E,this._config.target);for(const t of e){if(!t.hash||Bw(t))continue;const e=kC.findOne(decodeURI(t.hash),this._element);jw(e)&&(this._targetLinks.set(decodeURI(t.hash),t),this._observableSections.set(t.hash,e))}}_process(e){this._activeTarget!==e&&(this._clearActiveClass(this._config.target),this._activeTarget=e,e.classList.add(bE),this._activateParents(e),gC.trigger(this._element,vE,{relatedTarget:e}))}_activateParents(e){if(e.classList.contains("dropdown-item"))kC.findOne(".dropdown-toggle",e.closest(".dropdown")).classList.add(bE);else for(const t of kC.parents(e,".nav, .list-group"))for(const e of kC.prev(t,CE))e.classList.add(bE)}_clearActiveClass(e){e.classList.remove(bE);const t=kC.find(`${_E}.${bE}`,e);for(const e of t)e.classList.remove(bE)}static jQueryInterface(e){return this.each((function(){const t=EE.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}gC.on(window,yE,(()=>{for(const e of kC.find('[data-bs-spy="scroll"]'))EE.getOrCreateInstance(e)})),Kw(EE);const xE=".bs.tab",RE=`hide${xE}`,DE=`hidden${xE}`,TE=`show${xE}`,$E=`shown${xE}`,ME=`click${xE}`,IE=`keydown${xE}`,AE=`load${xE}`,OE="ArrowLeft",NE="ArrowRight",PE="ArrowUp",LE="ArrowDown",HE="active",WE="fade",UE="show",zE=":not(.dropdown-toggle)",jE='[data-bs-toggle="tab"], [data-bs-toggle="pill"], [data-bs-toggle="list"]',BE=`${`.nav-link${zE}, .list-group-item${zE}, [role="tab"]${zE}`}, ${jE}`,FE=`.${HE}[data-bs-toggle="tab"], .${HE}[data-bs-toggle="pill"], .${HE}[data-bs-toggle="list"]`;class qE extends wC{constructor(e){super(e),this._parent=this._element.closest('.list-group, .nav, [role="tablist"]'),this._parent&&(this._setInitialAttributes(this._parent,this._getChildren()),gC.on(this._element,IE,(e=>this._keydown(e))))}static get NAME(){return"tab"}show(){const e=this._element;if(this._elemIsActive(e))return;const t=this._getActiveElem(),n=t?gC.trigger(t,RE,{relatedTarget:e}):null;gC.trigger(e,TE,{relatedTarget:t}).defaultPrevented||n&&n.defaultPrevented||(this._deactivate(t,e),this._activate(e,t))}_activate(e,t){if(!e)return;e.classList.add(HE),this._activate(kC.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.removeAttribute("tabindex"),e.setAttribute("aria-selected",!0),this._toggleDropDown(e,!0),gC.trigger(e,$E,{relatedTarget:t})):e.classList.add(UE)}),e,e.classList.contains(WE))}_deactivate(e,t){if(!e)return;e.classList.remove(HE),e.blur(),this._deactivate(kC.getElementFromSelector(e));this._queueCallback((()=>{"tab"===e.getAttribute("role")?(e.setAttribute("aria-selected",!1),e.setAttribute("tabindex","-1"),this._toggleDropDown(e,!1),gC.trigger(e,DE,{relatedTarget:t})):e.classList.remove(UE)}),e,e.classList.contains(WE))}_keydown(e){if(![OE,NE,PE,LE].includes(e.key))return;e.stopPropagation(),e.preventDefault();const t=[NE,LE].includes(e.key),n=Qw(this._getChildren().filter((e=>!Bw(e))),e.target,t,!0);n&&(n.focus({preventScroll:!0}),qE.getOrCreateInstance(n).show())}_getChildren(){return kC.find(BE,this._parent)}_getActiveElem(){return this._getChildren().find((e=>this._elemIsActive(e)))||null}_setInitialAttributes(e,t){this._setAttributeIfNotExists(e,"role","tablist");for(const e of t)this._setInitialAttributesOnChild(e)}_setInitialAttributesOnChild(e){e=this._getInnerElement(e);const t=this._elemIsActive(e),n=this._getOuterElement(e);e.setAttribute("aria-selected",t),n!==e&&this._setAttributeIfNotExists(n,"role","presentation"),t||e.setAttribute("tabindex","-1"),this._setAttributeIfNotExists(e,"role","tab"),this._setInitialAttributesOnTargetPanel(e)}_setInitialAttributesOnTargetPanel(e){const t=kC.getElementFromSelector(e);t&&(this._setAttributeIfNotExists(t,"role","tabpanel"),e.id&&this._setAttributeIfNotExists(t,"aria-labelledby",`${e.id}`))}_toggleDropDown(e,t){const n=this._getOuterElement(e);if(!n.classList.contains("dropdown"))return;const r=(e,r)=>{const o=kC.findOne(e,n);o&&o.classList.toggle(r,t)};r(".dropdown-toggle",HE),r(".dropdown-menu",UE),n.setAttribute("aria-expanded",t)}_setAttributeIfNotExists(e,t,n){e.hasAttribute(t)||e.setAttribute(t,n)}_elemIsActive(e){return e.classList.contains(HE)}_getInnerElement(e){return e.matches(BE)?e:kC.findOne(BE,e)}_getOuterElement(e){return e.closest(".nav-item, .list-group-item")||e}static jQueryInterface(e){return this.each((function(){const t=qE.getOrCreateInstance(this);if("string"==typeof e){if(void 0===t[e]||e.startsWith("_")||"constructor"===e)throw new TypeError(`No method named "${e}"`);t[e]()}}))}}gC.on(document,ME,jE,(function(e){["A","AREA"].includes(this.tagName)&&e.preventDefault(),Bw(this)||qE.getOrCreateInstance(this).show()})),gC.on(window,AE,(()=>{for(const e of kC.find(FE))qE.getOrCreateInstance(e)})),Kw(qE);const VE=".bs.toast",YE=`mouseover${VE}`,GE=`mouseout${VE}`,ZE=`focusin${VE}`,KE=`focusout${VE}`,XE=`hide${VE}`,JE=`hidden${VE}`,QE=`show${VE}`,ex=`shown${VE}`,tx="hide",nx="show",rx="showing",ox={animation:"boolean",autohide:"boolean",delay:"number"},ix={animation:!0,autohide:!0,delay:5e3};class sx extends wC{constructor(e,t){super(e,t),this._timeout=null,this._hasMouseInteraction=!1,this._hasKeyboardInteraction=!1,this._setListeners()}static get Default(){return ix}static get DefaultType(){return ox}static get NAME(){return"toast"}show(){if(gC.trigger(this._element,QE).defaultPrevented)return;this._clearTimeout(),this._config.animation&&this._element.classList.add("fade");this._element.classList.remove(tx),Vw(this._element),this._element.classList.add(nx,rx),this._queueCallback((()=>{this._element.classList.remove(rx),gC.trigger(this._element,ex),this._maybeScheduleHide()}),this._element,this._config.animation)}hide(){if(!this.isShown())return;if(gC.trigger(this._element,XE).defaultPrevented)return;this._element.classList.add(rx),this._queueCallback((()=>{this._element.classList.add(tx),this._element.classList.remove(rx,nx),gC.trigger(this._element,JE)}),this._element,this._config.animation)}dispose(){this._clearTimeout(),this.isShown()&&this._element.classList.remove(nx),super.dispose()}isShown(){return this._element.classList.contains(nx)}_maybeScheduleHide(){this._config.autohide&&(this._hasMouseInteraction||this._hasKeyboardInteraction||(this._timeout=setTimeout((()=>{this.hide()}),this._config.delay)))}_onInteraction(e,t){switch(e.type){case"mouseover":case"mouseout":this._hasMouseInteraction=t;break;case"focusin":case"focusout":this._hasKeyboardInteraction=t}if(t)return void this._clearTimeout();const n=e.relatedTarget;this._element===n||this._element.contains(n)||this._maybeScheduleHide()}_setListeners(){gC.on(this._element,YE,(e=>this._onInteraction(e,!0))),gC.on(this._element,GE,(e=>this._onInteraction(e,!1))),gC.on(this._element,ZE,(e=>this._onInteraction(e,!0))),gC.on(this._element,KE,(e=>this._onInteraction(e,!1)))}_clearTimeout(){clearTimeout(this._timeout),this._timeout=null}static jQueryInterface(e){return this.each((function(){const t=sx.getOrCreateInstance(this,e);if("string"==typeof e){if(void 0===t[e])throw new TypeError(`No method named "${e}"`);t[e](this)}}))}}SC(sx),Kw(sx);function ax(e){let t,n,r,o,i,s,a,l,u,c,d,f,p,h,g,v,m,y,b;function _(t){e[10](t)}i=new gg({props:{name:"printer"}}),a=new qb({props:{calendar:e[2],selectedCalendars:e[0]}}),u=new Pb({});let w={calendarTree:tb,initial:e[8]};void 0!==e[0]&&(w.selected=e[0]),d=new Eb({props:w}),oe.push((()=>Te(d,"selected",_)));let C={options:e[3]};return h=new Hl({props:C}),e[11](h),v=new Hy({props:{event:e[4],open:e[1],toggle:e[6]}}),{c(){t=$("div"),n=$("h1"),n.textContent="Calendrier de la vie étudiante à l'ENS",r=A(),o=$("span"),$e(i.$$.fragment),s=A(),$e(a.$$.fragment),l=A(),$e(u.$$.fragment),c=A(),$e(d.$$.fragment),p=A(),$e(h.$$.fragment),g=A(),$e(v.$$.fragment),L(n,"class","mt-3 title text-center"),L(o,"class","print-toggle fs-4 no-print svelte-auum75"),L(o,"title","Imprimer"),L(t,"class","h-100 d-flex flex-column")},m(f,_){R(f,t,_),S(t,n),S(t,r),S(t,o),Me(i,o,null),S(t,s),Me(a,t,null),S(t,l),Me(u,t,null),S(t,c),Me(d,t,null),S(t,p),Me(h,t,null),S(t,g),Me(v,t,null),m=!0,y||(b=N(o,"click",e[9]),y=!0)},p(e,[t]){const n={};4&t&&(n.calendar=e[2]),1&t&&(n.selectedCalendars=e[0]),a.$set(n);const r={};!f&&1&t&&(f=!0,r.selected=e[0],ce((()=>f=!1))),d.$set(r);const o={};8&t&&(o.options=e[3]),h.$set(o);const i={};16&t&&(i.event=e[4]),2&t&&(i.open=e[1]),v.$set(i)},i(e){m||(Ce(i.$$.fragment,e),Ce(a.$$.fragment,e),Ce(u.$$.fragment,e),Ce(d.$$.fragment,e),Ce(h.$$.fragment,e),Ce(v.$$.fragment,e),m=!0)},o(e){ke(i.$$.fragment,e),ke(a.$$.fragment,e),ke(u.$$.fragment,e),ke(d.$$.fragment,e),ke(h.$$.fragment,e),ke(v.$$.fragment,e),m=!1},d(n){n&&D(t),Ie(i),Ie(a),Ie(u),Ie(d),e[11](null),Ie(h),Ie(v),y=!1,b()}}}function lx(e,t,n){let r,o;const i=Le(null);u(e,i,(e=>n(4,o=e)));let s=!1;const a=window.innerWidth<765,l=new Date,c=(()=>{const e=new Date;return e.setHours(Math.max(0,e.getHours()-2)),e.toLocaleTimeString()})();let d=!0;let f=new URL(document.location).searchParams;f.has("b64")&&(f=new URLSearchParams(window.atob(f.get("b64"))));const p=f.getAll("c"),h=f.has("d")?new Date(f.get("d")):l,g=f.get("v"),v=a?{left:"title",center:"prev,today,next",right:"resourceTimelineDay dayGridMonth,timeGridWeek,timeGridDay,listWeek"}:{left:"prev,next today",center:"title",right:"resourceTimelineDay dayGridMonth,timeGridWeek,timeGridDay,listWeek"};let m,y,b=Le({initialView:["resourceTimelineDay","dayGridMonth","timeGridWeek","timeGridDay","listWeek"].includes(g)?g:a?"listWeek":"timeGridWeek",initialDate:"Invalid Date"===h.toString()?l:h,plugins:[Zu,du,of,yf,Nh,rc,e_],locale:Ph,allDayContent:"",headerToolbar:v,buttonText:{resourceTimelineDay:"Salles"},scrollTime:"08:00:00",resourceGroupField:"building",resourceAreaWidth:"27%",resources:Object.entries(Ky.rooms).flatMap((([e,t])=>t.map((t=>({id:`${e}-${t}`,building:e,title:t}))))),height:"100%",schedulerLicenseKey:"CC-Attribution-NonCommercial-NoDerivatives",nowIndicator:!0,now:l,scrollTime:c,scrollTimeReset:!1,eventClick:e=>{n(1,s=!0),i.set(e.event)},titleFormat:{year:a?"2-digit":"numeric",month:a?"numeric":"long",day:"numeric"},loading:e=>{d=e,y&&(y.$set({isLoading:e}),e&&setTimeout((()=>{y.$set({isLoading:!1})}),3e3))},eventSources:[],themeSystem:"bootstrap5",nextDayThreshold:"05:00:00",progressiveEventRendering:!0,expandRows:!0,eventDidMount:e=>{const t=e.event.extendedProps.short_name;void 0!==t&&new dE(e.el,{title:t,trigger:"hover",placement:"top"})},viewDidMount:e=>{y=new Jb({target:e.el,props:{isLoading:d}})},viewWillUnmount:e=>y.$destroy()});u(e,b,(e=>n(3,r=e)));const _=e=>{let t=[];if(!e)return[];if(Array.isArray(e))e.forEach((e=>t=t.concat(_(e))));else for(const[n,r]of Object.entries(e))t=t.concat(n,_(r));return t};let w=[];const C=p.length>0?_(p.map((e=>ob(e)))).concat(p):eb,k=Tb.debounce((e=>{b.update((t=>({...t,eventSources:e.map(ub).filter((e=>!!e))})))}),300);return e.$$.update=()=>{1&e.$$.dirty&&k(w)},[w,s,m,r,o,i,()=>n(1,s=!s),b,C,()=>window.print(),function(e){w=e,n(0,w)},function(e){oe[e?"unshift":"push"]((()=>{m=e,n(2,m)}))}]}gn("");return new class extends Ne{constructor(e){super(),Oe(this,e,lx,ax,a,{})}}({target:document.body})}();
|
||
//# sourceMappingURL=bundle.js.map
|