tocco-legacy-bundle 0.1.48 → 0.1.49
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/changelog.md +4 -0
- package/dist/chunk-vendor-icons.afd9b24fddf7e67e9179.js +1 -0
- package/dist/docs-browser.js +2 -2
- package/dist/entity-browser.js +1 -1
- package/dist/input-edit.js +1 -1
- package/dist/installation-delta-action.js +1 -1
- package/dist/login.js +1 -1
- package/dist/merge.js +1 -1
- package/dist/password-update.js +1 -1
- package/dist/resource-scheduler.js +1 -1
- package/dist/sso-login.js +1 -1
- package/dist/two-factor-connector.js +1 -1
- package/package.json +1 -1
- package/dist/chunk-vendor-icons.f2e43db7d76db7b15883.js +0 -1
|
@@ -53,4 +53,4 @@ object-assign
|
|
|
53
53
|
*
|
|
54
54
|
* This source code is licensed under the MIT license found in the
|
|
55
55
|
* LICENSE file in the root directory of this source tree.
|
|
56
|
-
*/var r=n(1024),o=n(61688);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=r.useRef,c=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=u((function(){function e(e){if(!c){if(c=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,c=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var p=a(e,d[0],d[1]);return c((function(){f.hasValue=!0,f.value=p}),[p]),l(p),p}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const i=new Uint8Array(16);function a(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}const s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function c(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return c(o)}},2851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===i(t)?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var a=encodeURI(e).split(/%..|./).length-1;return a>=n&&(void 0===r||a<=r)};var r,o=(r=n(65571))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},83868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,o.default)(t,u)).require_display_name||t.allow_display_name){var n=e.match(l);if(n){var c=n[1];if(e=e.replace(c,"").replace(/(^<|>$)/g,""),c.endsWith(" ")&&(c=c.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(c))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var g=e.split("@"),v=g.pop(),y=v.toLowerCase();if(t.host_blacklist.includes(y))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(y))return!1;var b=g.join("@");if(t.domain_specific_validation&&("gmail.com"===y||"googlemail.com"===y)){var w=(b=b.toLowerCase()).split("+")[0];if(!(0,i.default)(w.replace(/\./g,""),{min:6,max:30}))return!1;for(var O=w.split("."),x=0;x<O.length;x++)if(!f.test(O[x]))return!1}if(!(!1!==t.ignore_max_length||(0,i.default)(b,{max:64})&&(0,i.default)(v,{max:254})))return!1;if(!(0,a.default)(v,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length})){if(!t.allow_ip_domain)return!1;if(!(0,s.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var S=v.slice(1,-1);if(0===S.length||!(0,s.default)(S))return!1}}if('"'===b[0])return b=b.slice(1,b.length-1),t.allow_utf8_local_part?m.test(b):p.test(b);for(var E=t.allow_utf8_local_part?h:d,k=b.split("."),_=0;_<k.length;_++)if(!E.test(k[_]))return!1;if(t.blacklisted_chars&&-1!==b.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=c(n(65571)),o=c(n(84808)),i=c(n(2851)),a=c(n(10221)),s=c(n(61028));function c(e){return e&&e.__esModule?e:{default:e}}var u={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},l=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,f=/^[a-z\d]+$/,p=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,m=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;e.exports=t.default,e.exports.default=t.default},10221:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,o.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var n=e.split("."),i=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return n.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=i(n(65571)),o=i(n(84808));function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},61028:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n)return s.test(t);if("6"===n)return u.test(t);return!1};var r,o=(r=n(65571))&&r.__esModule?r:{default:r};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),s=new RegExp("^".concat(a,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(a,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(a,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(a,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(a,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(a,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(a,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(a,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},66823:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,a.default)(t,u)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,s,f,p,h,m,g,v;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(n=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((s=g.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;var y=s.split(":"),b=(S=2,function(e){if(Array.isArray(e))return e}(x=y)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(x,S)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(x,S)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=b[0],O=b[1];if(""===w&&""===O)return!1}var x,S;p=g.join("@"),m=null,v=null;var E=p.match(l);E?(f="",v=E[1],m=E[2]||null):(g=p.split(":"),f=g.shift(),g.length&&(m=g.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return d(f,t.host_whitelist);if(""===f&&!t.require_host)return!0;if(!((0,i.default)(f)||(0,o.default)(f,t)||v&&(0,i.default)(v,6)))return!1;if(f=f||v,t.host_blacklist&&d(f,t.host_blacklist))return!1;return!0};var r=s(n(65571)),o=s(n(10221)),i=s(n(61028)),a=s(n(84808));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},l=/^\[([^\]]+)\](?::([0-9]+))?$/;function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||(o=r,"[object RegExp]"===Object.prototype.toString.call(o)&&r.test(e)))return!0}var o;return!1}e.exports=t.default,e.exports.default=t.default},65571:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=n(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},84808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},81395:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,o,i,a),s}n.d(t,{Z:()=>r})},57220:(e,t,n)=>{"use strict";function r(e,t,n){var r=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if("timeZoneName"===n[r].type)return n[r].value}(r,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(r,t)}n.d(t,{Z:()=>r})},63479:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(86862),o=n(81395),i=36e5,a={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function s(e,t,n){var r,s,d;if(!e)return 0;if(r=a.timezoneZ.exec(e))return 0;if(r=a.timezoneHH.exec(e))return u(d=parseInt(r[1],10))?-d*i:NaN;if(r=a.timezoneHHMM.exec(e)){d=parseInt(r[1],10);var f=parseInt(r[2],10);return u(d,f)?(s=Math.abs(d)*i+6e4*f,d>0?-s:s):NaN}if(function(e){if(l[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),l[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var p=n?t:function(e){return(0,o.Z)(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),h=c(p,e),m=n?h:function(e,t,n){var r=e.getTime()-t,o=c(new Date(r),n);if(t===o)return t;r-=o-t;var i=c(new Date(r),n);if(o===i)return o;return Math.max(o,i)}(t,h,e);return-m}return NaN}function c(e,t){var n=(0,r.Z)(e,t),i=(0,o.Z)(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),a=e.getTime(),s=a%1e3;return i-(a-=s>=0?s:1e3+s)}function u(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var l={}},53669:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/},86862:(e,t,n)=>{"use strict";function r(e,t){var n=function(e){if(!i[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;i[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return i[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var a=o[n[i].type];a>=0&&(r[a]=parseInt(n[i].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(n,e)}n.d(t,{Z:()=>r});var o={year:0,month:1,day:2,hour:3,minute:4,second:5};var i={}},6388:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(57220),o=n(63479);function i(e,t){var n=e?(0,o.Z)(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function a(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}function s(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+a(Math.floor(o/60),2)+n+a(Math.floor(o%60),2)}function c(e,t){return e%60==0?(e>0?"-":"+")+a(Math.abs(e)/60,2):s(e,t)}const u={X:function(e,t,n,r){var o=i(r.timeZone,r._originalDate||e);if(0===o)return"Z";switch(t){case"X":return c(o);case"XXXX":case"XX":return s(o);default:return s(o,":")}},x:function(e,t,n,r){var o=i(r.timeZone,r._originalDate||e);switch(t){case"x":return c(o);case"xxxx":case"xx":return s(o);default:return s(o,":")}},O:function(e,t,n,r){var o=i(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var s=t||"";return n+String(o)+s+a(i,2)}(o,":");default:return"GMT"+s(o,":")}},z:function(e,t,n,o){var i=o._originalDate||e;switch(t){case"z":case"zz":case"zzz":return(0,r.Z)("short",i,o);default:return(0,r.Z)("long",i,o)}}}},39802:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(15616),o=n(6388),i=n(97580),a=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(e,t,n){var s=String(t),c=n||{},u=s.match(a);if(u){var l=(0,i.Z)(e,c);s=u.reduce((function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),r="'"===e[n-1],i=e.replace(t,"'"+o.Z[t[0]](l,t,null,c)+"'");return r?i.substring(0,n-1)+i.substring(n+1):i}),s)}return r(e,s,c)}},31492:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(46420),o=n(39802),i=n(69599);function a(e,t,n,a){var s=r(a);return s.timeZone=t,(0,o.Z)((0,i.Z)(e,t),n,s)}},97580:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(82084),o=n(93561),i=n(63479),a=n(53669),s=36e5,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:a.Z};function u(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},a=null==n.additionalDigits?2:r(n.additionalDigits);if(2!==a&&1!==a&&0!==a)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var s=l(e),c=d(s.date,a),u=c.year,h=c.restDateString,m=f(h,u);if(isNaN(m))return new Date(NaN);if(m){var g,v=m.getTime(),y=0;if(s.time&&(y=p(s.time),isNaN(y)))return new Date(NaN);if(s.timeZone||n.timeZone){if(g=(0,i.Z)(s.timeZone||n.timeZone,new Date(v+y)),isNaN(g))return new Date(NaN)}else g=o(new Date(v+y)),g=o(new Date(v+y+g));return new Date(v+y+g)}return new Date(NaN)}function l(e){var t,n={},r=c.dateTimePattern.exec(e);if(r?(n.date=r[1],t=r[3]):(r=c.datePattern.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e),t){var o=c.timeZone.exec(t);o?(n.time=t.replace(o[1],""),n.timeZone=o[1].trim()):n.time=t}return n}function d(e,t){var n,r=c.YYY[t],o=c.YYYYY[t];if(n=c.YYYY.exec(e)||o.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=c.YY.exec(e)||r.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}function f(e,t){if(null===t)return null;var n,r,o,i;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=c.MM.exec(e))return r=new Date(0),y(t,o=parseInt(n[1],10)-1)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=c.DDD.exec(e)){r=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=v(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=c.MMDD.exec(e)){r=new Date(0),o=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return y(t,o,s)?(r.setUTCFullYear(t,o,s),r):new Date(NaN)}if(n=c.Www.exec(e))return b(t,i=parseInt(n[1],10)-1)?h(t,i):new Date(NaN);if(n=c.WwwD.exec(e)){i=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return b(t,i,u)?h(t,i,u):new Date(NaN)}return null}function p(e){var t,n,r;if(t=c.HH.exec(e))return w(n=parseFloat(t[1].replace(",",".")))?n%24*s:NaN;if(t=c.HHMM.exec(e))return w(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*s+6e4*r:NaN;if(t=c.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return w(n,r,o)?n%24*s+6e4*r+1e3*o:NaN}return null}function h(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}var m=[31,28,31,30,31,30,31,31,30,31,30,31],g=[31,29,31,30,31,30,31,31,30,31,30,31];function v(e){return e%400==0||e%4==0&&e%100!=0}function y(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=v(e);if(r&&n>g[t])return!1;if(!r&&n>m[t])return!1}return!0}function b(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function w(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}},69599:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(63479),o=n(97580);function i(e,t,n){var i=(0,o.Z)(e,n),a=(0,r.Z)(t,i,!0),s=new Date(i.getTime()-a),c=new Date(0);return c.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),c.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),c}},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},1165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},57693:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},84311:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},51144:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:()=>o})},39068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(40477),o=n(56158),i=n(82884);function a(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},40477:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},49027:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(73757);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},56158:(e,t,n)=>{"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:()=>r})},96092:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},24328:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},82884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(62360),o=n(57693);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},73757:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},86578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(1165),o=n(96092),i=n(78001),a=n(24328);function s(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}},62360:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.amdD=function(){throw new Error("define cannot be used indirect")},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>885===e?"chunk-ckeditor.0daf8b199dba27bea4fd.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"2f610cd0accfa8ef7628",198:"ebf0d3eaf5f744f1cfa0",560:"87a276b3cb43e136f4e1",608:"3f5c2d9d74c51e74c5b0",614:"f2e43db7d76db7b15883",759:"3e178a7310a92d3020c3",817:"b848709373c74585818e",877:"ee24f52222afe086ba7e"}[e]+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+o){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=713,a.p="/",(()=>{var e={713:0,226:0,828:0,826:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,c]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(c)c(a)}for(t&&t(n);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var s={};return(()=>{"use strict";a.r(s),a.d(s,{app:()=>wp});var e=a(68803),t=a(45697),n=a.n(t),r=a(50600),o=a(22731),i=a(19743),c=a(19241),u=a(30604);const l={ID:"ID",QUERY:"QUERY"},d=n().shape({entityName:n().string.isRequired,ids:function(e,t,n){if(e.selection&&e.selection.type===l.ID&&!e.selection[t])return new Error("Selection.ids prop not defined. Component: ".concat(n,"'."))},query:function(e,t,n){if(e.selection&&e.selection.type===l.QUERY&&!e.selection[t])return new Error("Selection.query prop not defined. Component: ".concat(n,"'."))},type:n().oneOf(Object.keys(l)).isRequired,count:n().number});var f=a(59713),p=a.n(f),h=a(87757),m=a.n(h),g=a(34857),v=a(44759),y=m().mark(x);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=1e5;function x(e,t){var n,r;return m().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n=e.entityName,e.type!==l.QUERY){o.next=9;break}return o.next=4,(0,g.RE)(t,e.entityName,w(w({},e.query),{},{limit:O}));case 4:if(!((r=o.sent).length>O)){o.next=8;break}return o.next=8,(0,g.RE)(v.Z.logError,"Selected records exceed limit of ".concat(O));case 8:return o.abrupt("return",{entityName:n,keys:r.map((function(e){return e.key}))});case 9:return o.abrupt("return",{entityName:n,keys:e.ids});case 10:case"end":return o.stop()}}),y)}const S={getEntities:x,getSingleKey:function(e,t){if(e.entityName!==t)throw new Error("Only selection of ".concat(t," supported"));if("ID"!==e.type)throw new Error("Only ID selection type supported");if(!e.ids||1!==e.ids.length)throw new Error("Exactly one ".concat(t," must be selected"));return e.ids[0]},propType:d,selectionTypes:l};var E=a(74806),k=a(50558),_=a(63038),C=a.n(_),A=a(1024),P=a(16511),j=a(19917),D=a(50258),T=a(84286),R=a(2913),Z=a(35997),M=a(319),I=a.n(M),N=16,F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return t;e=L(e);var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],N),g:parseInt(n[2],N),b:parseInt(n[3],N)}:t},L=function(e){return e.startsWith("#")||(e="#"+e),e.padEnd(7,"0")},B=function(e){var t=e/255;return t<=.03928?t/=12.92:t=Math.pow((t+.055)/1.055,2.4),t},H=function(e){return.2126*B(e.r)+.7152*B(e.g)+.0722*B(e.b)};const U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#FFFFFF",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000000",r=F(e);return r&&H(r)>.25?n:t},W=Object.freeze({EXISTING:"existing",ACCEPTED:"accepted",NONE:"none"});function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var q,Y,G,K,Q,X,$=function(e,t){return e+t},J=function(e){return e.map((function(e){return{title:e.label,id:$(e.key,e.model),entityKey:e.key,calendarType:e.calendarType,entityModel:e.model}}))},ee=a(69100),te=a.n(ee),ne=a(30314),re={},oe=[],ie=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ae(e,t){for(var n in t)e[n]=t[n];return e}function se(e){var t=e.parentNode;t&&t.removeChild(e)}function ce(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?q.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return ue(e,a,r,o,null)}function ue(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?++G:o};return null==o&&null!=Y.vnode&&Y.vnode(i),i}function le(e){return e.children}function de(e,t){this.props=e,this.context=t}function fe(e,t){if(null==t)return e.__?fe(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?fe(e):null}function pe(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 pe(e)}}function he(e){(!e.__d&&(e.__d=!0)&&K.push(e)&&!me.__r++||Q!==Y.debounceRendering)&&((Q=Y.debounceRendering)||setTimeout)(me)}function me(){for(var e;me.__r=K.length;)e=K.sort((function(e,t){return e.__v.__b-t.__v.__b})),K=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=ae({},o)).__v=o.__v+1,Ee(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?fe(o):i,o.__h),ke(n,o),o.__e!=i&&pe(o)))}))}function ge(e,t,n,r,o,i,a,s,c,u){var l,d,f,p,h,m,g,v=r&&r.__k||oe,y=v.length;for(n.__k=[],l=0;l<t.length;l++)if(null!=(p=n.__k[l]=null==(p=t[l])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?ue(null,p,null,null,p):Array.isArray(p)?ue(le,{children:p},null,null,null):p.__b>0?ue(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(f=v[l])||f&&p.key==f.key&&p.type===f.type)v[l]=void 0;else for(d=0;d<y;d++){if((f=v[d])&&p.key==f.key&&p.type===f.type){v[d]=void 0;break}f=null}Ee(e,p,f=f||re,o,i,a,s,c,u),h=p.__e,(d=p.ref)&&f.ref!=d&&(g||(g=[]),f.ref&&g.push(f.ref,null,p),g.push(d,p.__c||h,p)),null!=h?(null==m&&(m=h),"function"==typeof p.type&&p.__k===f.__k?p.__d=c=ve(p,c,e):c=be(e,p,f,v,h,c),"function"==typeof n.type&&(n.__d=c)):c&&f.__e==c&&c.parentNode!=e&&(c=fe(f))}for(n.__e=m,l=y;l--;)null!=v[l]&&Ae(v[l],v[l]);if(g)for(l=0;l<g.length;l++)Ce(g[l],g[++l],g[++l])}function ve(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?ve(r,t,n):be(n,r,r,o,r.__e,t));return t}function ye(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){ye(e,t)})):t.push(e)),t}function be(e,t,n,r,o,i){var a,s,c;if(void 0!==t.__d)a=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),a=null;else{for(s=i,c=0;(s=s.nextSibling)&&c<r.length;c+=1)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function we(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||ie.test(t)?n:n+"px"}function Oe(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||we(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||we(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?Se:xe,i):e.removeEventListener(t,i?Se:xe,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("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 xe(e){this.l[e.type+!1](Y.event?Y.event(e):e)}function Se(e){this.l[e.type+!0](Y.event?Y.event(e):e)}function Ee(e,t,n,r,o,i,a,s,c){var u,l,d,f,p,h,m,g,v,y,b,w,O,x,S,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(u=Y.__b)&&u(t);try{e:if("function"==typeof E){if(g=t.props,v=(u=E.contextType)&&r[u.__c],y=u?v?v.props.value:u.__:r,n.__c?m=(l=t.__c=n.__c).__=l.__E:("prototype"in E&&E.prototype.render?t.__c=l=new E(g,y):(t.__c=l=new de(g,y),l.constructor=E,l.render=Pe),v&&v.sub(l),l.props=g,l.state||(l.state={}),l.context=y,l.__n=r,d=l.__d=!0,l.__h=[],l._sb=[]),null==l.__s&&(l.__s=l.state),null!=E.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=ae({},l.__s)),ae(l.__s,E.getDerivedStateFromProps(g,l.__s))),f=l.props,p=l.state,d)null==E.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==f&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,y),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,y)||t.__v===n.__v){for(l.props=g,l.state=l.__s,t.__v!==n.__v&&(l.__d=!1),l.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b<l._sb.length;b++)l.__h.push(l._sb[b]);l._sb=[],l.__h.length&&a.push(l);break e}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,y),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(f,p,h)}))}if(l.context=y,l.props=g,l.__v=t,l.__P=e,w=Y.__r,O=0,"prototype"in E&&E.prototype.render){for(l.state=l.__s,l.__d=!1,w&&w(t),u=l.render(l.props,l.state,l.context),x=0;x<l._sb.length;x++)l.__h.push(l._sb[x]);l._sb=[]}else do{l.__d=!1,w&&w(t),u=l.render(l.props,l.state,l.context),l.state=l.__s}while(l.__d&&++O<25);l.state=l.__s,null!=l.getChildContext&&(r=ae(ae({},r),l.getChildContext())),d||null==l.getSnapshotBeforeUpdate||(h=l.getSnapshotBeforeUpdate(f,p)),S=null!=u&&u.type===le&&null==u.key?u.props.children:u,ge(e,Array.isArray(S)?S:[S],t,n,r,o,i,a,s,c),l.base=t.__e,t.__h=null,l.__h.length&&a.push(l),m&&(l.__E=l.__=null),l.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=_e(n.__e,t,n,r,o,i,a,c);(u=Y.diffed)&&u(t)}catch(e){t.__v=null,(c||null!=i)&&(t.__e=s,t.__h=!!c,i[i.indexOf(s)]=null),Y.__e(e,t,n)}}function ke(e,t){Y.__c&&Y.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Y.__e(e,t.__v)}}))}function _e(e,t,n,r,o,i,a,s){var c,u,l,d=n.props,f=t.props,p=t.type,h=0;if("svg"===p&&(o=!0),null!=i)for(;h<i.length;h++)if((c=i[h])&&"setAttribute"in c==!!p&&(p?c.localName===p:3===c.nodeType)){e=c,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,s=!1}if(null===p)d===f||s&&e.data===f||(e.data=f);else{if(i=i&&q.call(e.childNodes),u=(d=n.props||re).dangerouslySetInnerHTML,l=f.dangerouslySetInnerHTML,!s){if(null!=i)for(d={},h=0;h<e.attributes.length;h++)d[e.attributes[h].name]=e.attributes[h].value;(l||u)&&(l&&(u&&l.__html==u.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||Oe(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]||Oe(e,i,t[i],n[i],r)}(e,f,d,o,s),l)t.__k=[];else if(h=t.props.children,ge(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==p,i,a,i?i[0]:n.__k&&fe(n,0),s),null!=i)for(h=i.length;h--;)null!=i[h]&&se(i[h]);s||("value"in f&&void 0!==(h=f.value)&&(h!==e.value||"progress"===p&&!h||"option"===p&&h!==d.value)&&Oe(e,"value",h,d.value,!1),"checked"in f&&void 0!==(h=f.checked)&&h!==e.checked&&Oe(e,"checked",h,d.checked,!1))}return e}function Ce(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Y.__e(e,n)}}function Ae(e,t,n){var r,o;if(Y.unmount&&Y.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ce(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Y.__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]&&Ae(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||se(e.__e),e.__=e.__e=e.__d=void 0}function Pe(e,t,n){return this.constructor(e,n)}function je(e,t,n){var r,o,i;Y.__&&Y.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],Ee(t,e=(!r&&n||t).__k=ce(le,null,[e]),o||re,re,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?q.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),ke(i,e)}function De(e,t){var n={__c:t="__cC"+X++,__: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(he)},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}q=oe.slice,Y={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},G=0,de.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=ae({},this.state),"function"==typeof e&&(e=e(ae({},n),this.props)),e&&ae(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),he(this))},de.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),he(this))},de.prototype.render=le,K=[],me.__r=0,X=0;var Te,Re,Ze,Me=[],Ie=[],Ne=Y.__b,Fe=Y.__r,Le=Y.diffed,Be=Y.__c,He=Y.unmount;function Ue(){for(var e;e=Me.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ve),e.__H.__h.forEach(qe),e.__H.__h=[]}catch(t){e.__H.__h=[],Y.__e(t,e.__v)}}Y.__b=function(e){Te=null,Ne&&Ne(e)},Y.__r=function(e){Fe&&Fe(e),0;var t=(Te=e.__c).__H;t&&(Re===Te?(t.__h=[],Te.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Ie,e.__N=e.i=void 0}))):(t.__h.forEach(Ve),t.__h.forEach(qe),t.__h=[])),Re=Te},Y.diffed=function(e){Le&&Le(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Me.push(t)&&Ze===Y.requestAnimationFrame||((Ze=Y.requestAnimationFrame)||ze)(Ue)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Ie&&(e.__=e.__V),e.i=void 0,e.__V=Ie}))),Re=Te=null},Y.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ve),e.__h=e.__h.filter((function(e){return!e.__||qe(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Y.__e(n,e.__v)}})),Be&&Be(e,t)},Y.unmount=function(e){He&&He(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Ve(e)}catch(e){t=e}})),n.__H=void 0,t&&Y.__e(t,n.__v))};var We="function"==typeof requestAnimationFrame;function ze(e){var t,n=function(){clearTimeout(r),We&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);We&&(t=requestAnimationFrame(n))}function Ve(e){var t=Te,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Te=t}function qe(e){var t=Te;e.__c=e.__(),Te=t}function Ye(e,t){for(var n in t)e[n]=t[n];return e}function Ge(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 Ke(e){this.props=e}(Ke.prototype=new de).isPureReactComponent=!0,Ke.prototype.shouldComponentUpdate=function(e,t){return Ge(this.props,e)||Ge(this.state,t)};var Qe=Y.__b;Y.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Qe&&Qe(e)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var Xe=Y.__e;Y.__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);Xe(e,t,n,r)};var $e=Y.unmount;function Je(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=Ye({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Je(e,t,n)}))),e}function et(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return et(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 tt(){this.__u=0,this.t=null,this.__b=null}function nt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function rt(){this.u=null,this.o=null}Y.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),$e&&$e(e)},(tt.prototype=new de).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=nt(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=et(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},tt.prototype.componentWillUnmount=function(){this.t=[]},tt.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]=Je(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&ce(le,null,e.fallback);return o&&(o.__h=null),[ce(le,null,t.__a?null:e.children),o]};var ot=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 it(e){return this.getChildContext=function(){return e.context},e.children}function at(e){var t=this,n=e.i;t.componentWillUnmount=function(){je(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)}}),je(ce(it,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function st(e,t){var n=ce(at,{__v:e,i:t});return n.containerInfo=t,n}(rt.prototype=new de).__a=function(e){var t=this,n=nt(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ot(t,e,r)):o()};n?n(i):i()}},rt.prototype.render=function(e){this.u=null,this.o=new Map;var t=ye(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},rt.prototype.componentDidUpdate=rt.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){ot(e,n,t)}))};var ct="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ut=/^(?: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]/,lt="undefined"!=typeof document,dt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};de.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(de.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var ft=Y.event;function pt(){}function ht(){return this.cancelBubble}function mt(){return this.defaultPrevented}Y.event=function(e){return ft&&(e=ft(e)),e.persist=pt,e.isPropagationStopped=ht,e.isDefaultPrevented=mt,e.nativeEvent=e};var gt={configurable:!0,get:function(){return this.class}},vt=Y.vnode;Y.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 a=n[i];lt&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!dt(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&&ut.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=ye(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=ye(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&&(gt.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",gt))}e.$$typeof=ct,vt&&vt(e)};var yt=Y.__r;Y.__r=function(e){yt&&yt(e),e.__c};const bt=[],wt=new WeakMap;function Ot(e){e&&"undefined"!=typeof document&&bt.push(xt(document.head,e))}function xt(e,t){const n=document.createElement("style"),r=function(){void 0===St&&(St=function(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");if(t)return t.nonce||"";return""}());return St}();return r&&(n.nonce=r),n.innerText=t,e.appendChild(n),n}let St;"undefined"!=typeof document&&wt.set(document,!0);class Et{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;if(e in n){if(t)delete n[e];else{n[e]-=1,n[e]<=0&&delete n[e]}this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function kt(e){e.parentNode&&e.parentNode.removeChild(e)}function _t(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(Ct(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function Ct(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function At(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let o=n[e].querySelectorAll(t);for(let e=0;e<o.length;e+=1)r.push(o[e])}return r}const Pt=/(top|left|right|bottom|width|height)$/i;function jt(e,t){for(let n in t)Dt(e,n,t[n])}function Dt(e,t,n){null==n?e.style[t]="":"number"==typeof n&&Pt.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function Tt(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}let Rt=0;function Zt(){return Rt+=1,"fc-dom-"+Rt}function Mt(e){e.preventDefault()}function It(e,t,n,r){let o=function(e,t){return n=>{let r=_t(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,o),()=>{e.removeEventListener(t,o)}}const Nt=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Ft(e){return Object.assign({onClick:e},Lt(e))}function Lt(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let Bt=0;function Ht(){return Bt+=1,String(Bt)}function Ut(){document.body.classList.add("fc-not-allowed")}function Wt(){document.body.classList.remove("fc-not-allowed")}function zt(e){let 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)n=o[t],"string"==typeof n?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 Vt(e,t,n){let r,o;for(r=0;r<n.length;r+=1)if(o=qt(e,t,n[r]),o)return o;return 0}function qt(e,t,n){return n.func?n.func(e,t):Yt(e[n.field],t[n.field])*(n.order||1)}function Yt(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 Gt(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function Kt(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce(((e,t,n)=>e.replace("$"+n,t||"")),e):n}function Qt(e,t){return e-t}function Xt(e){return e%1==0}function $t(e){let 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}const Jt=["years","months","days","milliseconds"],en=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function tn(e,t){return"string"==typeof e?function(e){let t=en.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(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?nn(e):"number"==typeof e?nn({[t||"milliseconds"]:e}):null}function nn(e){let 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 rn(e){return e.years||e.months||e.milliseconds?0:e.days}function on(e){return an(e)/864e5}function an(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function sn(e,t){let n=null;for(let r=0;r<Jt.length;r+=1){let o=Jt[r];if(t[o]){let r=e[o]/t[o];if(!Xt(r)||null!==n&&n!==r)return null;n=r}else if(e[o])return null}return n}function cn(e){let 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 un(e,t,n){if(e===t)return!0;let 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}const ln=["sun","mon","tue","wed","thu","fri","sat"];function dn(e,t){let n=wn(e);return n[2]+=t,On(n)}function fn(e,t){let n=wn(e);return n[6]+=t,On(n)}function pn(e,t){return(t.valueOf()-e.valueOf())/864e5}function hn(e,t){return Sn(e)===Sn(t)?Math.round(pn(e,t)):null}function mn(e){return On([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function gn(e,t,n,r){let o=On([t,0,1+vn(t,n,r)]),i=mn(e),a=Math.round(pn(o,i));return Math.floor(a/7)+1}function vn(e,t,n){let r=7+t-n;return-((7+On([e,0,r]).getUTCDay()-t)%7)+r-1}function yn(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function bn(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 wn(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function On(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function xn(e){return!isNaN(e.valueOf())}function Sn(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function En(e,t,n=!1){let 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",_n(t,!0)))),r}function kn(e){return e.toISOString().replace(/T.*$/,"")}function _n(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=Math.round(r%60);return t?`${n+Gt(o,2)}:${Gt(i,2)}`:`GMT${n}${o}${i?`:${Gt(i,2)}`:""}`}function Cn(e,t,n){let r,o;return function(...i){if(r){if(!un(r,i)){n&&n(o);let r=e.apply(this,i);t&&t(r,o)||(o=r)}}else o=e.apply(this,i);return r=i,o}}function An(e,t,n){let r,o;return i=>{if(r){if(!cr(r,i)){n&&n(o);let r=e.call(this,i);t&&t(r,o)||(o=r)}}else o=e.call(this,i);return r=i,o}}function Pn(e,t,n){let r=[],o=[];return i=>{let a=r.length,s=i.length,c=0;for(;c<a;c+=1)if(i[c]){if(!un(r[c],i[c])){n&&n(o[c]);let r=e.apply(this,i[c]);t&&t(r,o[c])||(o[c]=r)}}else n&&n(o[c]);for(;c<s;c+=1)o[c]=e.apply(this,i[c]);return r=i,o.splice(s),o}}function jn(e,t,n){let r={},o={};return i=>{let a={};for(let s in i)if(o[s])if(un(r[s],i[s]))a[s]=o[s];else{n&&n(o[s]);let r=e.apply(this,i[s]);a[s]=t&&t(r,o[s])?o[s]:r}else a[s]=e.apply(this,i[s]);return r=i,o=a,a}}const Dn={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Tn={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Rn=/\s*([ap])\.?m\.?/i,Zn=/,/g,Mn=/\s+/g,In=/\u200e/g,Nn=/UTC|GMT/;class Fn{constructor(e){let t={},n={},r=0;for(let o in e)o in Dn?(n[o]=e[o],r=Math.max(Dn[o],r)):(t[o]=e[o],o in Tn&&(r=Math.max(Tn[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Cn(Ln)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:o,extendedSettings:i}=this,a=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(Sn(e)!==Sn(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!a)return this.format(e,n);let s=a;!(s>1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(s=1);let c=this.format(e,n),u=this.format(t,n);if(c===u)return c;let l=Ln(function(e,t){let n={};for(let r in e)(!(r in Tn)||Tn[r]<=t)&&(n[r]=e[r]);return n}(o,s),i,n),d=l(e),f=l(t),p=function(e,t,n,r){let o=0;for(;o<e.length;){let i=e.indexOf(t,o);if(-1===i)break;let a=e.substr(0,i);o=i+t.length;let s=e.substr(o),c=0;for(;c<n.length;){let e=n.indexOf(r,c);if(-1===e)break;let t=n.substr(0,e);c=e+r.length;let o=n.substr(c);if(a===t&&s===o)return{before:a,after:s}}}return null}(c,d,u,f),h=i.separator||r||n.defaultSeparator||"";return p?p.before+d+h+f+p.after:c+h+u}getLargestUnit(){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"}}}function Ln(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>_n(e.timeZoneOffset):0===r&&t.week?e=>function(e,t,n,r,o){let 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=Object.assign({},e),t=Object.assign({},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";let r,o=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return i=>{let a,{marker:s}=i;return a=r&&!s.getUTCMinutes()?r:o,function(e,t,n,r,o){e=e.replace(In,""),"short"===n.timeZoneName&&(e=function(e,t){let n=!1;e=e.replace(Nn,(()=>(n=!0,t))),n||(e+=` ${t}`);return e}(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":_n(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Zn,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(Rn,"").trim():"narrow"===r.meridiem?e=e.replace(Rn,((e,t)=>t.toLocaleLowerCase())):"short"===r.meridiem?e=e.replace(Rn,((e,t)=>`${t.toLocaleLowerCase()}m`)):"lowercase"===r.meridiem&&(e=e.replace(Rn,(e=>e.toLocaleLowerCase())));return e=(e=e.replace(Mn," ")).trim()}(a.format(s),i,e,t,n)}}(e,t,n)}function Bn(e,t){let 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 Hn(e,t,n,r){let o=Bn(e,n.calendarSystem);return{date:o,start:o,end:t?Bn(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class Un{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,Hn(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,Hn(e,t,n,r))}}class Wn{constructor(e){this.func=e}format(e,t,n){return this.func(Hn(e,null,t,n))}formatRange(e,t,n,r){return this.func(Hn(e,t,n,r))}}function zn(e){return"object"==typeof e&&e?new Fn(e):"string"==typeof e?new Un(e):"function"==typeof e?new Wn(e):null}const Vn={navLinkDayClick:tr,navLinkWeekClick:tr,duration:tn,bootstrapFontAwesome:tr,buttonIcons:tr,customButtons:tr,defaultAllDayEventDuration:tn,defaultTimedEventDuration:tn,nextDayThreshold:tn,scrollTime:tn,scrollTimeReset:Boolean,slotMinTime:tn,slotMaxTime:tn,dayPopoverFormat:zn,slotDuration:tn,snapDuration:tn,headerToolbar:tr,footerToolbar:tr,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:zn,dayHeaderClassNames:tr,dayHeaderContent:tr,dayHeaderDidMount:tr,dayHeaderWillUnmount:tr,dayCellClassNames:tr,dayCellContent:tr,dayCellDidMount:tr,dayCellWillUnmount:tr,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:tr,weekNumbers:Boolean,weekNumberClassNames:tr,weekNumberContent:tr,weekNumberDidMount:tr,weekNumberWillUnmount:tr,editable:Boolean,viewClassNames:tr,viewDidMount:tr,viewWillUnmount:tr,nowIndicator:Boolean,nowIndicatorClassNames:tr,nowIndicatorContent:tr,nowIndicatorDidMount:tr,nowIndicatorWillUnmount:tr,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:tr,locale:tr,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:tr,eventOrder:zt,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:tr,contentHeight:tr,direction:String,weekNumberFormat:zn,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:tr,initialDate:tr,now:tr,eventDataTransform:tr,stickyHeaderDates:tr,stickyFooterScrollbar:tr,viewHeight:tr,defaultAllDay:Boolean,eventSourceFailure:tr,eventSourceSuccess:tr,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:tr,eventConstraint:tr,eventAllow:tr,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:tr,eventContent:tr,eventDidMount:tr,eventWillUnmount:tr,selectConstraint:tr,selectOverlap:tr,selectAllow:tr,droppable:Boolean,unselectCancel:String,slotLabelFormat:tr,slotLaneClassNames:tr,slotLaneContent:tr,slotLaneDidMount:tr,slotLaneWillUnmount:tr,slotLabelClassNames:tr,slotLabelContent:tr,slotLabelDidMount:tr,slotLabelWillUnmount:tr,dayMaxEvents:tr,dayMaxEventRows:tr,dayMinWidth:Number,slotLabelInterval:tn,allDayText:String,allDayClassNames:tr,allDayContent:tr,allDayDidMount:tr,allDayWillUnmount:tr,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:zn,rerenderDelay:Number,moreLinkText:tr,moreLinkHint:tr,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:tr,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:tn,hiddenDays:tr,fixedWeekCount:Boolean,validRange:tr,visibleRange:tr,titleFormat:tr,eventInteractive:Boolean,noEventsText:String,viewHint:tr,navLinkHint:tr,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:tr,moreLinkClassNames:tr,moreLinkContent:tr,moreLinkDidMount:tr,moreLinkWillUnmount:tr,monthStartFormat:zn,handleCustomRendering:tr,customRenderingMetaMap:tr,customRenderingReplacesEl:Boolean},qn={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,monthStartFormat:{month:"long",day:"numeric"}},Yn={datesSet:tr,eventsSet:tr,eventAdd:tr,eventChange:tr,eventRemove:tr,windowResize:tr,eventClick:tr,eventMouseEnter:tr,eventMouseLeave:tr,select:tr,unselect:tr,loading:tr,_unmount:tr,_beforeprint:tr,_afterprint:tr,_noEventDrop:tr,_noEventResize:tr,_resize:tr,_scrollRequest:tr},Gn={buttonText:tr,buttonHints:tr,views:tr,plugins:tr,initialEvents:tr,events:tr,eventSources:tr},Kn={headerToolbar:Qn,footerToolbar:Qn,buttonText:Qn,buttonHints:Qn,buttonIcons:Qn,dateIncrement:Qn,plugins:Xn,events:Xn,eventSources:Xn,resources:Xn};function Qn(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?cr(e,t):e===t}function Xn(e,t){return Array.isArray(e)&&Array.isArray(t)?un(e,t):e===t}const $n={type:String,component:tr,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:tr,usesMinMaxTime:Boolean,classNames:tr,content:tr,didMount:tr,willUnmount:tr};function Jn(e){return rr(e,Kn)}function er(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function tr(e){return e}const{hasOwnProperty:nr}=Object.prototype;function rr(e,t){let n={};if(t)for(let r in t)if(t[r]===Qn){let t=[];for(let o=e.length-1;o>=0;o-=1){let i=e[o][r];if("object"==typeof i&&i)t.unshift(i);else if(void 0!==i){n[r]=i;break}}t.length&&(n[r]=rr(t))}for(let t=e.length-1;t>=0;t-=1){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function or(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function ir(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function ar(e){let t={};for(let n of e)t[n]=!0;return t}function sr(e){let t=[];for(let n in e)t.push(e[n]);return t}function cr(e,t){if(e===t)return!0;for(let n in e)if(nr.call(e,n)&&!(n in t))return!1;for(let n in t)if(nr.call(t,n)&&e[n]!==t[n])return!1;return!0}const ur=/^on[A-Z]/;function lr(e,t){let n=[];for(let r in e)nr.call(e,r)&&(r in t||n.push(r));for(let r in t)nr.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function dr(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e)||!fr(e[r],t[r],n[r]))return!1;for(let n in e)if(!(n in t))return!1;return!0}function fr(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function pr(e,t=0,n,r=1){let o=[];null==n&&(n=Object.keys(e).length);for(let i=t;i<n;i+=r){let t=e[i];void 0!==t&&o.push(t)}return o}let hr={};!function(e,t){hr[e]=t}("gregory",class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return On(e)}markerToArray(e){return wn(e)}});const mr=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class gr{constructor(e){let 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 hr[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}createMarker(e){let t=this.createMarkerMeta(e);return null===t?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):On(yn(new Date))}createMarkerMeta(e){if("string"==typeof e)return this.parse(e);let 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=On(e)),null!==t&&xn(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=function(e){let t=mr.exec(e);if(t){let e=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(xn(e)){let n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}(e);if(null===t)return null;let{marker:n}=t,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}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let 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)}subtract(e,t){let 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)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return Sn(e)===Sn(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return Sn(e)===Sn(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=function(e,t){let n=hn(e,t);return null!==n&&n%7==0?n/7:null}(e,t),null!==n?{unit:"week",value:n}:(n=hn(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),Xt(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),Xt(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),Xt(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/(on(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/function(e){return on(e)/30}(n):n.days&&(r=hn(e,t),null!==r)?r/on(n):(t.valueOf()-e.valueOf())/an(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?mn(e):"hour"===t?function(e){return On([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return On([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return On([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){let r=e.getUTCFullYear(),o=gn(e,r,t,n);if(o<1)return gn(e,r-1,t,n);let i=gn(e,r+1,t,n);return i>=1?Math.min(o,i):o}(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=fn(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)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),En(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?On(yn(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?On(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-bn(wn(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(wn(e)):null}toDate(e,t){return"local"===this.timeZone?bn(wn(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(wn(e))*60):new Date(e.valueOf()-(t||0))}}class vr{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"==typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}function yr(e){e();let t=Y.debounceRendering,n=[];for(Y.debounceRendering=function(e){n.push(e)},je(ce(br,{}),document.createElement("div"));n.length;)n.shift()();Y.debounceRendering=t}vr.prototype.classes={},vr.prototype.iconClasses={},vr.prototype.baseIconClass="",vr.prototype.iconOverridePrefix="";class br extends de{render(){return ce("div",{})}componentDidMount(){this.setState({})}}function wr(e){let t=De(e),n=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{this.props.value!==t.value&&e.forEach((e=>{e.context=t.value,e.forceUpdate()}))},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}class Or{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const xr=wr({});function Sr(e,t,n,r,o,i,a,s,c,u,l,d,f){return{dateEnv:o,options:n,pluginHooks:a,emitter:u,dispatch:s,getCurrentData:c,calendarApi:l,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:i,isRtl:"rtl"===n.direction,addResizeHandler(e){u.on("_resize",e)},removeResizeHandler(e){u.off("_resize",e)},createScrollResponder:e=>new Or(e,u,tn(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:d,unregisterInteractiveComponent:f}}class Er extends de{shouldComponentUpdate(e,t){return this.debug&&console.log(lr(e,this.props),lr(t,this.state)),!dr(this.props,e,this.propEquality)||!dr(this.state,t,this.stateEquality)}safeSetState(e){dr(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Er.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},Er.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},Er.contextType=xr,Er.prototype.propEquality={},Er.prototype.stateEquality={};class kr extends Er{}function _r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}kr.contextType=xr;class Cr extends kr{constructor(){super(...arguments),this.id=Ht(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{this.props.elRef&&_r(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:o,renderProps:i}=e,a=Pr(e);let s,c,u=!1,l=[];if(null!=r){const e="function"==typeof r?r(i,ce):r;if(!0===e)u=!0;else{const t=e&&"object"==typeof e;t&&"html"in e?a.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?l=Array.prototype.slice.call(e.domNodes):t||"function"==typeof e?c=e:s=e}}else u=!Ar(e.generatorName,n);return u&&o&&(s=o(i)),this.queuedDomNodes=l,this.currentGeneratorMeta=c,ce(e.elTag,a,s)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:r}=this,{handleCustomRendering:o,customRenderingMetaMap:i}=r.options;if(o){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==i?void 0:i[n.generatorName];r&&o(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.handleEl,generatorMeta:r},n),{elClasses:n.elClasses.filter(jr)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!un(e,t)){t.forEach(kt);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function Ar(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function Pr(e,t){const n=Object.assign(Object.assign({},e.elAttrs),{ref:e.elRef});return(e.elClasses||t)&&(n.className=(e.elClasses||[]).concat(t||[]).concat(n.className||[]).filter(Boolean).join(" ")),e.elStyle&&(n.style=e.elStyle),n}function jr(e){return Boolean(e)}Cr.addPropsEquality({elClasses:un,elStyle:cr,elAttrs:function(e,t){const n=lr(e,t);for(let e of n)if(!ur.test(e))return!1;return!0},renderProps:cr});const Dr=wr(0);class Tr extends de{constructor(){super(...arguments),this.InnerContent=Rr.bind(void 0,this)}render(){const{props:e}=this,t=function(e,t){const n="function"==typeof e?e(t):e||[];return"string"==typeof n?[n]:n}(e.classNameGenerator,e.renderProps);if(e.children){const n=Pr(e,t),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?ce(e.elTag,n,r):r}return ce(Cr,Object.assign(Object.assign({},e),{elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}}function Rr(e,t){const n=e.props;return ce(Cr,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}Tr.contextType=Dr;class Zr extends kr{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return ce(Tr,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Mr(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),(()=>e.children))}}function Mr(e){return[`fc-${e.type}-view`,"fc-view"]}function Ir(e,t){let n,r,o=[],{start:i}=t;for(e.sort(Nr),n=0;n<e.length;n+=1)r=e[n],r.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 Nr(e,t){return e.start.valueOf()-t.start.valueOf()}function Fr(e,t){let{start:n,end:r}=e,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 Lr(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function Br(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Hr(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Ur(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Wr(e){let t=Math.floor(pn(e.start,e.end))||1,n=mn(e.start);return{start:n,end:dn(n,t)}}function zr(e,t=tn(0)){let n=null,r=null;if(e.end){r=mn(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=an(t)&&(r=dn(r,1))}return e.start&&(n=mn(e.start),r&&r<=n&&(r=dn(n,1))),{start:n,end:r}}function Vr(e,t,n,r){return"year"===r?tn(n.diffWholeYears(e,t),"year"):"month"===r?tn(n.diffWholeMonths(e,t),"month"):function(e,t){let n=mn(e),r=mn(t);return{years:0,months:0,days:Math.round(pn(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}(e,t)}function qr(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}class Yr{constructor(e){this.props=e,this.nowDate=qr(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,o=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,o=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,n)}build(e,t,n=!0){let r,o,i,a,s,c,{props:u}=this;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),a=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,i),a=this.trimHiddenDays(a),s=a,u.showNonCurrentDates||(s=Fr(s,o.range)),s=this.adjustActiveRange(s),s=Fr(s,r),c=Br(o.range,r),Ur(a,e)||(e=a.start),{currentDate:e,validRange:r,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:i,activeRange:s,renderRange:a,slotMinTime:u.slotMinTime,slotMaxTime:u.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(o.duration)}}buildValidRange(){let e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,o=null,i=null,a=null;return r.duration?(o=r.duration,i=r.durationUnit,a=this.buildRangeFromDuration(e,t,o,i)):(n=this.props.dayCount)?(i="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(o=this.getFallbackDuration(),i=cn(o).unit,a=this.buildRangeFromDuration(e,t,o,i)),{duration:o,unit:i,range:a}}getFallbackDuration(){return tn({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:o}=this.props,{start:i,end:a}=e;return n&&(on(r)<0&&(i=mn(i),i=t.add(i,r)),on(o)>1&&(a=mn(a),a=dn(a,-1),a=t.add(a,o))),{start:i,end:a}}buildRangeFromDuration(e,t,n,r){let o,i,a,{dateEnv:s,dateAlignment:c}=this.props;if(!c){let{dateIncrement:e}=this.props;c=e&&an(e)<an(n)?cn(e).unit:r}function u(){o=s.startOf(e,c),i=s.add(o,n),a={start:o,end:i}}return on(n)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,t),o=mn(o)),u(),this.trimHiddenDays(a)||(e=this.skipHiddenDays(e,t),u()),a}buildRangeFromDayCount(e,t,n){let r,{dateEnv:o,dateAlignment:i}=this.props,a=0,s=e;i&&(s=o.startOf(s,i)),s=mn(s),s=this.skipHiddenDays(s,t),r=s;do{r=dn(r,1),this.isHiddenDay(r)||(a+=1)}while(a<n);return{start:s,end:r}}buildCustomVisibleRange(e){let{props:t}=this,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}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?tn(1,t):e||tn({days:1}))}refineRange(e){if(e){let t=function(e,t){let 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=zr(t)),t}return null}initHiddenDays(){let 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}trimHiddenDays(e){let{start:t,end:n}=e;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=dn(e,t);return e}}function Gr(e,t,n,r){return{instanceId:Ht(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function Kr(e,t,n){let{dateEnv:r,pluginHooks:o,options:i}=n,{defs:a,instances:s}=e;s=or(s,(e=>!a[e.defId].recurringDef));for(let e in a){let n=a[e];if(n.recurringDef){let{duration:a}=n.recurringDef;a||(a=n.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);let c=Qr(n,a,t,r,o.recurringTypes);for(let t of c){let n=Gr(e,{start:t,end:r.add(t,a)});s[n.instanceId]=n}}}return{defs:a,instances:s}}function Qr(e,t,n,r,o){let 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(mn)),i}const Xr={id:String,groupId:String,title:String,url:String,interactive:Boolean},$r={start:tr,end:tr,date:tr,allDay:Boolean},Jr=Object.assign(Object.assign(Object.assign({},Xr),$r),{extendedProps:tr});function eo(e,t,n,r,o=no(n),i,a){let{refined:s,extra:c}=to(e,n,o),u=function(e,t){let n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),l=function(e,t,n,r){for(let o=0;o<r.length;o+=1){let i=r[o].parse(e,n);if(i){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=i.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:i.duration,typeData:i.typeData,typeId:o}}}return null}(s,u,n.dateEnv,n.pluginHooks.recurringTypes);if(l){let e=ro(s,c,t?t.sourceId:"",l.allDay,Boolean(l.duration),n,i);return e.recurringDef={typeId:l.typeId,typeData:l.typeData,duration:l.duration},{def:e,instance:null}}let d=function(e,t,n,r){let o,i,{allDay:a}=e,s=null,c=!1,u=null,l=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(l),o)s=o.marker;else if(!r)return null;null!=e.end&&(i=n.dateEnv.createMarkerMeta(e.end));null==a&&(a=null!=t?t:(!o||o.isTimeUnspecified)&&(!i||i.isTimeUnspecified));a&&s&&(s=mn(s));i&&(u=i.marker,a&&(u=mn(u)),s&&u<=s&&(u=null));u?c=!0:r||(c=n.options.forceEventDuration||!1,u=n.dateEnv.add(s,a?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:a,hasEnd:c,range:{start:s,end:u},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:i?i.forcedTzo:null}}(s,u,n,r);if(d){let e=ro(s,c,t?t.sourceId:"",d.allDay,d.hasEnd,n,i),r=Gr(e.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return a&&e.publicId&&a[e.publicId]&&(r.instanceId=a[e.publicId]),{def:e,instance:r}}return null}function to(e,t,n=no(t)){return er(e,n)}function no(e){return Object.assign(Object.assign(Object.assign({},lo),Jr),e.pluginHooks.eventRefiners)}function ro(e,t,n,r,o,i,a){let s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(a&&e.id?a[e.id]:"")||Ht(),sourceId:n,allDay:r,hasEnd:o,interactive:e.interactive,ui:po(e,i),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of i.pluginHooks.eventDefMemberAdders)Object.assign(s,t(e));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function oo(e,t,n,r,o,i){let a={defs:{},instances:{}},s=no(n);for(let c of e){let e=eo(c,t,n,r,s,o,i);e&&io(e,a)}return a}function io(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function ao(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=co(e,(e=>{return n=t,r=e,Boolean(n.groupId&&n.groupId===r.groupId);var n,r}));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return{defs:{},instances:{}}}function so(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function co(e,t){let n=or(e.defs,t),r=or(e.instances,(e=>n[e.defId]));return{defs:n,instances:r}}function uo(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}const lo={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:tr,overlap:tr,allow:tr,className:uo,classNames:uo,color:String,backgroundColor:String,borderColor:String,textColor:String},fo={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function po(e,t){let n=function(e,t){return Array.isArray(e)?oo(e,null,t,!0):"object"==typeof e&&e?oo([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 ho(e){return e.reduce(mo,fo)}function mo(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)}}const go={id:String,defaultAllDay:Boolean,url:String,format:String,events:tr,eventDataTransform:tr,success:tr,failure:tr};function vo(e,t,n=yo(t)){let r;if("string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){let{refined:o,extra:i}=er(r,n),a=function(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}(o,t);if(a)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:Ht(),sourceDefId:a.sourceDefId,meta:a.meta,ui:po(o,t),extendedProps:i}}return null}function yo(e){return Object.assign(Object.assign(Object.assign({},lo),go),e.pluginHooks.eventSourceRefiners)}function bo(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,o,i){if(t&&n===t.latestFetchId){let n=oo(wo(o,t,i),t,i);return r&&(n=Kr(n,r,i)),so(xo(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"RESET_RAW_EVENTS":return function(e,t,n,r){const{defIdMap:o,instanceIdMap:i}=function(e){const{defs:t,instances:n}=e,r={},o={};for(let e in t){const n=t[e],{publicId:o}=n;o&&(r[o]=e)}for(let e in n){const r=t[n[e].defId],{publicId:i}=r;i&&(o[i]=e)}return{defIdMap:r,instanceIdMap:o}}(e);let a=oo(wo(n,t,r),t,r,!1,o,i);t.fetchRange&&(a=Kr(a,t.fetchRange,r));return a}(e,n[t.sourceId],t.rawEvents,o);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=Kr(t,n,r));return so(e,t)}(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return so(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Kr(e,r.activeRange,o):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,o={},i={};for(let e in n)t.defs[e]||(o[e]=n[e]);for(let e in r)!t.instances[e]&&o[r[e].defId]&&(i[e]=r[e]);return{defs:o,instances:i}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return xo(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return co(e,(e=>!e.sourceId));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function wo(e,t,n){let r=n.options.eventDataTransform,o=t?t.eventDataTransform:null;return o&&(e=Oo(e,o)),r&&(e=Oo(e,r)),e}function Oo(e,t){let n;if(t){n=[];for(let r of e){let e=t(r);e?n.push(e):null==e&&n.push(r)}}else n=e;return n}function xo(e,t){return co(e,(e=>e.sourceId!==t))}class So{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)}off(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((e=>e!==n))):delete e[t]}(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],o=[].concat(r||[],n);for(let e of o)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}const Eo={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function ko(e,t){return oo(function(e){let t;t=!0===e?[{}]:Array.isArray(e)?e.filter((e=>e.daysOfWeek)):"object"==typeof e&&e?[e]:[];return t=t.map((e=>Object.assign(Object.assign({},Eo),e))),t}(e),null,t)}function _o(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},Co(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Co(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,o;return Object.assign(n,(r=e,o=t.dateEnv,Object.assign(Object.assign({},$o(r.range,o,r.allDay)),{allDay:r.allDay}))),n}function Ao(e,t,n){let{dateEnv:r,options:o}=n,i=t;return e?(i=mn(i),i=r.add(i,o.defaultAllDayEventDuration)):i=r.add(i,o.defaultTimedEventDuration),i}function Po(e,t,n,r){let o=Lo(e.defs,t),i={defs:{},instances:{}};for(let t in e.defs){let a=e.defs[t];i.defs[t]=jo(a,o[t],n,r)}for(let t in e.instances){let a=e.instances[t],s=i.defs[a.defId];i.instances[t]=Do(a,s,o[a.defId],n,r)}return i}function jo(e,t,n,r){let o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);let i=Object.assign(Object.assign(Object.assign({},e),o),{ui:Object.assign(Object.assign({},e.ui),o.ui)});n.extendedProps&&(i.extendedProps=Object.assign(Object.assign({},i.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(i,n,r);return!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0),i}function Do(e,t,n,r,o){let{dateEnv:i}=o,a=r.standardProps&&!0===r.standardProps.allDay,s=r.standardProps&&!1===r.standardProps.hasEnd,c=Object.assign({},e);return a&&(c.range=Wr(c.range)),r.datesDelta&&n.startEditable&&(c.range={start:i.add(c.range.start,r.datesDelta),end:i.add(c.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(c.range={start:i.add(c.range.start,r.startDelta),end:c.range.end}),r.endDelta&&n.durationEditable&&(c.range={start:c.range.start,end:i.add(c.range.end,r.endDelta)}),s&&(c.range={start:c.range.start,end:Ao(t.allDay,c.range.start,o)}),t.allDay&&(c.range={start:mn(c.range.start),end:mn(c.range.end)}),c.range.end<c.range.start&&(c.range.end=Ao(t.allDay,c.range.start,o)),c}class To{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class Ro{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in $r)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=Xr[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Xr)t=Xr[e](t),this.mutate({standardProps:{[e]:t}});else if(e in lo){let n=lo[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=Vr(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:e}):this.mutate({startDelta:e})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=Vr(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:o}=this._context,i={allDay:n.allDay},a=o.createMarker(e);var s,c;if(a&&((null==t||(r=o.createMarker(t),r))&&this._instance)){let e=this._instance.range;!0===n.allDay&&(e=Wr(e));let t=Vr(e.start,a,o,n.granularity);if(r){let a=Vr(e.end,r,o,n.granularity);c=a,(s=t).years===c.years&&s.months===c.months&&s.days===c.days&&s.milliseconds===c.milliseconds?this.mutate({datesDelta:t,standardProps:i}):this.mutate({startDelta:t,endDelta:a,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:t,standardProps:i})}}moveStart(e){let t=tn(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=tn(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=tn(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=zn(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})}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:o}=r.getCurrentData(),i=ao(o,t.instanceId);i=Po(i,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let a=new Ro(r,n,t);this._def=i.defs[n.defId],this._instance=i.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:i}),r.emitter.trigger("eventChange",{oldEvent:a,event:this,relatedEvents:Mo(i,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:o})}})}}remove(){let e=this._context,t=Zo(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new To(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:o}=this,i={allDay:t.allDay};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?Object.assign(i,t.extendedProps):i.extendedProps=t.extendedProps),i}toJSON(){return this.toPlainObject()}}function Zo(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function Mo(e,t,n){let{defs:r,instances:o}=e,i=[],a=n?n.instanceId:"";for(let e in o){let n=o[e],s=r[n.defId];n.instanceId!==a&&i.push(new Ro(t,s,n))}return i}function Io(e,t,n,r){let o={},i={},a={},s=[],c=[],u=Lo(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===u[n.defId].display&&(n.groupId?(o[n.groupId]=[],a[n.groupId]||(a[n.groupId]=n)):i[t]=[])}for(let t in e.instances){let a=e.instances[t],l=e.defs[a.defId],d=u[l.defId],f=a.range,p=!l.allDay&&r?zr(f,r):f,h=Fr(p,n);h&&("inverse-background"===d.display?l.groupId?o[l.groupId].push(h):i[a.defId].push(h):"none"!==d.display&&("background"===d.display?s:c).push({def:l,ui:d,instance:a,range:h,isStart:p.start&&p.start.valueOf()===h.start.valueOf(),isEnd:p.end&&p.end.valueOf()===h.end.valueOf()}))}for(let e in o){let t=Ir(o[e],n);for(let n of t){let t=a[e],r=u[t.defId];s.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in i){let r=Ir(i[t],n);for(let n of r)s.push({def:e.defs[t],ui:u[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:s,fg:c}}function No(e,t){e.fcSeg=t}function Fo(e){return e.fcSeg||e.parentNode.fcSeg||null}function Lo(e,t){return ir(e,(e=>Bo(e,t)))}function Bo(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),ho(n)}function Ho(e,t){let n=e.map(Uo);return n.sort(((e,n)=>Vt(e,n,t))),n.map((e=>e._seg))}function Uo(e){let{eventRange:t}=e,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 Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:o,end:i,duration:i-o,allDay:Number(n.allDay),_seg:e})}function Wo(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:o,ui:i}=e.eventRange,a=i.startEditable;for(let e of r)a=e(a,o,i,t);return a}function zo(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Vo(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function qo(e,t,n){let r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Ur(t,r.start)}}function Yo(e){let 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}function Go(e,t){let{def:n,instance:r}=e.eventRange,{url:o}=n;if(o)return{href:o};let{emitter:i,options:a}=t,{eventInteractive:s}=a;return null==s&&(s=n.interactive,null==s&&(s=Boolean(i.hasHandlers("eventClick")))),s?Lt((e=>{i.trigger("eventClick",{el:e.target,event:new Ro(t,n,r),jsEvent:e,view:t.viewApi})})):{}}const Ko={start:tr,end:tr,allDay:Boolean};function Qo(e,t,n){let r=function(e,t){let{refined:n,extra:r}=er(e,Ko),o=n.start?t.createMarkerMeta(n.start):null,i=n.end?t.createMarkerMeta(n.end):null,{allDay:a}=n;null==a&&(a=o&&o.isTimeUnspecified&&(!i||i.isTimeUnspecified));return Object.assign({range:{start:o?o.marker:null,end:i?i.marker:null},allDay:a},r)}(e,t),{range:o}=r;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=t.add(o.start,n)}return r}function Xo(e,t,n){return Object.assign(Object.assign({},$o(e,t,n)),{timeZone:t.timeZone})}function $o(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 Jo(e,t,n){let r=!1,o=function(e){r||(r=!0,t(e))},i=function(e){r||(r=!0,n(e))},a=e(o,i);a&&"function"==typeof a.then&&a.then(o,i)}class ei extends Error{constructor(e,t){super(e),this.response=t}}function ti(e,t,n){const r={method:e=e.toUpperCase()};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then((e=>{if(e.ok)return e.json().then((t=>[t,e]),(()=>{throw new ei("Failure parsing JSON",e)}));throw new ei("Request failed",e)}))}let ni;function ri(){return null==ni&&(ni=function(){if("undefined"==typeof document)return!0;let 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);let t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),ni}class oi extends kr{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,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 ri()||i.push("fc-liquid-hack"),e.children(i,o,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class ii{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function ai(e){return{[e.component.uid]:e}}const si={};class ci{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering((()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))}zoomTo(e,t){let 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})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:o}=this.getCurrentData(),i=[].concat(o.header?o.header.viewsWithButtons:[],o.footer?o.footer.viewsWithButtons:[]);for(let e in r)i.push(e);for(t=0;t<i.length;t+=1)if(n=r[i[t]],n&&n.singleUnit===e)return n;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:qr(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=tn(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),zn(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),zn(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};let r=this.getCurrentData(),o=Qo(n,r.dateEnv,tn({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),_o(o,null,r))}unselect(e){let 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))}addEvent(e,t){if(e instanceof Ro){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:io({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof To)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=sr(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let o=eo(e,n,r,!1);if(o){let e=new Ro(r,o.def,o.def.recurringDef?null:o.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:io(o)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Zo(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let o in n){let i=n[o];if(i.publicId===e){if(i.recurringDef)return new Ro(t,i,null);for(let e in r){let n=r[e];if(n.defId===i.defId)return new Ro(t,i,n)}}}return null}getEvents(){let e=this.getCurrentData();return Mo(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new To(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new To(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof To)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=vo(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new To(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=tn(e);t&&this.trigger("_scrollRequest",{time:t})}}function ui(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function li(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function di(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}const fi={defs:{},instances:{}};function pi(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let o={"":ho(r)};return n&&Object.assign(o,n),o}function hi(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!Ur(r.activeRange,e)),isOther:Boolean(r&&!Ur(r.currentRange,e)),isToday:Boolean(t&&Ur(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function mi(e,t){let n=["fc-day",`fc-day-${ln[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 gi(e,t){let n=["fc-slot",`fc-slot-${ln[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}const vi=zn({year:"numeric",month:"long",day:"numeric"}),yi=zn({week:"long"});function bi(e,t,n="day",r=!0){const{dateEnv:o,options:i,calendarApi:a}=e;let s=o.format(t,"week"===n?yi:vi);if(i.navLinks){let e=o.toDate(t);const c=e=>{let r="day"===n?i.navLinkDayClick:"week"===n?i.navLinkWeekClick:null;"function"==typeof r?r.call(a,o.toDate(t),e):("string"==typeof r&&(n=r),a.zoomTo(t,n))};return Object.assign({title:Kt(i.navLinkHint,[s,e],s),"data-navlink":""},r?Ft(c):{onClick:c})}return{"aria-label":s}}let wi,Oi=null;function xi(){return null===Oi&&(Oi=function(){let e=document.createElement("div");jt(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);let t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return kt(e),t}()),Oi}function Si(){return wi||(wi=function(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=Ei(e);return document.body.removeChild(e),t}()),wi}function Ei(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function ki(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=Ei(e),c=s.y-r-o,u={borderLeft:r,borderRight:o,borderTop:i,borderBottom:a,scrollbarBottom:s.x-i-a,scrollbarLeft:0,scrollbarRight:0};return xi()&&"rtl"===n.direction?u.scrollbarLeft=c:u.scrollbarRight=c,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 _i(e,t=!1,n){let r=n?e.getBoundingClientRect():Ci(e),o=ki(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 Ci(e){let t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function Ai(e){let t=[];for(;e instanceof HTMLElement;){let 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}class Pi{constructor(e,t,n,r){this.els=t;let o=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(o.left),r&&this.buildElVerticals(o.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let o=r.getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let o=r.getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return ji(this.tops||[],e.tops||[])&&ji(this.bottoms||[],e.bottoms||[])&&ji(this.lefts||[],e.lefts||[])&&ji(this.rights||[],e.rights||[])}}function ji(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class Di{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class Ti extends Di{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Ri extends Di{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(e){window.scroll(window.pageXOffset,e)}setScrollLeft(e){window.scroll(e,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Zi extends kr{constructor(){super(...arguments),this.uid=Ht()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!_t(e,".fc-event-mirror")}isValidDateDownEl(e){return!(_t(e,".fc-event:not(.fc-bg-event)")||_t(e,".fc-more-link")||_t(e,"a[data-navlink]")||_t(e,".fc-popover"))}}class Mi{constructor(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(-1===this.maxCoord||e.levelCoord+t.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)}splitEntry(e,t,n){let r=0,o=[],i=e.span,a=t.span;return i.start<a.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:a.start}},o)),i.end>a.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.end,end:i.end}},o)),r?(n.push({index:e.index,thickness:e.thickness,span:Fi(a,i)},...o),r):(n.push(e),0)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(Li(r,t.level,t.levelCoord),Li(n,t.level,[e])):Li(n[t.level],t.lateral,e),this.stackCnts[Ni(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:o}=this,i=t.length,a=0,s=-1,c=-1,u=null,l=0;for(let d=0;d<i;d+=1){let i=t[d];if(!r&&i>=a+e.thickness)break;let f,p=n[d],h=Bi(p,e.span.start,Ii),m=h[0]+h[1];for(;(f=p[m])&&f.span.start<e.span.end;){let e=i+f.thickness;e>a&&(a=e,u=f,s=d,c=m),e===a&&(l=Math.max(l,o[Ni(f)]+1)),m+=1}}let d=0;if(u)for(d=s+1;d<i&&t[d]<a;)d+=1;let f=-1;return d<i&&t[d]===a&&(f=Bi(n[d],e.span.end,Ii)[0]),{touchingLevel:s,touchingLateral:c,touchingEntry:u,stackCnt:l,levelCoord:a,level:d,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let o=0;o<n;o+=1){let n=e[o],i=t[o];for(let e of n)r.push(Object.assign(Object.assign({},e),{levelCoord:i}))}return r}}function Ii(e){return e.span.end}function Ni(e){return e.index+":"+e.span.start}function Fi(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function Li(e,t,n){e.splice(t,0,n)}function Bi(e,t,n){let 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;){let i=Math.floor(r+(o-r)/2),a=n(e[i]);if(t<a)o=i;else{if(!(t>a))return[i,1];r=i+1}}return[r,0]}const Hi={};Boolean;zn({weekday:"long"});class Ui extends de{constructor(e,t){super(e,t),this.initialNowDate=qr(t.options.now,t.dateEnv),this.initialNowQueriedMs=(new Date).valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this,n=fn(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),o=t.dateEnv.add(r,tn(1,e.unit)),i=o.valueOf()-n.valueOf();return i=Math.min(864e5,i),{currentState:{nowDate:r,todayRange:Wi(r)},nextState:{nowDate:o,todayRange:Wi(o)},waitMs:i}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout((()=>{this.setState(e,(()=>{this.setTimeout()}))}),t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function Wi(e){let t=mn(e);return{start:t,end:dn(t,1)}}Ui.contextType=xr;function zi(e,t){let n=e.activeRange;return t?n:{start:fn(n.start,e.slotMinTime.milliseconds),end:fn(n.end,e.slotMaxTime.milliseconds-864e5)}}function Vi(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!Hr(t.validRange,r[e].range))return!1;return qi({eventDrag:e},n)}function qi(e,t){let n=t.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||Yi)(r,t)}function Yi(e,t,n={},r){return!(e.eventDrag&&!function(e,t,n,r){let o=t.getCurrentData(),i=e.eventDrag,a=i.mutatedEvents,s=a.defs,c=a.instances,u=Lo(s,i.isEvent?e.eventUiBases:{"":o.selectionConfig});r&&(u=ir(u,r));let l=(h=e.eventStore,m=i.affectedEvents.instances,{defs:h.defs,instances:or(h.instances,(e=>!m[e.instanceId]))}),d=l.defs,f=l.instances,p=Lo(d,e.eventUiBases);var h,m;for(let r in c){let a=c[r],h=a.range,m=u[a.defId],g=s[a.defId];if(!Gi(m.constraints,h,l,e.businessHours,t))return!1;let{eventOverlap:v}=t.options,y="function"==typeof v?v:null;for(let e in f){let n=f[e];if(Br(h,n.range)){if(!1===p[n.defId].overlap&&i.isEvent)return!1;if(!1===m.overlap)return!1;if(y&&!y(new Ro(t,d[n.defId],n),new Ro(t,g,a)))return!1}}let b=o.eventStore;for(let e of m.allows){let o,i=Object.assign(Object.assign({},n),{range:a.range,allDay:g.allDay}),s=b.defs[g.defId],c=b.instances[r];if(o=s?new Ro(t,s,c):new Ro(t,g),!e(Co(i,t),o))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){let o=e.eventStore,i=o.defs,a=o.instances,s=e.dateSelection,c=s.range,{selectionConfig:u}=t.getCurrentData();r&&(u=r(u));if(!Gi(u.constraints,c,o,e.businessHours,t))return!1;let{selectOverlap:l}=t.options,d="function"==typeof l?l:null;for(let e in a){let n=a[e];if(Br(c,n.range)){if(!1===u.overlap)return!1;if(d&&!d(new Ro(t,i[n.defId],n),null))return!1}}for(let e of u.allows){if(!e(Co(Object.assign(Object.assign({},n),s),t),null))return!1}return!0}(e,t,n,r))}function Gi(e,t,n,r,o){for(let i of e)if(!Xi(Ki(i,t,n,r,o),t))return!1;return!0}function Ki(e,t,n,r,o){return"businessHours"===e?Qi(Kr(r,t,o)):"string"==typeof e?Qi(co(n,(t=>t.groupId===e))):"object"==typeof e&&e?Qi(Kr(e,t,o)):[]}function Qi(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}function Xi(e,t){for(let n of e)if(Hr(n,t))return!0;return!1}const $i=/^(visible|hidden)$/;class Ji extends kr{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,_r(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),ce("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)}needsXScrolling(){if($i.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1){if(n[e].getBoundingClientRect().width>t)return!0}return!1}needsYScrolling(){if($i.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1){if(n[e].getBoundingClientRect().height>t)return!0}return!1}getXScrollbarWidth(){return $i.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return $i.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class ea{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,o=!1,i=!1;null!==e?(o=t in r,r[t]=e,n[t]=(n[t]||0)+1,i=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],o=!0)),this.masterCallback&&(o&&this.masterCallback(null,String(t)),i&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return pr(this.currentMap,e,t,n)}getAll(){return sr(this.currentMap)}}function ta(e){let t=At(e,".fc-scrollgrid-shrink"),n=0;for(let e of t)n=Math.max(n,$t(e));return Math.ceil(n)}function na(e,t){return e.liquid&&t.liquid}function ra(e,t){return null!=t.maxHeight||na(e,t)}function oa(e,t,n,r){let{expandRows:o}=n;return"function"==typeof t.content?t.content(n):ce("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,ce(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}function ia(e,t){return un(e,t,cr)}function aa(e,t){let n=[];for(let r of e){let e=r.span||1;for(let o=0;o<e;o+=1)n.push(ce("col",{style:{width:"shrink"===r.width?sa(t):r.width||"",minWidth:r.minWidth||""}}))}return ce("colgroup",{},...n)}function sa(e){return null==e?4:e}function ca(e){for(let t of e)if("shrink"===t.width)return!0;return!1}function ua(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function la(e,t){let 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 da(e){return ce("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function fa(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function pa(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}(class extends kr{constructor(){super(...arguments),this.processCols=Cn((e=>e),ia),this.renderMicroColGroup=Cn(aa),this.scrollerRefs=new ea,this.scrollerElRefs=new ea(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,r=e.sections||[],o=this.processCols(e.cols),i=this.renderMicroColGroup(o,t.shrinkWidth),a=ua(e.liquid,n);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let s,c=r.length,u=0,l=[],d=[],f=[];for(;u<c&&"header"===(s=r[u]).type;)l.push(this.renderSection(s,i,!0)),u+=1;for(;u<c&&"body"===(s=r[u]).type;)d.push(this.renderSection(s,i,!1)),u+=1;for(;u<c&&"footer"===(s=r[u]).type;)f.push(this.renderSection(s,i,!0)),u+=1;let p=!ri();const h={role:"rowgroup"};return ce("table",{role:"grid",className:a.join(" "),style:{height:e.height}},Boolean(!p&&l.length)&&ce("thead",h,...l),Boolean(!p&&d.length)&&ce("tbody",h,...d),Boolean(!p&&f.length)&&ce("tfoot",h,...f),p&&ce("tbody",h,...l,...d,...f))}renderSection(e,t,n){return"outerContent"in e?ce(le,{key:e.key},e.outerContent):ce("tr",{key:e.key,role:"presentation",className:la(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,r){if("outerContent"in n)return n.outerContent;let{props:o}=this,{forceYScrollbars:i,scrollerClientWidths:a,scrollerClientHeights:s}=this.state,c=ra(o,e),u=na(o,e),l=o.liquid?i?"scroll":c?"auto":"hidden":"visible",d=e.key,f=oa(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:o.collapsibleWidth||void 0===a[d]?null:a[d],clientHeight:void 0!==s[d]?s[d]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return ce(r?"th":"td",{ref:n.elRef,role:"presentation"},ce("div",{className:"fc-scroller-harness"+(u?" fc-scroller-harness-liquid":"")},ce(Ji,{ref:this.scrollerRefs.createRef(d),elRef:this.scrollerElRefs.createRef(d),overflowY:l,overflowX:o.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let n=function(e,t){for(let n of e)if(n.key===t)return n;return null}(this.props.sections,t);n&&_r(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return ca(this.props.cols)?ta(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Si(),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,o={},i={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){r=!0;break}}for(let t of this.props.sections){let a=t.key,s=n.currentMap[a];if(s){let t=s.parentNode;o[a]=Math.floor(t.getBoundingClientRect().width-(r?e.y:0)),i[a]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:o,scrollerClientHeights:i}}}).addStateEquality({scrollerClientWidths:cr,scrollerClientHeights:cr});class ha extends kr{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&No(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{eventRange:o}=r,{ui:i}=o,a={event:new Ro(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,isDraggable:!e.disableDragging&&Wo(r,t),isStartResizable:!e.disableResizing&&zo(r,t),isEndResizable:!e.disableResizing&&Vo(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)};return ce(Tr,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Yo(a),...r.eventRange.ui.classNames,...e.elClasses||[]],renderProps:a,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&No(this.el,this.props.seg)}}class ma extends kr{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:o}=r.eventRange,i=function(e,t,n,r,o,i,a){let{dateEnv:s,options:c}=n,{displayEventTime:u,displayEventEnd:l}=c,d=e.eventRange.def,f=e.eventRange.instance;null==u&&(u=!1!==r),null==l&&(l=!1!==o);let p=f.range.start,h=f.range.end,m=i||e.start||e.eventRange.range.start,g=a||e.end||e.eventRange.range.end,v=mn(p).valueOf()===mn(m).valueOf(),y=mn(fn(h,-1)).valueOf()===mn(fn(g,-1)).valueOf();return u&&!d.allDay&&(v||y)?(m=v?p:m,g=y?h:g,l&&d.hasEnd?s.formatRange(m,g,t,{forcedStartTzo:i?null:f.forcedStartTzo,forcedEndTzo:a?null:f.forcedEndTzo}):s.format(m,t,{forcedTzo:i?null:f.forcedStartTzo})):""}(r,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return ce(ha,Object.assign({},e,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:Go(r,t),defaultGenerator:ga,timeText:i}),((e,t)=>ce(le,null,ce(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&ce("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&ce("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function ga(e){return ce("div",{className:"fc-event-main-frame"},e.timeText&&ce("div",{className:"fc-event-time"},e.timeText),ce("div",{className:"fc-event-title-container"},ce("div",{className:"fc-event-title fc-sticky"},e.event.title||ce(le,null," "))))}const va=e=>ce(xr.Consumer,null,(t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return ce(Tr,Object.assign({},e,{elTag:e.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))})),ya=zn({day:"numeric"});class ba extends kr{constructor(){super(...arguments),this.refineRenderProps=An(wa)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return ce(Tr,Object.assign({},e,{elClasses:[...mi(r,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":kn(e.date)}),renderProps:r,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function wa(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:o}=e,i=hi(t,e.todayRange,null,r),a=e.showDayNumber?n.format(t,o?e.monthStartFormat:ya):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},i),{isMonthStart:o,dayNumberText:a}),e.extraRenderProps)}class Oa extends kr{render(){let{props:e}=this,{seg:t}=e;return ce(ha,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:xa,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function xa(e){let{title:t}=e.event;return t&&ce("div",{className:"fc-event-title"},e.event.title)}class Sa extends kr{constructor(){super(...arguments),this.state={titleId:Zt()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&_r(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=Tt(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:r}=this,o=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return st(ce("div",Object.assign({},n.extraAttrs,{id:n.id,className:o.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),ce("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},ce("span",{className:"fc-popover-title",id:r.titleId},n.title),ce("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),ce("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,o=function(e){let t=Ai(e),n=e.getBoundingClientRect();for(let e of t){let t=li(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(t);if(o){let i=r.getBoundingClientRect(),a=n?_t(t,".fc-scrollgrid").getBoundingClientRect().top:o.top,s=e?o.right-i.width:o.left;a=Math.max(a,10),s=Math.min(s,document.documentElement.clientWidth-10-i.width),s=Math.max(s,10);let c=r.offsetParent.getBoundingClientRect();jt(r,{top:a-c.top,left:s-c.left})}}}class Ea extends Zi{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:o,dateProfile:i}=n,a=t.format(r,e.dayPopoverFormat);return ce(ba,{elRef:this.handleRootEl,date:r,dateProfile:i,todayRange:o},((t,r,o)=>ce(Sa,{elRef:o.ref,id:n.id,title:a,extraClassNames:["fc-more-popover"].concat(o.className||[]),extraAttrs:o,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},function(e){return Boolean(e.dayCellContent||Ar("dayCellContent",e))}(e)&&ce(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(e,t,n,r){let{rootEl:o,props:i}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:i.dateProfile,dateSpan:Object.assign({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}}class ka extends kr{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Zt()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&_r(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,o=Ca(t).start;function i(e){let{def:t,instance:r,range:o}=e.eventRange;return{event:new Ro(n,t,r),start:n.dateEnv.toDate(o.start),end:n.dateEnv.toDate(o.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof r&&(r=r({date:o,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(i),hiddenSegs:t.hiddenSegs.map(i),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"==typeof r&&n.calendarApi.zoomTo(o,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return ce(xr.Consumer,null,(n=>{let{viewApi:r,options:o,calendarApi:i}=n,{moreLinkText:a}=o,{moreCnt:s}=e,c=Ca(e),u="function"==typeof a?a.call(i,s):`+${s} ${a}`,l=Kt(o.moreLinkHint,[s],u),d={num:s,shortText:`+${s}`,text:u,view:r};return ce(le,null,Boolean(e.moreCnt)&&ce(Tr,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),Ft(this.handleClick)),{title:l,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:d,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:e.defaultGenerator||_a,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},e.children),t.isPopoverOpen&&ce(Ea,{id:t.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,onClose:this.handlePopoverClose},e.popoverContent()))}))}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=_t(this.linkEl,".fc-view-harness"))}}function _a(e){return e.text}function Ca(e){if(e.allDayDate)return{start:e.allDayDate,end:dn(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:Aa(t),end:(n=t,n.reduce(ja).eventRange.range.end)};var n}function Aa(e){return e.reduce(Pa).eventRange.range.start}function Pa(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function ja(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class Da extends class{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}}Ot(':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-unselectable{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:none;user-select:none}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button::-moz-focus-inner{border-style:none;padding:0}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}');const Ta=[],Ra={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"},Za=Object.assign(Object.assign({},Ra),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":`This ${e}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function Ma(e){let t=e.length>0?e[0].code:"en",n=Ta.concat(e),r={en:Za};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function Ia(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){let n=[].concat(e||[]),r=function(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}(n,t)||Za;return Na(e,n,r)}(e,t):Na(e.code,[e.code],e)}function Na(e,t,n){let r=rr([Ra,n],["buttonText"]);delete r.code;let{week:o}=r;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Fa(e){return{id:Ht(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,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,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function La(){let e,t=[],n=[];return(r,o)=>(e&&un(r,t)&&un(o,n)||(e=function(e,t){let n={},r={premiumReleaseDate:void 0,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,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(e){for(let a of e){const e=a.name,s=n[e];void 0===s?(n[e]=a.id,o(a.deps),i=a,r={premiumReleaseDate:Ba((t=r).premiumReleaseDate,i.premiumReleaseDate),reducers:t.reducers.concat(i.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(i.isLoadingFuncs),contextInit:t.contextInit.concat(i.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),i.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(i.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),i.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(i.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(i.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(i.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(i.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(i.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(i.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),i.views),viewPropsTransformers:t.viewPropsTransformers.concat(i.viewPropsTransformers),isPropsValid:i.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(i.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(i.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(i.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(i.calendarInteractions),componentInteractions:t.componentInteractions.concat(i.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),i.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(i.eventSourceDefs),cmdFormatter:i.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(i.recurringTypes),namedTimeZonedImpl:i.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||i.initialView,elementDraggingImpl:t.elementDraggingImpl||i.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),i.optionChangeHandlers),scrollGridImpl:i.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),i.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),i.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),i.propSetHandlers)}):s!==a.id&&console.warn(`Duplicate plugin '${e}'`)}var t,i}return e&&o(e),o(t),r}(r,o)),t=r,n=o,e)}function Ba(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class Ha extends vr{}function Ua(e,t,n,r){if(t[e])return t[e];let o=function(e,t,n,r){let o=n[e],i=r[e],a=e=>o&&null!==o[e]?o[e]:i&&null!==i[e]?i[e]:null,s=a("component"),c=a("superType"),u=null;if(c){if(c===e)throw new Error("Can't have a custom view type that references itself");u=Ua(c,t,n,r)}!s&&u&&(s=u.component);if(!s)return null;return{type:e,component:s,defaults:Object.assign(Object.assign({},u?u.defaults:{}),o?o.rawOptions:{}),overrides:Object.assign(Object.assign({},u?u.overrides:{}),i?i.rawOptions:{})}}(e,t,n,r);return o&&(t[e]=o),o}function Wa(e){return ir(e,za)}function za(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;var r;return t.content&&(r=t,n=e=>ce(xr.Consumer,null,(t=>ce(Tr,{elTag:"div",elClasses:Mr(t.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:t.options.nextDayThreshold}),generatorName:void 0,customGenerator:r.content,classNameGenerator:r.classNames,didMount:r.didMount,willUnmount:r.willUnmount})))),{superType:t.type,component:n,rawOptions:t}}function Va(e,t,n,r){let o=Wa(e),i=Wa(t.views),a=function(e,t){let n,r={};for(n in e)Ua(n,r,e,t);for(n in t)Ua(n,r,e,t);return r}(o,i);return ir(a,(e=>function(e,t,n,r,o){let i=e.overrides.duration||e.defaults.duration||r.duration||n.duration,a=null,s="",c="",u={};if(i&&(a=function(e){let t=JSON.stringify(e),n=qa[t];void 0===n&&(n=tn(e),qa[t]=n);return n}(i),a)){let e=cn(a);s=e.unit,1===e.value&&(c=s,u=t[s]?t[s].rawOptions:{})}let l=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[c]?n[c]:null},d=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[c]?n[c]:null};return{type:e.type,component:e.component,duration:a,durationUnit:s,singleUnit:c,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},u),e.overrides),buttonTextOverride:l(r)||l(n)||e.overrides.buttonText,buttonTextDefault:l(o)||e.defaults.buttonText||l(qn)||e.type,buttonTitleOverride:d(r)||d(n)||e.overrides.buttonHint,buttonTitleDefault:d(o)||e.defaults.buttonHint||d(qn)}}(e,i,t,n,r)))}Ha.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Ha.prototype.baseIconClass="fc-icon",Ha.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"},Ha.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Ha.prototype.iconOverrideOption="buttonIcons",Ha.prototype.iconOverrideCustomButtonOption="icon",Ha.prototype.iconOverridePrefix="fc-icon-";let qa={};function Ya(e,t,n){let r=t?t.activeRange:null;return Qa({},function(e,t){let n=yo(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(let e of r){let r=vo(e,t,n);r&&o.push(r)}return o}(e,n),r,n)}function Ga(e,t,n,r){let o=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Qa(e,t.sources,o,r);case"REMOVE_EVENT_SOURCE":return i=e,a=t.sourceId,or(i,(e=>e.sourceId!==a));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Xa(e,o,r):e;case"FETCH_EVENT_SOURCES":return $a(e,t.sourceIds?ar(t.sourceIds):es(e,r),o,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){let o=e[t];if(o&&n===o.latestFetchId)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},o),{isFetching:!1,fetchRange:r})});return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var i,a}function Ka(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function Qa(e,t,n,r){let o={};for(let e of t)o[e.sourceId]=e;return n&&(o=Xa(o,n,r)),Object.assign(Object.assign({},e),o)}function Xa(e,t,n){return $a(e,or(e,(e=>function(e,t,n){if(!ts(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 $a(e,t,n,r,o){let i={};for(let a in e){let s=e[a];t[a]?i[a]=Ja(s,n,r,o):i[a]=s}return i}function Ja(e,t,n,r){let{options:o,calendarApi:i}=r,a=r.pluginHooks.eventSourceDefs[e.sourceDefId],s=Ht();return a.fetch({eventSource:e,range:t,isRefetch:n,context:r},(n=>{let{rawEvents:a}=n;o.eventSourceSuccess&&(a=o.eventSourceSuccess.call(i,a,n.response)||a),e.success&&(a=e.success.call(i,a,n.response)||a),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:a})}),(n=>{let a=!1;o.eventSourceFailure&&(o.eventSourceFailure.call(i,n),a=!0),e.failure&&(e.failure(n),a=!0),a||console.warn(n.message,n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:s,fetchRange:t,error:n})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:s})}function es(e,t){return or(e,(e=>ts(e,t)))}function ts(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function ns(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function rs(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function os(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function is(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function as(e,t,n,r,o){return{header:e.headerToolbar?ss(e.headerToolbar,e,t,n,r,o):null,footer:e.footerToolbar?ss(e.footerToolbar,e,t,n,r,o):null}}function ss(e,t,n,r,o,i){let a={},s=[],c=!1;for(let u in e){let l=cs(e[u],t,n,r,o,i);a[u]=l.widgets,s.push(...l.viewsWithButtons),c=c||l.hasTitle}return{sectionWidgets:a,viewsWithButtons:s,hasTitle:c}}function cs(e,t,n,r,o,i){let a="rtl"===t.direction,s=t.customButtons||{},c=n.buttonText||{},u=t.buttonText||{},l=n.buttonHints||{},d=t.buttonHints||{},f=e?e.split(" "):[],p=[],h=!1;return{widgets:f.map((e=>e.split(",").map((e=>{if("title"===e)return h=!0,{buttonName:e};let n,f,m,g,v,y;if(n=s[e])m=e=>{n.click&&n.click.call(e.target,e,e.target)},(g=r.getCustomButtonIconClass(n))||(g=r.getIconClass(e,a))||(v=n.text),y=n.hint||n.text;else if(f=o[e]){p.push(e),m=()=>{i.changeView(e)},(v=f.buttonTextOverride)||(g=r.getIconClass(e,a))||(v=f.buttonTextDefault);let n=f.buttonTextOverride||f.buttonTextDefault;y=Kt(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[n,e],n)}else if(i[e])if(m=()=>{i[e]()},(v=c[e])||(g=r.getIconClass(e,a))||(v=u[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";y=Kt(l[t]||d[t],[u.year||"year","year"],u[e])}else y=t=>Kt(l[e]||d[e],[u[t]||t,t],u[e]);return{buttonName:e,buttonClick:m,buttonIcon:g,buttonText:v,buttonHint:y}})))),viewsWithButtons:p,hasTitle:h}}class us{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}function ls(e,t){let n=sr(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}const ds=[Fa({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),Fa({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){const{dateEnv:r}=e.context;Jo(e.eventSource.meta.bind(null,Xo(e.range,r)),(e=>t({rawEvents:e})),n)}}]}),Fa({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:tr,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:e=>!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(e,t,n){const{meta:r}=e.eventSource,o=function(e,t,n){let r,o,i,a,{dateEnv:s,options:c}=n,u={};r=e.startParam,null==r&&(r=c.startParam);o=e.endParam,null==o&&(o=c.endParam);i=e.timeZoneParam,null==i&&(i=c.timeZoneParam);a="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Object.assign(u,a),u[r]=s.formatIso(t.start),u[o]=s.formatIso(t.end),"local"!==s.timeZone&&(u[i]=s.timeZone);return u}(r,e.range,e.context);ti(r.method,r.url,o).then((([e,n])=>{t({rawEvents:e,response:n})}),n)}}]}),Fa({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let o,i={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};return e.duration&&(o=e.duration),!o&&e.startTime&&e.endTime&&(n=e.endTime,r=e.startTime,o={years:n.years-r.years,months:n.months-r.months,days:n.days-r.days,milliseconds:n.milliseconds-r.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:o,typeData:i}}var n,r;return null},expand(e,t,n){let r=Fr(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){let o=e?ar(e):null,i=mn(n.start),a=n.end,s=[];for(;i<a;){let e;o&&!o[i.getUTCDay()]||(e=t?r.add(i,t):i,s.push(e)),i=dn(i,1)}return s}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:tr,startTime:tn,endTime:tn,duration:tn,startRecur:tr,endRecur:tr}}),Fa({name:"change-handler",optionChangeHandlers:{events(e,t){ls([e],t)},eventSources:ls}}),Fa({name:"misc",isLoadingFuncs:[e=>Ka(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Xo(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Mo(e,t))}}})];class fs{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Et(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t,n=[];for(;t=e.shift();)this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function ps(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,zn(t.titleFormat||function(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=hn(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})}class hs{constructor(e){this.computeCurrentViewData=Cn(this._computeCurrentViewData),this.organizeRawLocales=Cn(Ma),this.buildLocale=Cn(Ia),this.buildPluginHooks=La(),this.buildDateEnv=Cn(ms),this.buildTheme=Cn(gs),this.parseToolbars=Cn(as),this.buildViewSpecs=Cn(Va),this.buildDateProfileGenerator=An(vs),this.buildViewApi=Cn(ys),this.buildViewUiProps=An(Os),this.buildEventUiBySource=Cn(bs,cr),this.buildEventUiBases=Cn(ws),this.parseContextBusinessHours=An(Ss),this.buildTitle=Cn(ps),this.emitter=new So,this.actionRunner=new fs(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause();let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,o=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(o.options);let i=function(e,t){let n=e.initialDate;return null!=n?t.createMarker(n):qr(e.now,t)}(n.calendarOptions,n.dateEnv),a=o.dateProfileGenerator.build(i);Ur(a.activeRange,i)||(i=a.currentRange.start);let s={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let e of n.pluginHooks.contextInit)e(s);let c=Ya(n.calendarOptions,a,s),u={dynamicOptionOverrides:t,currentViewType:r,currentDate:i,dateProfile:a,businessHours:this.parseContextBusinessHours(s),eventSources:c,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(s).selectionConfig},l=Object.assign(Object.assign({},s),u);for(let e of n.pluginHooks.reducers)Object.assign(u,e(null,null,l));xs(u,s)&&this.emitter.trigger("loading",!0),this.state=u,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,o=function(e,t){return"SET_OPTION"===t.type?Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue}):e}(n.dynamicOptionOverrides,e),i=this.computeOptionsData(t.optionOverrides,o,t.calendarApi),a=function(e,t){"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType);return e}(n.currentViewType,e),s=this.computeCurrentViewData(a,i,t.optionOverrides,o);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(s.options);let c={dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:l}=n;this.data&&this.data.dateProfileGenerator!==s.dateProfileGenerator&&(l=s.dateProfileGenerator.build(u)),u=function(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}(u,e),l=function(e,t,n,r){let 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),o.isValid)return o;break;case"NEXT":if(o=r.buildNext(e,n),o.isValid)return o}return e}(l,e,u,s.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&Ur(l.currentRange,u)||(u=l.currentRange.start);let d=Ga(n.eventSources,e,l,c),f=bo(n.eventStore,e,d,l,c),p=Ka(d)&&!s.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:h,selectionConfig:m}=this.buildViewUiProps(c),g=this.buildEventUiBySource(d),v={dynamicOptionOverrides:o,currentViewType:a,currentDate:u,dateProfile:l,eventSources:d,eventStore:f,renderableEventStore:p,selectionConfig:m,eventUiBases:this.buildEventUiBases(p.defs,h,g),businessHours:this.parseContextBusinessHours(c),dateSelection:ns(n.dateSelection,e),eventSelection:rs(n.eventSelection,e),eventDrag:os(n.eventDrag,e),eventResize:is(n.eventResize,e)},y=Object.assign(Object.assign({},c),v);for(let t of i.pluginHooks.reducers)Object.assign(v,t(n,e,y));let b=xs(n,c),w=xs(v,c);!b&&w?r.trigger("loading",!0):b&&!w&&r.trigger("loading",!1),this.state=v,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),o=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),i=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,o.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),o),t),a=r.pluginHooks.optionChangeHandlers,s=n&&n.calendarOptions,c=r.calendarOptions;if(s&&s!==c){s.timeZone!==c.timeZone&&(t.eventSources=i.eventSources=function(e,t,n){let r=t?t.activeRange:null;return $a(e,es(e,n),r,!0,n)}(i.eventSources,t.dateProfile,i),t.eventStore=i.eventStore=function(e,t,n){let{defs:r}=e,o=ir(e.instances,(e=>{let o=r[e.defId];return o.allDay||o.recurringDef?e:Object.assign(Object.assign({},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}}(i.eventStore,n.dateEnv,i.dateEnv));for(let e in a)-1===this.optionsForHandling.indexOf(e)&&s[e]===c[e]||a[e](c[e],i)}this.optionsForHandling=[],e.onData&&e.onData(i)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:o,localeDefaults:i,availableLocaleData:a,extra:s}=this.processRawCalendarOptions(e,t);Es(s);let c=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,o,a,r.defaultRangeSeparator),u=this.buildViewSpecs(o.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,i),l=this.buildTheme(r,o),d=this.parseToolbars(r,this.stableOptionOverrides,l,u,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:o,dateEnv:c,viewSpecs:u,theme:l,toolbarConfig:d,localeDefaults:i,availableRawLocales:a.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Jn([qn,e,t]),o=this.organizeRawLocales(n),i=o.map,a=this.buildLocale(r||o.defaultCode,i).options,s=this.buildPluginHooks(e.plugins||[],ds),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vn),Yn),Gn),s.listenerRefiners),s.optionRefiners),u={},l=Jn([qn,a,e,t]),d={},f=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,h=!1;for(let e in l)-1===this.optionsForRefining.indexOf(e)&&(l[e]===f[e]||Kn[e]&&e in f&&Kn[e](f[e],l[e]))?d[e]=p[e]:c[e]?(d[e]=c[e](l[e]),h=!0):u[e]=f[e];return h&&(this.currentCalendarOptionsInput=l,this.currentCalendarOptionsRefined=d,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:s,availableLocaleData:o,localeDefaults:a,extra:u}}_computeCurrentViewData(e,t,n,r){let o=t.viewSpecs[e];if(!o)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:i,extra:a}=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,r);return Es(a),{viewSpec:o,options:i,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:i.slotMinTime,slotMaxTime:i.slotMaxTime,showNonCurrentDates:i.showNonCurrentDates,dayCount:i.dayCount,dateAlignment:i.dateAlignment,dateIncrement:i.dateIncrement,hiddenDays:i.hiddenDays,weekends:i.weekends,nowInput:i.now,validRangeInput:i.validRange,visibleRangeInput:i.visibleRange,fixedWeekCount:i.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,o){let i=Jn([qn,e.optionDefaults,n,r,e.optionOverrides,o]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vn),Yn),Gn),$n),t.listenerRefiners),t.optionRefiners),s={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,l=!1,d={};for(let e in i)i[e]===c[e]||Kn[e]&&Kn[e](i[e],c[e])?s[e]=u[e]:(i[e]===this.currentCalendarOptionsInput[e]||Kn[e]&&Kn[e](i[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(s[e]=this.currentCalendarOptionsRefined[e]):a[e]?s[e]=a[e](i[e]):d[e]=i[e],l=!0);return l&&(this.currentViewOptionsInput=i,this.currentViewOptionsRefined=s),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}}}function ms(e,t,n,r,o,i,a,s){let c=Ia(t||a.defaultCode,a.map);return new gr({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:c,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:i.cmdFormatter,defaultSeparator:s})}function gs(e,t){return new(t.themeClasses[e.themeSystem]||Ha)(e)}function vs(e){return new(e.dateProfileGeneratorClass||Yr)(e)}function ys(e,t,n){return new us(e,t,n)}function bs(e){return ir(e,(e=>e.ui))}function ws(e,t,n){let r={"":t};for(let t in e){let o=e[t];o.sourceId&&n[o.sourceId]&&(r[t]=n[o.sourceId])}return r}function Os(e){let{options:t}=e;return{eventUiSingleBase:po({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:po({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function xs(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function Ss(e){return ko(e.options.businessHours,e)}function Es(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class ks extends kr{render(){return ce("div",{className:"fc-toolbar-chunk"},...this.props.widgetGroups.map((e=>this.renderWidgetGroup(e))))}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],o=!0;for(let i of e){let{buttonName:e,buttonClick:a,buttonText:s,buttonIcon:c,buttonHint:u}=i;if("title"===e)o=!1,r.push(ce("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let o=e===t.activeButton,i=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,l=[`fc-${e}-button`,n.getClass("button")];o&&l.push(n.getClass("buttonActive")),r.push(ce("button",{type:"button",title:"function"==typeof u?u(t.navUnit):u,disabled:i,"aria-pressed":o,className:l.join(" "),onClick:a},s||(c?ce("span",{className:c}):"")))}}if(r.length>1){return ce("div",{className:o&&n.getClass("buttonGroup")||""},...r)}return r[0]}}class _s extends kr{render(){let e,t,{model:n,extraClassName:r}=this.props,o=!1,i=n.sectionWidgets,a=i.center;return i.left?(o=!0,e=i.left):e=i.start,i.right?(o=!0,t=i.right):t=i.end,ce("div",{className:[r||"","fc-toolbar",o?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",a||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return ce(ks,{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})}}class Cs extends kr{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,_r(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,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||"",ce("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:o,paddingBottom:i}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class As extends ii{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,o=Fo(t);if(o&&n.isValidSegDownEl(e.target)){let i=_t(e.target,".fc-event-forced-url"),a=i?i.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:t,event:new Ro(n.context,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:r.viewApi}),a&&!e.defaultPrevented&&(window.location.href=a)}},this.destroy=It(e.el,"click",".fc-event",this.handleSegClick)}}class Ps extends ii{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{Fo(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=function(e,t,n,r){let o;return It(e,"mouseover",t,((e,t)=>{if(t!==o){o=t,n(e,t);let i=e=>{o=null,r(e,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}}))}(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:o}=r,i=Fo(n);t&&!r.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new Ro(o,i.eventRange.def,i.eventRange.instance),jsEvent:t,view:o.viewApi})}}class js extends Er{constructor(){super(...arguments),this.buildViewContext=Cn(Sr),this.buildViewPropTransformers=Cn(Ts),this.buildToolbarProps=Cn(Ds),this.headerRef={current:null},this.footerRef={current:null},this.interactionsStore={},this.state={viewLabelId:Zt()},this.registerInteractiveComponent=(e,t)=>{let n=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,t),r=[As,Ps].concat(this.props.pluginHooks.componentInteractions).map((e=>new e(n)));this.interactionsStore[e.uid]=r,si[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete si[e.uid]},this.resizeRunner=new Et((()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})})),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:r}=t,o=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,qr(t.options.now,t.dateEnv),t.viewTitle),i=!1,a="";t.isHeightAuto||t.forPrint?a="":null!=r.height?i=!0:null!=r.contentHeight?a=r.contentHeight:e=Math.max(r.aspectRatio,.5);let s=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),c=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return ce(xr.Provider,{value:s},n.header&&ce(_s,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},o)),ce(Cs,{liquid:i,height:a,aspectRatio:e,labeledById:c},this.renderView(t),this.buildAppendContent()),n.footer&&ce(_s,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},o)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((t=>new t(e))),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;return ce(le,{},...e.pluginHooks.viewContainerAppends.map((t=>t(e))))}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,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=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of o)Object.assign(r,t.transform(r,e));return ce(n.component,Object.assign({},r))}}function Ds(e,t,n,r,o,i){let a=n.build(o,void 0,!1),s=n.buildPrev(t,r,!1),c=n.buildNext(t,r,!1);return{title:i,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:a.isValid&&!Ur(t.currentRange,o),isPrevEnabled:s.isValid,isNextEnabled:c.isValid}}function Ts(e){return e.map((e=>new e))}class Rs extends ci{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;yr((()=>{je(ce(oi,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},((t,n,r,o)=>(this.setClassNames(t),this.setHeight(n),ce(Dr.Provider,{value:this.customContentRenderId},ce(js,Object.assign({isHeightAuto:r,forPrint:o},e)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,je(null,this.el),this.setClassNames([]),this.setHeight(""))},function(e){const t=e.getRootNode();if(!wt.get(t)){wt.set(t,!0);for(const e of bt)xt(t,e.innerText)}}(e),this.el=e,this.renderRunner=new Et(this.handleRenderRequest),new hs({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){yr((()=>{super.updateSize()}))}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!un(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){Dt(this.el,"height",e)}}class Zs extends A.Component{constructor(){super(...arguments),this.elRef=(0,A.createRef)(),this.needsCustomRenderingResize=!1,this.isInitialRender=!0,this.state={customRenderingMap:new Map}}render(){const e=[];for(const t of this.state.customRenderingMap.values()){const{generatorMeta:n}=t,r="function"==typeof n?n(t.renderProps):n;e.push((0,ne.createPortal)(r,t.containerEl,t.id))}return A.createElement("div",{ref:this.elRef},e)}componentDidMount(){const e=new Da;this.handleCustomRendering=e.handle.bind(e),this.calendar=new Rs(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),e.subscribe((e=>{this.isInitialRender?this.doCustomRendering(e):this.requestCustomRendering(e)}))}requestCustomRendering(e){this.cancelCustomRendering(),this.customRenderingRequestId=requestAnimationFrame((()=>{Zs.act((()=>{this.doCustomRendering(e)}))}))}doCustomRendering(e){this.needsCustomRenderingResize=!0,this.setState({customRenderingMap:e})}cancelCustomRendering(){this.customRenderingRequestId&&(cancelAnimationFrame(this.customRenderingRequestId),this.customRenderingRequestId=void 0)}componentDidUpdate(){this.isInitialRender=!1,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.needsCustomRenderingResize&&(this.needsCustomRenderingResize=!1,this.calendar.updateSize())}componentWillUnmount(){this.calendar.destroy(),this.cancelCustomRendering()}getApi(){return this.calendar}}Zs.act=e=>{e()};const Ms=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],Is={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 Ns=Fa({name:"@fullcalendar/premium-common",premiumReleaseDate:"2023-02-07",optionRefiners:{schedulerLicenseKey:String},viewContainerAppends:[function(e){let t=e.options.schedulerLicenseKey,n="undefined"!=typeof window?window.location.href:"";if(!/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(n)){let n=function(e,t){if(-1!==Ms.indexOf(e))return"valid";const n=(e||"").match(/^(\d+)-fcs-(\d+)$/);if(n&&10===n[1].length){const e=new Date(1e3*parseInt(n[2],10)),r=Hi.mockSchedulerReleaseDate||t;if(xn(r)){return dn(r,-372)<e?"valid":"outdated"}}return"invalid"}(t,e.pluginHooks.premiumReleaseDate);if("valid"!==n)return ce("div",{className:"fc-license-message",style:Is},"outdated"===n?ce(le,null,"Your license key is too old to work with this version. ",ce("a",{href:"https://fullcalendar.io/docs/schedulerLicenseKey#outdated"},"More Info")):ce(le,null,"Your license key is invalid. ",ce("a",{href:"https://fullcalendar.io/docs/schedulerLicenseKey#invalid"},"More Info")))}return null}]});Hi.COLLAPSIBLE_WIDTH_THRESHOLD=1200;let Fs=[],Ls=[];function Bs(){let e=At(document.body,".fc-scroller-harness > .fc-scroller"),t=e.map((e=>{let t=window.getComputedStyle(e);return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,overflowX:t.overflowX,overflowY:t.overflowY,marginBottom:t.marginBottom}}));for(let e of Fs)e.emitter.trigger("_beforeprint");yr((()=>{!function(e,t){e.forEach(((e,n)=>{e.style.overflowX="visible",e.style.overflowY="visible",e.style.marginBottom="",e.style.left=-t[n].scrollLeft+"px"}))}(e,t),Ls.push((()=>function(e,t){e.forEach(((e,n)=>{let 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))),Ls.push(function(){let e=At(document.body,".fc-scrollgrid");return e.forEach(Us),()=>e.forEach(Ws)}())}))}function Hs(){for(let e of Fs)e.emitter.trigger("_afterprint");yr((()=>{for(;Ls.length;)Ls.shift()()}))}function Us(e){let t=e.getBoundingClientRect().width;(!e.classList.contains("fc-scrollgrid-collapsible")||t<Hi.COLLAPSIBLE_WIDTH_THRESHOLD)&&(e.style.width=t+"px")}function Ws(e){e.style.width=""}Ot(".fc .fc-event,.fc .fc-scrollgrid table tr{-moz-column-break-inside:avoid;break-inside:avoid}.fc-media-print{display:block;max-width:100%}.fc-media-print .fc-bg-event,.fc-media-print .fc-non-business,.fc-media-print .fc-timegrid-axis-chunk,.fc-media-print .fc-timegrid-slots,.fc-media-print .fc-timeline-slots{display:none}.fc-media-print .fc-h-event,.fc-media-print .fc-toolbar button,.fc-media-print .fc-v-event{background:#fff!important;color:#000!important}.fc-media-print .fc-event,.fc-media-print .fc-event-main{color:#000!important}.fc-media-print .fc-timegrid-event{margin:.5em 0}");var zs=Fa({name:"@fullcalendar/adaptive",premiumReleaseDate:"2023-02-07",deps:[Ns],contextInit:function(e){Fs.length||(window.addEventListener("beforeprint",Bs),window.addEventListener("afterprint",Hs)),Fs.push(e),e.calendarApi.on("_unmount",(()=>{!function(e,t){let n=0,r=0;for(;r<e.length;)e[r]===t?(e.splice(r,1),n+=1):r+=1}(Fs,e),Fs.length||(window.removeEventListener("beforeprint",Bs),window.removeEventListener("afterprint",Hs))}))}});Hi.touchMouseIgnoreWait=500;let Vs=0,qs=0,Ys=!1;class Gs{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=e=>{if(!this.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&this.tryStart(e)){let t=this.createEventFromMouse(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=e=>{let t=this.createEventFromMouse(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleMouseUp=e=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(e)),this.cleanup()},this.handleTouchStart=e=>{if(this.tryStart(e)){this.isTouchDragging=!0;let t=this.createEventFromTouch(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t);let n=e.target;this.shouldIgnoreMove||n.addEventListener("touchmove",this.handleTouchMove),n.addEventListener("touchend",this.handleTouchEnd),n.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=e=>{let t=this.createEventFromTouch(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleTouchEnd=e=>{if(this.isDragging){let t=e.target;t.removeEventListener("touchmove",this.handleTouchMove),t.removeEventListener("touchend",this.handleTouchEnd),t.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(e)),this.cleanup(),this.isTouchDragging=!1,Vs+=1,setTimeout((()=>{Vs-=1}),Hi.touchMouseIgnoreWait)}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=e=>{if(!this.shouldIgnoreMove){let t=window.pageXOffset-this.prevScrollX+this.prevPageX,n=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:e,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:t,pageY:n,deltaX:t-this.origPageX,deltaY:n-this.origPageY})}},this.containerEl=e,this.emitter=new So,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),qs+=1,1===qs&&window.addEventListener("touchmove",Ks,{passive:!1})}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),qs-=1,qs||window.removeEventListener("touchmove",Ks,{passive:!1})}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!_t(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)}cleanup(){Ys=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?_t(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Vs||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Ys=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}}createEventFromTouch(e,t){let n,r,o=e.touches,i=0,a=0;return o&&o.length?(n=o[0].pageX,r=o[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(i=n-this.origPageX,a=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:i,deltaY:a}}}function Ks(e){Ys&&e.preventDefault()}class Qs{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,t){let n=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(e,t){let n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",jt(n,{left:r.left,top:r.top}),function(e,t){let n=r=>{t(r),Nt.forEach((t=>{e.removeEventListener(t,n)}))};Nt.forEach((t=>{e.addEventListener(t,n)}))}(n,(()=>{n.style.transition="",e()}))}cleanup(){this.mirrorEl&&(kt(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&jt(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.classList.add("fc-unselectable"),t.classList.add("fc-event-dragging"),jt(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t}}class Xs extends Di{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class $s extends Xs{constructor(e,t){super(new Ti(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return _i(this.scrollController.el)}}class Js extends Xs{constructor(e){super(new Ri,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const ec="function"==typeof performance?performance.now:Date.now;class tc{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let t=ec();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let n=e-window.pageXOffset,r=t-window.pageYOffset,o=null===this.pointerScreenY?0:r-this.pointerScreenY,i=null===this.pointerScreenX?0:n-this.pointerScreenX;o<0?this.everMovedUp=!0:o>0&&(this.everMovedDown=!0),i<0?this.everMovedLeft=!0:i>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(ec()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e,{edgeThreshold:r}=this,o=r-e.distance,i=o*o/(r*r)*this.maxVelocity*t,a=1;switch(e.name){case"left":a=-1;case"right":n.setScrollLeft(n.getScrollLeft()+i*a);break;case"top":a=-1;case"bottom":n.setScrollTop(n.getScrollTop()+i*a)}}computeBestEdge(e,t){let{edgeThreshold:n}=this,r=null,o=this.scrollCaches||[];for(let i of o){let o=i.clientRect,a=e-o.left,s=o.right-e,c=t-o.top,u=o.bottom-t;a>=0&&s>=0&&c>=0&&u>=0&&(c<=n&&this.everMovedUp&&i.canScrollUp()&&(!r||r.distance>c)&&(r={scrollCache:i,name:"top",distance:c}),u<=n&&this.everMovedDown&&i.canScrollDown()&&(!r||r.distance>u)&&(r={scrollCache:i,name:"bottom",distance:u}),a<=n&&this.everMovedLeft&&i.canScrollLeft()&&(!r||r.distance>a)&&(r={scrollCache:i,name:"left",distance:a}),s<=n&&this.everMovedRight&&i.canScrollRight()&&(!r||r.distance>s)&&(r={scrollCache:i,name:"right",distance:s}))}return r}buildCaches(e){return this.queryScrollEls(e).map((e=>e===window?new Js(!1):new $s(e,!1)))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery)"object"==typeof n?t.push(n):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)));return t}}class nc extends class{constructor(e,t){this.emitter=new So}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}{constructor(e,t){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=e=>{var t;this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,(t=document.body).classList.add("fc-unselectable"),t.addEventListener("selectstart",Mt),function(e){e.addEventListener("contextmenu",Mt)}(document.body),e.isTouch||e.origEvent.preventDefault(),this.emitter.trigger("pointerdown",e),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(e.subjectEl,e.pageX,e.pageY),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e)))},this.onPointerMove=e=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",e),!this.isDistanceSurpassed){let t,n=this.minDistance,{deltaX:r,deltaY:o}=e;t=r*r+o*o,t>=n*n&&this.handleDistanceSurpassed(e)}this.isDragging&&("scroll"!==e.origEvent.type&&(this.mirror.handleMove(e.pageX,e.pageY),this.autoScroller.handleMove(e.pageX,e.pageY)),this.emitter.trigger("dragmove",e))}},this.onPointerUp=e=>{var t;this.isInteracting&&(this.isInteracting=!1,(t=document.body).classList.remove("fc-unselectable"),t.removeEventListener("selectstart",Mt),function(e){e.removeEventListener("contextmenu",Mt)}(document.body),this.emitter.trigger("pointerup",e),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(e)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let n=this.pointer=new Gs(e);n.emitter.on("pointerdown",this.onPointerDown),n.emitter.on("pointermove",this.onPointerMove),n.emitter.on("pointerup",this.onPointerUp),t&&(n.selector=t),this.mirror=new Qs,this.autoScroller=new tc}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){"number"==typeof this.delay?this.delayTimeoutId=setTimeout((()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)}),this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class rc{constructor(e){this.origRect=Ci(e),this.scrollCaches=Ai(e).map((e=>new $s(e,!0)))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let n={left:e,top:t};for(let e of this.scrollCaches)if(!oc(e.getEventTarget())&&!ui(n,e.clientRect))return!1;return!0}}function oc(e){let t=e.tagName;return"HTML"===t||"BODY"===t}class ic{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=e=>{let{dragging:t}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(e),this.initialHit||!this.requireInitial?(t.setIgnoreMove(!1),this.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=e=>{this.emitter.trigger("dragstart",e),this.handleMove(e,!0)},this.handleDragMove=e=>{this.emitter.trigger("dragmove",e),this.handleMove(e)},this.handlePointerUp=e=>{this.releaseHits(),this.emitter.trigger("pointerup",e)},this.handleDragEnd=e=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,e),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new So}processFirstCoord(e){let t,n={left:e.pageX,top:e.pageY},r=n,o=e.subjectEl;var i,a;o instanceof HTMLElement&&(t=Ci(o),i=r,a=t,r={left:Math.min(Math.max(i.left,a.left),a.right),top:Math.min(Math.max(i.top,a.top),a.bottom)});let s=this.initialHit=this.queryHitForOffset(r.left,r.top);if(s){if(this.useSubjectCenter&&t){let e=li(t,s.rect);e&&(r=function(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}(e))}this.coordAdjust=(u=n,{left:(c=r).left-u.left,top:c.top-u.top})}else this.coordAdjust={left:0,top:0};var c,u}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&ac(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=ir(this.droppableStore,(e=>(e.component.prepareHits(),new rc(e.el))))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:r}=this,o=null;for(let i in n){let a=n[i].component,s=r[i];if(s&&s.isWithinClipping(e,t)){let n=s.computeLeft(),r=s.computeTop(),c=e-n,u=t-r,{origRect:l}=s,d=l.right-l.left,f=l.bottom-l.top;if(c>=0&&c<d&&u>=0&&u<f){let e=a.queryHit(c,u,d,f);e&&Hr(e.dateProfile.activeRange,e.dateSpan.range)&&(!o||e.layer>o.layer)&&(e.componentId=i,e.context=a.context,e.rect.left+=n,e.rect.right+=n,e.rect.top+=r,e.rect.bottom+=r,o=e)}}}return o}}function ac(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&(n=e.dateSpan,r=t.dateSpan,Lr(n.range,r.range)&&n.allDay===r.allDay&&function(e,t){for(let n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}(n,r));var n,r}function sc(e,t){let n={};for(let r of t.pluginHooks.datePointTransforms)Object.assign(n,r(e,t));var r,o;return Object.assign(n,(r=e,{date:(o=t.dateEnv).toDate(r.range.start),dateStr:o.formatIso(r.range.start,{omitTime:r.allDay}),allDay:r.allDay})),n}class cc extends ii{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let t=e.origEvent.target,{component:n,dragging:r}=this,{mirror:o}=r,{options:i}=n.context,a=n.context;this.subjectEl=e.subjectEl;let s=this.subjectSeg=Fo(e.subjectEl),c=(this.eventRange=s.eventRange).instance.instanceId;this.relevantEvents=ao(a.getCurrentData().eventStore,c),r.minDistance=e.isTouch?0:i.eventDragMinDistance,r.delay=e.isTouch&&c!==n.props.eventSelection?function(e){let{options:t}=e.context,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(n):null,i.fixedMirrorParent?o.parentNode=i.fixedMirrorParent:o.parentNode=_t(t,".fc"),o.revertDuration=i.dragRevertDuration;let u=n.isValidSegDownEl(t)&&!_t(t,".fc-event-resizer");r.setIgnoreMove(!u),this.isDragging=u&&e.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=e=>{let t=this.component.context,n=this.eventRange,r=n.instance.instanceId;e.isTouch?r!==this.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new Ro(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},this.handleHitUpdate=(e,t)=>{if(!this.isDragging)return;let n=this.relevantEvents,r=this.hitDragging.initialHit,o=this.component.context,i=null,a=null,s=null,c=!1,u={affectedEvents:n,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){i=e.context;let t=i.options;o===i||t.editable&&t.droppable?(a=function(e,t,n){let r=e.dateSpan,o=t.dateSpan,i=r.range.start,a=o.range.start,s={};r.allDay!==o.allDay&&(s.allDay=o.allDay,s.hasEnd=t.context.options.allDayMaintainDuration,o.allDay&&(i=mn(i)));let c=Vr(i,a,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);c.milliseconds&&(s.allDay=!1);let u={datesDelta:c,standardProps:s};for(let r of n)r(u,e,t);return u}(r,e,i.getCurrentData().pluginHooks.eventDragMutationMassagers),a&&(s=Po(n,i.getCurrentData().eventUiBases,a,i),u.mutatedEvents=s,Vi(u,e.dateProfile,i)||(c=!0,a=null,s=null,u.mutatedEvents={defs:{},instances:{}}))):i=null}this.displayDrag(i,u),c?Ut():Wt(),t||(o===i&&ac(r,e)&&(a=null),this.dragging.setMirrorNeedsRevert(!a),this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=i,this.validMutation=a,this.mutatedRelevantEvents=s)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=e=>{if(this.isDragging){let t=this.component.context,n=t.viewApi,{receivingContext:r,validMutation:o}=this,i=this.eventRange.def,a=this.eventRange.instance,s=new Ro(t,i,a),c=this.relevantEvents,u=this.mutatedRelevantEvents,{finalHit:l}=this.hitDragging;if(this.clearDrag(),t.emitter.trigger("eventDragStop",{el:this.subjectEl,event:s,jsEvent:e.origEvent,view:n}),o){if(r===t){let r=new Ro(t,u.defs[i.defId],a?u.instances[a.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:u});let l={oldEvent:s,event:r,relatedEvents:Mo(u,t,a),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:c})}},d={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(d,e(o,t));t.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},l),d),{el:e.subjectEl,delta:o.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",l)}else if(r){let o={event:s,relatedEvents:Mo(c,t,a),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:c})}};t.emitter.trigger("eventLeave",Object.assign(Object.assign({},o),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:"REMOVE_EVENTS",eventStore:c}),t.emitter.trigger("eventRemove",o);let d=u.defs[i.defId],f=u.instances[a.instanceId],p=new Ro(r,d,f);r.dispatch({type:"MERGE_EVENTS",eventStore:u});let h={event:p,relatedEvents:Mo(u,r,f),revert(){r.dispatch({type:"REMOVE_EVENTS",eventStore:u})}};r.emitter.trigger("eventAdd",h),e.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:a.instanceId}),r.emitter.trigger("drop",Object.assign(Object.assign({},sc(l.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:l.context.viewApi})),r.emitter.trigger("eventReceive",Object.assign(Object.assign({},h),{draggedEl:e.subjectEl,view:l.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:n}=t.context,r=this.dragging=new nc(e.el);r.pointer.selector=cc.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.dragScroll;let o=this.hitDragging=new ic(this.dragging,si);o.useSubjectCenter=e.useEventCenter,o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("pointerup",this.handlePointerUp),o.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:{defs:{},instances:{}},isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}cc.SELECTOR=".fc-event-draggable, .fc-event-resizable";const uc={fixedMirrorParent:tr},lc={dateClick:tr,eventDragStart:tr,eventDragStop:tr,eventDrop:tr,eventResizeStart:tr,eventResizeStop:tr,eventResize:tr,drop:tr,eventReceive:tr,eventLeave:tr};Hi.dataAttrPrefix="";var dc=Fa({name:"@fullcalendar/interaction",componentInteractions:[class extends ii{constructor(e){super(e),this.handlePointerDown=e=>{let{dragging:t}=this,n=e.origEvent.target;t.setIgnoreMove(!this.component.isValidDateDownEl(n))},this.handleDragEnd=e=>{let{component:t}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:r}=this.hitDragging;if(n&&r&&ac(n,r)){let{context:r}=t,o=Object.assign(Object.assign({},sc(n.dateSpan,r)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view});r.emitter.trigger("dateClick",o)}}},this.dragging=new nc(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new ic(this.dragging,ai(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}},class extends ii{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:r}=t.context,o=r.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!o),n.delay=e.isTouch?function(e){let{options:t}=e.context,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(t):null},this.handleDragStart=e=>{this.component.context.calendarApi.unselect(e)},this.handleHitUpdate=(e,t)=>{let{context:n}=this.component,r=null,o=!1;if(e){let t=this.hitDragging.initialHit;e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e)||(r=function(e,t,n){let r=e.dateSpan,o=t.dateSpan,i=[r.range.start,r.range.end,o.range.start,o.range.end];i.sort(Qt);let a={};for(let r of n){let n=r(e,t);if(!1===n)return null;n&&Object.assign(a,n)}return a.range={start:i[0],end:i[3]},a.allDay=r.allDay,a}(t,e,n.pluginHooks.dateSelectionTransformers)),r&&function(e,t,n){return!!Hr(t.validRange,e.range)&&qi({dateSelection:e},n)}(r,e.dateProfile,n)||(o=!0,r=null)}r?n.dispatch({type:"SELECT_DATES",selection:r}):t||n.dispatch({type:"UNSELECT_DATES"}),o?Ut():Wt(),t||(this.dragSelection=r)},this.handlePointerUp=e=>{this.dragSelection&&(_o(this.dragSelection,e,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,r=this.dragging=new nc(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let o=this.hitDragging=new ic(this.dragging,ai(e));o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}},cc,class extends ii{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let{component:t}=this,n=Fo(this.querySegEl(e)),r=this.eventRange=n.eventRange;this.dragging.minDistance=t.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==r.instance.instanceId)},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=ao(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let r=this.querySegEl(e);this.draggingSegEl=r,this.draggingSeg=Fo(r),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:r,event:new Ro(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},this.handleHitUpdate=(e,t,n)=>{let{context:r}=this.component,o=this.relevantEvents,i=this.hitDragging.initialHit,a=this.eventRange.instance,s=null,c=null,u=!1,l={affectedEvents:o,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){e.componentId===i.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(i,e)||(s=function(e,t,n,r){let o=e.context.dateEnv,i=e.dateSpan.range.start,a=t.dateSpan.range.start,s=Vr(i,a,o,e.largeUnit);if(n){if(o.add(r.start,s)<r.end)return{startDelta:s}}else if(o.add(r.end,s)>r.start)return{endDelta:s};return null}(i,e,n.subjectEl.classList.contains("fc-event-resizer-start"),a.range))}s&&(c=Po(o,r.getCurrentData().eventUiBases,s,r),l.mutatedEvents=c,Vi(l,e.dateProfile,r)||(u=!0,s=null,c=null,l.mutatedEvents=null)),c?r.dispatch({type:"SET_EVENT_RESIZE",state:l}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),u?Ut():Wt(),t||(s&&ac(i,e)&&(s=null),this.validMutation=s,this.mutatedRelevantEvents=c)},this.handleDragEnd=e=>{let{context:t}=this.component,n=this.eventRange.def,r=this.eventRange.instance,o=new Ro(t,n,r),i=this.relevantEvents,a=this.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:o,jsEvent:e.origEvent,view:t.viewApi}),this.validMutation){let s=new Ro(t,a.defs[n.defId],r?a.instances[r.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:a});let c={oldEvent:o,event:s,relatedEvents:Mo(a,t,r),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:i})}};t.emitter.trigger("eventResize",Object.assign(Object.assign({},c),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||tn(0),endDelta:this.validMutation.endDelta||tn(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",c)}else t.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new nc(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new ic(this.dragging,ai(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return _t(e.subjectEl,".fc-event")}}],calendarInteractions:[class{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=e=>{e.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=e=>{let t=this.context.options.unselectCancel,n=Tt(e.origEvent);this.matchesCancel=!!_t(n,t),this.matchesEvent=!!_t(n,cc.SELECTOR)},this.onDocumentPointerUp=e=>{let{context:t}=this,{documentPointer:n}=this,r=t.getCurrentData();if(!n.wasTouchScroll){if(r.dateSelection&&!this.isRecentPointerDateSelect){let n=t.options.unselectAuto;!n||n&&this.matchesCancel||t.calendarApi.unselect(e)}r.eventSelection&&!this.matchesEvent&&t.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new Gs(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}],elementDraggingImpl:nc,optionRefiners:uc,listenerRefiners:lc});function fc(e){let t=e.scrollLeft;if("rtl"===window.getComputedStyle(e).direction)switch(mc()){case"negative":t*=-1;case"reverse":t=e.scrollWidth-t-e.clientWidth}return t}function pc(e,t){if("rtl"===window.getComputedStyle(e).direction)switch(mc()){case"reverse":t=e.scrollWidth-t;break;case"negative":t=-(e.scrollWidth-t)}e.scrollLeft=t}let hc;function mc(){return hc||(hc=function(){let 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 kt(t),e}())}class gc{constructor(e,t){this.scrollEl=e,this.isRtl=t,this.updateSize=()=>{let{scrollEl:e}=this,t=At(e,".fc-sticky");!function(e,t,n){e.forEach(((e,r)=>{let o,{textAlign:i,elWidth:a,parentBound:s}=t[r],c=s.right-s.left;o="center"===i&&c>n?(n-a)/2:"",jt(e,{left:o,right:o,top:0})}))}(t,this.queryElGeoms(t),e.clientWidth)}}queryElGeoms(e){let{scrollEl:t,isRtl:n}=this,r=function(e){let t=e.getBoundingClientRect(),n=ki(e);return{left:t.left+n.borderLeft+n.scrollbarLeft-fc(e),top:t.top+n.borderTop-e.scrollTop}}(t),o=[];for(let t of e){let e=di(_i(t.parentNode,!0,!0),-r.left,-r.top),i=t.getBoundingClientRect(),a=window.getComputedStyle(t),s=window.getComputedStyle(t.parentNode).textAlign,c=null;"start"===s?s=n?"right":"left":"end"===s&&(s=n?"left":"right"),"sticky"!==a.position&&(c=di(i,-r.left-(parseFloat(a.left)||0),-r.top-(parseFloat(a.top)||0))),o.push({parentBound:e,naturalBound:c,elWidth:i.width,elHeight:i.height,textAlign:s})}return o}}class vc extends kr{constructor(){super(...arguments),this.elRef={current:null},this.state={xScrollbarWidth:0,yScrollbarWidth:0},this.handleScroller=e=>{this.scroller=e,_r(this.props.scrollerRef,e)},this.handleSizing=()=>{let{props:e}=this;"scroll-hidden"===e.overflowY&&this.setState({yScrollbarWidth:this.scroller.getYScrollbarWidth()}),"scroll-hidden"===e.overflowX&&this.setState({xScrollbarWidth:this.scroller.getXScrollbarWidth()})}}render(){let{props:e,state:t,context:n}=this,r=n.isRtl&&xi(),o=0,i=0,a=0;return"scroll-hidden"===e.overflowX&&(a=t.xScrollbarWidth),"scroll-hidden"===e.overflowY&&null!=t.yScrollbarWidth&&(r?o=t.yScrollbarWidth:i=t.yScrollbarWidth),ce("div",{ref:this.elRef,className:"fc-scroller-harness"+(e.liquid?" fc-scroller-harness-liquid":"")},ce(Ji,{ref:this.handleScroller,elRef:this.props.scrollerElRef,overflowX:"scroll-hidden"===e.overflowX?"scroll":e.overflowX,overflowY:"scroll-hidden"===e.overflowY?"scroll":e.overflowY,overcomeLeft:o,overcomeRight:i,overcomeBottom:a,maxHeight:"number"==typeof e.maxHeight?e.maxHeight+("scroll-hidden"===e.overflowX?t.xScrollbarWidth:0):"",liquid:e.liquid,liquidIsAbsolute:!0},e.children))}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(e){cr(e,this.props)||this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}needsXScrolling(){return this.scroller.needsXScrolling()}needsYScrolling(){return this.scroller.needsYScrolling()}}const yc="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" ");class bc{constructor(e){this.el=e,this.emitter=new So,this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new Et(this._handleWheelWaited.bind(this)),this.scrollWaiter=new Et(this._handleScrollWaited.bind(this)),this.handleScroll=()=>{this.startScroll(),this.emitter.trigger("scroll",this.isRecentlyWheeled,this.isTouching),this.isRecentlyScrolled=!0,this.scrollWaiter.request(500)},this.handleWheel=()=>{this.isRecentlyWheeled=!0,this.wheelWaiter.request(500)},this.handleTouchStart=()=>{this.isTouching=!0},this.handleTouchEnd=()=>{this.isTouching=!1,this.isRecentlyScrolled||this.endScroll()},e.addEventListener("scroll",this.handleScroll),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd);for(let t of yc)e.addEventListener(t,this.handleWheel)}destroy(){let{el:e}=this;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd);for(let t of yc)e.removeEventListener(t,this.handleWheel)}startScroll(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))}endScroll(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())}_handleScrollWaited(){this.isRecentlyScrolled=!1,this.isTouching||this.endScroll()}_handleWheelWaited(){this.isRecentlyWheeled=!1}}class wc{constructor(e,t){this.isVertical=e,this.scrollEls=t,this.isPaused=!1,this.scrollListeners=t.map((e=>this.bindScroller(e)))}destroy(){for(let e of this.scrollListeners)e.destroy()}bindScroller(e){let{scrollEls:t,isVertical:n}=this,r=new bc(e);return r.emitter.on("scroll",((r,o)=>{if(!this.isPaused&&((!this.masterEl||this.masterEl!==e&&(r||o))&&this.assignMaster(e),this.masterEl===e))for(let r of t)r!==e&&(n?r.scrollTop=e.scrollTop:r.scrollLeft=e.scrollLeft)})),r.emitter.on("scrollEnd",(()=>{this.masterEl===e&&(this.masterEl=null)})),r}assignMaster(e){this.masterEl=e;for(let t of this.scrollListeners)t.el!==e&&t.endScroll()}forceScrollLeft(e){this.isPaused=!0;for(let t of this.scrollListeners)pc(t.el,e);this.isPaused=!1}forceScrollTop(e){this.isPaused=!0;for(let t of this.scrollListeners)t.el.scrollTop=e;this.isPaused=!1}}Hi.SCROLLGRID_RESIZE_INTERVAL=500;class Oc extends kr{constructor(){super(...arguments),this.compileColGroupStats=Pn(kc,Ac),this.renderMicroColGroups=Pn(aa),this.clippedScrollerRefs=new ea,this.scrollerElRefs=new ea(this._handleScrollerEl.bind(this)),this.chunkElRefs=new ea(this._handleChunkEl.bind(this)),this.scrollSyncersBySection={},this.scrollSyncersByColumn={},this.rowUnstableMap=new Map,this.rowInnerMaxHeightMap=new Map,this.anyRowHeightsChanged=!1,this.recentSizingCnt=0,this.state={shrinkWidths:[],forceYScrollbars:!1,forceXScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{},sectionRowMaxHeights:[]},this.handleSizing=(e,t)=>{if(!this.allowSizing())return;t||(this.anyRowHeightsChanged=!0);let n={};(e||!t&&!this.rowUnstableMap.size)&&(n.sectionRowMaxHeights=this.computeSectionRowMaxHeights()),this.setState(Object.assign(Object.assign({shrinkWidths:this.computeShrinkWidths()},this.computeScrollerDims()),n),(()=>{this.rowUnstableMap.size||this.updateStickyScrolling()}))},this.handleRowHeightChange=(e,t)=>{let{rowUnstableMap:n,rowInnerMaxHeightMap:r}=this;if(t){n.delete(e);let t=Sc(e);r.has(e)&&r.get(e)===t||(r.set(e,t),this.anyRowHeightsChanged=!0),!n.size&&this.anyRowHeightsChanged&&(this.anyRowHeightsChanged=!1,this.setState({sectionRowMaxHeights:this.computeSectionRowMaxHeights()}))}else n.set(e,!0)}}render(){let{props:e,state:t,context:n}=this,{shrinkWidths:r}=t,o=this.compileColGroupStats(e.colGroups.map((e=>[e]))),i=this.renderMicroColGroups(o.map(((e,t)=>[e.cols,r[t]]))),a=ua(e.liquid,n);this.getDims();let s,c=e.sections,u=c.length,l=0,d=[],f=[],p=[];for(;l<u&&"header"===(s=c[l]).type;)d.push(this.renderSection(s,l,o,i,t.sectionRowMaxHeights,!0)),l+=1;for(;l<u&&"body"===(s=c[l]).type;)f.push(this.renderSection(s,l,o,i,t.sectionRowMaxHeights,!1)),l+=1;for(;l<u&&"footer"===(s=c[l]).type;)p.push(this.renderSection(s,l,o,i,t.sectionRowMaxHeights,!0)),l+=1;const h=!ri(),m={role:"rowgroup"};return ce("table",{ref:e.elRef,role:"grid",className:a.join(" ")},function(e,t){let n=e.map(((e,n)=>{let r=e.width;return"shrink"===r&&(r=e.totalColWidth+sa(t[n])+1),ce("col",{style:{width:r}})}));return ce("colgroup",{},...n)}(o,r),Boolean(!h&&d.length)&&ce("thead",m,...d),Boolean(!h&&f.length)&&ce("tbody",m,...f),Boolean(!h&&p.length)&&ce("tfoot",m,...p),h&&ce("tbody",m,...d,...f,...p))}renderSection(e,t,n,r,o,i){return"outerContent"in e?ce(le,{key:e.key},e.outerContent):ce("tr",{key:e.key,role:"presentation",className:la(e,this.props.liquid).join(" ")},e.chunks.map(((a,s)=>this.renderChunk(e,t,n[s],r[s],a,s,(o[t]||[])[s]||[],i))))}renderChunk(e,t,n,r,o,i,a,s){if("outerContent"in o)return ce(le,{key:o.key},o.outerContent);let{state:c}=this,{scrollerClientWidths:u,scrollerClientHeights:l}=c,[d,f]=this.getDims(),p=t*f+i,h=i===(!this.context.isRtl||xi()?f-1:0),m=t===d-1,g=m&&c.forceXScrollbars,v=h&&c.forceYScrollbars,y=n&&n.allowXScrolling,b=ra(this.props,e),w=na(this.props,e),O=e.expandRows&&w,x=oa(e,o,{tableColGroupNode:r,tableMinWidth:n&&n.totalColMinWidth||"",clientWidth:void 0!==u[p]?u[p]:null,clientHeight:void 0!==l[p]?l[p]:null,expandRows:O,syncRowHeights:Boolean(e.syncRowHeights),rowSyncHeights:a,reportRowHeightChange:this.handleRowHeightChange},s),S=g?m?"scroll":"scroll-hidden":y?m?"auto":"scroll-hidden":"hidden",E=v?h?"scroll":"scroll-hidden":b?h?"auto":"scroll-hidden":"hidden";return x=ce(vc,{ref:this.clippedScrollerRefs.createRef(p),scrollerElRef:this.scrollerElRefs.createRef(p),overflowX:S,overflowY:E,liquid:w,maxHeight:e.maxHeight},x),ce(s?"th":"td",{key:o.key,ref:this.chunkElRefs.createRef(p),role:"presentation"},x)}componentDidMount(){this.getStickyScrolling=Pn(Dc),this.getScrollSyncersBySection=jn(Pc.bind(this,!0),null,jc),this.getScrollSyncersByColumn=jn(Pc.bind(this,!1),null,jc),this.updateScrollSyncers(),this.handleSizing(!1),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(e,t){this.updateScrollSyncers(),this.handleSizing(!1,t.sectionRowMaxHeights!==this.state.sectionRowMaxHeights)}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing),this.destroyScrollSyncers()}allowSizing(){let e=new Date;return!this.lastSizingDate||e.valueOf()>this.lastSizingDate.valueOf()+Hi.SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=e,this.recentSizingCnt=0,!0):(this.recentSizingCnt+=1)<=10}computeShrinkWidths(){let e=this.compileColGroupStats(this.props.colGroups.map((e=>[e]))),[t,n]=this.getDims(),r=t*n,o=[];return e.forEach(((e,t)=>{if(e.hasShrinkCol){let e=this.chunkElRefs.collect(t,r,n);o[t]=ta(e)}})),o}computeSectionRowMaxHeights(){let e=new Map,[t,n]=this.getDims(),r=[];for(let o=0;o<t;o+=1){let t=this.props.sections[o],i=[];if(t&&t.syncRowHeights){let r=[];for(let t=0;t<n;t+=1){let i=o*n+t,a=[],s=this.chunkElRefs.currentMap[i];a=s?At(s,".fc-scrollgrid-sync-table tr").map((t=>{let n=Sc(t);return e.set(t,n),n})):[],r.push(a)}let a=r[0].length,s=!0;for(let e=1;e<n;e+=1){if(!(t.chunks[e]&&void 0!==t.chunks[e].outerContent)&&r[e].length!==a){s=!1;break}}if(s){for(let e=0;e<n;e+=1)i.push([]);for(let e=0;e<a;e+=1){let t=[];for(let o=0;o<n;o+=1){let n=r[o][e];null!=n&&t.push(n)}let o=Math.max(...t);for(let e=0;e<n;e+=1)i[e].push(o)}}else{let e=[];for(let t=0;t<n;t+=1)e.push(xc(r[t])+r[t].length);let t=Math.max(...e);for(let e=0;e<n;e+=1){let n=r[e].length,o=t-n,a=Math.floor(o/n),s=o-a*(n-1),c=[],u=0;for(u<n&&(c.push(s),u+=1);u<n;)c.push(a),u+=1;i.push(c)}}}r.push(i)}return this.rowInnerMaxHeightMap=e,r}computeScrollerDims(){let e=Si(),[t,n]=this.getDims(),r=!this.context.isRtl||xi()?n-1:0,o=t-1,i=this.clippedScrollerRefs.currentMap,a=this.scrollerElRefs.currentMap,s=!1,c=!1,u={},l={};for(let e=0;e<t;e+=1){let t=i[e*n+r];if(t&&t.needsYScrolling()){s=!0;break}}for(let e=0;e<n;e+=1){let t=i[o*n+e];if(t&&t.needsXScrolling()){c=!0;break}}for(let i=0;i<t;i+=1)for(let t=0;t<n;t+=1){let d=i*n+t,f=a[d];if(f){let n=f.parentNode;u[d]=Math.floor(n.getBoundingClientRect().width-(t===r&&s?e.y:0)),l[d]=Math.floor(n.getBoundingClientRect().height-(i===o&&c?e.x:0))}}return{forceYScrollbars:s,forceXScrollbars:c,scrollerClientWidths:u,scrollerClientHeights:l}}updateStickyScrolling(){let{isRtl:e}=this.context,t=this.scrollerElRefs.getAll().map((t=>[t,e]));this.getStickyScrolling(t).forEach((e=>e.updateSize()))}updateScrollSyncers(){let[e,t]=this.getDims(),n=e*t,r={},o={},i=this.scrollerElRefs.currentMap;for(let n=0;n<e;n+=1){let e=n*t,o=e+t;r[n]=pr(i,e,o,1)}for(let e=0;e<t;e+=1)o[e]=this.scrollerElRefs.collect(e,n,t);this.scrollSyncersBySection=this.getScrollSyncersBySection(r),this.scrollSyncersByColumn=this.getScrollSyncersByColumn(o)}destroyScrollSyncers(){ir(this.scrollSyncersBySection,jc),ir(this.scrollSyncersByColumn,jc)}getChunkConfigByIndex(e){let t=this.getDims()[1],n=Math.floor(e/t),r=e%t,o=this.props.sections[n];return o&&o.chunks[r]}forceScrollLeft(e,t){let n=this.scrollSyncersByColumn[e];n&&n.forceScrollLeft(t)}forceScrollTop(e,t){let n=this.scrollSyncersBySection[e];n&&n.forceScrollTop(t)}_handleChunkEl(e,t){let n=this.getChunkConfigByIndex(parseInt(t,10));n&&_r(n.elRef,e)}_handleScrollerEl(e,t){let n=this.getChunkConfigByIndex(parseInt(t,10));n&&_r(n.scrollerElRef,e)}getDims(){let e=this.props.sections.length;return[e,e?this.props.sections[0].chunks.length:0]}}function xc(e){let t=0;for(let n of e)t+=n;return t}function Sc(e){let t=At(e,".fc-scrollgrid-sync-inner").map(Ec);return t.length?Math.max(...t):0}function Ec(e){return e.offsetHeight}function kc(e){let t=_c(e.cols,"width"),n=_c(e.cols,"minWidth"),r=ca(e.cols);return{hasShrinkCol:r,totalColWidth:t,totalColMinWidth:n,allowXScrolling:"shrink"!==e.width&&Boolean(t||n||r),cols:e.cols,width:e.width}}function _c(e,t){let n=0;for(let r of e){let e=r[t];"number"==typeof e&&(n+=e*(r.span||1))}return n}Oc.addStateEquality({shrinkWidths:un,scrollerClientWidths:cr,scrollerClientHeights:cr});const Cc={cols:ia};function Ac(e,t){return dr(e,t,Cc)}function Pc(e,...t){return new wc(e,t)}function jc(e){e.destroy()}function Dc(e,t){return new gc(e,t)}Hi.MAX_TIMELINE_SLOTS=1e3;const Tc=[{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 Rc(e,t,n,r){let o={labelInterval:n.slotLabelInterval,slotDuration:n.slotDuration};!function(e,t,n){const{currentRange:r}=t;if(e.labelInterval){n.countDurationsBetween(r.start,r.end,e.labelInterval)>Hi.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)>Hi.MAX_TIMELINE_SLOTS&&(console.warn("slotDuration results in too many cells"),e.slotDuration=null)}if(e.labelInterval&&e.slotDuration){const t=sn(e.labelInterval,e.slotDuration);(null===t||t<1)&&(console.warn("slotLabelInterval must be a multiple of slotDuration"),e.slotDuration=null)}}(o,e,t),Ic(o,e,t),function(e,t,n){const{currentRange:r}=t;let{slotDuration:o}=e;if(!o){const i=Ic(e,t,n);for(let e of Tc){const t=tn(e),n=sn(i,t);if(null!==n&&n>1&&n<=6){o=t;break}}if(o){n.countDurationsBetween(r.start,r.end,o)>200&&(o=null)}o||(o=i),e.slotDuration=o}}(o,e,t);let i=n.slotLabelFormat,a=Array.isArray(i)?i:null!=i?[i]:function(e,t,n,r){let o,i;const{labelInterval:a}=e;let s=cn(a).unit;const c=r.weekNumbers;let u=o=i=null;"week"!==s||c||(s="day");switch(s){case"year":u={year:"numeric"};break;case"month":Nc("years",t,n)>1&&(u={year:"numeric"}),o={month:"short"};break;case"week":Nc("years",t,n)>1&&(u={year:"numeric"}),o={week:"narrow"};break;case"day":Nc("years",t,n)>1?u={year:"numeric",month:"long"}:Nc("months",t,n)>1&&(u={month:"long"}),c&&(o={week:"short"}),i={weekday:"narrow",day:"numeric"};break;case"hour":c&&(u={week:"short"}),Nc("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":an(a)/6e4/60>=6?(u={hour:"numeric",meridiem:"short"},o=e=>":"+Gt(e.date.minute,2)):u={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":(function(e){return an(e)/1e3})(a)/60>=6?(u={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},o=e=>":"+Gt(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=e=>"."+Gt(e.millisecond,3)}return[].concat(u||[],o||[],i||[])}(o,e,t,n);o.headerFormats=a.map((e=>zn(e))),o.isTimeScale=Boolean(o.slotDuration.milliseconds);let s=null;if(!o.isTimeScale){const e=cn(o.slotDuration).unit;/year|month|week/.test(e)&&(s=e)}o.largeUnit=s,o.emphasizeWeeks=1===rn(o.slotDuration)&&Nc("weeks",e,t)>=2&&!n.businessHours;let c,u,l=n.snapDuration;l&&(c=tn(l),u=sn(o.slotDuration,c)),null==u&&(c=o.slotDuration,u=1),o.snapDuration=c,o.snapsPerSlot=u;let d=an(e.slotMaxTime)-an(e.slotMinTime),f=Zc(e.renderRange.start,o,t),p=Zc(e.renderRange.end,o,t);o.isTimeScale&&(f=t.add(f,e.slotMinTime),p=t.add(dn(p,-1),e.slotMaxTime)),o.timeWindowMs=d,o.normalizedRange={start:f,end:p};let h=[],m=f;for(;m<p;)Mc(m,o,e,r)&&h.push(m),m=t.add(m,o.slotDuration);o.slotDates=h;let g=-1,v=0;const y=[],b=[];for(m=f;m<p;)Mc(m,o,e,r)?(g+=1,y.push(g),b.push(v)):y.push(g+.5),m=t.add(m,o.snapDuration),v+=1;return o.snapDiffToIndex=y,o.snapIndexToDiff=b,o.snapCnt=g+1,o.slotCnt=o.snapCnt/o.snapsPerSlot,o.isWeekStarts=function(e,t){let{slotDates:n,emphasizeWeeks:r}=e,o=null,i=[];for(let e of n){let n=t.computeWeekNumber(e),a=r&&null!==o&&o!==n;o=n,i.push(a)}return i}(o,t),o.cellRows=function(e,t){let n=e.slotDates,r=e.headerFormats,o=r.map((()=>[])),i=rn(e.slotDuration),a=7===i?"week":1===i?"day":null,s=r.map((e=>e.getLargestUnit?e.getLargestUnit():null));for(let i=0;i<n.length;i+=1){let c=n[i],u=e.isWeekStarts[i];for(let n=0;n<r.length;n+=1){let i=r[n],l=o[n],d=l[l.length-1],f=n===r.length-1,p=r.length>1&&!f,h=null,m=s[n]||(f?a:null);if(p){let e=t.format(c,i);d&&d.text===e?d.colspan+=1:h=Fc(c,e,m)}else if(!d||Xt(t.countDurationsBetween(e.normalizedRange.start,c,e.labelInterval))){h=Fc(c,t.format(c,i),m)}else d.colspan+=1;h&&(h.weekStart=u,l.push(h))}}return o}(o,t),o.slotsPerLabel=sn(o.labelInterval,o.slotDuration),o}function Zc(e,t,n){let r=e;return t.isTimeScale||(r=mn(r),t.largeUnit&&(r=n.startOf(r,t.largeUnit))),r}function Mc(e,t,n,r){if(r.isHiddenDay(e))return!1;if(t.isTimeScale){let r=mn(e),o=e.valueOf()-r.valueOf()-an(n.slotMinTime);return o=(o%864e5+864e5)%864e5,o<t.timeWindowMs}return!0}function Ic(e,t,n){const{currentRange:r}=t;let{labelInterval:o}=e;if(!o){let t;if(e.slotDuration){for(t of Tc){const n=tn(t),r=sn(n,e.slotDuration);if(null!==r&&r<=6){o=n;break}}o||(o=e.slotDuration)}else for(t of Tc){o=tn(t);if(n.countDurationsBetween(r.start,r.end,o)>=18)break}e.labelInterval=o}return o}function Nc(e,t,n){let 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=hn(r.start,r.end)),o||0}function Fc(e,t,n){return{date:e,text:t,rowUnit:n,colspan:1,isWeekStart:!1}}class Lc extends kr{constructor(){super(...arguments),this.refineRenderProps=An(Uc),this.buildCellNavLinkAttrs=Cn(Bc)}render(){let{props:e,context:t}=this,{dateEnv:n,options:r}=t,{cell:o,dateProfile:i,tDateProfile:a}=e,s=hi(o.date,e.todayRange,e.nowDate,i),c=this.refineRenderProps({level:e.rowLevel,dateMarker:o.date,text:o.text,dateEnv:t.dateEnv,viewApi:t.viewApi});return ce(Tr,{elTag:"th",elClasses:["fc-timeline-slot","fc-timeline-slot-label",o.isWeekStart&&"fc-timeline-slot-em",..."time"===o.rowUnit?gi(s,t.theme):mi(s,t.theme)],elAttrs:{colSpan:o.colspan,"data-date":n.formatIso(o.date,{omitTime:!a.isTimeScale,omitTimeZoneOffset:!0})},renderProps:c,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:Hc,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},(n=>ce("div",{className:"fc-timeline-slot-frame",style:{height:e.rowInnerHeight}},ce(n,{elTag:"a",elClasses:["fc-timeline-slot-cushion","fc-scrollgrid-sync-inner",e.isSticky&&"fc-sticky"],elAttrs:this.buildCellNavLinkAttrs(t,o.date,o.rowUnit)}))))}}function Bc(e,t,n){return n&&"time"!==n?bi(e,t,n):{}}function Hc(e){return e.text}function Uc(e){return{level:e.level,date:e.dateEnv.toDate(e.dateMarker),view:e.viewApi,text:e.text}}class Wc extends kr{render(){let{dateProfile:e,tDateProfile:t,rowInnerHeights:n,todayRange:r,nowDate:o}=this.props,{cellRows:i}=t;return ce(le,null,i.map(((a,s)=>{let c=s===i.length-1,u=t.isTimeScale&&c;return ce("tr",{key:s,className:["fc-timeline-header-row",u?"fc-timeline-header-row-chrono":""].join(" ")},a.map((i=>ce(Lc,{key:i.date.toISOString(),cell:i,rowLevel:s,dateProfile:e,tDateProfile:t,todayRange:r,nowDate:o,rowInnerHeight:n&&n[s],isSticky:!c}))))})))}}class zc{constructor(e,t,n,r,o,i){this.slatRootEl=e,this.dateProfile=n,this.tDateProfile=r,this.dateEnv=o,this.isRtl=i,this.outerCoordCache=new Pi(e,t,!0,!1),this.innerCoordCache=new Pi(e,function(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let o=n[e].children;for(let e=0;e<o.length;e+=1){let n=o[e];t&&!Ct(n,t)||r.push(n)}}return r}(t,"div"),!0,!1)}isDateInRange(e){return Ur(this.dateProfile.currentRange,e)}dateToCoord(e){let{tDateProfile:t}=this,n=this.computeDateSnapCoverage(e)/t.snapsPerSlot,r=Math.floor(n);r=Math.min(r,t.slotCnt-1);let o=n-r,{innerCoordCache:i,outerCoordCache:a}=this;return this.isRtl?a.originClientRect.width-(a.rights[r]-i.getWidth(r)*o):a.lefts[r]+i.getWidth(r)*o}rangeToCoords(e){return{start:this.dateToCoord(e.start),end:this.dateToCoord(e.end)}}durationToCoord(e){let{dateProfile:t,tDateProfile:n,dateEnv:r,isRtl:o}=this,i=0;if(t){let a=r.add(t.activeRange.start,e);n.isTimeScale||(a=mn(a)),i=this.dateToCoord(a),!o&&i&&(i+=1)}return i}coordFromLeft(e){return this.isRtl?this.outerCoordCache.originClientRect.width-e:e}computeDateSnapCoverage(e){return Vc(e,this.tDateProfile,this.dateEnv)}}function Vc(e,t,n){let r=n.countDurationsBetween(t.normalizedRange.start,e,t.snapDuration);if(r<0)return 0;if(r>=t.snapDiffToIndex.length)return t.snapCnt;let o=Math.floor(r),i=t.snapDiffToIndex[o];return Xt(i)?i+=r-o:i=Math.ceil(i),i}function qc(e,t){return null===e?{left:"",right:""}:t?{right:e,left:""}:{left:e,right:""}}function Yc(e,t){return e?t?{right:e.start,left:-e.end}:{left:e.start,right:-e.end}:{left:"",right:""}}class Gc extends kr{constructor(){super(...arguments),this.rootElRef={current:null}}render(){let{props:e,context:t}=this,n=cn(e.tDateProfile.slotDuration).unit,r=e.slatCoords&&e.slatCoords.dateProfile===e.dateProfile?e.slatCoords:null;return ce(Ui,{unit:n},((n,o)=>ce("div",{className:"fc-timeline-header",ref:this.rootElRef},ce("table",{"aria-hidden":!0,className:"fc-scrollgrid-sync-table",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,ce("tbody",null,ce(Wc,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:n,todayRange:o,rowInnerHeights:e.rowInnerHeights}))),t.options.nowIndicator&&ce("div",{className:"fc-timeline-now-indicator-container"},r&&r.isDateInRange(n)&&ce(va,{elClasses:["fc-timeline-now-indicator-arrow"],elStyle:qc(r.dateToCoord(n),t.isRtl),isAxis:!0,date:n})))))}componentDidMount(){this.updateSize()}componentDidUpdate(){this.updateSize()}updateSize(){this.props.onMaxCushionWidth&&this.props.onMaxCushionWidth(this.computeMaxCushionWidth())}computeMaxCushionWidth(){return Math.max(...At(this.rootElRef.current,".fc-timeline-header-row:last-child .fc-timeline-slot-cushion").map((e=>e.getBoundingClientRect().width)))}}class Kc extends kr{render(){let{props:e,context:t}=this,{dateEnv:n,options:r,theme:o}=t,{date:i,tDateProfile:a,isEm:s}=e,c=hi(e.date,e.todayRange,e.nowDate,e.dateProfile),u=Object.assign(Object.assign({date:n.toDate(e.date)},c),{view:t.viewApi});return ce(Tr,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-slot","fc-timeline-slot-lane",s&&"fc-timeline-slot-em",a.isTimeScale?Xt(n.countDurationsBetween(a.normalizedRange.start,e.date,a.labelInterval))?"fc-timeline-slot-major":"fc-timeline-slot-minor":"",...e.isDay?mi(c,o):gi(c,o)],elAttrs:{"data-date":n.formatIso(i,{omitTimeZoneOffset:!0,omitTime:!a.isTimeScale})},renderProps:u,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount},(e=>ce(e,{elTag:"div"})))}}class Qc extends kr{render(){let{props:e}=this,{tDateProfile:t,cellElRefs:n}=e,{slotDates:r,isWeekStarts:o}=t,i=!t.isTimeScale&&!t.largeUnit;return ce("tbody",null,ce("tr",null,r.map(((r,a)=>{let s=r.toISOString();return ce(Kc,{key:s,elRef:n.createRef(s),date:r,dateProfile:e.dateProfile,tDateProfile:t,nowDate:e.nowDate,todayRange:e.todayRange,isEm:o[a],isDay:i})}))))}}class Xc extends kr{constructor(){super(...arguments),this.rootElRef={current:null},this.cellElRefs=new ea,this.handleScrollRequest=e=>{let{onScrollLeftRequest:t}=this.props,{coords:n}=this;if(t&&n){if(e.time){t(n.coordFromLeft(n.durationToCoord(e.time)))}return!0}return null}}render(){let{props:e,context:t}=this;return ce("div",{className:"fc-timeline-slots",ref:this.rootElRef},ce("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,ce(Qc,{cellElRefs:this.cellElRefs,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange})))}componentDidMount(){this.updateSizing(),this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.updateSizing(),this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach(),this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{props:e,context:t}=this;if(null!==e.clientWidth&&this.scrollResponder){this.rootElRef.current.offsetWidth&&(this.coords=new zc(this.rootElRef.current,(n=this.cellElRefs.currentMap,e.tDateProfile.slotDates.map((e=>{let t=e.toISOString();return n[t]}))),e.dateProfile,e.tDateProfile,t.dateEnv,t.isRtl),e.onCoords&&e.onCoords(this.coords),this.scrollResponder.update(!1))}var n}positionToHit(e){let{outerCoordCache:t}=this.coords,{dateEnv:n,isRtl:r}=this.context,{tDateProfile:o}=this.props,i=t.leftToIndex(e);if(null!=i){let a=t.getWidth(i),s=r?(t.rights[i]-e)/a:(e-t.lefts[i])/a,c=Math.floor(s*o.snapsPerSlot),u=n.add(o.slotDates[i],function(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}(o.snapDuration,c));return{dateSpan:{range:{start:u,end:n.add(u,o.snapDuration)},allDay:!this.props.tDateProfile.isTimeScale},dayEl:this.cellElRefs.currentMap[i],left:t.lefts[i],right:t.rights[i]}}return null}}function $c(e,t,n){let r=[];if(n)for(let o of e){let e=n.rangeToCoords(o),i=Math.round(e.start),a=Math.round(e.end);a-i<t&&(a=i+t),r.push({start:i,end:a})}return r}function Jc(e,t,n,r,o,i){let a=[],s=[];for(let r=0;r<e.length;r+=1){let o=e[r],i=n[o.eventRange.instance.instanceId],c=t[r];i&&c?a.push({index:r,span:c,thickness:i}):s.push({seg:o,hcoords:c,top:null})}let c=new Mi;null!=o&&(c.strictOrder=o),null!=i&&(c.maxStackCnt=i);let u=c.addSegs(a),l=u.map((t=>({seg:e[t.index],hcoords:t.span,top:null}))),d=function(e){let t=[];for(let o of e){let e=[],i={span:o.span,entries:[o]};for(let o of t)Fi(o.span,i.span)?i={entries:o.entries.concat(i.entries),span:(n=o.span,r=i.span,{start:Math.min(n.start,r.start),end:Math.max(n.end,r.end)})}:e.push(o);e.push(i),t=e}var n,r;return t}(u),f=[],p=[];const h=t=>e[t.index];for(let t=0;t<d.length;t+=1){let n=d[t],o=n.entries.map(h),i=r[En(Aa(o))];null!=i?f.push({index:e.length+t,thickness:i,span:n.span}):p.push({seg:o,hcoords:n.span,top:null})}c.maxStackCnt=-1,c.addSegs(f);let m=c.toRects(),g=[],v=0;for(let t of m){let n=t.index;g.push({seg:n<e.length?e[n]:d[n-e.length].entries.map(h),hcoords:t.span,top:t.levelCoord}),v=Math.max(v,t.levelCoord+t.thickness)}return[g.concat(s,l,p),v]}class eu extends kr{render(){let{props:e}=this,t=[].concat(e.eventResizeSegs,e.dateSelectionSegs);return e.timelineCoords&&ce("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"))}renderSegs(e,t,n){let{todayRange:r,nowDate:o}=this.props,{isRtl:i}=this.context,a=$c(e,0,t),s=e.map(((e,t)=>{let s=Yc(a[t],i);return ce("div",{key:(c=e.eventRange,c.instance?c.instance.instanceId:`${c.def.defId}:${c.range.start.toISOString()}`),className:"fc-timeline-bg-harness",style:s},"bg-event"===n?ce(Oa,Object.assign({seg:e},qo(e,r,o))):function(e){return ce("div",{className:`fc-${e}`})}(n));var c}));return ce(le,null,s)}}class tu extends class{constructor(){this.sliceBusinessHours=Cn(this._sliceBusinessHours),this.sliceDateSelection=Cn(this._sliceDateSpan),this.sliceEventStore=Cn(this._sliceEventStore),this.sliceEventDrag=Cn(this._sliceInteraction),this.sliceEventResize=Cn(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...o){let{eventUiBases:i}=e,a=this.sliceEventStore(e.eventStore,i,t,n,...o);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,i,r,...o),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...o),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,i,t,n,...o),eventResize:this.sliceEventResize(e.eventResize,i,t,n,...o),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...o){return this._sliceDateSpan({range:{start:e,end:fn(e,1)},allDay:!1},t,n,{},r,...o)}_sliceBusinessHours(e,t,n,r,...o){return e?this._sliceEventStore(Kr(e,zi(t,Boolean(n)),r),{},t,n,...o).bg:[]}_sliceEventStore(e,t,n,r,...o){if(e){let i=Io(e,t,zi(n,Boolean(r)),r);return{bg:this.sliceEventRanges(i.bg,o),fg:this.sliceEventRanges(i.fg,o)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...o){if(!e)return null;let i=Io(e.mutatedEvents,t,zi(n,Boolean(r)),r);return{segs:this.sliceEventRanges(i.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,o,...i){if(!e)return[];let a=zi(t,Boolean(n)),s=Fr(e.range,a);if(s){let t=function(e,t,n){let r=to({editable:!1},n),o=ro(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:Bo(o,t),instance:Gr(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:s}),r,o),n=this.sliceRange(e.range,...i);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:dn(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}}{sliceRange(e,t,n,r,o){let i=function(e,t,n){if(!t.isTimeScale&&(e=zr(e),t.largeUnit)){let 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),a=[];if(Vc(i.start,r,o)<Vc(i.end,r,o)){let e=Fr(i,r.normalizedRange);e&&a.push({start:e.start,end:e.end,isStart:e.start.valueOf()===i.start.valueOf()&&Mc(e.start,r,t,n),isEnd:e.end.valueOf()===i.end.valueOf()&&Mc(fn(e.end,-1),r,t,n)})}return a}}const nu=zn({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});class ru extends kr{render(){let{props:e}=this;return ce(ma,Object.assign({},e,{elClasses:["fc-timeline-event","fc-h-event"],defaultTimeFormat:nu,defaultDisplayEventTime:!e.isTimeScale}))}}class ou extends kr{render(){let{props:e,context:t}=this,{hiddenSegs:n,placement:r,resourceId:o}=e,{top:i,hcoords:a}=r,s=a&&null!==i,c=Yc(a,t.isRtl),u=o?{resourceId:o}:{};return ce(ka,{elRef:e.elRef,elClasses:["fc-timeline-more-link"],elStyle:Object.assign({visibility:s?"":"hidden",top:i||0},c),allDayDate:null,moreCnt:n.length,allSegs:n,hiddenSegs:n,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:u,popoverContent:()=>ce(le,null,n.map((t=>{let n=t.eventRange.instance.instanceId;return ce("div",{key:n,style:{visibility:e.isForcedInvisible[n]?"hidden":""}},ce(ru,Object.assign({isTimeScale:e.isTimeScale,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:n===e.eventSelection},qo(t,e.todayRange,e.nowDate))))})))},(e=>ce(e,{elTag:"div",elClasses:["fc-timeline-more-link-inner","fc-sticky"]})))}}class iu extends kr{constructor(){super(...arguments),this.slicer=new tu,this.sortEventSegs=Cn(Ho),this.harnessElRefs=new ea,this.moreElRefs=new ea,this.innerElRef={current:null},this.state={eventInstanceHeights:{},moreLinkHeights:{}},this.handleResize=e=>{e&&this.updateSize()}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,{dateProfile:o,tDateProfile:i}=e,a=this.slicer.sliceProps(e,o,i.isTimeScale?null:e.nextDayThreshold,n,o,n.dateProfileGenerator,i,n.dateEnv),s=(a.eventDrag?a.eventDrag.segs:null)||(a.eventResize?a.eventResize.segs:null)||[],c=this.sortEventSegs(a.fgEventSegs,r.eventOrder),u=$c(c,r.eventMinWidth,e.timelineCoords),[l,d]=Jc(c,u,t.eventInstanceHeights,t.moreLinkHeights,r.eventOrderStrict,r.eventMaxStack),f=(a.eventDrag?a.eventDrag.affectedInstances:null)||(a.eventResize?a.eventResize.affectedInstances:null)||{};return ce(le,null,ce(eu,{businessHourSegs:a.businessHourSegs,bgEventSegs:a.bgEventSegs,timelineCoords:e.timelineCoords,eventResizeSegs:a.eventResize?a.eventResize.segs:[],dateSelectionSegs:a.dateSelectionSegs,nowDate:e.nowDate,todayRange:e.todayRange}),ce("div",{className:"fc-timeline-events fc-scrollgrid-sync-inner",ref:this.innerElRef,style:{height:d}},this.renderFgSegs(l,f,!1,!1,!1),this.renderFgSegs(function(e,t,n){if(!e.length||!t)return[];let r=function(e){let t={};for(let n of e){let{seg:e}=n;Array.isArray(e)||(t[e.eventRange.instance.instanceId]=n.top)}return t}(n);return e.map((e=>({seg:e,hcoords:t.rangeToCoords(e),top:r[e.eventRange.instance.instanceId]})))}(s,e.timelineCoords,l),{},Boolean(a.eventDrag),Boolean(a.eventResize),!1)))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){e.eventStore===this.props.eventStore&&e.timelineCoords===this.props.timelineCoords&&t.moreLinkHeights===this.state.moreLinkHeights||this.updateSize()}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateSize(){let{props:e}=this,{timelineCoords:t}=e;const n=this.innerElRef.current;e.onHeightChange&&e.onHeightChange(n,!1),t&&this.setState({eventInstanceHeights:ir(this.harnessElRefs.currentMap,(e=>Math.round(e.getBoundingClientRect().height))),moreLinkHeights:ir(this.moreElRefs.currentMap,(e=>Math.round(e.getBoundingClientRect().height)))},(()=>{e.onHeightChange&&e.onHeightChange(n,!0)})),e.syncParentMinHeight&&(n.parentElement.style.minHeight=n.style.height)}renderFgSegs(e,t,n,r,o){let{harnessElRefs:i,moreElRefs:a,props:s,context:c}=this,u=n||r||o;return ce(le,null,e.map((e=>{let{seg:l,hcoords:d,top:f}=e;if(Array.isArray(l)){let n=En(Aa(l));return ce(ou,{key:"m:"+n,elRef:a.createRef(n),hiddenSegs:l,placement:e,dateProfile:s.dateProfile,nowDate:s.nowDate,todayRange:s.todayRange,isTimeScale:s.tDateProfile.isTimeScale,eventSelection:s.eventSelection,resourceId:s.resourceId,isForcedInvisible:t})}let p=l.eventRange.instance.instanceId,h=u||Boolean(!t[p]&&d&&null!==f),m=Yc(d,c.isRtl);return ce("div",{key:"e:"+p,ref:u?null:i.createRef(p),className:"fc-timeline-event-harness",style:Object.assign({visibility:h?"":"hidden",top:f||0},m)},ce(ru,Object.assign({isTimeScale:s.tDateProfile.isTimeScale,seg:l,isDragging:n,isResizing:r,isDateSelecting:o,isSelected:p===s.eventSelection},qo(l,s.todayRange,s.nowDate))))})))}}iu.addStateEquality({eventInstanceHeights:cr,moreLinkHeights:cr});class au extends Zi{constructor(){super(...arguments),this.slatsRef={current:null},this.state={coords:null},this.handeEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleCoords=e=>{this.setState({coords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,{dateProfile:o,tDateProfile:i}=e,a=cn(i.slotDuration).unit;return ce("div",{className:"fc-timeline-body",ref:this.handeEl,style:{minWidth:e.tableMinWidth,height:e.clientHeight,width:e.clientWidth}},ce(Ui,{unit:a},((a,s)=>ce(le,null,ce(Xc,{ref:this.slatsRef,dateProfile:o,tDateProfile:i,nowDate:a,todayRange:s,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleCoords,onScrollLeftRequest:e.onScrollLeftRequest}),ce(iu,{dateProfile:o,tDateProfile:e.tDateProfile,nowDate:a,todayRange:s,nextDayThreshold:r.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:t.coords,syncParentMinHeight:!0}),r.nowIndicator&&t.coords&&t.coords.isDateInRange(a)&&ce("div",{className:"fc-timeline-now-indicator-container"},ce(va,{elClasses:["fc-timeline-now-indicator-line"],elStyle:qc(t.coords.dateToCoord(a),n.isRtl),isAxis:!1,date:a}))))))}queryHit(e,t,n,r){let 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}}function su(e,t){return[{span:e.slotCnt,minWidth:t||1}]}Ot('.fc .fc-timeline-body{min-height:100%;position:relative;z-index:1}.fc .fc-timeline-slots{bottom:0;position:absolute;top:0;z-index:1}.fc .fc-timeline-slots>table{height:100%}.fc .fc-timeline-slot-minor{border-style:dotted}.fc .fc-timeline-slot-frame{align-items:center;display:flex;justify-content:center}.fc .fc-timeline-header-row-chrono .fc-timeline-slot-frame{justify-content:flex-start}.fc .fc-timeline-header-row:last-child .fc-timeline-slot-frame{overflow:hidden}.fc .fc-timeline-slot-cushion{padding:4px 5px;white-space:nowrap}.fc-direction-ltr .fc-timeline-slot{border-right:0!important}.fc-direction-rtl .fc-timeline-slot{border-left:0!important}.fc .fc-timeline-now-indicator-container{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:4}.fc .fc-timeline-now-indicator-arrow,.fc .fc-timeline-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;position:absolute;top:0}.fc .fc-timeline-now-indicator-arrow{border-left-color:transparent;border-right-color:transparent;border-width:6px 5px 0;margin:0 -6px}.fc .fc-timeline-now-indicator-line{border-width:0 0 0 1px;bottom:0;margin:0 -1px}.fc .fc-timeline-events{position:relative;width:0;z-index:3}.fc .fc-timeline-event-harness,.fc .fc-timeline-more-link{position:absolute;top:0}.fc-timeline-event{z-index:1}.fc-timeline-event.fc-event-mirror{z-index:2}.fc-timeline-event{align-items:center;border-radius:0;display:flex;font-size:var(--fc-small-font-size);margin-bottom:1px;padding:2px 1px;position:relative}.fc-timeline-event .fc-event-main{flex-grow:1;flex-shrink:1;min-width:0}.fc-timeline-event .fc-event-time{font-weight:700}.fc-timeline-event .fc-event-time,.fc-timeline-event .fc-event-title{padding:0 2px;white-space:nowrap}.fc-direction-ltr .fc-timeline-event.fc-event-end,.fc-direction-ltr .fc-timeline-more-link{margin-right:1px}.fc-direction-rtl .fc-timeline-event.fc-event-end,.fc-direction-rtl .fc-timeline-more-link{margin-left:1px}.fc-timeline-overlap-disabled .fc-timeline-event{margin-bottom:0;padding-bottom:5px;padding-top:5px}.fc-timeline-event:not(.fc-event-end):after,.fc-timeline-event:not(.fc-event-start):before{border-color:transparent #000;border-style:solid;border-width:5px;content:"";flex-grow:0;flex-shrink:0;height:0;margin:0 1px;opacity:.5;width:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-start):before,.fc-direction-rtl .fc-timeline-event:not(.fc-event-end):after{border-left:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-end):after,.fc-direction-rtl .fc-timeline-event:not(.fc-event-start):before{border-right:0}.fc-timeline-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;font-size:var(--fc-small-font-size);padding:1px}.fc-timeline-more-link-inner{display:inline-block;left:0;padding:2px;right:0}.fc .fc-timeline-bg{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:2}.fc .fc-timeline-bg .fc-non-business{z-index:1}.fc .fc-timeline-bg .fc-bg-event{z-index:2}.fc .fc-timeline-bg .fc-highlight{z-index:3}.fc .fc-timeline-bg-harness{bottom:0;position:absolute;top:0}');var cu=Fa({name:"@fullcalendar/timeline",premiumReleaseDate:"2023-02-07",deps:[Ns],initialView:"timelineDay",views:{timeline:{component:class extends Zi{constructor(){super(...arguments),this.buildTimelineDateProfile=Cn(Rc),this.scrollGridRef={current:null},this.state={slatCoords:null,slotCushionMaxWidth:null},this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleScrollLeftRequest=e=>{this.scrollGridRef.current.forceScrollLeft(0,e)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,o=!e.forPrint&&fa(r),i=!e.forPrint&&pa(r),a=this.buildTimelineDateProfile(e.dateProfile,n.dateEnv,r,n.dateProfileGenerator),{slotMinWidth:s}=r,c=su(a,s||this.computeFallbackSlotMinWidth(a)),u=[{type:"header",key:"header",isSticky:o,chunks:[{key:"timeline",content:n=>ce(Gc,{dateProfile:e.dateProfile,clientWidth:n.clientWidth,clientHeight:n.clientHeight,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,tDateProfile:a,slatCoords:t.slatCoords,onMaxCushionWidth:s?null:this.handleMaxCushionWidth})}]},{type:"body",key:"body",liquid:!0,chunks:[{key:"timeline",content:t=>ce(au,Object.assign({},e,{clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,tDateProfile:a,onSlatCoords:this.handleSlatCoords,onScrollLeftRequest:this.handleScrollLeftRequest}))}]}];return i&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"timeline",content:da}]}),ce(Zr,{elClasses:["fc-timeline",!1===r.eventOverlap?"fc-timeline-overlap-disabled":""],viewSpec:n.viewSpec},ce(Oc,{ref:this.scrollGridRef,liquid:!e.isHeightAuto&&!e.forPrint,collapsibleWidth:!1,colGroups:[{cols:c}],sections:u}))}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}},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}}}});const uu="_fc:",lu={id:String,parentId:String,children:tr,title:String,businessHours:tr,extendedProps:tr,eventEditable:Boolean,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventConstraint:tr,eventOverlap:Boolean,eventAllow:tr,eventClassNames:uo,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String};function du(e,t="",n,r){let{refined:o,extra:i}=er(e,lu),a={id:o.id||uu+Ht(),parentId:o.parentId||t,title:o.title||"",businessHours:o.businessHours?ko(o.businessHours,r):null,ui:po({editable:o.eventEditable,startEditable:o.eventStartEditable,durationEditable:o.eventDurationEditable,constraint:o.eventConstraint,overlap:o.eventOverlap,allow:o.eventAllow,classNames:o.eventClassNames,backgroundColor:o.eventBackgroundColor,borderColor:o.eventBorderColor,textColor:o.eventTextColor,color:o.eventColor},r),extendedProps:Object.assign(Object.assign({},i),o.extendedProps)};if(Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),n[a.id]);else if(n[a.id]=a,o.children)for(let e of o.children)du(e,a.id,n,r);return a}function fu(e){return 0===e.indexOf(uu)?"":e}class pu{constructor(e,t){this._context=e,this._resource=t}setProp(e,t){let n=this._resource;this._context.dispatch({type:"SET_RESOURCE_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)}setExtendedProp(e,t){let n=this._resource;this._context.dispatch({type:"SET_RESOURCE_EXTENDED_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)}sync(e){let t=this._context,n=e.id;this._resource=t.getCurrentData().resourceStore[n],t.emitter.trigger("resourceChange",{oldResource:new pu(t,e),resource:this,revert(){t.dispatch({type:"ADD_RESOURCE",resourceHash:{[n]:e}})}})}remove(){let e=this._context,t=this._resource,n=t.id;e.dispatch({type:"REMOVE_RESOURCE",resourceId:n}),e.emitter.trigger("resourceRemove",{resource:this,revert(){e.dispatch({type:"ADD_RESOURCE",resourceHash:{[n]:t}})}})}getParent(){let e=this._context,t=this._resource.parentId;return t?new pu(e,e.getCurrentData().resourceSource[t]):null}getChildren(){let e=this._resource.id,t=this._context,{resourceStore:n}=t.getCurrentData(),r=[];for(let o in n)n[o].parentId===e&&r.push(new pu(t,n[o]));return r}getEvents(){let e=this._resource.id,t=this._context,{defs:n,instances:r}=t.getCurrentData().eventStore,o=[];for(let i in r){let a=r[i],s=n[a.defId];-1!==s.resourceIds.indexOf(e)&&o.push(new Ro(t,s,a))}return o}get id(){return fu(this._resource.id)}get title(){return this._resource.title}get eventConstraint(){return this._resource.ui.constraints[0]||null}get eventOverlap(){return this._resource.ui.overlap}get eventAllow(){return this._resource.ui.allows[0]||null}get eventBackgroundColor(){return this._resource.ui.backgroundColor}get eventBorderColor(){return this._resource.ui.borderColor}get eventTextColor(){return this._resource.ui.textColor}get eventClassNames(){return this._resource.ui.classNames}get extendedProps(){return this._resource.extendedProps}toPlainObject(e={}){let t=this._resource,{ui:n}=t,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?Object.assign(o,t.extendedProps):o.extendedProps=t.extendedProps),o}toJSON(){return this.toPlainObject()}}class hu extends class{constructor(){this.getKeysForEventDefs=Cn(this._getKeysForEventDefs),this.splitDateSelection=Cn(this._splitDateSpan),this.splitEventStore=Cn(this._splitEventStore),this.splitIndividualUi=Cn(this._splitIndividualUi),this.splitEventDrag=Cn(this._splitInteraction),this.splitEventResize=Cn(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,n),i=this.splitEventStore(e.eventStore,n),a=this.splitEventDrag(e.eventDrag),s=this.splitEventResize(e.eventResize),c={};this.eventUiBuilders=ir(t,((e,t)=>this.eventUiBuilders[t]||Cn(pi)));for(let n in t){let u=t[n],l=i[n]||fi,d=this.eventUiBuilders[n];c[n]={businessHours:u.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:l,eventUiBases:d(e.eventUiBases[""],u.ui,o[n]),eventSelection:l.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[n]||null,eventResize:s[n]||null}}return c}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return ir(e.defs,(e=>this.getKeysForEventDef(e)))}_splitEventStore(e,t){let{defs:n,instances:r}=e,o={};for(let e in n)for(let r of t[e])o[r]||(o[r]={defs:{},instances:{}}),o[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])o[r]&&(o[r].instances[e]=n)}return o}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let o of t[r])n[o]||(n[o]={}),n[o][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,r),i=r=>{t[r]||(t[r]={affectedEvents:n[r]||fi,mutatedEvents:o[r]||fi,isEvent:e.isEvent})};for(let e in n)i(e);for(let e in o)i(e)}return t}}{getKeyInfo(e){return Object.assign({"":{}},e.resourceStore)}getKeysForDateSpan(e){return[e.resourceId||""]}getKeysForEventDef(e){let t=e.resourceIds;return t.length?t:[""]}}const mu=zt("id,title");function gu(e){return{resource:new pu(e.context,e.resource)}}function vu(e,t,n,r,o,i){let a=function(e,t,n,r){let o=function(e,t){let n={};for(let t in e){let r=e[t];n[t]={resource:r,resourceFields:Ou(r),children:[]}}for(let r in e){let o=e[r];if(o.parentId){let e=n[o.parentId];e&&wu(n[r],e.children,t)}}return n}(e,r),i=[];for(let e in o){let a=o[e];a.resource.parentId||bu(a,i,n,0,t,r)}return i}(e,r?-1:1,t,n),s=[];return yu(a,s,r,[],0,o,i),s}function yu(e,t,n,r,o,i,a){for(let s=0;s<e.length;s+=1){let c=e[s],u=c.group;if(u)if(n){let e=t.length,s=r.length;if(yu(c.children,t,n,r.concat(0),o,i,a),e<t.length){let n=t[e];(n.rowSpans=n.rowSpans.slice())[s]=t.length-e}}else{let e=u.spec.field+":"+u.value,s=null!=i[e]?i[e]:a;t.push({id:e,group:u,isExpanded:s}),s&&yu(c.children,t,n,r,o+1,i,a)}else if(c.resource){let e=c.resource.id,s=null!=i[e]?i[e]:a;t.push({id:e,rowSpans:r,depth:o,isExpanded:s,hasChildren:Boolean(c.children.length),resource:c.resource,resourceFields:c.resourceFields}),s&&yu(c.children,t,n,r,o+1,i,a)}}}function bu(e,t,n,r,o,i){if(n.length&&(-1===o||r<=o)){let a=function(e,t,n){let r,o,i=e.resourceFields[n.field];if(n.order)for(o=0;o<t.length;o+=1){let e=t[o];if(e.group){let t=Yt(i,e.group.value)*n.order;if(0===t){r=e;break}if(t<0)break}}else for(o=0;o<t.length;o+=1){let e=t[o];if(e.group&&i===e.group.value){r=e;break}}r||(r={group:{value:i,spec:n},children:[]},t.splice(o,0,r));return r}(e,t,n[0]);bu(e,a.children,n.slice(1),r+1,o,i)}else wu(e,t,i)}function wu(e,t,n){let r;for(r=0;r<t.length;r+=1){if(Vt(t[r].resourceFields,e.resourceFields,n)>0)break}t.splice(r,0,e)}function Ou(e){let t=Object.assign(Object.assign(Object.assign({},e.extendedProps),e.ui),e);return delete t.ui,delete t.extendedProps,t}function xu(e,t){let{resourceEditable:n}=e;if(null==n){let r=e.sourceId&&t.getCurrentData().eventSources[e.sourceId];r&&(n=r.extendedProps.resourceEditable),null==n&&(n=t.options.eventResourceEditable,null==n&&(n=t.options.editable))}return n}function Su(e,t,n,r){if(t){let t=function(e,t){return or(e,(e=>Br(e.range,t)))}(n.instances,r),o=function(e,t){let n={};for(let r in e){let o=e[r];for(let e of t[o.defId].resourceIds)n[e]=!0}return n}(t,n.defs);return Object.assign(o,function(e,t){let n={};for(let r in e){let e;for(;(e=t[r])&&(r=e.parentId,r);)n[r]=!0}return n}(o,e)),or(e,((e,t)=>o[t]))}return e}function Eu(e){return ir(e,(e=>e.ui))}function ku(e,t,n){return ir(e,((e,r)=>r?function(e,t,n){let r=[];for(let e of t.resourceIds)n[e]&&r.unshift(n[e]);return r.unshift(e),ho(r)}(e,t[r],n):e))}let _u=[];function Cu(e){_u.push(e)}function Au(e){return _u[e]}function Pu(){return _u}const ju={id:String,resources:tr,url:String,method:String,startParam:String,endParam:String,timeZoneParam:String,extraParams:tr};function Du(e){let t;if("string"==typeof e?t={url:e}:"function"==typeof e||Array.isArray(e)?t={resources:e}:"object"==typeof e&&e&&(t=e),t){let{refined:n,extra:r}=er(t,ju);!function(e){for(let t in e)console.warn(`Unknown resource prop '${t}'`)}(r);let o=function(e){let t=Pu();for(let n=t.length-1;n>=0;n-=1){let r=t[n].parseMeta(e);if(r)return{meta:r,sourceDefId:n}}return null}(n);if(o)return{_raw:e,sourceId:Ht(),sourceDefId:o.sourceDefId,meta:o.meta,publicId:n.id||"",isFetching:!1,latestFetchId:"",fetchRange:null}}return null}function Tu(e,t,n){let{options:r,dateProfile:o}=n;if(!e||!t)return Ru(r.initialResources||r.resources,o.activeRange,r.refetchResourcesOnNavigate,n);switch(t.type){case"RESET_RESOURCE_SOURCE":return Ru(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(Au(e.sourceDefId).ignoreRange)}(e)&&(!e.fetchRange||!Lr(e.fetchRange,t)))return Zu(e,t,r);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 Object.assign(Object.assign({},e),{isFetching:!1,fetchRange:n});return e}(e,t.fetchId,t.fetchRange);case"REFETCH_RESOURCES":return Zu(e,o.activeRange,n);default:return e}}function Ru(e,t,n,r){if(e){let o=Du(e);return o=Zu(o,n?t:null,r),o}return null}function Zu(e,t,n){let r=Au(e.sourceDefId),o=Ht();return r.fetch({resourceSource:e,range:t,context:n},(e=>{n.dispatch({type:"RECEIVE_RESOURCES",fetchId:o,fetchRange:t,rawResources:e.rawResources})}),(e=>{n.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:o,fetchRange:t,error:e})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:o})}function Mu(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){let e={};for(let n of t)du(n,"",e,o);return e}return e}(e,t.rawResources,t.fetchId,n,r);case"ADD_RESOURCE":return o=e,i=t.resourceHash,Object.assign(Object.assign({},o),i);case"REMOVE_RESOURCE":return function(e,t){let n=Object.assign({},e);delete n[t];for(let e in n)n[e].parentId===t&&(n[e]=Object.assign(Object.assign({},n[e]),{parentId:""}));return n}(e,t.resourceId);case"SET_RESOURCE_PROP":return function(e,t,n,r){let o=e[t];if(o)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},o),{[n]:r})});return e}(e,t.resourceId,t.propName,t.propValue);case"SET_RESOURCE_EXTENDED_PROP":return function(e,t,n,r){let o=e[t];if(o)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},o),{extendedProps:Object.assign(Object.assign({},o.extendedProps),{[n]:r})})});return e}(e,t.resourceId,t.propName,t.propValue);default:return e}var o,i}const Iu={resourceId:String,resourceIds:tr,resourceEditable:Boolean};function Nu(e,t){return Object.assign(Object.assign({},t),{constraints:Fu(e,t.constraints)})}function Fu(e,t){return t.map((t=>{let n=t.defs;if(n)for(let t in n){let r=n[t].resourceIds;if(r.length&&-1===r.indexOf(e))return!1}return t}))}ci.prototype.addResource=function(e,t=!0){let n,r,o=this.getCurrentData();e instanceof pu?(r=e._resource,n={[r.id]:r}):(n={},r=du(e,"",n,o)),this.dispatch({type:"ADD_RESOURCE",resourceHash:n}),t&&this.trigger("_scrollRequest",{resourceId:r.id});let i=new pu(o,r);return o.emitter.trigger("resourceAdd",{resource:i,revert:()=>{this.dispatch({type:"REMOVE_RESOURCE",resourceId:r.id})}}),i},ci.prototype.getResourceById=function(e){e=String(e);let t=this.getCurrentData();if(t.resourceStore){let n=t.resourceStore[e];if(n)return new pu(t,n)}return null},ci.prototype.getResources=function(){let e=this.getCurrentData(),{resourceStore:t}=e,n=[];if(t)for(let r in t)n.push(new pu(e,t[r]));return n},ci.prototype.getTopLevelResources=function(){let e=this.getCurrentData(),{resourceStore:t}=e,n=[];if(t)for(let r in t)t[r].parentId||n.push(new pu(e,t[r]));return n},ci.prototype.refetchResources=function(){this.dispatch({type:"REFETCH_RESOURCES"})};const Lu={resources:function(e,t){t.getCurrentData().resourceSource._raw!==e&&t.dispatch({type:"RESET_RESOURCE_SOURCE",resourceSourceInput:e})}};const Bu={initialResources:tr,resources:tr,eventResourceEditable:Boolean,refetchResourcesOnNavigate:Boolean,resourceOrder:zt,filterResourcesWithEvents:Boolean,resourceGroupField:String,resourceAreaWidth:tr,resourceAreaColumns:tr,resourcesInitiallyExpanded:Boolean,datesAboveResources:Boolean,needsResourceData:Boolean,resourceAreaHeaderClassNames:tr,resourceAreaHeaderContent:tr,resourceAreaHeaderDidMount:tr,resourceAreaHeaderWillUnmount:tr,resourceGroupLabelClassNames:tr,resourceGroupLabelContent:tr,resourceGroupLabelDidMount:tr,resourceGroupLabelWillUnmount:tr,resourceLabelClassNames:tr,resourceLabelContent:tr,resourceLabelDidMount:tr,resourceLabelWillUnmount:tr,resourceLaneClassNames:tr,resourceLaneContent:tr,resourceLaneDidMount:tr,resourceLaneWillUnmount:tr,resourceGroupLaneClassNames:tr,resourceGroupLaneContent:tr,resourceGroupLaneDidMount:tr,resourceGroupLaneWillUnmount:tr},Hu={resourcesSet:tr,resourceAdd:tr,resourceChange:tr,resourceRemove:tr};Ro.prototype.getResources=function(){let{calendarApi:e}=this._context;return this._def.resourceIds.map((t=>e.getResourceById(t)))},Ro.prototype.setResources=function(e){let t=[];for(let n of e){let e=null;"string"==typeof n?e=n:"number"==typeof n?e=String(n):n instanceof pu?e=n.id:console.warn("unknown resource type: "+n),e&&t.push(e)}this.mutate({standardProps:{resourceIds:t}})},Cu({ignoreRange:!0,parseMeta:e=>Array.isArray(e.resources)?e.resources:null,fetch(e,t){t({rawResources:e.resourceSource.meta})}}),Cu({parseMeta:e=>"function"==typeof e.resources?e.resources:null,fetch(e,t,n){const 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}:{};Jo(o.bind(null,i),(e=>t({rawResources:e})),n)}}),Cu({parseMeta:e=>e.url?{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams}:null,fetch(e,t,n){const r=e.resourceSource.meta,o=function(e,t,n){let r,o,i,a,{dateEnv:s,options:c}=n,u={};t&&(r=e.startParam,null==r&&(r=c.startParam),o=e.endParam,null==o&&(o=c.endParam),i=e.timeZoneParam,null==i&&(i=c.timeZoneParam),u[r]=s.formatIso(t.start),u[o]=s.formatIso(t.end),"local"!==s.timeZone&&(u[i]=s.timeZone));a="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};return Object.assign(u,a),u}(r,e.range,e.context);ti(r.method,r.url,o).then((([e,n])=>{t({rawResources:e,response:n})}),n)}});var Uu=Fa({name:"@fullcalendar/resource",premiumReleaseDate:"2023-02-07",deps:[Ns],reducers:[function(e,t,n){let r=Tu(e&&e.resourceSource,t,n),o=Mu(e&&e.resourceStore,t,r,n),i=function(e,t){return e&&t?"SET_RESOURCE_ENTITY_EXPANDED"===t.type?Object.assign(Object.assign({},e),{[t.id]:t.isExpanded}):e:{}}(e&&e.resourceEntityExpansions,t);return{resourceSource:r,resourceStore:o,resourceEntityExpansions:i}}],isLoadingFuncs:[e=>e.resourceSource&&e.resourceSource.isFetching],eventRefiners:Iu,eventDefMemberAdders:[function(e){return{resourceIds:(t=e.resourceIds,(t||[]).map((e=>String(e)))).concat(e.resourceId?[e.resourceId]:[]),resourceEditable:e.resourceEditable};var t}],isDraggableTransformers:[function(e,t,n,r){if(!e){let e=r.getCurrentData();if(e.viewSpecs[e.currentViewType].optionDefaults.needsResourceData&&xu(t,r))return!0}return e}],eventDragMutationMassagers:[function(e,t,n){let r=t.dateSpan.resourceId,o=n.dateSpan.resourceId;r&&o&&r!==o&&(e.resourceMutation={matchResourceId:r,setResourceId:o})}],eventDefMutationAppliers:[function(e,t,n){let r=t.resourceMutation;if(r&&xu(e,n)){let t=e.resourceIds.indexOf(r.matchResourceId);if(-1!==t){let n=e.resourceIds.slice();n.splice(t,1),-1===n.indexOf(r.setResourceId)&&n.push(r.setResourceId),e.resourceIds=n}}}],dateSelectionTransformers:[function(e,t){let 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:[class{constructor(){this.filterResources=Cn(Su)}transform(e,t){return t.viewSpec.optionDefaults.needsResourceData?{resourceStore:this.filterResources(t.resourceStore,t.options.filterResourcesWithEvents,t.eventStore,t.dateProfile.activeRange),resourceEntityExpansions:t.resourceEntityExpansions}:null}},class{constructor(){this.buildResourceEventUis=Cn(Eu,cr),this.injectResourceEventUis=Cn(ku)}transform(e,t){return t.viewSpec.optionDefaults.needsResourceData?null:{eventUiBases:this.injectResourceEventUis(e.eventUiBases,e.eventStore.defs,this.buildResourceEventUis(t.resourceStore))}}}],isPropsValid:function(e,t){let n=(new hu).splitProps(Object.assign(Object.assign({},e),{resourceStore:t.getCurrentData().resourceStore}));for(let e in n){let r=n[e];if(e&&n[""]&&(r=Object.assign(Object.assign({},r),{eventStore:so(n[""].eventStore,r.eventStore),eventUiBases:Object.assign(Object.assign({},n[""].eventUiBases),r.eventUiBases)})),!Yi(r,t,{resourceId:e},Nu.bind(null,e)))return!1}return!0},externalDefTransforms:[function(e){return e.resourceId?{resourceId:e.resourceId}:{}}],eventDropTransformers:[function(e,t){let{resourceMutation:n}=e;if(n){let{calendarApi:e}=t;return{oldResource:e.getResourceById(n.matchResourceId),newResource:e.getResourceById(n.setResourceId)}}return{oldResource:null,newResource:null}}],optionChangeHandlers:Lu,optionRefiners:Bu,listenerRefiners:Hu,propSetHandlers:{resourceStore:function(e,t){let{emitter:n}=t;n.hasHandlers("resourcesSet")&&n.trigger("resourcesSet",function(e,t){let n=[];for(let r in e)n.push(new pu(t,e[r]));return n}(e,t))}}});function Wu({depth:e,hasChildren:t,isExpanded:n,onExpanderClick:r}){let o=[];for(let t=0;t<e;t+=1)o.push(ce("span",{className:"fc-icon"}));let i=["fc-icon"];return t&&(n?i.push("fc-icon-minus-square"):i.push("fc-icon-plus-square")),o.push(ce("span",{className:"fc-datagrid-expander"+(t?"":" fc-datagrid-expander-placeholder"),onClick:r},ce("span",{className:i.join(" ")}))),ce(le,{},...o)}class zu extends kr{constructor(){super(...arguments),this.refineRenderProps=An(qu),this.onExpanderClick=e=>{let{props:t}=this;t.hasChildren&&this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:t.resource.id,isExpanded:!t.isExpanded})}}render(){let{props:e,context:t}=this,{colSpec:n}=e,r=this.refineRenderProps({resource:e.resource,fieldValue:e.fieldValue,context:t});return ce(Tr,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource"],elAttrs:{role:"gridcell","data-resource-id":e.resource.id},renderProps:r,generatorName:n.isMain?"resourceLabelContent":void 0,customGenerator:n.cellContent,defaultGenerator:Vu,classNameGenerator:n.cellClassNames,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},(t=>ce("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},ce("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},n.isMain&&ce(Wu,{depth:e.depth,hasChildren:e.hasChildren,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),ce(t,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})))))}}function Vu(e){return e.fieldValue||ce(le,null," ")}function qu(e){return{resource:new pu(e.context,e.resource),fieldValue:e.fieldValue,view:e.context.viewApi}}class Yu extends kr{render(){let{props:e,context:t}=this,{colSpec:n}=e,r={groupValue:e.fieldValue,view:t.viewApi};return ce(Tr,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource-group"],elAttrs:{role:"gridcell",rowSpan:e.rowSpan},renderProps:r,generatorName:"resourceGroupLabelContent",customGenerator:n.cellContent,defaultGenerator:Gu,classNameGenerator:n.cellClassNames,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},(e=>ce("div",{className:"fc-datagrid-cell-frame fc-datagrid-cell-frame-liquid"},ce(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-sticky"]}))))}}function Gu(e){return e.groupValue||ce(le,null," ")}class Ku extends kr{render(){let{props:e}=this,{resource:t,rowSpans:n,depth:r}=e,o=Ou(t);return ce("tr",{role:"row"},e.colSpecs.map(((i,a)=>{let s=n[a];if(0===s)return null;null==s&&(s=1);let c=i.field?o[i.field]:t.title||fu(t.id);return s>1?ce(Yu,{key:a,colSpec:i,fieldValue:c,rowSpan:s}):ce(zu,{key:a,colSpec:i,resource:t,fieldValue:c,depth:r,hasChildren:e.hasChildren,isExpanded:e.isExpanded,innerHeight:e.innerHeight})})))}}Ku.addPropsEquality({rowSpans:un});class Qu extends kr{constructor(){super(...arguments),this.innerInnerRef={current:null},this.onExpanderClick=()=>{let{props:e}=this;this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:e.id,isExpanded:!e.isExpanded})}}render(){let{props:e,context:t}=this,n={groupValue:e.group.value,view:t.viewApi},r=e.group.spec;return ce("tr",{role:"row"},ce(Tr,{elTag:"th",elClasses:["fc-datagrid-cell","fc-resource-group",t.theme.getClass("tableCellShaded")],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.spreadsheetColCnt},renderProps:n,generatorName:"resourceGroupLabelContent",customGenerator:r.labelContent,defaultGenerator:Xu,classNameGenerator:r.labelClassNames,didMount:r.labelDidMount,willUnmount:r.labelWillUnmount},(t=>ce("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},ce("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:this.innerInnerRef},ce(Wu,{depth:0,hasChildren:!0,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),ce(t,{elTag:"span",elClasses:["fc-datagrid-cell-main"]}))))))}}function Xu(e){return e.groupValue||ce(le,null," ")}Qu.addPropsEquality({group:function(e,t){return e.spec===t.spec&&e.value===t.value}});class $u extends kr{constructor(){super(...arguments),this.resizerElRefs=new ea(this._handleColResizerEl.bind(this)),this.colDraggings={}}render(){let{colSpecs:e,superHeaderRendering:t,rowInnerHeights:n}=this.props,r={view:this.context.viewApi},o=[];if(n=n.slice(),t){let i=n.shift();o.push(ce("tr",{key:"row-super",role:"row"},ce(Tr,{elTag:"th",elClasses:["fc-datagrid-cell","fc-datagrid-cell-super"],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.length},renderProps:r,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},(e=>ce("div",{className:"fc-datagrid-cell-frame",style:{height:i}},ce(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-scrollgrid-sync-inner"]}))))))}let i=n.shift();return o.push(ce("tr",{key:"row",role:"row"},e.map(((t,n)=>{let o=n===e.length-1;return ce(Tr,{key:n,elTag:"th",elClasses:["fc-datagrid-cell"],elAttrs:{role:"columnheader"},renderProps:r,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},(e=>ce("div",{className:"fc-datagrid-cell-frame",style:{height:i}},ce("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},t.isMain&&ce("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},ce("span",{className:"fc-icon"})),ce(e,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})),!o&&ce("div",{className:"fc-datagrid-cell-resizer",ref:this.resizerElRefs.createRef(n)}))))})))),ce(le,null,o)}_handleColResizerEl(e,t){let{colDraggings:n}=this;if(e){let r=this.initColResizing(e,parseInt(t,10));r&&(n[t]=r)}else{let e=n[t];e&&(e.destroy(),delete n[t])}}initColResizing(e,t){let{pluginHooks:n,isRtl:r}=this.context,{onColWidthChange:o}=this.props,i=n.elementDraggingImpl;if(i){let n,a,s=new i(e);return s.emitter.on("dragstart",(()=>{let r=At(_t(e,"tr"),"th");a=r.map((e=>e.getBoundingClientRect().width)),n=a[t]})),s.emitter.on("dragmove",(e=>{a[t]=Math.max(n+e.deltaX*(r?-1:1),20),o&&o(a.slice())})),s.setAutoScrollEnabled(!1),s}return null}}class Ju extends kr{constructor(){super(...arguments),this.refineRenderProps=An(gu),this.handleHeightChange=(e,t)=>{this.props.onHeightChange&&this.props.onHeightChange(_t(e,"tr"),t)}}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({resource:e.resource,context:t});return ce("tr",{ref:e.elRef},ce(Tr,{elTag:"td",elClasses:["fc-timeline-lane","fc-resource"],elAttrs:{"data-resource-id":e.resource.id},renderProps:r,generatorName:"resourceLaneContent",customGenerator:n.resourceLaneContent,classNameGenerator:n.resourceLaneClassNames,didMount:n.resourceLaneDidMount,willUnmount:n.resourceLaneWillUnmount},(t=>ce("div",{className:"fc-timeline-lane-frame",style:{height:e.innerHeight}},ce(t,{elTag:"div",elClasses:["fc-timeline-lane-misc"]}),ce(iu,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:e.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:e.timelineCoords,onHeightChange:this.handleHeightChange,resourceId:e.resource.id})))))}}class el extends kr{render(){let{props:e,context:t}=this,{renderHooks:n}=e,r={groupValue:e.groupValue,view:t.viewApi};return ce("tr",{ref:e.elRef},ce(Tr,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-lane","fc-resource-group",t.theme.getClass("tableCellShaded")],renderProps:r,generatorName:"resourceGroupLaneContent",customGenerator:n.laneContent,classNameGenerator:n.laneClassNames,didMount:n.laneDidMount,willUnmount:n.laneWillUnmount},(t=>ce(t,{elTag:"div",elStyle:{height:e.innerHeight}}))))}}class tl extends kr{render(){let{props:e,context:t}=this,{rowElRefs:n,innerHeights:r}=e;return ce("tbody",null,e.rowNodes.map(((o,i)=>{if(o.group)return ce(el,{key:o.id,elRef:n.createRef(o.id),groupValue:o.group.value,renderHooks:o.group.spec,innerHeight:r[i]||""});if(o.resource){let a=o.resource;return ce(Ju,Object.assign({key:o.id,elRef:n.createRef(o.id)},e.splitProps[a.id],{resource:a,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:t.options.nextDayThreshold,businessHours:a.businessHours||e.fallbackBusinessHours,innerHeight:r[i]||"",timelineCoords:e.slatCoords,onHeightChange:e.onRowHeightChange}))}return null})))}}class nl extends kr{constructor(){super(...arguments),this.rootElRef={current:null},this.rowElRefs=new ea}render(){let{props:e,context:t}=this;return ce("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}},ce(tl,{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}))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}componentWillUnmount(){this.props.onRowCoords&&this.props.onRowCoords(null)}updateCoords(){let{props:e}=this;var t;e.onRowCoords&&null!==e.clientWidth&&this.props.onRowCoords(new Pi(this.rootElRef.current,(t=this.rowElRefs.currentMap,e.rowNodes.map((e=>t[e.id]))),!1,!0))}}class rl extends Zi{constructor(){super(...arguments),this.computeHasResourceBusinessHours=Cn(ol),this.resourceSplitter=new hu,this.bgSlicer=new tu,this.slatsRef={current:null},this.state={slatCoords:null},this.handleEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)},this.handleRowCoords=e=>{this.rowCoords=e,this.props.onRowCoords&&this.props.onRowCoords(e)}}render(){let{props:e,state:t,context:n}=this,{dateProfile:r,tDateProfile:o}=e,i=cn(o.slotDuration).unit,a=this.computeHasResourceBusinessHours(e.rowNodes),s=this.resourceSplitter.splitProps(e),c=s[""],u=this.bgSlicer.sliceProps(c,r,o.isTimeScale?null:e.nextDayThreshold,n,r,n.dateProfileGenerator,o,n.dateEnv),l=t.slatCoords&&t.slatCoords.dateProfile===e.dateProfile?t.slatCoords:null;return ce("div",{ref:this.handleEl,className:["fc-timeline-body",e.expandRows?"fc-timeline-body-expandrows":""].join(" "),style:{minWidth:e.tableMinWidth}},ce(Ui,{unit:i},((t,i)=>ce(le,null,ce(Xc,{ref:this.slatsRef,dateProfile:r,tDateProfile:o,nowDate:t,todayRange:i,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleSlatCoords,onScrollLeftRequest:e.onScrollLeftRequest}),ce(eu,{businessHourSegs:a?null:u.businessHourSegs,bgEventSegs:u.bgEventSegs,timelineCoords:l,eventResizeSegs:u.eventResize?u.eventResize.segs:[],dateSelectionSegs:u.dateSelectionSegs,nowDate:t,todayRange:i}),ce(nl,{rowNodes:e.rowNodes,dateProfile:r,tDateProfile:e.tDateProfile,nowDate:t,todayRange:i,splitProps:s,fallbackBusinessHours:a?e.businessHours:null,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,innerHeights:e.rowInnerHeights,slatCoords:l,onRowCoords:this.handleRowCoords,onRowHeightChange:e.onRowHeightChange}),n.options.nowIndicator&&l&&l.isDateInRange(t)&&ce("div",{className:"fc-timeline-now-indicator-container"},ce(va,{elClasses:["fc-timeline-now-indicator-line"],elStyle:qc(l.dateToCoord(t),n.isRtl),isAxis:!1,date:t}))))))}queryHit(e,t){let n=this.rowCoords,r=n.topToIndex(t);if(null!=r){let t=this.props.rowNodes[r].resource;if(t){let o=this.slatsRef.current.positionToHit(e);if(o)return{dateProfile:this.props.dateProfile,dateSpan:{range:o.dateSpan.range,allDay:o.dateSpan.allDay,resourceId:t.id},rect:{left:o.left,right:o.right,top:n.tops[r],bottom:n.bottoms[r]},dayEl:o.dayEl,layer:0}}}return null}}function ol(e){for(let t of e){let e=t.resource;if(e&&e.businessHours)return!0}return!1}class il extends kr{constructor(){super(...arguments),this.scrollGridRef={current:null},this.timeBodyScrollerElRef={current:null},this.spreadsheetHeaderChunkElRef={current:null},this.rootElRef={current:null},this.ensureScrollGridResizeId=0,this.state={resourceAreaWidthOverride:null},this.ensureScrollGridResize=()=>{this.ensureScrollGridResizeId&&clearTimeout(this.ensureScrollGridResizeId),this.ensureScrollGridResizeId=setTimeout((()=>{this.scrollGridRef.current.handleSizing(!1)}),Hi.SCROLLGRID_RESIZE_INTERVAL+1)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,o=!e.forPrint&&fa(r),i=!e.forPrint&&pa(r),a=[{type:"header",key:"header",syncRowHeights:!0,isSticky:o,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:e.spreadsheetHeaderRows},{key:"divider",outerContent:ce("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:e.timeHeaderContent}]},{type:"body",key:"body",syncRowHeights:!0,liquid:!0,expandRows:Boolean(r.expandRows),chunks:[{key:"datagrid",tableClassName:"fc-datagrid-body",rowContent:e.spreadsheetBodyRows},{key:"divider",outerContent:ce("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:e.timeBodyContent}]}];i&&a.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:da},{key:"divider",outerContent:ce("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:da}]});let s=null!=t.resourceAreaWidthOverride?t.resourceAreaWidthOverride:r.resourceAreaWidth;return ce(Oc,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!e.isHeightAuto&&!e.forPrint,collapsibleWidth:!1,colGroups:[{cols:e.spreadsheetCols,width:s},{cols:[]},{cols:e.timeCols}],sections:a})}forceTimeScroll(e){this.scrollGridRef.current.forceScrollLeft(2,e)}forceResourceScroll(e){this.scrollGridRef.current.forceScrollTop(1,e)}getResourceScroll(){return this.timeBodyScrollerElRef.current.scrollTop}componentDidMount(){this.initSpreadsheetResizing()}componentWillUnmount(){this.destroySpreadsheetResizing()}initSpreadsheetResizing(){let{isRtl:e,pluginHooks:t}=this.context,n=t.elementDraggingImpl,r=this.spreadsheetHeaderChunkElRef.current;if(n){let t,o,i=this.rootElRef.current,a=this.spreadsheetResizerDragging=new n(i,".fc-resource-timeline-divider");a.emitter.on("dragstart",(()=>{t=r.getBoundingClientRect().width,o=i.getBoundingClientRect().width})),a.emitter.on("dragmove",(n=>{let r=t+n.deltaX*(e?-1:1);r=Math.max(r,30),r=Math.min(r,o-30),this.setState({resourceAreaWidthOverride:r},this.ensureScrollGridResize)})),a.setAutoScrollEnabled(!1)}}destroySpreadsheetResizing(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()}}class al extends kr{constructor(e,t){super(e,t),this.processColOptions=Cn(ll),this.buildTimelineDateProfile=Cn(Rc),this.hasNesting=Cn(ul),this.buildRowNodes=Cn(vu),this.layoutRef={current:null},this.rowNodes=[],this.renderedRowNodes=[],this.buildRowIndex=Cn(sl),this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleRowCoords=e=>{this.rowCoords=e,this.scrollResponder.update(!1)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})},this.handleScrollLeftRequest=e=>{this.layoutRef.current.forceTimeScroll(e)},this.handleScrollRequest=e=>{let{rowCoords:t}=this,n=this.layoutRef.current,r=e.rowId||e.resourceId;if(t){if(r){let o=this.buildRowIndex(this.renderedRowNodes)[r];if(null!=o){let r=null!=e.fromBottom?t.bottoms[o]-e.fromBottom:t.tops[o];n.forceResourceScroll(r)}}return!0}return null},this.handleColWidthChange=e=>{this.setState({spreadsheetColWidths:e})},this.state={resourceAreaWidth:t.options.resourceAreaWidth,spreadsheetColWidths:[]}}render(){let{props:e,state:t,context:n}=this,{options:r,viewSpec:o}=n,{superHeaderRendering:i,groupSpecs:a,orderSpecs:s,isVGrouping:c,colSpecs:u}=this.processColOptions(n.options),l=this.buildTimelineDateProfile(e.dateProfile,n.dateEnv,r,n.dateProfileGenerator),d=this.rowNodes=this.buildRowNodes(e.resourceStore,a,s,c,e.resourceEntityExpansions,r.resourcesInitiallyExpanded),{slotMinWidth:f}=r,p=su(l,f||this.computeFallbackSlotMinWidth(l));return ce(Zr,{elClasses:["fc-resource-timeline",!this.hasNesting(d)&&"fc-resource-timeline-flat","fc-timeline",!1===r.eventOverlap?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled"],viewSpec:o},ce(il,{ref:this.layoutRef,forPrint:e.forPrint,isHeightAuto:e.isHeightAuto,spreadsheetCols:cl(u,t.spreadsheetColWidths,""),spreadsheetHeaderRows:e=>ce($u,{superHeaderRendering:i,colSpecs:u,onColWidthChange:this.handleColWidthChange,rowInnerHeights:e.rowSyncHeights}),spreadsheetBodyRows:e=>ce(le,null,this.renderSpreadsheetRows(d,u,e.rowSyncHeights)),timeCols:p,timeHeaderContent:n=>ce(Gc,{clientWidth:n.clientWidth,clientHeight:n.clientHeight,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,dateProfile:e.dateProfile,tDateProfile:l,slatCoords:t.slatCoords,rowInnerHeights:n.rowSyncHeights,onMaxCushionWidth:f?null:this.handleMaxCushionWidth}),timeBodyContent:t=>ce(rl,{dateProfile:e.dateProfile,clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,expandRows:t.expandRows,tDateProfile:l,rowNodes:d,businessHours:e.businessHours,dateSelection:e.dateSelection,eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,resourceStore:e.resourceStore,nextDayThreshold:n.options.nextDayThreshold,rowInnerHeights:t.rowSyncHeights,onSlatCoords:this.handleSlatCoords,onRowCoords:this.handleRowCoords,onScrollLeftRequest:this.handleScrollLeftRequest,onRowHeightChange:t.reportRowHeightChange})}))}renderSpreadsheetRows(e,t,n){return e.map(((e,r)=>e.group?ce(Qu,{key:e.id,id:e.id,spreadsheetColCnt:t.length,isExpanded:e.isExpanded,group:e.group,innerHeight:n[r]||""}):e.resource?ce(Ku,{key:e.id,colSpecs:t,rowSpans:e.rowSpans,depth:e.depth,isExpanded:e.isExpanded,hasChildren:e.hasChildren,resource:e.resource,innerHeight:n[r]||""}):null))}componentDidMount(){this.renderedRowNodes=this.rowNodes,this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}getSnapshotBeforeUpdate(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}}componentDidUpdate(e,t,n){this.renderedRowNodes=this.rowNodes,this.scrollResponder.update(e.dateProfile!==this.props.dateProfile),n.resourceScroll&&this.handleScrollRequest(n.resourceScroll)}componentWillUnmount(){this.scrollResponder.detach()}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}queryResourceScroll(){let{rowCoords:e,renderedRowNodes:t}=this;if(e){let n=this.layoutRef.current,r=e.bottoms,o=n.getResourceScroll(),i={};for(let e=0;e<r.length;e+=1){let n=t[e],a=r[e]-o;if(a>0){i.rowId=n.id,i.fromBottom=a;break}}return i}return null}}function sl(e){let t={};for(let n=0;n<e.length;n+=1)t[e[n].id]=n;return t}function cl(e,t,n=""){return e.map(((e,r)=>({className:e.isMain?"fc-main-col":"",width:t[r]||e.width||n})))}function ul(e){for(let t of e){if(t.group)return!0;if(t.resource&&t.hasChildren)return!0}return!1}function ll(e){let 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,headerDefault:()=>"Resources",headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount});let r=[],o=[],i=[],a=!1;for(let n of t)n.group?o.push(Object.assign(Object.assign({},n),{cellClassNames:n.cellClassNames||e.resourceGroupLabelClassNames,cellContent:n.cellContent||e.resourceGroupLabelContent,cellDidMount:n.cellDidMount||e.resourceGroupLabelDidMount,cellWillUnmount:n.cellWillUnmount||e.resourceGroupLaneWillUnmount})):r.push(n);let s=r[0];if(s.isMain=!0,s.cellClassNames=s.cellClassNames||e.resourceLabelClassNames,s.cellContent=s.cellContent||e.resourceLabelContent,s.cellDidMount=s.cellDidMount||e.resourceLabelDidMount,s.cellWillUnmount=s.cellWillUnmount||e.resourceLabelWillUnmount,o.length)i=o,a=!0;else{let t=e.resourceGroupField;t&&i.push({field:t,labelClassNames:e.resourceGroupLabelClassNames,labelContent:e.resourceGroupLabelContent,labelDidMount:e.resourceGroupLabelDidMount,labelWillUnmount:e.resourceGroupLabelWillUnmount,laneClassNames:e.resourceGroupLaneClassNames,laneContent:e.resourceGroupLaneContent,laneDidMount:e.resourceGroupLaneDidMount,laneWillUnmount:e.resourceGroupLaneWillUnmount})}let c=e.resourceOrder||mu,u=[];for(let e of c){let t=!1;for(let n of i)if(n.field===e.field){n.order=e.order,t=!0;break}t||u.push(e)}return{superHeaderRendering:n,isVGrouping:a,groupSpecs:i,colSpecs:o.concat(r),orderSpecs:u}}al.addStateEquality({spreadsheetColWidths:un});Ot(".fc .fc-resource-timeline-divider{cursor:col-resize;width:3px}.fc .fc-resource-group{font-weight:inherit;text-align:inherit}.fc .fc-resource-timeline .fc-resource-group:not([rowspan]){background:var(--fc-neutral-bg-color)}.fc .fc-timeline-lane-frame{position:relative}.fc .fc-timeline-overlap-enabled .fc-timeline-lane-frame .fc-timeline-events{box-sizing:content-box;padding-bottom:10px}.fc-timeline-body-expandrows td.fc-timeline-lane{position:relative}.fc-timeline-body-expandrows .fc-timeline-lane-frame{position:static}.fc-datagrid-cell-frame-liquid{height:100%}.fc-liquid-hack .fc-datagrid-cell-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-datagrid-header .fc-datagrid-cell-frame{align-items:center;display:flex;justify-content:flex-start;position:relative}.fc .fc-datagrid-cell-resizer{bottom:0;cursor:col-resize;position:absolute;top:0;width:5px;z-index:1}.fc .fc-datagrid-cell-cushion{overflow:hidden;padding:8px;white-space:nowrap}.fc .fc-datagrid-expander{cursor:pointer;opacity:.65}.fc .fc-datagrid-expander .fc-icon{display:inline-block;width:1em}.fc .fc-datagrid-expander-placeholder{cursor:auto}.fc .fc-resource-timeline-flat .fc-datagrid-expander-placeholder{display:none}.fc-direction-ltr .fc-datagrid-cell-resizer{right:-3px}.fc-direction-rtl .fc-datagrid-cell-resizer{left:-3px}.fc-direction-ltr .fc-datagrid-expander{margin-right:3px}.fc-direction-rtl .fc-datagrid-expander{margin-left:3px}");var dl=Fa({name:"@fullcalendar/resource-timeline",premiumReleaseDate:"2023-02-07",deps:[Ns,Uu,cu],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:al,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}}}}),fl=a(42060),pl=a(76791),hl=a(49546),ml=a(92300),gl=a(19013),vl=a(91857),yl=a(13882);function bl(e,t){(0,yl.Z)(2,arguments);var n=(0,gl.default)(e),r=(0,gl.default)(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var wl=a(23842),Ol=function(e,t){var n={locale:wl.Z.getDateFnsLocale(e)};return(0,hl.default)(t,"HH",n)},xl=function(e,t,n){var r=(0,ml.default)(n,t),o=function(e,t){(0,yl.Z)(2,arguments);var n=(0,gl.default)(e),r=(0,gl.default)(t),o=bl(n,r),i=Math.abs((0,vl.default)(n,r));n.setFullYear(1584),r.setFullYear(1584);var a=bl(n,r)===-o,s=o*(i-Number(a));return 0===s?0:s}(n,t),i=r>0,a="d. LLLL".concat(o>0?" y":""),s="H:mm",c={locale:wl.Z.getDateFnsLocale(e)},u=(0,hl.default)(t,a,c),l=(0,hl.default)(n,a,c),d=(0,hl.default)(t,s,c),f=(0,hl.default)(n,s,c);return"".concat(u,", ").concat(d," - ").concat(i?"".concat(l,", "):"").concat(f)},Sl=a(85893);const El=function(e){var t=e.conflictStatus,n=e.intl;if(t!==W.ACCEPTED&&t!==W.EXISTING)return null;var r=t===W.ACCEPTED,o="client.scheduler.conflict".concat(r?"Accepted":"Existing"),i=r?"✓":"✕";return(0,Sl.jsxs)("span",{children:[i," ",n.formatMessage({id:o})]})};var kl,_l=a(44012),Cl=a(65035),Al=a(16751),Pl=(a(59339),a(9198)),jl=a.n(Pl),Dl=a(38205),Tl=a(28655),Rl=a.n(Tl),Zl=Dl.ZP.span.withConfig({displayName:"StyledChildrenWrapper"})(kl||(kl=Rl()(["\n cursor: pointer;\n user-select: none;\n"])));const Ml=function(e){var t=e.children,n=e.onOpen;return(0,Sl.jsx)(Zl,{onClick:n,children:t})};(0,a(77281).X)();const Il=(0,Dl.Zz)((0,E.ZP)((function(e){var t,n=e.children,r=e.value,o=e.onChange,i=e.intl,a=i.locale,s=(0,A.useRef)(null),c=(0,A.useState)(!1),u=C()(c,2),l=u[0],d=u[1],f=function(e){var t,n;(d(e),null!==(t=s.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=s.current)||void 0===n||n.setPreSelection(r))};return(0,Sl.jsx)(jl(),{ref:s,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){f(!0)},onClickOutside:function(){f(!1)},locale:a,enableTabLoop:!1,customInput:(0,Sl.jsx)(Ml,{onOpen:function(){f(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",i.formatMessage({id:t}))})})));var Nl,Fl,Ll,Bl,Hl,Ul,Wl,zl=a(34206),Vl=a(88162),ql=a(7281),Yl=a(24875),Gl=Dl.ZP.div.withConfig({displayName:"StyledNavigationFullCalendar"})(Nl||(Nl=Rl()(["\n display: flex;\n justify-content: space-between;\n padding: ",";\n border-bottom: 3px solid ",";\n flex-wrap: wrap;\n gap: ",";\n\n > div {\n display: flex;\n align-items: center;\n }\n"])),ql.Z.space(-.8),Yl.FS.color("backgroundBody"),ql.Z.space(-.5)),Kl=Dl.ZP.div.withConfig({displayName:"StyledButtonGroupReloadWrapper"})(Fl||(Fl=Rl()(["\n && {\n display: grid;\n grid-template-columns: auto 40px;\n }\n"]))),Ql=Dl.ZP.div.withConfig({displayName:"StyledReloadButtonWrapper"})(Ll||(Ll=Rl()([""])));function Xl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xl(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jl=function(e,t){return e===t?{ink:"secondary"}:{}},ed=function(e,t){return t.formatMessage({id:e})};const td=(0,E.ZP)((function(e){var t=e.date,n=e.changeRange,r=e.changeView,o=e.chooseNext,i=e.choosePrev,a=e.chooseToday,s=e.goToDate,c=e.intl,u=e.isLoading,l=e.refresh,d=e.title,f=e.type;return(0,Sl.jsxs)(Gl,{children:[(0,Sl.jsxs)("div",{children:[(0,Sl.jsx)(Cl.Z,{look:"raised",onClick:function(){a(),n()},children:Bl||(Bl=(0,Sl.jsx)(_l.Z,{id:"client.scheduler.today"}))}),(0,Sl.jsxs)(Al.Z,{children:[(0,Sl.jsx)(Cl.Z,{look:"raised",onClick:function(){i(),n()},icon:"chevron-left",title:ed("client.scheduler.previous",c)}),(0,Sl.jsx)(Cl.Z,{look:"raised",onClick:function(){o(),n()},icon:"chevron-right",title:ed("client.scheduler.next",c)})]}),(0,Sl.jsxs)(Il,{value:t,onChange:function(e){s(e),n()},children:[(0,Sl.jsx)(zl.ZP.Span,{children:d}),(0,Sl.jsx)(Vl.Z,{style:{marginLeft:"5px"},icon:"chevron-down"})]})]}),(0,Sl.jsxs)(Kl,{children:[(0,Sl.jsxs)(Al.Z,{children:[(0,Sl.jsx)(Cl.Z,$l($l({look:"raised"},Jl("dayView",f)),{},{onClick:function(){return r("dayView")},children:Hl||(Hl=(0,Sl.jsx)(_l.Z,{id:"client.scheduler.day"}))})),(0,Sl.jsx)(Cl.Z,$l($l($l({look:"raised"},Jl("weekView",f)),Jl("weekViewSimple",f)),{},{onClick:function(){return r("weekViewSimple"!==f?"weekViewSimple":"weekView")},children:Ul||(Ul=(0,Sl.jsx)(_l.Z,{id:"client.scheduler.week"}))})),(0,Sl.jsx)(Cl.Z,$l($l({look:"raised"},Jl("monthView",f)),{},{onClick:function(){return r("monthView")},children:Wl||(Wl=(0,Sl.jsx)(_l.Z,{id:"client.scheduler.month"}))}))]}),(0,Sl.jsx)(Ql,{children:(0,Sl.jsx)(Cl.Z,{icon:u?"":"sync",onClick:function(){u||l()},pending:u,title:ed("client.scheduler.reload",c)})})]})]})})),nd=td;const rd=function(e){var t=e.fieldValue,n=e.resource,r=e.onCalendarRemove;return(0,Sl.jsxs)(Sl.Fragment,{children:[(0,Sl.jsx)("input",{type:"checkbox",defaultChecked:!0,className:"remove-resource-checkbox",onClick:function(){return r(n.extendedProps.entityKey,n.extendedProps.entityModel)}}),t]})};var od,id,ad,sd,cd=a(30759),ud=a(11347),ld=Dl.ZP.div.withConfig({displayName:"StyledFullCalendarWrapper"})(od||(od=Rl()(["\n height: 100%;\n display: grid;\n grid-template-rows: auto 1fr;\n\n .fc {\n ",";\n\n table {\n font-size: ",";\n }\n\n // decrease header height\n .fc-datagrid-header {\n .fc-datagrid-cell-frame {\n height: 25px !important;\n }\n }\n\n .fc-theme-standard {\n td,\n th {\n border: 1px solid ",";\n }\n }\n\n .fc-timeline-event {\n overflow: hidden;\n }\n\n .fc-timeline-slot-frame a {\n text-decoration: none;\n }\n\n // decrease header height\n .fc-timeline-slot-frame.fc-timeline-slot-frame {\n height: 25px !important;\n }\n\n .remove-resource-checkbox {\n margin-right: 6px;\n }\n\n .fc-scroller {\n ","\n }\n\n .fc-scrollgrid {\n border-top: 0; // remove top border as it otherwise causes a double border when not scrolling\n border-color: ",";\n }\n\n // prevent top border from disappearing on scroll\n & .fc-scroller-harness {\n border-top: 1px solid ",";\n }\n\n .fc-timeline-header-row {\n th {\n font-weight: ",";\n }\n }\n\n .fc-event {\n cursor: pointer;\n\n .dark {\n color: ",";\n }\n\n .bright {\n color: ",";\n }\n\n .conflict {\n border: 2px dashed ",";\n }\n\n .fc-event-time {\n overflow: visible;\n font-size: ",";\n font-weight: ",";\n }\n }\n\n .fc-event-title {\n font-size: ",";\n }\n }\n"])),(0,cd.Z)(),ql.Z.font(-2),Yl.FS.color("border"),ud.C,Yl.FS.color("border"),Yl.FS.color("border"),Yl.FS.fontWeight("regular"),Yl.FS.color("text"),Yl.FS.color("paper"),Yl.FS.color("signal.danger"),ql.Z.font(0),Yl.FS.fontWeight("regular"),ql.Z.font(0)),dd=Dl.ZP.div.withConfig({displayName:"StyledMemoizedFullCalender"})(id||(id=Rl()(["\n overflow-y: auto;\n"]))),fd=(0,Dl.vJ)(ad||(ad=Rl()(["\n @media print {\n body * {\n visibility: hidden;\n }\n\n #section-to-print,\n #section-to-print * {\n visibility: visible;\n color: ",";\n\n input[type='checkbox'] {\n visibility: hidden !important;\n }\n }\n\n #section-to-print {\n position: fixed;\n overflow: visible;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n\n & *:not(.fc-timeline-event-harness *) {\n overflow: visible;\n }\n }\n }\n"])),Yl.FS.color("text"));function pd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pd(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var md=(0,A.forwardRef)((function(e,t){var n=e.resources,r=e.events,o=e.onDateRangeChange,i=e.isLoading,a=e.onRefresh,s=e.onCalendarRemove,c=e.onCalendarRemoveAll,u=e.locale,l=e.onEventClick,d=e.intl,f=(0,A.useRef)(null),p=(0,A.useRef)(null),h=(0,A.useCallback)((function(){var e=f.current.getApi().view;o&&o({startDate:e.activeStart,endDate:e.activeEnd})}),[o]);(0,A.useEffect)((function(){h()}),[h,u]),(0,A.useEffect)((function(){var e=f.current.getApi();e.batchRendering((function(){e.getEventSources().forEach((function(e){return e.remove()})),e.addEventSource(r)}))}),[JSON.stringify(r)]),(0,A.useEffect)((function(){var e=f.current.getApi();e.batchRendering((function(){var t=e.getResources();t.forEach((function(e){var t=n.find((function(t){return e.id===t.id}));t||e.remove()})),n.forEach((function(n){var r=t.find((function(e){return e.id===n.id}));r||e.addResource(n)}))}))}),[JSON.stringify(n)]);var m=(0,Sl.jsx)("input",{type:"checkbox",checked:!0,onChange:function(){return c()},style:{visibility:n.length>0?"visible":"hidden"},className:"remove-all-checkbox"}),g=function(e){var t=xl(u,e.event.start,e.event.end||e.event.start),n=(0,Sl.jsxs)("div",{children:[(0,Sl.jsx)(fl.Z,{type:"html",value:e.event.extendedProps.description}),(0,Sl.jsx)("p",{children:t}),(0,Sl.jsx)("p",{children:(0,Sl.jsx)(El,{conflictStatus:e.event.extendedProps.conflict,intl:d})})]}),r=e.event.extendedProps.styleAttr;return(0,Sl.jsx)(pl.Z,{content:n,isPlainHtml:!0,placement:"top",children:(0,Sl.jsxs)("div",{className:"fc-event-main-frame ".concat(r&&r.join(" ")),children:[e.timeText&&(0,Sl.jsx)("div",{className:"fc-event-time",children:e.timeText}),(0,Sl.jsx)("div",{className:"fc-event-title-container",children:(0,Sl.jsx)("div",{className:"fc-event-title fc-sticky",children:e.event.title||(0,Sl.jsx)(Sl.Fragment,{children:" "})})})]})})},y=(0,A.useMemo)((function(){return(0,Sl.jsx)(Zs,{resourceOrder:"calendarType,title",schedulerLicenseKey:(e="MISSING_ENV_VAR".FULL_CALENDAR_LICENCE,e||(v.Z.logWarning("This Version runs with the NonCommercial FullCalendar license."),"CC-Attribution-NonCommercial-NoDerivatives")),locale:u,plugins:[zs,dl,dc],ref:f,initialView:"dayView",headerToolbar:!1,height:"100%",resourceAreaWidth:"15%",resourceAreaColumns:[{labelText:"",headerContent:m}],resourceLabelContent:function(e){return(0,Sl.jsx)(rd,hd(hd({},e),{},{onCalendarRemove:s}))},eventClick:function(e){l(e.event)},eventContent:g,firstDay:1,slotMinTime:"06:00:00",slotMaxTime:"23:00:00",views:{dayView:{type:"resourceTimelineDay",slotLabelFormat:function(e){return Ol(u,te()(Date,I()(e.date.array)))}},weekView:{type:"resourceTimelineWeek",slotLabelFormat:[{weekday:"short",month:"numeric",day:"numeric"},function(e){return Ol(u,te()(Date,I()(e.date.array)))}]},weekViewSimple:{type:"resourceTimelineWeek",slotDuration:{day:1},slotLabelFormat:[{weekday:"short",month:"numeric",day:"numeric"}]},monthView:{type:"resourceTimelineMonth",slotLabelFormat:{weekday:"short",day:"numeric",omitCommas:!0}}}});var e}),[n.length]);return(0,A.useImperativeHandle)(t,(function(){return{updateSize:function(){setTimeout((function(){f.current.getApi().updateSize()}),0)}}})),(0,Sl.jsxs)(ld,{ref:p,children:[sd||(sd=(0,Sl.jsx)(fd,{})),f.current&&(0,Sl.jsx)(nd,{changeRange:h,changeView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"timelineDay";f.current.getApi().changeView(e),h()},chooseNext:function(){return f.current.getApi().next()},choosePrev:function(){return f.current.getApi().prev()},chooseToday:function(){return f.current.getApi().today()},goToDate:function(e){return f.current.getApi().gotoDate(e)},date:f.current.getApi().getDate(),isLoading:i,refresh:a,title:f.current.getApi().view.title,type:f.current.getApi().view.type}),(0,Sl.jsx)(dd,{id:"section-to-print",children:y})]})}));md.defaultProps={locale:"en"},md.displayName="FullCalendar";const gd=md;const vd=function(e){return(0,Sl.jsx)(gd,{events:(t=e.calendars,t.reduce((function(e,t){return[].concat(I()(e),I()(t.events.map((function(e){return V(V({entity:e.source,resourceId:$(t.key,t.model),title:e.label,start:e.start,end:e.end,description:e.description,conflict:e.conflict},e.color?{backgroundColor:e.color,borderColor:e.color}:{}),{},{styleAttr:[].concat(I()(e.conflict===W.EXISTING?["conflict"]:[]),[(n=e.color,U(n,"bright","dark"))])});var n}))))}),[])),resources:J(e.calendars),onDateRangeChange:e.onDateRangeChange,onCalendarRemove:e.onCalendarRemove,onCalendarRemoveAll:e.onCalendarRemoveAll,onEventClick:e.onEventClick,onRefresh:e.onRefresh,locale:e.locale,isLoading:e.isLoading,intl:e.intl,ref:e.schedulerRef});var t};var yd="scheduler/SET_CALENDARS",bd="scheduler/ON_DATE_RANGE_CHANGE",wd="scheduler/ON_CALENDAR_REMOVE",Od="scheduler/ON_CALENDARS_REMOVE_ALL",xd="scheduler/ON_EVENT_CLICK",Sd="scheduler/ON_REFRESH",Ed="scheduler/REMOVE_EVENTS",kd="scheduler/SET_IS_LOADING",_d=function(){return{type:Ed}},Cd=function(e){return{type:kd,payload:{isLoading:e}}},Ad={onDateRangeChange:function(e){return{type:bd,payload:{dateRange:e}}},onCalendarRemove:function(e,t){return{type:wd,payload:{id:e,entityModel:t}}},onCalendarRemoveAll:function(){return{type:Od}},onEventClick:function(e){return{type:xd,payload:{event:e}}},onRefresh:function(){return{type:Sd}}};const Pd=(0,k.connect)((function(e,t){return{calendars:e.scheduler.calendars,locale:e.intl.locale,isLoading:e.scheduler.isLoading,schedulerRef:e.input.schedulerRef}}),Ad)((0,E.ZP)(vd));var jd,Dd=a(41654),Td=function(e){return Dd.Z.getDispatchActions(e,Rd)},Rd=[{name:"calendars",action:function(e){return{type:yd,payload:{calendars:e}}},argsFactory:function(e){return[e.calendars]}}],Zd=a(81770);function Md(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Id(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Md(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Md(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nd=(jd={},p()(jd,yd,Zd.Z.singleTransferReducer("calendars")),p()(jd,kd,Zd.Z.singleTransferReducer("isLoading")),p()(jd,Ed,(function(e){return Id(Id({},e),{},{calendars:e.calendars.map((function(e){return Id(Id({},e),{},{events:[]})}))})})),jd),Fd={calendars:[],isLoading:!0};const Ld=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fd,t=arguments.length>1?arguments[1]:void 0,n=Nd[t.type];return n?n(e,t):e};var Bd=m().mark(zd),Hd=m().mark(Yd),Ud=m().mark(Kd),Wd=m().mark(Qd);function zd(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.$6)([(0,g.Fm)(bd,Vd),(0,g.Fm)(wd,qd),(0,g.Fm)(Od,Yd),(0,g.Fm)(xd,Gd),(0,g.Fm)(Sd,Kd),(0,g.Fm)(yd,Qd)]);case 2:case"end":return e.stop()}}),Bd)}function Vd(e){var t=e.payload;return m().mark((function e(){var n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.gz)(Cd(!0));case 2:return e.next=4,(0,g.gz)(_d());case 4:return n=t.dateRange,e.next=7,(0,g.gz)(c.Z.fireExternalEvent("onDateRangeChange",{dateRange:n}));case 7:case"end":return e.stop()}}),e)}))()}function qd(e){var t=e.payload;return m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.gz)(Cd(!0));case 2:return e.next=4,(0,g.gz)(c.Z.fireExternalEvent("onCalendarRemove",{id:t.id,entityModel:t.entityModel}));case 4:case"end":return e.stop()}}),e)}))()}function Yd(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.gz)(Cd(!0));case 2:return e.next=4,(0,g.gz)(c.Z.fireExternalEvent("onCalendarRemoveAll"));case 4:case"end":return e.stop()}}),Hd)}function Gd(e){var t=e.payload;return m().mark((function e(){var n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.event.extendedProps.entity)){e.next=4;break}return e.next=4,(0,g.gz)(c.Z.fireExternalEvent("onEventClick",n));case 4:case"end":return e.stop()}}),e)}))()}function Kd(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.gz)(Cd(!0));case 2:return e.next=4,(0,g.gz)(_d());case 4:return e.next=6,(0,g.gz)(c.Z.fireExternalEvent("onRefresh"));case 6:case"end":return e.stop()}}),Ud)}function Qd(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.gz)(Cd(!1));case 2:case"end":return e.stop()}}),Wd)}const Xd={scheduler:Ld};var $d,Jd=[zd];function ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ef(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nf="scheduler",rf=["onDateRangeChange","onCalendarRemove","onCalendarRemoveAll","onEventClick","onRefresh"],of=function(t,n,r,o){var i=$d||($d=(0,Sl.jsx)(Pd,{})),a=e.Z.createStore(Xd,Jd,n,nf);return c.Z.addToStore(a,(function(t){return e.Z.getEvents(rf,t.input)})),e.Z.createApp(nf,i,a,{input:n,events:r,actions:Td(n),publicPath:o,textResourceModules:["component","common",nf]})},af=function(t){var n=e.Z.useApp({initApp:of,props:t,packageName:nf,externalEvents:rf}),r=n.component,o=n.store;return Z.Z.useDidUpdate((function(){Td(t).forEach((function(e){null!=r&&o.dispatch(e)}))}),[t]),r};af.propTypes=tf(tf({calendars:n().arrayOf(n().shape({calendarType:n().string.isRequired,events:n().arrayOf(n().shape({description:n().string,start:n().number,end:n().number,allDay:n().bool})),key:n().string.isRequired,label:n().string.isRequired,model:n().string.isRequired})),schedulerRef:n().object},rf.reduce((function(e,t){return tf(tf({},e),{},p()({},t,n().func))}),{})),{},{locale:n().string});const sf=af;var cf="resourceScheduler/SET_CALENDAR_TYPES",uf="resourceScheduler/INITIALIZE",lf="resourceScheduler/UPDATE_REQUESTED_CALENDARS",df="resourceScheduler/LOAD_REQUESTED_CALENDARS",ff="resourceScheduler/SET_CALENDARS",pf="resourceScheduler/SET_DATE_RANGE",hf="resourceScheduler/REMOVE_REQUESTED_CALENDAR",mf="resourceScheduler/REMOVE_ALL_CALENDARS",gf="resourceScheduler/ON_EVENT_CLICK",vf="resourceScheduler/ON_REFRESH",yf="resourceScheduler/SET_HANDLE_NOTIFICATIONS",bf=function(e,t){return{type:lf,payload:{calendarType:e,ids:t}}},wf=function(e){return{type:ff,payload:{calendars:e}}},Of=function(e){return{type:pf,payload:{dateRange:e}}},xf=function(e,t){return{type:hf,payload:{entityModel:e,id:t}}},Sf={onDateRangeChange:function(e){var t=e.dateRange;return Of(t)},onCalendarRemove:function(e){var t=e.entityModel,n=e.id;return xf(t,n)},onCalendarRemoveAll:function(){return{type:mf}},onEventClick:function(e){return function(e,t){return{type:gf,payload:{model:e,key:t}}}(e.model,e.key)},onRefresh:function(){return{type:vf}}};const Ef=(0,k.connect)((function(e,t){return{calendars:e.resourceScheduler.calendars,locale:e.intl.locale}}),Sf)((0,E.ZP)(sf));var kf=a(54828),_f=a(78958),Cf=a(61724);function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Af(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jf=function(e){var t=e.color,n=e.label;return(0,Sl.jsxs)(zl.ZP.Span,{children:[(0,Sl.jsx)(Vl.Z,{icon:t?"square-full":"square","aria-hidden":"true",style:Pf({},t?{color:t}:{}),position:_f.Z.position.PREPEND})," ",n]})},Df=function(e){var t=e.updateRequestedCalendars,n=e.locale,r=e.requestedCalendars,o=e.calendarTypes,i=e.emitAction,a=e.initialCalendarType,s=function(e){return function(n){t(e,n)}},c=a?o.findIndex((function(e){return e.name===a})):-1;return(0,Sl.jsx)(Cf.ZP.Group,{initialOpenPanelIndex:c,children:o.map((function(e){return(0,Sl.jsxs)(Cf.ZP.Wrapper,{children:[(0,Sl.jsx)(Cf.ZP.Header,{children:(0,Sl.jsx)(jf,{color:e.color,label:e.label})}),(0,Sl.jsx)(Cf.ZP.Body,{children:(0,Sl.jsx)(kf.ZP,{emitAction:i,locale:n,id:"search-panel-".concat(e.name),entityName:e.targetEntity,formName:e.formBase,limit:15,selectable:!0,selection:r&&r[e.name]||[],onSelectChange:s(e.name),simpleSearchFields:"txtFulltext, searchFilter",disableSelectionController:!0,showActions:!1,scrollBehaviour:"none"})})]},e.name)}))})};const Tf=(0,A.memo)(Df);var Rf,Zf,Mf,If,Nf=Dl.ZP.div.withConfig({displayName:"StyledSearchPanelWrapper"})(Rf||(Rf=Rl()(["\n padding: ",";\n overflow-y: auto;\n ","\n"])),ql.Z.space(-1.1),ud.C),Ff=Dl.ZP.div.withConfig({displayName:"StyledSchedulerAppContainerWrapper"})(Zf||(Zf=Rl()(["\n background-color: ",";\n height: 100%;\n width: 100%;\n"])),Yl.FS.color("paper"));const Lf=function(e){var t=e.initialize,n=e.locale,r=e.calendarTypes,o=e.updateRequestedCalendars,a=e.requestedCalendars,s=e.handleNotifications,c=e.emitAction,l=e.initialCalendarType;(0,A.useEffect)((function(){t()}),[t]);var d=(0,A.useState)(!1),f=C()(d,2),p=f[0],h=f[1],m=(0,A.useRef)(null);return(0,A.useEffect)((function(){m.current&&m.current.updateSize()}),[p]),(0,Sl.jsxs)(P.Z,{sidepanelPosition:"left",sidepanelCollapsed:p,setSidepanelCollapsed:h,children:[s&&(Mf||(Mf=(0,Sl.jsx)(u.Z.Notifications,{}))),(0,Sl.jsx)(j.Z,{children:(0,Sl.jsx)(i.Z.ErrorBoundary,{children:(0,Sl.jsxs)(D.Z,{required:[r],children:[If||(If=(0,Sl.jsx)(T.Z,{})),(0,Sl.jsx)(Nf,{children:(0,Sl.jsx)(Tf,{locale:n,calendarTypes:r,updateRequestedCalendars:o,requestedCalendars:a,emitAction:c,initialCalendarType:l})})]})})}),(0,Sl.jsx)(R.Z,{children:(0,Sl.jsx)(i.Z.ErrorBoundary,{children:(0,Sl.jsx)(Ff,{children:(0,Sl.jsx)(Ef,{schedulerRef:m})})})})]})},Bf=Lf;var Hf={initialize:function(){return{type:uf}},updateRequestedCalendars:bf,setDateRange:Of,removeRequestedCalendar:xf,emitAction:function(e){return r.Z.dispatchEmittedAction(e)}};const Uf=(0,k.connect)((function(e){var t;return{initialCalendarType:null===(t=e.input.actionProperties)||void 0===t?void 0:t.calendarType,calendars:e.resourceScheduler.calendars,calendarTypes:e.resourceScheduler.calendarTypes,requestedCalendars:e.resourceScheduler.requestedCalendars,handleNotifications:e.resourceScheduler.handleNotifications,locale:e.intl.locale}}),Hf)((0,E.ZP)(Bf));var Wf,zf=function(e,t){var n,r,o,i,a,s=[];null!==(n=e.actionProperties)&&void 0!==n&&n.calendarType&&((null===(r=e.selection)||void 0===r?void 0:r.type)===S.selectionTypes.ID?s.push(bf(e.actionProperties.calendarType,e.selection.ids)):(null===(o=e.selection)||void 0===o?void 0:o.type)===S.selectionTypes.QUERY&&s.push((i=e.actionProperties.calendarType,a=e.selection,{type:df,payload:{calendarType:i,selection:a}})));return s.push(function(e){return{type:yf,payload:{handleNotifications:e}}}(t)),s},Vf=a(57557),qf=a.n(Vf);function Yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yf(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kf=(Wf={},p()(Wf,cf,Zd.Z.singleTransferReducer("calendarTypes")),p()(Wf,ff,Zd.Z.singleTransferReducer("calendars")),p()(Wf,pf,Zd.Z.singleTransferReducer("dateRange")),p()(Wf,yf,Zd.Z.singleTransferReducer("handleNotifications")),p()(Wf,lf,(function(e,t){var n=t.payload,r=n.ids,o=n.calendarType;return Gf(Gf({},e),{},{requestedCalendars:Gf(Gf({},qf()(e.requestedCalendars,[o])),r.length>0?p()({},o,r):{})})})),p()(Wf,hf,(function(e,t){var n=t.payload,r=n.id,o=n.entityModel,i=(e.calendarTypes||[]).filter((function(e){return e.targetEntity===o})).map((function(e){return e.name}));return Gf(Gf({},e),{},{requestedCalendars:Gf({},Object.keys(e.requestedCalendars).reduce((function(t,n){var o=e.requestedCalendars[n].filter((function(e){return!i.includes(n)||e!==r}));return Gf(Gf({},t),o.length>0&&p()({},n,o))}),{}))})})),p()(Wf,mf,(function(e){return Gf(Gf({},e),{},{requestedCalendars:{},calendars:[]})})),Wf),Qf={handleNotifications:!1,calendarTypes:null,requestedCalendars:{},calendars:[],dateRange:{}};const Xf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qf,t=arguments.length>1?arguments[1]:void 0,n=Kf[t.type];return n?n(e,t):e};var $f=a(81719),Jf=a(54061),ep=a.n(Jf),tp=function(e){return ep()(e,(function(e,t,n){return[].concat(I()(e),[{calendarTypeId:n,keys:t}])}),[])},np=m().mark(sp),rp=m().mark(cp),op=m().mark(up),ip=m().mark(lp),ap=function(e){return e.resourceScheduler};function sp(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.$6)([(0,g.Fm)(uf,cp),(0,g.Fm)(lf,lp),(0,g.Fm)(df,dp),(0,g.Fm)(pf,lp),(0,g.Fm)(hf,lp),(0,g.Fm)(gf,fp),(0,g.Fm)(vf,lp)]);case 2:case"end":return e.stop()}}),np)}function cp(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.RE)(up);case 2:case"end":return e.stop()}}),rp)}function up(){var e;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.RE)($f.Z.requestSaga,"calendar/types");case 2:return e=t.sent,t.next=5,(0,g.gz)((n=e.body.data||[],{type:cf,payload:{calendarTypes:n}}));case 5:case"end":return t.stop()}var n}),op)}function lp(){var e,t,n,r,o;return m().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,g.Ys)(ap);case 2:if(e=i.sent,t=e.requestedCalendars,n=e.dateRange,!(Object.keys(t).length>0&&n.startDate&&n.endDate)){i.next=16;break}return i.next=8,(0,g.RE)(tp,t);case 8:return r=i.sent,i.next=11,(0,g.RE)($f.Z.requestSaga,"calendar/events",{method:"POST",body:{calendars:r,start:n.startDate.getTime(),end:n.endDate.getTime()}});case 11:return o=i.sent,i.next=14,(0,g.gz)(wf(o.body.data));case 14:i.next=18;break;case 16:return i.next=18,(0,g.gz)(wf([]));case 18:case"end":return i.stop()}}),ip)}function dp(e){var t=e.payload,n=t.selection,r=t.calendarType;return m().mark((function e(){var t,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.RE)(S.getEntities,n,$f.Z.fetchEntities);case 2:return t=e.sent,o=t.keys,e.next=6,(0,g.gz)(bf(r,o));case 6:case"end":return e.stop()}}),e)}))()}function fp(e){var t=e.payload;return m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.gz)(c.Z.fireExternalEvent("onEventClick",t));case 2:case"end":return e.stop()}}),e)}))()}const pp={resourceScheduler:Xf};var hp,mp=[sp],gp="resource-scheduler",vp=["onEventClick"],yp=function(t,n,a,s){var l=hp||(hp=(0,Sl.jsx)(Uf,{})),d=e.Z.createStore(pp,mp,n,gp);c.Z.addToStore(d,(function(t){return e.Z.getEvents(vp,t.input)})),r.Z.addToStore(d,(function(e){return e.input.emitAction}));var f=!a.emitAction;return u.Z.addToStore(d,f),i.Z.addToStore(d,f,["console","remote","notification"]),o.Z.addToStore(d),e.Z.createApp(gp,l,d,{input:n,events:a,actions:zf(n,f),publicPath:s,textResourceModules:["component","common",gp,"entity-list","scheduler"]})},bp=function(t){return e.Z.useApp({initApp:yp,props:t,packageName:t.id,externalEvents:vp}).component};bp.propTypes={id:n().string,locale:n().string,onEventClick:n().func,selection:S.propType,actionProperties:n().shape({calendarType:n().string})};var wp=e.Z.createBundleableApp(gp,yp,bp);e.Z.registerAppInRegistry(wp.name,wp.init)})(),s})()));
|
|
56
|
+
*/var r=n(1024),o=n(61688);var i="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},a=o.useSyncExternalStore,s=r.useRef,c=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=s(null);if(null===d.current){var f={hasValue:!1,value:null};d.current=f}else f=d.current;d=u((function(){function e(e){if(!c){if(c=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return s=t}return s=e}if(t=s,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,s=n)}var a,s,c=!1,u=void 0===n?null:n;return[function(){return e(t())},null===u?void 0:function(){return e(u())}]}),[t,n,r,o]);var p=a(e,d[0],d[1]);return c((function(){f.hasValue=!0,f.value=p}),[p]),l(p),p}},61688:(e,t,n)=>{"use strict";e.exports=n(53250)},52798:(e,t,n)=>{"use strict";e.exports=n(50139)},28721:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});const r={randomUUID:"undefined"!=typeof crypto&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};let o;const i=new Uint8Array(16);function a(){if(!o&&(o="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!o))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return o(i)}const s=[];for(let e=0;e<256;++e)s.push((e+256).toString(16).slice(1));function c(e,t=0){return(s[e[t+0]]+s[e[t+1]]+s[e[t+2]]+s[e[t+3]]+"-"+s[e[t+4]]+s[e[t+5]]+"-"+s[e[t+6]]+s[e[t+7]]+"-"+s[e[t+8]]+s[e[t+9]]+"-"+s[e[t+10]]+s[e[t+11]]+s[e[t+12]]+s[e[t+13]]+s[e[t+14]]+s[e[t+15]]).toLowerCase()}const u=function(e,t,n){if(r.randomUUID&&!t&&!e)return r.randomUUID();const o=(e=e||{}).random||(e.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,t){n=n||0;for(let e=0;e<16;++e)t[n+e]=o[e];return t}return c(o)}},2851:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var n,r;(0,o.default)(e),"object"===i(t)?(n=t.min||0,r=t.max):(n=arguments[1],r=arguments[2]);var a=encodeURI(e).split(/%..|./).length-1;return a>=n&&(void 0===r||a<=r)};var r,o=(r=n(65571))&&r.__esModule?r:{default:r};function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}e.exports=t.default,e.exports.default=t.default},83868:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),(t=(0,o.default)(t,u)).require_display_name||t.allow_display_name){var n=e.match(l);if(n){var c=n[1];if(e=e.replace(c,"").replace(/(^<|>$)/g,""),c.endsWith(" ")&&(c=c.slice(0,-1)),!function(e){var t=e.replace(/^"(.+)"$/,"$1");if(!t.trim())return!1;if(/[\.";<>]/.test(t)){if(t===e)return!1;if(!(t.split('"').length===t.split('\\"').length))return!1}return!0}(c))return!1}else if(t.require_display_name)return!1}if(!t.ignore_max_length&&e.length>254)return!1;var g=e.split("@"),v=g.pop(),y=v.toLowerCase();if(t.host_blacklist.includes(y))return!1;if(t.host_whitelist.length>0&&!t.host_whitelist.includes(y))return!1;var b=g.join("@");if(t.domain_specific_validation&&("gmail.com"===y||"googlemail.com"===y)){var w=(b=b.toLowerCase()).split("+")[0];if(!(0,i.default)(w.replace(/\./g,""),{min:6,max:30}))return!1;for(var O=w.split("."),x=0;x<O.length;x++)if(!f.test(O[x]))return!1}if(!(!1!==t.ignore_max_length||(0,i.default)(b,{max:64})&&(0,i.default)(v,{max:254})))return!1;if(!(0,a.default)(v,{require_tld:t.require_tld,ignore_max_length:t.ignore_max_length})){if(!t.allow_ip_domain)return!1;if(!(0,s.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var S=v.slice(1,-1);if(0===S.length||!(0,s.default)(S))return!1}}if('"'===b[0])return b=b.slice(1,b.length-1),t.allow_utf8_local_part?m.test(b):p.test(b);for(var E=t.allow_utf8_local_part?h:d,k=b.split("."),_=0;_<k.length;_++)if(!E.test(k[_]))return!1;if(t.blacklisted_chars&&-1!==b.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=c(n(65571)),o=c(n(84808)),i=c(n(2851)),a=c(n(10221)),s=c(n(61028));function c(e){return e&&e.__esModule?e:{default:e}}var u={allow_display_name:!1,require_display_name:!1,allow_utf8_local_part:!0,require_tld:!0,blacklisted_chars:"",ignore_max_length:!1,host_blacklist:[],host_whitelist:[]},l=/^([^\x00-\x1F\x7F-\x9F\cX]+)</i,d=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~]+$/i,f=/^[a-z\d]+$/,p=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f]))*$/i,h=/^[a-z\d!#\$%&'\*\+\-\/=\?\^_`{\|}~\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]+$/i,m=/^([\s\x01-\x08\x0b\x0c\x0e-\x1f\x7f\x21\x23-\x5b\x5d-\x7e\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]|(\\[\x01-\x09\x0b\x0c\x0d-\x7f\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))*$/i;e.exports=t.default,e.exports.default=t.default},10221:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){(0,r.default)(e),(t=(0,o.default)(t,a)).allow_trailing_dot&&"."===e[e.length-1]&&(e=e.substring(0,e.length-1));!0===t.allow_wildcard&&0===e.indexOf("*.")&&(e=e.substring(2));var n=e.split("."),i=n[n.length-1];if(t.require_tld){if(n.length<2)return!1;if(!t.allow_numeric_tld&&!/^([a-z\u00A1-\u00A8\u00AA-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]{2,}|xn[a-z0-9-]{2,})$/i.test(i))return!1;if(/\s/.test(i))return!1}if(!t.allow_numeric_tld&&/^\d+$/.test(i))return!1;return n.every((function(e){return!(e.length>63&&!t.ignore_max_length)&&(!!/^[a-z_\u00a1-\uffff0-9-]+$/i.test(e)&&(!/[\uff01-\uff5e]/.test(e)&&(!/^-|-$/.test(e)&&!(!t.allow_underscores&&/_/.test(e)))))}))};var r=i(n(65571)),o=i(n(84808));function i(e){return e&&e.__esModule?e:{default:e}}var a={require_tld:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_numeric_tld:!1,allow_wildcard:!1,ignore_max_length:!1};e.exports=t.default,e.exports.default=t.default},61028:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";if((0,o.default)(t),!(n=String(n)))return e(t,4)||e(t,6);if("4"===n)return s.test(t);if("6"===n)return u.test(t);return!1};var r,o=(r=n(65571))&&r.__esModule?r:{default:r};var i="(?:[0-9]|[1-9][0-9]|1[0-9][0-9]|2[0-4][0-9]|25[0-5])",a="(".concat(i,"[.]){3}").concat(i),s=new RegExp("^".concat(a,"$")),c="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(c,":){7}(?:").concat(c,"|:)|")+"(?:".concat(c,":){6}(?:").concat(a,"|:").concat(c,"|:)|")+"(?:".concat(c,":){5}(?::").concat(a,"|(:").concat(c,"){1,2}|:)|")+"(?:".concat(c,":){4}(?:(:").concat(c,"){0,1}:").concat(a,"|(:").concat(c,"){1,3}|:)|")+"(?:".concat(c,":){3}(?:(:").concat(c,"){0,2}:").concat(a,"|(:").concat(c,"){1,4}|:)|")+"(?:".concat(c,":){2}(?:(:").concat(c,"){0,3}:").concat(a,"|(:").concat(c,"){1,5}|:)|")+"(?:".concat(c,":){1}(?:(:").concat(c,"){0,4}:").concat(a,"|(:").concat(c,"){1,6}|:)|")+"(?::((?::".concat(c,"){0,5}:").concat(a,"|(?::").concat(c,"){1,7}|:))")+")(%[0-9a-zA-Z-.:]{1,})?$");e.exports=t.default,e.exports.default=t.default},66823:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){if((0,r.default)(e),!e||/[\s<>]/.test(e))return!1;if(0===e.indexOf("mailto:"))return!1;if((t=(0,a.default)(t,u)).validate_length&&e.length>=2083)return!1;if(!t.allow_fragments&&e.includes("#"))return!1;if(!t.allow_query_components&&(e.includes("?")||e.includes("&")))return!1;var n,s,f,p,h,m,g,v;if(g=e.split("#"),e=g.shift(),g=e.split("?"),e=g.shift(),(g=e.split("://")).length>1){if(n=g.shift().toLowerCase(),t.require_valid_protocol&&-1===t.protocols.indexOf(n))return!1}else{if(t.require_protocol)return!1;if("//"===e.slice(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.slice(2)}}if(""===(e=g.join("://")))return!1;if(g=e.split("/"),""===(e=g.shift())&&!t.require_host)return!0;if((g=e.split("@")).length>1){if(t.disallow_auth)return!1;if(""===g[0])return!1;if((s=g.shift()).indexOf(":")>=0&&s.split(":").length>2)return!1;var y=s.split(":"),b=(S=2,function(e){if(Array.isArray(e))return e}(x=y)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(r=(a=s.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==s.return||s.return()}finally{if(o)throw i}}return n}}(x,S)||function(e,t){if(e){if("string"==typeof e)return c(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(e,t):void 0}}(x,S)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),w=b[0],O=b[1];if(""===w&&""===O)return!1}var x,S;p=g.join("@"),m=null,v=null;var E=p.match(l);E?(f="",v=E[1],m=E[2]||null):(g=p.split(":"),f=g.shift(),g.length&&(m=g.join(":")));if(null!==m&&m.length>0){if(h=parseInt(m,10),!/^[0-9]+$/.test(m)||h<=0||h>65535)return!1}else if(t.require_port)return!1;if(t.host_whitelist)return d(f,t.host_whitelist);if(""===f&&!t.require_host)return!0;if(!((0,i.default)(f)||(0,o.default)(f,t)||v&&(0,i.default)(v,6)))return!1;if(f=f||v,t.host_blacklist&&d(f,t.host_blacklist))return!1;return!0};var r=s(n(65571)),o=s(n(10221)),i=s(n(61028)),a=s(n(84808));function s(e){return e&&e.__esModule?e:{default:e}}function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var u={protocols:["http","https","ftp"],require_tld:!0,require_protocol:!1,require_host:!0,require_port:!1,require_valid_protocol:!0,allow_underscores:!1,allow_trailing_dot:!1,allow_protocol_relative_urls:!1,allow_fragments:!0,allow_query_components:!0,validate_length:!0},l=/^\[([^\]]+)\](?::([0-9]+))?$/;function d(e,t){for(var n=0;n<t.length;n++){var r=t[n];if(e===r||(o=r,"[object RegExp]"===Object.prototype.toString.call(o)&&r.test(e)))return!0}var o;return!1}e.exports=t.default,e.exports.default=t.default},65571:(e,t)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if(!("string"==typeof e||e instanceof String)){var t=n(e);throw null===e?t="null":"object"===t&&(t=e.constructor.name),new TypeError("Expected a string but received a ".concat(t))}},e.exports=t.default,e.exports.default=t.default},84808:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=arguments.length>1?arguments[1]:void 0;for(var n in t)void 0===e[n]&&(e[n]=t[n]);return e},e.exports=t.default,e.exports.default=t.default},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},71298:e=>{e.exports=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},e.exports.__esModule=!0,e.exports.default=e.exports},38088:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},87462:(e,t,n)=>{"use strict";function r(){return r=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},81395:(e,t,n)=>{"use strict";function r(e,t,n,r,o,i,a){var s=new Date(0);return s.setUTCFullYear(e,t,n),s.setUTCHours(r,o,i,a),s}n.d(t,{Z:()=>r})},57220:(e,t,n)=>{"use strict";function r(e,t,n){var r=function(e,t,n){if(n&&!n.code)throw new Error("date-fns-tz error: Please set a language code on the locale object imported from date-fns, e.g. `locale.code = 'en-US'`");return new Intl.DateTimeFormat(n?[n.code,"en-US"]:void 0,{timeZone:t,timeZoneName:e})}(e,n.timeZone,n.locale);return r.formatToParts?function(e,t){for(var n=e.formatToParts(t),r=n.length-1;r>=0;--r)if("timeZoneName"===n[r].type)return n[r].value}(r,t):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/ [\w-+ ]+$/.exec(n);return r?r[0].substr(1):""}(r,t)}n.d(t,{Z:()=>r})},63479:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(86862),o=n(81395),i=36e5,a={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function s(e,t,n){var r,s,d;if(!e)return 0;if(r=a.timezoneZ.exec(e))return 0;if(r=a.timezoneHH.exec(e))return u(d=parseInt(r[1],10))?-d*i:NaN;if(r=a.timezoneHHMM.exec(e)){d=parseInt(r[1],10);var f=parseInt(r[2],10);return u(d,f)?(s=Math.abs(d)*i+6e4*f,d>0?-s:s):NaN}if(function(e){if(l[e])return!0;try{return new Intl.DateTimeFormat(void 0,{timeZone:e}),l[e]=!0,!0}catch(e){return!1}}(e)){t=new Date(t||Date.now());var p=n?t:function(e){return(0,o.Z)(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),h=c(p,e),m=n?h:function(e,t,n){var r=e.getTime()-t,o=c(new Date(r),n);if(t===o)return t;r-=o-t;var i=c(new Date(r),n);if(o===i)return o;return Math.max(o,i)}(t,h,e);return-m}return NaN}function c(e,t){var n=(0,r.Z)(e,t),i=(0,o.Z)(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),a=e.getTime(),s=a%1e3;return i-(a-=s>=0?s:1e3+s)}function u(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var l={}},53669:(e,t,n)=>{"use strict";n.d(t,{Z:()=>r});const r=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/},86862:(e,t,n)=>{"use strict";function r(e,t){var n=function(e){if(!i[e]){var t=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:"America/New_York",year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}).format(new Date("2014-06-25T04:00:00.123Z")),n="06/25/2014, 00:00:00"===t||"06/25/2014 00:00:00"===t;i[e]=n?new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"}):new Intl.DateTimeFormat("en-US",{hourCycle:"h23",timeZone:e,year:"numeric",month:"numeric",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit"})}return i[e]}(t);return n.formatToParts?function(e,t){try{for(var n=e.formatToParts(t),r=[],i=0;i<n.length;i++){var a=o[n[i].type];a>=0&&(r[a]=parseInt(n[i].value,10))}return r}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(n,e):function(e,t){var n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+),? (\d+):(\d+):(\d+)/.exec(n);return[r[3],r[1],r[2],r[4],r[5],r[6]]}(n,e)}n.d(t,{Z:()=>r});var o={year:0,month:1,day:2,hour:3,minute:4,second:5};var i={}},6388:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(57220),o=n(63479);function i(e,t){var n=e?(0,o.Z)(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function a(e,t){for(var n=e<0?"-":"",r=Math.abs(e).toString();r.length<t;)r="0"+r;return n+r}function s(e,t){var n=t||"",r=e>0?"-":"+",o=Math.abs(e);return r+a(Math.floor(o/60),2)+n+a(Math.floor(o%60),2)}function c(e,t){return e%60==0?(e>0?"-":"+")+a(Math.abs(e)/60,2):s(e,t)}const u={X:function(e,t,n,r){var o=i(r.timeZone,r._originalDate||e);if(0===o)return"Z";switch(t){case"X":return c(o);case"XXXX":case"XX":return s(o);default:return s(o,":")}},x:function(e,t,n,r){var o=i(r.timeZone,r._originalDate||e);switch(t){case"x":return c(o);case"xxxx":case"xx":return s(o);default:return s(o,":")}},O:function(e,t,n,r){var o=i(r.timeZone,r._originalDate||e);switch(t){case"O":case"OO":case"OOO":return"GMT"+function(e,t){var n=e>0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=r%60;if(0===i)return n+String(o);var s=t||"";return n+String(o)+s+a(i,2)}(o,":");default:return"GMT"+s(o,":")}},z:function(e,t,n,o){var i=o._originalDate||e;switch(t){case"z":case"zz":case"zzz":return(0,r.Z)("short",i,o);default:return(0,r.Z)("long",i,o)}}}},39802:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(15616),o=n(6388),i=n(97580),a=/([xXOz]+)|''|'(''|[^'])+('|$)/g;function s(e,t,n){var s=String(t),c=n||{},u=s.match(a);if(u){var l=(0,i.Z)(e,c);s=u.reduce((function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),r="'"===e[n-1],i=e.replace(t,"'"+o.Z[t[0]](l,t,null,c)+"'");return r?i.substring(0,n-1)+i.substring(n+1):i}),s)}return r(e,s,c)}},31492:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(46420),o=n(39802),i=n(69599);function a(e,t,n,a){var s=r(a);return s.timeZone=t,(0,o.Z)((0,i.Z)(e,t),n,s)}},97580:(e,t,n)=>{"use strict";n.d(t,{Z:()=>u});var r=n(82084),o=n(93561),i=n(63479),a=n(53669),s=36e5,c={dateTimePattern:/^([0-9W+-]+)(T| )(.*)/,datePattern:/^([0-9W+-]+)(.*)/,plainTime:/:/,YY:/^(\d{2})$/,YYY:[/^([+-]\d{2})$/,/^([+-]\d{3})$/,/^([+-]\d{4})$/],YYYY:/^(\d{4})/,YYYYY:[/^([+-]\d{4})/,/^([+-]\d{5})/,/^([+-]\d{6})/],MM:/^-(\d{2})$/,DDD:/^-?(\d{3})$/,MMDD:/^-?(\d{2})-?(\d{2})$/,Www:/^-?W(\d{2})$/,WwwD:/^-?W(\d{2})-?(\d{1})$/,HH:/^(\d{2}([.,]\d*)?)$/,HHMM:/^(\d{2}):?(\d{2}([.,]\d*)?)$/,HHMMSS:/^(\d{2}):?(\d{2}):?(\d{2}([.,]\d*)?)$/,timeZone:a.Z};function u(e,t){if(arguments.length<1)throw new TypeError("1 argument required, but only "+arguments.length+" present");if(null===e)return new Date(NaN);var n=t||{},a=null==n.additionalDigits?2:r(n.additionalDigits);if(2!==a&&1!==a&&0!==a)throw new RangeError("additionalDigits must be 0, 1 or 2");if(e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e))return new Date(e.getTime());if("number"==typeof e||"[object Number]"===Object.prototype.toString.call(e))return new Date(e);if("string"!=typeof e&&"[object String]"!==Object.prototype.toString.call(e))return new Date(NaN);var s=l(e),c=d(s.date,a),u=c.year,h=c.restDateString,m=f(h,u);if(isNaN(m))return new Date(NaN);if(m){var g,v=m.getTime(),y=0;if(s.time&&(y=p(s.time),isNaN(y)))return new Date(NaN);if(s.timeZone||n.timeZone){if(g=(0,i.Z)(s.timeZone||n.timeZone,new Date(v+y)),isNaN(g))return new Date(NaN)}else g=o(new Date(v+y)),g=o(new Date(v+y+g));return new Date(v+y+g)}return new Date(NaN)}function l(e){var t,n={},r=c.dateTimePattern.exec(e);if(r?(n.date=r[1],t=r[3]):(r=c.datePattern.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e),t){var o=c.timeZone.exec(t);o?(n.time=t.replace(o[1],""),n.timeZone=o[1].trim()):n.time=t}return n}function d(e,t){var n,r=c.YYY[t],o=c.YYYYY[t];if(n=c.YYYY.exec(e)||o.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=c.YY.exec(e)||r.exec(e)){var a=n[1];return{year:100*parseInt(a,10),restDateString:e.slice(a.length)}}return{year:null}}function f(e,t){if(null===t)return null;var n,r,o,i;if(0===e.length)return(r=new Date(0)).setUTCFullYear(t),r;if(n=c.MM.exec(e))return r=new Date(0),y(t,o=parseInt(n[1],10)-1)?(r.setUTCFullYear(t,o),r):new Date(NaN);if(n=c.DDD.exec(e)){r=new Date(0);var a=parseInt(n[1],10);return function(e,t){if(t<1)return!1;var n=v(e);if(n&&t>366)return!1;if(!n&&t>365)return!1;return!0}(t,a)?(r.setUTCFullYear(t,0,a),r):new Date(NaN)}if(n=c.MMDD.exec(e)){r=new Date(0),o=parseInt(n[1],10)-1;var s=parseInt(n[2],10);return y(t,o,s)?(r.setUTCFullYear(t,o,s),r):new Date(NaN)}if(n=c.Www.exec(e))return b(t,i=parseInt(n[1],10)-1)?h(t,i):new Date(NaN);if(n=c.WwwD.exec(e)){i=parseInt(n[1],10)-1;var u=parseInt(n[2],10)-1;return b(t,i,u)?h(t,i,u):new Date(NaN)}return null}function p(e){var t,n,r;if(t=c.HH.exec(e))return w(n=parseFloat(t[1].replace(",",".")))?n%24*s:NaN;if(t=c.HHMM.exec(e))return w(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*s+6e4*r:NaN;if(t=c.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return w(n,r,o)?n%24*s+6e4*r+1e3*o:NaN}return null}function h(e,t,n){t=t||0,n=n||0;var r=new Date(0);r.setUTCFullYear(e,0,4);var o=7*t+n+1-(r.getUTCDay()||7);return r.setUTCDate(r.getUTCDate()+o),r}var m=[31,28,31,30,31,30,31,31,30,31,30,31],g=[31,29,31,30,31,30,31,31,30,31,30,31];function v(e){return e%400==0||e%4==0&&e%100!=0}function y(e,t,n){if(t<0||t>11)return!1;if(null!=n){if(n<1)return!1;var r=v(e);if(r&&n>g[t])return!1;if(!r&&n>m[t])return!1}return!0}function b(e,t,n){return!(t<0||t>52)&&(null==n||!(n<0||n>6))}function w(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}},69599:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(63479),o=n(97580);function i(e,t,n){var i=(0,o.Z)(e,n),a=(0,r.Z)(t,i,!0),s=new Date(i.getTime()-a),c=new Date(0);return c.setFullYear(s.getUTCFullYear(),s.getUTCMonth(),s.getUTCDate()),c.setHours(s.getUTCHours(),s.getUTCMinutes(),s.getUTCSeconds(),s.getUTCMilliseconds()),c}},31599:(e,t,n)=>{"use strict";function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}n.d(t,{Z:()=>r})},1165:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e){if(Array.isArray(e))return(0,r.Z)(e)}},57693:(e,t,n)=>{"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:()=>r})},84311:(e,t,n)=>{"use strict";function r(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}n.d(t,{Z:()=>r})},51144:(e,t,n)=>{"use strict";function r(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function o(e,t,n){return t&&r(e.prototype,t),n&&r(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}n.d(t,{Z:()=>o})},39068:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var r=n(40477),o=n(56158),i=n(82884);function a(e){var t=(0,o.Z)();return function(){var n,o=(0,r.Z)(e);if(t){var a=(0,r.Z)(this).constructor;n=Reflect.construct(o,arguments,a)}else n=o.apply(this,arguments);return(0,i.Z)(this,n)}}},28549:(e,t,n)=>{"use strict";function r(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}n.d(t,{Z:()=>r})},2717:(e,t,n)=>{"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.d(t,{Z:()=>r})},40477:(e,t,n)=>{"use strict";function r(e){return r=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r(e)}n.d(t,{Z:()=>r})},49027:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(73757);function o(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,r.Z)(e,t)}},56158:(e,t,n)=>{"use strict";function r(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}n.d(t,{Z:()=>r})},96092:(e,t,n)=>{"use strict";function r(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}n.d(t,{Z:()=>r})},24328:(e,t,n)=>{"use strict";function r(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}n.d(t,{Z:()=>r})},33417:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(28549);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){(0,r.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}},32924:(e,t,n)=>{"use strict";function r(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}n.d(t,{Z:()=>r})},82884:(e,t,n)=>{"use strict";n.d(t,{Z:()=>i});var r=n(62360),o=n(57693);function i(e,t){if(t&&("object"===(0,r.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,o.Z)(e)}},73757:(e,t,n)=>{"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:()=>r})},1972:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(78001);function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i=[],a=!0,s=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){s=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(s)throw o}}return i}}(e,t)||(0,r.Z)(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},86578:(e,t,n)=>{"use strict";n.d(t,{Z:()=>s});var r=n(1165),o=n(96092),i=n(78001),a=n(24328);function s(e){return(0,r.Z)(e)||(0,o.Z)(e)||(0,i.Z)(e)||(0,a.Z)()}},62360:(e,t,n)=>{"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:()=>r})},78001:(e,t,n)=>{"use strict";n.d(t,{Z:()=>o});var r=n(31599);function o(e,t){if(e){if("string"==typeof e)return(0,r.Z)(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?(0,r.Z)(e,t):void 0}}}},i={};function a(e){var t=i[e];if(void 0!==t)return t.exports;var n=i[e]={id:e,loaded:!1,exports:{}};return o[e].call(n.exports,n,n.exports,a),n.loaded=!0,n.exports}a.m=o,a.amdD=function(){throw new Error("define cannot be used indirect")},a.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return a.d(t,{a:t}),t},a.d=(e,t)=>{for(var n in t)a.o(t,n)&&!a.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},a.f={},a.e=e=>Promise.all(Object.keys(a.f).reduce(((t,n)=>(a.f[n](e,t),t)),[])),a.u=e=>885===e?"chunk-ckeditor.0daf8b199dba27bea4fd.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"2f610cd0accfa8ef7628",198:"ebf0d3eaf5f744f1cfa0",560:"87a276b3cb43e136f4e1",608:"3f5c2d9d74c51e74c5b0",614:"afd9b24fddf7e67e9179",759:"3e178a7310a92d3020c3",817:"b848709373c74585818e",877:"ee24f52222afe086ba7e"}[e]+".js",a.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),a.hmd=e=>((e=Object.create(e)).children||(e.children=[]),Object.defineProperty(e,"exports",{enumerable:!0,set:()=>{throw new Error("ES Modules may not assign module.exports or exports.*, Use ESM export syntax, instead: "+e.id)}}),e),a.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n={},r="tocco-:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var s,c;if(void 0!==o)for(var u=document.getElementsByTagName("script"),l=0;l<u.length;l++){var d=u[l];if(d.getAttribute("src")==e||d.getAttribute("data-webpack")==r+o){s=d;break}}s||(c=!0,(s=document.createElement("script")).charset="utf-8",s.timeout=120,a.nc&&s.setAttribute("nonce",a.nc),s.setAttribute("data-webpack",r+o),s.src=e),n[e]=[t];var f=(t,r)=>{s.onerror=s.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],s.parentNode&&s.parentNode.removeChild(s),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:s}),12e4);s.onerror=f.bind(null,s.onerror),s.onload=f.bind(null,s.onload),c&&document.head.appendChild(s)}},a.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},a.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),a.j=713,a.p="/",(()=>{var e={713:0,226:0,828:0,826:0};a.f.j=(t,n)=>{var r=a.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var o=new Promise(((n,o)=>r=e[t]=[n,o]));n.push(r[2]=o);var i=a.p+a.u(t),s=new Error;a.l(i,(n=>{if(a.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var o=n&&("load"===n.type?"missing":n.type),i=n&&n.target&&n.target.src;s.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",s.name="ChunkLoadError",s.type=o,s.request=i,r[1](s)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,s,c]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in s)a.o(s,r)&&(a.m[r]=s[r]);if(c)c(a)}for(t&&t(n);u<i.length;u++)o=i[u],a.o(e,o)&&e[o]&&e[o][0](),e[o]=0},n=self.webpackChunktocco_=self.webpackChunktocco_||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var s={};return(()=>{"use strict";a.r(s),a.d(s,{app:()=>wp});var e=a(68803),t=a(45697),n=a.n(t),r=a(50600),o=a(22731),i=a(19743),c=a(19241),u=a(30604);const l={ID:"ID",QUERY:"QUERY"},d=n().shape({entityName:n().string.isRequired,ids:function(e,t,n){if(e.selection&&e.selection.type===l.ID&&!e.selection[t])return new Error("Selection.ids prop not defined. Component: ".concat(n,"'."))},query:function(e,t,n){if(e.selection&&e.selection.type===l.QUERY&&!e.selection[t])return new Error("Selection.query prop not defined. Component: ".concat(n,"'."))},type:n().oneOf(Object.keys(l)).isRequired,count:n().number});var f=a(59713),p=a.n(f),h=a(87757),m=a.n(h),g=a(34857),v=a(44759),y=m().mark(x);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var O=1e5;function x(e,t){var n,r;return m().wrap((function(o){for(;;)switch(o.prev=o.next){case 0:if(n=e.entityName,e.type!==l.QUERY){o.next=9;break}return o.next=4,(0,g.RE)(t,e.entityName,w(w({},e.query),{},{limit:O}));case 4:if(!((r=o.sent).length>O)){o.next=8;break}return o.next=8,(0,g.RE)(v.Z.logError,"Selected records exceed limit of ".concat(O));case 8:return o.abrupt("return",{entityName:n,keys:r.map((function(e){return e.key}))});case 9:return o.abrupt("return",{entityName:n,keys:e.ids});case 10:case"end":return o.stop()}}),y)}const S={getEntities:x,getSingleKey:function(e,t){if(e.entityName!==t)throw new Error("Only selection of ".concat(t," supported"));if("ID"!==e.type)throw new Error("Only ID selection type supported");if(!e.ids||1!==e.ids.length)throw new Error("Exactly one ".concat(t," must be selected"));return e.ids[0]},propType:d,selectionTypes:l};var E=a(74806),k=a(50558),_=a(63038),C=a.n(_),A=a(1024),P=a(16511),j=a(19917),D=a(50258),T=a(84286),R=a(2913),Z=a(35997),M=a(319),I=a.n(M),N=16,F=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return t;e=L(e);var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],N),g:parseInt(n[2],N),b:parseInt(n[3],N)}:t},L=function(e){return e.startsWith("#")||(e="#"+e),e.padEnd(7,"0")},B=function(e){var t=e/255;return t<=.03928?t/=12.92:t=Math.pow((t+.055)/1.055,2.4),t},H=function(e){return.2126*B(e.r)+.7152*B(e.g)+.0722*B(e.b)};const U=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#FFFFFF",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#000000",r=F(e);return r&&H(r)>.25?n:t},W=Object.freeze({EXISTING:"existing",ACCEPTED:"accepted",NONE:"none"});function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var q,Y,G,K,Q,X,$=function(e,t){return e+t},J=function(e){return e.map((function(e){return{title:e.label,id:$(e.key,e.model),entityKey:e.key,calendarType:e.calendarType,entityModel:e.model}}))},ee=a(69100),te=a.n(ee),ne=a(30314),re={},oe=[],ie=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function ae(e,t){for(var n in t)e[n]=t[n];return e}function se(e){var t=e.parentNode;t&&t.removeChild(e)}function ce(e,t,n){var r,o,i,a={};for(i in t)"key"==i?r=t[i]:"ref"==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?q.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return ue(e,a,r,o,null)}function ue(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?++G:o};return null==o&&null!=Y.vnode&&Y.vnode(i),i}function le(e){return e.children}function de(e,t){this.props=e,this.context=t}function fe(e,t){if(null==t)return e.__?fe(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?fe(e):null}function pe(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 pe(e)}}function he(e){(!e.__d&&(e.__d=!0)&&K.push(e)&&!me.__r++||Q!==Y.debounceRendering)&&((Q=Y.debounceRendering)||setTimeout)(me)}function me(){for(var e;me.__r=K.length;)e=K.sort((function(e,t){return e.__v.__b-t.__v.__b})),K=[],e.some((function(e){var t,n,r,o,i,a;e.__d&&(i=(o=(t=e).__v).__e,(a=t.__P)&&(n=[],(r=ae({},o)).__v=o.__v+1,Ee(a,o,r,t.__n,void 0!==a.ownerSVGElement,null!=o.__h?[i]:null,n,null==i?fe(o):i,o.__h),ke(n,o),o.__e!=i&&pe(o)))}))}function ge(e,t,n,r,o,i,a,s,c,u){var l,d,f,p,h,m,g,v=r&&r.__k||oe,y=v.length;for(n.__k=[],l=0;l<t.length;l++)if(null!=(p=n.__k[l]=null==(p=t[l])||"boolean"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?ue(null,p,null,null,p):Array.isArray(p)?ue(le,{children:p},null,null,null):p.__b>0?ue(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(f=v[l])||f&&p.key==f.key&&p.type===f.type)v[l]=void 0;else for(d=0;d<y;d++){if((f=v[d])&&p.key==f.key&&p.type===f.type){v[d]=void 0;break}f=null}Ee(e,p,f=f||re,o,i,a,s,c,u),h=p.__e,(d=p.ref)&&f.ref!=d&&(g||(g=[]),f.ref&&g.push(f.ref,null,p),g.push(d,p.__c||h,p)),null!=h?(null==m&&(m=h),"function"==typeof p.type&&p.__k===f.__k?p.__d=c=ve(p,c,e):c=be(e,p,f,v,h,c),"function"==typeof n.type&&(n.__d=c)):c&&f.__e==c&&c.parentNode!=e&&(c=fe(f))}for(n.__e=m,l=y;l--;)null!=v[l]&&Ae(v[l],v[l]);if(g)for(l=0;l<g.length;l++)Ce(g[l],g[++l],g[++l])}function ve(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?ve(r,t,n):be(n,r,r,o,r.__e,t));return t}function ye(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some((function(e){ye(e,t)})):t.push(e)),t}function be(e,t,n,r,o,i){var a,s,c;if(void 0!==t.__d)a=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),a=null;else{for(s=i,c=0;(s=s.nextSibling)&&c<r.length;c+=1)if(s==o)break e;e.insertBefore(o,i),a=i}return void 0!==a?a:o.nextSibling}function we(e,t,n){"-"===t[0]?e.setProperty(t,n):e[t]=null==n?"":"number"!=typeof n||ie.test(t)?n:n+"px"}function Oe(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||we(e.style,t,"");if(n)for(t in n)r&&n[t]===r[t]||we(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?Se:xe,i):e.removeEventListener(t,i?Se:xe,i);else if("dangerouslySetInnerHTML"!==t){if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("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 xe(e){this.l[e.type+!1](Y.event?Y.event(e):e)}function Se(e){this.l[e.type+!0](Y.event?Y.event(e):e)}function Ee(e,t,n,r,o,i,a,s,c){var u,l,d,f,p,h,m,g,v,y,b,w,O,x,S,E=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(c=n.__h,s=t.__e=n.__e,t.__h=null,i=[s]),(u=Y.__b)&&u(t);try{e:if("function"==typeof E){if(g=t.props,v=(u=E.contextType)&&r[u.__c],y=u?v?v.props.value:u.__:r,n.__c?m=(l=t.__c=n.__c).__=l.__E:("prototype"in E&&E.prototype.render?t.__c=l=new E(g,y):(t.__c=l=new de(g,y),l.constructor=E,l.render=Pe),v&&v.sub(l),l.props=g,l.state||(l.state={}),l.context=y,l.__n=r,d=l.__d=!0,l.__h=[],l._sb=[]),null==l.__s&&(l.__s=l.state),null!=E.getDerivedStateFromProps&&(l.__s==l.state&&(l.__s=ae({},l.__s)),ae(l.__s,E.getDerivedStateFromProps(g,l.__s))),f=l.props,p=l.state,d)null==E.getDerivedStateFromProps&&null!=l.componentWillMount&&l.componentWillMount(),null!=l.componentDidMount&&l.__h.push(l.componentDidMount);else{if(null==E.getDerivedStateFromProps&&g!==f&&null!=l.componentWillReceiveProps&&l.componentWillReceiveProps(g,y),!l.__e&&null!=l.shouldComponentUpdate&&!1===l.shouldComponentUpdate(g,l.__s,y)||t.__v===n.__v){for(l.props=g,l.state=l.__s,t.__v!==n.__v&&(l.__d=!1),l.__v=t,t.__e=n.__e,t.__k=n.__k,t.__k.forEach((function(e){e&&(e.__=t)})),b=0;b<l._sb.length;b++)l.__h.push(l._sb[b]);l._sb=[],l.__h.length&&a.push(l);break e}null!=l.componentWillUpdate&&l.componentWillUpdate(g,l.__s,y),null!=l.componentDidUpdate&&l.__h.push((function(){l.componentDidUpdate(f,p,h)}))}if(l.context=y,l.props=g,l.__v=t,l.__P=e,w=Y.__r,O=0,"prototype"in E&&E.prototype.render){for(l.state=l.__s,l.__d=!1,w&&w(t),u=l.render(l.props,l.state,l.context),x=0;x<l._sb.length;x++)l.__h.push(l._sb[x]);l._sb=[]}else do{l.__d=!1,w&&w(t),u=l.render(l.props,l.state,l.context),l.state=l.__s}while(l.__d&&++O<25);l.state=l.__s,null!=l.getChildContext&&(r=ae(ae({},r),l.getChildContext())),d||null==l.getSnapshotBeforeUpdate||(h=l.getSnapshotBeforeUpdate(f,p)),S=null!=u&&u.type===le&&null==u.key?u.props.children:u,ge(e,Array.isArray(S)?S:[S],t,n,r,o,i,a,s,c),l.base=t.__e,t.__h=null,l.__h.length&&a.push(l),m&&(l.__E=l.__=null),l.__e=!1}else null==i&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=_e(n.__e,t,n,r,o,i,a,c);(u=Y.diffed)&&u(t)}catch(e){t.__v=null,(c||null!=i)&&(t.__e=s,t.__h=!!c,i[i.indexOf(s)]=null),Y.__e(e,t,n)}}function ke(e,t){Y.__c&&Y.__c(t,e),e.some((function(t){try{e=t.__h,t.__h=[],e.some((function(e){e.call(t)}))}catch(e){Y.__e(e,t.__v)}}))}function _e(e,t,n,r,o,i,a,s){var c,u,l,d=n.props,f=t.props,p=t.type,h=0;if("svg"===p&&(o=!0),null!=i)for(;h<i.length;h++)if((c=i[h])&&"setAttribute"in c==!!p&&(p?c.localName===p:3===c.nodeType)){e=c,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,s=!1}if(null===p)d===f||s&&e.data===f||(e.data=f);else{if(i=i&&q.call(e.childNodes),u=(d=n.props||re).dangerouslySetInnerHTML,l=f.dangerouslySetInnerHTML,!s){if(null!=i)for(d={},h=0;h<e.attributes.length;h++)d[e.attributes[h].name]=e.attributes[h].value;(l||u)&&(l&&(u&&l.__html==u.__html||l.__html===e.innerHTML)||(e.innerHTML=l&&l.__html||""))}if(function(e,t,n,r,o){var i;for(i in n)"children"===i||"key"===i||i in t||Oe(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]||Oe(e,i,t[i],n[i],r)}(e,f,d,o,s),l)t.__k=[];else if(h=t.props.children,ge(e,Array.isArray(h)?h:[h],t,n,r,o&&"foreignObject"!==p,i,a,i?i[0]:n.__k&&fe(n,0),s),null!=i)for(h=i.length;h--;)null!=i[h]&&se(i[h]);s||("value"in f&&void 0!==(h=f.value)&&(h!==e.value||"progress"===p&&!h||"option"===p&&h!==d.value)&&Oe(e,"value",h,d.value,!1),"checked"in f&&void 0!==(h=f.checked)&&h!==e.checked&&Oe(e,"checked",h,d.checked,!1))}return e}function Ce(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){Y.__e(e,n)}}function Ae(e,t,n){var r,o;if(Y.unmount&&Y.unmount(e),(r=e.ref)&&(r.current&&r.current!==e.__e||Ce(r,null,t)),null!=(r=e.__c)){if(r.componentWillUnmount)try{r.componentWillUnmount()}catch(e){Y.__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]&&Ae(r[o],t,n||"function"!=typeof e.type);n||null==e.__e||se(e.__e),e.__=e.__e=e.__d=void 0}function Pe(e,t,n){return this.constructor(e,n)}function je(e,t,n){var r,o,i;Y.__&&Y.__(e,t),o=(r="function"==typeof n)?null:n&&n.__k||t.__k,i=[],Ee(t,e=(!r&&n||t).__k=ce(le,null,[e]),o||re,re,void 0!==t.ownerSVGElement,!r&&n?[n]:o?null:t.firstChild?q.call(t.childNodes):null,i,!r&&n?n:o?o.__e:t.firstChild,r),ke(i,e)}function De(e,t){var n={__c:t="__cC"+X++,__: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(he)},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}q=oe.slice,Y={__e:function(e,t,n,r){for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,r||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},G=0,de.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=ae({},this.state),"function"==typeof e&&(e=e(ae({},n),this.props)),e&&ae(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),he(this))},de.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),he(this))},de.prototype.render=le,K=[],me.__r=0,X=0;var Te,Re,Ze,Me=[],Ie=[],Ne=Y.__b,Fe=Y.__r,Le=Y.diffed,Be=Y.__c,He=Y.unmount;function Ue(){for(var e;e=Me.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Ve),e.__H.__h.forEach(qe),e.__H.__h=[]}catch(t){e.__H.__h=[],Y.__e(t,e.__v)}}Y.__b=function(e){Te=null,Ne&&Ne(e)},Y.__r=function(e){Fe&&Fe(e),0;var t=(Te=e.__c).__H;t&&(Re===Te?(t.__h=[],Te.__h=[],t.__.forEach((function(e){e.__N&&(e.__=e.__N),e.__V=Ie,e.__N=e.i=void 0}))):(t.__h.forEach(Ve),t.__h.forEach(qe),t.__h=[])),Re=Te},Y.diffed=function(e){Le&&Le(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==Me.push(t)&&Ze===Y.requestAnimationFrame||((Ze=Y.requestAnimationFrame)||ze)(Ue)),t.__H.__.forEach((function(e){e.i&&(e.__H=e.i),e.__V!==Ie&&(e.__=e.__V),e.i=void 0,e.__V=Ie}))),Re=Te=null},Y.__c=function(e,t){t.some((function(e){try{e.__h.forEach(Ve),e.__h=e.__h.filter((function(e){return!e.__||qe(e)}))}catch(n){t.some((function(e){e.__h&&(e.__h=[])})),t=[],Y.__e(n,e.__v)}})),Be&&Be(e,t)},Y.unmount=function(e){He&&He(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach((function(e){try{Ve(e)}catch(e){t=e}})),n.__H=void 0,t&&Y.__e(t,n.__v))};var We="function"==typeof requestAnimationFrame;function ze(e){var t,n=function(){clearTimeout(r),We&&cancelAnimationFrame(t),setTimeout(e)},r=setTimeout(n,100);We&&(t=requestAnimationFrame(n))}function Ve(e){var t=Te,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),Te=t}function qe(e){var t=Te;e.__c=e.__(),Te=t}function Ye(e,t){for(var n in t)e[n]=t[n];return e}function Ge(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 Ke(e){this.props=e}(Ke.prototype=new de).isPureReactComponent=!0,Ke.prototype.shouldComponentUpdate=function(e,t){return Ge(this.props,e)||Ge(this.state,t)};var Qe=Y.__b;Y.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Qe&&Qe(e)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var Xe=Y.__e;Y.__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);Xe(e,t,n,r)};var $e=Y.unmount;function Je(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=Ye({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map((function(e){return Je(e,t,n)}))),e}function et(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map((function(e){return et(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 tt(){this.__u=0,this.t=null,this.__b=null}function nt(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function rt(){this.u=null,this.o=null}Y.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),$e&&$e(e)},(tt.prototype=new de).__c=function(e,t){var n=t.__c,r=this;null==r.t&&(r.t=[]),r.t.push(n);var o=nt(r.__v),i=!1,a=function(){i||(i=!0,n.__R=null,o?o(s):s())};n.__R=a;var s=function(){if(!--r.__u){if(r.state.__a){var e=r.state.__a;r.__v.__k[0]=et(e,e.__c.__P,e.__c.__O)}var t;for(r.setState({__a:r.__b=null});t=r.t.pop();)t.forceUpdate()}},c=!0===t.__h;r.__u++||c||r.setState({__a:r.__b=r.__v.__k[0]}),e.then(a,a)},tt.prototype.componentWillUnmount=function(){this.t=[]},tt.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]=Je(this.__b,n,r.__O=r.__P)}this.__b=null}var o=t.__a&&ce(le,null,e.fallback);return o&&(o.__h=null),[ce(le,null,t.__a?null:e.children),o]};var ot=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 it(e){return this.getChildContext=function(){return e.context},e.children}function at(e){var t=this,n=e.i;t.componentWillUnmount=function(){je(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)}}),je(ce(it,{context:t.context},e.__v),t.l)):t.l&&t.componentWillUnmount()}function st(e,t){var n=ce(at,{__v:e,i:t});return n.containerInfo=t,n}(rt.prototype=new de).__a=function(e){var t=this,n=nt(t.__v),r=t.o.get(e);return r[0]++,function(o){var i=function(){t.props.revealOrder?(r.push(o),ot(t,e,r)):o()};n?n(i):i()}},rt.prototype.render=function(e){this.u=null,this.o=new Map;var t=ye(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},rt.prototype.componentDidUpdate=rt.prototype.componentDidMount=function(){var e=this;this.o.forEach((function(t,n){ot(e,n,t)}))};var ct="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ut=/^(?: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]/,lt="undefined"!=typeof document,dt=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/i:/fil|che|ra/i).test(e)};de.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach((function(e){Object.defineProperty(de.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var ft=Y.event;function pt(){}function ht(){return this.cancelBubble}function mt(){return this.defaultPrevented}Y.event=function(e){return ft&&(e=ft(e)),e.persist=pt,e.isPropagationStopped=ht,e.isDefaultPrevented=mt,e.nativeEvent=e};var gt={configurable:!0,get:function(){return this.class}},vt=Y.vnode;Y.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 a=n[i];lt&&"children"===i&&"noscript"===t||"value"===i&&"defaultValue"in n&&null==a||("defaultValue"===i&&"value"in n&&null==n.value?i="value":"download"===i&&!0===a?a="":/ondoubleclick/i.test(i)?i="ondblclick":/^onchange(textarea|input)/i.test(i+t)&&!dt(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&&ut.test(i)?i=i.replace(/[A-Z0-9]/g,"-$&").toLowerCase():null===a&&(a=void 0),/^oninput$/i.test(i)&&(i=i.toLowerCase(),r[i]&&(i="oninputCapture")),r[i]=a)}"select"==t&&r.multiple&&Array.isArray(r.value)&&(r.value=ye(n.children).forEach((function(e){e.props.selected=-1!=r.value.indexOf(e.props.value)}))),"select"==t&&null!=r.defaultValue&&(r.value=ye(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&&(gt.enumerable="className"in n,null!=n.className&&(r.class=n.className),Object.defineProperty(r,"className",gt))}e.$$typeof=ct,vt&&vt(e)};var yt=Y.__r;Y.__r=function(e){yt&&yt(e),e.__c};const bt=[],wt=new WeakMap;function Ot(e){e&&"undefined"!=typeof document&&bt.push(xt(document.head,e))}function xt(e,t){const n=document.createElement("style"),r=function(){void 0===St&&(St=function(){const e=document.querySelector('meta[name="csp-nonce"]');if(e&&e.hasAttribute("content"))return e.getAttribute("content");const t=document.querySelector("script[nonce]");if(t)return t.nonce||"";return""}());return St}();return r&&(n.nonce=r),n.innerText=t,e.appendChild(n),n}let St;"undefined"!=typeof document&&wt.set(document,!0);class Et{constructor(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}request(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))}pause(e=""){let{pauseDepths:t}=this;t[e]=(t[e]||0)+1,this.clearTimeout()}resume(e="",t){let{pauseDepths:n}=this;if(e in n){if(t)delete n[e];else{n[e]-=1,n[e]<=0&&delete n[e]}this.tryDrain()}}isPaused(){return Object.keys(this.pauseDepths).length}tryDrain(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}}clear(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}}clearTimeout(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)}drained(){this.drainedOption&&this.drainedOption()}}function kt(e){e.parentNode&&e.parentNode.removeChild(e)}function _t(e,t){if(e.closest)return e.closest(t);if(!document.documentElement.contains(e))return null;do{if(Ct(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function Ct(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function At(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let o=n[e].querySelectorAll(t);for(let e=0;e<o.length;e+=1)r.push(o[e])}return r}const Pt=/(top|left|right|bottom|width|height)$/i;function jt(e,t){for(let n in t)Dt(e,n,t[n])}function Dt(e,t,n){null==n?e.style[t]="":"number"==typeof n&&Pt.test(t)?e.style[t]=`${n}px`:e.style[t]=n}function Tt(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}let Rt=0;function Zt(){return Rt+=1,"fc-dom-"+Rt}function Mt(e){e.preventDefault()}function It(e,t,n,r){let o=function(e,t){return n=>{let r=_t(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,o),()=>{e.removeEventListener(t,o)}}const Nt=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Ft(e){return Object.assign({onClick:e},Lt(e))}function Lt(e){return{tabIndex:0,onKeyDown(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}let Bt=0;function Ht(){return Bt+=1,String(Bt)}function Ut(){document.body.classList.add("fc-not-allowed")}function Wt(){document.body.classList.remove("fc-not-allowed")}function zt(e){let 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)n=o[t],"string"==typeof n?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 Vt(e,t,n){let r,o;for(r=0;r<n.length;r+=1)if(o=qt(e,t,n[r]),o)return o;return 0}function qt(e,t,n){return n.func?n.func(e,t):Yt(e[n.field],t[n.field])*(n.order||1)}function Yt(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 Gt(e,t){let n=String(e);return"000".substr(0,t-n.length)+n}function Kt(e,t,n){return"function"==typeof e?e(...t):"string"==typeof e?t.reduce(((e,t,n)=>e.replace("$"+n,t||"")),e):n}function Qt(e,t){return e-t}function Xt(e){return e%1==0}function $t(e){let 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}const Jt=["years","months","days","milliseconds"],en=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function tn(e,t){return"string"==typeof e?function(e){let t=en.exec(e);if(t){let e=t[1]?-1:1;return{years:0,months:0,days:e*(t[2]?parseInt(t[2],10):0),milliseconds:e*(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?nn(e):"number"==typeof e?nn({[t||"milliseconds"]:e}):null}function nn(e){let 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 rn(e){return e.years||e.months||e.milliseconds?0:e.days}function on(e){return an(e)/864e5}function an(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function sn(e,t){let n=null;for(let r=0;r<Jt.length;r+=1){let o=Jt[r];if(t[o]){let r=e[o]/t[o];if(!Xt(r)||null!==n&&n!==r)return null;n=r}else if(e[o])return null}return n}function cn(e){let 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 un(e,t,n){if(e===t)return!0;let 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}const ln=["sun","mon","tue","wed","thu","fri","sat"];function dn(e,t){let n=wn(e);return n[2]+=t,On(n)}function fn(e,t){let n=wn(e);return n[6]+=t,On(n)}function pn(e,t){return(t.valueOf()-e.valueOf())/864e5}function hn(e,t){return Sn(e)===Sn(t)?Math.round(pn(e,t)):null}function mn(e){return On([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function gn(e,t,n,r){let o=On([t,0,1+vn(t,n,r)]),i=mn(e),a=Math.round(pn(o,i));return Math.floor(a/7)+1}function vn(e,t,n){let r=7+t-n;return-((7+On([e,0,r]).getUTCDay()-t)%7)+r-1}function yn(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function bn(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 wn(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function On(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC(...e))}function xn(e){return!isNaN(e.valueOf())}function Sn(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function En(e,t,n=!1){let 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",_n(t,!0)))),r}function kn(e){return e.toISOString().replace(/T.*$/,"")}function _n(e,t=!1){let n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=Math.round(r%60);return t?`${n+Gt(o,2)}:${Gt(i,2)}`:`GMT${n}${o}${i?`:${Gt(i,2)}`:""}`}function Cn(e,t,n){let r,o;return function(...i){if(r){if(!un(r,i)){n&&n(o);let r=e.apply(this,i);t&&t(r,o)||(o=r)}}else o=e.apply(this,i);return r=i,o}}function An(e,t,n){let r,o;return i=>{if(r){if(!cr(r,i)){n&&n(o);let r=e.call(this,i);t&&t(r,o)||(o=r)}}else o=e.call(this,i);return r=i,o}}function Pn(e,t,n){let r=[],o=[];return i=>{let a=r.length,s=i.length,c=0;for(;c<a;c+=1)if(i[c]){if(!un(r[c],i[c])){n&&n(o[c]);let r=e.apply(this,i[c]);t&&t(r,o[c])||(o[c]=r)}}else n&&n(o[c]);for(;c<s;c+=1)o[c]=e.apply(this,i[c]);return r=i,o.splice(s),o}}function jn(e,t,n){let r={},o={};return i=>{let a={};for(let s in i)if(o[s])if(un(r[s],i[s]))a[s]=o[s];else{n&&n(o[s]);let r=e.apply(this,i[s]);a[s]=t&&t(r,o[s])?o[s]:r}else a[s]=e.apply(this,i[s]);return r=i,o=a,a}}const Dn={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Tn={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Rn=/\s*([ap])\.?m\.?/i,Zn=/,/g,Mn=/\s+/g,In=/\u200e/g,Nn=/UTC|GMT/;class Fn{constructor(e){let t={},n={},r=0;for(let o in e)o in Dn?(n[o]=e[o],r=Math.max(Dn[o],r)):(t[o]=e[o],o in Tn&&(r=Math.max(Tn[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Cn(Ln)}format(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)}formatRange(e,t,n,r){let{standardDateProps:o,extendedSettings:i}=this,a=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(Sn(e)!==Sn(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!a)return this.format(e,n);let s=a;!(s>1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(s=1);let c=this.format(e,n),u=this.format(t,n);if(c===u)return c;let l=Ln(function(e,t){let n={};for(let r in e)(!(r in Tn)||Tn[r]<=t)&&(n[r]=e[r]);return n}(o,s),i,n),d=l(e),f=l(t),p=function(e,t,n,r){let o=0;for(;o<e.length;){let i=e.indexOf(t,o);if(-1===i)break;let a=e.substr(0,i);o=i+t.length;let s=e.substr(o),c=0;for(;c<n.length;){let e=n.indexOf(r,c);if(-1===e)break;let t=n.substr(0,e);c=e+r.length;let o=n.substr(c);if(a===t&&s===o)return{before:a,after:s}}}return null}(c,d,u,f),h=i.separator||r||n.defaultSeparator||"";return p?p.before+d+h+f+p.after:c+h+u}getLargestUnit(){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"}}}function Ln(e,t,n){let r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?e=>_n(e.timeZoneOffset):0===r&&t.week?e=>function(e,t,n,r,o){let 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=Object.assign({},e),t=Object.assign({},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";let r,o=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){let t=Object.assign({},e);delete t.minute,r=new Intl.DateTimeFormat(n.locale.codes,t)}return i=>{let a,{marker:s}=i;return a=r&&!s.getUTCMinutes()?r:o,function(e,t,n,r,o){e=e.replace(In,""),"short"===n.timeZoneName&&(e=function(e,t){let n=!1;e=e.replace(Nn,(()=>(n=!0,t))),n||(e+=` ${t}`);return e}(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":_n(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Zn,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(Rn,"").trim():"narrow"===r.meridiem?e=e.replace(Rn,((e,t)=>t.toLocaleLowerCase())):"short"===r.meridiem?e=e.replace(Rn,((e,t)=>`${t.toLocaleLowerCase()}m`)):"lowercase"===r.meridiem&&(e=e.replace(Rn,(e=>e.toLocaleLowerCase())));return e=(e=e.replace(Mn," ")).trim()}(a.format(s),i,e,t,n)}}(e,t,n)}function Bn(e,t){let 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 Hn(e,t,n,r){let o=Bn(e,n.calendarSystem);return{date:o,start:o,end:t?Bn(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}class Un{constructor(e){this.cmdStr=e}format(e,t,n){return t.cmdFormatter(this.cmdStr,Hn(e,null,t,n))}formatRange(e,t,n,r){return n.cmdFormatter(this.cmdStr,Hn(e,t,n,r))}}class Wn{constructor(e){this.func=e}format(e,t,n){return this.func(Hn(e,null,t,n))}formatRange(e,t,n,r){return this.func(Hn(e,t,n,r))}}function zn(e){return"object"==typeof e&&e?new Fn(e):"string"==typeof e?new Un(e):"function"==typeof e?new Wn(e):null}const Vn={navLinkDayClick:tr,navLinkWeekClick:tr,duration:tn,bootstrapFontAwesome:tr,buttonIcons:tr,customButtons:tr,defaultAllDayEventDuration:tn,defaultTimedEventDuration:tn,nextDayThreshold:tn,scrollTime:tn,scrollTimeReset:Boolean,slotMinTime:tn,slotMaxTime:tn,dayPopoverFormat:zn,slotDuration:tn,snapDuration:tn,headerToolbar:tr,footerToolbar:tr,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:zn,dayHeaderClassNames:tr,dayHeaderContent:tr,dayHeaderDidMount:tr,dayHeaderWillUnmount:tr,dayCellClassNames:tr,dayCellContent:tr,dayCellDidMount:tr,dayCellWillUnmount:tr,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:tr,weekNumbers:Boolean,weekNumberClassNames:tr,weekNumberContent:tr,weekNumberDidMount:tr,weekNumberWillUnmount:tr,editable:Boolean,viewClassNames:tr,viewDidMount:tr,viewWillUnmount:tr,nowIndicator:Boolean,nowIndicatorClassNames:tr,nowIndicatorContent:tr,nowIndicatorDidMount:tr,nowIndicatorWillUnmount:tr,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:tr,locale:tr,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:tr,eventOrder:zt,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:tr,contentHeight:tr,direction:String,weekNumberFormat:zn,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:tr,initialDate:tr,now:tr,eventDataTransform:tr,stickyHeaderDates:tr,stickyFooterScrollbar:tr,viewHeight:tr,defaultAllDay:Boolean,eventSourceFailure:tr,eventSourceSuccess:tr,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:tr,eventConstraint:tr,eventAllow:tr,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:tr,eventContent:tr,eventDidMount:tr,eventWillUnmount:tr,selectConstraint:tr,selectOverlap:tr,selectAllow:tr,droppable:Boolean,unselectCancel:String,slotLabelFormat:tr,slotLaneClassNames:tr,slotLaneContent:tr,slotLaneDidMount:tr,slotLaneWillUnmount:tr,slotLabelClassNames:tr,slotLabelContent:tr,slotLabelDidMount:tr,slotLabelWillUnmount:tr,dayMaxEvents:tr,dayMaxEventRows:tr,dayMinWidth:Number,slotLabelInterval:tn,allDayText:String,allDayClassNames:tr,allDayContent:tr,allDayDidMount:tr,allDayWillUnmount:tr,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:zn,rerenderDelay:Number,moreLinkText:tr,moreLinkHint:tr,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:tr,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:tn,hiddenDays:tr,fixedWeekCount:Boolean,validRange:tr,visibleRange:tr,titleFormat:tr,eventInteractive:Boolean,noEventsText:String,viewHint:tr,navLinkHint:tr,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:tr,moreLinkClassNames:tr,moreLinkContent:tr,moreLinkDidMount:tr,moreLinkWillUnmount:tr,monthStartFormat:zn,handleCustomRendering:tr,customRenderingMetaMap:tr,customRenderingReplacesEl:Boolean},qn={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,monthStartFormat:{month:"long",day:"numeric"}},Yn={datesSet:tr,eventsSet:tr,eventAdd:tr,eventChange:tr,eventRemove:tr,windowResize:tr,eventClick:tr,eventMouseEnter:tr,eventMouseLeave:tr,select:tr,unselect:tr,loading:tr,_unmount:tr,_beforeprint:tr,_afterprint:tr,_noEventDrop:tr,_noEventResize:tr,_resize:tr,_scrollRequest:tr},Gn={buttonText:tr,buttonHints:tr,views:tr,plugins:tr,initialEvents:tr,events:tr,eventSources:tr},Kn={headerToolbar:Qn,footerToolbar:Qn,buttonText:Qn,buttonHints:Qn,buttonIcons:Qn,dateIncrement:Qn,plugins:Xn,events:Xn,eventSources:Xn,resources:Xn};function Qn(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?cr(e,t):e===t}function Xn(e,t){return Array.isArray(e)&&Array.isArray(t)?un(e,t):e===t}const $n={type:String,component:tr,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:tr,usesMinMaxTime:Boolean,classNames:tr,content:tr,didMount:tr,willUnmount:tr};function Jn(e){return rr(e,Kn)}function er(e,t){let n={},r={};for(let r in t)r in e&&(n[r]=t[r](e[r]));for(let n in e)n in t||(r[n]=e[n]);return{refined:n,extra:r}}function tr(e){return e}const{hasOwnProperty:nr}=Object.prototype;function rr(e,t){let n={};if(t)for(let r in t)if(t[r]===Qn){let t=[];for(let o=e.length-1;o>=0;o-=1){let i=e[o][r];if("object"==typeof i&&i)t.unshift(i);else if(void 0!==i){n[r]=i;break}}t.length&&(n[r]=rr(t))}for(let t=e.length-1;t>=0;t-=1){let r=e[t];for(let e in r)e in n||(n[e]=r[e])}return n}function or(e,t){let n={};for(let r in e)t(e[r],r)&&(n[r]=e[r]);return n}function ir(e,t){let n={};for(let r in e)n[r]=t(e[r],r);return n}function ar(e){let t={};for(let n of e)t[n]=!0;return t}function sr(e){let t=[];for(let n in e)t.push(e[n]);return t}function cr(e,t){if(e===t)return!0;for(let n in e)if(nr.call(e,n)&&!(n in t))return!1;for(let n in t)if(nr.call(t,n)&&e[n]!==t[n])return!1;return!0}const ur=/^on[A-Z]/;function lr(e,t){let n=[];for(let r in e)nr.call(e,r)&&(r in t||n.push(r));for(let r in t)nr.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function dr(e,t,n={}){if(e===t)return!0;for(let r in t)if(!(r in e)||!fr(e[r],t[r],n[r]))return!1;for(let n in e)if(!(n in t))return!1;return!0}function fr(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function pr(e,t=0,n,r=1){let o=[];null==n&&(n=Object.keys(e).length);for(let i=t;i<n;i+=r){let t=e[i];void 0!==t&&o.push(t)}return o}let hr={};!function(e,t){hr[e]=t}("gregory",class{getMarkerYear(e){return e.getUTCFullYear()}getMarkerMonth(e){return e.getUTCMonth()}getMarkerDay(e){return e.getUTCDate()}arrayToMarker(e){return On(e)}markerToArray(e){return wn(e)}});const mr=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;class gr{constructor(e){let 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 hr[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}createMarker(e){let t=this.createMarkerMeta(e);return null===t?null:t.marker}createNowMarker(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):On(yn(new Date))}createMarkerMeta(e){if("string"==typeof e)return this.parse(e);let 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=On(e)),null!==t&&xn(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null}parse(e){let t=function(e){let t=mr.exec(e);if(t){let e=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(xn(e)){let n=null;return t[13]&&(n=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:e,isTimeUnspecified:!t[6],timeZoneOffset:n}}}return null}(e);if(null===t)return null;let{marker:n}=t,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}}getYear(e){return this.calendarSystem.getMarkerYear(e)}getMonth(e){return this.calendarSystem.getMarkerMonth(e)}getDay(e){return this.calendarSystem.getMarkerDay(e)}add(e,t){let 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)}subtract(e,t){let 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)}addYears(e,t){let n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)}addMonths(e,t){let n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)}diffWholeYears(e,t){let{calendarSystem:n}=this;return Sn(e)===Sn(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null}diffWholeMonths(e,t){let{calendarSystem:n}=this;return Sn(e)===Sn(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null}greatestWholeUnit(e,t){let n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:(n=this.diffWholeMonths(e,t),null!==n?{unit:"month",value:n}:(n=function(e,t){let n=hn(e,t);return null!==n&&n%7==0?n/7:null}(e,t),null!==n?{unit:"week",value:n}:(n=hn(e,t),null!==n?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),Xt(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),Xt(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),Xt(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))))}countDurationsBetween(e,t,n){let r;return n.years&&(r=this.diffWholeYears(e,t),null!==r)?r/(on(n)/365):n.months&&(r=this.diffWholeMonths(e,t),null!==r)?r/function(e){return on(e)/30}(n):n.days&&(r=hn(e,t),null!==r)?r/on(n):(t.valueOf()-e.valueOf())/an(n)}startOf(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?mn(e):"hour"===t?function(e){return On([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return On([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return On([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null}startOfYear(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])}startOfMonth(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])}startOfWeek(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])}computeWeekNumber(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){let r=e.getUTCFullYear(),o=gn(e,r,t,n);if(o<1)return gn(e,r-1,t,n);let i=gn(e,r+1,t,n);return i>=1?Math.min(o,i):o}(e,this.weekDow,this.weekDoy)}format(e,t,n={}){return t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)}formatRange(e,t,n,r={}){return r.isEndExclusive&&(t=fn(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)}formatIso(e,t={}){let n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),En(e,n,t.omitTime)}timestampToMarker(e){return"local"===this.timeZone?On(yn(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?On(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)}offsetForMarker(e){return"local"===this.timeZone?-bn(wn(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(wn(e)):null}toDate(e,t){return"local"===this.timeZone?bn(wn(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(wn(e))*60):new Date(e.valueOf()-(t||0))}}class vr{constructor(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}setIconOverride(e){let t,n;if("object"==typeof e&&e){for(n in t=Object.assign({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})}applyIconOverridePrefix(e){let t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e}getClass(e){return this.classes[e]||""}getIconClass(e,t){let n;return n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e],n?`${this.baseIconClass} ${n}`:""}getCustomButtonIconClass(e){let t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption],t)?`${this.baseIconClass} ${this.applyIconOverridePrefix(t)}`:""}}function yr(e){e();let t=Y.debounceRendering,n=[];for(Y.debounceRendering=function(e){n.push(e)},je(ce(br,{}),document.createElement("div"));n.length;)n.shift()();Y.debounceRendering=t}vr.prototype.classes={},vr.prototype.iconClasses={},vr.prototype.baseIconClass="",vr.prototype.iconOverridePrefix="";class br extends de{render(){return ce("div",{})}componentDidMount(){this.setState({})}}function wr(e){let t=De(e),n=t.Provider;return t.Provider=function(){let e=!this.getChildContext,t=n.apply(this,arguments);if(e){let e=[];this.shouldComponentUpdate=t=>{this.props.value!==t.value&&e.forEach((e=>{e.context=t.value,e.forceUpdate()}))},this.sub=t=>{e.push(t);let n=t.componentWillUnmount;t.componentWillUnmount=()=>{e.splice(e.indexOf(t),1),n&&n.call(t)}}}return t},t}class Or{constructor(e,t,n,r){this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=e=>{this.queuedRequest=Object.assign({},this.queuedRequest||{},e),this.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}detach(){this.emitter.off("_scrollRequest",this.handleScrollRequest)}update(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()}fireInitialScroll(){this.handleScrollRequest({time:this.scrollTime})}drain(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)}}const xr=wr({});function Sr(e,t,n,r,o,i,a,s,c,u,l,d,f){return{dateEnv:o,options:n,pluginHooks:a,emitter:u,dispatch:s,getCurrentData:c,calendarApi:l,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:i,isRtl:"rtl"===n.direction,addResizeHandler(e){u.on("_resize",e)},removeResizeHandler(e){u.off("_resize",e)},createScrollResponder:e=>new Or(e,u,tn(n.scrollTime),n.scrollTimeReset),registerInteractiveComponent:d,unregisterInteractiveComponent:f}}class Er extends de{shouldComponentUpdate(e,t){return this.debug&&console.log(lr(e,this.props),lr(t,this.state)),!dr(this.props,e,this.propEquality)||!dr(this.state,t,this.stateEquality)}safeSetState(e){dr(this.state,Object.assign(Object.assign({},this.state),e),this.stateEquality)||this.setState(e)}}Er.addPropsEquality=function(e){let t=Object.create(this.prototype.propEquality);Object.assign(t,e),this.prototype.propEquality=t},Er.addStateEquality=function(e){let t=Object.create(this.prototype.stateEquality);Object.assign(t,e),this.prototype.stateEquality=t},Er.contextType=xr,Er.prototype.propEquality={},Er.prototype.stateEquality={};class kr extends Er{}function _r(e,t){"function"==typeof e?e(t):e&&(e.current=t)}kr.contextType=xr;class Cr extends kr{constructor(){super(...arguments),this.id=Ht(),this.queuedDomNodes=[],this.currentDomNodes=[],this.handleEl=e=>{this.props.elRef&&_r(this.props.elRef,e)}}render(){const{props:e,context:t}=this,{options:n}=t,{customGenerator:r,defaultGenerator:o,renderProps:i}=e,a=Pr(e);let s,c,u=!1,l=[];if(null!=r){const e="function"==typeof r?r(i,ce):r;if(!0===e)u=!0;else{const t=e&&"object"==typeof e;t&&"html"in e?a.dangerouslySetInnerHTML={__html:e.html}:t&&"domNodes"in e?l=Array.prototype.slice.call(e.domNodes):t||"function"==typeof e?c=e:s=e}}else u=!Ar(e.generatorName,n);return u&&o&&(s=o(i)),this.queuedDomNodes=l,this.currentGeneratorMeta=c,ce(e.elTag,a,s)}componentDidMount(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentDidUpdate(){this.applyQueueudDomNodes(),this.triggerCustomRendering(!0)}componentWillUnmount(){this.triggerCustomRendering(!1)}triggerCustomRendering(e){var t;const{props:n,context:r}=this,{handleCustomRendering:o,customRenderingMetaMap:i}=r.options;if(o){const r=null!==(t=this.currentGeneratorMeta)&&void 0!==t?t:null==i?void 0:i[n.generatorName];r&&o(Object.assign(Object.assign({id:this.id,isActive:e,containerEl:this.base,reportNewContainerEl:this.handleEl,generatorMeta:r},n),{elClasses:n.elClasses.filter(jr)}))}}applyQueueudDomNodes(){const{queuedDomNodes:e,currentDomNodes:t}=this,n=this.base;if(!un(e,t)){t.forEach(kt);for(let t of e)n.appendChild(t);this.currentDomNodes=e}}}function Ar(e,t){var n;return Boolean(t.handleCustomRendering&&e&&(null===(n=t.customRenderingMetaMap)||void 0===n?void 0:n[e]))}function Pr(e,t){const n=Object.assign(Object.assign({},e.elAttrs),{ref:e.elRef});return(e.elClasses||t)&&(n.className=(e.elClasses||[]).concat(t||[]).concat(n.className||[]).filter(Boolean).join(" ")),e.elStyle&&(n.style=e.elStyle),n}function jr(e){return Boolean(e)}Cr.addPropsEquality({elClasses:un,elStyle:cr,elAttrs:function(e,t){const n=lr(e,t);for(let e of n)if(!ur.test(e))return!1;return!0},renderProps:cr});const Dr=wr(0);class Tr extends de{constructor(){super(...arguments),this.InnerContent=Rr.bind(void 0,this)}render(){const{props:e}=this,t=function(e,t){const n="function"==typeof e?e(t):e||[];return"string"==typeof n?[n]:n}(e.classNameGenerator,e.renderProps);if(e.children){const n=Pr(e,t),r=e.children(this.InnerContent,e.renderProps,n);return e.elTag?ce(e.elTag,n,r):r}return ce(Cr,Object.assign(Object.assign({},e),{elTag:e.elTag||"div",elClasses:(e.elClasses||[]).concat(t),renderId:this.context}))}componentDidMount(){var e,t;null===(t=(e=this.props).didMount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}componentWillUnmount(){var e,t;null===(t=(e=this.props).willUnmount)||void 0===t||t.call(e,Object.assign(Object.assign({},this.props.renderProps),{el:this.base}))}}function Rr(e,t){const n=e.props;return ce(Cr,Object.assign({renderProps:n.renderProps,generatorName:n.generatorName,customGenerator:n.customGenerator,defaultGenerator:n.defaultGenerator,renderId:e.context},t))}Tr.contextType=Dr;class Zr extends kr{render(){let{props:e,context:t}=this,{options:n}=t,r={view:t.viewApi};return ce(Tr,Object.assign({},e,{elTag:e.elTag||"div",elClasses:[...Mr(e.viewSpec),...e.elClasses||[]],renderProps:r,classNameGenerator:n.viewClassNames,generatorName:void 0,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount}),(()=>e.children))}}function Mr(e){return[`fc-${e.type}-view`,"fc-view"]}function Ir(e,t){let n,r,o=[],{start:i}=t;for(e.sort(Nr),n=0;n<e.length;n+=1)r=e[n],r.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 Nr(e,t){return e.start.valueOf()-t.start.valueOf()}function Fr(e,t){let{start:n,end:r}=e,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 Lr(e,t){return(null===e.start?null:e.start.valueOf())===(null===t.start?null:t.start.valueOf())&&(null===e.end?null:e.end.valueOf())===(null===t.end?null:t.end.valueOf())}function Br(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Hr(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Ur(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Wr(e){let t=Math.floor(pn(e.start,e.end))||1,n=mn(e.start);return{start:n,end:dn(n,t)}}function zr(e,t=tn(0)){let n=null,r=null;if(e.end){r=mn(e.end);let n=e.end.valueOf()-r.valueOf();n&&n>=an(t)&&(r=dn(r,1))}return e.start&&(n=mn(e.start),r&&r<=n&&(r=dn(n,1))),{start:n,end:r}}function Vr(e,t,n,r){return"year"===r?tn(n.diffWholeYears(e,t),"year"):"month"===r?tn(n.diffWholeMonths(e,t),"month"):function(e,t){let n=mn(e),r=mn(t);return{years:0,months:0,days:Math.round(pn(n,r)),milliseconds:t.valueOf()-r.valueOf()-(e.valueOf()-n.valueOf())}}(e,t)}function qr(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}class Yr{constructor(e){this.props=e,this.nowDate=qr(e.nowInput,e.dateEnv),this.initHiddenDays()}buildPrev(e,t,n){let{dateEnv:r}=this.props,o=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,n)}buildNext(e,t,n){let{dateEnv:r}=this.props,o=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,n)}build(e,t,n=!0){let r,o,i,a,s,c,{props:u}=this;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),a=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,i),a=this.trimHiddenDays(a),s=a,u.showNonCurrentDates||(s=Fr(s,o.range)),s=this.adjustActiveRange(s),s=Fr(s,r),c=Br(o.range,r),Ur(a,e)||(e=a.start),{currentDate:e,validRange:r,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:i,activeRange:s,renderRange:a,slotMinTime:u.slotMinTime,slotMaxTime:u.slotMaxTime,isValid:c,dateIncrement:this.buildDateIncrement(o.duration)}}buildValidRange(){let e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}}buildCurrentRangeInfo(e,t){let n,{props:r}=this,o=null,i=null,a=null;return r.duration?(o=r.duration,i=r.durationUnit,a=this.buildRangeFromDuration(e,t,o,i)):(n=this.props.dayCount)?(i="day",a=this.buildRangeFromDayCount(e,t,n)):(a=this.buildCustomVisibleRange(e))?i=r.dateEnv.greatestWholeUnit(a.start,a.end).unit:(o=this.getFallbackDuration(),i=cn(o).unit,a=this.buildRangeFromDuration(e,t,o,i)),{duration:o,unit:i,range:a}}getFallbackDuration(){return tn({day:1})}adjustActiveRange(e){let{dateEnv:t,usesMinMaxTime:n,slotMinTime:r,slotMaxTime:o}=this.props,{start:i,end:a}=e;return n&&(on(r)<0&&(i=mn(i),i=t.add(i,r)),on(o)>1&&(a=mn(a),a=dn(a,-1),a=t.add(a,o))),{start:i,end:a}}buildRangeFromDuration(e,t,n,r){let o,i,a,{dateEnv:s,dateAlignment:c}=this.props;if(!c){let{dateIncrement:e}=this.props;c=e&&an(e)<an(n)?cn(e).unit:r}function u(){o=s.startOf(e,c),i=s.add(o,n),a={start:o,end:i}}return on(n)<=1&&this.isHiddenDay(o)&&(o=this.skipHiddenDays(o,t),o=mn(o)),u(),this.trimHiddenDays(a)||(e=this.skipHiddenDays(e,t),u()),a}buildRangeFromDayCount(e,t,n){let r,{dateEnv:o,dateAlignment:i}=this.props,a=0,s=e;i&&(s=o.startOf(s,i)),s=mn(s),s=this.skipHiddenDays(s,t),r=s;do{r=dn(r,1),this.isHiddenDay(r)||(a+=1)}while(a<n);return{start:s,end:r}}buildCustomVisibleRange(e){let{props:t}=this,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}buildRenderRange(e,t,n){return e}buildDateIncrement(e){let t,{dateIncrement:n}=this.props;return n||((t=this.props.dateAlignment)?tn(1,t):e||tn({days:1}))}refineRange(e){if(e){let t=function(e,t){let 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=zr(t)),t}return null}initHiddenDays(){let 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}trimHiddenDays(e){let{start:t,end:n}=e;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null}isHiddenDay(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]}skipHiddenDays(e,t=1,n=!1){for(;this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=dn(e,t);return e}}function Gr(e,t,n,r){return{instanceId:Ht(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}function Kr(e,t,n){let{dateEnv:r,pluginHooks:o,options:i}=n,{defs:a,instances:s}=e;s=or(s,(e=>!a[e.defId].recurringDef));for(let e in a){let n=a[e];if(n.recurringDef){let{duration:a}=n.recurringDef;a||(a=n.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);let c=Qr(n,a,t,r,o.recurringTypes);for(let t of c){let n=Gr(e,{start:t,end:r.add(t,a)});s[n.instanceId]=n}}}return{defs:a,instances:s}}function Qr(e,t,n,r,o){let 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(mn)),i}const Xr={id:String,groupId:String,title:String,url:String,interactive:Boolean},$r={start:tr,end:tr,date:tr,allDay:Boolean},Jr=Object.assign(Object.assign(Object.assign({},Xr),$r),{extendedProps:tr});function eo(e,t,n,r,o=no(n),i,a){let{refined:s,extra:c}=to(e,n,o),u=function(e,t){let n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),l=function(e,t,n,r){for(let o=0;o<r.length;o+=1){let i=r[o].parse(e,n);if(i){let{allDay:n}=e;return null==n&&(n=t,null==n&&(n=i.allDayGuess,null==n&&(n=!1))),{allDay:n,duration:i.duration,typeData:i.typeData,typeId:o}}}return null}(s,u,n.dateEnv,n.pluginHooks.recurringTypes);if(l){let e=ro(s,c,t?t.sourceId:"",l.allDay,Boolean(l.duration),n,i);return e.recurringDef={typeId:l.typeId,typeData:l.typeData,duration:l.duration},{def:e,instance:null}}let d=function(e,t,n,r){let o,i,{allDay:a}=e,s=null,c=!1,u=null,l=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(l),o)s=o.marker;else if(!r)return null;null!=e.end&&(i=n.dateEnv.createMarkerMeta(e.end));null==a&&(a=null!=t?t:(!o||o.isTimeUnspecified)&&(!i||i.isTimeUnspecified));a&&s&&(s=mn(s));i&&(u=i.marker,a&&(u=mn(u)),s&&u<=s&&(u=null));u?c=!0:r||(c=n.options.forceEventDuration||!1,u=n.dateEnv.add(s,a?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:a,hasEnd:c,range:{start:s,end:u},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:i?i.forcedTzo:null}}(s,u,n,r);if(d){let e=ro(s,c,t?t.sourceId:"",d.allDay,d.hasEnd,n,i),r=Gr(e.defId,d.range,d.forcedStartTzo,d.forcedEndTzo);return a&&e.publicId&&a[e.publicId]&&(r.instanceId=a[e.publicId]),{def:e,instance:r}}return null}function to(e,t,n=no(t)){return er(e,n)}function no(e){return Object.assign(Object.assign(Object.assign({},lo),Jr),e.pluginHooks.eventRefiners)}function ro(e,t,n,r,o,i,a){let s={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:(a&&e.id?a[e.id]:"")||Ht(),sourceId:n,allDay:r,hasEnd:o,interactive:e.interactive,ui:po(e,i),extendedProps:Object.assign(Object.assign({},e.extendedProps||{}),t)};for(let t of i.pluginHooks.eventDefMemberAdders)Object.assign(s,t(e));return Object.freeze(s.ui.classNames),Object.freeze(s.extendedProps),s}function oo(e,t,n,r,o,i){let a={defs:{},instances:{}},s=no(n);for(let c of e){let e=eo(c,t,n,r,s,o,i);e&&io(e,a)}return a}function io(e,t={defs:{},instances:{}}){return t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function ao(e,t){let n=e.instances[t];if(n){let t=e.defs[n.defId],r=co(e,(e=>{return n=t,r=e,Boolean(n.groupId&&n.groupId===r.groupId);var n,r}));return r.defs[t.defId]=t,r.instances[n.instanceId]=n,r}return{defs:{},instances:{}}}function so(e,t){return{defs:Object.assign(Object.assign({},e.defs),t.defs),instances:Object.assign(Object.assign({},e.instances),t.instances)}}function co(e,t){let n=or(e.defs,t),r=or(e.instances,(e=>n[e.defId]));return{defs:n,instances:r}}function uo(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}const lo={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:tr,overlap:tr,allow:tr,className:uo,classNames:uo,color:String,backgroundColor:String,borderColor:String,textColor:String},fo={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function po(e,t){let n=function(e,t){return Array.isArray(e)?oo(e,null,t,!0):"object"==typeof e&&e?oo([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 ho(e){return e.reduce(mo,fo)}function mo(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)}}const go={id:String,defaultAllDay:Boolean,url:String,format:String,events:tr,eventDataTransform:tr,success:tr,failure:tr};function vo(e,t,n=yo(t)){let r;if("string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){let{refined:o,extra:i}=er(r,n),a=function(e,t){let n=t.pluginHooks.eventSourceDefs;for(let t=n.length-1;t>=0;t-=1){let r=n[t].parseMeta(e);if(r)return{sourceDefId:t,meta:r}}return null}(o,t);if(a)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:o.defaultAllDay,eventDataTransform:o.eventDataTransform,success:o.success,failure:o.failure,publicId:o.id||"",sourceId:Ht(),sourceDefId:a.sourceDefId,meta:a.meta,ui:po(o,t),extendedProps:i}}return null}function yo(e){return Object.assign(Object.assign(Object.assign({},lo),go),e.pluginHooks.eventSourceRefiners)}function bo(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,o,i){if(t&&n===t.latestFetchId){let n=oo(wo(o,t,i),t,i);return r&&(n=Kr(n,r,i)),so(xo(e,t.sourceId),n)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"RESET_RAW_EVENTS":return function(e,t,n,r){const{defIdMap:o,instanceIdMap:i}=function(e){const{defs:t,instances:n}=e,r={},o={};for(let e in t){const n=t[e],{publicId:o}=n;o&&(r[o]=e)}for(let e in n){const r=t[n[e].defId],{publicId:i}=r;i&&(o[i]=e)}return{defIdMap:r,instanceIdMap:o}}(e);let a=oo(wo(n,t,r),t,r,!1,o,i);t.fetchRange&&(a=Kr(a,t.fetchRange,r));return a}(e,n[t.sourceId],t.rawEvents,o);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=Kr(t,n,r));return so(e,t)}(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return so(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?Kr(e,r.activeRange,o):e;case"REMOVE_EVENTS":return function(e,t){let{defs:n,instances:r}=e,o={},i={};for(let e in n)t.defs[e]||(o[e]=n[e]);for(let e in r)!t.instances[e]&&o[r[e].defId]&&(i[e]=r[e]);return{defs:o,instances:i}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return xo(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return co(e,(e=>!e.sourceId));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function wo(e,t,n){let r=n.options.eventDataTransform,o=t?t.eventDataTransform:null;return o&&(e=Oo(e,o)),r&&(e=Oo(e,r)),e}function Oo(e,t){let n;if(t){n=[];for(let r of e){let e=t(r);e?n.push(e):null==e&&n.push(r)}}else n=e;return n}function xo(e,t){return co(e,(e=>e.sourceId!==t))}class So{constructor(){this.handlers={},this.thisContext=null}setThisContext(e){this.thisContext=e}setOptions(e){this.options=e}on(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)}off(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((e=>e!==n))):delete e[t]}(this.handlers,e,t)}trigger(e,...t){let n=this.handlers[e]||[],r=this.options&&this.options[e],o=[].concat(r||[],n);for(let e of o)e.apply(this.thisContext,t)}hasHandlers(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])}}const Eo={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function ko(e,t){return oo(function(e){let t;t=!0===e?[{}]:Array.isArray(e)?e.filter((e=>e.daysOfWeek)):"object"==typeof e&&e?[e]:[];return t=t.map((e=>Object.assign(Object.assign({},Eo),e))),t}(e),null,t)}function _o(e,t,n){n.emitter.trigger("select",Object.assign(Object.assign({},Co(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function Co(e,t){let n={};for(let r of t.pluginHooks.dateSpanTransforms)Object.assign(n,r(e,t));var r,o;return Object.assign(n,(r=e,o=t.dateEnv,Object.assign(Object.assign({},$o(r.range,o,r.allDay)),{allDay:r.allDay}))),n}function Ao(e,t,n){let{dateEnv:r,options:o}=n,i=t;return e?(i=mn(i),i=r.add(i,o.defaultAllDayEventDuration)):i=r.add(i,o.defaultTimedEventDuration),i}function Po(e,t,n,r){let o=Lo(e.defs,t),i={defs:{},instances:{}};for(let t in e.defs){let a=e.defs[t];i.defs[t]=jo(a,o[t],n,r)}for(let t in e.instances){let a=e.instances[t],s=i.defs[a.defId];i.instances[t]=Do(a,s,o[a.defId],n,r)}return i}function jo(e,t,n,r){let o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);let i=Object.assign(Object.assign(Object.assign({},e),o),{ui:Object.assign(Object.assign({},e.ui),o.ui)});n.extendedProps&&(i.extendedProps=Object.assign(Object.assign({},i.extendedProps),n.extendedProps));for(let e of r.pluginHooks.eventDefMutationAppliers)e(i,n,r);return!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0),i}function Do(e,t,n,r,o){let{dateEnv:i}=o,a=r.standardProps&&!0===r.standardProps.allDay,s=r.standardProps&&!1===r.standardProps.hasEnd,c=Object.assign({},e);return a&&(c.range=Wr(c.range)),r.datesDelta&&n.startEditable&&(c.range={start:i.add(c.range.start,r.datesDelta),end:i.add(c.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(c.range={start:i.add(c.range.start,r.startDelta),end:c.range.end}),r.endDelta&&n.durationEditable&&(c.range={start:c.range.start,end:i.add(c.range.end,r.endDelta)}),s&&(c.range={start:c.range.start,end:Ao(t.allDay,c.range.start,o)}),t.allDay&&(c.range={start:mn(c.range.start),end:mn(c.range.end)}),c.range.end<c.range.start&&(c.range.end=Ao(t.allDay,c.range.start,o)),c}class To{constructor(e,t){this.context=e,this.internalEventSource=t}remove(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})}refetch(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})}get id(){return this.internalEventSource.publicId}get url(){return this.internalEventSource.meta.url}get format(){return this.internalEventSource.meta.format}}class Ro{constructor(e,t,n){this._context=e,this._def=t,this._instance=n||null}setProp(e,t){if(e in $r)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=Xr[e](t),this.mutate({standardProps:{publicId:t}});else if(e in Xr)t=Xr[e](t),this.mutate({standardProps:{[e]:t}});else if(e in lo){let n=lo[e](t);n="color"===e?{backgroundColor:t,borderColor:t}:"editable"===e?{startEditable:t,durationEditable:t}:{[e]:t},this.mutate({standardProps:{ui:n}})}else console.warn(`Could not set prop '${e}'. Use setExtendedProp instead.`)}setExtendedProp(e,t){this.mutate({extendedProps:{[e]:t}})}setStart(e,t={}){let{dateEnv:n}=this._context,r=n.createMarker(e);if(r&&this._instance){let e=Vr(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:e}):this.mutate({startDelta:e})}}setEnd(e,t={}){let n,{dateEnv:r}=this._context;if((null==e||(n=r.createMarker(e),n))&&this._instance)if(n){let e=Vr(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:e})}else this.mutate({standardProps:{hasEnd:!1}})}setDates(e,t,n={}){let r,{dateEnv:o}=this._context,i={allDay:n.allDay},a=o.createMarker(e);var s,c;if(a&&((null==t||(r=o.createMarker(t),r))&&this._instance)){let e=this._instance.range;!0===n.allDay&&(e=Wr(e));let t=Vr(e.start,a,o,n.granularity);if(r){let a=Vr(e.end,r,o,n.granularity);c=a,(s=t).years===c.years&&s.months===c.months&&s.days===c.days&&s.milliseconds===c.milliseconds?this.mutate({datesDelta:t,standardProps:i}):this.mutate({startDelta:t,endDelta:a,standardProps:i})}else i.hasEnd=!1,this.mutate({datesDelta:t,standardProps:i})}}moveStart(e){let t=tn(e);t&&this.mutate({startDelta:t})}moveEnd(e){let t=tn(e);t&&this.mutate({endDelta:t})}moveDates(e){let t=tn(e);t&&this.mutate({datesDelta:t})}setAllDay(e,t={}){let n={allDay:e},{maintainDuration:r}=t;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})}formatRange(e){let{dateEnv:t}=this._context,n=this._instance,r=zn(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})}mutate(e){let t=this._instance;if(t){let n=this._def,r=this._context,{eventStore:o}=r.getCurrentData(),i=ao(o,t.instanceId);i=Po(i,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},e,r);let a=new Ro(r,n,t);this._def=i.defs[n.defId],this._instance=i.instances[t.instanceId],r.dispatch({type:"MERGE_EVENTS",eventStore:i}),r.emitter.trigger("eventChange",{oldEvent:a,event:this,relatedEvents:Mo(i,r,t),revert(){r.dispatch({type:"RESET_EVENTS",eventStore:o})}})}}remove(){let e=this._context,t=Zo(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})}get source(){let{sourceId:e}=this._def;return e?new To(this._context,this._context.getCurrentData().eventSources[e]):null}get start(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null}get end(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null}get startStr(){let e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""}get endStr(){let e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""}get id(){return this._def.publicId}get groupId(){return this._def.groupId}get allDay(){return this._def.allDay}get title(){return this._def.title}get url(){return this._def.url}get display(){return this._def.ui.display||"auto"}get startEditable(){return this._def.ui.startEditable}get durationEditable(){return this._def.ui.durationEditable}get constraint(){return this._def.ui.constraints[0]||null}get overlap(){return this._def.ui.overlap}get allow(){return this._def.ui.allows[0]||null}get backgroundColor(){return this._def.ui.backgroundColor}get borderColor(){return this._def.ui.borderColor}get textColor(){return this._def.ui.textColor}get classNames(){return this._def.ui.classNames}get extendedProps(){return this._def.extendedProps}toPlainObject(e={}){let t=this._def,{ui:n}=t,{startStr:r,endStr:o}=this,i={allDay:t.allDay};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?Object.assign(i,t.extendedProps):i.extendedProps=t.extendedProps),i}toJSON(){return this.toPlainObject()}}function Zo(e){let t=e._def,n=e._instance;return{defs:{[t.defId]:t},instances:n?{[n.instanceId]:n}:{}}}function Mo(e,t,n){let{defs:r,instances:o}=e,i=[],a=n?n.instanceId:"";for(let e in o){let n=o[e],s=r[n.defId];n.instanceId!==a&&i.push(new Ro(t,s,n))}return i}function Io(e,t,n,r){let o={},i={},a={},s=[],c=[],u=Lo(e.defs,t);for(let t in e.defs){let n=e.defs[t];"inverse-background"===u[n.defId].display&&(n.groupId?(o[n.groupId]=[],a[n.groupId]||(a[n.groupId]=n)):i[t]=[])}for(let t in e.instances){let a=e.instances[t],l=e.defs[a.defId],d=u[l.defId],f=a.range,p=!l.allDay&&r?zr(f,r):f,h=Fr(p,n);h&&("inverse-background"===d.display?l.groupId?o[l.groupId].push(h):i[a.defId].push(h):"none"!==d.display&&("background"===d.display?s:c).push({def:l,ui:d,instance:a,range:h,isStart:p.start&&p.start.valueOf()===h.start.valueOf(),isEnd:p.end&&p.end.valueOf()===h.end.valueOf()}))}for(let e in o){let t=Ir(o[e],n);for(let n of t){let t=a[e],r=u[t.defId];s.push({def:t,ui:r,instance:null,range:n,isStart:!1,isEnd:!1})}}for(let t in i){let r=Ir(i[t],n);for(let n of r)s.push({def:e.defs[t],ui:u[t],instance:null,range:n,isStart:!1,isEnd:!1})}return{bg:s,fg:c}}function No(e,t){e.fcSeg=t}function Fo(e){return e.fcSeg||e.parentNode.fcSeg||null}function Lo(e,t){return ir(e,(e=>Bo(e,t)))}function Bo(e,t){let n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),ho(n)}function Ho(e,t){let n=e.map(Uo);return n.sort(((e,n)=>Vt(e,n,t))),n.map((e=>e._seg))}function Uo(e){let{eventRange:t}=e,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 Object.assign(Object.assign(Object.assign({},n.extendedProps),n),{id:n.publicId,start:o,end:i,duration:i-o,allDay:Number(n.allDay),_seg:e})}function Wo(e,t){let{pluginHooks:n}=t,r=n.isDraggableTransformers,{def:o,ui:i}=e.eventRange,a=i.startEditable;for(let e of r)a=e(a,o,i,t);return a}function zo(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function Vo(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function qo(e,t,n){let r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Ur(t,r.start)}}function Yo(e){let 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}function Go(e,t){let{def:n,instance:r}=e.eventRange,{url:o}=n;if(o)return{href:o};let{emitter:i,options:a}=t,{eventInteractive:s}=a;return null==s&&(s=n.interactive,null==s&&(s=Boolean(i.hasHandlers("eventClick")))),s?Lt((e=>{i.trigger("eventClick",{el:e.target,event:new Ro(t,n,r),jsEvent:e,view:t.viewApi})})):{}}const Ko={start:tr,end:tr,allDay:Boolean};function Qo(e,t,n){let r=function(e,t){let{refined:n,extra:r}=er(e,Ko),o=n.start?t.createMarkerMeta(n.start):null,i=n.end?t.createMarkerMeta(n.end):null,{allDay:a}=n;null==a&&(a=o&&o.isTimeUnspecified&&(!i||i.isTimeUnspecified));return Object.assign({range:{start:o?o.marker:null,end:i?i.marker:null},allDay:a},r)}(e,t),{range:o}=r;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=t.add(o.start,n)}return r}function Xo(e,t,n){return Object.assign(Object.assign({},$o(e,t,n)),{timeZone:t.timeZone})}function $o(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 Jo(e,t,n){let r=!1,o=function(e){r||(r=!0,t(e))},i=function(e){r||(r=!0,n(e))},a=e(o,i);a&&"function"==typeof a.then&&a.then(o,i)}class ei extends Error{constructor(e,t){super(e),this.response=t}}function ti(e,t,n){const r={method:e=e.toUpperCase()};return"GET"===e?t+=(-1===t.indexOf("?")?"?":"&")+new URLSearchParams(n):(r.body=new URLSearchParams(n),r.headers={"Content-Type":"application/x-www-form-urlencoded"}),fetch(t,r).then((e=>{if(e.ok)return e.json().then((t=>[t,e]),(()=>{throw new ei("Failure parsing JSON",e)}));throw new ei("Request failed",e)}))}let ni;function ri(){return null==ni&&(ni=function(){if("undefined"==typeof document)return!0;let 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);let t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),ni}class oi extends kr{constructor(){super(...arguments),this.state={forPrint:!1},this.handleBeforePrint=()=>{this.setState({forPrint:!0})},this.handleAfterPrint=()=>{this.setState({forPrint:!1})}}render(){let{props:e}=this,{options:t}=e,{forPrint:n}=this.state,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 ri()||i.push("fc-liquid-hack"),e.children(i,o,r,n)}componentDidMount(){let{emitter:e}=this.props;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)}componentWillUnmount(){let{emitter:e}=this.props;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)}}class ii{constructor(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}destroy(){}}function ai(e){return{[e.component.uid]:e}}const si={};class ci{getCurrentData(){return this.currentDataManager.getCurrentData()}dispatch(e){this.currentDataManager.dispatch(e)}get view(){return this.getCurrentData().viewApi}batchRendering(e){e()}updateSize(){this.trigger("_resize",!0)}setOption(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})}getOption(e){return this.currentDataManager.currentCalendarOptionsInput[e]}getAvailableLocaleCodes(){return Object.keys(this.getCurrentData().availableRawLocales)}on(e,t){let{currentDataManager:n}=this;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn(`Unknown listener name '${e}'`)}off(e,t){this.currentDataManager.emitter.off(e,t)}trigger(e,...t){this.currentDataManager.emitter.trigger(e,...t)}changeView(e,t){this.batchRendering((()=>{if(this.unselect(),t)if(t.start&&t.end)this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),this.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{let{dateEnv:n}=this.getCurrentData();this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:n.createMarker(t)})}else this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))}zoomTo(e,t){let 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})}getUnitViewSpec(e){let t,n,{viewSpecs:r,toolbarConfig:o}=this.getCurrentData(),i=[].concat(o.header?o.header.viewsWithButtons:[],o.footer?o.footer.viewsWithButtons:[]);for(let e in r)i.push(e);for(t=0;t<i.length;t+=1)if(n=r[i[t]],n&&n.singleUnit===e)return n;return null}prev(){this.unselect(),this.dispatch({type:"PREV"})}next(){this.unselect(),this.dispatch({type:"NEXT"})}prevYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})}nextYear(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})}today(){let e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:qr(e.calendarOptions.now,e.dateEnv)})}gotoDate(e){let t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})}incrementDate(e){let t=this.getCurrentData(),n=tn(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))}getDate(){let e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)}formatDate(e,t){let{dateEnv:n}=this.getCurrentData();return n.format(n.createMarker(e),zn(t))}formatRange(e,t,n){let{dateEnv:r}=this.getCurrentData();return r.formatRange(r.createMarker(e),r.createMarker(t),zn(n),n)}formatIso(e,t){let{dateEnv:n}=this.getCurrentData();return n.formatIso(n.createMarker(e),{omitTime:t})}select(e,t){let n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};let r=this.getCurrentData(),o=Qo(n,r.dateEnv,tn({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),_o(o,null,r))}unselect(e){let 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))}addEvent(e,t){if(e instanceof Ro){let t=e._def,n=e._instance;return this.getCurrentData().eventStore.defs[t.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:io({def:t,instance:n})}),this.triggerEventAdd(e)),e}let n,r=this.getCurrentData();if(t instanceof To)n=t.internalEventSource;else if("boolean"==typeof t)t&&([n]=sr(r.eventSources));else if(null!=t){let e=this.getEventSourceById(t);if(!e)return console.warn(`Could not find an event source with ID "${t}"`),null;n=e.internalEventSource}let o=eo(e,n,r,!1);if(o){let e=new Ro(r,o.def,o.def.recurringDef?null:o.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:io(o)}),this.triggerEventAdd(e),e}return null}triggerEventAdd(e){let{emitter:t}=this.getCurrentData();t.trigger("eventAdd",{event:e,relatedEvents:[],revert:()=>{this.dispatch({type:"REMOVE_EVENTS",eventStore:Zo(e)})}})}getEventById(e){let t=this.getCurrentData(),{defs:n,instances:r}=t.eventStore;e=String(e);for(let o in n){let i=n[o];if(i.publicId===e){if(i.recurringDef)return new Ro(t,i,null);for(let e in r){let n=r[e];if(n.defId===i.defId)return new Ro(t,i,n)}}}return null}getEvents(){let e=this.getCurrentData();return Mo(e.eventStore,e)}removeAllEvents(){this.dispatch({type:"REMOVE_ALL_EVENTS"})}getEventSources(){let e=this.getCurrentData(),t=e.eventSources,n=[];for(let r in t)n.push(new To(e,t[r]));return n}getEventSourceById(e){let t=this.getCurrentData(),n=t.eventSources;e=String(e);for(let r in n)if(n[r].publicId===e)return new To(t,n[r]);return null}addEventSource(e){let t=this.getCurrentData();if(e instanceof To)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;let n=vo(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new To(t,n)):null}removeAllEventSources(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})}refetchEvents(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})}scrollToTime(e){let t=tn(e);t&&this.trigger("_scrollRequest",{time:t})}}function ui(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function li(e,t){let n={left:Math.max(e.left,t.left),right:Math.min(e.right,t.right),top:Math.max(e.top,t.top),bottom:Math.min(e.bottom,t.bottom)};return n.left<n.right&&n.top<n.bottom&&n}function di(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}const fi={defs:{},instances:{}};function pi(e,t,n){let r=[];e&&r.push(e),t&&r.push(t);let o={"":ho(r)};return n&&Object.assign(o,n),o}function hi(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!Ur(r.activeRange,e)),isOther:Boolean(r&&!Ur(r.currentRange,e)),isToday:Boolean(t&&Ur(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function mi(e,t){let n=["fc-day",`fc-day-${ln[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 gi(e,t){let n=["fc-slot",`fc-slot-${ln[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}const vi=zn({year:"numeric",month:"long",day:"numeric"}),yi=zn({week:"long"});function bi(e,t,n="day",r=!0){const{dateEnv:o,options:i,calendarApi:a}=e;let s=o.format(t,"week"===n?yi:vi);if(i.navLinks){let e=o.toDate(t);const c=e=>{let r="day"===n?i.navLinkDayClick:"week"===n?i.navLinkWeekClick:null;"function"==typeof r?r.call(a,o.toDate(t),e):("string"==typeof r&&(n=r),a.zoomTo(t,n))};return Object.assign({title:Kt(i.navLinkHint,[s,e],s),"data-navlink":""},r?Ft(c):{onClick:c})}return{"aria-label":s}}let wi,Oi=null;function xi(){return null===Oi&&(Oi=function(){let e=document.createElement("div");jt(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);let t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return kt(e),t}()),Oi}function Si(){return wi||(wi=function(){let e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);let t=Ei(e);return document.body.removeChild(e),t}()),wi}function Ei(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function ki(e,t=!1){let n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,s=Ei(e),c=s.y-r-o,u={borderLeft:r,borderRight:o,borderTop:i,borderBottom:a,scrollbarBottom:s.x-i-a,scrollbarLeft:0,scrollbarRight:0};return xi()&&"rtl"===n.direction?u.scrollbarLeft=c:u.scrollbarRight=c,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 _i(e,t=!1,n){let r=n?e.getBoundingClientRect():Ci(e),o=ki(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 Ci(e){let t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function Ai(e){let t=[];for(;e instanceof HTMLElement;){let 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}class Pi{constructor(e,t,n,r){this.els=t;let o=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(o.left),r&&this.buildElVerticals(o.top)}buildElHorizontals(e){let t=[],n=[];for(let r of this.els){let o=r.getBoundingClientRect();t.push(o.left-e),n.push(o.right-e)}this.lefts=t,this.rights=n}buildElVerticals(e){let t=[],n=[];for(let r of this.els){let o=r.getBoundingClientRect();t.push(o.top-e),n.push(o.bottom-e)}this.tops=t,this.bottoms=n}leftToIndex(e){let t,{lefts:n,rights:r}=this,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t}topToIndex(e){let t,{tops:n,bottoms:r}=this,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t}getWidth(e){return this.rights[e]-this.lefts[e]}getHeight(e){return this.bottoms[e]-this.tops[e]}similarTo(e){return ji(this.tops||[],e.tops||[])&&ji(this.bottoms||[],e.bottoms||[])&&ji(this.lefts||[],e.lefts||[])&&ji(this.rights||[],e.rights||[])}}function ji(e,t){const n=e.length;if(n!==t.length)return!1;for(let r=0;r<n;r++)if(Math.round(e[r])!==Math.round(t[r]))return!1;return!0}class Di{getMaxScrollTop(){return this.getScrollHeight()-this.getClientHeight()}getMaxScrollLeft(){return this.getScrollWidth()-this.getClientWidth()}canScrollVertically(){return this.getMaxScrollTop()>0}canScrollHorizontally(){return this.getMaxScrollLeft()>0}canScrollUp(){return this.getScrollTop()>0}canScrollDown(){return this.getScrollTop()<this.getMaxScrollTop()}canScrollLeft(){return this.getScrollLeft()>0}canScrollRight(){return this.getScrollLeft()<this.getMaxScrollLeft()}}class Ti extends Di{constructor(e){super(),this.el=e}getScrollTop(){return this.el.scrollTop}getScrollLeft(){return this.el.scrollLeft}setScrollTop(e){this.el.scrollTop=e}setScrollLeft(e){this.el.scrollLeft=e}getScrollWidth(){return this.el.scrollWidth}getScrollHeight(){return this.el.scrollHeight}getClientHeight(){return this.el.clientHeight}getClientWidth(){return this.el.clientWidth}}class Ri extends Di{getScrollTop(){return window.pageYOffset}getScrollLeft(){return window.pageXOffset}setScrollTop(e){window.scroll(window.pageXOffset,e)}setScrollLeft(e){window.scroll(e,window.pageYOffset)}getScrollWidth(){return document.documentElement.scrollWidth}getScrollHeight(){return document.documentElement.scrollHeight}getClientHeight(){return document.documentElement.clientHeight}getClientWidth(){return document.documentElement.clientWidth}}class Zi extends kr{constructor(){super(...arguments),this.uid=Ht()}prepareHits(){}queryHit(e,t,n,r){return null}isValidSegDownEl(e){return!this.props.eventDrag&&!this.props.eventResize&&!_t(e,".fc-event-mirror")}isValidDateDownEl(e){return!(_t(e,".fc-event:not(.fc-bg-event)")||_t(e,".fc-more-link")||_t(e,"a[data-navlink]")||_t(e,".fc-popover"))}}class Mi{constructor(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}addSegs(e){let t=[];for(let n of e)this.insertEntry(n,t);return t}insertEntry(e,t){let n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)}isInsertionValid(e,t){return(-1===this.maxCoord||e.levelCoord+t.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)}handleInvalidInsertion(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)}splitEntry(e,t,n){let r=0,o=[],i=e.span,a=t.span;return i.start<a.start&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:i.start,end:a.start}},o)),i.end>a.end&&(r+=this.insertEntry({index:e.index,thickness:e.thickness,span:{start:a.end,end:i.end}},o)),r?(n.push({index:e.index,thickness:e.thickness,span:Fi(a,i)},...o),r):(n.push(e),0)}insertEntryAt(e,t){let{entriesByLevel:n,levelCoords:r}=this;-1===t.lateral?(Li(r,t.level,t.levelCoord),Li(n,t.level,[e])):Li(n[t.level],t.lateral,e),this.stackCnts[Ni(e)]=t.stackCnt}findInsertion(e){let{levelCoords:t,entriesByLevel:n,strictOrder:r,stackCnts:o}=this,i=t.length,a=0,s=-1,c=-1,u=null,l=0;for(let d=0;d<i;d+=1){let i=t[d];if(!r&&i>=a+e.thickness)break;let f,p=n[d],h=Bi(p,e.span.start,Ii),m=h[0]+h[1];for(;(f=p[m])&&f.span.start<e.span.end;){let e=i+f.thickness;e>a&&(a=e,u=f,s=d,c=m),e===a&&(l=Math.max(l,o[Ni(f)]+1)),m+=1}}let d=0;if(u)for(d=s+1;d<i&&t[d]<a;)d+=1;let f=-1;return d<i&&t[d]===a&&(f=Bi(n[d],e.span.end,Ii)[0]),{touchingLevel:s,touchingLateral:c,touchingEntry:u,stackCnt:l,levelCoord:a,level:d,lateral:f}}toRects(){let{entriesByLevel:e,levelCoords:t}=this,n=e.length,r=[];for(let o=0;o<n;o+=1){let n=e[o],i=t[o];for(let e of n)r.push(Object.assign(Object.assign({},e),{levelCoord:i}))}return r}}function Ii(e){return e.span.end}function Ni(e){return e.index+":"+e.span.start}function Fi(e,t){let n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function Li(e,t,n){e.splice(t,0,n)}function Bi(e,t,n){let 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;){let i=Math.floor(r+(o-r)/2),a=n(e[i]);if(t<a)o=i;else{if(!(t>a))return[i,1];r=i+1}}return[r,0]}const Hi={};Boolean;zn({weekday:"long"});class Ui extends de{constructor(e,t){super(e,t),this.initialNowDate=qr(t.options.now,t.dateEnv),this.initialNowQueriedMs=(new Date).valueOf(),this.state=this.computeTiming().currentState}render(){let{props:e,state:t}=this;return e.children(t.nowDate,t.todayRange)}componentDidMount(){this.setTimeout()}componentDidUpdate(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())}componentWillUnmount(){this.clearTimeout()}computeTiming(){let{props:e,context:t}=this,n=fn(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),o=t.dateEnv.add(r,tn(1,e.unit)),i=o.valueOf()-n.valueOf();return i=Math.min(864e5,i),{currentState:{nowDate:r,todayRange:Wi(r)},nextState:{nowDate:o,todayRange:Wi(o)},waitMs:i}}setTimeout(){let{nextState:e,waitMs:t}=this.computeTiming();this.timeoutId=setTimeout((()=>{this.setState(e,(()=>{this.setTimeout()}))}),t)}clearTimeout(){this.timeoutId&&clearTimeout(this.timeoutId)}}function Wi(e){let t=mn(e);return{start:t,end:dn(t,1)}}Ui.contextType=xr;function zi(e,t){let n=e.activeRange;return t?n:{start:fn(n.start,e.slotMinTime.milliseconds),end:fn(n.end,e.slotMaxTime.milliseconds-864e5)}}function Vi(e,t,n){let{instances:r}=e.mutatedEvents;for(let e in r)if(!Hr(t.validRange,r[e].range))return!1;return qi({eventDrag:e},n)}function qi(e,t){let n=t.getCurrentData(),r=Object.assign({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||Yi)(r,t)}function Yi(e,t,n={},r){return!(e.eventDrag&&!function(e,t,n,r){let o=t.getCurrentData(),i=e.eventDrag,a=i.mutatedEvents,s=a.defs,c=a.instances,u=Lo(s,i.isEvent?e.eventUiBases:{"":o.selectionConfig});r&&(u=ir(u,r));let l=(h=e.eventStore,m=i.affectedEvents.instances,{defs:h.defs,instances:or(h.instances,(e=>!m[e.instanceId]))}),d=l.defs,f=l.instances,p=Lo(d,e.eventUiBases);var h,m;for(let r in c){let a=c[r],h=a.range,m=u[a.defId],g=s[a.defId];if(!Gi(m.constraints,h,l,e.businessHours,t))return!1;let{eventOverlap:v}=t.options,y="function"==typeof v?v:null;for(let e in f){let n=f[e];if(Br(h,n.range)){if(!1===p[n.defId].overlap&&i.isEvent)return!1;if(!1===m.overlap)return!1;if(y&&!y(new Ro(t,d[n.defId],n),new Ro(t,g,a)))return!1}}let b=o.eventStore;for(let e of m.allows){let o,i=Object.assign(Object.assign({},n),{range:a.range,allDay:g.allDay}),s=b.defs[g.defId],c=b.instances[r];if(o=s?new Ro(t,s,c):new Ro(t,g),!e(Co(i,t),o))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){let o=e.eventStore,i=o.defs,a=o.instances,s=e.dateSelection,c=s.range,{selectionConfig:u}=t.getCurrentData();r&&(u=r(u));if(!Gi(u.constraints,c,o,e.businessHours,t))return!1;let{selectOverlap:l}=t.options,d="function"==typeof l?l:null;for(let e in a){let n=a[e];if(Br(c,n.range)){if(!1===u.overlap)return!1;if(d&&!d(new Ro(t,i[n.defId],n),null))return!1}}for(let e of u.allows){if(!e(Co(Object.assign(Object.assign({},n),s),t),null))return!1}return!0}(e,t,n,r))}function Gi(e,t,n,r,o){for(let i of e)if(!Xi(Ki(i,t,n,r,o),t))return!1;return!0}function Ki(e,t,n,r,o){return"businessHours"===e?Qi(Kr(r,t,o)):"string"==typeof e?Qi(co(n,(t=>t.groupId===e))):"object"==typeof e&&e?Qi(Kr(e,t,o)):[]}function Qi(e){let{instances:t}=e,n=[];for(let e in t)n.push(t[e].range);return n}function Xi(e,t){for(let n of e)if(Hr(n,t))return!0;return!1}const $i=/^(visible|hidden)$/;class Ji extends kr{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,_r(this.props.elRef,e)}}render(){let{props:e}=this,{liquid:t,liquidIsAbsolute:n}=e,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),ce("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)}needsXScrolling(){if($i.test(this.props.overflowX))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1){if(n[e].getBoundingClientRect().width>t)return!0}return!1}needsYScrolling(){if($i.test(this.props.overflowY))return!1;let{el:e}=this,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),{children:n}=e;for(let e=0;e<n.length;e+=1){if(n[e].getBoundingClientRect().height>t)return!0}return!1}getXScrollbarWidth(){return $i.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight}getYScrollbarWidth(){return $i.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth}}class ea{constructor(e){this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=(e,t)=>{let{depths:n,currentMap:r}=this,o=!1,i=!1;null!==e?(o=t in r,r[t]=e,n[t]=(n[t]||0)+1,i=!0):(n[t]-=1,n[t]||(delete r[t],delete this.callbackMap[t],o=!0)),this.masterCallback&&(o&&this.masterCallback(null,String(t)),i&&this.masterCallback(e,String(t)))}}createRef(e){let t=this.callbackMap[e];return t||(t=this.callbackMap[e]=t=>{this.handleValue(t,String(e))}),t}collect(e,t,n){return pr(this.currentMap,e,t,n)}getAll(){return sr(this.currentMap)}}function ta(e){let t=At(e,".fc-scrollgrid-shrink"),n=0;for(let e of t)n=Math.max(n,$t(e));return Math.ceil(n)}function na(e,t){return e.liquid&&t.liquid}function ra(e,t){return null!=t.maxHeight||na(e,t)}function oa(e,t,n,r){let{expandRows:o}=n;return"function"==typeof t.content?t.content(n):ce("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,ce(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}function ia(e,t){return un(e,t,cr)}function aa(e,t){let n=[];for(let r of e){let e=r.span||1;for(let o=0;o<e;o+=1)n.push(ce("col",{style:{width:"shrink"===r.width?sa(t):r.width||"",minWidth:r.minWidth||""}}))}return ce("colgroup",{},...n)}function sa(e){return null==e?4:e}function ca(e){for(let t of e)if("shrink"===t.width)return!0;return!1}function ua(e,t){let n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function la(e,t){let 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 da(e){return ce("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function fa(e){let{stickyHeaderDates:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function pa(e){let{stickyFooterScrollbar:t}=e;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}(class extends kr{constructor(){super(...arguments),this.processCols=Cn((e=>e),ia),this.renderMicroColGroup=Cn(aa),this.scrollerRefs=new ea,this.scrollerElRefs=new ea(this._handleScrollerEl.bind(this)),this.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},this.handleSizing=()=>{this.safeSetState(Object.assign({shrinkWidth:this.computeShrinkWidth()},this.computeScrollerDims()))}}render(){let{props:e,state:t,context:n}=this,r=e.sections||[],o=this.processCols(e.cols),i=this.renderMicroColGroup(o,t.shrinkWidth),a=ua(e.liquid,n);e.collapsibleWidth&&a.push("fc-scrollgrid-collapsible");let s,c=r.length,u=0,l=[],d=[],f=[];for(;u<c&&"header"===(s=r[u]).type;)l.push(this.renderSection(s,i,!0)),u+=1;for(;u<c&&"body"===(s=r[u]).type;)d.push(this.renderSection(s,i,!1)),u+=1;for(;u<c&&"footer"===(s=r[u]).type;)f.push(this.renderSection(s,i,!0)),u+=1;let p=!ri();const h={role:"rowgroup"};return ce("table",{role:"grid",className:a.join(" "),style:{height:e.height}},Boolean(!p&&l.length)&&ce("thead",h,...l),Boolean(!p&&d.length)&&ce("tbody",h,...d),Boolean(!p&&f.length)&&ce("tfoot",h,...f),p&&ce("tbody",h,...l,...d,...f))}renderSection(e,t,n){return"outerContent"in e?ce(le,{key:e.key},e.outerContent):ce("tr",{key:e.key,role:"presentation",className:la(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))}renderChunkTd(e,t,n,r){if("outerContent"in n)return n.outerContent;let{props:o}=this,{forceYScrollbars:i,scrollerClientWidths:a,scrollerClientHeights:s}=this.state,c=ra(o,e),u=na(o,e),l=o.liquid?i?"scroll":c?"auto":"hidden":"visible",d=e.key,f=oa(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:o.collapsibleWidth||void 0===a[d]?null:a[d],clientHeight:void 0!==s[d]?s[d]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:()=>{}},r);return ce(r?"th":"td",{ref:n.elRef,role:"presentation"},ce("div",{className:"fc-scroller-harness"+(u?" fc-scroller-harness-liquid":"")},ce(Ji,{ref:this.scrollerRefs.createRef(d),elRef:this.scrollerElRefs.createRef(d),overflowY:l,overflowX:o.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:u,liquidIsAbsolute:!0},f)))}_handleScrollerEl(e,t){let n=function(e,t){for(let n of e)if(n.key===t)return n;return null}(this.props.sections,t);n&&_r(n.chunk.scrollerElRef,e)}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(){this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}computeShrinkWidth(){return ca(this.props.cols)?ta(this.scrollerElRefs.getAll()):0}computeScrollerDims(){let e=Si(),{scrollerRefs:t,scrollerElRefs:n}=this,r=!1,o={},i={};for(let e in t.currentMap){let n=t.currentMap[e];if(n&&n.needsYScrolling()){r=!0;break}}for(let t of this.props.sections){let a=t.key,s=n.currentMap[a];if(s){let t=s.parentNode;o[a]=Math.floor(t.getBoundingClientRect().width-(r?e.y:0)),i[a]=Math.floor(t.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:o,scrollerClientHeights:i}}}).addStateEquality({scrollerClientWidths:cr,scrollerClientHeights:cr});class ha extends kr{constructor(){super(...arguments),this.handleEl=e=>{this.el=e,e&&No(e,this.props.seg)}}render(){const{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{eventRange:o}=r,{ui:i}=o,a={event:new Ro(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,isDraggable:!e.disableDragging&&Wo(r,t),isStartResizable:!e.disableResizing&&zo(r,t),isEndResizable:!e.disableResizing&&Vo(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)};return ce(Tr,Object.assign({},e,{elRef:this.handleEl,elClasses:[...Yo(a),...r.eventRange.ui.classNames,...e.elClasses||[]],renderProps:a,generatorName:"eventContent",customGenerator:n.eventContent,defaultGenerator:e.defaultGenerator,classNameGenerator:n.eventClassNames,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount}))}componentDidUpdate(e){this.el&&this.props.seg!==e.seg&&No(this.el,this.props.seg)}}class ma extends kr{render(){let{props:e,context:t}=this,{options:n}=t,{seg:r}=e,{ui:o}=r.eventRange,i=function(e,t,n,r,o,i,a){let{dateEnv:s,options:c}=n,{displayEventTime:u,displayEventEnd:l}=c,d=e.eventRange.def,f=e.eventRange.instance;null==u&&(u=!1!==r),null==l&&(l=!1!==o);let p=f.range.start,h=f.range.end,m=i||e.start||e.eventRange.range.start,g=a||e.end||e.eventRange.range.end,v=mn(p).valueOf()===mn(m).valueOf(),y=mn(fn(h,-1)).valueOf()===mn(fn(g,-1)).valueOf();return u&&!d.allDay&&(v||y)?(m=v?p:m,g=y?h:g,l&&d.hasEnd?s.formatRange(m,g,t,{forcedStartTzo:i?null:f.forcedStartTzo,forcedEndTzo:a?null:f.forcedEndTzo}):s.format(m,t,{forcedTzo:i?null:f.forcedStartTzo})):""}(r,n.eventTimeFormat||e.defaultTimeFormat,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return ce(ha,Object.assign({},e,{elTag:"a",elStyle:{borderColor:o.borderColor,backgroundColor:o.backgroundColor},elAttrs:Go(r,t),defaultGenerator:ga,timeText:i}),((e,t)=>ce(le,null,ce(e,{elTag:"div",elClasses:["fc-event-main"],elStyle:{color:t.textColor}}),Boolean(t.isStartResizable)&&ce("div",{className:"fc-event-resizer fc-event-resizer-start"}),Boolean(t.isEndResizable)&&ce("div",{className:"fc-event-resizer fc-event-resizer-end"}))))}}function ga(e){return ce("div",{className:"fc-event-main-frame"},e.timeText&&ce("div",{className:"fc-event-time"},e.timeText),ce("div",{className:"fc-event-title-container"},ce("div",{className:"fc-event-title fc-sticky"},e.event.title||ce(le,null," "))))}const va=e=>ce(xr.Consumer,null,(t=>{let{options:n}=t,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return ce(Tr,Object.assign({},e,{elTag:e.elTag||"div",renderProps:r,generatorName:"nowIndicatorContent",customGenerator:n.nowIndicatorContent,classNameGenerator:n.nowIndicatorClassNames,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount}))})),ya=zn({day:"numeric"});class ba extends kr{constructor(){super(...arguments),this.refineRenderProps=An(wa)}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,isMonthStart:e.isMonthStart||!1,showDayNumber:e.showDayNumber,extraRenderProps:e.extraRenderProps,viewApi:t.viewApi,dateEnv:t.dateEnv,monthStartFormat:n.monthStartFormat});return ce(Tr,Object.assign({},e,{elClasses:[...mi(r,t.theme),...e.elClasses||[]],elAttrs:Object.assign(Object.assign({},e.elAttrs),r.isDisabled?{}:{"data-date":kn(e.date)}),renderProps:r,generatorName:"dayCellContent",customGenerator:n.dayCellContent,defaultGenerator:e.defaultGenerator,classNameGenerator:r.isDisabled?void 0:n.dayCellClassNames,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount}))}}function wa(e){let{date:t,dateEnv:n,dateProfile:r,isMonthStart:o}=e,i=hi(t,e.todayRange,null,r),a=e.showDayNumber?n.format(t,o?e.monthStartFormat:ya):"";return Object.assign(Object.assign(Object.assign({date:n.toDate(t),view:e.viewApi},i),{isMonthStart:o,dayNumberText:a}),e.extraRenderProps)}class Oa extends kr{render(){let{props:e}=this,{seg:t}=e;return ce(ha,{elTag:"div",elClasses:["fc-bg-event"],elStyle:{backgroundColor:t.eventRange.ui.backgroundColor},defaultGenerator:xa,seg:t,timeText:"",isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday,disableDragging:!0,disableResizing:!0})}}function xa(e){let{title:t}=e.event;return t&&ce("div",{className:"fc-event-title"},e.event.title)}class Sa extends kr{constructor(){super(...arguments),this.state={titleId:Zt()},this.handleRootEl=e=>{this.rootEl=e,this.props.elRef&&_r(this.props.elRef,e)},this.handleDocumentMouseDown=e=>{const t=Tt(e);this.rootEl.contains(t)||this.handleCloseClick()},this.handleDocumentKeyDown=e=>{"Escape"===e.key&&this.handleCloseClick()},this.handleCloseClick=()=>{let{onClose:e}=this.props;e&&e()}}render(){let{theme:e,options:t}=this.context,{props:n,state:r}=this,o=["fc-popover",e.getClass("popover")].concat(n.extraClassNames||[]);return st(ce("div",Object.assign({},n.extraAttrs,{id:n.id,className:o.join(" "),"aria-labelledby":r.titleId,ref:this.handleRootEl}),ce("div",{className:"fc-popover-header "+e.getClass("popoverHeader")},ce("span",{className:"fc-popover-title",id:r.titleId},n.title),ce("span",{className:"fc-popover-close "+e.getIconClass("close"),title:t.closeHint,onClick:this.handleCloseClick})),ce("div",{className:"fc-popover-body "+e.getClass("popoverContent")},n.children)),n.parentEl)}componentDidMount(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()}componentWillUnmount(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)}updateSize(){let{isRtl:e}=this.context,{alignmentEl:t,alignGridTop:n}=this.props,{rootEl:r}=this,o=function(e){let t=Ai(e),n=e.getBoundingClientRect();for(let e of t){let t=li(n,e.getBoundingClientRect());if(!t)return null;n=t}return n}(t);if(o){let i=r.getBoundingClientRect(),a=n?_t(t,".fc-scrollgrid").getBoundingClientRect().top:o.top,s=e?o.right-i.width:o.left;a=Math.max(a,10),s=Math.min(s,document.documentElement.clientWidth-10-i.width),s=Math.max(s,10);let c=r.offsetParent.getBoundingClientRect();jt(r,{top:a-c.top,left:s-c.left})}}}class Ea extends Zi{constructor(){super(...arguments),this.handleRootEl=e=>{this.rootEl=e,e?this.context.registerInteractiveComponent(this,{el:e,useEventCenter:!1}):this.context.unregisterInteractiveComponent(this)}}render(){let{options:e,dateEnv:t}=this.context,{props:n}=this,{startDate:r,todayRange:o,dateProfile:i}=n,a=t.format(r,e.dayPopoverFormat);return ce(ba,{elRef:this.handleRootEl,date:r,dateProfile:i,todayRange:o},((t,r,o)=>ce(Sa,{elRef:o.ref,id:n.id,title:a,extraClassNames:["fc-more-popover"].concat(o.className||[]),extraAttrs:o,parentEl:n.parentEl,alignmentEl:n.alignmentEl,alignGridTop:n.alignGridTop,onClose:n.onClose},function(e){return Boolean(e.dayCellContent||Ar("dayCellContent",e))}(e)&&ce(t,{elTag:"div",elClasses:["fc-more-popover-misc"]}),n.children)))}queryHit(e,t,n,r){let{rootEl:o,props:i}=this;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:i.dateProfile,dateSpan:Object.assign({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}}class ka extends kr{constructor(){super(...arguments),this.state={isPopoverOpen:!1,popoverId:Zt()},this.handleLinkEl=e=>{this.linkEl=e,this.props.elRef&&_r(this.props.elRef,e)},this.handleClick=e=>{let{props:t,context:n}=this,{moreLinkClick:r}=n.options,o=Ca(t).start;function i(e){let{def:t,instance:r,range:o}=e.eventRange;return{event:new Ro(n,t,r),start:n.dateEnv.toDate(o.start),end:n.dateEnv.toDate(o.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof r&&(r=r({date:o,allDay:Boolean(t.allDayDate),allSegs:t.allSegs.map(i),hiddenSegs:t.hiddenSegs.map(i),jsEvent:e,view:n.viewApi})),r&&"popover"!==r?"string"==typeof r&&n.calendarApi.zoomTo(o,r):this.setState({isPopoverOpen:!0})},this.handlePopoverClose=()=>{this.setState({isPopoverOpen:!1})}}render(){let{props:e,state:t}=this;return ce(xr.Consumer,null,(n=>{let{viewApi:r,options:o,calendarApi:i}=n,{moreLinkText:a}=o,{moreCnt:s}=e,c=Ca(e),u="function"==typeof a?a.call(i,s):`+${s} ${a}`,l=Kt(o.moreLinkHint,[s],u),d={num:s,shortText:`+${s}`,text:u,view:r};return ce(le,null,Boolean(e.moreCnt)&&ce(Tr,{elTag:e.elTag||"a",elRef:this.handleLinkEl,elClasses:[...e.elClasses||[],"fc-more-link"],elStyle:e.elStyle,elAttrs:Object.assign(Object.assign(Object.assign({},e.elAttrs),Ft(this.handleClick)),{title:l,"aria-expanded":t.isPopoverOpen,"aria-controls":t.isPopoverOpen?t.popoverId:""}),renderProps:d,generatorName:"moreLinkContent",customGenerator:o.moreLinkContent,defaultGenerator:e.defaultGenerator||_a,classNameGenerator:o.moreLinkClassNames,didMount:o.moreLinkDidMount,willUnmount:o.moreLinkWillUnmount},e.children),t.isPopoverOpen&&ce(Ea,{id:t.popoverId,startDate:c.start,endDate:c.end,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:e.extraDateSpan,parentEl:this.parentEl,alignmentEl:e.alignmentElRef?e.alignmentElRef.current:this.linkEl,alignGridTop:e.alignGridTop,onClose:this.handlePopoverClose},e.popoverContent()))}))}componentDidMount(){this.updateParentEl()}componentDidUpdate(){this.updateParentEl()}updateParentEl(){this.linkEl&&(this.parentEl=_t(this.linkEl,".fc-view-harness"))}}function _a(e){return e.text}function Ca(e){if(e.allDayDate)return{start:e.allDayDate,end:dn(e.allDayDate,1)};let{hiddenSegs:t}=e;return{start:Aa(t),end:(n=t,n.reduce(ja).eventRange.range.end)};var n}function Aa(e){return e.reduce(Pa).eventRange.range.start}function Pa(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function ja(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}class Da extends class{constructor(){this.handlers=[]}set(e){this.currentValue=e;for(let t of this.handlers)t(e)}subscribe(e){this.handlers.push(e),void 0!==this.currentValue&&e(this.currentValue)}}{constructor(){super(...arguments),this.map=new Map}handle(e){const{map:t}=this;let n=!1;e.isActive?(t.set(e.id,e),n=!0):t.has(e.id)&&(t.delete(e.id),n=!0),n&&this.set(t)}}Ot(':root{--fc-small-font-size:.85em;--fc-page-bg-color:#fff;--fc-neutral-bg-color:hsla(0,0%,82%,.3);--fc-neutral-text-color:grey;--fc-border-color:#ddd;--fc-button-text-color:#fff;--fc-button-bg-color:#2c3e50;--fc-button-border-color:#2c3e50;--fc-button-hover-bg-color:#1e2b37;--fc-button-hover-border-color:#1a252f;--fc-button-active-bg-color:#1a252f;--fc-button-active-border-color:#151e27;--fc-event-bg-color:#3788d8;--fc-event-border-color:#3788d8;--fc-event-text-color:#fff;--fc-event-selected-overlay-color:rgba(0,0,0,.25);--fc-more-link-bg-color:#d0d0d0;--fc-more-link-text-color:inherit;--fc-event-resizer-thickness:8px;--fc-event-resizer-dot-total-width:8px;--fc-event-resizer-dot-border-width:1px;--fc-non-business-color:hsla(0,0%,84%,.3);--fc-bg-event-color:#8fdf82;--fc-bg-event-opacity:0.3;--fc-highlight-color:rgba(188,232,241,.3);--fc-today-bg-color:rgba(255,220,40,.15);--fc-now-indicator-color:red}.fc-not-allowed,.fc-not-allowed .fc-event{cursor:not-allowed}.fc-unselectable{-webkit-touch-callout:none;-webkit-tap-highlight-color:rgba(0,0,0,0);-webkit-user-select:none;-moz-user-select:none;user-select:none}.fc{display:flex;flex-direction:column;font-size:1em}.fc,.fc *,.fc :after,.fc :before{box-sizing:border-box}.fc table{border-collapse:collapse;border-spacing:0;font-size:1em}.fc th{text-align:center}.fc td,.fc th{padding:0;vertical-align:top}.fc a[data-navlink]{cursor:pointer}.fc a[data-navlink]:hover{text-decoration:underline}.fc-direction-ltr{direction:ltr;text-align:left}.fc-direction-rtl{direction:rtl;text-align:right}.fc-theme-standard td,.fc-theme-standard th{border:1px solid var(--fc-border-color)}.fc-liquid-hack td,.fc-liquid-hack th{position:relative}@font-face{font-family:fcicons;font-style:normal;font-weight:400;src:url("data:application/x-font-ttf;charset=utf-8;base64,AAEAAAALAIAAAwAwT1MvMg8SBfAAAAC8AAAAYGNtYXAXVtKNAAABHAAAAFRnYXNwAAAAEAAAAXAAAAAIZ2x5ZgYydxIAAAF4AAAFNGhlYWQUJ7cIAAAGrAAAADZoaGVhB20DzAAABuQAAAAkaG10eCIABhQAAAcIAAAALGxvY2ED4AU6AAAHNAAAABhtYXhwAA8AjAAAB0wAAAAgbmFtZXsr690AAAdsAAABhnBvc3QAAwAAAAAI9AAAACAAAwPAAZAABQAAApkCzAAAAI8CmQLMAAAB6wAzAQkAAAAAAAAAAAAAAAAAAAABEAAAAAAAAAAAAAAAAAAAAABAAADpBgPA/8AAQAPAAEAAAAABAAAAAAAAAAAAAAAgAAAAAAADAAAAAwAAABwAAQADAAAAHAADAAEAAAAcAAQAOAAAAAoACAACAAIAAQAg6Qb//f//AAAAAAAg6QD//f//AAH/4xcEAAMAAQAAAAAAAAAAAAAAAQAB//8ADwABAAAAAAAAAAAAAgAANzkBAAAAAAEAAAAAAAAAAAACAAA3OQEAAAAAAQAAAAAAAAAAAAIAADc5AQAAAAABAWIAjQKeAskAEwAAJSc3NjQnJiIHAQYUFwEWMjc2NCcCnuLiDQ0MJAz/AA0NAQAMJAwNDcni4gwjDQwM/wANIwz/AA0NDCMNAAAAAQFiAI0CngLJABMAACUBNjQnASYiBwYUHwEHBhQXFjI3AZ4BAA0N/wAMJAwNDeLiDQ0MJAyNAQAMIw0BAAwMDSMM4uINIwwNDQAAAAIA4gC3Ax4CngATACcAACUnNzY0JyYiDwEGFB8BFjI3NjQnISc3NjQnJiIPAQYUHwEWMjc2NCcB87e3DQ0MIw3VDQ3VDSMMDQ0BK7e3DQ0MJAzVDQ3VDCQMDQ3zuLcMJAwNDdUNIwzWDAwNIwy4twwkDA0N1Q0jDNYMDA0jDAAAAgDiALcDHgKeABMAJwAAJTc2NC8BJiIHBhQfAQcGFBcWMjchNzY0LwEmIgcGFB8BBwYUFxYyNwJJ1Q0N1Q0jDA0Nt7cNDQwjDf7V1Q0N1QwkDA0Nt7cNDQwkDLfWDCMN1Q0NDCQMt7gMIw0MDNYMIw3VDQ0MJAy3uAwjDQwMAAADAFUAAAOrA1UAMwBoAHcAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMhMjY1NCYjISIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAAVYRGRkR/qoRGRkRA1UFBAUOCQkVDAsZDf2rDRkLDBUJCA4FBQUFBQUOCQgVDAsZDQJVDRkLDBUJCQ4FBAVVAgECBQMCBwQECAX9qwQJAwQHAwMFAQICAgIBBQMDBwQDCQQCVQUIBAQHAgMFAgEC/oAZEhEZGRESGQAAAAADAFUAAAOrA1UAMwBoAIkAABMiBgcOAQcOAQcOARURFBYXHgEXHgEXHgEzITI2Nz4BNz4BNz4BNRE0JicuAScuAScuASMFITIWFx4BFx4BFx4BFREUBgcOAQcOAQcOASMhIiYnLgEnLgEnLgE1ETQ2Nz4BNz4BNz4BMxMzFRQWMzI2PQEzMjY1NCYrATU0JiMiBh0BIyIGFRQWM9UNGAwLFQkJDgUFBQUFBQ4JCRULDBgNAlYNGAwLFQkJDgUFBQUFBQ4JCRULDBgN/aoCVgQIBAQHAwMFAQIBAQIBBQMDBwQECAT9qgQIBAQHAwMFAQIBAQIBBQMDBwQECASAgBkSEhmAERkZEYAZEhIZgBEZGREDVQUEBQ4JCRUMCxkN/asNGQsMFQkIDgUFBQUFBQ4JCBUMCxkNAlUNGQsMFQkJDgUEBVUCAQIFAwIHBAQIBf2rBAkDBAcDAwUBAgICAgEFAwMHBAMJBAJVBQgEBAcCAwUCAQL+gIASGRkSgBkSERmAEhkZEoAZERIZAAABAOIAjQMeAskAIAAAExcHBhQXFjI/ARcWMjc2NC8BNzY0JyYiDwEnJiIHBhQX4uLiDQ0MJAzi4gwkDA0N4uINDQwkDOLiDCQMDQ0CjeLiDSMMDQ3h4Q0NDCMN4uIMIw0MDOLiDAwNIwwAAAABAAAAAQAAa5n0y18PPPUACwQAAAAAANivOVsAAAAA2K85WwAAAAADqwNVAAAACAACAAAAAAAAAAEAAAPA/8AAAAQAAAAAAAOrAAEAAAAAAAAAAAAAAAAAAAALBAAAAAAAAAAAAAAAAgAAAAQAAWIEAAFiBAAA4gQAAOIEAABVBAAAVQQAAOIAAAAAAAoAFAAeAEQAagCqAOoBngJkApoAAQAAAAsAigADAAAAAAACAAAAAAAAAAAAAAAAAAAAAAAAAA4ArgABAAAAAAABAAcAAAABAAAAAAACAAcAYAABAAAAAAADAAcANgABAAAAAAAEAAcAdQABAAAAAAAFAAsAFQABAAAAAAAGAAcASwABAAAAAAAKABoAigADAAEECQABAA4ABwADAAEECQACAA4AZwADAAEECQADAA4APQADAAEECQAEAA4AfAADAAEECQAFABYAIAADAAEECQAGAA4AUgADAAEECQAKADQApGZjaWNvbnMAZgBjAGkAYwBvAG4Ac1ZlcnNpb24gMS4wAFYAZQByAHMAaQBvAG4AIAAxAC4AMGZjaWNvbnMAZgBjAGkAYwBvAG4Ac2ZjaWNvbnMAZgBjAGkAYwBvAG4Ac1JlZ3VsYXIAUgBlAGcAdQBsAGEAcmZjaWNvbnMAZgBjAGkAYwBvAG4Ac0ZvbnQgZ2VuZXJhdGVkIGJ5IEljb01vb24uAEYAbwBuAHQAIABnAGUAbgBlAHIAYQB0AGUAZAAgAGIAeQAgAEkAYwBvAE0AbwBvAG4ALgAAAAMAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA=") format("truetype")}.fc-icon{speak:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;display:inline-block;font-family:fcicons!important;font-style:normal;font-variant:normal;font-weight:400;height:1em;line-height:1;text-align:center;text-transform:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;width:1em}.fc-icon-chevron-left:before{content:"\\e900"}.fc-icon-chevron-right:before{content:"\\e901"}.fc-icon-chevrons-left:before{content:"\\e902"}.fc-icon-chevrons-right:before{content:"\\e903"}.fc-icon-minus-square:before{content:"\\e904"}.fc-icon-plus-square:before{content:"\\e905"}.fc-icon-x:before{content:"\\e906"}.fc .fc-button{border-radius:0;font-family:inherit;font-size:inherit;line-height:inherit;margin:0;overflow:visible;text-transform:none}.fc .fc-button:focus{outline:1px dotted;outline:5px auto -webkit-focus-ring-color}.fc .fc-button{-webkit-appearance:button}.fc .fc-button:not(:disabled){cursor:pointer}.fc .fc-button::-moz-focus-inner{border-style:none;padding:0}.fc .fc-button{background-color:transparent;border:1px solid transparent;border-radius:.25em;display:inline-block;font-size:1em;font-weight:400;line-height:1.5;padding:.4em .65em;text-align:center;-webkit-user-select:none;-moz-user-select:none;user-select:none;vertical-align:middle}.fc .fc-button:hover{text-decoration:none}.fc .fc-button:focus{box-shadow:0 0 0 .2rem rgba(44,62,80,.25);outline:0}.fc .fc-button:disabled{opacity:.65}.fc .fc-button-primary{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:hover{background-color:var(--fc-button-hover-bg-color);border-color:var(--fc-button-hover-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:disabled{background-color:var(--fc-button-bg-color);border-color:var(--fc-button-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button-primary:not(:disabled).fc-button-active,.fc .fc-button-primary:not(:disabled):active{background-color:var(--fc-button-active-bg-color);border-color:var(--fc-button-active-border-color);color:var(--fc-button-text-color)}.fc .fc-button-primary:not(:disabled).fc-button-active:focus,.fc .fc-button-primary:not(:disabled):active:focus{box-shadow:0 0 0 .2rem rgba(76,91,106,.5)}.fc .fc-button .fc-icon{font-size:1.5em;vertical-align:middle}.fc .fc-button-group{display:inline-flex;position:relative;vertical-align:middle}.fc .fc-button-group>.fc-button{flex:1 1 auto;position:relative}.fc .fc-button-group>.fc-button.fc-button-active,.fc .fc-button-group>.fc-button:active,.fc .fc-button-group>.fc-button:focus,.fc .fc-button-group>.fc-button:hover{z-index:1}.fc-direction-ltr .fc-button-group>.fc-button:not(:first-child){border-bottom-left-radius:0;border-top-left-radius:0;margin-left:-1px}.fc-direction-ltr .fc-button-group>.fc-button:not(:last-child){border-bottom-right-radius:0;border-top-right-radius:0}.fc-direction-rtl .fc-button-group>.fc-button:not(:first-child){border-bottom-right-radius:0;border-top-right-radius:0;margin-right:-1px}.fc-direction-rtl .fc-button-group>.fc-button:not(:last-child){border-bottom-left-radius:0;border-top-left-radius:0}.fc .fc-toolbar{align-items:center;display:flex;justify-content:space-between}.fc .fc-toolbar.fc-header-toolbar{margin-bottom:1.5em}.fc .fc-toolbar.fc-footer-toolbar{margin-top:1.5em}.fc .fc-toolbar-title{font-size:1.75em;margin:0}.fc-direction-ltr .fc-toolbar>*>:not(:first-child){margin-left:.75em}.fc-direction-rtl .fc-toolbar>*>:not(:first-child){margin-right:.75em}.fc-direction-rtl .fc-toolbar-ltr{flex-direction:row-reverse}.fc .fc-scroller{-webkit-overflow-scrolling:touch;position:relative}.fc .fc-scroller-liquid{height:100%}.fc .fc-scroller-liquid-absolute{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-scroller-harness{direction:ltr;overflow:hidden;position:relative}.fc .fc-scroller-harness-liquid{height:100%}.fc-direction-rtl .fc-scroller-harness>.fc-scroller{direction:rtl}.fc-theme-standard .fc-scrollgrid{border:1px solid var(--fc-border-color)}.fc .fc-scrollgrid,.fc .fc-scrollgrid table{table-layout:fixed;width:100%}.fc .fc-scrollgrid table{border-left-style:hidden;border-right-style:hidden;border-top-style:hidden}.fc .fc-scrollgrid{border-bottom-width:0;border-collapse:separate;border-right-width:0}.fc .fc-scrollgrid-liquid{height:100%}.fc .fc-scrollgrid-section,.fc .fc-scrollgrid-section table,.fc .fc-scrollgrid-section>td{height:1px}.fc .fc-scrollgrid-section-liquid>td{height:100%}.fc .fc-scrollgrid-section>*{border-left-width:0;border-top-width:0}.fc .fc-scrollgrid-section-footer>*,.fc .fc-scrollgrid-section-header>*{border-bottom-width:0}.fc .fc-scrollgrid-section-body table,.fc .fc-scrollgrid-section-footer table{border-bottom-style:hidden}.fc .fc-scrollgrid-section-sticky>*{background:var(--fc-page-bg-color);position:sticky;z-index:3}.fc .fc-scrollgrid-section-header.fc-scrollgrid-section-sticky>*{top:0}.fc .fc-scrollgrid-section-footer.fc-scrollgrid-section-sticky>*{bottom:0}.fc .fc-scrollgrid-sticky-shim{height:1px;margin-bottom:-1px}.fc-sticky{position:sticky}.fc .fc-view-harness{flex-grow:1;position:relative}.fc .fc-view-harness-active>.fc-view{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-col-header-cell-cushion{display:inline-block;padding:2px 4px}.fc .fc-bg-event,.fc .fc-highlight,.fc .fc-non-business{bottom:0;left:0;position:absolute;right:0;top:0}.fc .fc-non-business{background:var(--fc-non-business-color)}.fc .fc-bg-event{background:var(--fc-bg-event-color);opacity:var(--fc-bg-event-opacity)}.fc .fc-bg-event .fc-event-title{font-size:var(--fc-small-font-size);font-style:italic;margin:.5em}.fc .fc-highlight{background:var(--fc-highlight-color)}.fc .fc-cell-shaded,.fc .fc-day-disabled{background:var(--fc-neutral-bg-color)}a.fc-event,a.fc-event:hover{text-decoration:none}.fc-event.fc-event-draggable,.fc-event[href]{cursor:pointer}.fc-event .fc-event-main{position:relative;z-index:2}.fc-event-dragging:not(.fc-event-selected){opacity:.75}.fc-event-dragging.fc-event-selected{box-shadow:0 2px 7px rgba(0,0,0,.3)}.fc-event .fc-event-resizer{display:none;position:absolute;z-index:4}.fc-event-selected .fc-event-resizer,.fc-event:hover .fc-event-resizer{display:block}.fc-event-selected .fc-event-resizer{background:var(--fc-page-bg-color);border-color:inherit;border-radius:calc(var(--fc-event-resizer-dot-total-width)/2);border-style:solid;border-width:var(--fc-event-resizer-dot-border-width);height:var(--fc-event-resizer-dot-total-width);width:var(--fc-event-resizer-dot-total-width)}.fc-event-selected .fc-event-resizer:before{bottom:-20px;content:"";left:-20px;position:absolute;right:-20px;top:-20px}.fc-event-selected,.fc-event:focus{box-shadow:0 2px 5px rgba(0,0,0,.2)}.fc-event-selected:before,.fc-event:focus:before{bottom:0;content:"";left:0;position:absolute;right:0;top:0;z-index:3}.fc-event-selected:after,.fc-event:focus:after{background:var(--fc-event-selected-overlay-color);bottom:-1px;content:"";left:-1px;position:absolute;right:-1px;top:-1px;z-index:1}.fc-h-event{background-color:var(--fc-event-bg-color);border:1px solid var(--fc-event-border-color);display:block}.fc-h-event .fc-event-main{color:var(--fc-event-text-color)}.fc-h-event .fc-event-main-frame{display:flex}.fc-h-event .fc-event-time{max-width:100%;overflow:hidden}.fc-h-event .fc-event-title-container{flex-grow:1;flex-shrink:1;min-width:0}.fc-h-event .fc-event-title{display:inline-block;left:0;max-width:100%;overflow:hidden;right:0;vertical-align:top}.fc-h-event.fc-event-selected:before{bottom:-10px;top:-10px}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-start),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-end){border-bottom-left-radius:0;border-left-width:0;border-top-left-radius:0}.fc-direction-ltr .fc-daygrid-block-event:not(.fc-event-end),.fc-direction-rtl .fc-daygrid-block-event:not(.fc-event-start){border-bottom-right-radius:0;border-right-width:0;border-top-right-radius:0}.fc-h-event:not(.fc-event-selected) .fc-event-resizer{bottom:0;top:0;width:var(--fc-event-resizer-thickness)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end{cursor:w-resize;left:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-direction-ltr .fc-h-event:not(.fc-event-selected) .fc-event-resizer-end,.fc-direction-rtl .fc-h-event:not(.fc-event-selected) .fc-event-resizer-start{cursor:e-resize;right:calc(var(--fc-event-resizer-thickness)*-.5)}.fc-h-event.fc-event-selected .fc-event-resizer{margin-top:calc(var(--fc-event-resizer-dot-total-width)*-.5);top:50%}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-start,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-end{left:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc-direction-ltr .fc-h-event.fc-event-selected .fc-event-resizer-end,.fc-direction-rtl .fc-h-event.fc-event-selected .fc-event-resizer-start{right:calc(var(--fc-event-resizer-dot-total-width)*-.5)}.fc .fc-popover{box-shadow:0 2px 6px rgba(0,0,0,.15);position:absolute;z-index:9999}.fc .fc-popover-header{align-items:center;display:flex;flex-direction:row;justify-content:space-between;padding:3px 4px}.fc .fc-popover-title{margin:0 2px}.fc .fc-popover-close{cursor:pointer;font-size:1.1em;opacity:.65}.fc-theme-standard .fc-popover{background:var(--fc-page-bg-color);border:1px solid var(--fc-border-color)}.fc-theme-standard .fc-popover-header{background:var(--fc-neutral-bg-color)}');const Ta=[],Ra={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"},Za=Object.assign(Object.assign({},Ra),{buttonHints:{prev:"Previous $0",next:"Next $0",today:(e,t)=>"day"===t?"Today":`This ${e}`},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:e=>`Show ${e} more event${1===e?"":"s"}`});function Ma(e){let t=e.length>0?e[0].code:"en",n=Ta.concat(e),r={en:Za};for(let e of n)r[e.code]=e;return{map:r,defaultCode:t}}function Ia(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){let n=[].concat(e||[]),r=function(e,t){for(let n=0;n<e.length;n+=1){let r=e[n].toLocaleLowerCase().split("-");for(let e=r.length;e>0;e-=1){let n=r.slice(0,e).join("-");if(t[n])return t[n]}}return null}(n,t)||Za;return Na(e,n,r)}(e,t):Na(e.code,[e.code],e)}function Na(e,t,n){let r=rr([Ra,n],["buttonText"]);delete r.code;let{week:o}=r;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}function Fa(e){return{id:Ht(),name:e.name,premiumReleaseDate:e.premiumReleaseDate?new Date(e.premiumReleaseDate):void 0,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,listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function La(){let e,t=[],n=[];return(r,o)=>(e&&un(r,t)&&un(o,n)||(e=function(e,t){let n={},r={premiumReleaseDate:void 0,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,listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(e){for(let a of e){const e=a.name,s=n[e];void 0===s?(n[e]=a.id,o(a.deps),i=a,r={premiumReleaseDate:Ba((t=r).premiumReleaseDate,i.premiumReleaseDate),reducers:t.reducers.concat(i.reducers),isLoadingFuncs:t.isLoadingFuncs.concat(i.isLoadingFuncs),contextInit:t.contextInit.concat(i.contextInit),eventRefiners:Object.assign(Object.assign({},t.eventRefiners),i.eventRefiners),eventDefMemberAdders:t.eventDefMemberAdders.concat(i.eventDefMemberAdders),eventSourceRefiners:Object.assign(Object.assign({},t.eventSourceRefiners),i.eventSourceRefiners),isDraggableTransformers:t.isDraggableTransformers.concat(i.isDraggableTransformers),eventDragMutationMassagers:t.eventDragMutationMassagers.concat(i.eventDragMutationMassagers),eventDefMutationAppliers:t.eventDefMutationAppliers.concat(i.eventDefMutationAppliers),dateSelectionTransformers:t.dateSelectionTransformers.concat(i.dateSelectionTransformers),datePointTransforms:t.datePointTransforms.concat(i.datePointTransforms),dateSpanTransforms:t.dateSpanTransforms.concat(i.dateSpanTransforms),views:Object.assign(Object.assign({},t.views),i.views),viewPropsTransformers:t.viewPropsTransformers.concat(i.viewPropsTransformers),isPropsValid:i.isPropsValid||t.isPropsValid,externalDefTransforms:t.externalDefTransforms.concat(i.externalDefTransforms),viewContainerAppends:t.viewContainerAppends.concat(i.viewContainerAppends),eventDropTransformers:t.eventDropTransformers.concat(i.eventDropTransformers),calendarInteractions:t.calendarInteractions.concat(i.calendarInteractions),componentInteractions:t.componentInteractions.concat(i.componentInteractions),themeClasses:Object.assign(Object.assign({},t.themeClasses),i.themeClasses),eventSourceDefs:t.eventSourceDefs.concat(i.eventSourceDefs),cmdFormatter:i.cmdFormatter||t.cmdFormatter,recurringTypes:t.recurringTypes.concat(i.recurringTypes),namedTimeZonedImpl:i.namedTimeZonedImpl||t.namedTimeZonedImpl,initialView:t.initialView||i.initialView,elementDraggingImpl:t.elementDraggingImpl||i.elementDraggingImpl,optionChangeHandlers:Object.assign(Object.assign({},t.optionChangeHandlers),i.optionChangeHandlers),scrollGridImpl:i.scrollGridImpl||t.scrollGridImpl,listenerRefiners:Object.assign(Object.assign({},t.listenerRefiners),i.listenerRefiners),optionRefiners:Object.assign(Object.assign({},t.optionRefiners),i.optionRefiners),propSetHandlers:Object.assign(Object.assign({},t.propSetHandlers),i.propSetHandlers)}):s!==a.id&&console.warn(`Duplicate plugin '${e}'`)}var t,i}return e&&o(e),o(t),r}(r,o)),t=r,n=o,e)}function Ba(e,t){return void 0===e?t:void 0===t?e:new Date(Math.max(e.valueOf(),t.valueOf()))}class Ha extends vr{}function Ua(e,t,n,r){if(t[e])return t[e];let o=function(e,t,n,r){let o=n[e],i=r[e],a=e=>o&&null!==o[e]?o[e]:i&&null!==i[e]?i[e]:null,s=a("component"),c=a("superType"),u=null;if(c){if(c===e)throw new Error("Can't have a custom view type that references itself");u=Ua(c,t,n,r)}!s&&u&&(s=u.component);if(!s)return null;return{type:e,component:s,defaults:Object.assign(Object.assign({},u?u.defaults:{}),o?o.rawOptions:{}),overrides:Object.assign(Object.assign({},u?u.overrides:{}),i?i.rawOptions:{})}}(e,t,n,r);return o&&(t[e]=o),o}function Wa(e){return ir(e,za)}function za(e){let t="function"==typeof e?{component:e}:e,{component:n}=t;var r;return t.content&&(r=t,n=e=>ce(xr.Consumer,null,(t=>ce(Tr,{elTag:"div",elClasses:Mr(t.viewSpec),renderProps:Object.assign(Object.assign({},e),{nextDayThreshold:t.options.nextDayThreshold}),generatorName:void 0,customGenerator:r.content,classNameGenerator:r.classNames,didMount:r.didMount,willUnmount:r.willUnmount})))),{superType:t.type,component:n,rawOptions:t}}function Va(e,t,n,r){let o=Wa(e),i=Wa(t.views),a=function(e,t){let n,r={};for(n in e)Ua(n,r,e,t);for(n in t)Ua(n,r,e,t);return r}(o,i);return ir(a,(e=>function(e,t,n,r,o){let i=e.overrides.duration||e.defaults.duration||r.duration||n.duration,a=null,s="",c="",u={};if(i&&(a=function(e){let t=JSON.stringify(e),n=qa[t];void 0===n&&(n=tn(e),qa[t]=n);return n}(i),a)){let e=cn(a);s=e.unit,1===e.value&&(c=s,u=t[s]?t[s].rawOptions:{})}let l=t=>{let n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[c]?n[c]:null},d=t=>{let n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[c]?n[c]:null};return{type:e.type,component:e.component,duration:a,durationUnit:s,singleUnit:c,optionDefaults:e.defaults,optionOverrides:Object.assign(Object.assign({},u),e.overrides),buttonTextOverride:l(r)||l(n)||e.overrides.buttonText,buttonTextDefault:l(o)||e.defaults.buttonText||l(qn)||e.type,buttonTitleOverride:d(r)||d(n)||e.overrides.buttonHint,buttonTitleDefault:d(o)||e.defaults.buttonHint||d(qn)}}(e,i,t,n,r)))}Ha.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},Ha.prototype.baseIconClass="fc-icon",Ha.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"},Ha.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},Ha.prototype.iconOverrideOption="buttonIcons",Ha.prototype.iconOverrideCustomButtonOption="icon",Ha.prototype.iconOverridePrefix="fc-icon-";let qa={};function Ya(e,t,n){let r=t?t.activeRange:null;return Qa({},function(e,t){let n=yo(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(let e of r){let r=vo(e,t,n);r&&o.push(r)}return o}(e,n),r,n)}function Ga(e,t,n,r){let o=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Qa(e,t.sources,o,r);case"REMOVE_EVENT_SOURCE":return i=e,a=t.sourceId,or(i,(e=>e.sourceId!==a));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Xa(e,o,r):e;case"FETCH_EVENT_SOURCES":return $a(e,t.sourceIds?ar(t.sourceIds):es(e,r),o,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){let o=e[t];if(o&&n===o.latestFetchId)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},o),{isFetching:!1,fetchRange:r})});return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}var i,a}function Ka(e){for(let t in e)if(e[t].isFetching)return!0;return!1}function Qa(e,t,n,r){let o={};for(let e of t)o[e.sourceId]=e;return n&&(o=Xa(o,n,r)),Object.assign(Object.assign({},e),o)}function Xa(e,t,n){return $a(e,or(e,(e=>function(e,t,n){if(!ts(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 $a(e,t,n,r,o){let i={};for(let a in e){let s=e[a];t[a]?i[a]=Ja(s,n,r,o):i[a]=s}return i}function Ja(e,t,n,r){let{options:o,calendarApi:i}=r,a=r.pluginHooks.eventSourceDefs[e.sourceDefId],s=Ht();return a.fetch({eventSource:e,range:t,isRefetch:n,context:r},(n=>{let{rawEvents:a}=n;o.eventSourceSuccess&&(a=o.eventSourceSuccess.call(i,a,n.response)||a),e.success&&(a=e.success.call(i,a,n.response)||a),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:s,fetchRange:t,rawEvents:a})}),(n=>{let a=!1;o.eventSourceFailure&&(o.eventSourceFailure.call(i,n),a=!0),e.failure&&(e.failure(n),a=!0),a||console.warn(n.message,n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:s,fetchRange:t,error:n})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:s})}function es(e,t){return or(e,(e=>ts(e,t)))}function ts(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function ns(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function rs(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function os(e,t){let n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function is(e,t){let n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return n=t.state,{affectedEvents:n.affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function as(e,t,n,r,o){return{header:e.headerToolbar?ss(e.headerToolbar,e,t,n,r,o):null,footer:e.footerToolbar?ss(e.footerToolbar,e,t,n,r,o):null}}function ss(e,t,n,r,o,i){let a={},s=[],c=!1;for(let u in e){let l=cs(e[u],t,n,r,o,i);a[u]=l.widgets,s.push(...l.viewsWithButtons),c=c||l.hasTitle}return{sectionWidgets:a,viewsWithButtons:s,hasTitle:c}}function cs(e,t,n,r,o,i){let a="rtl"===t.direction,s=t.customButtons||{},c=n.buttonText||{},u=t.buttonText||{},l=n.buttonHints||{},d=t.buttonHints||{},f=e?e.split(" "):[],p=[],h=!1;return{widgets:f.map((e=>e.split(",").map((e=>{if("title"===e)return h=!0,{buttonName:e};let n,f,m,g,v,y;if(n=s[e])m=e=>{n.click&&n.click.call(e.target,e,e.target)},(g=r.getCustomButtonIconClass(n))||(g=r.getIconClass(e,a))||(v=n.text),y=n.hint||n.text;else if(f=o[e]){p.push(e),m=()=>{i.changeView(e)},(v=f.buttonTextOverride)||(g=r.getIconClass(e,a))||(v=f.buttonTextDefault);let n=f.buttonTextOverride||f.buttonTextDefault;y=Kt(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[n,e],n)}else if(i[e])if(m=()=>{i[e]()},(v=c[e])||(g=r.getIconClass(e,a))||(v=u[e]),"prevYear"===e||"nextYear"===e){let t="prevYear"===e?"prev":"next";y=Kt(l[t]||d[t],[u.year||"year","year"],u[e])}else y=t=>Kt(l[e]||d[e],[u[t]||t,t],u[e]);return{buttonName:e,buttonClick:m,buttonIcon:g,buttonText:v,buttonHint:y}})))),viewsWithButtons:p,hasTitle:h}}class us{constructor(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}get calendar(){return this.getCurrentData().calendarApi}get title(){return this.getCurrentData().viewTitle}get activeStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)}get activeEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)}get currentStart(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)}get currentEnd(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)}getOption(e){return this.getCurrentData().options[e]}}function ls(e,t){let n=sr(t.getCurrentData().eventSources);if(1===n.length&&1===e.length&&Array.isArray(n[0]._raw)&&Array.isArray(e[0]))return void t.dispatch({type:"RESET_RAW_EVENTS",sourceId:n[0].sourceId,rawEvents:e[0]});let r=[];for(let t of e){let e=!1;for(let r=0;r<n.length;r+=1)if(n[r]._raw===t){n.splice(r,1),e=!0;break}e||r.push(t)}for(let e of n)t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:e.sourceId});for(let e of r)t.calendarApi.addEventSource(e)}const ds=[Fa({name:"array-event-source",eventSourceDefs:[{ignoreRange:!0,parseMeta:e=>Array.isArray(e.events)?e.events:null,fetch(e,t){t({rawEvents:e.eventSource.meta})}}]}),Fa({name:"func-event-source",eventSourceDefs:[{parseMeta:e=>"function"==typeof e.events?e.events:null,fetch(e,t,n){const{dateEnv:r}=e.context;Jo(e.eventSource.meta.bind(null,Xo(e.range,r)),(e=>t({rawEvents:e})),n)}}]}),Fa({name:"json-event-source",eventSourceRefiners:{method:String,extraParams:tr,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[{parseMeta:e=>!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(e,t,n){const{meta:r}=e.eventSource,o=function(e,t,n){let r,o,i,a,{dateEnv:s,options:c}=n,u={};r=e.startParam,null==r&&(r=c.startParam);o=e.endParam,null==o&&(o=c.endParam);i=e.timeZoneParam,null==i&&(i=c.timeZoneParam);a="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};Object.assign(u,a),u[r]=s.formatIso(t.start),u[o]=s.formatIso(t.end),"local"!==s.timeZone&&(u[i]=s.timeZone);return u}(r,e.range,e.context);ti(r.method,r.url,o).then((([e,n])=>{t({rawEvents:e,response:n})}),n)}}]}),Fa({name:"simple-recurring-event",recurringTypes:[{parse(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){let o,i={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};return e.duration&&(o=e.duration),!o&&e.startTime&&e.endTime&&(n=e.endTime,r=e.startTime,o={years:n.years-r.years,months:n.months-r.months,days:n.days-r.days,milliseconds:n.milliseconds-r.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:o,typeData:i}}var n,r;return null},expand(e,t,n){let r=Fr(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){let o=e?ar(e):null,i=mn(n.start),a=n.end,s=[];for(;i<a;){let e;o&&!o[i.getUTCDay()]||(e=t?r.add(i,t):i,s.push(e)),i=dn(i,1)}return s}(e.daysOfWeek,e.startTime,r,n):[]}}],eventRefiners:{daysOfWeek:tr,startTime:tn,endTime:tn,duration:tn,startRecur:tr,endRecur:tr}}),Fa({name:"change-handler",optionChangeHandlers:{events(e,t){ls([e],t)},eventSources:ls}}),Fa({name:"misc",isLoadingFuncs:[e=>Ka(e.eventSources)],propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",Object.assign(Object.assign({},Xo(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){let{emitter:n}=t;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Mo(e,t))}}})];class fs{constructor(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new Et(this.drain.bind(this))}request(e,t){this.queue.push(e),this.delayedRunner.request(t)}pause(e){this.delayedRunner.pause(e)}resume(e,t){this.delayedRunner.resume(e,t)}drain(){let{queue:e}=this;for(;e.length;){let t,n=[];for(;t=e.shift();)this.runTask(t),n.push(t);this.drained(n)}}runTask(e){this.runTaskOption&&this.runTaskOption(e)}drained(e){this.drainedOption&&this.drainedOption(e)}}function ps(e,t,n){let r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,zn(t.titleFormat||function(e){let{currentRangeUnit:t}=e;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};let n=hn(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})}class hs{constructor(e){this.computeCurrentViewData=Cn(this._computeCurrentViewData),this.organizeRawLocales=Cn(Ma),this.buildLocale=Cn(Ia),this.buildPluginHooks=La(),this.buildDateEnv=Cn(ms),this.buildTheme=Cn(gs),this.parseToolbars=Cn(as),this.buildViewSpecs=Cn(Va),this.buildDateProfileGenerator=An(vs),this.buildViewApi=Cn(ys),this.buildViewUiProps=An(Os),this.buildEventUiBySource=Cn(bs,cr),this.buildEventUiBases=Cn(ws),this.parseContextBusinessHours=An(Ss),this.buildTitle=Cn(ps),this.emitter=new So,this.actionRunner=new fs(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.optionsForRefining=[],this.optionsForHandling=[],this.getCurrentData=()=>this.data,this.dispatch=e=>{this.actionRunner.request(e)},this.props=e,this.actionRunner.pause();let t={},n=this.computeOptionsData(e.optionOverrides,t,e.calendarApi),r=n.calendarOptions.initialView||n.pluginHooks.initialView,o=this.computeCurrentViewData(r,n,e.optionOverrides,t);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(o.options);let i=function(e,t){let n=e.initialDate;return null!=n?t.createMarker(n):qr(e.now,t)}(n.calendarOptions,n.dateEnv),a=o.dateProfileGenerator.build(i);Ur(a.activeRange,i)||(i=a.currentRange.start);let s={dateEnv:n.dateEnv,options:n.calendarOptions,pluginHooks:n.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData};for(let e of n.pluginHooks.contextInit)e(s);let c=Ya(n.calendarOptions,a,s),u={dynamicOptionOverrides:t,currentViewType:r,currentDate:i,dateProfile:a,businessHours:this.parseContextBusinessHours(s),eventSources:c,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(s).selectionConfig},l=Object.assign(Object.assign({},s),u);for(let e of n.pluginHooks.reducers)Object.assign(u,e(null,null,l));xs(u,s)&&this.emitter.trigger("loading",!0),this.state=u,this.updateData(),this.actionRunner.resume()}resetOptions(e,t){let{props:n}=this;void 0===t?n.optionOverrides=e:(n.optionOverrides=Object.assign(Object.assign({},n.optionOverrides||{}),e),this.optionsForRefining.push(...t)),(void 0===t||t.length)&&this.actionRunner.request({type:"NOTHING"})}_handleAction(e){let{props:t,state:n,emitter:r}=this,o=function(e,t){return"SET_OPTION"===t.type?Object.assign(Object.assign({},e),{[t.optionName]:t.rawOptionValue}):e}(n.dynamicOptionOverrides,e),i=this.computeOptionsData(t.optionOverrides,o,t.calendarApi),a=function(e,t){"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType);return e}(n.currentViewType,e),s=this.computeCurrentViewData(a,i,t.optionOverrides,o);t.calendarApi.currentDataManager=this,r.setThisContext(t.calendarApi),r.setOptions(s.options);let c={dateEnv:i.dateEnv,options:i.calendarOptions,pluginHooks:i.pluginHooks,calendarApi:t.calendarApi,dispatch:this.dispatch,emitter:r,getCurrentData:this.getCurrentData},{currentDate:u,dateProfile:l}=n;this.data&&this.data.dateProfileGenerator!==s.dateProfileGenerator&&(l=s.dateProfileGenerator.build(u)),u=function(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}(u,e),l=function(e,t,n,r){let 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),o.isValid)return o;break;case"NEXT":if(o=r.buildNext(e,n),o.isValid)return o}return e}(l,e,u,s.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&Ur(l.currentRange,u)||(u=l.currentRange.start);let d=Ga(n.eventSources,e,l,c),f=bo(n.eventStore,e,d,l,c),p=Ka(d)&&!s.options.progressiveEventRendering&&n.renderableEventStore||f,{eventUiSingleBase:h,selectionConfig:m}=this.buildViewUiProps(c),g=this.buildEventUiBySource(d),v={dynamicOptionOverrides:o,currentViewType:a,currentDate:u,dateProfile:l,eventSources:d,eventStore:f,renderableEventStore:p,selectionConfig:m,eventUiBases:this.buildEventUiBases(p.defs,h,g),businessHours:this.parseContextBusinessHours(c),dateSelection:ns(n.dateSelection,e),eventSelection:rs(n.eventSelection,e),eventDrag:os(n.eventDrag,e),eventResize:is(n.eventResize,e)},y=Object.assign(Object.assign({},c),v);for(let t of i.pluginHooks.reducers)Object.assign(v,t(n,e,y));let b=xs(n,c),w=xs(v,c);!b&&w?r.trigger("loading",!0):b&&!w&&r.trigger("loading",!1),this.state=v,t.onAction&&t.onAction(e)}updateData(){let{props:e,state:t}=this,n=this.data,r=this.computeOptionsData(e.optionOverrides,t.dynamicOptionOverrides,e.calendarApi),o=this.computeCurrentViewData(t.currentViewType,r,e.optionOverrides,t.dynamicOptionOverrides),i=this.data=Object.assign(Object.assign(Object.assign({viewTitle:this.buildTitle(t.dateProfile,o.options,r.dateEnv),calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},r),o),t),a=r.pluginHooks.optionChangeHandlers,s=n&&n.calendarOptions,c=r.calendarOptions;if(s&&s!==c){s.timeZone!==c.timeZone&&(t.eventSources=i.eventSources=function(e,t,n){let r=t?t.activeRange:null;return $a(e,es(e,n),r,!0,n)}(i.eventSources,t.dateProfile,i),t.eventStore=i.eventStore=function(e,t,n){let{defs:r}=e,o=ir(e.instances,(e=>{let o=r[e.defId];return o.allDay||o.recurringDef?e:Object.assign(Object.assign({},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}}(i.eventStore,n.dateEnv,i.dateEnv));for(let e in a)-1===this.optionsForHandling.indexOf(e)&&s[e]===c[e]||a[e](c[e],i)}this.optionsForHandling=[],e.onData&&e.onData(i)}computeOptionsData(e,t,n){if(!this.optionsForRefining.length&&e===this.stableOptionOverrides&&t===this.stableDynamicOptionOverrides)return this.stableCalendarOptionsData;let{refinedOptions:r,pluginHooks:o,localeDefaults:i,availableLocaleData:a,extra:s}=this.processRawCalendarOptions(e,t);Es(s);let c=this.buildDateEnv(r.timeZone,r.locale,r.weekNumberCalculation,r.firstDay,r.weekText,o,a,r.defaultRangeSeparator),u=this.buildViewSpecs(o.views,this.stableOptionOverrides,this.stableDynamicOptionOverrides,i),l=this.buildTheme(r,o),d=this.parseToolbars(r,this.stableOptionOverrides,l,u,n);return this.stableCalendarOptionsData={calendarOptions:r,pluginHooks:o,dateEnv:c,viewSpecs:u,theme:l,toolbarConfig:d,localeDefaults:i,availableRawLocales:a.map}}processRawCalendarOptions(e,t){let{locales:n,locale:r}=Jn([qn,e,t]),o=this.organizeRawLocales(n),i=o.map,a=this.buildLocale(r||o.defaultCode,i).options,s=this.buildPluginHooks(e.plugins||[],ds),c=this.currentCalendarOptionsRefiners=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vn),Yn),Gn),s.listenerRefiners),s.optionRefiners),u={},l=Jn([qn,a,e,t]),d={},f=this.currentCalendarOptionsInput,p=this.currentCalendarOptionsRefined,h=!1;for(let e in l)-1===this.optionsForRefining.indexOf(e)&&(l[e]===f[e]||Kn[e]&&e in f&&Kn[e](f[e],l[e]))?d[e]=p[e]:c[e]?(d[e]=c[e](l[e]),h=!0):u[e]=f[e];return h&&(this.currentCalendarOptionsInput=l,this.currentCalendarOptionsRefined=d,this.stableOptionOverrides=e,this.stableDynamicOptionOverrides=t),this.optionsForHandling.push(...this.optionsForRefining),this.optionsForRefining=[],{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:s,availableLocaleData:o,localeDefaults:a,extra:u}}_computeCurrentViewData(e,t,n,r){let o=t.viewSpecs[e];if(!o)throw new Error(`viewType "${e}" is not available. Please make sure you've loaded all neccessary plugins`);let{refinedOptions:i,extra:a}=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,r);return Es(a),{viewSpec:o,options:i,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:i.slotMinTime,slotMaxTime:i.slotMaxTime,showNonCurrentDates:i.showNonCurrentDates,dayCount:i.dayCount,dateAlignment:i.dateAlignment,dateIncrement:i.dateIncrement,hiddenDays:i.hiddenDays,weekends:i.weekends,nowInput:i.now,validRangeInput:i.validRange,visibleRangeInput:i.visibleRange,fixedWeekCount:i.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}}processRawViewOptions(e,t,n,r,o){let i=Jn([qn,e.optionDefaults,n,r,e.optionOverrides,o]),a=Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({},Vn),Yn),Gn),$n),t.listenerRefiners),t.optionRefiners),s={},c=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,l=!1,d={};for(let e in i)i[e]===c[e]||Kn[e]&&Kn[e](i[e],c[e])?s[e]=u[e]:(i[e]===this.currentCalendarOptionsInput[e]||Kn[e]&&Kn[e](i[e],this.currentCalendarOptionsInput[e])?e in this.currentCalendarOptionsRefined&&(s[e]=this.currentCalendarOptionsRefined[e]):a[e]?s[e]=a[e](i[e]):d[e]=i[e],l=!0);return l&&(this.currentViewOptionsInput=i,this.currentViewOptionsRefined=s),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}}}function ms(e,t,n,r,o,i,a,s){let c=Ia(t||a.defaultCode,a.map);return new gr({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:c,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:i.cmdFormatter,defaultSeparator:s})}function gs(e,t){return new(t.themeClasses[e.themeSystem]||Ha)(e)}function vs(e){return new(e.dateProfileGeneratorClass||Yr)(e)}function ys(e,t,n){return new us(e,t,n)}function bs(e){return ir(e,(e=>e.ui))}function ws(e,t,n){let r={"":t};for(let t in e){let o=e[t];o.sourceId&&n[o.sourceId]&&(r[t]=n[o.sourceId])}return r}function Os(e){let{options:t}=e;return{eventUiSingleBase:po({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:po({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function xs(e,t){for(let n of t.pluginHooks.isLoadingFuncs)if(n(e))return!0;return!1}function Ss(e){return ko(e.options.businessHours,e)}function Es(e,t){for(let n in e)console.warn(`Unknown option '${n}'`+(t?` for view '${t}'`:""))}class ks extends kr{render(){return ce("div",{className:"fc-toolbar-chunk"},...this.props.widgetGroups.map((e=>this.renderWidgetGroup(e))))}renderWidgetGroup(e){let{props:t}=this,{theme:n}=this.context,r=[],o=!0;for(let i of e){let{buttonName:e,buttonClick:a,buttonText:s,buttonIcon:c,buttonHint:u}=i;if("title"===e)o=!1,r.push(ce("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{let o=e===t.activeButton,i=!t.isTodayEnabled&&"today"===e||!t.isPrevEnabled&&"prev"===e||!t.isNextEnabled&&"next"===e,l=[`fc-${e}-button`,n.getClass("button")];o&&l.push(n.getClass("buttonActive")),r.push(ce("button",{type:"button",title:"function"==typeof u?u(t.navUnit):u,disabled:i,"aria-pressed":o,className:l.join(" "),onClick:a},s||(c?ce("span",{className:c}):"")))}}if(r.length>1){return ce("div",{className:o&&n.getClass("buttonGroup")||""},...r)}return r[0]}}class _s extends kr{render(){let e,t,{model:n,extraClassName:r}=this.props,o=!1,i=n.sectionWidgets,a=i.center;return i.left?(o=!0,e=i.left):e=i.start,i.right?(o=!0,t=i.right):t=i.end,ce("div",{className:[r||"","fc-toolbar",o?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",a||[]),this.renderSection("end",t||[]))}renderSection(e,t){let{props:n}=this;return ce(ks,{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})}}class Cs extends kr{constructor(){super(...arguments),this.state={availableWidth:null},this.handleEl=e=>{this.el=e,_r(this.props.elRef,e),this.updateAvailableWidth()},this.handleResize=()=>{this.updateAvailableWidth()}}render(){let{props:e,state:t}=this,{aspectRatio:n}=e,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||"",ce("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:o,paddingBottom:i}},e.children)}componentDidMount(){this.context.addResizeHandler(this.handleResize)}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateAvailableWidth(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})}}class As extends ii{constructor(e){super(e),this.handleSegClick=(e,t)=>{let{component:n}=this,{context:r}=n,o=Fo(t);if(o&&n.isValidSegDownEl(e.target)){let i=_t(e.target,".fc-event-forced-url"),a=i?i.querySelector("a[href]").href:"";r.emitter.trigger("eventClick",{el:t,event:new Ro(n.context,o.eventRange.def,o.eventRange.instance),jsEvent:e,view:r.viewApi}),a&&!e.defaultPrevented&&(window.location.href=a)}},this.destroy=It(e.el,"click",".fc-event",this.handleSegClick)}}class Ps extends ii{constructor(e){super(e),this.handleEventElRemove=e=>{e===this.currentSegEl&&this.handleSegLeave(null,this.currentSegEl)},this.handleSegEnter=(e,t)=>{Fo(t)&&(this.currentSegEl=t,this.triggerEvent("eventMouseEnter",e,t))},this.handleSegLeave=(e,t)=>{this.currentSegEl&&(this.currentSegEl=null,this.triggerEvent("eventMouseLeave",e,t))},this.removeHoverListeners=function(e,t,n,r){let o;return It(e,"mouseover",t,((e,t)=>{if(t!==o){o=t,n(e,t);let i=e=>{o=null,r(e,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}}))}(e.el,".fc-event",this.handleSegEnter,this.handleSegLeave)}destroy(){this.removeHoverListeners()}triggerEvent(e,t,n){let{component:r}=this,{context:o}=r,i=Fo(n);t&&!r.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new Ro(o,i.eventRange.def,i.eventRange.instance),jsEvent:t,view:o.viewApi})}}class js extends Er{constructor(){super(...arguments),this.buildViewContext=Cn(Sr),this.buildViewPropTransformers=Cn(Ts),this.buildToolbarProps=Cn(Ds),this.headerRef={current:null},this.footerRef={current:null},this.interactionsStore={},this.state={viewLabelId:Zt()},this.registerInteractiveComponent=(e,t)=>{let n=function(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}(e,t),r=[As,Ps].concat(this.props.pluginHooks.componentInteractions).map((e=>new e(n)));this.interactionsStore[e.uid]=r,si[e.uid]=n},this.unregisterInteractiveComponent=e=>{let t=this.interactionsStore[e.uid];if(t){for(let e of t)e.destroy();delete this.interactionsStore[e.uid]}delete si[e.uid]},this.resizeRunner=new Et((()=>{this.props.emitter.trigger("_resize",!0),this.props.emitter.trigger("windowResize",{view:this.props.viewApi})})),this.handleWindowResize=e=>{let{options:t}=this.props;t.handleWindowResize&&e.target===window&&this.resizeRunner.request(t.windowResizeDelay)}}render(){let e,{props:t}=this,{toolbarConfig:n,options:r}=t,o=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,qr(t.options.now,t.dateEnv),t.viewTitle),i=!1,a="";t.isHeightAuto||t.forPrint?a="":null!=r.height?i=!0:null!=r.contentHeight?a=r.contentHeight:e=Math.max(r.aspectRatio,.5);let s=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),c=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return ce(xr.Provider,{value:s},n.header&&ce(_s,Object.assign({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:c},o)),ce(Cs,{liquid:i,height:a,aspectRatio:e,labeledById:c},this.renderView(t),this.buildAppendContent()),n.footer&&ce(_s,Object.assign({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},o)))}componentDidMount(){let{props:e}=this;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((t=>new t(e))),window.addEventListener("resize",this.handleWindowResize);let{propSetHandlers:t}=e.pluginHooks;for(let n in t)t[n](e[n],e)}componentDidUpdate(e){let{props:t}=this,{propSetHandlers:n}=t.pluginHooks;for(let r in n)t[r]!==e[r]&&n[r](t[r],t)}componentWillUnmount(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(let e of this.calendarInteractions)e.destroy();this.props.emitter.trigger("_unmount")}buildAppendContent(){let{props:e}=this;return ce(le,{},...e.pluginHooks.viewContainerAppends.map((t=>t(e))))}renderView(e){let{pluginHooks:t}=e,{viewSpec:n}=e,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=this.buildViewPropTransformers(t.viewPropsTransformers);for(let t of o)Object.assign(r,t.transform(r,e));return ce(n.component,Object.assign({},r))}}function Ds(e,t,n,r,o,i){let a=n.build(o,void 0,!1),s=n.buildPrev(t,r,!1),c=n.buildNext(t,r,!1);return{title:i,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:a.isValid&&!Ur(t.currentRange,o),isPrevEnabled:s.isValid,isNextEnabled:c.isValid}}function Ts(e){return e.map((e=>new e))}class Rs extends ci{constructor(e,t={}){super(),this.isRendering=!1,this.isRendered=!1,this.currentClassNames=[],this.customContentRenderId=0,this.handleAction=e=>{switch(e.type){case"SET_EVENT_DRAG":case"SET_EVENT_RESIZE":this.renderRunner.tryDrain()}},this.handleData=e=>{this.currentData=e,this.renderRunner.request(e.calendarOptions.rerenderDelay)},this.handleRenderRequest=()=>{if(this.isRendering){this.isRendered=!0;let{currentData:e}=this;yr((()=>{je(ce(oi,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},((t,n,r,o)=>(this.setClassNames(t),this.setHeight(n),ce(Dr.Provider,{value:this.customContentRenderId},ce(js,Object.assign({isHeightAuto:r,forPrint:o},e)))))),this.el)}))}else this.isRendered&&(this.isRendered=!1,je(null,this.el),this.setClassNames([]),this.setHeight(""))},function(e){const t=e.getRootNode();if(!wt.get(t)){wt.set(t,!0);for(const e of bt)xt(t,e.innerText)}}(e),this.el=e,this.renderRunner=new Et(this.handleRenderRequest),new hs({optionOverrides:t,calendarApi:this,onAction:this.handleAction,onData:this.handleData})}render(){let e=this.isRendering;e?this.customContentRenderId+=1:this.isRendering=!0,this.renderRunner.request(),e&&this.updateSize()}destroy(){this.isRendering&&(this.isRendering=!1,this.renderRunner.request())}updateSize(){yr((()=>{super.updateSize()}))}batchRendering(e){this.renderRunner.pause("batchRendering"),e(),this.renderRunner.resume("batchRendering")}pauseRendering(){this.renderRunner.pause("pauseRendering")}resumeRendering(){this.renderRunner.resume("pauseRendering",!0)}resetOptions(e,t){this.currentDataManager.resetOptions(e,t)}setClassNames(e){if(!un(e,this.currentClassNames)){let{classList:t}=this.el;for(let e of this.currentClassNames)t.remove(e);for(let n of e)t.add(n);this.currentClassNames=e}}setHeight(e){Dt(this.el,"height",e)}}class Zs extends A.Component{constructor(){super(...arguments),this.elRef=(0,A.createRef)(),this.needsCustomRenderingResize=!1,this.isInitialRender=!0,this.state={customRenderingMap:new Map}}render(){const e=[];for(const t of this.state.customRenderingMap.values()){const{generatorMeta:n}=t,r="function"==typeof n?n(t.renderProps):n;e.push((0,ne.createPortal)(r,t.containerEl,t.id))}return A.createElement("div",{ref:this.elRef},e)}componentDidMount(){const e=new Da;this.handleCustomRendering=e.handle.bind(e),this.calendar=new Rs(this.elRef.current,Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.calendar.render(),e.subscribe((e=>{this.isInitialRender?this.doCustomRendering(e):this.requestCustomRendering(e)}))}requestCustomRendering(e){this.cancelCustomRendering(),this.customRenderingRequestId=requestAnimationFrame((()=>{Zs.act((()=>{this.doCustomRendering(e)}))}))}doCustomRendering(e){this.needsCustomRenderingResize=!0,this.setState({customRenderingMap:e})}cancelCustomRendering(){this.customRenderingRequestId&&(cancelAnimationFrame(this.customRenderingRequestId),this.customRenderingRequestId=void 0)}componentDidUpdate(){this.isInitialRender=!1,this.calendar.resetOptions(Object.assign(Object.assign({},this.props),{handleCustomRendering:this.handleCustomRendering})),this.needsCustomRenderingResize&&(this.needsCustomRenderingResize=!1,this.calendar.updateSize())}componentWillUnmount(){this.calendar.destroy(),this.cancelCustomRendering()}getApi(){return this.calendar}}Zs.act=e=>{e()};const Ms=["GPL-My-Project-Is-Open-Source","CC-Attribution-NonCommercial-NoDerivatives"],Is={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 Ns=Fa({name:"@fullcalendar/premium-common",premiumReleaseDate:"2023-02-07",optionRefiners:{schedulerLicenseKey:String},viewContainerAppends:[function(e){let t=e.options.schedulerLicenseKey,n="undefined"!=typeof window?window.location.href:"";if(!/\w+:\/\/fullcalendar\.io\/|\/examples\/[\w-]+\.html$/.test(n)){let n=function(e,t){if(-1!==Ms.indexOf(e))return"valid";const n=(e||"").match(/^(\d+)-fcs-(\d+)$/);if(n&&10===n[1].length){const e=new Date(1e3*parseInt(n[2],10)),r=Hi.mockSchedulerReleaseDate||t;if(xn(r)){return dn(r,-372)<e?"valid":"outdated"}}return"invalid"}(t,e.pluginHooks.premiumReleaseDate);if("valid"!==n)return ce("div",{className:"fc-license-message",style:Is},"outdated"===n?ce(le,null,"Your license key is too old to work with this version. ",ce("a",{href:"https://fullcalendar.io/docs/schedulerLicenseKey#outdated"},"More Info")):ce(le,null,"Your license key is invalid. ",ce("a",{href:"https://fullcalendar.io/docs/schedulerLicenseKey#invalid"},"More Info")))}return null}]});Hi.COLLAPSIBLE_WIDTH_THRESHOLD=1200;let Fs=[],Ls=[];function Bs(){let e=At(document.body,".fc-scroller-harness > .fc-scroller"),t=e.map((e=>{let t=window.getComputedStyle(e);return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop,overflowX:t.overflowX,overflowY:t.overflowY,marginBottom:t.marginBottom}}));for(let e of Fs)e.emitter.trigger("_beforeprint");yr((()=>{!function(e,t){e.forEach(((e,n)=>{e.style.overflowX="visible",e.style.overflowY="visible",e.style.marginBottom="",e.style.left=-t[n].scrollLeft+"px"}))}(e,t),Ls.push((()=>function(e,t){e.forEach(((e,n)=>{let 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))),Ls.push(function(){let e=At(document.body,".fc-scrollgrid");return e.forEach(Us),()=>e.forEach(Ws)}())}))}function Hs(){for(let e of Fs)e.emitter.trigger("_afterprint");yr((()=>{for(;Ls.length;)Ls.shift()()}))}function Us(e){let t=e.getBoundingClientRect().width;(!e.classList.contains("fc-scrollgrid-collapsible")||t<Hi.COLLAPSIBLE_WIDTH_THRESHOLD)&&(e.style.width=t+"px")}function Ws(e){e.style.width=""}Ot(".fc .fc-event,.fc .fc-scrollgrid table tr{-moz-column-break-inside:avoid;break-inside:avoid}.fc-media-print{display:block;max-width:100%}.fc-media-print .fc-bg-event,.fc-media-print .fc-non-business,.fc-media-print .fc-timegrid-axis-chunk,.fc-media-print .fc-timegrid-slots,.fc-media-print .fc-timeline-slots{display:none}.fc-media-print .fc-h-event,.fc-media-print .fc-toolbar button,.fc-media-print .fc-v-event{background:#fff!important;color:#000!important}.fc-media-print .fc-event,.fc-media-print .fc-event-main{color:#000!important}.fc-media-print .fc-timegrid-event{margin:.5em 0}");var zs=Fa({name:"@fullcalendar/adaptive",premiumReleaseDate:"2023-02-07",deps:[Ns],contextInit:function(e){Fs.length||(window.addEventListener("beforeprint",Bs),window.addEventListener("afterprint",Hs)),Fs.push(e),e.calendarApi.on("_unmount",(()=>{!function(e,t){let n=0,r=0;for(;r<e.length;)e[r]===t?(e.splice(r,1),n+=1):r+=1}(Fs,e),Fs.length||(window.removeEventListener("beforeprint",Bs),window.removeEventListener("afterprint",Hs))}))}});Hi.touchMouseIgnoreWait=500;let Vs=0,qs=0,Ys=!1;class Gs{constructor(e){this.subjectEl=null,this.selector="",this.handleSelector="",this.shouldIgnoreMove=!1,this.shouldWatchScroll=!0,this.isDragging=!1,this.isTouchDragging=!1,this.wasTouchScroll=!1,this.handleMouseDown=e=>{if(!this.shouldIgnoreMouse()&&function(e){return 0===e.button&&!e.ctrlKey}(e)&&this.tryStart(e)){let t=this.createEventFromMouse(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t),this.shouldIgnoreMove||document.addEventListener("mousemove",this.handleMouseMove),document.addEventListener("mouseup",this.handleMouseUp)}},this.handleMouseMove=e=>{let t=this.createEventFromMouse(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleMouseUp=e=>{document.removeEventListener("mousemove",this.handleMouseMove),document.removeEventListener("mouseup",this.handleMouseUp),this.emitter.trigger("pointerup",this.createEventFromMouse(e)),this.cleanup()},this.handleTouchStart=e=>{if(this.tryStart(e)){this.isTouchDragging=!0;let t=this.createEventFromTouch(e,!0);this.emitter.trigger("pointerdown",t),this.initScrollWatch(t);let n=e.target;this.shouldIgnoreMove||n.addEventListener("touchmove",this.handleTouchMove),n.addEventListener("touchend",this.handleTouchEnd),n.addEventListener("touchcancel",this.handleTouchEnd),window.addEventListener("scroll",this.handleTouchScroll,!0)}},this.handleTouchMove=e=>{let t=this.createEventFromTouch(e);this.recordCoords(t),this.emitter.trigger("pointermove",t)},this.handleTouchEnd=e=>{if(this.isDragging){let t=e.target;t.removeEventListener("touchmove",this.handleTouchMove),t.removeEventListener("touchend",this.handleTouchEnd),t.removeEventListener("touchcancel",this.handleTouchEnd),window.removeEventListener("scroll",this.handleTouchScroll,!0),this.emitter.trigger("pointerup",this.createEventFromTouch(e)),this.cleanup(),this.isTouchDragging=!1,Vs+=1,setTimeout((()=>{Vs-=1}),Hi.touchMouseIgnoreWait)}},this.handleTouchScroll=()=>{this.wasTouchScroll=!0},this.handleScroll=e=>{if(!this.shouldIgnoreMove){let t=window.pageXOffset-this.prevScrollX+this.prevPageX,n=window.pageYOffset-this.prevScrollY+this.prevPageY;this.emitter.trigger("pointermove",{origEvent:e,isTouch:this.isTouchDragging,subjectEl:this.subjectEl,pageX:t,pageY:n,deltaX:t-this.origPageX,deltaY:n-this.origPageY})}},this.containerEl=e,this.emitter=new So,e.addEventListener("mousedown",this.handleMouseDown),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),qs+=1,1===qs&&window.addEventListener("touchmove",Ks,{passive:!1})}destroy(){this.containerEl.removeEventListener("mousedown",this.handleMouseDown),this.containerEl.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),qs-=1,qs||window.removeEventListener("touchmove",Ks,{passive:!1})}tryStart(e){let t=this.querySubjectEl(e),n=e.target;return!(!t||this.handleSelector&&!_t(n,this.handleSelector))&&(this.subjectEl=t,this.isDragging=!0,this.wasTouchScroll=!1,!0)}cleanup(){Ys=!1,this.isDragging=!1,this.subjectEl=null,this.destroyScrollWatch()}querySubjectEl(e){return this.selector?_t(e.target,this.selector):this.containerEl}shouldIgnoreMouse(){return Vs||this.isTouchDragging}cancelTouchScroll(){this.isDragging&&(Ys=!0)}initScrollWatch(e){this.shouldWatchScroll&&(this.recordCoords(e),window.addEventListener("scroll",this.handleScroll,!0))}recordCoords(e){this.shouldWatchScroll&&(this.prevPageX=e.pageX,this.prevPageY=e.pageY,this.prevScrollX=window.pageXOffset,this.prevScrollY=window.pageYOffset)}destroyScrollWatch(){this.shouldWatchScroll&&window.removeEventListener("scroll",this.handleScroll,!0)}createEventFromMouse(e,t){let n=0,r=0;return t?(this.origPageX=e.pageX,this.origPageY=e.pageY):(n=e.pageX-this.origPageX,r=e.pageY-this.origPageY),{origEvent:e,isTouch:!1,subjectEl:this.subjectEl,pageX:e.pageX,pageY:e.pageY,deltaX:n,deltaY:r}}createEventFromTouch(e,t){let n,r,o=e.touches,i=0,a=0;return o&&o.length?(n=o[0].pageX,r=o[0].pageY):(n=e.pageX,r=e.pageY),t?(this.origPageX=n,this.origPageY=r):(i=n-this.origPageX,a=r-this.origPageY),{origEvent:e,isTouch:!0,subjectEl:this.subjectEl,pageX:n,pageY:r,deltaX:i,deltaY:a}}}function Ks(e){Ys&&e.preventDefault()}class Qs{constructor(){this.isVisible=!1,this.sourceEl=null,this.mirrorEl=null,this.sourceElRect=null,this.parentNode=document.body,this.zIndex=9999,this.revertDuration=0}start(e,t,n){this.sourceEl=e,this.sourceElRect=this.sourceEl.getBoundingClientRect(),this.origScreenX=t-window.pageXOffset,this.origScreenY=n-window.pageYOffset,this.deltaX=0,this.deltaY=0,this.updateElPosition()}handleMove(e,t){this.deltaX=e-window.pageXOffset-this.origScreenX,this.deltaY=t-window.pageYOffset-this.origScreenY,this.updateElPosition()}setIsVisible(e){e?this.isVisible||(this.mirrorEl&&(this.mirrorEl.style.display=""),this.isVisible=e,this.updateElPosition()):this.isVisible&&(this.mirrorEl&&(this.mirrorEl.style.display="none"),this.isVisible=e)}stop(e,t){let n=()=>{this.cleanup(),t()};e&&this.mirrorEl&&this.isVisible&&this.revertDuration&&(this.deltaX||this.deltaY)?this.doRevertAnimation(n,this.revertDuration):setTimeout(n,0)}doRevertAnimation(e,t){let n=this.mirrorEl,r=this.sourceEl.getBoundingClientRect();n.style.transition="top "+t+"ms,left "+t+"ms",jt(n,{left:r.left,top:r.top}),function(e,t){let n=r=>{t(r),Nt.forEach((t=>{e.removeEventListener(t,n)}))};Nt.forEach((t=>{e.addEventListener(t,n)}))}(n,(()=>{n.style.transition="",e()}))}cleanup(){this.mirrorEl&&(kt(this.mirrorEl),this.mirrorEl=null),this.sourceEl=null}updateElPosition(){this.sourceEl&&this.isVisible&&jt(this.getMirrorEl(),{left:this.sourceElRect.left+this.deltaX,top:this.sourceElRect.top+this.deltaY})}getMirrorEl(){let e=this.sourceElRect,t=this.mirrorEl;return t||(t=this.mirrorEl=this.sourceEl.cloneNode(!0),t.classList.add("fc-unselectable"),t.classList.add("fc-event-dragging"),jt(t,{position:"fixed",zIndex:this.zIndex,visibility:"",boxSizing:"border-box",width:e.right-e.left,height:e.bottom-e.top,right:"auto",bottom:"auto",margin:0}),this.parentNode.appendChild(t)),t}}class Xs extends Di{constructor(e,t){super(),this.handleScroll=()=>{this.scrollTop=this.scrollController.getScrollTop(),this.scrollLeft=this.scrollController.getScrollLeft(),this.handleScrollChange()},this.scrollController=e,this.doesListening=t,this.scrollTop=this.origScrollTop=e.getScrollTop(),this.scrollLeft=this.origScrollLeft=e.getScrollLeft(),this.scrollWidth=e.getScrollWidth(),this.scrollHeight=e.getScrollHeight(),this.clientWidth=e.getClientWidth(),this.clientHeight=e.getClientHeight(),this.clientRect=this.computeClientRect(),this.doesListening&&this.getEventTarget().addEventListener("scroll",this.handleScroll)}destroy(){this.doesListening&&this.getEventTarget().removeEventListener("scroll",this.handleScroll)}getScrollTop(){return this.scrollTop}getScrollLeft(){return this.scrollLeft}setScrollTop(e){this.scrollController.setScrollTop(e),this.doesListening||(this.scrollTop=Math.max(Math.min(e,this.getMaxScrollTop()),0),this.handleScrollChange())}setScrollLeft(e){this.scrollController.setScrollLeft(e),this.doesListening||(this.scrollLeft=Math.max(Math.min(e,this.getMaxScrollLeft()),0),this.handleScrollChange())}getClientWidth(){return this.clientWidth}getClientHeight(){return this.clientHeight}getScrollWidth(){return this.scrollWidth}getScrollHeight(){return this.scrollHeight}handleScrollChange(){}}class $s extends Xs{constructor(e,t){super(new Ti(e),t)}getEventTarget(){return this.scrollController.el}computeClientRect(){return _i(this.scrollController.el)}}class Js extends Xs{constructor(e){super(new Ri,e)}getEventTarget(){return window}computeClientRect(){return{left:this.scrollLeft,right:this.scrollLeft+this.clientWidth,top:this.scrollTop,bottom:this.scrollTop+this.clientHeight}}handleScrollChange(){this.clientRect=this.computeClientRect()}}const ec="function"==typeof performance?performance.now:Date.now;class tc{constructor(){this.isEnabled=!0,this.scrollQuery=[window,".fc-scroller"],this.edgeThreshold=50,this.maxVelocity=300,this.pointerScreenX=null,this.pointerScreenY=null,this.isAnimating=!1,this.scrollCaches=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.animate=()=>{if(this.isAnimating){let e=this.computeBestEdge(this.pointerScreenX+window.pageXOffset,this.pointerScreenY+window.pageYOffset);if(e){let t=ec();this.handleSide(e,(t-this.msSinceRequest)/1e3),this.requestAnimation(t)}else this.isAnimating=!1}}}start(e,t,n){this.isEnabled&&(this.scrollCaches=this.buildCaches(n),this.pointerScreenX=null,this.pointerScreenY=null,this.everMovedUp=!1,this.everMovedDown=!1,this.everMovedLeft=!1,this.everMovedRight=!1,this.handleMove(e,t))}handleMove(e,t){if(this.isEnabled){let n=e-window.pageXOffset,r=t-window.pageYOffset,o=null===this.pointerScreenY?0:r-this.pointerScreenY,i=null===this.pointerScreenX?0:n-this.pointerScreenX;o<0?this.everMovedUp=!0:o>0&&(this.everMovedDown=!0),i<0?this.everMovedLeft=!0:i>0&&(this.everMovedRight=!0),this.pointerScreenX=n,this.pointerScreenY=r,this.isAnimating||(this.isAnimating=!0,this.requestAnimation(ec()))}}stop(){if(this.isEnabled){this.isAnimating=!1;for(let e of this.scrollCaches)e.destroy();this.scrollCaches=null}}requestAnimation(e){this.msSinceRequest=e,requestAnimationFrame(this.animate)}handleSide(e,t){let{scrollCache:n}=e,{edgeThreshold:r}=this,o=r-e.distance,i=o*o/(r*r)*this.maxVelocity*t,a=1;switch(e.name){case"left":a=-1;case"right":n.setScrollLeft(n.getScrollLeft()+i*a);break;case"top":a=-1;case"bottom":n.setScrollTop(n.getScrollTop()+i*a)}}computeBestEdge(e,t){let{edgeThreshold:n}=this,r=null,o=this.scrollCaches||[];for(let i of o){let o=i.clientRect,a=e-o.left,s=o.right-e,c=t-o.top,u=o.bottom-t;a>=0&&s>=0&&c>=0&&u>=0&&(c<=n&&this.everMovedUp&&i.canScrollUp()&&(!r||r.distance>c)&&(r={scrollCache:i,name:"top",distance:c}),u<=n&&this.everMovedDown&&i.canScrollDown()&&(!r||r.distance>u)&&(r={scrollCache:i,name:"bottom",distance:u}),a<=n&&this.everMovedLeft&&i.canScrollLeft()&&(!r||r.distance>a)&&(r={scrollCache:i,name:"left",distance:a}),s<=n&&this.everMovedRight&&i.canScrollRight()&&(!r||r.distance>s)&&(r={scrollCache:i,name:"right",distance:s}))}return r}buildCaches(e){return this.queryScrollEls(e).map((e=>e===window?new Js(!1):new $s(e,!1)))}queryScrollEls(e){let t=[];for(let n of this.scrollQuery)"object"==typeof n?t.push(n):t.push(...Array.prototype.slice.call(e.getRootNode().querySelectorAll(n)));return t}}class nc extends class{constructor(e,t){this.emitter=new So}destroy(){}setMirrorIsVisible(e){}setMirrorNeedsRevert(e){}setAutoScrollEnabled(e){}}{constructor(e,t){super(e),this.containerEl=e,this.delay=null,this.minDistance=0,this.touchScrollAllowed=!0,this.mirrorNeedsRevert=!1,this.isInteracting=!1,this.isDragging=!1,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,this.delayTimeoutId=null,this.onPointerDown=e=>{var t;this.isDragging||(this.isInteracting=!0,this.isDelayEnded=!1,this.isDistanceSurpassed=!1,(t=document.body).classList.add("fc-unselectable"),t.addEventListener("selectstart",Mt),function(e){e.addEventListener("contextmenu",Mt)}(document.body),e.isTouch||e.origEvent.preventDefault(),this.emitter.trigger("pointerdown",e),this.isInteracting&&!this.pointer.shouldIgnoreMove&&(this.mirror.setIsVisible(!1),this.mirror.start(e.subjectEl,e.pageX,e.pageY),this.startDelay(e),this.minDistance||this.handleDistanceSurpassed(e)))},this.onPointerMove=e=>{if(this.isInteracting){if(this.emitter.trigger("pointermove",e),!this.isDistanceSurpassed){let t,n=this.minDistance,{deltaX:r,deltaY:o}=e;t=r*r+o*o,t>=n*n&&this.handleDistanceSurpassed(e)}this.isDragging&&("scroll"!==e.origEvent.type&&(this.mirror.handleMove(e.pageX,e.pageY),this.autoScroller.handleMove(e.pageX,e.pageY)),this.emitter.trigger("dragmove",e))}},this.onPointerUp=e=>{var t;this.isInteracting&&(this.isInteracting=!1,(t=document.body).classList.remove("fc-unselectable"),t.removeEventListener("selectstart",Mt),function(e){e.removeEventListener("contextmenu",Mt)}(document.body),this.emitter.trigger("pointerup",e),this.isDragging&&(this.autoScroller.stop(),this.tryStopDrag(e)),this.delayTimeoutId&&(clearTimeout(this.delayTimeoutId),this.delayTimeoutId=null))};let n=this.pointer=new Gs(e);n.emitter.on("pointerdown",this.onPointerDown),n.emitter.on("pointermove",this.onPointerMove),n.emitter.on("pointerup",this.onPointerUp),t&&(n.selector=t),this.mirror=new Qs,this.autoScroller=new tc}destroy(){this.pointer.destroy(),this.onPointerUp({})}startDelay(e){"number"==typeof this.delay?this.delayTimeoutId=setTimeout((()=>{this.delayTimeoutId=null,this.handleDelayEnd(e)}),this.delay):this.handleDelayEnd(e)}handleDelayEnd(e){this.isDelayEnded=!0,this.tryStartDrag(e)}handleDistanceSurpassed(e){this.isDistanceSurpassed=!0,this.tryStartDrag(e)}tryStartDrag(e){this.isDelayEnded&&this.isDistanceSurpassed&&(this.pointer.wasTouchScroll&&!this.touchScrollAllowed||(this.isDragging=!0,this.mirrorNeedsRevert=!1,this.autoScroller.start(e.pageX,e.pageY,this.containerEl),this.emitter.trigger("dragstart",e),!1===this.touchScrollAllowed&&this.pointer.cancelTouchScroll()))}tryStopDrag(e){this.mirror.stop(this.mirrorNeedsRevert,this.stopDrag.bind(this,e))}stopDrag(e){this.isDragging=!1,this.emitter.trigger("dragend",e)}setIgnoreMove(e){this.pointer.shouldIgnoreMove=e}setMirrorIsVisible(e){this.mirror.setIsVisible(e)}setMirrorNeedsRevert(e){this.mirrorNeedsRevert=e}setAutoScrollEnabled(e){this.autoScroller.isEnabled=e}}class rc{constructor(e){this.origRect=Ci(e),this.scrollCaches=Ai(e).map((e=>new $s(e,!0)))}destroy(){for(let e of this.scrollCaches)e.destroy()}computeLeft(){let e=this.origRect.left;for(let t of this.scrollCaches)e+=t.origScrollLeft-t.getScrollLeft();return e}computeTop(){let e=this.origRect.top;for(let t of this.scrollCaches)e+=t.origScrollTop-t.getScrollTop();return e}isWithinClipping(e,t){let n={left:e,top:t};for(let e of this.scrollCaches)if(!oc(e.getEventTarget())&&!ui(n,e.clientRect))return!1;return!0}}function oc(e){let t=e.tagName;return"HTML"===t||"BODY"===t}class ic{constructor(e,t){this.useSubjectCenter=!1,this.requireInitial=!0,this.initialHit=null,this.movingHit=null,this.finalHit=null,this.handlePointerDown=e=>{let{dragging:t}=this;this.initialHit=null,this.movingHit=null,this.finalHit=null,this.prepareHits(),this.processFirstCoord(e),this.initialHit||!this.requireInitial?(t.setIgnoreMove(!1),this.emitter.trigger("pointerdown",e)):t.setIgnoreMove(!0)},this.handleDragStart=e=>{this.emitter.trigger("dragstart",e),this.handleMove(e,!0)},this.handleDragMove=e=>{this.emitter.trigger("dragmove",e),this.handleMove(e)},this.handlePointerUp=e=>{this.releaseHits(),this.emitter.trigger("pointerup",e)},this.handleDragEnd=e=>{this.movingHit&&this.emitter.trigger("hitupdate",null,!0,e),this.finalHit=this.movingHit,this.movingHit=null,this.emitter.trigger("dragend",e)},this.droppableStore=t,e.emitter.on("pointerdown",this.handlePointerDown),e.emitter.on("dragstart",this.handleDragStart),e.emitter.on("dragmove",this.handleDragMove),e.emitter.on("pointerup",this.handlePointerUp),e.emitter.on("dragend",this.handleDragEnd),this.dragging=e,this.emitter=new So}processFirstCoord(e){let t,n={left:e.pageX,top:e.pageY},r=n,o=e.subjectEl;var i,a;o instanceof HTMLElement&&(t=Ci(o),i=r,a=t,r={left:Math.min(Math.max(i.left,a.left),a.right),top:Math.min(Math.max(i.top,a.top),a.bottom)});let s=this.initialHit=this.queryHitForOffset(r.left,r.top);if(s){if(this.useSubjectCenter&&t){let e=li(t,s.rect);e&&(r=function(e){return{left:(e.left+e.right)/2,top:(e.top+e.bottom)/2}}(e))}this.coordAdjust=(u=n,{left:(c=r).left-u.left,top:c.top-u.top})}else this.coordAdjust={left:0,top:0};var c,u}handleMove(e,t){let n=this.queryHitForOffset(e.pageX+this.coordAdjust.left,e.pageY+this.coordAdjust.top);!t&&ac(this.movingHit,n)||(this.movingHit=n,this.emitter.trigger("hitupdate",n,!1,e))}prepareHits(){this.offsetTrackers=ir(this.droppableStore,(e=>(e.component.prepareHits(),new rc(e.el))))}releaseHits(){let{offsetTrackers:e}=this;for(let t in e)e[t].destroy();this.offsetTrackers={}}queryHitForOffset(e,t){let{droppableStore:n,offsetTrackers:r}=this,o=null;for(let i in n){let a=n[i].component,s=r[i];if(s&&s.isWithinClipping(e,t)){let n=s.computeLeft(),r=s.computeTop(),c=e-n,u=t-r,{origRect:l}=s,d=l.right-l.left,f=l.bottom-l.top;if(c>=0&&c<d&&u>=0&&u<f){let e=a.queryHit(c,u,d,f);e&&Hr(e.dateProfile.activeRange,e.dateSpan.range)&&(!o||e.layer>o.layer)&&(e.componentId=i,e.context=a.context,e.rect.left+=n,e.rect.right+=n,e.rect.top+=r,e.rect.bottom+=r,o=e)}}}return o}}function ac(e,t){return!e&&!t||Boolean(e)===Boolean(t)&&(n=e.dateSpan,r=t.dateSpan,Lr(n.range,r.range)&&n.allDay===r.allDay&&function(e,t){for(let n in t)if("range"!==n&&"allDay"!==n&&e[n]!==t[n])return!1;for(let n in e)if(!(n in t))return!1;return!0}(n,r));var n,r}function sc(e,t){let n={};for(let r of t.pluginHooks.datePointTransforms)Object.assign(n,r(e,t));var r,o;return Object.assign(n,(r=e,{date:(o=t.dateEnv).toDate(r.range.start),dateStr:o.formatIso(r.range.start,{omitTime:r.allDay}),allDay:r.allDay})),n}class cc extends ii{constructor(e){super(e),this.subjectEl=null,this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let t=e.origEvent.target,{component:n,dragging:r}=this,{mirror:o}=r,{options:i}=n.context,a=n.context;this.subjectEl=e.subjectEl;let s=this.subjectSeg=Fo(e.subjectEl),c=(this.eventRange=s.eventRange).instance.instanceId;this.relevantEvents=ao(a.getCurrentData().eventStore,c),r.minDistance=e.isTouch?0:i.eventDragMinDistance,r.delay=e.isTouch&&c!==n.props.eventSelection?function(e){let{options:t}=e.context,n=t.eventLongPressDelay;null==n&&(n=t.longPressDelay);return n}(n):null,i.fixedMirrorParent?o.parentNode=i.fixedMirrorParent:o.parentNode=_t(t,".fc"),o.revertDuration=i.dragRevertDuration;let u=n.isValidSegDownEl(t)&&!_t(t,".fc-event-resizer");r.setIgnoreMove(!u),this.isDragging=u&&e.subjectEl.classList.contains("fc-event-draggable")},this.handleDragStart=e=>{let t=this.component.context,n=this.eventRange,r=n.instance.instanceId;e.isTouch?r!==this.component.props.eventSelection&&t.dispatch({type:"SELECT_EVENT",eventInstanceId:r}):t.dispatch({type:"UNSELECT_EVENT"}),this.isDragging&&(t.calendarApi.unselect(e),t.emitter.trigger("eventDragStart",{el:this.subjectEl,event:new Ro(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi}))},this.handleHitUpdate=(e,t)=>{if(!this.isDragging)return;let n=this.relevantEvents,r=this.hitDragging.initialHit,o=this.component.context,i=null,a=null,s=null,c=!1,u={affectedEvents:n,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){i=e.context;let t=i.options;o===i||t.editable&&t.droppable?(a=function(e,t,n){let r=e.dateSpan,o=t.dateSpan,i=r.range.start,a=o.range.start,s={};r.allDay!==o.allDay&&(s.allDay=o.allDay,s.hasEnd=t.context.options.allDayMaintainDuration,o.allDay&&(i=mn(i)));let c=Vr(i,a,e.context.dateEnv,e.componentId===t.componentId?e.largeUnit:null);c.milliseconds&&(s.allDay=!1);let u={datesDelta:c,standardProps:s};for(let r of n)r(u,e,t);return u}(r,e,i.getCurrentData().pluginHooks.eventDragMutationMassagers),a&&(s=Po(n,i.getCurrentData().eventUiBases,a,i),u.mutatedEvents=s,Vi(u,e.dateProfile,i)||(c=!0,a=null,s=null,u.mutatedEvents={defs:{},instances:{}}))):i=null}this.displayDrag(i,u),c?Ut():Wt(),t||(o===i&&ac(r,e)&&(a=null),this.dragging.setMirrorNeedsRevert(!a),this.dragging.setMirrorIsVisible(!e||!this.subjectEl.getRootNode().querySelector(".fc-event-mirror")),this.receivingContext=i,this.validMutation=a,this.mutatedRelevantEvents=s)},this.handlePointerUp=()=>{this.isDragging||this.cleanup()},this.handleDragEnd=e=>{if(this.isDragging){let t=this.component.context,n=t.viewApi,{receivingContext:r,validMutation:o}=this,i=this.eventRange.def,a=this.eventRange.instance,s=new Ro(t,i,a),c=this.relevantEvents,u=this.mutatedRelevantEvents,{finalHit:l}=this.hitDragging;if(this.clearDrag(),t.emitter.trigger("eventDragStop",{el:this.subjectEl,event:s,jsEvent:e.origEvent,view:n}),o){if(r===t){let r=new Ro(t,u.defs[i.defId],a?u.instances[a.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:u});let l={oldEvent:s,event:r,relatedEvents:Mo(u,t,a),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:c})}},d={};for(let e of t.getCurrentData().pluginHooks.eventDropTransformers)Object.assign(d,e(o,t));t.emitter.trigger("eventDrop",Object.assign(Object.assign(Object.assign({},l),d),{el:e.subjectEl,delta:o.datesDelta,jsEvent:e.origEvent,view:n})),t.emitter.trigger("eventChange",l)}else if(r){let o={event:s,relatedEvents:Mo(c,t,a),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:c})}};t.emitter.trigger("eventLeave",Object.assign(Object.assign({},o),{draggedEl:e.subjectEl,view:n})),t.dispatch({type:"REMOVE_EVENTS",eventStore:c}),t.emitter.trigger("eventRemove",o);let d=u.defs[i.defId],f=u.instances[a.instanceId],p=new Ro(r,d,f);r.dispatch({type:"MERGE_EVENTS",eventStore:u});let h={event:p,relatedEvents:Mo(u,r,f),revert(){r.dispatch({type:"REMOVE_EVENTS",eventStore:u})}};r.emitter.trigger("eventAdd",h),e.isTouch&&r.dispatch({type:"SELECT_EVENT",eventInstanceId:a.instanceId}),r.emitter.trigger("drop",Object.assign(Object.assign({},sc(l.dateSpan,r)),{draggedEl:e.subjectEl,jsEvent:e.origEvent,view:l.context.viewApi})),r.emitter.trigger("eventReceive",Object.assign(Object.assign({},h),{draggedEl:e.subjectEl,view:l.context.viewApi}))}}else t.emitter.trigger("_noEventDrop")}this.cleanup()};let{component:t}=this,{options:n}=t.context,r=this.dragging=new nc(e.el);r.pointer.selector=cc.SELECTOR,r.touchScrollAllowed=!1,r.autoScroller.isEnabled=n.dragScroll;let o=this.hitDragging=new ic(this.dragging,si);o.useSubjectCenter=e.useEventCenter,o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("pointerup",this.handlePointerUp),o.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}displayDrag(e,t){let n=this.component.context,r=this.receivingContext;r&&r!==e&&(r===n?r.dispatch({type:"SET_EVENT_DRAG",state:{affectedEvents:t.affectedEvents,mutatedEvents:{defs:{},instances:{}},isEvent:!0}}):r.dispatch({type:"UNSET_EVENT_DRAG"})),e&&e.dispatch({type:"SET_EVENT_DRAG",state:t})}clearDrag(){let e=this.component.context,{receivingContext:t}=this;t&&t.dispatch({type:"UNSET_EVENT_DRAG"}),e!==t&&e.dispatch({type:"UNSET_EVENT_DRAG"})}cleanup(){this.subjectSeg=null,this.isDragging=!1,this.eventRange=null,this.relevantEvents=null,this.receivingContext=null,this.validMutation=null,this.mutatedRelevantEvents=null}}cc.SELECTOR=".fc-event-draggable, .fc-event-resizable";const uc={fixedMirrorParent:tr},lc={dateClick:tr,eventDragStart:tr,eventDragStop:tr,eventDrop:tr,eventResizeStart:tr,eventResizeStop:tr,eventResize:tr,drop:tr,eventReceive:tr,eventLeave:tr};Hi.dataAttrPrefix="";var dc=Fa({name:"@fullcalendar/interaction",componentInteractions:[class extends ii{constructor(e){super(e),this.handlePointerDown=e=>{let{dragging:t}=this,n=e.origEvent.target;t.setIgnoreMove(!this.component.isValidDateDownEl(n))},this.handleDragEnd=e=>{let{component:t}=this,{pointer:n}=this.dragging;if(!n.wasTouchScroll){let{initialHit:n,finalHit:r}=this.hitDragging;if(n&&r&&ac(n,r)){let{context:r}=t,o=Object.assign(Object.assign({},sc(n.dateSpan,r)),{dayEl:n.dayEl,jsEvent:e.origEvent,view:r.viewApi||r.calendarApi.view});r.emitter.trigger("dateClick",o)}}},this.dragging=new nc(e.el),this.dragging.autoScroller.isEnabled=!1;let t=this.hitDragging=new ic(this.dragging,ai(e));t.emitter.on("pointerdown",this.handlePointerDown),t.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}},class extends ii{constructor(e){super(e),this.dragSelection=null,this.handlePointerDown=e=>{let{component:t,dragging:n}=this,{options:r}=t.context,o=r.selectable&&t.isValidDateDownEl(e.origEvent.target);n.setIgnoreMove(!o),n.delay=e.isTouch?function(e){let{options:t}=e.context,n=t.selectLongPressDelay;null==n&&(n=t.longPressDelay);return n}(t):null},this.handleDragStart=e=>{this.component.context.calendarApi.unselect(e)},this.handleHitUpdate=(e,t)=>{let{context:n}=this.component,r=null,o=!1;if(e){let t=this.hitDragging.initialHit;e.componentId===t.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(t,e)||(r=function(e,t,n){let r=e.dateSpan,o=t.dateSpan,i=[r.range.start,r.range.end,o.range.start,o.range.end];i.sort(Qt);let a={};for(let r of n){let n=r(e,t);if(!1===n)return null;n&&Object.assign(a,n)}return a.range={start:i[0],end:i[3]},a.allDay=r.allDay,a}(t,e,n.pluginHooks.dateSelectionTransformers)),r&&function(e,t,n){return!!Hr(t.validRange,e.range)&&qi({dateSelection:e},n)}(r,e.dateProfile,n)||(o=!0,r=null)}r?n.dispatch({type:"SELECT_DATES",selection:r}):t||n.dispatch({type:"UNSELECT_DATES"}),o?Ut():Wt(),t||(this.dragSelection=r)},this.handlePointerUp=e=>{this.dragSelection&&(_o(this.dragSelection,e,this.component.context),this.dragSelection=null)};let{component:t}=e,{options:n}=t.context,r=this.dragging=new nc(e.el);r.touchScrollAllowed=!1,r.minDistance=n.selectMinDistance||0,r.autoScroller.isEnabled=n.dragScroll;let o=this.hitDragging=new ic(this.dragging,ai(e));o.emitter.on("pointerdown",this.handlePointerDown),o.emitter.on("dragstart",this.handleDragStart),o.emitter.on("hitupdate",this.handleHitUpdate),o.emitter.on("pointerup",this.handlePointerUp)}destroy(){this.dragging.destroy()}},cc,class extends ii{constructor(e){super(e),this.draggingSegEl=null,this.draggingSeg=null,this.eventRange=null,this.relevantEvents=null,this.validMutation=null,this.mutatedRelevantEvents=null,this.handlePointerDown=e=>{let{component:t}=this,n=Fo(this.querySegEl(e)),r=this.eventRange=n.eventRange;this.dragging.minDistance=t.context.options.eventDragMinDistance,this.dragging.setIgnoreMove(!this.component.isValidSegDownEl(e.origEvent.target)||e.isTouch&&this.component.props.eventSelection!==r.instance.instanceId)},this.handleDragStart=e=>{let{context:t}=this.component,n=this.eventRange;this.relevantEvents=ao(t.getCurrentData().eventStore,this.eventRange.instance.instanceId);let r=this.querySegEl(e);this.draggingSegEl=r,this.draggingSeg=Fo(r),t.calendarApi.unselect(),t.emitter.trigger("eventResizeStart",{el:r,event:new Ro(t,n.def,n.instance),jsEvent:e.origEvent,view:t.viewApi})},this.handleHitUpdate=(e,t,n)=>{let{context:r}=this.component,o=this.relevantEvents,i=this.hitDragging.initialHit,a=this.eventRange.instance,s=null,c=null,u=!1,l={affectedEvents:o,mutatedEvents:{defs:{},instances:{}},isEvent:!0};if(e){e.componentId===i.componentId&&this.isHitComboAllowed&&!this.isHitComboAllowed(i,e)||(s=function(e,t,n,r){let o=e.context.dateEnv,i=e.dateSpan.range.start,a=t.dateSpan.range.start,s=Vr(i,a,o,e.largeUnit);if(n){if(o.add(r.start,s)<r.end)return{startDelta:s}}else if(o.add(r.end,s)>r.start)return{endDelta:s};return null}(i,e,n.subjectEl.classList.contains("fc-event-resizer-start"),a.range))}s&&(c=Po(o,r.getCurrentData().eventUiBases,s,r),l.mutatedEvents=c,Vi(l,e.dateProfile,r)||(u=!0,s=null,c=null,l.mutatedEvents=null)),c?r.dispatch({type:"SET_EVENT_RESIZE",state:l}):r.dispatch({type:"UNSET_EVENT_RESIZE"}),u?Ut():Wt(),t||(s&&ac(i,e)&&(s=null),this.validMutation=s,this.mutatedRelevantEvents=c)},this.handleDragEnd=e=>{let{context:t}=this.component,n=this.eventRange.def,r=this.eventRange.instance,o=new Ro(t,n,r),i=this.relevantEvents,a=this.mutatedRelevantEvents;if(t.emitter.trigger("eventResizeStop",{el:this.draggingSegEl,event:o,jsEvent:e.origEvent,view:t.viewApi}),this.validMutation){let s=new Ro(t,a.defs[n.defId],r?a.instances[r.instanceId]:null);t.dispatch({type:"MERGE_EVENTS",eventStore:a});let c={oldEvent:o,event:s,relatedEvents:Mo(a,t,r),revert(){t.dispatch({type:"MERGE_EVENTS",eventStore:i})}};t.emitter.trigger("eventResize",Object.assign(Object.assign({},c),{el:this.draggingSegEl,startDelta:this.validMutation.startDelta||tn(0),endDelta:this.validMutation.endDelta||tn(0),jsEvent:e.origEvent,view:t.viewApi})),t.emitter.trigger("eventChange",c)}else t.emitter.trigger("_noEventResize");this.draggingSeg=null,this.relevantEvents=null,this.validMutation=null};let{component:t}=e,n=this.dragging=new nc(e.el);n.pointer.selector=".fc-event-resizer",n.touchScrollAllowed=!1,n.autoScroller.isEnabled=t.context.options.dragScroll;let r=this.hitDragging=new ic(this.dragging,ai(e));r.emitter.on("pointerdown",this.handlePointerDown),r.emitter.on("dragstart",this.handleDragStart),r.emitter.on("hitupdate",this.handleHitUpdate),r.emitter.on("dragend",this.handleDragEnd)}destroy(){this.dragging.destroy()}querySegEl(e){return _t(e.subjectEl,".fc-event")}}],calendarInteractions:[class{constructor(e){this.context=e,this.isRecentPointerDateSelect=!1,this.matchesCancel=!1,this.matchesEvent=!1,this.onSelect=e=>{e.jsEvent&&(this.isRecentPointerDateSelect=!0)},this.onDocumentPointerDown=e=>{let t=this.context.options.unselectCancel,n=Tt(e.origEvent);this.matchesCancel=!!_t(n,t),this.matchesEvent=!!_t(n,cc.SELECTOR)},this.onDocumentPointerUp=e=>{let{context:t}=this,{documentPointer:n}=this,r=t.getCurrentData();if(!n.wasTouchScroll){if(r.dateSelection&&!this.isRecentPointerDateSelect){let n=t.options.unselectAuto;!n||n&&this.matchesCancel||t.calendarApi.unselect(e)}r.eventSelection&&!this.matchesEvent&&t.dispatch({type:"UNSELECT_EVENT"})}this.isRecentPointerDateSelect=!1};let t=this.documentPointer=new Gs(document);t.shouldIgnoreMove=!0,t.shouldWatchScroll=!1,t.emitter.on("pointerdown",this.onDocumentPointerDown),t.emitter.on("pointerup",this.onDocumentPointerUp),e.emitter.on("select",this.onSelect)}destroy(){this.context.emitter.off("select",this.onSelect),this.documentPointer.destroy()}}],elementDraggingImpl:nc,optionRefiners:uc,listenerRefiners:lc});function fc(e){let t=e.scrollLeft;if("rtl"===window.getComputedStyle(e).direction)switch(mc()){case"negative":t*=-1;case"reverse":t=e.scrollWidth-t-e.clientWidth}return t}function pc(e,t){if("rtl"===window.getComputedStyle(e).direction)switch(mc()){case"reverse":t=e.scrollWidth-t;break;case"negative":t=-(e.scrollWidth-t)}e.scrollLeft=t}let hc;function mc(){return hc||(hc=function(){let 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 kt(t),e}())}class gc{constructor(e,t){this.scrollEl=e,this.isRtl=t,this.updateSize=()=>{let{scrollEl:e}=this,t=At(e,".fc-sticky");!function(e,t,n){e.forEach(((e,r)=>{let o,{textAlign:i,elWidth:a,parentBound:s}=t[r],c=s.right-s.left;o="center"===i&&c>n?(n-a)/2:"",jt(e,{left:o,right:o,top:0})}))}(t,this.queryElGeoms(t),e.clientWidth)}}queryElGeoms(e){let{scrollEl:t,isRtl:n}=this,r=function(e){let t=e.getBoundingClientRect(),n=ki(e);return{left:t.left+n.borderLeft+n.scrollbarLeft-fc(e),top:t.top+n.borderTop-e.scrollTop}}(t),o=[];for(let t of e){let e=di(_i(t.parentNode,!0,!0),-r.left,-r.top),i=t.getBoundingClientRect(),a=window.getComputedStyle(t),s=window.getComputedStyle(t.parentNode).textAlign,c=null;"start"===s?s=n?"right":"left":"end"===s&&(s=n?"left":"right"),"sticky"!==a.position&&(c=di(i,-r.left-(parseFloat(a.left)||0),-r.top-(parseFloat(a.top)||0))),o.push({parentBound:e,naturalBound:c,elWidth:i.width,elHeight:i.height,textAlign:s})}return o}}class vc extends kr{constructor(){super(...arguments),this.elRef={current:null},this.state={xScrollbarWidth:0,yScrollbarWidth:0},this.handleScroller=e=>{this.scroller=e,_r(this.props.scrollerRef,e)},this.handleSizing=()=>{let{props:e}=this;"scroll-hidden"===e.overflowY&&this.setState({yScrollbarWidth:this.scroller.getYScrollbarWidth()}),"scroll-hidden"===e.overflowX&&this.setState({xScrollbarWidth:this.scroller.getXScrollbarWidth()})}}render(){let{props:e,state:t,context:n}=this,r=n.isRtl&&xi(),o=0,i=0,a=0;return"scroll-hidden"===e.overflowX&&(a=t.xScrollbarWidth),"scroll-hidden"===e.overflowY&&null!=t.yScrollbarWidth&&(r?o=t.yScrollbarWidth:i=t.yScrollbarWidth),ce("div",{ref:this.elRef,className:"fc-scroller-harness"+(e.liquid?" fc-scroller-harness-liquid":"")},ce(Ji,{ref:this.handleScroller,elRef:this.props.scrollerElRef,overflowX:"scroll-hidden"===e.overflowX?"scroll":e.overflowX,overflowY:"scroll-hidden"===e.overflowY?"scroll":e.overflowY,overcomeLeft:o,overcomeRight:i,overcomeBottom:a,maxHeight:"number"==typeof e.maxHeight?e.maxHeight+("scroll-hidden"===e.overflowX?t.xScrollbarWidth:0):"",liquid:e.liquid,liquidIsAbsolute:!0},e.children))}componentDidMount(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(e){cr(e,this.props)||this.handleSizing()}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing)}needsXScrolling(){return this.scroller.needsXScrolling()}needsYScrolling(){return this.scroller.needsYScrolling()}}const yc="wheel mousewheel DomMouseScroll MozMousePixelScroll".split(" ");class bc{constructor(e){this.el=e,this.emitter=new So,this.isScrolling=!1,this.isTouching=!1,this.isRecentlyWheeled=!1,this.isRecentlyScrolled=!1,this.wheelWaiter=new Et(this._handleWheelWaited.bind(this)),this.scrollWaiter=new Et(this._handleScrollWaited.bind(this)),this.handleScroll=()=>{this.startScroll(),this.emitter.trigger("scroll",this.isRecentlyWheeled,this.isTouching),this.isRecentlyScrolled=!0,this.scrollWaiter.request(500)},this.handleWheel=()=>{this.isRecentlyWheeled=!0,this.wheelWaiter.request(500)},this.handleTouchStart=()=>{this.isTouching=!0},this.handleTouchEnd=()=>{this.isTouching=!1,this.isRecentlyScrolled||this.endScroll()},e.addEventListener("scroll",this.handleScroll),e.addEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.addEventListener("touchend",this.handleTouchEnd);for(let t of yc)e.addEventListener(t,this.handleWheel)}destroy(){let{el:e}=this;e.removeEventListener("scroll",this.handleScroll),e.removeEventListener("touchstart",this.handleTouchStart,{passive:!0}),e.removeEventListener("touchend",this.handleTouchEnd);for(let t of yc)e.removeEventListener(t,this.handleWheel)}startScroll(){this.isScrolling||(this.isScrolling=!0,this.emitter.trigger("scrollStart",this.isRecentlyWheeled,this.isTouching))}endScroll(){this.isScrolling&&(this.emitter.trigger("scrollEnd"),this.isScrolling=!1,this.isRecentlyScrolled=!0,this.isRecentlyWheeled=!1,this.scrollWaiter.clear(),this.wheelWaiter.clear())}_handleScrollWaited(){this.isRecentlyScrolled=!1,this.isTouching||this.endScroll()}_handleWheelWaited(){this.isRecentlyWheeled=!1}}class wc{constructor(e,t){this.isVertical=e,this.scrollEls=t,this.isPaused=!1,this.scrollListeners=t.map((e=>this.bindScroller(e)))}destroy(){for(let e of this.scrollListeners)e.destroy()}bindScroller(e){let{scrollEls:t,isVertical:n}=this,r=new bc(e);return r.emitter.on("scroll",((r,o)=>{if(!this.isPaused&&((!this.masterEl||this.masterEl!==e&&(r||o))&&this.assignMaster(e),this.masterEl===e))for(let r of t)r!==e&&(n?r.scrollTop=e.scrollTop:r.scrollLeft=e.scrollLeft)})),r.emitter.on("scrollEnd",(()=>{this.masterEl===e&&(this.masterEl=null)})),r}assignMaster(e){this.masterEl=e;for(let t of this.scrollListeners)t.el!==e&&t.endScroll()}forceScrollLeft(e){this.isPaused=!0;for(let t of this.scrollListeners)pc(t.el,e);this.isPaused=!1}forceScrollTop(e){this.isPaused=!0;for(let t of this.scrollListeners)t.el.scrollTop=e;this.isPaused=!1}}Hi.SCROLLGRID_RESIZE_INTERVAL=500;class Oc extends kr{constructor(){super(...arguments),this.compileColGroupStats=Pn(kc,Ac),this.renderMicroColGroups=Pn(aa),this.clippedScrollerRefs=new ea,this.scrollerElRefs=new ea(this._handleScrollerEl.bind(this)),this.chunkElRefs=new ea(this._handleChunkEl.bind(this)),this.scrollSyncersBySection={},this.scrollSyncersByColumn={},this.rowUnstableMap=new Map,this.rowInnerMaxHeightMap=new Map,this.anyRowHeightsChanged=!1,this.recentSizingCnt=0,this.state={shrinkWidths:[],forceYScrollbars:!1,forceXScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{},sectionRowMaxHeights:[]},this.handleSizing=(e,t)=>{if(!this.allowSizing())return;t||(this.anyRowHeightsChanged=!0);let n={};(e||!t&&!this.rowUnstableMap.size)&&(n.sectionRowMaxHeights=this.computeSectionRowMaxHeights()),this.setState(Object.assign(Object.assign({shrinkWidths:this.computeShrinkWidths()},this.computeScrollerDims()),n),(()=>{this.rowUnstableMap.size||this.updateStickyScrolling()}))},this.handleRowHeightChange=(e,t)=>{let{rowUnstableMap:n,rowInnerMaxHeightMap:r}=this;if(t){n.delete(e);let t=Sc(e);r.has(e)&&r.get(e)===t||(r.set(e,t),this.anyRowHeightsChanged=!0),!n.size&&this.anyRowHeightsChanged&&(this.anyRowHeightsChanged=!1,this.setState({sectionRowMaxHeights:this.computeSectionRowMaxHeights()}))}else n.set(e,!0)}}render(){let{props:e,state:t,context:n}=this,{shrinkWidths:r}=t,o=this.compileColGroupStats(e.colGroups.map((e=>[e]))),i=this.renderMicroColGroups(o.map(((e,t)=>[e.cols,r[t]]))),a=ua(e.liquid,n);this.getDims();let s,c=e.sections,u=c.length,l=0,d=[],f=[],p=[];for(;l<u&&"header"===(s=c[l]).type;)d.push(this.renderSection(s,l,o,i,t.sectionRowMaxHeights,!0)),l+=1;for(;l<u&&"body"===(s=c[l]).type;)f.push(this.renderSection(s,l,o,i,t.sectionRowMaxHeights,!1)),l+=1;for(;l<u&&"footer"===(s=c[l]).type;)p.push(this.renderSection(s,l,o,i,t.sectionRowMaxHeights,!0)),l+=1;const h=!ri(),m={role:"rowgroup"};return ce("table",{ref:e.elRef,role:"grid",className:a.join(" ")},function(e,t){let n=e.map(((e,n)=>{let r=e.width;return"shrink"===r&&(r=e.totalColWidth+sa(t[n])+1),ce("col",{style:{width:r}})}));return ce("colgroup",{},...n)}(o,r),Boolean(!h&&d.length)&&ce("thead",m,...d),Boolean(!h&&f.length)&&ce("tbody",m,...f),Boolean(!h&&p.length)&&ce("tfoot",m,...p),h&&ce("tbody",m,...d,...f,...p))}renderSection(e,t,n,r,o,i){return"outerContent"in e?ce(le,{key:e.key},e.outerContent):ce("tr",{key:e.key,role:"presentation",className:la(e,this.props.liquid).join(" ")},e.chunks.map(((a,s)=>this.renderChunk(e,t,n[s],r[s],a,s,(o[t]||[])[s]||[],i))))}renderChunk(e,t,n,r,o,i,a,s){if("outerContent"in o)return ce(le,{key:o.key},o.outerContent);let{state:c}=this,{scrollerClientWidths:u,scrollerClientHeights:l}=c,[d,f]=this.getDims(),p=t*f+i,h=i===(!this.context.isRtl||xi()?f-1:0),m=t===d-1,g=m&&c.forceXScrollbars,v=h&&c.forceYScrollbars,y=n&&n.allowXScrolling,b=ra(this.props,e),w=na(this.props,e),O=e.expandRows&&w,x=oa(e,o,{tableColGroupNode:r,tableMinWidth:n&&n.totalColMinWidth||"",clientWidth:void 0!==u[p]?u[p]:null,clientHeight:void 0!==l[p]?l[p]:null,expandRows:O,syncRowHeights:Boolean(e.syncRowHeights),rowSyncHeights:a,reportRowHeightChange:this.handleRowHeightChange},s),S=g?m?"scroll":"scroll-hidden":y?m?"auto":"scroll-hidden":"hidden",E=v?h?"scroll":"scroll-hidden":b?h?"auto":"scroll-hidden":"hidden";return x=ce(vc,{ref:this.clippedScrollerRefs.createRef(p),scrollerElRef:this.scrollerElRefs.createRef(p),overflowX:S,overflowY:E,liquid:w,maxHeight:e.maxHeight},x),ce(s?"th":"td",{key:o.key,ref:this.chunkElRefs.createRef(p),role:"presentation"},x)}componentDidMount(){this.getStickyScrolling=Pn(Dc),this.getScrollSyncersBySection=jn(Pc.bind(this,!0),null,jc),this.getScrollSyncersByColumn=jn(Pc.bind(this,!1),null,jc),this.updateScrollSyncers(),this.handleSizing(!1),this.context.addResizeHandler(this.handleSizing)}componentDidUpdate(e,t){this.updateScrollSyncers(),this.handleSizing(!1,t.sectionRowMaxHeights!==this.state.sectionRowMaxHeights)}componentWillUnmount(){this.context.removeResizeHandler(this.handleSizing),this.destroyScrollSyncers()}allowSizing(){let e=new Date;return!this.lastSizingDate||e.valueOf()>this.lastSizingDate.valueOf()+Hi.SCROLLGRID_RESIZE_INTERVAL?(this.lastSizingDate=e,this.recentSizingCnt=0,!0):(this.recentSizingCnt+=1)<=10}computeShrinkWidths(){let e=this.compileColGroupStats(this.props.colGroups.map((e=>[e]))),[t,n]=this.getDims(),r=t*n,o=[];return e.forEach(((e,t)=>{if(e.hasShrinkCol){let e=this.chunkElRefs.collect(t,r,n);o[t]=ta(e)}})),o}computeSectionRowMaxHeights(){let e=new Map,[t,n]=this.getDims(),r=[];for(let o=0;o<t;o+=1){let t=this.props.sections[o],i=[];if(t&&t.syncRowHeights){let r=[];for(let t=0;t<n;t+=1){let i=o*n+t,a=[],s=this.chunkElRefs.currentMap[i];a=s?At(s,".fc-scrollgrid-sync-table tr").map((t=>{let n=Sc(t);return e.set(t,n),n})):[],r.push(a)}let a=r[0].length,s=!0;for(let e=1;e<n;e+=1){if(!(t.chunks[e]&&void 0!==t.chunks[e].outerContent)&&r[e].length!==a){s=!1;break}}if(s){for(let e=0;e<n;e+=1)i.push([]);for(let e=0;e<a;e+=1){let t=[];for(let o=0;o<n;o+=1){let n=r[o][e];null!=n&&t.push(n)}let o=Math.max(...t);for(let e=0;e<n;e+=1)i[e].push(o)}}else{let e=[];for(let t=0;t<n;t+=1)e.push(xc(r[t])+r[t].length);let t=Math.max(...e);for(let e=0;e<n;e+=1){let n=r[e].length,o=t-n,a=Math.floor(o/n),s=o-a*(n-1),c=[],u=0;for(u<n&&(c.push(s),u+=1);u<n;)c.push(a),u+=1;i.push(c)}}}r.push(i)}return this.rowInnerMaxHeightMap=e,r}computeScrollerDims(){let e=Si(),[t,n]=this.getDims(),r=!this.context.isRtl||xi()?n-1:0,o=t-1,i=this.clippedScrollerRefs.currentMap,a=this.scrollerElRefs.currentMap,s=!1,c=!1,u={},l={};for(let e=0;e<t;e+=1){let t=i[e*n+r];if(t&&t.needsYScrolling()){s=!0;break}}for(let e=0;e<n;e+=1){let t=i[o*n+e];if(t&&t.needsXScrolling()){c=!0;break}}for(let i=0;i<t;i+=1)for(let t=0;t<n;t+=1){let d=i*n+t,f=a[d];if(f){let n=f.parentNode;u[d]=Math.floor(n.getBoundingClientRect().width-(t===r&&s?e.y:0)),l[d]=Math.floor(n.getBoundingClientRect().height-(i===o&&c?e.x:0))}}return{forceYScrollbars:s,forceXScrollbars:c,scrollerClientWidths:u,scrollerClientHeights:l}}updateStickyScrolling(){let{isRtl:e}=this.context,t=this.scrollerElRefs.getAll().map((t=>[t,e]));this.getStickyScrolling(t).forEach((e=>e.updateSize()))}updateScrollSyncers(){let[e,t]=this.getDims(),n=e*t,r={},o={},i=this.scrollerElRefs.currentMap;for(let n=0;n<e;n+=1){let e=n*t,o=e+t;r[n]=pr(i,e,o,1)}for(let e=0;e<t;e+=1)o[e]=this.scrollerElRefs.collect(e,n,t);this.scrollSyncersBySection=this.getScrollSyncersBySection(r),this.scrollSyncersByColumn=this.getScrollSyncersByColumn(o)}destroyScrollSyncers(){ir(this.scrollSyncersBySection,jc),ir(this.scrollSyncersByColumn,jc)}getChunkConfigByIndex(e){let t=this.getDims()[1],n=Math.floor(e/t),r=e%t,o=this.props.sections[n];return o&&o.chunks[r]}forceScrollLeft(e,t){let n=this.scrollSyncersByColumn[e];n&&n.forceScrollLeft(t)}forceScrollTop(e,t){let n=this.scrollSyncersBySection[e];n&&n.forceScrollTop(t)}_handleChunkEl(e,t){let n=this.getChunkConfigByIndex(parseInt(t,10));n&&_r(n.elRef,e)}_handleScrollerEl(e,t){let n=this.getChunkConfigByIndex(parseInt(t,10));n&&_r(n.scrollerElRef,e)}getDims(){let e=this.props.sections.length;return[e,e?this.props.sections[0].chunks.length:0]}}function xc(e){let t=0;for(let n of e)t+=n;return t}function Sc(e){let t=At(e,".fc-scrollgrid-sync-inner").map(Ec);return t.length?Math.max(...t):0}function Ec(e){return e.offsetHeight}function kc(e){let t=_c(e.cols,"width"),n=_c(e.cols,"minWidth"),r=ca(e.cols);return{hasShrinkCol:r,totalColWidth:t,totalColMinWidth:n,allowXScrolling:"shrink"!==e.width&&Boolean(t||n||r),cols:e.cols,width:e.width}}function _c(e,t){let n=0;for(let r of e){let e=r[t];"number"==typeof e&&(n+=e*(r.span||1))}return n}Oc.addStateEquality({shrinkWidths:un,scrollerClientWidths:cr,scrollerClientHeights:cr});const Cc={cols:ia};function Ac(e,t){return dr(e,t,Cc)}function Pc(e,...t){return new wc(e,t)}function jc(e){e.destroy()}function Dc(e,t){return new gc(e,t)}Hi.MAX_TIMELINE_SLOTS=1e3;const Tc=[{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 Rc(e,t,n,r){let o={labelInterval:n.slotLabelInterval,slotDuration:n.slotDuration};!function(e,t,n){const{currentRange:r}=t;if(e.labelInterval){n.countDurationsBetween(r.start,r.end,e.labelInterval)>Hi.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)>Hi.MAX_TIMELINE_SLOTS&&(console.warn("slotDuration results in too many cells"),e.slotDuration=null)}if(e.labelInterval&&e.slotDuration){const t=sn(e.labelInterval,e.slotDuration);(null===t||t<1)&&(console.warn("slotLabelInterval must be a multiple of slotDuration"),e.slotDuration=null)}}(o,e,t),Ic(o,e,t),function(e,t,n){const{currentRange:r}=t;let{slotDuration:o}=e;if(!o){const i=Ic(e,t,n);for(let e of Tc){const t=tn(e),n=sn(i,t);if(null!==n&&n>1&&n<=6){o=t;break}}if(o){n.countDurationsBetween(r.start,r.end,o)>200&&(o=null)}o||(o=i),e.slotDuration=o}}(o,e,t);let i=n.slotLabelFormat,a=Array.isArray(i)?i:null!=i?[i]:function(e,t,n,r){let o,i;const{labelInterval:a}=e;let s=cn(a).unit;const c=r.weekNumbers;let u=o=i=null;"week"!==s||c||(s="day");switch(s){case"year":u={year:"numeric"};break;case"month":Nc("years",t,n)>1&&(u={year:"numeric"}),o={month:"short"};break;case"week":Nc("years",t,n)>1&&(u={year:"numeric"}),o={week:"narrow"};break;case"day":Nc("years",t,n)>1?u={year:"numeric",month:"long"}:Nc("months",t,n)>1&&(u={month:"long"}),c&&(o={week:"short"}),i={weekday:"narrow",day:"numeric"};break;case"hour":c&&(u={week:"short"}),Nc("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":an(a)/6e4/60>=6?(u={hour:"numeric",meridiem:"short"},o=e=>":"+Gt(e.date.minute,2)):u={hour:"numeric",minute:"numeric",meridiem:"short"};break;case"second":(function(e){return an(e)/1e3})(a)/60>=6?(u={hour:"numeric",minute:"2-digit",meridiem:"lowercase"},o=e=>":"+Gt(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=e=>"."+Gt(e.millisecond,3)}return[].concat(u||[],o||[],i||[])}(o,e,t,n);o.headerFormats=a.map((e=>zn(e))),o.isTimeScale=Boolean(o.slotDuration.milliseconds);let s=null;if(!o.isTimeScale){const e=cn(o.slotDuration).unit;/year|month|week/.test(e)&&(s=e)}o.largeUnit=s,o.emphasizeWeeks=1===rn(o.slotDuration)&&Nc("weeks",e,t)>=2&&!n.businessHours;let c,u,l=n.snapDuration;l&&(c=tn(l),u=sn(o.slotDuration,c)),null==u&&(c=o.slotDuration,u=1),o.snapDuration=c,o.snapsPerSlot=u;let d=an(e.slotMaxTime)-an(e.slotMinTime),f=Zc(e.renderRange.start,o,t),p=Zc(e.renderRange.end,o,t);o.isTimeScale&&(f=t.add(f,e.slotMinTime),p=t.add(dn(p,-1),e.slotMaxTime)),o.timeWindowMs=d,o.normalizedRange={start:f,end:p};let h=[],m=f;for(;m<p;)Mc(m,o,e,r)&&h.push(m),m=t.add(m,o.slotDuration);o.slotDates=h;let g=-1,v=0;const y=[],b=[];for(m=f;m<p;)Mc(m,o,e,r)?(g+=1,y.push(g),b.push(v)):y.push(g+.5),m=t.add(m,o.snapDuration),v+=1;return o.snapDiffToIndex=y,o.snapIndexToDiff=b,o.snapCnt=g+1,o.slotCnt=o.snapCnt/o.snapsPerSlot,o.isWeekStarts=function(e,t){let{slotDates:n,emphasizeWeeks:r}=e,o=null,i=[];for(let e of n){let n=t.computeWeekNumber(e),a=r&&null!==o&&o!==n;o=n,i.push(a)}return i}(o,t),o.cellRows=function(e,t){let n=e.slotDates,r=e.headerFormats,o=r.map((()=>[])),i=rn(e.slotDuration),a=7===i?"week":1===i?"day":null,s=r.map((e=>e.getLargestUnit?e.getLargestUnit():null));for(let i=0;i<n.length;i+=1){let c=n[i],u=e.isWeekStarts[i];for(let n=0;n<r.length;n+=1){let i=r[n],l=o[n],d=l[l.length-1],f=n===r.length-1,p=r.length>1&&!f,h=null,m=s[n]||(f?a:null);if(p){let e=t.format(c,i);d&&d.text===e?d.colspan+=1:h=Fc(c,e,m)}else if(!d||Xt(t.countDurationsBetween(e.normalizedRange.start,c,e.labelInterval))){h=Fc(c,t.format(c,i),m)}else d.colspan+=1;h&&(h.weekStart=u,l.push(h))}}return o}(o,t),o.slotsPerLabel=sn(o.labelInterval,o.slotDuration),o}function Zc(e,t,n){let r=e;return t.isTimeScale||(r=mn(r),t.largeUnit&&(r=n.startOf(r,t.largeUnit))),r}function Mc(e,t,n,r){if(r.isHiddenDay(e))return!1;if(t.isTimeScale){let r=mn(e),o=e.valueOf()-r.valueOf()-an(n.slotMinTime);return o=(o%864e5+864e5)%864e5,o<t.timeWindowMs}return!0}function Ic(e,t,n){const{currentRange:r}=t;let{labelInterval:o}=e;if(!o){let t;if(e.slotDuration){for(t of Tc){const n=tn(t),r=sn(n,e.slotDuration);if(null!==r&&r<=6){o=n;break}}o||(o=e.slotDuration)}else for(t of Tc){o=tn(t);if(n.countDurationsBetween(r.start,r.end,o)>=18)break}e.labelInterval=o}return o}function Nc(e,t,n){let 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=hn(r.start,r.end)),o||0}function Fc(e,t,n){return{date:e,text:t,rowUnit:n,colspan:1,isWeekStart:!1}}class Lc extends kr{constructor(){super(...arguments),this.refineRenderProps=An(Uc),this.buildCellNavLinkAttrs=Cn(Bc)}render(){let{props:e,context:t}=this,{dateEnv:n,options:r}=t,{cell:o,dateProfile:i,tDateProfile:a}=e,s=hi(o.date,e.todayRange,e.nowDate,i),c=this.refineRenderProps({level:e.rowLevel,dateMarker:o.date,text:o.text,dateEnv:t.dateEnv,viewApi:t.viewApi});return ce(Tr,{elTag:"th",elClasses:["fc-timeline-slot","fc-timeline-slot-label",o.isWeekStart&&"fc-timeline-slot-em",..."time"===o.rowUnit?gi(s,t.theme):mi(s,t.theme)],elAttrs:{colSpan:o.colspan,"data-date":n.formatIso(o.date,{omitTime:!a.isTimeScale,omitTimeZoneOffset:!0})},renderProps:c,generatorName:"slotLabelContent",customGenerator:r.slotLabelContent,defaultGenerator:Hc,classNameGenerator:r.slotLabelClassNames,didMount:r.slotLabelDidMount,willUnmount:r.slotLabelWillUnmount},(n=>ce("div",{className:"fc-timeline-slot-frame",style:{height:e.rowInnerHeight}},ce(n,{elTag:"a",elClasses:["fc-timeline-slot-cushion","fc-scrollgrid-sync-inner",e.isSticky&&"fc-sticky"],elAttrs:this.buildCellNavLinkAttrs(t,o.date,o.rowUnit)}))))}}function Bc(e,t,n){return n&&"time"!==n?bi(e,t,n):{}}function Hc(e){return e.text}function Uc(e){return{level:e.level,date:e.dateEnv.toDate(e.dateMarker),view:e.viewApi,text:e.text}}class Wc extends kr{render(){let{dateProfile:e,tDateProfile:t,rowInnerHeights:n,todayRange:r,nowDate:o}=this.props,{cellRows:i}=t;return ce(le,null,i.map(((a,s)=>{let c=s===i.length-1,u=t.isTimeScale&&c;return ce("tr",{key:s,className:["fc-timeline-header-row",u?"fc-timeline-header-row-chrono":""].join(" ")},a.map((i=>ce(Lc,{key:i.date.toISOString(),cell:i,rowLevel:s,dateProfile:e,tDateProfile:t,todayRange:r,nowDate:o,rowInnerHeight:n&&n[s],isSticky:!c}))))})))}}class zc{constructor(e,t,n,r,o,i){this.slatRootEl=e,this.dateProfile=n,this.tDateProfile=r,this.dateEnv=o,this.isRtl=i,this.outerCoordCache=new Pi(e,t,!0,!1),this.innerCoordCache=new Pi(e,function(e,t){let n=e instanceof HTMLElement?[e]:e,r=[];for(let e=0;e<n.length;e+=1){let o=n[e].children;for(let e=0;e<o.length;e+=1){let n=o[e];t&&!Ct(n,t)||r.push(n)}}return r}(t,"div"),!0,!1)}isDateInRange(e){return Ur(this.dateProfile.currentRange,e)}dateToCoord(e){let{tDateProfile:t}=this,n=this.computeDateSnapCoverage(e)/t.snapsPerSlot,r=Math.floor(n);r=Math.min(r,t.slotCnt-1);let o=n-r,{innerCoordCache:i,outerCoordCache:a}=this;return this.isRtl?a.originClientRect.width-(a.rights[r]-i.getWidth(r)*o):a.lefts[r]+i.getWidth(r)*o}rangeToCoords(e){return{start:this.dateToCoord(e.start),end:this.dateToCoord(e.end)}}durationToCoord(e){let{dateProfile:t,tDateProfile:n,dateEnv:r,isRtl:o}=this,i=0;if(t){let a=r.add(t.activeRange.start,e);n.isTimeScale||(a=mn(a)),i=this.dateToCoord(a),!o&&i&&(i+=1)}return i}coordFromLeft(e){return this.isRtl?this.outerCoordCache.originClientRect.width-e:e}computeDateSnapCoverage(e){return Vc(e,this.tDateProfile,this.dateEnv)}}function Vc(e,t,n){let r=n.countDurationsBetween(t.normalizedRange.start,e,t.snapDuration);if(r<0)return 0;if(r>=t.snapDiffToIndex.length)return t.snapCnt;let o=Math.floor(r),i=t.snapDiffToIndex[o];return Xt(i)?i+=r-o:i=Math.ceil(i),i}function qc(e,t){return null===e?{left:"",right:""}:t?{right:e,left:""}:{left:e,right:""}}function Yc(e,t){return e?t?{right:e.start,left:-e.end}:{left:e.start,right:-e.end}:{left:"",right:""}}class Gc extends kr{constructor(){super(...arguments),this.rootElRef={current:null}}render(){let{props:e,context:t}=this,n=cn(e.tDateProfile.slotDuration).unit,r=e.slatCoords&&e.slatCoords.dateProfile===e.dateProfile?e.slatCoords:null;return ce(Ui,{unit:n},((n,o)=>ce("div",{className:"fc-timeline-header",ref:this.rootElRef},ce("table",{"aria-hidden":!0,className:"fc-scrollgrid-sync-table",style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,ce("tbody",null,ce(Wc,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:n,todayRange:o,rowInnerHeights:e.rowInnerHeights}))),t.options.nowIndicator&&ce("div",{className:"fc-timeline-now-indicator-container"},r&&r.isDateInRange(n)&&ce(va,{elClasses:["fc-timeline-now-indicator-arrow"],elStyle:qc(r.dateToCoord(n),t.isRtl),isAxis:!0,date:n})))))}componentDidMount(){this.updateSize()}componentDidUpdate(){this.updateSize()}updateSize(){this.props.onMaxCushionWidth&&this.props.onMaxCushionWidth(this.computeMaxCushionWidth())}computeMaxCushionWidth(){return Math.max(...At(this.rootElRef.current,".fc-timeline-header-row:last-child .fc-timeline-slot-cushion").map((e=>e.getBoundingClientRect().width)))}}class Kc extends kr{render(){let{props:e,context:t}=this,{dateEnv:n,options:r,theme:o}=t,{date:i,tDateProfile:a,isEm:s}=e,c=hi(e.date,e.todayRange,e.nowDate,e.dateProfile),u=Object.assign(Object.assign({date:n.toDate(e.date)},c),{view:t.viewApi});return ce(Tr,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-slot","fc-timeline-slot-lane",s&&"fc-timeline-slot-em",a.isTimeScale?Xt(n.countDurationsBetween(a.normalizedRange.start,e.date,a.labelInterval))?"fc-timeline-slot-major":"fc-timeline-slot-minor":"",...e.isDay?mi(c,o):gi(c,o)],elAttrs:{"data-date":n.formatIso(i,{omitTimeZoneOffset:!0,omitTime:!a.isTimeScale})},renderProps:u,generatorName:"slotLaneContent",customGenerator:r.slotLaneContent,classNameGenerator:r.slotLaneClassNames,didMount:r.slotLaneDidMount,willUnmount:r.slotLaneWillUnmount},(e=>ce(e,{elTag:"div"})))}}class Qc extends kr{render(){let{props:e}=this,{tDateProfile:t,cellElRefs:n}=e,{slotDates:r,isWeekStarts:o}=t,i=!t.isTimeScale&&!t.largeUnit;return ce("tbody",null,ce("tr",null,r.map(((r,a)=>{let s=r.toISOString();return ce(Kc,{key:s,elRef:n.createRef(s),date:r,dateProfile:e.dateProfile,tDateProfile:t,nowDate:e.nowDate,todayRange:e.todayRange,isEm:o[a],isDay:i})}))))}}class Xc extends kr{constructor(){super(...arguments),this.rootElRef={current:null},this.cellElRefs=new ea,this.handleScrollRequest=e=>{let{onScrollLeftRequest:t}=this.props,{coords:n}=this;if(t&&n){if(e.time){t(n.coordFromLeft(n.durationToCoord(e.time)))}return!0}return null}}render(){let{props:e,context:t}=this;return ce("div",{className:"fc-timeline-slots",ref:this.rootElRef},ce("table",{"aria-hidden":!0,className:t.theme.getClass("table"),style:{minWidth:e.tableMinWidth,width:e.clientWidth}},e.tableColGroupNode,ce(Qc,{cellElRefs:this.cellElRefs,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange})))}componentDidMount(){this.updateSizing(),this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}componentDidUpdate(e){this.updateSizing(),this.scrollResponder.update(e.dateProfile!==this.props.dateProfile)}componentWillUnmount(){this.scrollResponder.detach(),this.props.onCoords&&this.props.onCoords(null)}updateSizing(){let{props:e,context:t}=this;if(null!==e.clientWidth&&this.scrollResponder){this.rootElRef.current.offsetWidth&&(this.coords=new zc(this.rootElRef.current,(n=this.cellElRefs.currentMap,e.tDateProfile.slotDates.map((e=>{let t=e.toISOString();return n[t]}))),e.dateProfile,e.tDateProfile,t.dateEnv,t.isRtl),e.onCoords&&e.onCoords(this.coords),this.scrollResponder.update(!1))}var n}positionToHit(e){let{outerCoordCache:t}=this.coords,{dateEnv:n,isRtl:r}=this.context,{tDateProfile:o}=this.props,i=t.leftToIndex(e);if(null!=i){let a=t.getWidth(i),s=r?(t.rights[i]-e)/a:(e-t.lefts[i])/a,c=Math.floor(s*o.snapsPerSlot),u=n.add(o.slotDates[i],function(e,t){return{years:e.years*t,months:e.months*t,days:e.days*t,milliseconds:e.milliseconds*t}}(o.snapDuration,c));return{dateSpan:{range:{start:u,end:n.add(u,o.snapDuration)},allDay:!this.props.tDateProfile.isTimeScale},dayEl:this.cellElRefs.currentMap[i],left:t.lefts[i],right:t.rights[i]}}return null}}function $c(e,t,n){let r=[];if(n)for(let o of e){let e=n.rangeToCoords(o),i=Math.round(e.start),a=Math.round(e.end);a-i<t&&(a=i+t),r.push({start:i,end:a})}return r}function Jc(e,t,n,r,o,i){let a=[],s=[];for(let r=0;r<e.length;r+=1){let o=e[r],i=n[o.eventRange.instance.instanceId],c=t[r];i&&c?a.push({index:r,span:c,thickness:i}):s.push({seg:o,hcoords:c,top:null})}let c=new Mi;null!=o&&(c.strictOrder=o),null!=i&&(c.maxStackCnt=i);let u=c.addSegs(a),l=u.map((t=>({seg:e[t.index],hcoords:t.span,top:null}))),d=function(e){let t=[];for(let o of e){let e=[],i={span:o.span,entries:[o]};for(let o of t)Fi(o.span,i.span)?i={entries:o.entries.concat(i.entries),span:(n=o.span,r=i.span,{start:Math.min(n.start,r.start),end:Math.max(n.end,r.end)})}:e.push(o);e.push(i),t=e}var n,r;return t}(u),f=[],p=[];const h=t=>e[t.index];for(let t=0;t<d.length;t+=1){let n=d[t],o=n.entries.map(h),i=r[En(Aa(o))];null!=i?f.push({index:e.length+t,thickness:i,span:n.span}):p.push({seg:o,hcoords:n.span,top:null})}c.maxStackCnt=-1,c.addSegs(f);let m=c.toRects(),g=[],v=0;for(let t of m){let n=t.index;g.push({seg:n<e.length?e[n]:d[n-e.length].entries.map(h),hcoords:t.span,top:t.levelCoord}),v=Math.max(v,t.levelCoord+t.thickness)}return[g.concat(s,l,p),v]}class eu extends kr{render(){let{props:e}=this,t=[].concat(e.eventResizeSegs,e.dateSelectionSegs);return e.timelineCoords&&ce("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"))}renderSegs(e,t,n){let{todayRange:r,nowDate:o}=this.props,{isRtl:i}=this.context,a=$c(e,0,t),s=e.map(((e,t)=>{let s=Yc(a[t],i);return ce("div",{key:(c=e.eventRange,c.instance?c.instance.instanceId:`${c.def.defId}:${c.range.start.toISOString()}`),className:"fc-timeline-bg-harness",style:s},"bg-event"===n?ce(Oa,Object.assign({seg:e},qo(e,r,o))):function(e){return ce("div",{className:`fc-${e}`})}(n));var c}));return ce(le,null,s)}}class tu extends class{constructor(){this.sliceBusinessHours=Cn(this._sliceBusinessHours),this.sliceDateSelection=Cn(this._sliceDateSpan),this.sliceEventStore=Cn(this._sliceEventStore),this.sliceEventDrag=Cn(this._sliceInteraction),this.sliceEventResize=Cn(this._sliceInteraction),this.forceDayIfListItem=!1}sliceProps(e,t,n,r,...o){let{eventUiBases:i}=e,a=this.sliceEventStore(e.eventStore,i,t,n,...o);return{dateSelectionSegs:this.sliceDateSelection(e.dateSelection,t,n,i,r,...o),businessHourSegs:this.sliceBusinessHours(e.businessHours,t,n,r,...o),fgEventSegs:a.fg,bgEventSegs:a.bg,eventDrag:this.sliceEventDrag(e.eventDrag,i,t,n,...o),eventResize:this.sliceEventResize(e.eventResize,i,t,n,...o),eventSelection:e.eventSelection}}sliceNowDate(e,t,n,r,...o){return this._sliceDateSpan({range:{start:e,end:fn(e,1)},allDay:!1},t,n,{},r,...o)}_sliceBusinessHours(e,t,n,r,...o){return e?this._sliceEventStore(Kr(e,zi(t,Boolean(n)),r),{},t,n,...o).bg:[]}_sliceEventStore(e,t,n,r,...o){if(e){let i=Io(e,t,zi(n,Boolean(r)),r);return{bg:this.sliceEventRanges(i.bg,o),fg:this.sliceEventRanges(i.fg,o)}}return{bg:[],fg:[]}}_sliceInteraction(e,t,n,r,...o){if(!e)return null;let i=Io(e.mutatedEvents,t,zi(n,Boolean(r)),r);return{segs:this.sliceEventRanges(i.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}}_sliceDateSpan(e,t,n,r,o,...i){if(!e)return[];let a=zi(t,Boolean(n)),s=Fr(e.range,a);if(s){let t=function(e,t,n){let r=to({editable:!1},n),o=ro(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:Bo(o,t),instance:Gr(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}(e=Object.assign(Object.assign({},e),{range:s}),r,o),n=this.sliceRange(e.range,...i);for(let e of n)e.eventRange=t;return n}return[]}sliceEventRanges(e,t){let n=[];for(let r of e)n.push(...this.sliceEventRange(r,t));return n}sliceEventRange(e,t){let n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:dn(n.start,1)});let r=this.sliceRange(n,...t);for(let t of r)t.eventRange=e,t.isStart=e.isStart&&t.isStart,t.isEnd=e.isEnd&&t.isEnd;return r}}{sliceRange(e,t,n,r,o){let i=function(e,t,n){if(!t.isTimeScale&&(e=zr(e),t.largeUnit)){let 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),a=[];if(Vc(i.start,r,o)<Vc(i.end,r,o)){let e=Fr(i,r.normalizedRange);e&&a.push({start:e.start,end:e.end,isStart:e.start.valueOf()===i.start.valueOf()&&Mc(e.start,r,t,n),isEnd:e.end.valueOf()===i.end.valueOf()&&Mc(fn(e.end,-1),r,t,n)})}return a}}const nu=zn({hour:"numeric",minute:"2-digit",omitZeroMinute:!0,meridiem:"narrow"});class ru extends kr{render(){let{props:e}=this;return ce(ma,Object.assign({},e,{elClasses:["fc-timeline-event","fc-h-event"],defaultTimeFormat:nu,defaultDisplayEventTime:!e.isTimeScale}))}}class ou extends kr{render(){let{props:e,context:t}=this,{hiddenSegs:n,placement:r,resourceId:o}=e,{top:i,hcoords:a}=r,s=a&&null!==i,c=Yc(a,t.isRtl),u=o?{resourceId:o}:{};return ce(ka,{elRef:e.elRef,elClasses:["fc-timeline-more-link"],elStyle:Object.assign({visibility:s?"":"hidden",top:i||0},c),allDayDate:null,moreCnt:n.length,allSegs:n,hiddenSegs:n,dateProfile:e.dateProfile,todayRange:e.todayRange,extraDateSpan:u,popoverContent:()=>ce(le,null,n.map((t=>{let n=t.eventRange.instance.instanceId;return ce("div",{key:n,style:{visibility:e.isForcedInvisible[n]?"hidden":""}},ce(ru,Object.assign({isTimeScale:e.isTimeScale,seg:t,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:n===e.eventSelection},qo(t,e.todayRange,e.nowDate))))})))},(e=>ce(e,{elTag:"div",elClasses:["fc-timeline-more-link-inner","fc-sticky"]})))}}class iu extends kr{constructor(){super(...arguments),this.slicer=new tu,this.sortEventSegs=Cn(Ho),this.harnessElRefs=new ea,this.moreElRefs=new ea,this.innerElRef={current:null},this.state={eventInstanceHeights:{},moreLinkHeights:{}},this.handleResize=e=>{e&&this.updateSize()}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,{dateProfile:o,tDateProfile:i}=e,a=this.slicer.sliceProps(e,o,i.isTimeScale?null:e.nextDayThreshold,n,o,n.dateProfileGenerator,i,n.dateEnv),s=(a.eventDrag?a.eventDrag.segs:null)||(a.eventResize?a.eventResize.segs:null)||[],c=this.sortEventSegs(a.fgEventSegs,r.eventOrder),u=$c(c,r.eventMinWidth,e.timelineCoords),[l,d]=Jc(c,u,t.eventInstanceHeights,t.moreLinkHeights,r.eventOrderStrict,r.eventMaxStack),f=(a.eventDrag?a.eventDrag.affectedInstances:null)||(a.eventResize?a.eventResize.affectedInstances:null)||{};return ce(le,null,ce(eu,{businessHourSegs:a.businessHourSegs,bgEventSegs:a.bgEventSegs,timelineCoords:e.timelineCoords,eventResizeSegs:a.eventResize?a.eventResize.segs:[],dateSelectionSegs:a.dateSelectionSegs,nowDate:e.nowDate,todayRange:e.todayRange}),ce("div",{className:"fc-timeline-events fc-scrollgrid-sync-inner",ref:this.innerElRef,style:{height:d}},this.renderFgSegs(l,f,!1,!1,!1),this.renderFgSegs(function(e,t,n){if(!e.length||!t)return[];let r=function(e){let t={};for(let n of e){let{seg:e}=n;Array.isArray(e)||(t[e.eventRange.instance.instanceId]=n.top)}return t}(n);return e.map((e=>({seg:e,hcoords:t.rangeToCoords(e),top:r[e.eventRange.instance.instanceId]})))}(s,e.timelineCoords,l),{},Boolean(a.eventDrag),Boolean(a.eventResize),!1)))}componentDidMount(){this.updateSize(),this.context.addResizeHandler(this.handleResize)}componentDidUpdate(e,t){e.eventStore===this.props.eventStore&&e.timelineCoords===this.props.timelineCoords&&t.moreLinkHeights===this.state.moreLinkHeights||this.updateSize()}componentWillUnmount(){this.context.removeResizeHandler(this.handleResize)}updateSize(){let{props:e}=this,{timelineCoords:t}=e;const n=this.innerElRef.current;e.onHeightChange&&e.onHeightChange(n,!1),t&&this.setState({eventInstanceHeights:ir(this.harnessElRefs.currentMap,(e=>Math.round(e.getBoundingClientRect().height))),moreLinkHeights:ir(this.moreElRefs.currentMap,(e=>Math.round(e.getBoundingClientRect().height)))},(()=>{e.onHeightChange&&e.onHeightChange(n,!0)})),e.syncParentMinHeight&&(n.parentElement.style.minHeight=n.style.height)}renderFgSegs(e,t,n,r,o){let{harnessElRefs:i,moreElRefs:a,props:s,context:c}=this,u=n||r||o;return ce(le,null,e.map((e=>{let{seg:l,hcoords:d,top:f}=e;if(Array.isArray(l)){let n=En(Aa(l));return ce(ou,{key:"m:"+n,elRef:a.createRef(n),hiddenSegs:l,placement:e,dateProfile:s.dateProfile,nowDate:s.nowDate,todayRange:s.todayRange,isTimeScale:s.tDateProfile.isTimeScale,eventSelection:s.eventSelection,resourceId:s.resourceId,isForcedInvisible:t})}let p=l.eventRange.instance.instanceId,h=u||Boolean(!t[p]&&d&&null!==f),m=Yc(d,c.isRtl);return ce("div",{key:"e:"+p,ref:u?null:i.createRef(p),className:"fc-timeline-event-harness",style:Object.assign({visibility:h?"":"hidden",top:f||0},m)},ce(ru,Object.assign({isTimeScale:s.tDateProfile.isTimeScale,seg:l,isDragging:n,isResizing:r,isDateSelecting:o,isSelected:p===s.eventSelection},qo(l,s.todayRange,s.nowDate))))})))}}iu.addStateEquality({eventInstanceHeights:cr,moreLinkHeights:cr});class au extends Zi{constructor(){super(...arguments),this.slatsRef={current:null},this.state={coords:null},this.handeEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleCoords=e=>{this.setState({coords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,{dateProfile:o,tDateProfile:i}=e,a=cn(i.slotDuration).unit;return ce("div",{className:"fc-timeline-body",ref:this.handeEl,style:{minWidth:e.tableMinWidth,height:e.clientHeight,width:e.clientWidth}},ce(Ui,{unit:a},((a,s)=>ce(le,null,ce(Xc,{ref:this.slatsRef,dateProfile:o,tDateProfile:i,nowDate:a,todayRange:s,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleCoords,onScrollLeftRequest:e.onScrollLeftRequest}),ce(iu,{dateProfile:o,tDateProfile:e.tDateProfile,nowDate:a,todayRange:s,nextDayThreshold:r.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:t.coords,syncParentMinHeight:!0}),r.nowIndicator&&t.coords&&t.coords.isDateInRange(a)&&ce("div",{className:"fc-timeline-now-indicator-container"},ce(va,{elClasses:["fc-timeline-now-indicator-line"],elStyle:qc(t.coords.dateToCoord(a),n.isRtl),isAxis:!1,date:a}))))))}queryHit(e,t,n,r){let 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}}function su(e,t){return[{span:e.slotCnt,minWidth:t||1}]}Ot('.fc .fc-timeline-body{min-height:100%;position:relative;z-index:1}.fc .fc-timeline-slots{bottom:0;position:absolute;top:0;z-index:1}.fc .fc-timeline-slots>table{height:100%}.fc .fc-timeline-slot-minor{border-style:dotted}.fc .fc-timeline-slot-frame{align-items:center;display:flex;justify-content:center}.fc .fc-timeline-header-row-chrono .fc-timeline-slot-frame{justify-content:flex-start}.fc .fc-timeline-header-row:last-child .fc-timeline-slot-frame{overflow:hidden}.fc .fc-timeline-slot-cushion{padding:4px 5px;white-space:nowrap}.fc-direction-ltr .fc-timeline-slot{border-right:0!important}.fc-direction-rtl .fc-timeline-slot{border-left:0!important}.fc .fc-timeline-now-indicator-container{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:4}.fc .fc-timeline-now-indicator-arrow,.fc .fc-timeline-now-indicator-line{border-color:var(--fc-now-indicator-color);border-style:solid;position:absolute;top:0}.fc .fc-timeline-now-indicator-arrow{border-left-color:transparent;border-right-color:transparent;border-width:6px 5px 0;margin:0 -6px}.fc .fc-timeline-now-indicator-line{border-width:0 0 0 1px;bottom:0;margin:0 -1px}.fc .fc-timeline-events{position:relative;width:0;z-index:3}.fc .fc-timeline-event-harness,.fc .fc-timeline-more-link{position:absolute;top:0}.fc-timeline-event{z-index:1}.fc-timeline-event.fc-event-mirror{z-index:2}.fc-timeline-event{align-items:center;border-radius:0;display:flex;font-size:var(--fc-small-font-size);margin-bottom:1px;padding:2px 1px;position:relative}.fc-timeline-event .fc-event-main{flex-grow:1;flex-shrink:1;min-width:0}.fc-timeline-event .fc-event-time{font-weight:700}.fc-timeline-event .fc-event-time,.fc-timeline-event .fc-event-title{padding:0 2px;white-space:nowrap}.fc-direction-ltr .fc-timeline-event.fc-event-end,.fc-direction-ltr .fc-timeline-more-link{margin-right:1px}.fc-direction-rtl .fc-timeline-event.fc-event-end,.fc-direction-rtl .fc-timeline-more-link{margin-left:1px}.fc-timeline-overlap-disabled .fc-timeline-event{margin-bottom:0;padding-bottom:5px;padding-top:5px}.fc-timeline-event:not(.fc-event-end):after,.fc-timeline-event:not(.fc-event-start):before{border-color:transparent #000;border-style:solid;border-width:5px;content:"";flex-grow:0;flex-shrink:0;height:0;margin:0 1px;opacity:.5;width:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-start):before,.fc-direction-rtl .fc-timeline-event:not(.fc-event-end):after{border-left:0}.fc-direction-ltr .fc-timeline-event:not(.fc-event-end):after,.fc-direction-rtl .fc-timeline-event:not(.fc-event-start):before{border-right:0}.fc-timeline-more-link{background:var(--fc-more-link-bg-color);color:var(--fc-more-link-text-color);cursor:pointer;font-size:var(--fc-small-font-size);padding:1px}.fc-timeline-more-link-inner{display:inline-block;left:0;padding:2px;right:0}.fc .fc-timeline-bg{bottom:0;left:0;position:absolute;right:0;top:0;width:0;z-index:2}.fc .fc-timeline-bg .fc-non-business{z-index:1}.fc .fc-timeline-bg .fc-bg-event{z-index:2}.fc .fc-timeline-bg .fc-highlight{z-index:3}.fc .fc-timeline-bg-harness{bottom:0;position:absolute;top:0}');var cu=Fa({name:"@fullcalendar/timeline",premiumReleaseDate:"2023-02-07",deps:[Ns],initialView:"timelineDay",views:{timeline:{component:class extends Zi{constructor(){super(...arguments),this.buildTimelineDateProfile=Cn(Rc),this.scrollGridRef={current:null},this.state={slatCoords:null,slotCushionMaxWidth:null},this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleScrollLeftRequest=e=>{this.scrollGridRef.current.forceScrollLeft(0,e)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,o=!e.forPrint&&fa(r),i=!e.forPrint&&pa(r),a=this.buildTimelineDateProfile(e.dateProfile,n.dateEnv,r,n.dateProfileGenerator),{slotMinWidth:s}=r,c=su(a,s||this.computeFallbackSlotMinWidth(a)),u=[{type:"header",key:"header",isSticky:o,chunks:[{key:"timeline",content:n=>ce(Gc,{dateProfile:e.dateProfile,clientWidth:n.clientWidth,clientHeight:n.clientHeight,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,tDateProfile:a,slatCoords:t.slatCoords,onMaxCushionWidth:s?null:this.handleMaxCushionWidth})}]},{type:"body",key:"body",liquid:!0,chunks:[{key:"timeline",content:t=>ce(au,Object.assign({},e,{clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,tDateProfile:a,onSlatCoords:this.handleSlatCoords,onScrollLeftRequest:this.handleScrollLeftRequest}))}]}];return i&&u.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"timeline",content:da}]}),ce(Zr,{elClasses:["fc-timeline",!1===r.eventOverlap?"fc-timeline-overlap-disabled":""],viewSpec:n.viewSpec},ce(Oc,{ref:this.scrollGridRef,liquid:!e.isHeightAuto&&!e.forPrint,collapsibleWidth:!1,colGroups:[{cols:c}],sections:u}))}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}},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}}}});const uu="_fc:",lu={id:String,parentId:String,children:tr,title:String,businessHours:tr,extendedProps:tr,eventEditable:Boolean,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventConstraint:tr,eventOverlap:Boolean,eventAllow:tr,eventClassNames:uo,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String};function du(e,t="",n,r){let{refined:o,extra:i}=er(e,lu),a={id:o.id||uu+Ht(),parentId:o.parentId||t,title:o.title||"",businessHours:o.businessHours?ko(o.businessHours,r):null,ui:po({editable:o.eventEditable,startEditable:o.eventStartEditable,durationEditable:o.eventDurationEditable,constraint:o.eventConstraint,overlap:o.eventOverlap,allow:o.eventAllow,classNames:o.eventClassNames,backgroundColor:o.eventBackgroundColor,borderColor:o.eventBorderColor,textColor:o.eventTextColor,color:o.eventColor},r),extendedProps:Object.assign(Object.assign({},i),o.extendedProps)};if(Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),n[a.id]);else if(n[a.id]=a,o.children)for(let e of o.children)du(e,a.id,n,r);return a}function fu(e){return 0===e.indexOf(uu)?"":e}class pu{constructor(e,t){this._context=e,this._resource=t}setProp(e,t){let n=this._resource;this._context.dispatch({type:"SET_RESOURCE_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)}setExtendedProp(e,t){let n=this._resource;this._context.dispatch({type:"SET_RESOURCE_EXTENDED_PROP",resourceId:n.id,propName:e,propValue:t}),this.sync(n)}sync(e){let t=this._context,n=e.id;this._resource=t.getCurrentData().resourceStore[n],t.emitter.trigger("resourceChange",{oldResource:new pu(t,e),resource:this,revert(){t.dispatch({type:"ADD_RESOURCE",resourceHash:{[n]:e}})}})}remove(){let e=this._context,t=this._resource,n=t.id;e.dispatch({type:"REMOVE_RESOURCE",resourceId:n}),e.emitter.trigger("resourceRemove",{resource:this,revert(){e.dispatch({type:"ADD_RESOURCE",resourceHash:{[n]:t}})}})}getParent(){let e=this._context,t=this._resource.parentId;return t?new pu(e,e.getCurrentData().resourceSource[t]):null}getChildren(){let e=this._resource.id,t=this._context,{resourceStore:n}=t.getCurrentData(),r=[];for(let o in n)n[o].parentId===e&&r.push(new pu(t,n[o]));return r}getEvents(){let e=this._resource.id,t=this._context,{defs:n,instances:r}=t.getCurrentData().eventStore,o=[];for(let i in r){let a=r[i],s=n[a.defId];-1!==s.resourceIds.indexOf(e)&&o.push(new Ro(t,s,a))}return o}get id(){return fu(this._resource.id)}get title(){return this._resource.title}get eventConstraint(){return this._resource.ui.constraints[0]||null}get eventOverlap(){return this._resource.ui.overlap}get eventAllow(){return this._resource.ui.allows[0]||null}get eventBackgroundColor(){return this._resource.ui.backgroundColor}get eventBorderColor(){return this._resource.ui.borderColor}get eventTextColor(){return this._resource.ui.textColor}get eventClassNames(){return this._resource.ui.classNames}get extendedProps(){return this._resource.extendedProps}toPlainObject(e={}){let t=this._resource,{ui:n}=t,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?Object.assign(o,t.extendedProps):o.extendedProps=t.extendedProps),o}toJSON(){return this.toPlainObject()}}class hu extends class{constructor(){this.getKeysForEventDefs=Cn(this._getKeysForEventDefs),this.splitDateSelection=Cn(this._splitDateSpan),this.splitEventStore=Cn(this._splitEventStore),this.splitIndividualUi=Cn(this._splitIndividualUi),this.splitEventDrag=Cn(this._splitInteraction),this.splitEventResize=Cn(this._splitInteraction),this.eventUiBuilders={}}splitProps(e){let t=this.getKeyInfo(e),n=this.getKeysForEventDefs(e.eventStore),r=this.splitDateSelection(e.dateSelection),o=this.splitIndividualUi(e.eventUiBases,n),i=this.splitEventStore(e.eventStore,n),a=this.splitEventDrag(e.eventDrag),s=this.splitEventResize(e.eventResize),c={};this.eventUiBuilders=ir(t,((e,t)=>this.eventUiBuilders[t]||Cn(pi)));for(let n in t){let u=t[n],l=i[n]||fi,d=this.eventUiBuilders[n];c[n]={businessHours:u.businessHours||e.businessHours,dateSelection:r[n]||null,eventStore:l,eventUiBases:d(e.eventUiBases[""],u.ui,o[n]),eventSelection:l.instances[e.eventSelection]?e.eventSelection:"",eventDrag:a[n]||null,eventResize:s[n]||null}}return c}_splitDateSpan(e){let t={};if(e){let n=this.getKeysForDateSpan(e);for(let r of n)t[r]=e}return t}_getKeysForEventDefs(e){return ir(e.defs,(e=>this.getKeysForEventDef(e)))}_splitEventStore(e,t){let{defs:n,instances:r}=e,o={};for(let e in n)for(let r of t[e])o[r]||(o[r]={defs:{},instances:{}}),o[r].defs[e]=n[e];for(let e in r){let n=r[e];for(let r of t[n.defId])o[r]&&(o[r].instances[e]=n)}return o}_splitIndividualUi(e,t){let n={};for(let r in e)if(r)for(let o of t[r])n[o]||(n[o]={}),n[o][r]=e[r];return n}_splitInteraction(e){let t={};if(e){let n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,r),i=r=>{t[r]||(t[r]={affectedEvents:n[r]||fi,mutatedEvents:o[r]||fi,isEvent:e.isEvent})};for(let e in n)i(e);for(let e in o)i(e)}return t}}{getKeyInfo(e){return Object.assign({"":{}},e.resourceStore)}getKeysForDateSpan(e){return[e.resourceId||""]}getKeysForEventDef(e){let t=e.resourceIds;return t.length?t:[""]}}const mu=zt("id,title");function gu(e){return{resource:new pu(e.context,e.resource)}}function vu(e,t,n,r,o,i){let a=function(e,t,n,r){let o=function(e,t){let n={};for(let t in e){let r=e[t];n[t]={resource:r,resourceFields:Ou(r),children:[]}}for(let r in e){let o=e[r];if(o.parentId){let e=n[o.parentId];e&&wu(n[r],e.children,t)}}return n}(e,r),i=[];for(let e in o){let a=o[e];a.resource.parentId||bu(a,i,n,0,t,r)}return i}(e,r?-1:1,t,n),s=[];return yu(a,s,r,[],0,o,i),s}function yu(e,t,n,r,o,i,a){for(let s=0;s<e.length;s+=1){let c=e[s],u=c.group;if(u)if(n){let e=t.length,s=r.length;if(yu(c.children,t,n,r.concat(0),o,i,a),e<t.length){let n=t[e];(n.rowSpans=n.rowSpans.slice())[s]=t.length-e}}else{let e=u.spec.field+":"+u.value,s=null!=i[e]?i[e]:a;t.push({id:e,group:u,isExpanded:s}),s&&yu(c.children,t,n,r,o+1,i,a)}else if(c.resource){let e=c.resource.id,s=null!=i[e]?i[e]:a;t.push({id:e,rowSpans:r,depth:o,isExpanded:s,hasChildren:Boolean(c.children.length),resource:c.resource,resourceFields:c.resourceFields}),s&&yu(c.children,t,n,r,o+1,i,a)}}}function bu(e,t,n,r,o,i){if(n.length&&(-1===o||r<=o)){let a=function(e,t,n){let r,o,i=e.resourceFields[n.field];if(n.order)for(o=0;o<t.length;o+=1){let e=t[o];if(e.group){let t=Yt(i,e.group.value)*n.order;if(0===t){r=e;break}if(t<0)break}}else for(o=0;o<t.length;o+=1){let e=t[o];if(e.group&&i===e.group.value){r=e;break}}r||(r={group:{value:i,spec:n},children:[]},t.splice(o,0,r));return r}(e,t,n[0]);bu(e,a.children,n.slice(1),r+1,o,i)}else wu(e,t,i)}function wu(e,t,n){let r;for(r=0;r<t.length;r+=1){if(Vt(t[r].resourceFields,e.resourceFields,n)>0)break}t.splice(r,0,e)}function Ou(e){let t=Object.assign(Object.assign(Object.assign({},e.extendedProps),e.ui),e);return delete t.ui,delete t.extendedProps,t}function xu(e,t){let{resourceEditable:n}=e;if(null==n){let r=e.sourceId&&t.getCurrentData().eventSources[e.sourceId];r&&(n=r.extendedProps.resourceEditable),null==n&&(n=t.options.eventResourceEditable,null==n&&(n=t.options.editable))}return n}function Su(e,t,n,r){if(t){let t=function(e,t){return or(e,(e=>Br(e.range,t)))}(n.instances,r),o=function(e,t){let n={};for(let r in e){let o=e[r];for(let e of t[o.defId].resourceIds)n[e]=!0}return n}(t,n.defs);return Object.assign(o,function(e,t){let n={};for(let r in e){let e;for(;(e=t[r])&&(r=e.parentId,r);)n[r]=!0}return n}(o,e)),or(e,((e,t)=>o[t]))}return e}function Eu(e){return ir(e,(e=>e.ui))}function ku(e,t,n){return ir(e,((e,r)=>r?function(e,t,n){let r=[];for(let e of t.resourceIds)n[e]&&r.unshift(n[e]);return r.unshift(e),ho(r)}(e,t[r],n):e))}let _u=[];function Cu(e){_u.push(e)}function Au(e){return _u[e]}function Pu(){return _u}const ju={id:String,resources:tr,url:String,method:String,startParam:String,endParam:String,timeZoneParam:String,extraParams:tr};function Du(e){let t;if("string"==typeof e?t={url:e}:"function"==typeof e||Array.isArray(e)?t={resources:e}:"object"==typeof e&&e&&(t=e),t){let{refined:n,extra:r}=er(t,ju);!function(e){for(let t in e)console.warn(`Unknown resource prop '${t}'`)}(r);let o=function(e){let t=Pu();for(let n=t.length-1;n>=0;n-=1){let r=t[n].parseMeta(e);if(r)return{meta:r,sourceDefId:n}}return null}(n);if(o)return{_raw:e,sourceId:Ht(),sourceDefId:o.sourceDefId,meta:o.meta,publicId:n.id||"",isFetching:!1,latestFetchId:"",fetchRange:null}}return null}function Tu(e,t,n){let{options:r,dateProfile:o}=n;if(!e||!t)return Ru(r.initialResources||r.resources,o.activeRange,r.refetchResourcesOnNavigate,n);switch(t.type){case"RESET_RESOURCE_SOURCE":return Ru(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(Au(e.sourceDefId).ignoreRange)}(e)&&(!e.fetchRange||!Lr(e.fetchRange,t)))return Zu(e,t,r);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 Object.assign(Object.assign({},e),{isFetching:!1,fetchRange:n});return e}(e,t.fetchId,t.fetchRange);case"REFETCH_RESOURCES":return Zu(e,o.activeRange,n);default:return e}}function Ru(e,t,n,r){if(e){let o=Du(e);return o=Zu(o,n?t:null,r),o}return null}function Zu(e,t,n){let r=Au(e.sourceDefId),o=Ht();return r.fetch({resourceSource:e,range:t,context:n},(e=>{n.dispatch({type:"RECEIVE_RESOURCES",fetchId:o,fetchRange:t,rawResources:e.rawResources})}),(e=>{n.dispatch({type:"RECEIVE_RESOURCE_ERROR",fetchId:o,fetchRange:t,error:e})})),Object.assign(Object.assign({},e),{isFetching:!0,latestFetchId:o})}function Mu(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){let e={};for(let n of t)du(n,"",e,o);return e}return e}(e,t.rawResources,t.fetchId,n,r);case"ADD_RESOURCE":return o=e,i=t.resourceHash,Object.assign(Object.assign({},o),i);case"REMOVE_RESOURCE":return function(e,t){let n=Object.assign({},e);delete n[t];for(let e in n)n[e].parentId===t&&(n[e]=Object.assign(Object.assign({},n[e]),{parentId:""}));return n}(e,t.resourceId);case"SET_RESOURCE_PROP":return function(e,t,n,r){let o=e[t];if(o)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},o),{[n]:r})});return e}(e,t.resourceId,t.propName,t.propValue);case"SET_RESOURCE_EXTENDED_PROP":return function(e,t,n,r){let o=e[t];if(o)return Object.assign(Object.assign({},e),{[t]:Object.assign(Object.assign({},o),{extendedProps:Object.assign(Object.assign({},o.extendedProps),{[n]:r})})});return e}(e,t.resourceId,t.propName,t.propValue);default:return e}var o,i}const Iu={resourceId:String,resourceIds:tr,resourceEditable:Boolean};function Nu(e,t){return Object.assign(Object.assign({},t),{constraints:Fu(e,t.constraints)})}function Fu(e,t){return t.map((t=>{let n=t.defs;if(n)for(let t in n){let r=n[t].resourceIds;if(r.length&&-1===r.indexOf(e))return!1}return t}))}ci.prototype.addResource=function(e,t=!0){let n,r,o=this.getCurrentData();e instanceof pu?(r=e._resource,n={[r.id]:r}):(n={},r=du(e,"",n,o)),this.dispatch({type:"ADD_RESOURCE",resourceHash:n}),t&&this.trigger("_scrollRequest",{resourceId:r.id});let i=new pu(o,r);return o.emitter.trigger("resourceAdd",{resource:i,revert:()=>{this.dispatch({type:"REMOVE_RESOURCE",resourceId:r.id})}}),i},ci.prototype.getResourceById=function(e){e=String(e);let t=this.getCurrentData();if(t.resourceStore){let n=t.resourceStore[e];if(n)return new pu(t,n)}return null},ci.prototype.getResources=function(){let e=this.getCurrentData(),{resourceStore:t}=e,n=[];if(t)for(let r in t)n.push(new pu(e,t[r]));return n},ci.prototype.getTopLevelResources=function(){let e=this.getCurrentData(),{resourceStore:t}=e,n=[];if(t)for(let r in t)t[r].parentId||n.push(new pu(e,t[r]));return n},ci.prototype.refetchResources=function(){this.dispatch({type:"REFETCH_RESOURCES"})};const Lu={resources:function(e,t){t.getCurrentData().resourceSource._raw!==e&&t.dispatch({type:"RESET_RESOURCE_SOURCE",resourceSourceInput:e})}};const Bu={initialResources:tr,resources:tr,eventResourceEditable:Boolean,refetchResourcesOnNavigate:Boolean,resourceOrder:zt,filterResourcesWithEvents:Boolean,resourceGroupField:String,resourceAreaWidth:tr,resourceAreaColumns:tr,resourcesInitiallyExpanded:Boolean,datesAboveResources:Boolean,needsResourceData:Boolean,resourceAreaHeaderClassNames:tr,resourceAreaHeaderContent:tr,resourceAreaHeaderDidMount:tr,resourceAreaHeaderWillUnmount:tr,resourceGroupLabelClassNames:tr,resourceGroupLabelContent:tr,resourceGroupLabelDidMount:tr,resourceGroupLabelWillUnmount:tr,resourceLabelClassNames:tr,resourceLabelContent:tr,resourceLabelDidMount:tr,resourceLabelWillUnmount:tr,resourceLaneClassNames:tr,resourceLaneContent:tr,resourceLaneDidMount:tr,resourceLaneWillUnmount:tr,resourceGroupLaneClassNames:tr,resourceGroupLaneContent:tr,resourceGroupLaneDidMount:tr,resourceGroupLaneWillUnmount:tr},Hu={resourcesSet:tr,resourceAdd:tr,resourceChange:tr,resourceRemove:tr};Ro.prototype.getResources=function(){let{calendarApi:e}=this._context;return this._def.resourceIds.map((t=>e.getResourceById(t)))},Ro.prototype.setResources=function(e){let t=[];for(let n of e){let e=null;"string"==typeof n?e=n:"number"==typeof n?e=String(n):n instanceof pu?e=n.id:console.warn("unknown resource type: "+n),e&&t.push(e)}this.mutate({standardProps:{resourceIds:t}})},Cu({ignoreRange:!0,parseMeta:e=>Array.isArray(e.resources)?e.resources:null,fetch(e,t){t({rawResources:e.resourceSource.meta})}}),Cu({parseMeta:e=>"function"==typeof e.resources?e.resources:null,fetch(e,t,n){const 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}:{};Jo(o.bind(null,i),(e=>t({rawResources:e})),n)}}),Cu({parseMeta:e=>e.url?{url:e.url,method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams}:null,fetch(e,t,n){const r=e.resourceSource.meta,o=function(e,t,n){let r,o,i,a,{dateEnv:s,options:c}=n,u={};t&&(r=e.startParam,null==r&&(r=c.startParam),o=e.endParam,null==o&&(o=c.endParam),i=e.timeZoneParam,null==i&&(i=c.timeZoneParam),u[r]=s.formatIso(t.start),u[o]=s.formatIso(t.end),"local"!==s.timeZone&&(u[i]=s.timeZone));a="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};return Object.assign(u,a),u}(r,e.range,e.context);ti(r.method,r.url,o).then((([e,n])=>{t({rawResources:e,response:n})}),n)}});var Uu=Fa({name:"@fullcalendar/resource",premiumReleaseDate:"2023-02-07",deps:[Ns],reducers:[function(e,t,n){let r=Tu(e&&e.resourceSource,t,n),o=Mu(e&&e.resourceStore,t,r,n),i=function(e,t){return e&&t?"SET_RESOURCE_ENTITY_EXPANDED"===t.type?Object.assign(Object.assign({},e),{[t.id]:t.isExpanded}):e:{}}(e&&e.resourceEntityExpansions,t);return{resourceSource:r,resourceStore:o,resourceEntityExpansions:i}}],isLoadingFuncs:[e=>e.resourceSource&&e.resourceSource.isFetching],eventRefiners:Iu,eventDefMemberAdders:[function(e){return{resourceIds:(t=e.resourceIds,(t||[]).map((e=>String(e)))).concat(e.resourceId?[e.resourceId]:[]),resourceEditable:e.resourceEditable};var t}],isDraggableTransformers:[function(e,t,n,r){if(!e){let e=r.getCurrentData();if(e.viewSpecs[e.currentViewType].optionDefaults.needsResourceData&&xu(t,r))return!0}return e}],eventDragMutationMassagers:[function(e,t,n){let r=t.dateSpan.resourceId,o=n.dateSpan.resourceId;r&&o&&r!==o&&(e.resourceMutation={matchResourceId:r,setResourceId:o})}],eventDefMutationAppliers:[function(e,t,n){let r=t.resourceMutation;if(r&&xu(e,n)){let t=e.resourceIds.indexOf(r.matchResourceId);if(-1!==t){let n=e.resourceIds.slice();n.splice(t,1),-1===n.indexOf(r.setResourceId)&&n.push(r.setResourceId),e.resourceIds=n}}}],dateSelectionTransformers:[function(e,t){let 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:[class{constructor(){this.filterResources=Cn(Su)}transform(e,t){return t.viewSpec.optionDefaults.needsResourceData?{resourceStore:this.filterResources(t.resourceStore,t.options.filterResourcesWithEvents,t.eventStore,t.dateProfile.activeRange),resourceEntityExpansions:t.resourceEntityExpansions}:null}},class{constructor(){this.buildResourceEventUis=Cn(Eu,cr),this.injectResourceEventUis=Cn(ku)}transform(e,t){return t.viewSpec.optionDefaults.needsResourceData?null:{eventUiBases:this.injectResourceEventUis(e.eventUiBases,e.eventStore.defs,this.buildResourceEventUis(t.resourceStore))}}}],isPropsValid:function(e,t){let n=(new hu).splitProps(Object.assign(Object.assign({},e),{resourceStore:t.getCurrentData().resourceStore}));for(let e in n){let r=n[e];if(e&&n[""]&&(r=Object.assign(Object.assign({},r),{eventStore:so(n[""].eventStore,r.eventStore),eventUiBases:Object.assign(Object.assign({},n[""].eventUiBases),r.eventUiBases)})),!Yi(r,t,{resourceId:e},Nu.bind(null,e)))return!1}return!0},externalDefTransforms:[function(e){return e.resourceId?{resourceId:e.resourceId}:{}}],eventDropTransformers:[function(e,t){let{resourceMutation:n}=e;if(n){let{calendarApi:e}=t;return{oldResource:e.getResourceById(n.matchResourceId),newResource:e.getResourceById(n.setResourceId)}}return{oldResource:null,newResource:null}}],optionChangeHandlers:Lu,optionRefiners:Bu,listenerRefiners:Hu,propSetHandlers:{resourceStore:function(e,t){let{emitter:n}=t;n.hasHandlers("resourcesSet")&&n.trigger("resourcesSet",function(e,t){let n=[];for(let r in e)n.push(new pu(t,e[r]));return n}(e,t))}}});function Wu({depth:e,hasChildren:t,isExpanded:n,onExpanderClick:r}){let o=[];for(let t=0;t<e;t+=1)o.push(ce("span",{className:"fc-icon"}));let i=["fc-icon"];return t&&(n?i.push("fc-icon-minus-square"):i.push("fc-icon-plus-square")),o.push(ce("span",{className:"fc-datagrid-expander"+(t?"":" fc-datagrid-expander-placeholder"),onClick:r},ce("span",{className:i.join(" ")}))),ce(le,{},...o)}class zu extends kr{constructor(){super(...arguments),this.refineRenderProps=An(qu),this.onExpanderClick=e=>{let{props:t}=this;t.hasChildren&&this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:t.resource.id,isExpanded:!t.isExpanded})}}render(){let{props:e,context:t}=this,{colSpec:n}=e,r=this.refineRenderProps({resource:e.resource,fieldValue:e.fieldValue,context:t});return ce(Tr,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource"],elAttrs:{role:"gridcell","data-resource-id":e.resource.id},renderProps:r,generatorName:n.isMain?"resourceLabelContent":void 0,customGenerator:n.cellContent,defaultGenerator:Vu,classNameGenerator:n.cellClassNames,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},(t=>ce("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},ce("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},n.isMain&&ce(Wu,{depth:e.depth,hasChildren:e.hasChildren,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),ce(t,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})))))}}function Vu(e){return e.fieldValue||ce(le,null," ")}function qu(e){return{resource:new pu(e.context,e.resource),fieldValue:e.fieldValue,view:e.context.viewApi}}class Yu extends kr{render(){let{props:e,context:t}=this,{colSpec:n}=e,r={groupValue:e.fieldValue,view:t.viewApi};return ce(Tr,{elTag:"td",elClasses:["fc-datagrid-cell","fc-resource-group"],elAttrs:{role:"gridcell",rowSpan:e.rowSpan},renderProps:r,generatorName:"resourceGroupLabelContent",customGenerator:n.cellContent,defaultGenerator:Gu,classNameGenerator:n.cellClassNames,didMount:n.cellDidMount,willUnmount:n.cellWillUnmount},(e=>ce("div",{className:"fc-datagrid-cell-frame fc-datagrid-cell-frame-liquid"},ce(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-sticky"]}))))}}function Gu(e){return e.groupValue||ce(le,null," ")}class Ku extends kr{render(){let{props:e}=this,{resource:t,rowSpans:n,depth:r}=e,o=Ou(t);return ce("tr",{role:"row"},e.colSpecs.map(((i,a)=>{let s=n[a];if(0===s)return null;null==s&&(s=1);let c=i.field?o[i.field]:t.title||fu(t.id);return s>1?ce(Yu,{key:a,colSpec:i,fieldValue:c,rowSpan:s}):ce(zu,{key:a,colSpec:i,resource:t,fieldValue:c,depth:r,hasChildren:e.hasChildren,isExpanded:e.isExpanded,innerHeight:e.innerHeight})})))}}Ku.addPropsEquality({rowSpans:un});class Qu extends kr{constructor(){super(...arguments),this.innerInnerRef={current:null},this.onExpanderClick=()=>{let{props:e}=this;this.context.dispatch({type:"SET_RESOURCE_ENTITY_EXPANDED",id:e.id,isExpanded:!e.isExpanded})}}render(){let{props:e,context:t}=this,n={groupValue:e.group.value,view:t.viewApi},r=e.group.spec;return ce("tr",{role:"row"},ce(Tr,{elTag:"th",elClasses:["fc-datagrid-cell","fc-resource-group",t.theme.getClass("tableCellShaded")],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.spreadsheetColCnt},renderProps:n,generatorName:"resourceGroupLabelContent",customGenerator:r.labelContent,defaultGenerator:Xu,classNameGenerator:r.labelClassNames,didMount:r.labelDidMount,willUnmount:r.labelWillUnmount},(t=>ce("div",{className:"fc-datagrid-cell-frame",style:{height:e.innerHeight}},ce("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner",ref:this.innerInnerRef},ce(Wu,{depth:0,hasChildren:!0,isExpanded:e.isExpanded,onExpanderClick:this.onExpanderClick}),ce(t,{elTag:"span",elClasses:["fc-datagrid-cell-main"]}))))))}}function Xu(e){return e.groupValue||ce(le,null," ")}Qu.addPropsEquality({group:function(e,t){return e.spec===t.spec&&e.value===t.value}});class $u extends kr{constructor(){super(...arguments),this.resizerElRefs=new ea(this._handleColResizerEl.bind(this)),this.colDraggings={}}render(){let{colSpecs:e,superHeaderRendering:t,rowInnerHeights:n}=this.props,r={view:this.context.viewApi},o=[];if(n=n.slice(),t){let i=n.shift();o.push(ce("tr",{key:"row-super",role:"row"},ce(Tr,{elTag:"th",elClasses:["fc-datagrid-cell","fc-datagrid-cell-super"],elAttrs:{role:"columnheader",scope:"colgroup",colSpan:e.length},renderProps:r,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},(e=>ce("div",{className:"fc-datagrid-cell-frame",style:{height:i}},ce(e,{elTag:"div",elClasses:["fc-datagrid-cell-cushion","fc-scrollgrid-sync-inner"]}))))))}let i=n.shift();return o.push(ce("tr",{key:"row",role:"row"},e.map(((t,n)=>{let o=n===e.length-1;return ce(Tr,{key:n,elTag:"th",elClasses:["fc-datagrid-cell"],elAttrs:{role:"columnheader"},renderProps:r,generatorName:"resourceAreaHeaderContent",customGenerator:t.headerContent,defaultGenerator:t.headerDefault,classNameGenerator:t.headerClassNames,didMount:t.headerDidMount,willUnmount:t.headerWillUnmount},(e=>ce("div",{className:"fc-datagrid-cell-frame",style:{height:i}},ce("div",{className:"fc-datagrid-cell-cushion fc-scrollgrid-sync-inner"},t.isMain&&ce("span",{className:"fc-datagrid-expander fc-datagrid-expander-placeholder"},ce("span",{className:"fc-icon"})),ce(e,{elTag:"span",elClasses:["fc-datagrid-cell-main"]})),!o&&ce("div",{className:"fc-datagrid-cell-resizer",ref:this.resizerElRefs.createRef(n)}))))})))),ce(le,null,o)}_handleColResizerEl(e,t){let{colDraggings:n}=this;if(e){let r=this.initColResizing(e,parseInt(t,10));r&&(n[t]=r)}else{let e=n[t];e&&(e.destroy(),delete n[t])}}initColResizing(e,t){let{pluginHooks:n,isRtl:r}=this.context,{onColWidthChange:o}=this.props,i=n.elementDraggingImpl;if(i){let n,a,s=new i(e);return s.emitter.on("dragstart",(()=>{let r=At(_t(e,"tr"),"th");a=r.map((e=>e.getBoundingClientRect().width)),n=a[t]})),s.emitter.on("dragmove",(e=>{a[t]=Math.max(n+e.deltaX*(r?-1:1),20),o&&o(a.slice())})),s.setAutoScrollEnabled(!1),s}return null}}class Ju extends kr{constructor(){super(...arguments),this.refineRenderProps=An(gu),this.handleHeightChange=(e,t)=>{this.props.onHeightChange&&this.props.onHeightChange(_t(e,"tr"),t)}}render(){let{props:e,context:t}=this,{options:n}=t,r=this.refineRenderProps({resource:e.resource,context:t});return ce("tr",{ref:e.elRef},ce(Tr,{elTag:"td",elClasses:["fc-timeline-lane","fc-resource"],elAttrs:{"data-resource-id":e.resource.id},renderProps:r,generatorName:"resourceLaneContent",customGenerator:n.resourceLaneContent,classNameGenerator:n.resourceLaneClassNames,didMount:n.resourceLaneDidMount,willUnmount:n.resourceLaneWillUnmount},(t=>ce("div",{className:"fc-timeline-lane-frame",style:{height:e.innerHeight}},ce(t,{elTag:"div",elClasses:["fc-timeline-lane-misc"]}),ce(iu,{dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:e.nextDayThreshold,businessHours:e.businessHours,eventStore:e.eventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,timelineCoords:e.timelineCoords,onHeightChange:this.handleHeightChange,resourceId:e.resource.id})))))}}class el extends kr{render(){let{props:e,context:t}=this,{renderHooks:n}=e,r={groupValue:e.groupValue,view:t.viewApi};return ce("tr",{ref:e.elRef},ce(Tr,{elTag:"td",elRef:e.elRef,elClasses:["fc-timeline-lane","fc-resource-group",t.theme.getClass("tableCellShaded")],renderProps:r,generatorName:"resourceGroupLaneContent",customGenerator:n.laneContent,classNameGenerator:n.laneClassNames,didMount:n.laneDidMount,willUnmount:n.laneWillUnmount},(t=>ce(t,{elTag:"div",elStyle:{height:e.innerHeight}}))))}}class tl extends kr{render(){let{props:e,context:t}=this,{rowElRefs:n,innerHeights:r}=e;return ce("tbody",null,e.rowNodes.map(((o,i)=>{if(o.group)return ce(el,{key:o.id,elRef:n.createRef(o.id),groupValue:o.group.value,renderHooks:o.group.spec,innerHeight:r[i]||""});if(o.resource){let a=o.resource;return ce(Ju,Object.assign({key:o.id,elRef:n.createRef(o.id)},e.splitProps[a.id],{resource:a,dateProfile:e.dateProfile,tDateProfile:e.tDateProfile,nowDate:e.nowDate,todayRange:e.todayRange,nextDayThreshold:t.options.nextDayThreshold,businessHours:a.businessHours||e.fallbackBusinessHours,innerHeight:r[i]||"",timelineCoords:e.slatCoords,onHeightChange:e.onRowHeightChange}))}return null})))}}class nl extends kr{constructor(){super(...arguments),this.rootElRef={current:null},this.rowElRefs=new ea}render(){let{props:e,context:t}=this;return ce("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}},ce(tl,{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}))}componentDidMount(){this.updateCoords()}componentDidUpdate(){this.updateCoords()}componentWillUnmount(){this.props.onRowCoords&&this.props.onRowCoords(null)}updateCoords(){let{props:e}=this;var t;e.onRowCoords&&null!==e.clientWidth&&this.props.onRowCoords(new Pi(this.rootElRef.current,(t=this.rowElRefs.currentMap,e.rowNodes.map((e=>t[e.id]))),!1,!0))}}class rl extends Zi{constructor(){super(...arguments),this.computeHasResourceBusinessHours=Cn(ol),this.resourceSplitter=new hu,this.bgSlicer=new tu,this.slatsRef={current:null},this.state={slatCoords:null},this.handleEl=e=>{e?this.context.registerInteractiveComponent(this,{el:e}):this.context.unregisterInteractiveComponent(this)},this.handleSlatCoords=e=>{this.setState({slatCoords:e}),this.props.onSlatCoords&&this.props.onSlatCoords(e)},this.handleRowCoords=e=>{this.rowCoords=e,this.props.onRowCoords&&this.props.onRowCoords(e)}}render(){let{props:e,state:t,context:n}=this,{dateProfile:r,tDateProfile:o}=e,i=cn(o.slotDuration).unit,a=this.computeHasResourceBusinessHours(e.rowNodes),s=this.resourceSplitter.splitProps(e),c=s[""],u=this.bgSlicer.sliceProps(c,r,o.isTimeScale?null:e.nextDayThreshold,n,r,n.dateProfileGenerator,o,n.dateEnv),l=t.slatCoords&&t.slatCoords.dateProfile===e.dateProfile?t.slatCoords:null;return ce("div",{ref:this.handleEl,className:["fc-timeline-body",e.expandRows?"fc-timeline-body-expandrows":""].join(" "),style:{minWidth:e.tableMinWidth}},ce(Ui,{unit:i},((t,i)=>ce(le,null,ce(Xc,{ref:this.slatsRef,dateProfile:r,tDateProfile:o,nowDate:t,todayRange:i,clientWidth:e.clientWidth,tableColGroupNode:e.tableColGroupNode,tableMinWidth:e.tableMinWidth,onCoords:this.handleSlatCoords,onScrollLeftRequest:e.onScrollLeftRequest}),ce(eu,{businessHourSegs:a?null:u.businessHourSegs,bgEventSegs:u.bgEventSegs,timelineCoords:l,eventResizeSegs:u.eventResize?u.eventResize.segs:[],dateSelectionSegs:u.dateSelectionSegs,nowDate:t,todayRange:i}),ce(nl,{rowNodes:e.rowNodes,dateProfile:r,tDateProfile:e.tDateProfile,nowDate:t,todayRange:i,splitProps:s,fallbackBusinessHours:a?e.businessHours:null,clientWidth:e.clientWidth,minHeight:e.expandRows?e.clientHeight:"",tableMinWidth:e.tableMinWidth,innerHeights:e.rowInnerHeights,slatCoords:l,onRowCoords:this.handleRowCoords,onRowHeightChange:e.onRowHeightChange}),n.options.nowIndicator&&l&&l.isDateInRange(t)&&ce("div",{className:"fc-timeline-now-indicator-container"},ce(va,{elClasses:["fc-timeline-now-indicator-line"],elStyle:qc(l.dateToCoord(t),n.isRtl),isAxis:!1,date:t}))))))}queryHit(e,t){let n=this.rowCoords,r=n.topToIndex(t);if(null!=r){let t=this.props.rowNodes[r].resource;if(t){let o=this.slatsRef.current.positionToHit(e);if(o)return{dateProfile:this.props.dateProfile,dateSpan:{range:o.dateSpan.range,allDay:o.dateSpan.allDay,resourceId:t.id},rect:{left:o.left,right:o.right,top:n.tops[r],bottom:n.bottoms[r]},dayEl:o.dayEl,layer:0}}}return null}}function ol(e){for(let t of e){let e=t.resource;if(e&&e.businessHours)return!0}return!1}class il extends kr{constructor(){super(...arguments),this.scrollGridRef={current:null},this.timeBodyScrollerElRef={current:null},this.spreadsheetHeaderChunkElRef={current:null},this.rootElRef={current:null},this.ensureScrollGridResizeId=0,this.state={resourceAreaWidthOverride:null},this.ensureScrollGridResize=()=>{this.ensureScrollGridResizeId&&clearTimeout(this.ensureScrollGridResizeId),this.ensureScrollGridResizeId=setTimeout((()=>{this.scrollGridRef.current.handleSizing(!1)}),Hi.SCROLLGRID_RESIZE_INTERVAL+1)}}render(){let{props:e,state:t,context:n}=this,{options:r}=n,o=!e.forPrint&&fa(r),i=!e.forPrint&&pa(r),a=[{type:"header",key:"header",syncRowHeights:!0,isSticky:o,chunks:[{key:"datagrid",elRef:this.spreadsheetHeaderChunkElRef,tableClassName:"fc-datagrid-header",rowContent:e.spreadsheetHeaderRows},{key:"divider",outerContent:ce("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:e.timeHeaderContent}]},{type:"body",key:"body",syncRowHeights:!0,liquid:!0,expandRows:Boolean(r.expandRows),chunks:[{key:"datagrid",tableClassName:"fc-datagrid-body",rowContent:e.spreadsheetBodyRows},{key:"divider",outerContent:ce("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",scrollerElRef:this.timeBodyScrollerElRef,content:e.timeBodyContent}]}];i&&a.push({type:"footer",key:"footer",isSticky:!0,chunks:[{key:"datagrid",content:da},{key:"divider",outerContent:ce("td",{role:"presentation",className:"fc-resource-timeline-divider "+n.theme.getClass("tableCellShaded")})},{key:"timeline",content:da}]});let s=null!=t.resourceAreaWidthOverride?t.resourceAreaWidthOverride:r.resourceAreaWidth;return ce(Oc,{ref:this.scrollGridRef,elRef:this.rootElRef,liquid:!e.isHeightAuto&&!e.forPrint,collapsibleWidth:!1,colGroups:[{cols:e.spreadsheetCols,width:s},{cols:[]},{cols:e.timeCols}],sections:a})}forceTimeScroll(e){this.scrollGridRef.current.forceScrollLeft(2,e)}forceResourceScroll(e){this.scrollGridRef.current.forceScrollTop(1,e)}getResourceScroll(){return this.timeBodyScrollerElRef.current.scrollTop}componentDidMount(){this.initSpreadsheetResizing()}componentWillUnmount(){this.destroySpreadsheetResizing()}initSpreadsheetResizing(){let{isRtl:e,pluginHooks:t}=this.context,n=t.elementDraggingImpl,r=this.spreadsheetHeaderChunkElRef.current;if(n){let t,o,i=this.rootElRef.current,a=this.spreadsheetResizerDragging=new n(i,".fc-resource-timeline-divider");a.emitter.on("dragstart",(()=>{t=r.getBoundingClientRect().width,o=i.getBoundingClientRect().width})),a.emitter.on("dragmove",(n=>{let r=t+n.deltaX*(e?-1:1);r=Math.max(r,30),r=Math.min(r,o-30),this.setState({resourceAreaWidthOverride:r},this.ensureScrollGridResize)})),a.setAutoScrollEnabled(!1)}}destroySpreadsheetResizing(){this.spreadsheetResizerDragging&&this.spreadsheetResizerDragging.destroy()}}class al extends kr{constructor(e,t){super(e,t),this.processColOptions=Cn(ll),this.buildTimelineDateProfile=Cn(Rc),this.hasNesting=Cn(ul),this.buildRowNodes=Cn(vu),this.layoutRef={current:null},this.rowNodes=[],this.renderedRowNodes=[],this.buildRowIndex=Cn(sl),this.handleSlatCoords=e=>{this.setState({slatCoords:e})},this.handleRowCoords=e=>{this.rowCoords=e,this.scrollResponder.update(!1)},this.handleMaxCushionWidth=e=>{this.setState({slotCushionMaxWidth:Math.ceil(e)})},this.handleScrollLeftRequest=e=>{this.layoutRef.current.forceTimeScroll(e)},this.handleScrollRequest=e=>{let{rowCoords:t}=this,n=this.layoutRef.current,r=e.rowId||e.resourceId;if(t){if(r){let o=this.buildRowIndex(this.renderedRowNodes)[r];if(null!=o){let r=null!=e.fromBottom?t.bottoms[o]-e.fromBottom:t.tops[o];n.forceResourceScroll(r)}}return!0}return null},this.handleColWidthChange=e=>{this.setState({spreadsheetColWidths:e})},this.state={resourceAreaWidth:t.options.resourceAreaWidth,spreadsheetColWidths:[]}}render(){let{props:e,state:t,context:n}=this,{options:r,viewSpec:o}=n,{superHeaderRendering:i,groupSpecs:a,orderSpecs:s,isVGrouping:c,colSpecs:u}=this.processColOptions(n.options),l=this.buildTimelineDateProfile(e.dateProfile,n.dateEnv,r,n.dateProfileGenerator),d=this.rowNodes=this.buildRowNodes(e.resourceStore,a,s,c,e.resourceEntityExpansions,r.resourcesInitiallyExpanded),{slotMinWidth:f}=r,p=su(l,f||this.computeFallbackSlotMinWidth(l));return ce(Zr,{elClasses:["fc-resource-timeline",!this.hasNesting(d)&&"fc-resource-timeline-flat","fc-timeline",!1===r.eventOverlap?"fc-timeline-overlap-disabled":"fc-timeline-overlap-enabled"],viewSpec:o},ce(il,{ref:this.layoutRef,forPrint:e.forPrint,isHeightAuto:e.isHeightAuto,spreadsheetCols:cl(u,t.spreadsheetColWidths,""),spreadsheetHeaderRows:e=>ce($u,{superHeaderRendering:i,colSpecs:u,onColWidthChange:this.handleColWidthChange,rowInnerHeights:e.rowSyncHeights}),spreadsheetBodyRows:e=>ce(le,null,this.renderSpreadsheetRows(d,u,e.rowSyncHeights)),timeCols:p,timeHeaderContent:n=>ce(Gc,{clientWidth:n.clientWidth,clientHeight:n.clientHeight,tableMinWidth:n.tableMinWidth,tableColGroupNode:n.tableColGroupNode,dateProfile:e.dateProfile,tDateProfile:l,slatCoords:t.slatCoords,rowInnerHeights:n.rowSyncHeights,onMaxCushionWidth:f?null:this.handleMaxCushionWidth}),timeBodyContent:t=>ce(rl,{dateProfile:e.dateProfile,clientWidth:t.clientWidth,clientHeight:t.clientHeight,tableMinWidth:t.tableMinWidth,tableColGroupNode:t.tableColGroupNode,expandRows:t.expandRows,tDateProfile:l,rowNodes:d,businessHours:e.businessHours,dateSelection:e.dateSelection,eventStore:e.eventStore,eventUiBases:e.eventUiBases,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,resourceStore:e.resourceStore,nextDayThreshold:n.options.nextDayThreshold,rowInnerHeights:t.rowSyncHeights,onSlatCoords:this.handleSlatCoords,onRowCoords:this.handleRowCoords,onScrollLeftRequest:this.handleScrollLeftRequest,onRowHeightChange:t.reportRowHeightChange})}))}renderSpreadsheetRows(e,t,n){return e.map(((e,r)=>e.group?ce(Qu,{key:e.id,id:e.id,spreadsheetColCnt:t.length,isExpanded:e.isExpanded,group:e.group,innerHeight:n[r]||""}):e.resource?ce(Ku,{key:e.id,colSpecs:t,rowSpans:e.rowSpans,depth:e.depth,isExpanded:e.isExpanded,hasChildren:e.hasChildren,resource:e.resource,innerHeight:n[r]||""}):null))}componentDidMount(){this.renderedRowNodes=this.rowNodes,this.scrollResponder=this.context.createScrollResponder(this.handleScrollRequest)}getSnapshotBeforeUpdate(){return this.props.forPrint?{}:{resourceScroll:this.queryResourceScroll()}}componentDidUpdate(e,t,n){this.renderedRowNodes=this.rowNodes,this.scrollResponder.update(e.dateProfile!==this.props.dateProfile),n.resourceScroll&&this.handleScrollRequest(n.resourceScroll)}componentWillUnmount(){this.scrollResponder.detach()}computeFallbackSlotMinWidth(e){return Math.max(30,(this.state.slotCushionMaxWidth||0)/e.slotsPerLabel)}queryResourceScroll(){let{rowCoords:e,renderedRowNodes:t}=this;if(e){let n=this.layoutRef.current,r=e.bottoms,o=n.getResourceScroll(),i={};for(let e=0;e<r.length;e+=1){let n=t[e],a=r[e]-o;if(a>0){i.rowId=n.id,i.fromBottom=a;break}}return i}return null}}function sl(e){let t={};for(let n=0;n<e.length;n+=1)t[e[n].id]=n;return t}function cl(e,t,n=""){return e.map(((e,r)=>({className:e.isMain?"fc-main-col":"",width:t[r]||e.width||n})))}function ul(e){for(let t of e){if(t.group)return!0;if(t.resource&&t.hasChildren)return!0}return!1}function ll(e){let 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,headerDefault:()=>"Resources",headerDidMount:e.resourceAreaHeaderDidMount,headerWillUnmount:e.resourceAreaHeaderWillUnmount});let r=[],o=[],i=[],a=!1;for(let n of t)n.group?o.push(Object.assign(Object.assign({},n),{cellClassNames:n.cellClassNames||e.resourceGroupLabelClassNames,cellContent:n.cellContent||e.resourceGroupLabelContent,cellDidMount:n.cellDidMount||e.resourceGroupLabelDidMount,cellWillUnmount:n.cellWillUnmount||e.resourceGroupLaneWillUnmount})):r.push(n);let s=r[0];if(s.isMain=!0,s.cellClassNames=s.cellClassNames||e.resourceLabelClassNames,s.cellContent=s.cellContent||e.resourceLabelContent,s.cellDidMount=s.cellDidMount||e.resourceLabelDidMount,s.cellWillUnmount=s.cellWillUnmount||e.resourceLabelWillUnmount,o.length)i=o,a=!0;else{let t=e.resourceGroupField;t&&i.push({field:t,labelClassNames:e.resourceGroupLabelClassNames,labelContent:e.resourceGroupLabelContent,labelDidMount:e.resourceGroupLabelDidMount,labelWillUnmount:e.resourceGroupLabelWillUnmount,laneClassNames:e.resourceGroupLaneClassNames,laneContent:e.resourceGroupLaneContent,laneDidMount:e.resourceGroupLaneDidMount,laneWillUnmount:e.resourceGroupLaneWillUnmount})}let c=e.resourceOrder||mu,u=[];for(let e of c){let t=!1;for(let n of i)if(n.field===e.field){n.order=e.order,t=!0;break}t||u.push(e)}return{superHeaderRendering:n,isVGrouping:a,groupSpecs:i,colSpecs:o.concat(r),orderSpecs:u}}al.addStateEquality({spreadsheetColWidths:un});Ot(".fc .fc-resource-timeline-divider{cursor:col-resize;width:3px}.fc .fc-resource-group{font-weight:inherit;text-align:inherit}.fc .fc-resource-timeline .fc-resource-group:not([rowspan]){background:var(--fc-neutral-bg-color)}.fc .fc-timeline-lane-frame{position:relative}.fc .fc-timeline-overlap-enabled .fc-timeline-lane-frame .fc-timeline-events{box-sizing:content-box;padding-bottom:10px}.fc-timeline-body-expandrows td.fc-timeline-lane{position:relative}.fc-timeline-body-expandrows .fc-timeline-lane-frame{position:static}.fc-datagrid-cell-frame-liquid{height:100%}.fc-liquid-hack .fc-datagrid-cell-frame-liquid{bottom:0;height:auto;left:0;position:absolute;right:0;top:0}.fc .fc-datagrid-header .fc-datagrid-cell-frame{align-items:center;display:flex;justify-content:flex-start;position:relative}.fc .fc-datagrid-cell-resizer{bottom:0;cursor:col-resize;position:absolute;top:0;width:5px;z-index:1}.fc .fc-datagrid-cell-cushion{overflow:hidden;padding:8px;white-space:nowrap}.fc .fc-datagrid-expander{cursor:pointer;opacity:.65}.fc .fc-datagrid-expander .fc-icon{display:inline-block;width:1em}.fc .fc-datagrid-expander-placeholder{cursor:auto}.fc .fc-resource-timeline-flat .fc-datagrid-expander-placeholder{display:none}.fc-direction-ltr .fc-datagrid-cell-resizer{right:-3px}.fc-direction-rtl .fc-datagrid-cell-resizer{left:-3px}.fc-direction-ltr .fc-datagrid-expander{margin-right:3px}.fc-direction-rtl .fc-datagrid-expander{margin-left:3px}");var dl=Fa({name:"@fullcalendar/resource-timeline",premiumReleaseDate:"2023-02-07",deps:[Ns,Uu,cu],initialView:"resourceTimelineDay",views:{resourceTimeline:{type:"timeline",component:al,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}}}}),fl=a(42060),pl=a(76791),hl=a(49546),ml=a(92300),gl=a(19013),vl=a(91857),yl=a(13882);function bl(e,t){(0,yl.Z)(2,arguments);var n=(0,gl.default)(e),r=(0,gl.default)(t),o=n.getTime()-r.getTime();return o<0?-1:o>0?1:o}var wl=a(23842),Ol=function(e,t){var n={locale:wl.Z.getDateFnsLocale(e)};return(0,hl.default)(t,"HH",n)},xl=function(e,t,n){var r=(0,ml.default)(n,t),o=function(e,t){(0,yl.Z)(2,arguments);var n=(0,gl.default)(e),r=(0,gl.default)(t),o=bl(n,r),i=Math.abs((0,vl.default)(n,r));n.setFullYear(1584),r.setFullYear(1584);var a=bl(n,r)===-o,s=o*(i-Number(a));return 0===s?0:s}(n,t),i=r>0,a="d. LLLL".concat(o>0?" y":""),s="H:mm",c={locale:wl.Z.getDateFnsLocale(e)},u=(0,hl.default)(t,a,c),l=(0,hl.default)(n,a,c),d=(0,hl.default)(t,s,c),f=(0,hl.default)(n,s,c);return"".concat(u,", ").concat(d," - ").concat(i?"".concat(l,", "):"").concat(f)},Sl=a(85893);const El=function(e){var t=e.conflictStatus,n=e.intl;if(t!==W.ACCEPTED&&t!==W.EXISTING)return null;var r=t===W.ACCEPTED,o="client.scheduler.conflict".concat(r?"Accepted":"Existing"),i=r?"✓":"✕";return(0,Sl.jsxs)("span",{children:[i," ",n.formatMessage({id:o})]})};var kl,_l=a(44012),Cl=a(65035),Al=a(16751),Pl=(a(59339),a(9198)),jl=a.n(Pl),Dl=a(38205),Tl=a(28655),Rl=a.n(Tl),Zl=Dl.ZP.span.withConfig({displayName:"StyledChildrenWrapper"})(kl||(kl=Rl()(["\n cursor: pointer;\n user-select: none;\n"])));const Ml=function(e){var t=e.children,n=e.onOpen;return(0,Sl.jsx)(Zl,{onClick:n,children:t})};(0,a(77281).X)();const Il=(0,Dl.Zz)((0,E.ZP)((function(e){var t,n=e.children,r=e.value,o=e.onChange,i=e.intl,a=i.locale,s=(0,A.useRef)(null),c=(0,A.useState)(!1),u=C()(c,2),l=u[0],d=u[1],f=function(e){var t,n;(d(e),null!==(t=s.current)&&void 0!==t&&t.setPreSelection)&&(null===(n=s.current)||void 0===n||n.setPreSelection(r))};return(0,Sl.jsx)(jl(),{ref:s,selected:r,preSelection:null,onChange:o,showTimeInput:!1,dateFormat:"P",showMonthDropdown:!0,showYearDropdown:!0,scrollableYearDropdown:!0,fixedHeight:!0,showPopperArrow:!1,open:l,onFocus:function(){f(!0)},onClickOutside:function(){f(!1)},locale:a,enableTabLoop:!1,customInput:(0,Sl.jsx)(Ml,{onOpen:function(){f(!0)},children:n}),todayButton:(t="client.component.datePicker.todayLabel",i.formatMessage({id:t}))})})));var Nl,Fl,Ll,Bl,Hl,Ul,Wl,zl=a(34206),Vl=a(88162),ql=a(7281),Yl=a(24875),Gl=Dl.ZP.div.withConfig({displayName:"StyledNavigationFullCalendar"})(Nl||(Nl=Rl()(["\n display: flex;\n justify-content: space-between;\n padding: ",";\n border-bottom: 3px solid ",";\n flex-wrap: wrap;\n gap: ",";\n\n > div {\n display: flex;\n align-items: center;\n }\n"])),ql.Z.space(-.8),Yl.FS.color("backgroundBody"),ql.Z.space(-.5)),Kl=Dl.ZP.div.withConfig({displayName:"StyledButtonGroupReloadWrapper"})(Fl||(Fl=Rl()(["\n && {\n display: grid;\n grid-template-columns: auto 40px;\n }\n"]))),Ql=Dl.ZP.div.withConfig({displayName:"StyledReloadButtonWrapper"})(Ll||(Ll=Rl()([""])));function Xl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function $l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Xl(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Xl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Jl=function(e,t){return e===t?{ink:"secondary"}:{}},ed=function(e,t){return t.formatMessage({id:e})};const td=(0,E.ZP)((function(e){var t=e.date,n=e.changeRange,r=e.changeView,o=e.chooseNext,i=e.choosePrev,a=e.chooseToday,s=e.goToDate,c=e.intl,u=e.isLoading,l=e.refresh,d=e.title,f=e.type;return(0,Sl.jsxs)(Gl,{children:[(0,Sl.jsxs)("div",{children:[(0,Sl.jsx)(Cl.Z,{look:"raised",onClick:function(){a(),n()},children:Bl||(Bl=(0,Sl.jsx)(_l.Z,{id:"client.scheduler.today"}))}),(0,Sl.jsxs)(Al.Z,{children:[(0,Sl.jsx)(Cl.Z,{look:"raised",onClick:function(){i(),n()},icon:"chevron-left",title:ed("client.scheduler.previous",c)}),(0,Sl.jsx)(Cl.Z,{look:"raised",onClick:function(){o(),n()},icon:"chevron-right",title:ed("client.scheduler.next",c)})]}),(0,Sl.jsxs)(Il,{value:t,onChange:function(e){s(e),n()},children:[(0,Sl.jsx)(zl.ZP.Span,{children:d}),(0,Sl.jsx)(Vl.Z,{style:{marginLeft:"5px"},icon:"chevron-down"})]})]}),(0,Sl.jsxs)(Kl,{children:[(0,Sl.jsxs)(Al.Z,{children:[(0,Sl.jsx)(Cl.Z,$l($l({look:"raised"},Jl("dayView",f)),{},{onClick:function(){return r("dayView")},children:Hl||(Hl=(0,Sl.jsx)(_l.Z,{id:"client.scheduler.day"}))})),(0,Sl.jsx)(Cl.Z,$l($l($l({look:"raised"},Jl("weekView",f)),Jl("weekViewSimple",f)),{},{onClick:function(){return r("weekViewSimple"!==f?"weekViewSimple":"weekView")},children:Ul||(Ul=(0,Sl.jsx)(_l.Z,{id:"client.scheduler.week"}))})),(0,Sl.jsx)(Cl.Z,$l($l({look:"raised"},Jl("monthView",f)),{},{onClick:function(){return r("monthView")},children:Wl||(Wl=(0,Sl.jsx)(_l.Z,{id:"client.scheduler.month"}))}))]}),(0,Sl.jsx)(Ql,{children:(0,Sl.jsx)(Cl.Z,{icon:u?"":"sync",onClick:function(){u||l()},pending:u,title:ed("client.scheduler.reload",c)})})]})]})})),nd=td;const rd=function(e){var t=e.fieldValue,n=e.resource,r=e.onCalendarRemove;return(0,Sl.jsxs)(Sl.Fragment,{children:[(0,Sl.jsx)("input",{type:"checkbox",defaultChecked:!0,className:"remove-resource-checkbox",onClick:function(){return r(n.extendedProps.entityKey,n.extendedProps.entityModel)}}),t]})};var od,id,ad,sd,cd=a(30759),ud=a(11347),ld=Dl.ZP.div.withConfig({displayName:"StyledFullCalendarWrapper"})(od||(od=Rl()(["\n height: 100%;\n display: grid;\n grid-template-rows: auto 1fr;\n\n .fc {\n ",";\n\n table {\n font-size: ",";\n }\n\n // decrease header height\n .fc-datagrid-header {\n .fc-datagrid-cell-frame {\n height: 25px !important;\n }\n }\n\n .fc-theme-standard {\n td,\n th {\n border: 1px solid ",";\n }\n }\n\n .fc-timeline-event {\n overflow: hidden;\n }\n\n .fc-timeline-slot-frame a {\n text-decoration: none;\n }\n\n // decrease header height\n .fc-timeline-slot-frame.fc-timeline-slot-frame {\n height: 25px !important;\n }\n\n .remove-resource-checkbox {\n margin-right: 6px;\n }\n\n .fc-scroller {\n ","\n }\n\n .fc-scrollgrid {\n border-top: 0; // remove top border as it otherwise causes a double border when not scrolling\n border-color: ",";\n }\n\n // prevent top border from disappearing on scroll\n & .fc-scroller-harness {\n border-top: 1px solid ",";\n }\n\n .fc-timeline-header-row {\n th {\n font-weight: ",";\n }\n }\n\n .fc-event {\n cursor: pointer;\n\n .dark {\n color: ",";\n }\n\n .bright {\n color: ",";\n }\n\n .conflict {\n border: 2px dashed ",";\n }\n\n .fc-event-time {\n overflow: visible;\n font-size: ",";\n font-weight: ",";\n }\n }\n\n .fc-event-title {\n font-size: ",";\n }\n }\n"])),(0,cd.Z)(),ql.Z.font(-2),Yl.FS.color("border"),ud.C,Yl.FS.color("border"),Yl.FS.color("border"),Yl.FS.fontWeight("regular"),Yl.FS.color("text"),Yl.FS.color("paper"),Yl.FS.color("signal.danger"),ql.Z.font(0),Yl.FS.fontWeight("regular"),ql.Z.font(0)),dd=Dl.ZP.div.withConfig({displayName:"StyledMemoizedFullCalender"})(id||(id=Rl()(["\n overflow-y: auto;\n"]))),fd=(0,Dl.vJ)(ad||(ad=Rl()(["\n @media print {\n body * {\n visibility: hidden;\n }\n\n #section-to-print,\n #section-to-print * {\n visibility: visible;\n color: ",";\n\n input[type='checkbox'] {\n visibility: hidden !important;\n }\n }\n\n #section-to-print {\n position: fixed;\n overflow: visible;\n width: 100%;\n height: 100%;\n top: 0;\n left: 0;\n\n & *:not(.fc-timeline-event-harness *) {\n overflow: visible;\n }\n }\n }\n"])),Yl.FS.color("text"));function pd(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function hd(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?pd(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):pd(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var md=(0,A.forwardRef)((function(e,t){var n=e.resources,r=e.events,o=e.onDateRangeChange,i=e.isLoading,a=e.onRefresh,s=e.onCalendarRemove,c=e.onCalendarRemoveAll,u=e.locale,l=e.onEventClick,d=e.intl,f=(0,A.useRef)(null),p=(0,A.useRef)(null),h=(0,A.useCallback)((function(){var e=f.current.getApi().view;o&&o({startDate:e.activeStart,endDate:e.activeEnd})}),[o]);(0,A.useEffect)((function(){h()}),[h,u]),(0,A.useEffect)((function(){var e=f.current.getApi();e.batchRendering((function(){e.getEventSources().forEach((function(e){return e.remove()})),e.addEventSource(r)}))}),[JSON.stringify(r)]),(0,A.useEffect)((function(){var e=f.current.getApi();e.batchRendering((function(){var t=e.getResources();t.forEach((function(e){var t=n.find((function(t){return e.id===t.id}));t||e.remove()})),n.forEach((function(n){var r=t.find((function(e){return e.id===n.id}));r||e.addResource(n)}))}))}),[JSON.stringify(n)]);var m=(0,Sl.jsx)("input",{type:"checkbox",checked:!0,onChange:function(){return c()},style:{visibility:n.length>0?"visible":"hidden"},className:"remove-all-checkbox"}),g=function(e){var t=xl(u,e.event.start,e.event.end||e.event.start),n=(0,Sl.jsxs)("div",{children:[(0,Sl.jsx)(fl.Z,{type:"html",value:e.event.extendedProps.description}),(0,Sl.jsx)("p",{children:t}),(0,Sl.jsx)("p",{children:(0,Sl.jsx)(El,{conflictStatus:e.event.extendedProps.conflict,intl:d})})]}),r=e.event.extendedProps.styleAttr;return(0,Sl.jsx)(pl.Z,{content:n,isPlainHtml:!0,placement:"top",children:(0,Sl.jsxs)("div",{className:"fc-event-main-frame ".concat(r&&r.join(" ")),children:[e.timeText&&(0,Sl.jsx)("div",{className:"fc-event-time",children:e.timeText}),(0,Sl.jsx)("div",{className:"fc-event-title-container",children:(0,Sl.jsx)("div",{className:"fc-event-title fc-sticky",children:e.event.title||(0,Sl.jsx)(Sl.Fragment,{children:" "})})})]})})},y=(0,A.useMemo)((function(){return(0,Sl.jsx)(Zs,{resourceOrder:"calendarType,title",schedulerLicenseKey:(e="MISSING_ENV_VAR".FULL_CALENDAR_LICENCE,e||(v.Z.logWarning("This Version runs with the NonCommercial FullCalendar license."),"CC-Attribution-NonCommercial-NoDerivatives")),locale:u,plugins:[zs,dl,dc],ref:f,initialView:"dayView",headerToolbar:!1,height:"100%",resourceAreaWidth:"15%",resourceAreaColumns:[{labelText:"",headerContent:m}],resourceLabelContent:function(e){return(0,Sl.jsx)(rd,hd(hd({},e),{},{onCalendarRemove:s}))},eventClick:function(e){l(e.event)},eventContent:g,firstDay:1,slotMinTime:"06:00:00",slotMaxTime:"23:00:00",views:{dayView:{type:"resourceTimelineDay",slotLabelFormat:function(e){return Ol(u,te()(Date,I()(e.date.array)))}},weekView:{type:"resourceTimelineWeek",slotLabelFormat:[{weekday:"short",month:"numeric",day:"numeric"},function(e){return Ol(u,te()(Date,I()(e.date.array)))}]},weekViewSimple:{type:"resourceTimelineWeek",slotDuration:{day:1},slotLabelFormat:[{weekday:"short",month:"numeric",day:"numeric"}]},monthView:{type:"resourceTimelineMonth",slotLabelFormat:{weekday:"short",day:"numeric",omitCommas:!0}}}});var e}),[n.length]);return(0,A.useImperativeHandle)(t,(function(){return{updateSize:function(){setTimeout((function(){f.current.getApi().updateSize()}),0)}}})),(0,Sl.jsxs)(ld,{ref:p,children:[sd||(sd=(0,Sl.jsx)(fd,{})),f.current&&(0,Sl.jsx)(nd,{changeRange:h,changeView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"timelineDay";f.current.getApi().changeView(e),h()},chooseNext:function(){return f.current.getApi().next()},choosePrev:function(){return f.current.getApi().prev()},chooseToday:function(){return f.current.getApi().today()},goToDate:function(e){return f.current.getApi().gotoDate(e)},date:f.current.getApi().getDate(),isLoading:i,refresh:a,title:f.current.getApi().view.title,type:f.current.getApi().view.type}),(0,Sl.jsx)(dd,{id:"section-to-print",children:y})]})}));md.defaultProps={locale:"en"},md.displayName="FullCalendar";const gd=md;const vd=function(e){return(0,Sl.jsx)(gd,{events:(t=e.calendars,t.reduce((function(e,t){return[].concat(I()(e),I()(t.events.map((function(e){return V(V({entity:e.source,resourceId:$(t.key,t.model),title:e.label,start:e.start,end:e.end,description:e.description,conflict:e.conflict},e.color?{backgroundColor:e.color,borderColor:e.color}:{}),{},{styleAttr:[].concat(I()(e.conflict===W.EXISTING?["conflict"]:[]),[(n=e.color,U(n,"bright","dark"))])});var n}))))}),[])),resources:J(e.calendars),onDateRangeChange:e.onDateRangeChange,onCalendarRemove:e.onCalendarRemove,onCalendarRemoveAll:e.onCalendarRemoveAll,onEventClick:e.onEventClick,onRefresh:e.onRefresh,locale:e.locale,isLoading:e.isLoading,intl:e.intl,ref:e.schedulerRef});var t};var yd="scheduler/SET_CALENDARS",bd="scheduler/ON_DATE_RANGE_CHANGE",wd="scheduler/ON_CALENDAR_REMOVE",Od="scheduler/ON_CALENDARS_REMOVE_ALL",xd="scheduler/ON_EVENT_CLICK",Sd="scheduler/ON_REFRESH",Ed="scheduler/REMOVE_EVENTS",kd="scheduler/SET_IS_LOADING",_d=function(){return{type:Ed}},Cd=function(e){return{type:kd,payload:{isLoading:e}}},Ad={onDateRangeChange:function(e){return{type:bd,payload:{dateRange:e}}},onCalendarRemove:function(e,t){return{type:wd,payload:{id:e,entityModel:t}}},onCalendarRemoveAll:function(){return{type:Od}},onEventClick:function(e){return{type:xd,payload:{event:e}}},onRefresh:function(){return{type:Sd}}};const Pd=(0,k.connect)((function(e,t){return{calendars:e.scheduler.calendars,locale:e.intl.locale,isLoading:e.scheduler.isLoading,schedulerRef:e.input.schedulerRef}}),Ad)((0,E.ZP)(vd));var jd,Dd=a(41654),Td=function(e){return Dd.Z.getDispatchActions(e,Rd)},Rd=[{name:"calendars",action:function(e){return{type:yd,payload:{calendars:e}}},argsFactory:function(e){return[e.calendars]}}],Zd=a(81770);function Md(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Id(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Md(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Md(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Nd=(jd={},p()(jd,yd,Zd.Z.singleTransferReducer("calendars")),p()(jd,kd,Zd.Z.singleTransferReducer("isLoading")),p()(jd,Ed,(function(e){return Id(Id({},e),{},{calendars:e.calendars.map((function(e){return Id(Id({},e),{},{events:[]})}))})})),jd),Fd={calendars:[],isLoading:!0};const Ld=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Fd,t=arguments.length>1?arguments[1]:void 0,n=Nd[t.type];return n?n(e,t):e};var Bd=m().mark(zd),Hd=m().mark(Yd),Ud=m().mark(Kd),Wd=m().mark(Qd);function zd(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.$6)([(0,g.Fm)(bd,Vd),(0,g.Fm)(wd,qd),(0,g.Fm)(Od,Yd),(0,g.Fm)(xd,Gd),(0,g.Fm)(Sd,Kd),(0,g.Fm)(yd,Qd)]);case 2:case"end":return e.stop()}}),Bd)}function Vd(e){var t=e.payload;return m().mark((function e(){var n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.gz)(Cd(!0));case 2:return e.next=4,(0,g.gz)(_d());case 4:return n=t.dateRange,e.next=7,(0,g.gz)(c.Z.fireExternalEvent("onDateRangeChange",{dateRange:n}));case 7:case"end":return e.stop()}}),e)}))()}function qd(e){var t=e.payload;return m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.gz)(Cd(!0));case 2:return e.next=4,(0,g.gz)(c.Z.fireExternalEvent("onCalendarRemove",{id:t.id,entityModel:t.entityModel}));case 4:case"end":return e.stop()}}),e)}))()}function Yd(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.gz)(Cd(!0));case 2:return e.next=4,(0,g.gz)(c.Z.fireExternalEvent("onCalendarRemoveAll"));case 4:case"end":return e.stop()}}),Hd)}function Gd(e){var t=e.payload;return m().mark((function e(){var n;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=t.event.extendedProps.entity)){e.next=4;break}return e.next=4,(0,g.gz)(c.Z.fireExternalEvent("onEventClick",n));case 4:case"end":return e.stop()}}),e)}))()}function Kd(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.gz)(Cd(!0));case 2:return e.next=4,(0,g.gz)(_d());case 4:return e.next=6,(0,g.gz)(c.Z.fireExternalEvent("onRefresh"));case 6:case"end":return e.stop()}}),Ud)}function Qd(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.gz)(Cd(!1));case 2:case"end":return e.stop()}}),Wd)}const Xd={scheduler:Ld};var $d,Jd=[zd];function ef(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function tf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ef(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ef(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var nf="scheduler",rf=["onDateRangeChange","onCalendarRemove","onCalendarRemoveAll","onEventClick","onRefresh"],of=function(t,n,r,o){var i=$d||($d=(0,Sl.jsx)(Pd,{})),a=e.Z.createStore(Xd,Jd,n,nf);return c.Z.addToStore(a,(function(t){return e.Z.getEvents(rf,t.input)})),e.Z.createApp(nf,i,a,{input:n,events:r,actions:Td(n),publicPath:o,textResourceModules:["component","common",nf]})},af=function(t){var n=e.Z.useApp({initApp:of,props:t,packageName:nf,externalEvents:rf}),r=n.component,o=n.store;return Z.Z.useDidUpdate((function(){Td(t).forEach((function(e){null!=r&&o.dispatch(e)}))}),[t]),r};af.propTypes=tf(tf({calendars:n().arrayOf(n().shape({calendarType:n().string.isRequired,events:n().arrayOf(n().shape({description:n().string,start:n().number,end:n().number,allDay:n().bool})),key:n().string.isRequired,label:n().string.isRequired,model:n().string.isRequired})),schedulerRef:n().object},rf.reduce((function(e,t){return tf(tf({},e),{},p()({},t,n().func))}),{})),{},{locale:n().string});const sf=af;var cf="resourceScheduler/SET_CALENDAR_TYPES",uf="resourceScheduler/INITIALIZE",lf="resourceScheduler/UPDATE_REQUESTED_CALENDARS",df="resourceScheduler/LOAD_REQUESTED_CALENDARS",ff="resourceScheduler/SET_CALENDARS",pf="resourceScheduler/SET_DATE_RANGE",hf="resourceScheduler/REMOVE_REQUESTED_CALENDAR",mf="resourceScheduler/REMOVE_ALL_CALENDARS",gf="resourceScheduler/ON_EVENT_CLICK",vf="resourceScheduler/ON_REFRESH",yf="resourceScheduler/SET_HANDLE_NOTIFICATIONS",bf=function(e,t){return{type:lf,payload:{calendarType:e,ids:t}}},wf=function(e){return{type:ff,payload:{calendars:e}}},Of=function(e){return{type:pf,payload:{dateRange:e}}},xf=function(e,t){return{type:hf,payload:{entityModel:e,id:t}}},Sf={onDateRangeChange:function(e){var t=e.dateRange;return Of(t)},onCalendarRemove:function(e){var t=e.entityModel,n=e.id;return xf(t,n)},onCalendarRemoveAll:function(){return{type:mf}},onEventClick:function(e){return function(e,t){return{type:gf,payload:{model:e,key:t}}}(e.model,e.key)},onRefresh:function(){return{type:vf}}};const Ef=(0,k.connect)((function(e,t){return{calendars:e.resourceScheduler.calendars,locale:e.intl.locale}}),Sf)((0,E.ZP)(sf));var kf=a(54828),_f=a(78958),Cf=a(61724);function Af(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Pf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Af(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Af(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var jf=function(e){var t=e.color,n=e.label;return(0,Sl.jsxs)(zl.ZP.Span,{children:[(0,Sl.jsx)(Vl.Z,{icon:t?"square-full":"square","aria-hidden":"true",style:Pf({},t?{color:t}:{}),position:_f.Z.position.PREPEND})," ",n]})},Df=function(e){var t=e.updateRequestedCalendars,n=e.locale,r=e.requestedCalendars,o=e.calendarTypes,i=e.emitAction,a=e.initialCalendarType,s=function(e){return function(n){t(e,n)}},c=a?o.findIndex((function(e){return e.name===a})):-1;return(0,Sl.jsx)(Cf.ZP.Group,{initialOpenPanelIndex:c,children:o.map((function(e){return(0,Sl.jsxs)(Cf.ZP.Wrapper,{children:[(0,Sl.jsx)(Cf.ZP.Header,{children:(0,Sl.jsx)(jf,{color:e.color,label:e.label})}),(0,Sl.jsx)(Cf.ZP.Body,{children:(0,Sl.jsx)(kf.ZP,{emitAction:i,locale:n,id:"search-panel-".concat(e.name),entityName:e.targetEntity,formName:e.formBase,limit:15,selectable:!0,selection:r&&r[e.name]||[],onSelectChange:s(e.name),simpleSearchFields:"txtFulltext, searchFilter",disableSelectionController:!0,showActions:!1,scrollBehaviour:"none"})})]},e.name)}))})};const Tf=(0,A.memo)(Df);var Rf,Zf,Mf,If,Nf=Dl.ZP.div.withConfig({displayName:"StyledSearchPanelWrapper"})(Rf||(Rf=Rl()(["\n padding: ",";\n overflow-y: auto;\n ","\n"])),ql.Z.space(-1.1),ud.C),Ff=Dl.ZP.div.withConfig({displayName:"StyledSchedulerAppContainerWrapper"})(Zf||(Zf=Rl()(["\n background-color: ",";\n height: 100%;\n width: 100%;\n"])),Yl.FS.color("paper"));const Lf=function(e){var t=e.initialize,n=e.locale,r=e.calendarTypes,o=e.updateRequestedCalendars,a=e.requestedCalendars,s=e.handleNotifications,c=e.emitAction,l=e.initialCalendarType;(0,A.useEffect)((function(){t()}),[t]);var d=(0,A.useState)(!1),f=C()(d,2),p=f[0],h=f[1],m=(0,A.useRef)(null);return(0,A.useEffect)((function(){m.current&&m.current.updateSize()}),[p]),(0,Sl.jsxs)(P.Z,{sidepanelPosition:"left",sidepanelCollapsed:p,setSidepanelCollapsed:h,children:[s&&(Mf||(Mf=(0,Sl.jsx)(u.Z.Notifications,{}))),(0,Sl.jsx)(j.Z,{children:(0,Sl.jsx)(i.Z.ErrorBoundary,{children:(0,Sl.jsxs)(D.Z,{required:[r],children:[If||(If=(0,Sl.jsx)(T.Z,{})),(0,Sl.jsx)(Nf,{children:(0,Sl.jsx)(Tf,{locale:n,calendarTypes:r,updateRequestedCalendars:o,requestedCalendars:a,emitAction:c,initialCalendarType:l})})]})})}),(0,Sl.jsx)(R.Z,{children:(0,Sl.jsx)(i.Z.ErrorBoundary,{children:(0,Sl.jsx)(Ff,{children:(0,Sl.jsx)(Ef,{schedulerRef:m})})})})]})},Bf=Lf;var Hf={initialize:function(){return{type:uf}},updateRequestedCalendars:bf,setDateRange:Of,removeRequestedCalendar:xf,emitAction:function(e){return r.Z.dispatchEmittedAction(e)}};const Uf=(0,k.connect)((function(e){var t;return{initialCalendarType:null===(t=e.input.actionProperties)||void 0===t?void 0:t.calendarType,calendars:e.resourceScheduler.calendars,calendarTypes:e.resourceScheduler.calendarTypes,requestedCalendars:e.resourceScheduler.requestedCalendars,handleNotifications:e.resourceScheduler.handleNotifications,locale:e.intl.locale}}),Hf)((0,E.ZP)(Bf));var Wf,zf=function(e,t){var n,r,o,i,a,s=[];null!==(n=e.actionProperties)&&void 0!==n&&n.calendarType&&((null===(r=e.selection)||void 0===r?void 0:r.type)===S.selectionTypes.ID?s.push(bf(e.actionProperties.calendarType,e.selection.ids)):(null===(o=e.selection)||void 0===o?void 0:o.type)===S.selectionTypes.QUERY&&s.push((i=e.actionProperties.calendarType,a=e.selection,{type:df,payload:{calendarType:i,selection:a}})));return s.push(function(e){return{type:yf,payload:{handleNotifications:e}}}(t)),s},Vf=a(57557),qf=a.n(Vf);function Yf(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Gf(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Yf(Object(n),!0).forEach((function(t){p()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Yf(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var Kf=(Wf={},p()(Wf,cf,Zd.Z.singleTransferReducer("calendarTypes")),p()(Wf,ff,Zd.Z.singleTransferReducer("calendars")),p()(Wf,pf,Zd.Z.singleTransferReducer("dateRange")),p()(Wf,yf,Zd.Z.singleTransferReducer("handleNotifications")),p()(Wf,lf,(function(e,t){var n=t.payload,r=n.ids,o=n.calendarType;return Gf(Gf({},e),{},{requestedCalendars:Gf(Gf({},qf()(e.requestedCalendars,[o])),r.length>0?p()({},o,r):{})})})),p()(Wf,hf,(function(e,t){var n=t.payload,r=n.id,o=n.entityModel,i=(e.calendarTypes||[]).filter((function(e){return e.targetEntity===o})).map((function(e){return e.name}));return Gf(Gf({},e),{},{requestedCalendars:Gf({},Object.keys(e.requestedCalendars).reduce((function(t,n){var o=e.requestedCalendars[n].filter((function(e){return!i.includes(n)||e!==r}));return Gf(Gf({},t),o.length>0&&p()({},n,o))}),{}))})})),p()(Wf,mf,(function(e){return Gf(Gf({},e),{},{requestedCalendars:{},calendars:[]})})),Wf),Qf={handleNotifications:!1,calendarTypes:null,requestedCalendars:{},calendars:[],dateRange:{}};const Xf=function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Qf,t=arguments.length>1?arguments[1]:void 0,n=Kf[t.type];return n?n(e,t):e};var $f=a(81719),Jf=a(54061),ep=a.n(Jf),tp=function(e){return ep()(e,(function(e,t,n){return[].concat(I()(e),[{calendarTypeId:n,keys:t}])}),[])},np=m().mark(sp),rp=m().mark(cp),op=m().mark(up),ip=m().mark(lp),ap=function(e){return e.resourceScheduler};function sp(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.$6)([(0,g.Fm)(uf,cp),(0,g.Fm)(lf,lp),(0,g.Fm)(df,dp),(0,g.Fm)(pf,lp),(0,g.Fm)(hf,lp),(0,g.Fm)(gf,fp),(0,g.Fm)(vf,lp)]);case 2:case"end":return e.stop()}}),np)}function cp(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.RE)(up);case 2:case"end":return e.stop()}}),rp)}function up(){var e;return m().wrap((function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,(0,g.RE)($f.Z.requestSaga,"calendar/types");case 2:return e=t.sent,t.next=5,(0,g.gz)((n=e.body.data||[],{type:cf,payload:{calendarTypes:n}}));case 5:case"end":return t.stop()}var n}),op)}function lp(){var e,t,n,r,o;return m().wrap((function(i){for(;;)switch(i.prev=i.next){case 0:return i.next=2,(0,g.Ys)(ap);case 2:if(e=i.sent,t=e.requestedCalendars,n=e.dateRange,!(Object.keys(t).length>0&&n.startDate&&n.endDate)){i.next=16;break}return i.next=8,(0,g.RE)(tp,t);case 8:return r=i.sent,i.next=11,(0,g.RE)($f.Z.requestSaga,"calendar/events",{method:"POST",body:{calendars:r,start:n.startDate.getTime(),end:n.endDate.getTime()}});case 11:return o=i.sent,i.next=14,(0,g.gz)(wf(o.body.data));case 14:i.next=18;break;case 16:return i.next=18,(0,g.gz)(wf([]));case 18:case"end":return i.stop()}}),ip)}function dp(e){var t=e.payload,n=t.selection,r=t.calendarType;return m().mark((function e(){var t,o;return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.RE)(S.getEntities,n,$f.Z.fetchEntities);case 2:return t=e.sent,o=t.keys,e.next=6,(0,g.gz)(bf(r,o));case 6:case"end":return e.stop()}}),e)}))()}function fp(e){var t=e.payload;return m().mark((function e(){return m().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,(0,g.gz)(c.Z.fireExternalEvent("onEventClick",t));case 2:case"end":return e.stop()}}),e)}))()}const pp={resourceScheduler:Xf};var hp,mp=[sp],gp="resource-scheduler",vp=["onEventClick"],yp=function(t,n,a,s){var l=hp||(hp=(0,Sl.jsx)(Uf,{})),d=e.Z.createStore(pp,mp,n,gp);c.Z.addToStore(d,(function(t){return e.Z.getEvents(vp,t.input)})),r.Z.addToStore(d,(function(e){return e.input.emitAction}));var f=!a.emitAction;return u.Z.addToStore(d,f),i.Z.addToStore(d,f,["console","remote","notification"]),o.Z.addToStore(d),e.Z.createApp(gp,l,d,{input:n,events:a,actions:zf(n,f),publicPath:s,textResourceModules:["component","common",gp,"entity-list","scheduler"]})},bp=function(t){return e.Z.useApp({initApp:yp,props:t,packageName:t.id,externalEvents:vp}).component};bp.propTypes={id:n().string,locale:n().string,onEventClick:n().func,selection:S.propType,actionProperties:n().shape({calendarType:n().string})};var wp=e.Z.createBundleableApp(gp,yp,bp);e.Z.registerAppInRegistry(wp.name,wp.init)})(),s})()));
|