tocco-legacy-bundle 0.1.28 → 0.1.30
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 +6 -0
- package/dist/chunk-344.9912c2039fd868d53d54.js +1 -0
- package/dist/chunk-608.b54f7a2dcb8f88236ba3.js +1 -0
- package/dist/{chunk-docs-actions.d38cf9f1b138a8df459a.js → chunk-docs-actions.8013a3779690cb39323f.js} +1 -1
- package/dist/{chunk-vendor-icons.e38d754cd468bd8e5226.js → chunk-vendor-icons.5cbe74f63db5162f6ef1.js} +1 -1
- 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-344.baac0e08e86f8f9755f6.js +0 -1
- package/dist/chunk-608.d84d3dd21ff143c4f0bf.js +0 -1
|
@@ -53,7 +53,7 @@ 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,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=c(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(!s){if(s=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return c=t}return c=e}if(t=c,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,c=n)}var a,c,s=!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 s((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 c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[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 s(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 s=n[1];if(e=e.replace(s,"").replace(/(^<|>$)/g,""),s.endsWith(" ")&&(s=s.substr(0,s.length-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}(s))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;var b=g.join("@");if(t.domain_specific_validation&&("gmail.com"===y||"googlemail.com"===y)){var A=(b=b.toLowerCase()).split("+")[0];if(!(0,i.default)(A.replace(/\./g,""),{min:6,max:30}))return!1;for(var w=A.split("."),x=0;x<w.length;x++)if(!f.test(w[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})){if(!t.allow_ip_domain)return!1;if(!(0,c.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var E=v.substr(1,v.length-2);if(0===E.length||!(0,c.default)(E))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 O=t.allow_utf8_local_part?h:d,C=b.split("."),k=0;k<C.length;k++)if(!O.test(C[k]))return!1;if(t.blacklisted_chars&&-1!==b.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=s(n(65571)),o=s(n(84808)),i=s(n(2851)),a=s(n(10221)),c=s(n(61028));function s(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:[]},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(!/^([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)&&(!!/^[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};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){if(!c.test(t))return!1;var r=t.split(".").sort((function(e,t){return e-t}));return r[3]<=255}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),c=new RegExp("^".concat(a,"$")),s="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(s,":){7}(?:").concat(s,"|:)|")+"(?:".concat(s,":){6}(?:").concat(a,"|:").concat(s,"|:)|")+"(?:".concat(s,":){5}(?::").concat(a,"|(:").concat(s,"){1,2}|:)|")+"(?:".concat(s,":){4}(?:(:").concat(s,"){0,1}:").concat(a,"|(:").concat(s,"){1,3}|:)|")+"(?:".concat(s,":){3}(?:(:").concat(s,"){0,2}:").concat(a,"|(:").concat(s,"){1,4}|:)|")+"(?:".concat(s,":){2}(?:(:").concat(s,"){0,3}:").concat(a,"|(:").concat(s,"){1,5}|:)|")+"(?:".concat(s,":){1}(?:(:").concat(s,"){0,4}:").concat(a,"|(:").concat(s,"){1,6}|:)|")+"(?::((?::".concat(s,"){0,5}:").concat(a,"|(?::").concat(s,"){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,c,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.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.substr(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((c=g.shift()).indexOf(":")>=0&&c.split(":").length>2)return!1;var y=c.split(":"),b=(E=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,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(x,E)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(x,E)||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.")}()),A=b[0],w=b[1];if(""===A&&""===w)return!1}var x,E;p=g.join("@"),m=null,v=null;var O=p.match(l);O?(f="",v=O[1],m=O[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(!((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=c(n(65571)),o=c(n(10221)),i=c(n(61028)),a=c(n(84808));function c(e){return e&&e.__esModule?e:{default:e}}function s(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},85042:e=>{"use strict";e.exports="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="},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},55721:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o,i,a){var c=new Date(0);return c.setUTCFullYear(e,t,n),c.setUTCHours(r,o,i,a),c},e.exports=t.default},25855:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(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)},e.exports=t.default},32734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r,i,d;if(""===e)return 0;if(r=c.timezoneZ.exec(e))return 0;if(r=c.timezoneHH.exec(e))return u(d=parseInt(r[1],10))?-d*a:NaN;if(r=c.timezoneHHMM.exec(e)){d=parseInt(r[1],10);var f=parseInt(r[2],10);return u(d,f)?(i=Math.abs(d)*a+6e4*f,d>0?-i:i):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.default)(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),h=s(p,e),m=n?h:function(e,t,n){var r=e.getTime()-t,o=s(new Date(r),n);if(t===o)return t;r-=o-t;var i=s(new Date(r),n);if(o===i)return o;return Math.max(o,i)}(t,h,e);return-m}return NaN};var r=i(n(2712)),o=i(n(55721));function i(e){return e&&e.__esModule?e:{default:e}}var a=36e5,c={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function s(e,t){var n=(0,r.default)(e,t),i=(0,o.default)(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),a=e.getTime(),c=a%1e3;return i-(a-=c>=0?c:1e3+c)}function u(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var l={};e.exports=t.default},7048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;t.default=n,e.exports=t.default},2712:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o=function(e){if(!r[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;r[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 r[e]}(t);return o.formatToParts?function(e,t){try{for(var r=e.formatToParts(t),o=[],i=0;i<r.length;i++){var a=n[r[i].type];a>=0&&(o[a]=parseInt(r[i].value,10))}return o}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(o,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]]}(o,e)};var n={year:0,month:1,day:2,hour:3,minute:4,second:5};var r={};e.exports=t.default},33826:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(25855)),o=i(n(32734));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=e?(0,o.default)(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function c(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+c(Math.floor(o/60),2)+n+c(Math.floor(o%60),2)}function u(e,t){return e%60==0?(e>0?"-":"+")+c(Math.abs(e)/60,2):s(e,t)}var l={X:function(e,t,n,r){var o=a(r.timeZone,r._originalDate||e);if(0===o)return"Z";switch(t){case"X":return u(o);case"XXXX":case"XX":return s(o);default:return s(o,":")}},x:function(e,t,n,r){var o=a(r.timeZone,r._originalDate||e);switch(t){case"x":return u(o);case"xxxx":case"xx":return s(o);default:return s(o,":")}},O:function(e,t,n,r){var o=a(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 a=t||"";return n+String(o)+a+c(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.default)("short",i,o);default:return(0,r.default)("long",i,o)}}};t.default=l,e.exports=t.default},56558:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var a=String(t),s=n||{},u=a.match(c);if(u){var l=(0,i.default)(e,s);a=u.reduce((function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),r="'"===e[n-1],i=e.replace(t,"'"+o.default[t[0]](l,t,null,s)+"'");return r?i.substring(0,n-1)+i.substring(n+1):i}),a)}return(0,r.default)(e,a,s)};var r=a(n(15616)),o=a(n(33826)),i=a(n(21476));function a(e){return e&&e.__esModule?e:{default:e}}var c=/([xXOz]+)|''|'(''|[^'])+('|$)/g;e.exports=t.default},26645:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){var c=(0,r.default)(a);return c.timeZone=t,(0,o.default)((0,i.default)(e,t),n,c)};var r=a(n(46420)),o=a(n(56558)),i=a(n(1132));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},24992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return-(0,o.default)(e,t)};var r,o=(r=n(32734))&&r.__esModule?r:{default:r};e.exports=t.default},70722:(e,t,n)=>{"use strict";e.exports={format:n(56558),formatInTimeZone:n(26645),getTimezoneOffset:n(24992),toDate:n(21476),utcToZonedTime:n(1132),zonedTimeToUtc:n(68516)}},21476:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(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:(0,r.default)(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 c=l(e),s=d(c.date,a),u=s.year,h=s.restDateString,m=f(h,u);if(isNaN(m))return new Date(NaN);if(m){var g,v=m.getTime(),y=0;if(c.time&&(y=p(c.time),isNaN(y)))return new Date(NaN);if(c.timeZone||n.timeZone){if(g=(0,i.default)(c.timeZone||n.timeZone,new Date(v+y)),isNaN(g))return new Date(NaN)}else g=(0,o.default)(new Date(v+y)),g=(0,o.default)(new Date(v+y+g));return new Date(v+y+g)}return new Date(NaN)};var r=c(n(82084)),o=c(n(93561)),i=c(n(32734)),a=c(n(7048));function c(e){return e&&e.__esModule?e:{default:e}}var s=36e5,u={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.default};function l(e){var t,n={},r=u.dateTimePattern.exec(e);if(r?(n.date=r[1],t=r[3]):(r=u.datePattern.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e),t){var o=u.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=u.YYY[t],o=u.YYYYY[t];if(n=u.YYYY.exec(e)||o.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=u.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=u.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=u.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=u.MMDD.exec(e)){r=new Date(0),o=parseInt(n[1],10)-1;var c=parseInt(n[2],10);return y(t,o,c)?(r.setUTCFullYear(t,o,c),r):new Date(NaN)}if(n=u.Www.exec(e))return b(t,i=parseInt(n[1],10)-1)?h(t,i):new Date(NaN);if(n=u.WwwD.exec(e)){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return b(t,i,s)?h(t,i,s):new Date(NaN)}return null}function p(e){var t,n,r;if(t=u.HH.exec(e))return A(n=parseFloat(t[1].replace(",",".")))?n%24*s:NaN;if(t=u.HHMM.exec(e))return A(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*s+6e4*r:NaN;if(t=u.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return A(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 A(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}e.exports=t.default},1132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var i=(0,o.default)(e,n),a=(0,r.default)(t,i,!0),c=new Date(i.getTime()-a),s=new Date(0);return s.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),s.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),s};var r=i(n(32734)),o=i(n(21476));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},68516:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if("string"==typeof e&&!e.match(i.default)){var s=(0,r.default)(n);return s.timeZone=t,(0,o.default)(e,s)}var u=(0,o.default)(e,n),l=(0,c.default)(u.getFullYear(),u.getMonth(),u.getDate(),u.getHours(),u.getMinutes(),u.getSeconds(),u.getMilliseconds()).getTime(),d=(0,a.default)(t,new Date(l));return new Date(l+d)};var r=s(n(46420)),o=s(n(21476)),i=s(n(7048)),a=s(n(32734)),c=s(n(55721));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},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})},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})},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})},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})},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,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)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.")}()}},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=>288===e?"chunk-ckeditor.e7bfe40c1f6d30e7d316.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"884f0ce2cdac1e9c2902",198:"97ac4a852bd9a61298d3",560:"dbc9c6afbb5c0bbe87e4",608:"d84d3dd21ff143c4f0bf",614:"e38d754cd468bd8e5226",759:"7aa09f3c0f32bbc5fe3a",817:"32a024d3c7e2fc5be22e",877:"d0e1a624b281ea60375f"}[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-legacy-bundle:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var c,s;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){c=d;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var f=(t,r)=>{c.onerror=c.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload),s&&document.head.appendChild(c)}},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="/",(()=>{a.b=document.baseURI||self.location.href;var e={713: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),c=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;c.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",c.name="ChunkLoadError",c.type=o,c.request=i,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,c,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in c)a.o(c,r)&&(a.m[r]=c[r]);if(s)s(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_legacy_bundle=self.webpackChunktocco_legacy_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var c={};return(()=>{"use strict";a.r(c);var e={};a.r(e),a.d(e,{ACTION_INVOKE:()=>Ng,ACTION_INVOKED:()=>Zg,ACTION_IN_PROGRESS:()=>Fg,actionInvoke:()=>Lg,actionInvoked:()=>Hg});var t={};a.r(t),a.d(t,{focusErrorField:()=>Qw,focusField:()=>qw,formInitialValueSelector:()=>Yw,getCurrentEntityState:()=>$w,getEntityForSubmit:()=>Jw,getFormErrors:()=>Gw,handleInvalidForm:()=>Kw,handleSubmitError:()=>ex,touchAllFields:()=>Xw});var n={};a.r(n),a.d(n,{asyncValidationStop:()=>sx,autoComplete:()=>ax,default:()=>ix,onChange:()=>cx});var r={};a.r(r),a.d(r,{useAsyncValidation:()=>eI,useFormEvents:()=>tI,useSyncValidation:()=>JR});var o,i,s=a(79013),u=a(45697),l=a.n(u),d=a(50600),f=a(22731),p=a(19743),h=a(19241),m=a(27023),g=a(73665),v=a(28655),y=a.n(v),b=a(76538),A=a(38205),w=a(24875),x=a(30759),E=a(7281),O=w.FS.color("secondaryLight"),C=w.FS.color("paper"),k=w.FS.color("secondary"),S=(0,A.vJ)(o||(o=y()(["\n .react-datepicker-popper {\n && {\n z-index: 5;\n margin: 0;\n }\n }\n\n .react-datepicker {\n && {\n * {\n box-sizing: content-box; // prevent box-sizing problems in widgets\n }\n border-radius: 0;\n border: 1px solid ",";\n ","\n\n .react-datepicker__header {\n ","\n border-radius: 0;\n background-color: ",";\n padding-bottom: 0;\n }\n\n .react-datepicker__navigation {\n top: 3px;\n }\n\n .react-datepicker__navigation--previous,\n .react-datepicker__navigation--next {\n margin-top: ",";\n }\n ","\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow,\n .react-datepicker__navigation-icon:before {\n border-color: "," !important;\n border-width: 1.5px 1.5px 0 0;\n }\n\n .react-datepicker__header__dropdown {\n font-size: ",";\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n font-size: ",";\n }\n }\n\n .react-datepicker__current-month {\n ","\n }\n\n .react-datepicker__day-name {\n color: ",";\n font-size: ",";\n }\n\n .react-datepicker__day,\n .react-datepicker__day-name {\n border: 1px solid transparent;\n padding: ",";\n outline: none;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n padding: ",";\n }\n }\n\n .react-datepicker__day--selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n }\n\n .react-datepicker__day--keyboard-selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n }\n\n .react-datepicker__day--today,\n .react-datepicker__month-text--today,\n .react-datepicker__quarter-text--today,\n .react-datepicker__year-text--today {\n border-radius: 50%;\n border-color: ",";\n }\n\n .react-datepicker__today-button {\n ","\n background-color: ",";\n border-top: 0;\n padding-bottom: ",";\n padding-top: 0;\n\n &:hover > button {\n background-color: ",";\n }\n }\n\n .react-datepicker__input-time-container {\n display: flex;\n justify-content: center;\n margin: 5px 0;\n\n .react-datepicker-time__input {\n margin: 0;\n\n input {\n text-align: center;\n }\n }\n }\n\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--scroll {\n width: 190px;\n margin: 8px auto 0;\n display: grid;\n grid-template-columns: 100px 85px;\n }\n\n .react-datepicker__month-read-view,\n .react-datepicker__year-read-view {\n color: ",";\n visibility: visible !important;\n }\n\n .react-datepicker__year-option,\n .react-datepicker__month-option,\n .react-datepicker__month-year-option {\n font-size: ",";\n }\n\n .react-datepicker__year-option:first-of-type,\n .react-datepicker__month-option:first-of-type,\n .react-datepicker__month-year-option:first-of-type,\n .react-datepicker__year-option:last-of-type,\n .react-datepicker__month-option:last-of-type,\n .react-datepicker__month-year-option:last-of-type {\n border-radius: 0;\n }\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow {\n top: 6px;\n right: -10px;\n width: 5px;\n height: 5px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: -8px;\n }\n }\n\n .react-datepicker__year-read-view--down-arrow {\n right: -4px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: 3px;\n }\n }\n\n .react-datepicker__day:hover,\n .react-datepicker__month-text:hover,\n .react-datepicker__quarter-text:hover,\n .react-datepicker__year-text:hover {\n border-color: ",";\n background-color: ",";\n border-radius: 50%;\n color: ",";\n }\n\n .react-datepicker__year-dropdown {\n left: 40%;\n top: 45px;\n }\n\n .react-datepicker__navigation--years-upcoming:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 8px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(-45deg);\n }\n\n .react-datepicker__navigation--years-previous:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 6px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(135deg);\n }\n\n .react-datepicker__year-dropdown,\n .react-datepicker__month-dropdown,\n .react-datepicker__month-year-dropdown {\n background-color: ",";\n border-radius: 0;\n border-color: ",";\n box-shadow: 0 0 5px rgb(0 0 0 / 30%);\n }\n\n .react-datepicker__year-option:hover,\n .react-datepicker__month-option:hover,\n .react-datepicker__month-year-option:hover {\n background-color: ",";\n }\n\n .react-datepicker__month-option--selected {\n left: 10px;\n }\n\n .react-datepicker__day--outside-month {\n color: ",";\n }\n }\n }\n"])),O,(0,x.Z)(),(0,x.Z)(),O,E.Z.space(-.6),"\n .react-datepicker__current-month.react-datepicker__current-month--hasYearDropdown.react-datepicker__current-month--hasMonthDropdown {\n // Avoid showing the month and year a second time when it has month and year dropdowns.\n display: none;\n }\n",C,E.Z.font(2.85),E.Z.font(1.8),(0,x.Z)({fontWeight:w.FS.fontWeight("bold")}),C,E.Z.font(-2),E.Z.space(-.6),E.Z.space(-1.2),k,k,k,O,O,O,k,(0,x.Z)(),C,E.Z.space(-.5),(function(e){var t=e.theme;return(0,b._j)(.1,t.colors.paper)}),C,E.Z.font(0),O,O,C,w.FS.color("text"),w.FS.color("text"),C,O,(function(e){var t=e.theme;return(0,b._j)(.1,t.colors.paper)}),(function(e){var t=e.theme;return(0,b.$n)(.7,t.colors.text)})),D=a(85893);const _=function(){return(0,D.jsx)(D.Fragment,{children:i||(i=(0,D.jsx)(S,{}))})};var P=a(74806),j=a(50558),T=a(63038),R=a.n(T),I=a(1024),M=a.n(I),B=function(){return window.innerWidth},N="top",F="left",Z={sidepanelPosition:F,isCollapsed:!1,toggleCollapse:function(){},scrollBehaviour:"none"},L=M().createContext(Z),H=function(){return(0,I.useContext)(L)};const U=function(e){var t=e.children,n=e.sidepanelPosition,r=void 0===n?N:n,o=e.sidepanelCollapsed,i=void 0!==o&&o,a=e.setSidepanelCollapsed,c=void 0===a?function(){}:a,s=e.scrollBehaviour,u=void 0===s?"none":s,l=function(e,t){var n=(0,I.useState)(!1),r=R()(n,2),o=r[0],i=r[1],a=(0,I.useState)(B()),c=R()(a,2),s=c[0],u=c[1];(0,I.useEffect)((function(){var e=function(){u(B())};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[s]),(0,I.useEffect)((function(){i(s<768||e)}),[s,e]);var l=(0,I.useCallback)((function(){i(!o),B()>768&&t(!o)}),[o,t]);return{isCollapsed:o,toggleCollapse:l}}(i,c),d=l.isCollapsed,f=l.toggleCollapse,p=(0,I.useMemo)((function(){return{sidepanelPosition:r,isCollapsed:r===F&&d,toggleCollapse:f,scrollBehaviour:u}}),[d,f,r,u]);return(0,D.jsx)(L.Provider,{value:p,children:t})};var z,W,V,Y,q,G,Q,X,K=a(80470),$=a(11347),J=a(59713),ee=a.n(J),te=a(30314),ne=a.n(te),re=a(83590),oe=a(65035),ie=a(88601),ae=a(97388),ce="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,se=A.ZP.div.withConfig({displayName:"StyledIconWrapper"})(z||(z=y()(["\n margin-left: ",";\n margin-right: -",";\n"])),E.Z.space(-1.7),E.Z.space(-2.1)),ue=(0,A.ZP)(oe.Z).withConfig({displayName:"StyledIconButtonWrapper"})(W||(W=y()(["\n padding-left: ",";\n padding-right: ",";\n"])),E.Z.space(-.5),E.Z.space(-.5)),le=A.ZP.div.withConfig({displayName:"StyledPopperWrapper"})(V||(V=y()(["\n position: relative;\n"]))),de=A.ZP.div.withConfig({displayName:"StyledPopper"})(Y||(Y=y()(["\n max-height: ","; // add 15px for small padding\n min-height: calc(2 * "," + ","); // min-height of 1 entry\n width: max-content;\n overflow-y: auto;\n overflow-x: hidden;\n background: ",";\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);\n border: 1px solid ",";\n z-index: 9999999; /* higher than StyledModalHolder */\n ","\n"])),(function(e){var t=e.rectBottom;return"calc(100dvh - ".concat(t+15,"px)")}),E.Z.space(-1.4),E.Z.font(0),ie.Z.color("paper"),ie.Z.color("secondaryLight"),$.C),fe=A.ZP.div.withConfig({displayName:"StyledMenuItem"})(q||(q=y()(["\n min-width: 200px;\n max-width: 300px;\n"]))),pe=A.ZP.div.withConfig({displayName:"StyledItemLabel"})(G||(G=y()(["\n cursor: ",";\n ","\n ","\n /* increased padding on touchdevices */\n padding: ","\n calc("," + ",");\n font-weight: ",";\n box-shadow: none;\n"])),(function(e){return e.hasOnClick?"pointer":"default"}),(0,x.Z)(),ae.Z,ce?(0,A.iv)(Q||(Q=y()(["\n ","\n ","\n ","\n "])),E.Z.space(-1.4),E.Z.space(-.5),E.Z.space(-1.4)):(0,A.iv)(X||(X=y()(["\n ","\n ","\n ","\n "])),E.Z.space(-2),E.Z.space(-.5),E.Z.space(-2)),E.Z.space(-.5),(function(e){return 5*(e.level||0)+"px"}),(function(e){return e.isGroup?ie.Z.fontWeight("bold"):ie.Z.fontWeight("regular")}));function he(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 me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){ee()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ge=function(e){var t=e.referenceElement,n=e.onClose,r=e.open,o=e.children,i=(0,I.useRef)(null),a=(0,I.useState)(null),c=R()(a,2),s=c[0],u=c[1],l=(0,I.useState)(0),d=R()(l,2),f=d[0],p=d[1],h=(0,I.useCallback)((function(e){i&&i.current&&!i.current.contains(e.target)&&s&&!s.contains(e.target)&&t&&!t.contains(e.target)&&n()}),[t,s,n]);(0,I.useEffect)((function(){return i.current&&p(i.current.getBoundingClientRect().bottom),document.addEventListener("mousedown",h),function(){document.removeEventListener("mousedown",h)}}),[h]);var m=(0,re.D)(t,s,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,5]}}]}),g=m.styles,v=m.attributes;return r?(0,D.jsx)(le,{ref:i,children:o&&ne().createPortal((0,D.jsx)(de,me(me({ref:u,style:g.popper},v.popper),{},{rectBottom:f,children:M().Children.map(o,(function(e){return e&&M().cloneElement(e,{onClose:n})}))})),document.body)}):null};var ve,ye,be,Ae,we,xe,Ee,Oe,Ce,ke,Se=A.ZP.div.withConfig({displayName:"TopPositioning"})(ve||(ve=y()(["\n height: 100%;\n width: 100%;\n display: grid;\n row-gap: 8px;\n grid-template-areas:\n 'sidepanel'\n 'content';\n grid-auto-rows: auto minmax(auto, 1fr);\n grid-template-columns: minmax(100%, 700px);\n"]))),De=A.ZP.div.withConfig({displayName:"LeftPositioning"})(ye||(ye=y()(["\n display: grid;\n width: 100%;\n height: 100%;\n column-gap: 1rem;\n /* only show one panel at a time on screens <= 500px */\n grid: ",";\n\n @media (max-width: 600px) {\n column-gap: 8px;\n }\n"])),(function(e){var t=e.isCollapsed;return(e.windowWidth<=500&&!t?"'sidepanel content' / 100% 0":!t&&"'sidepanel content' / minmax(350px, 16dvw) auto")||"'sidepanel content' / 25px auto"})),_e=A.ZP.div.withConfig({displayName:"StyledSidepanel"})(be||(be=y()(["\n grid-area: sidepanel;\n min-height: 50px; /* prevent collapse on shorter screens */\n ","\n\n /* Limit height when positioned top */\n "," && {\n ","\n padding-right: ",";\n ","\n }\n"])),(function(e){return"inline"===e.scrollBehaviour&&"overflow-y: auto;"}),Se,(function(e){return"inline"===e.scrollBehaviour?"max-height: 200px;":"max-height: none;"}),E.Z.space(-.5),$.C),Pe=A.ZP.div.withConfig({displayName:"StyledSidepanelMainContent"})(Ae||(Ae=y()(["\n grid-area: content;\n display: flex;\n"]))),je=A.ZP.div.withConfig({displayName:"StyledSidepanelLeftContentWrapper"})(we||(we=y()(["\n display: flex; // enables StyledSidepanelCollapsed to take full height\n flex-direction: column;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n background-color: ",";\n"])),ie.Z.color("paper")),Te=A.ZP.div.withConfig({displayName:"StyledSidepanelTopContentWrapper"})(xe||(xe=y()([""]))),Re=A.ZP.div.withConfig({displayName:"StyledSidepanelContent"})(Ee||(Ee=y()(["\n display: ",";\n height: 100%;\n overflow: hidden;\n"])),(function(e){return e.isCollapsed?"none":"block"})),Ie=A.ZP.div.withConfig({displayName:"StyledSidepanelCollapsed"})(Oe||(Oe=y()(["\n display: ",";\n flex: 1;\n align-items: flex-start;\n background: ",";\n padding-top: ",";\n padding-left: ",";\n\n &:hover {\n cursor: pointer;\n }\n"])),(function(e){return e.isCollapsed?"flex":"none"}),ie.Z.color("paper"),E.Z.space(-.5),E.Z.space(-2.5)),Me=(0,A.ZP)(K.Z).withConfig({displayName:"StyledToggleCollapseButton"})(Ce||(Ce=y()(["\n font-size: ",";\n margin-right: auto;\n position: relative;\n left: ",";\n\n &:hover,\n ",":hover & {\n background-color: transparent;\n color: ",";\n }\n"])),E.Z.font(0),(function(e){return e.isCollapsed?"0.5px":"-5px"}),Ie,ie.Z.color("secondaryLight")),Be=A.ZP.div.withConfig({displayName:"StyledSidepanelHeader"})(ke||(ke=y()(["\n background-color: ",";\n border-bottom: 3px solid ",";\n display: flex;\n justify-content: flex-end;\n padding: ",";\n position: relative;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n\n "," {\n z-index: 3; //higher than rest to lay over search filter list\n }\n"])),ie.Z.color("paper"),ie.Z.color("backgroundBody"),E.Z.space(-.53),ge);const Ne=function(e){var t=e.children,n=H(),r=n.sidepanelPosition,o=n.isCollapsed,i="left"===r?De:Se;return(0,D.jsx)(i,{windowWidth:window.innerWidth,isCollapsed:o,children:t})};const Fe=function(e){var t=e.children,n=e.sidepanelPosition,r=e.sidepanelCollapsed,o=e.setSidepanelCollapsed,i=e.scrollBehaviour;return(0,D.jsx)(U,{sidepanelPosition:n,sidepanelCollapsed:r,setSidepanelCollapsed:o,scrollBehaviour:i,children:(0,D.jsx)(Ne,{children:t})})};const Ze=function(e){var t=e.children,n=H(),r=n.sidepanelPosition,o=n.isCollapsed,i=n.toggleCollapse,a=n.scrollBehaviour,c=r===F?je:Te;return(0,D.jsx)(_e,{sidepanelPosition:r,scrollBehaviour:a,children:(0,D.jsxs)(c,{children:[(0,D.jsx)(Re,{isCollapsed:o,children:t}),"left"===r&&(0,D.jsx)(Ie,{onClick:i,isCollapsed:o,children:(0,D.jsx)(Me,{icon:"chevron-right",isCollapsed:o})})]})})};var Le=a(50258);const He=function(e){var t=e.children,n=H(),r=n.sidepanelPosition,o=n.isCollapsed,i=n.toggleCollapse;return"left"!==r?null:(0,D.jsxs)(Be,{children:[(0,D.jsx)(Me,{icon:"chevron-left",isCollapsed:o,onClick:i}),t]})};const Ue=function(e){var t=e.children;return(0,D.jsx)(Pe,{children:t})};var ze=a(35997),We=a(319),Ve=a.n(We),Ye=16,qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return t;e=Ge(e);var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],Ye),g:parseInt(n[2],Ye),b:parseInt(n[3],Ye)}:t},Ge=function(e){return e.startsWith("#")||(e="#"+e),e.padEnd(7,"0")},Qe=function(e){var t=e/255;return t<=.03928?t/=12.92:t=Math.pow((t+.055)/1.055,2.4),t},Xe=function(e){return.2126*Qe(e.r)+.7152*Qe(e.g)+.0722*Qe(e.b)};const Ke=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=qe(e);return r&&Xe(r)>.25?n:t},$e=Object.freeze({EXISTING:"existing",ACCEPTED:"accepted",NONE:"none"});function Je(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 et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){ee()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tt=function(e,t){return e+t},nt=function(e){return e.map((function(e){return{title:e.label,id:tt(e.key,e.model),entityKey:e.key,calendarType:e.calendarType,entityModel:e.model}}))},rt=a(69100),ot=a.n(rt),it=a(70655);("undefined"!=typeof globalThis?globalThis:window).FullCalendarVDom={Component:I.Component,createElement:I.createElement,render:te.render,createRef:I.createRef,Fragment:I.Fragment,createContext:I.createContext,createPortal:te.createPortal,flushSync:function(e){e()},unmountComponentAtNode:te.unmountComponentAtNode};var at=a(93379),ct=a.n(at),st=a(7795),ut=a.n(st),lt=a(90569),dt=a.n(lt),ft=a(3565),pt=a.n(ft),ht=a(19216),mt=a.n(ht),gt=a(44589),vt=a.n(gt),yt=a(46),bt={};bt.styleTagTransform=vt(),bt.setAttributes=pt(),bt.insert=dt().bind(null,"head"),bt.domAPI=ut(),bt.insertStyleElement=mt();ct()(yt.Z,bt);yt.Z&&yt.Z.locals&&yt.Z.locals;if("undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var At=FullCalendarVDom.Component,wt=FullCalendarVDom.createElement,xt=(FullCalendarVDom.render,FullCalendarVDom.createRef),Et=FullCalendarVDom.Fragment,Ot=FullCalendarVDom.createContext,Ct=FullCalendarVDom.createPortal,kt=FullCalendarVDom.flushSync,St=(FullCalendarVDom.unmountComponentAtNode,function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}());function Dt(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(Pt(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function Pt(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function jt(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o<n.length;o+=1)for(var i=n[o].querySelectorAll(t),a=0;a<i.length;a+=1)r.push(i[a]);return r}var Tt=/(top|left|right|bottom|width|height)$/i;function Rt(e,t){for(var n in t)It(e,n,t[n])}function It(e,t,n){null==n?e.style[t]="":"number"==typeof n&&Tt.test(t)?e.style[t]=n+"px":e.style[t]=n}function Mt(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}function Bt(e){return e.getRootNode?e.getRootNode():document}var Nt=0;function Ft(){return"fc-dom-"+(Nt+=1)}function Zt(e){e.preventDefault()}function Lt(e,t,n,r){var o=function(e,t){return function(n){var r=_t(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,o),function(){e.removeEventListener(t,o)}}var Ht=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Ut(e){return{tabIndex:0,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}var zt=0;function Wt(){return String(zt+=1)}function Vt(){document.body.classList.add("fc-not-allowed")}function Yt(){document.body.classList.remove("fc-not-allowed")}function qt(e){var t,n,r=[],o=[];for("string"==typeof e?o=e.split(/\s*,\s*/):"function"==typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t+=1)"string"==typeof(n=o[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function Gt(e,t,n){var r,o;for(r=0;r<n.length;r+=1)if(o=Qt(e,t,n[r]))return o;return 0}function Qt(e,t,n){return n.func?n.func(e,t):Xt(e[n.field],t[n.field])*(n.order||1)}function Xt(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 Kt(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function $t(e,t,n){return"function"==typeof e?e.apply(void 0,t):"string"==typeof e?t.reduce((function(e,t,n){return e.replace("$"+n,t||"")}),e):n}function Jt(e,t){return e-t}function en(e){return e%1==0}function tn(e){var t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var nn=["sun","mon","tue","wed","thu","fri","sat"];function rn(e,t){var n=pn(e);return n[2]+=t,hn(n)}function on(e,t){var n=pn(e);return n[6]+=t,hn(n)}function an(e,t){return(t.valueOf()-e.valueOf())/864e5}function cn(e,t){return gn(e)===gn(t)?Math.round(an(e,t)):null}function sn(e){return hn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function un(e,t,n,r){var o=hn([t,0,1+ln(t,n,r)]),i=sn(e),a=Math.round(an(o,i));return Math.floor(a/7)+1}function ln(e,t,n){var r=7+t-n;return-((7+hn([e,0,r]).getUTCDay()-t)%7)+r-1}function dn(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function fn(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 pn(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function hn(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function mn(e){return!isNaN(e.valueOf())}function gn(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function vn(e,t,n,r){return{instanceId:Wt(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var yn=Object.prototype.hasOwnProperty;function bn(e,t){var n={};if(t)for(var r in t){for(var o=[],i=e.length-1;i>=0;i-=1){var a=e[i][r];if("object"==typeof a&&a)o.unshift(a);else if(void 0!==a){n[r]=a;break}}o.length&&(n[r]=bn(o))}for(i=e.length-1;i>=0;i-=1){var c=e[i];for(var s in c)s in n||(n[s]=c[s])}return n}function An(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function wn(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function xn(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function En(e){var t=[];for(var n in e)t.push(e[n]);return t}function On(e,t){if(e===t)return!0;for(var n in e)if(yn.call(e,n)&&!(n in t))return!1;for(var n in t)if(yn.call(t,n)&&e[n]!==t[n])return!1;return!0}function Cn(e,t){var n=[];for(var r in e)yn.call(e,r)&&(r in t||n.push(r));for(var r in t)yn.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function kn(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var r in t)if(!(r in e)||!Sn(e[r],t[r],n[r]))return!1;for(var r in e)if(!(r in t))return!1;return!0}function Sn(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function Dn(e,t,n,r){void 0===t&&(t=0),void 0===r&&(r=1);var o=[];null==n&&(n=Object.keys(e).length);for(var i=t;i<n;i+=r){var a=e[i];void 0!==a&&o.push(a)}return o}function _n(e,t,n){var r=n.dateEnv,o=n.pluginHooks,i=n.options,a=e.defs,c=e.instances;for(var s in c=An(c,(function(e){return!a[e.defId].recurringDef})),a){var u=a[s];if(u.recurringDef){var l=u.recurringDef.duration;l||(l=u.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);for(var d=0,f=Pn(u,l,t,r,o.recurringTypes);d<f.length;d++){var p=f[d],h=vn(s,{start:p,end:r.add(p,l)});c[h.instanceId]=h}}}return{defs:a,instances:c}}function Pn(e,t,n,r,o){var i=o[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(i=i.map(sn)),i}var jn=["years","months","days","milliseconds"],Tn=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Rn(e,t){var n;return"string"==typeof e?function(e){var t=Tn.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?In(e):"number"==typeof e?In(((n={})[t||"milliseconds"]=e,n)):null}function In(e){var t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function Mn(e){return e.years||e.months||e.milliseconds?0:e.days}function Bn(e){return Nn(e)/864e5}function Nn(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Fn(e,t){for(var n=null,r=0;r<jn.length;r+=1){var o=jn[r];if(t[o]){var i=e[o]/t[o];if(!en(i)||null!==n&&n!==i)return null;n=i}else if(e[o])return null}return n}function Zn(e){var t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Ln(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Un(t,!0)))),r}function Hn(e){return e.toISOString().replace(/T.*$/,"")}function Un(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=Math.round(r%60);return t?n+Kt(o,2)+":"+Kt(i,2):"GMT"+n+o+(i?":"+Kt(i,2):"")}function zn(e,t,n){if(e===t)return!0;var r,o=e.length;if(o!==t.length)return!1;for(r=0;r<o;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function Wn(e,t,n){var r,o;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(r){if(!zn(r,i)){n&&n(o);var c=e.apply(this,i);t&&t(c,o)||(o=c)}}else o=e.apply(this,i);return r=i,o}}function Vn(e,t,n){var r,o,i=this;return function(a){if(r){if(!On(r,a)){n&&n(o);var c=e.call(i,a);t&&t(c,o)||(o=c)}}else o=e.call(i,a);return r=a,o}}function Yn(e,t,n){var r=this,o=[],i=[];return function(a){for(var c=o.length,s=a.length,u=0;u<c;u+=1)if(a[u]){if(!zn(o[u],a[u])){n&&n(i[u]);var l=e.apply(r,a[u]);t&&t(l,i[u])||(i[u]=l)}}else n&&n(i[u]);for(;u<s;u+=1)i[u]=e.apply(r,a[u]);return o=a,i.splice(s),i}}function qn(e,t,n){var r=this,o={},i={};return function(a){var c={};for(var s in a)if(i[s])if(zn(o[s],a[s]))c[s]=i[s];else{n&&n(i[s]);var u=e.apply(r,a[s]);c[s]=t&&t(u,i[s])?i[s]:u}else c[s]=e.apply(r,a[s]);return o=a,i=c,c}}var Gn={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Qn={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Xn=/\s*([ap])\.?m\.?/i,Kn=/,/g,$n=/\s+/g,Jn=/\u200e/g,er=/UTC|GMT/,tr=function(){function e(e){var t={},n={},r=0;for(var o in e)o in Gn?(n[o]=e[o],r=Math.max(Gn[o],r)):(t[o]=e[o],o in Qn&&(r=Math.max(Qn[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Wn(nr)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n,r){var o=this.standardDateProps,i=this.extendedSettings,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(gn(e)!==gn(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!a)return this.format(e,n);var c=a;!(c>1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(c=1);var s=this.format(e,n),u=this.format(t,n);if(s===u)return s;var l=function(e,t){var n={};for(var r in e)(!(r in Qn)||Qn[r]<=t)&&(n[r]=e[r]);return n}(o,c),d=nr(l,i,n),f=d(e),p=d(t),h=function(e,t,n,r){var o=0;for(;o<e.length;){var i=e.indexOf(t,o);if(-1===i)break;var a=e.substr(0,i);o=i+t.length;for(var c=e.substr(o),s=0;s<n.length;){var u=n.indexOf(r,s);if(-1===u)break;var l=n.substr(0,u);s=u+r.length;var d=n.substr(s);if(a===l&&c===d)return{before:a,after:c}}}return null}(s,f,u,p),m=i.separator||r||n.defaultSeparator||"";return h?h.before+f+m+p+h.after:s+m+u},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}},e}();function nr(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return Un(e.timeZoneOffset)}:0===r&&t.week?function(e){return function(e,t,n,r,o){var i=[];"long"===o?i.push(n):"short"!==o&&"narrow"!==o||i.push(t);"long"!==o&&"short"!==o||i.push(" ");i.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&i.reverse();return i.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week)}:function(e,t,n){e=(0,it.pi)({},e),t=(0,it.pi)({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";var r,o=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var i=(0,it.pi)({},e);delete i.minute,r=new Intl.DateTimeFormat(n.locale.codes,i)}return function(i){var a=i.marker;return function(e,t,n,r,o){e=e.replace(Jn,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(er,(function(){return n=!0,t})),n||(e+=" "+t);return e}(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":Un(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Kn,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(Xn,"").trim():"narrow"===r.meridiem?e=e.replace(Xn,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(Xn,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(e=e.replace(Xn,(function(e){return e.toLocaleLowerCase()})));return e=(e=e.replace($n," ")).trim()}((r&&!a.getUTCMinutes()?r:o).format(a),i,e,t,n)}}(e,t,n)}function rr(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function or(e,t,n,r){var o=rr(e,n.calendarSystem);return{date:o,start:o,end:t?rr(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var ir=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,or(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,or(e,t,n,r))},e}(),ar=function(){function e(e){this.func=e}return e.prototype.format=function(e,t,n){return this.func(or(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return this.func(or(e,t,n,r))},e}();function cr(e){return"object"==typeof e&&e?new tr(e):"string"==typeof e?new ir(e):"function"==typeof e?new ar(e):null}var sr={navLinkDayClick:vr,navLinkWeekClick:vr,duration:Rn,bootstrapFontAwesome:vr,buttonIcons:vr,customButtons:vr,defaultAllDayEventDuration:Rn,defaultTimedEventDuration:Rn,nextDayThreshold:Rn,scrollTime:Rn,scrollTimeReset:Boolean,slotMinTime:Rn,slotMaxTime:Rn,dayPopoverFormat:cr,slotDuration:Rn,snapDuration:Rn,headerToolbar:vr,footerToolbar:vr,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:cr,dayHeaderClassNames:vr,dayHeaderContent:vr,dayHeaderDidMount:vr,dayHeaderWillUnmount:vr,dayCellClassNames:vr,dayCellContent:vr,dayCellDidMount:vr,dayCellWillUnmount:vr,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:vr,weekNumbers:Boolean,weekNumberClassNames:vr,weekNumberContent:vr,weekNumberDidMount:vr,weekNumberWillUnmount:vr,editable:Boolean,viewClassNames:vr,viewDidMount:vr,viewWillUnmount:vr,nowIndicator:Boolean,nowIndicatorClassNames:vr,nowIndicatorContent:vr,nowIndicatorDidMount:vr,nowIndicatorWillUnmount:vr,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:vr,locale:vr,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:vr,eventOrder:qt,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:vr,contentHeight:vr,direction:String,weekNumberFormat:cr,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:vr,initialDate:vr,now:vr,eventDataTransform:vr,stickyHeaderDates:vr,stickyFooterScrollbar:vr,viewHeight:vr,defaultAllDay:Boolean,eventSourceFailure:vr,eventSourceSuccess:vr,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:vr,eventConstraint:vr,eventAllow:vr,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:vr,eventContent:vr,eventDidMount:vr,eventWillUnmount:vr,selectConstraint:vr,selectOverlap:vr,selectAllow:vr,droppable:Boolean,unselectCancel:String,slotLabelFormat:vr,slotLaneClassNames:vr,slotLaneContent:vr,slotLaneDidMount:vr,slotLaneWillUnmount:vr,slotLabelClassNames:vr,slotLabelContent:vr,slotLabelDidMount:vr,slotLabelWillUnmount:vr,dayMaxEvents:vr,dayMaxEventRows:vr,dayMinWidth:Number,slotLabelInterval:Rn,allDayText:String,allDayClassNames:vr,allDayContent:vr,allDayDidMount:vr,allDayWillUnmount:vr,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:cr,rerenderDelay:Number,moreLinkText:vr,moreLinkHint:vr,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:vr,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Rn,hiddenDays:vr,monthMode:Boolean,fixedWeekCount:Boolean,validRange:vr,visibleRange:vr,titleFormat:vr,eventInteractive:Boolean,noEventsText:String,viewHint:vr,navLinkHint:vr,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:vr,moreLinkClassNames:vr,moreLinkContent:vr,moreLinkDidMount:vr,moreLinkWillUnmount:vr},ur={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},lr={datesSet:vr,eventsSet:vr,eventAdd:vr,eventChange:vr,eventRemove:vr,windowResize:vr,eventClick:vr,eventMouseEnter:vr,eventMouseLeave:vr,select:vr,unselect:vr,loading:vr,_unmount:vr,_beforeprint:vr,_afterprint:vr,_noEventDrop:vr,_noEventResize:vr,_resize:vr,_scrollRequest:vr},dr={buttonText:vr,buttonHints:vr,views:vr,plugins:vr,initialEvents:vr,events:vr,eventSources:vr},fr={headerToolbar:pr,footerToolbar:pr,buttonText:pr,buttonHints:pr,buttonIcons:pr,dateIncrement:pr};function pr(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?On(e,t):e===t}var hr={type:String,component:vr,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:vr,usesMinMaxTime:Boolean,classNames:vr,content:vr,didMount:vr,willUnmount:vr};function mr(e){return bn(e,fr)}function gr(e,t){var n={},r={};for(var o in t)o in e&&(n[o]=t[o](e[o]));for(var o in e)o in t||(r[o]=e[o]);return{refined:n,extra:r}}function vr(e){return e}function yr(e,t,n,r){for(var o={defs:{},instances:{}},i=Ir(n),a=0,c=e;a<c.length;a++){var s=Tr(c[a],t,n,r,i);s&&br(s,o)}return o}function br(e,t){return void 0===t&&(t={defs:{},instances:{}}),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Ar(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],o=xr(e,(function(e){return t=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n}));return o.defs[r.defId]=r,o.instances[n.instanceId]=n,o}return{defs:{},instances:{}}}function wr(e,t){return{defs:(0,it.pi)((0,it.pi)({},e.defs),t.defs),instances:(0,it.pi)((0,it.pi)({},e.instances),t.instances)}}function xr(e,t){var n=An(e.defs,t),r=An(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function Er(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var Or={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:vr,overlap:vr,allow:vr,className:Er,classNames:Er,color:String,backgroundColor:String,borderColor:String,textColor:String},Cr={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function kr(e,t){var n=function(e,t){return Array.isArray(e)?yr(e,null,t,!0):"object"==typeof e&&e?yr([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 Sr(e){return e.reduce(Dr,Cr)}function Dr(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var _r={id:String,groupId:String,title:String,url:String,interactive:Boolean},Pr={start:vr,end:vr,date:vr,allDay:Boolean},jr=(0,it.pi)((0,it.pi)((0,it.pi)({},_r),Pr),{extendedProps:vr});function Tr(e,t,n,r,o){void 0===o&&(o=Ir(n));var i=Rr(e,n,o),a=i.refined,c=i.extra,s=function(e,t){var n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),u=function(e,t,n,r){for(var o=0;o<r.length;o+=1){var i=r[o].parse(e,n);if(i){var a=e.allDay;return null==a&&null==(a=t)&&null==(a=i.allDayGuess)&&(a=!1),{allDay:a,duration:i.duration,typeData:i.typeData,typeId:o}}}return null}(a,s,n.dateEnv,n.pluginHooks.recurringTypes);if(u)return(l=Mr(a,c,t?t.sourceId:"",u.allDay,Boolean(u.duration),n)).recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:l,instance:null};var l,d=function(e,t,n,r){var o,i,a=e.allDay,c=null,s=!1,u=null,l=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(l))c=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&&c&&(c=sn(c));i&&(u=i.marker,a&&(u=sn(u)),c&&u<=c&&(u=null));u?s=!0:r||(s=n.options.forceEventDuration||!1,u=n.dateEnv.add(c,a?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:a,hasEnd:s,range:{start:c,end:u},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:i?i.forcedTzo:null}}(a,s,n,r);return d?{def:l=Mr(a,c,t?t.sourceId:"",d.allDay,d.hasEnd,n),instance:vn(l.defId,d.range,d.forcedStartTzo,d.forcedEndTzo)}:null}function Rr(e,t,n){return void 0===n&&(n=Ir(t)),gr(e,n)}function Ir(e){return(0,it.pi)((0,it.pi)((0,it.pi)({},Or),jr),e.pluginHooks.eventRefiners)}function Mr(e,t,n,r,o,i){for(var a={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:Wt(),sourceId:n,allDay:r,hasEnd:o,interactive:e.interactive,ui:kr(e,i),extendedProps:(0,it.pi)((0,it.pi)({},e.extendedProps||{}),t)},c=0,s=i.pluginHooks.eventDefMemberAdders;c<s.length;c++){var u=s[c];(0,it.pi)(a,u(e))}return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Br(e){var t=Math.floor(an(e.start,e.end))||1,n=sn(e.start);return{start:n,end:rn(n,t)}}function Nr(e,t){void 0===t&&(t=Rn(0));var n=null,r=null;if(e.end){r=sn(e.end);var o=e.end.valueOf()-r.valueOf();o&&o>=Nn(t)&&(r=rn(r,1))}return e.start&&(n=sn(e.start),r&&r<=n&&(r=rn(n,1))),{start:n,end:r}}function Fr(e,t,n,r){return"year"===r?Rn(n.diffWholeYears(e,t),"year"):"month"===r?Rn(n.diffWholeMonths(e,t),"month"):(i=t,a=sn(o=e),c=sn(i),{years:0,months:0,days:Math.round(an(a,c)),milliseconds:i.valueOf()-c.valueOf()-(o.valueOf()-a.valueOf())});var o,i,a,c}function Zr(e,t){var n,r,o=[],i=t.start;for(e.sort(Lr),n=0;n<e.length;n+=1)(r=e[n]).start>i&&o.push({start:i,end:r.start}),r.end>i&&(i=r.end);return i<t.end&&o.push({start:i,end:t.end}),o}function Lr(e,t){return e.start.valueOf()-t.start.valueOf()}function Hr(e,t){var n=e.start,r=e.end,o=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(o={start:n,end:r}),o}function Ur(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 zr(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Wr(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Vr(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Yr(e,t,n,r){var o={},i={},a={},c=[],s=[],u=Qr(e.defs,t);for(var l in e.defs){"inverse-background"===(p=u[(A=e.defs[l]).defId]).display&&(A.groupId?(o[A.groupId]=[],a[A.groupId]||(a[A.groupId]=A)):i[l]=[])}for(var d in e.instances){var f=e.instances[d],p=u[(A=e.defs[f.defId]).defId],h=f.range,m=!A.allDay&&r?Nr(h,r):h,g=Hr(m,n);g&&("inverse-background"===p.display?A.groupId?o[A.groupId].push(g):i[f.defId].push(g):"none"!==p.display&&("background"===p.display?c:s).push({def:A,ui:p,instance:f,range:g,isStart:m.start&&m.start.valueOf()===g.start.valueOf(),isEnd:m.end&&m.end.valueOf()===g.end.valueOf()}))}for(var v in o)for(var y=0,b=Zr(o[v],n);y<b.length;y++){var A,w=b[y];p=u[(A=a[v]).defId];c.push({def:A,ui:p,instance:null,range:w,isStart:!1,isEnd:!1})}for(var l in i)for(var x=0,E=Zr(i[l],n);x<E.length;x++){w=E[x];c.push({def:e.defs[l],ui:u[l],instance:null,range:w,isStart:!1,isEnd:!1})}return{bg:c,fg:s}}function qr(e,t){e.fcSeg=t}function Gr(e){return e.fcSeg||e.parentNode.fcSeg||null}function Qr(e,t){return wn(e,(function(e){return Xr(e,t)}))}function Xr(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Sr(n)}function Kr(e,t){var n=e.map($r);return n.sort((function(e,n){return Gt(e,n,t)})),n.map((function(e){return e._seg}))}function $r(e){var t=e.eventRange,n=t.def,r=t.instance?t.instance.range:t.range,o=r.start?r.start.valueOf():0,i=r.end?r.end.valueOf():0;return(0,it.pi)((0,it.pi)((0,it.pi)({},n.extendedProps),n),{id:n.publicId,start:o,end:i,duration:i-o,allDay:Number(n.allDay),_seg:e})}function Jr(e,t){for(var n=t.pluginHooks.isDraggableTransformers,r=e.eventRange,o=r.def,i=r.ui,a=i.startEditable,c=0,s=n;c<s.length;c++){a=(0,s[c])(a,o,i,t)}return a}function eo(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function to(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function no(e,t,n){var r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Vr(t,r.start)}}var ro={start:vr,end:vr,allDay:Boolean};function oo(e,t,n){var r=function(e,t){var n=gr(e,ro),r=n.refined,o=n.extra,i=r.start?t.createMarkerMeta(r.start):null,a=r.end?t.createMarkerMeta(r.end):null,c=r.allDay;null==c&&(c=i&&i.isTimeUnspecified&&(!a||a.isTimeUnspecified));return(0,it.pi)({range:{start:i?i.marker:null,end:a?a.marker:null},allDay:c},o)}(e,t),o=r.range;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=t.add(o.start,n)}return r}function io(e,t,n){return(0,it.pi)((0,it.pi)({},ao(e,t,n)),{timeZone:t.timeZone})}function ao(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 co(e,t,n){var r=Rr({editable:!1},n),o=Mr(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:Xr(o,t),instance:vn(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function so(e,t,n){n.emitter.trigger("select",(0,it.pi)((0,it.pi)({},uo(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function uo(e,t){for(var n,r,o={},i=0,a=t.pluginHooks.dateSpanTransforms;i<a.length;i++){var c=a[i];(0,it.pi)(o,c(e,t))}return(0,it.pi)(o,(n=e,r=t.dateEnv,(0,it.pi)((0,it.pi)({},ao(n.range,r,n.allDay)),{allDay:n.allDay}))),o}function lo(e,t,n){var r=n.dateEnv,o=n.options,i=t;return e?(i=sn(i),i=r.add(i,o.defaultAllDayEventDuration)):i=r.add(i,o.defaultTimedEventDuration),i}function fo(e,t,n,r){var o=Qr(e.defs,t),i={defs:{},instances:{}};for(var a in e.defs){var c=e.defs[a];i.defs[a]=po(c,o[a],n,r)}for(var s in e.instances){var u=e.instances[s];c=i.defs[u.defId];i.instances[s]=ho(u,c,o[u.defId],n,r)}return i}function po(e,t,n,r){var o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);var i=(0,it.pi)((0,it.pi)((0,it.pi)({},e),o),{ui:(0,it.pi)((0,it.pi)({},e.ui),o.ui)});n.extendedProps&&(i.extendedProps=(0,it.pi)((0,it.pi)({},i.extendedProps),n.extendedProps));for(var a=0,c=r.pluginHooks.eventDefMutationAppliers;a<c.length;a++){(0,c[a])(i,n,r)}return!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0),i}function ho(e,t,n,r,o){var i=o.dateEnv,a=r.standardProps&&!0===r.standardProps.allDay,c=r.standardProps&&!1===r.standardProps.hasEnd,s=(0,it.pi)({},e);return a&&(s.range=Br(s.range)),r.datesDelta&&n.startEditable&&(s.range={start:i.add(s.range.start,r.datesDelta),end:i.add(s.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(s.range={start:i.add(s.range.start,r.startDelta),end:s.range.end}),r.endDelta&&n.durationEditable&&(s.range={start:s.range.start,end:i.add(s.range.end,r.endDelta)}),c&&(s.range={start:s.range.start,end:lo(t.allDay,s.range.start,o)}),t.allDay&&(s.range={start:sn(s.range.start),end:sn(s.range.end)}),s.range.end<s.range.start&&(s.range.end=lo(t.allDay,s.range.start,o)),s}var mo=function(){function e(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),e.prototype.getOption=function(e){return this.getCurrentData().options[e]},e}(),go={id:String,defaultAllDay:Boolean,url:String,format:String,events:vr,eventDataTransform:vr,success:vr,failure:vr};function vo(e,t,n){var r;if(void 0===n&&(n=yo(t)),"string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){var o=gr(r,n),i=o.refined,a=o.extra,c=function(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;r-=1){var o=n[r].parseMeta(e);if(o)return{sourceDefId:r,meta:o}}return null}(i,t);if(c)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:Wt(),sourceDefId:c.sourceDefId,meta:c.meta,ui:kr(i,t),extendedProps:a}}return null}function yo(e){return(0,it.pi)((0,it.pi)((0,it.pi)({},Or),go),e.pluginHooks.eventSourceRefiners)}function bo(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var Ao=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger("_resize",!0)},e.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.currentDataManager.emitter).trigger.apply(t,(0,it.ev)([e],n))},e.prototype.changeView=function(e,t){var n=this;this.batchRendering((function(){if(n.unselect(),t)if(t.start&&t.end)n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),n.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{var r=n.getCurrentData().dateEnv;n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(t)})}else n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))},e.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,n,r=this.getCurrentData(),o=r.viewSpecs,i=r.toolbarConfig,a=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]);for(var c in o)a.push(c);for(t=0;t<a.length;t+=1)if((n=o[a[t]])&&n.singleUnit===e)return n;return null},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},e.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})},e.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:bo(e.calendarOptions.now,e.dateEnv)})},e.prototype.gotoDate=function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=this.getCurrentData(),n=Rn(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))},e.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},e.prototype.formatDate=function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),cr(t))},e.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),cr(n),n)},e.prototype.formatIso=function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.select=function(e,t){var n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};var r=this.getCurrentData(),o=oo(n,r.dateEnv,Rn({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),so(o,null,r))},e.prototype.unselect=function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))},e.prototype.addEvent=function(e,t){if(e instanceof wo){var n=e._def,r=e._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:br({def:n,instance:r})}),this.triggerEventAdd(e)),e}var o,i=this.getCurrentData();if(t instanceof St)o=t.internalEventSource;else if("boolean"==typeof t)t&&(o=En(i.eventSources)[0]);else if(null!=t){var a=this.getEventSourceById(t);if(!a)return console.warn('Could not find an event source with ID "'+t+'"'),null;o=a.internalEventSource}var c=Tr(e,o,i,!1);if(c){var s=new wo(i,c.def,c.def.recurringDef?null:c.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:br(c)}),this.triggerEventAdd(s),s}return null},e.prototype.triggerEventAdd=function(e){var t=this;this.getCurrentData().emitter.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:xo(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,o=n.instances;for(var i in e=String(e),r){var a=r[i];if(a.publicId===e){if(a.recurringDef)return new wo(t,a,null);for(var c in o){var s=o[c];if(s.defId===a.defId)return new wo(t,a,s)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return Eo(e.eventStore,e)},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.getEventSources=function(){var e=this.getCurrentData(),t=e.eventSources,n=[];for(var r in t)n.push(new St(e,t[r]));return n},e.prototype.getEventSourceById=function(e){var t=this.getCurrentData(),n=t.eventSources;for(var r in e=String(e),n)if(n[r].publicId===e)return new St(t,n[r]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof St)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=vo(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new St(t,n)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},e.prototype.scrollToTime=function(e){var t=Rn(e);t&&this.trigger("_scrollRequest",{time:t})},e}(),wo=function(){function e(e,t,n){this._context=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in Pr)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=_r[e](t),this.mutate({standardProps:{publicId:t}});else if(e in _r)t=_r[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in Or){var o=Or[e](t);"color"===e?o={backgroundColor:t,borderColor:t}:"editable"===e?o={startEditable:t,durationEditable:t}:((r={})[e]=t,o=r),this.mutate({standardProps:{ui:o}})}else console.warn("Could not set prop '"+e+"'. Use setExtendedProp instead.")},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._context.dateEnv,r=n.createMarker(e);if(r&&this._instance){var o=Fr(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:o}):this.mutate({startDelta:o})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._context.dateEnv;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){var o=Fr(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,o,i,a=this._context.dateEnv,c={allDay:n.allDay},s=a.createMarker(e);if(s&&((null==t||(r=a.createMarker(t)))&&this._instance)){var u=this._instance.range;!0===n.allDay&&(u=Br(u));var l=Fr(u.start,s,a,n.granularity);if(r){var d=Fr(u.end,r,a,n.granularity);i=d,(o=l).years===i.years&&o.months===i.months&&o.days===i.days&&o.milliseconds===i.milliseconds?this.mutate({datesDelta:l,standardProps:c}):this.mutate({startDelta:l,endDelta:d,standardProps:c})}else c.hasEnd=!1,this.mutate({datesDelta:l,standardProps:c})}},e.prototype.moveStart=function(e){var t=Rn(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=Rn(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=Rn(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._context.dateEnv,n=this._instance,r=cr(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},e.prototype.mutate=function(t){var n=this._instance;if(n){var r=this._def,o=this._context,i=o.getCurrentData().eventStore,a=Ar(i,n.instanceId);a=fo(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,o);var c=new e(o,r,n);this._def=a.defs[r.defId],this._instance=a.instances[n.instanceId],o.dispatch({type:"MERGE_EVENTS",eventStore:a}),o.emitter.trigger("eventChange",{oldEvent:c,event:this,relatedEvents:Eo(a,o,n),revert:function(){o.dispatch({type:"RESET_EVENTS",eventStore:i})}})}},e.prototype.remove=function(){var e=this._context,t=xo(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new St(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._def,n=t.ui,r=this.startStr,o=this.endStr,i={};return t.title&&(i.title=t.title),r&&(i.start=r),o&&(i.end=o),t.publicId&&(i.id=t.publicId),t.groupId&&(i.groupId=t.groupId),t.url&&(i.url=t.url),n.display&&"auto"!==n.display&&(i.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?i.color=n.backgroundColor:(n.backgroundColor&&(i.backgroundColor=n.backgroundColor),n.borderColor&&(i.borderColor=n.borderColor)),n.textColor&&(i.textColor=n.textColor),n.classNames.length&&(i.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?(0,it.pi)(i,t.extendedProps):i.extendedProps=t.extendedProps),i},e.prototype.toJSON=function(){return this.toPlainObject()},e}();function xo(e){var t,n,r=e._def,o=e._instance;return{defs:(t={},t[r.defId]=r,t),instances:o?(n={},n[o.instanceId]=o,n):{}}}function Eo(e,t,n){var r=e.defs,o=e.instances,i=[],a=n?n.instanceId:"";for(var c in o){var s=o[c],u=r[s.defId];s.instanceId!==a&&i.push(new wo(t,u,s))}return i}var Oo={};!function(e,t){Oo[e]=t}("gregory",function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return hn(e)},e.prototype.markerToArray=function(e){return pn(e)},e}());var Co=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;var ko=function(){function e(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new Oo[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):hn(dn(new Date))},e.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=hn(e)),null!==t&&mn(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=function(e){var t=Co.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(mn(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return gn(e)===gn(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return gn(e)===gn(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(e,t))?{unit:"month",value:n}:(n=function(e,t){var n=cn(e,t);return null!==n&&n%7==0?n/7:null}(e,t),null!==n?{unit:"week",value:n}:null!==(n=cn(e,t))?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),en(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),en(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),en(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))},e.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/(Bn(n)/365):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/function(e){return Bn(e)/30}(n):n.days&&null!==(r=cn(e,t))?r/Bn(n):(t.valueOf()-e.valueOf())/Nn(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?sn(e):"hour"===t?function(e){return hn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return hn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return hn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){var r=e.getUTCFullYear(),o=un(e,r,t,n);if(o<1)return un(e,r-1,t,n);var i=un(e,r+1,t,n);return i>=1?Math.min(o,i):o}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=on(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),Ln(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?hn(dn(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?hn(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-fn(pn(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(pn(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?fn(pn(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(pn(e))*60):new Date(e.valueOf()-(t||0))},e}(),So=[],Do={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"},_o=(0,it.pi)((0,it.pi)({},Do),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(e,t){return"day"===t?"Today":"This "+e}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show "+e+" more event"+(1===e?"":"s")}});function Po(e){for(var t=e.length>0?e[0].code:"en",n=So.concat(e),r={en:_o},o=0,i=n;o<i.length;o++){var a=i[o];r[a.code]=a}return{map:r,defaultCode:t}}function jo(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){var n=[].concat(e||[]),r=function(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split("-"),o=r.length;o>0;o-=1){var i=r.slice(0,o).join("-");if(t[i])return t[i]}return null}(n,t)||_o;return To(e,n,r)}(e,t):To(e.code,[e.code],e)}function To(e,t,n){var r=bn([Do,n],["buttonText"]);delete r.code;var o=r.week;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var Ro,Io={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Mo(e,t){return yr(function(e){var t;t=!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"==typeof e&&e?[e]:[];return t=t.map((function(e){return(0,it.pi)((0,it.pi)({},Io),e)}))}(e),null,t)}function Bo(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function No(e,t){var 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 Fo(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}function Zo(){return null==Ro&&(Ro=function(){if("undefined"==typeof document)return!0;var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);var t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),Ro}var Lo={defs:{},instances:{}},Ho=function(){function e(){this.getKeysForEventDefs=Wn(this._getKeysForEventDefs),this.splitDateSelection=Wn(this._splitDateSpan),this.splitEventStore=Wn(this._splitEventStore),this.splitIndividualUi=Wn(this._splitIndividualUi),this.splitEventDrag=Wn(this._splitInteraction),this.splitEventResize=Wn(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),o=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,r),a=this.splitEventStore(e.eventStore,r),c=this.splitEventDrag(e.eventDrag),s=this.splitEventResize(e.eventResize),u={};for(var l in this.eventUiBuilders=wn(n,(function(e,n){return t.eventUiBuilders[n]||Wn(Uo)})),n){var d=n[l],f=a[l]||Lo,p=this.eventUiBuilders[l];u[l]={businessHours:d.businessHours||e.businessHours,dateSelection:o[l]||null,eventStore:f,eventUiBases:p(e.eventUiBases[""],d.ui,i[l]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:"",eventDrag:c[l]||null,eventResize:s[l]||null}}return u},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,r=this.getKeysForDateSpan(e);n<r.length;n++){t[r[n]]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return wn(e.defs,(function(e){return t.getKeysForEventDef(e)}))},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,o={};for(var i in n)for(var a=0,c=t[i];a<c.length;a++){o[f=c[a]]||(o[f]={defs:{},instances:{}}),o[f].defs[i]=n[i]}for(var s in r)for(var u=r[s],l=0,d=t[u.defId];l<d.length;l++){var f;o[f=d[l]]&&(o[f].instances[s]=u)}return o},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var o=0,i=t[r];o<i.length;o++){var a=i[o];n[a]||(n[a]={}),n[a][r]=e[r]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,r),i=function(r){t[r]||(t[r]={affectedEvents:n[r]||Lo,mutatedEvents:o[r]||Lo,isEvent:e.isEvent})};for(var a in n)i(a);for(var a in o)i(a)}return t},e}();function Uo(e,t,n){var r=[];e&&r.push(e),t&&r.push(t);var o={"":Sr(r)};return n&&(0,it.pi)(o,n),o}function zo(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!Vr(r.activeRange,e)),isOther:Boolean(r&&!Vr(r.currentRange,e)),isToday:Boolean(t&&Vr(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Wo(e,t){var n=["fc-day","fc-day-"+nn[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 Vo(e,t){var n=["fc-slot","fc-slot-"+nn[e.dow]];return e.isDisabled?n.push("fc-slot-disabled"):(e.isToday&&(n.push("fc-slot-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-slot-past"),e.isFuture&&n.push("fc-slot-future")),n}var Yo=cr({year:"numeric",month:"long",day:"numeric"}),qo=cr({week:"long"});function Go(e,t,n,r){void 0===n&&(n="day"),void 0===r&&(r=!0);var o,i=e.dateEnv,a=e.options,c=e.calendarApi,s=i.format(t,"week"===n?qo:Yo);if(a.navLinks){var u=i.toDate(t),l=function(e){var r="day"===n?a.navLinkDayClick:"week"===n?a.navLinkWeekClick:null;"function"==typeof r?r.call(c,i.toDate(t),e):("string"==typeof r&&(n=r),c.zoomTo(t,n))};return(0,it.pi)({title:$t(a.navLinkHint,[s,u],s),"data-navlink":""},r?(o=l,(0,it.pi)({onClick:o},Ut(o))):{onClick:l})}return{"aria-label":s}}var Qo,Xo=null;function Ko(){return null===Xo&&(Xo=function(){var e=document.createElement("div");Rt(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return Dt(e),t}()),Xo}function $o(){return Qo||(Qo=function(){var e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);var t=Jo(e);return document.body.removeChild(e),t}()),Qo}function Jo(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function ei(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,c=Jo(e),s=c.y-r-o,u={borderLeft:r,borderRight:o,borderTop:i,borderBottom:a,scrollbarBottom:c.x-i-a,scrollbarLeft:0,scrollbarRight:0};return Ko()&&"rtl"===n.direction?u.scrollbarLeft=s:u.scrollbarRight=s,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 ti(e,t,n){void 0===t&&(t=!1);var r=n?e.getBoundingClientRect():ni(e),o=ei(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 ni(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function ri(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function oi(e,t,n){var r=!1,o=function(){r||(r=!0,t.apply(this,arguments))},i=function(){r||(r=!0,n&&n.apply(this,arguments))},a=e(o,i);a&&"function"==typeof a.then&&a.then(o,i)}var ii=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)},e.prototype.off=function(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=this.handlers[e]||[],o=this.options&&this.options[e],i=[].concat(o||[],r),a=0,c=i;a<c.length;a++){var s=c[a];s.apply(this.thisContext,t)}},e.prototype.hasHandlers=function(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])},e}();var ai=function(){function e(e,t,n,r){this.els=t;var o=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(o.left),r&&this.buildElVerticals(o.top)}return e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r].getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r].getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this.lefts,r=this.rights,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.topToIndex=function(e){var t,n=this.tops,r=this.bottoms,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),ci=function(){function e(){}return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),si=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return(0,it.ZT)(t,e),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}(ci),ui=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth},t}(ci),li=function(){function e(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}return e.prototype.setIconOverride=function(e){var t,n;if("object"==typeof e&&e){for(n in t=(0,it.pi)({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e,t){var n;return(n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e])?this.baseIconClass+" "+n:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();li.prototype.classes={},li.prototype.iconClasses={},li.prototype.baseIconClass="",li.prototype.iconOverridePrefix="";var di=function(){function e(e,t,n,r){var o=this;this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=function(e){o.queuedRequest=(0,it.pi)({},o.queuedRequest||{},e),o.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return e.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},e.prototype.update=function(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},e.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},e.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},e}(),fi=Ot({});function pi(e,t,n,r,o,i,a,c,s,u,l,d,f){return{dateEnv:o,options:n,pluginHooks:a,emitter:u,dispatch:c,getCurrentData:s,calendarApi:l,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:i,isRtl:"rtl"===n.direction,addResizeHandler:function(e){u.on("_resize",e)},removeResizeHandler:function(e){u.off("_resize",e)},createScrollResponder:function(e){return new di(e,u,Rn(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:f}}var hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(Cn(e,this.props),Cn(t,this.state)),!kn(this.props,e,this.propEquality)||!kn(this.state,t,this.stateEquality)},t.prototype.safeSetState=function(e){kn(this.state,(0,it.pi)((0,it.pi)({},this.state),e),this.stateEquality)||this.setState(e)},t.addPropsEquality=gi,t.addStateEquality=vi,t.contextType=fi,t}(At);hi.prototype.propEquality={},hi.prototype.stateEquality={};var mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.contextType=fi,t}(hi);function gi(e){var t=Object.create(this.prototype.propEquality);(0,it.pi)(t,e),this.prototype.propEquality=t}function vi(e){var t=Object.create(this.prototype.stateEquality);(0,it.pi)(t,e),this.prototype.stateEquality=t}function yi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var bi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uid=Wt(),t}return(0,it.ZT)(t,e),t.prototype.prepareHits=function(){},t.prototype.queryHit=function(e,t,n,r){return null},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!_t(e,".fc-event-mirror")},t.prototype.isValidDateDownEl=function(e){return!(_t(e,".fc-event:not(.fc-bg-event)")||_t(e,".fc-more-link")||_t(e,"a[data-navlink]")||_t(e,".fc-popover"))},t}(mi);function Ai(e){return{id:Wt(),deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,contentTypeHandlers:e.contentTypeHandlers||{},listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function wi(){var e,t=[],n=[];return function(r,o){return e&&zn(r,t)&&zn(o,n)||(e=function(e,t){var n={},r={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(e){for(var t=0,i=e;t<i.length;t++){var a=i[t];n[a.id]||(n[a.id]=!0,o(a.deps),s=a,r={reducers:(c=r).reducers.concat(s.reducers),isLoadingFuncs:c.isLoadingFuncs.concat(s.isLoadingFuncs),contextInit:c.contextInit.concat(s.contextInit),eventRefiners:(0,it.pi)((0,it.pi)({},c.eventRefiners),s.eventRefiners),eventDefMemberAdders:c.eventDefMemberAdders.concat(s.eventDefMemberAdders),eventSourceRefiners:(0,it.pi)((0,it.pi)({},c.eventSourceRefiners),s.eventSourceRefiners),isDraggableTransformers:c.isDraggableTransformers.concat(s.isDraggableTransformers),eventDragMutationMassagers:c.eventDragMutationMassagers.concat(s.eventDragMutationMassagers),eventDefMutationAppliers:c.eventDefMutationAppliers.concat(s.eventDefMutationAppliers),dateSelectionTransformers:c.dateSelectionTransformers.concat(s.dateSelectionTransformers),datePointTransforms:c.datePointTransforms.concat(s.datePointTransforms),dateSpanTransforms:c.dateSpanTransforms.concat(s.dateSpanTransforms),views:(0,it.pi)((0,it.pi)({},c.views),s.views),viewPropsTransformers:c.viewPropsTransformers.concat(s.viewPropsTransformers),isPropsValid:s.isPropsValid||c.isPropsValid,externalDefTransforms:c.externalDefTransforms.concat(s.externalDefTransforms),viewContainerAppends:c.viewContainerAppends.concat(s.viewContainerAppends),eventDropTransformers:c.eventDropTransformers.concat(s.eventDropTransformers),calendarInteractions:c.calendarInteractions.concat(s.calendarInteractions),componentInteractions:c.componentInteractions.concat(s.componentInteractions),themeClasses:(0,it.pi)((0,it.pi)({},c.themeClasses),s.themeClasses),eventSourceDefs:c.eventSourceDefs.concat(s.eventSourceDefs),cmdFormatter:s.cmdFormatter||c.cmdFormatter,recurringTypes:c.recurringTypes.concat(s.recurringTypes),namedTimeZonedImpl:s.namedTimeZonedImpl||c.namedTimeZonedImpl,initialView:c.initialView||s.initialView,elementDraggingImpl:c.elementDraggingImpl||s.elementDraggingImpl,optionChangeHandlers:(0,it.pi)((0,it.pi)({},c.optionChangeHandlers),s.optionChangeHandlers),scrollGridImpl:s.scrollGridImpl||c.scrollGridImpl,contentTypeHandlers:(0,it.pi)((0,it.pi)({},c.contentTypeHandlers),s.contentTypeHandlers),listenerRefiners:(0,it.pi)((0,it.pi)({},c.listenerRefiners),s.listenerRefiners),optionRefiners:(0,it.pi)((0,it.pi)({},c.optionRefiners),s.optionRefiners),propSetHandlers:(0,it.pi)((0,it.pi)({},c.propSetHandlers),s.propSetHandlers)})}var c,s}return e&&o(e),o(t),r}(r,o)),t=r,n=o,e}}var xi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t}(li);function Ei(e,t,n,r){if(t[e])return t[e];var o=function(e,t,n,r){var o=n[e],i=r[e],a=function(e){return o&&null!==o[e]?o[e]:i&&null!==i[e]?i[e]:null},c=a("component"),s=a("superType"),u=null;if(s){if(s===e)throw new Error("Can't have a custom view type that references itself");u=Ei(s,t,n,r)}!c&&u&&(c=u.component);if(!c)return null;return{type:e,component:c,defaults:(0,it.pi)((0,it.pi)({},u?u.defaults:{}),o?o.rawOptions:{}),overrides:(0,it.pi)((0,it.pi)({},u?u.overrides:{}),i?i.rawOptions:{})}}(e,t,n,r);return o&&(t[e]=o),o}xi.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},xi.prototype.baseIconClass="fc-icon",xi.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"},xi.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},xi.prototype.iconOverrideOption="buttonIcons",xi.prototype.iconOverrideCustomButtonOption="icon",xi.prototype.iconOverridePrefix="fc-icon-";var Oi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=xt(),t.handleRootEl=function(e){yi(t.rootElRef,e),t.props.elRef&&yi(t.props.elRef,e)},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.hookProps;return wt(Di,{hookProps:n,didMount:t.didMount,willUnmount:t.willUnmount,elRef:this.handleRootEl},(function(r){return wt(ki,{hookProps:n,content:t.content,defaultContent:t.defaultContent,backupElRef:e.rootElRef},(function(e,o){return t.children(r,Pi(t.classNames,n),e,o)}))}))},t}(mi),Ci=Ot(0);function ki(e){return wt(Ci.Consumer,null,(function(t){return wt(Si,(0,it.pi)({renderId:t},e))}))}var Si=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerElRef=xt(),t}return(0,it.ZT)(t,e),t.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},t.prototype.componentDidMount=function(){this.updateCustomContent()},t.prototype.componentDidUpdate=function(){this.updateCustomContent()},t.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},t.prototype.renderInnerContent=function(){var e=this.customContentInfo,t=this.getInnerContent(),n=this.getContentMeta(t);return e&&e.contentKey===n.contentKey?e&&(e.contentVal=t[n.contentKey]):(e&&(e.destroy&&e.destroy(),e=this.customContentInfo=null),n.contentKey&&(e=this.customContentInfo=(0,it.pi)({contentKey:n.contentKey,contentVal:t[n.contentKey]},n.buildLifecycleFuncs()))),e?[]:t},t.prototype.getInnerContent=function(){var e=this.props,t=ji(e.content,e.hookProps);return void 0===t&&(t=ji(e.defaultContent,e.hookProps)),null==t?null:t},t.prototype.getContentMeta=function(e){var t=this.context.pluginHooks.contentTypeHandlers,n="",r=null;if(e)for(var o in t)if(void 0!==e[o]){n=o,r=t[o];break}return{contentKey:n,buildLifecycleFuncs:r}},t.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},t}(mi),Di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&yi(t.props.elRef,e)},t}return(0,it.ZT)(t,e),t.prototype.render=function(){return this.props.children(this.handleRootEl)},t.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e((0,it.pi)((0,it.pi)({},this.props.hookProps),{el:this.rootEl}))},t.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e((0,it.pi)((0,it.pi)({},this.props.hookProps),{el:this.rootEl}))},t}(mi);function _i(){var e,t,n=[];return function(r,o){return t&&On(t,o)&&r===e||(e=r,t=o,n=Pi(r,o)),n}}function Pi(e,t){return"function"==typeof e&&(e=e(t)),Er(e)}function ji(e,t){return"function"==typeof e?e(t,wt):e}var Ti=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.normalizeClassNames=_i(),t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r={view:t.viewApi},o=this.normalizeClassNames(n.viewClassNames,r);return wt(Di,{hookProps:r,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount,elRef:e.elRef},(function(t){return e.children(t,["fc-"+e.viewSpec.type+"-view","fc-view"].concat(o))}))},t}(mi);function Ri(e){return wn(e,Ii)}function Ii(e){var t="function"==typeof e?{component:e}:e,n=t.component;return t.content&&(n=function(e){return function(t){return wt(fi.Consumer,null,(function(n){return wt(Ti,{viewSpec:n.viewSpec},(function(r,o){var i=(0,it.pi)((0,it.pi)({},t),{nextDayThreshold:n.options.nextDayThreshold});return wt(Oi,{hookProps:i,classNames:e.classNames,content:e.content,didMount:e.didMount,willUnmount:e.willUnmount,elRef:r},(function(e,t,n,r){return wt("div",{className:o.concat(t).join(" "),ref:e},r)}))}))}))}}(t)),{superType:t.type,component:n,rawOptions:t}}function Mi(e,t,n,r){var o=Ri(e),i=Ri(t.views),a=function(e,t){var n,r={};for(n in e)Ei(n,r,e,t);for(n in t)Ei(n,r,e,t);return r}(o,i);return wn(a,(function(e){return function(e,t,n,r,o){var i=e.overrides.duration||e.defaults.duration||r.duration||n.duration,a=null,c="",s="",u={};if(i&&(a=function(e){var t=JSON.stringify(e),n=Bi[t];void 0===n&&(n=Rn(e),Bi[t]=n);return n}(i),a)){var l=Zn(a);c=l.unit,1===l.value&&(s=c,u=t[c]?t[c].rawOptions:{})}var d=function(t){var n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[s]?n[s]:null},f=function(t){var n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[s]?n[s]:null};return{type:e.type,component:e.component,duration:a,durationUnit:c,singleUnit:s,optionDefaults:e.defaults,optionOverrides:(0,it.pi)((0,it.pi)({},u),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(o)||e.defaults.buttonText||d(ur)||e.type,buttonTitleOverride:f(r)||f(n)||e.overrides.buttonHint,buttonTitleDefault:f(o)||e.defaults.buttonHint||f(ur)}}(e,i,t,n,r)}))}var Bi={};var Ni=function(){function e(e){this.props=e,this.nowDate=bo(e.nowInput,e.dateEnv),this.initHiddenDays()}return e.prototype.buildPrev=function(e,t,n){var r=this.props.dateEnv,o=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,n)},e.prototype.buildNext=function(e,t,n){var r=this.props.dateEnv,o=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,n)},e.prototype.build=function(e,t,n){void 0===n&&(n=!0);var r,o,i,a,c,s,u=this.props;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=function(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}(e,r)),o=this.buildCurrentRangeInfo(e,t),i=/^(year|month|week|day)$/.test(o.unit),a=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,i),c=a=this.trimHiddenDays(a),u.showNonCurrentDates||(c=Hr(c,o.range)),c=Hr(c=this.adjustActiveRange(c),r),s=zr(o.range,r),{validRange:r,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:i,activeRange:c,renderRange:a,slotMinTime:u.slotMinTime,slotMaxTime:u.slotMaxTime,isValid:s,dateIncrement:this.buildDateIncrement(o.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.props,o=null,i=null,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:(i=Zn(o=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(e,t,o,i)),{duration:o,unit:i,range:a}},e.prototype.getFallbackDuration=function(){return Rn({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,o=t.slotMinTime,i=t.slotMaxTime,a=e.start,c=e.end;return r&&(Bn(o)<0&&(a=sn(a),a=n.add(a,o)),Bn(i)>1&&(c=rn(c=sn(c),-1),c=n.add(c,i))),{start:a,end:c}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var o,i,a,c=this.props,s=c.dateEnv,u=c.dateAlignment;if(!u){var l=this.props.dateIncrement;u=l&&Nn(l)<Nn(n)?Zn(l).unit:r}function d(){o=s.startOf(e,u),i=s.add(o,n),a={start:o,end:i}}return Bn(n)<=1&&this.isHiddenDay(o)&&(o=sn(o=this.skipHiddenDays(o,t))),d(),this.trimHiddenDays(a)||(e=this.skipHiddenDays(e,t),d()),a},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,o=this.props,i=o.dateEnv,a=o.dateAlignment,c=0,s=e;a&&(s=i.startOf(s,a)),s=sn(s),r=s=this.skipHiddenDays(s,t);do{r=rn(r,1),this.isHiddenDay(r)||(c+=1)}while(c<n);return{start:s,end:r}},e.prototype.buildCustomVisibleRange=function(e){var t=this.props,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,o=this.refineRange(r);return!o||null!=o.start&&null!=o.end?o:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.props.dateIncrement;return n||((t=this.props.dateAlignment)?Rn(1,t):e||Rn({days:1}))},e.prototype.refineRange=function(e){if(e){var t=(n=e,r=this.props.dateEnv,o=null,i=null,n.start&&(o=r.createMarker(n.start)),n.end&&(i=r.createMarker(n.end)),o||i?o&&i&&i<o?null:{start:o,end:i}:null);return t&&(t=Nr(t)),t}var n,r,o,i;return null},e.prototype.initHiddenDays=function(){var e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=rn(e,t);return e},e}();function Fi(e,t,n){var r=t?t.activeRange:null;return Hi({},function(e,t){var n=yo(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(var i=0,a=r;i<a.length;i++){var c=vo(a[i],t,n);c&&o.push(c)}return o}(e,n),r,n)}function Zi(e,t,n,r){var o,i,a=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Hi(e,t.sources,a,r);case"REMOVE_EVENT_SOURCE":return o=e,i=t.sourceId,An(o,(function(e){return e.sourceId!==i}));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Ui(e,a,r):e;case"FETCH_EVENT_SOURCES":return zi(e,t.sourceIds?xn(t.sourceIds):Vi(e,r),a,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){var o,i=e[t];if(i&&n===i.latestFetchId)return(0,it.pi)((0,it.pi)({},e),((o={})[t]=(0,it.pi)((0,it.pi)({},i),{isFetching:!1,fetchRange:r}),o));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function Li(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function Hi(e,t,n,r){for(var o={},i=0,a=t;i<a.length;i++){var c=a[i];o[c.sourceId]=c}return n&&(o=Ui(o,n,r)),(0,it.pi)((0,it.pi)({},e),o)}function Ui(e,t,n){return zi(e,An(e,(function(e){return function(e,t,n){if(!Yi(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 zi(e,t,n,r,o){var i={};for(var a in e){var c=e[a];t[a]?i[a]=Wi(c,n,r,o):i[a]=c}return i}function Wi(e,t,n,r){var o=r.options,i=r.calendarApi,a=r.pluginHooks.eventSourceDefs[e.sourceDefId],c=Wt();return a.fetch({eventSource:e,range:t,isRefetch:n,context:r},(function(n){var a=n.rawEvents;o.eventSourceSuccess&&(a=o.eventSourceSuccess.call(i,a,n.xhr)||a),e.success&&(a=e.success.call(i,a,n.xhr)||a),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:c,fetchRange:t,rawEvents:a})}),(function(n){console.warn(n.message,n),o.eventSourceFailure&&o.eventSourceFailure.call(i,n),e.failure&&e.failure(n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:c,fetchRange:t,error:n})})),(0,it.pi)((0,it.pi)({},e),{isFetching:!0,latestFetchId:c})}function Vi(e,t){return An(e,(function(e){return Yi(e,t)}))}function Yi(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function qi(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,o,i){if(t&&n===t.latestFetchId){var a=yr(function(e,t,n){var r=n.options.eventDataTransform,o=t?t.eventDataTransform:null;o&&(e=Gi(e,o));r&&(e=Gi(e,r));return e}(o,t,i),t,i);return r&&(a=_n(a,r,i)),wr(Qi(e,t.sourceId),a)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=_n(t,n,r));return wr(e,t)}(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return wr(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?_n(e,r.activeRange,o):e;case"REMOVE_EVENTS":return function(e,t){var n=e.defs,r=e.instances,o={},i={};for(var a in n)t.defs[a]||(o[a]=n[a]);for(var c in r)!t.instances[c]&&o[r[c].defId]&&(i[c]=r[c]);return{defs:o,instances:i}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return Qi(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return xr(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Gi(e,t){var n;if(t){n=[];for(var r=0,o=e;r<o.length;r++){var i=o[r],a=t(i);a?n.push(a):null==a&&n.push(i)}}else n=e;return n}function Qi(e,t){return xr(e,(function(e){return e.sourceId!==t}))}function Xi(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Ki(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function $i(e,t){var n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Ji(e,t){var n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function ea(e,t,n,r,o){return{header:e.headerToolbar?ta(e.headerToolbar,e,t,n,r,o):null,footer:e.footerToolbar?ta(e.footerToolbar,e,t,n,r,o):null}}function ta(e,t,n,r,o,i){var a={},c=[],s=!1;for(var u in e){var l=na(e[u],t,n,r,o,i);a[u]=l.widgets,c.push.apply(c,l.viewsWithButtons),s=s||l.hasTitle}return{sectionWidgets:a,viewsWithButtons:c,hasTitle:s}}function na(e,t,n,r,o,i){var a="rtl"===t.direction,c=t.customButtons||{},s=n.buttonText||{},u=t.buttonText||{},l=n.buttonHints||{},d=t.buttonHints||{},f=e?e.split(" "):[],p=[],h=!1;return{widgets:f.map((function(e){return e.split(",").map((function(e){if("title"===e)return h=!0,{buttonName:e};var n,f,m,g,v,y;if(n=c[e])m=function(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=function(){i.changeView(e)},(v=f.buttonTextOverride)||(g=r.getIconClass(e,a))||(v=f.buttonTextDefault);var b=f.buttonTextOverride||f.buttonTextDefault;y=$t(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[b,e],b)}else if(i[e])if(m=function(){i[e]()},(v=s[e])||(g=r.getIconClass(e,a))||(v=u[e]),"prevYear"===e||"nextYear"===e){var A="prevYear"===e?"prev":"next";y=$t(l[A]||d[A],[u.year||"year","year"],u[e])}else y=function(t){return $t(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}}function ra(e,t,n,r,o){var i=null;"GET"===(e=e.toUpperCase())?t=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+oa(t)}(t,n):i=oa(n);var a=new XMLHttpRequest;a.open(e,t,!0),"GET"!==e&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=function(){if(a.status>=200&&a.status<400){var e=!1,t=void 0;try{t=JSON.parse(a.responseText),e=!0}catch(e){}e?r(t,a):o("Failure parsing JSON",a)}else o("Request failed",a)},a.onerror=function(){o("Request failed",a)},a.send(i)}function oa(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}var ia={parseMeta:function(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var r=e.eventSource.meta,o=function(e,t,n){var r,o,i,a,c=n.dateEnv,s=n.options,u={};null==(r=e.startParam)&&(r=s.startParam);null==(o=e.endParam)&&(o=s.endParam);null==(i=e.timeZoneParam)&&(i=s.timeZoneParam);a="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};(0,it.pi)(u,a),u[r]=c.formatIso(t.start),u[o]=c.formatIso(t.end),"local"!==c.timeZone&&(u[i]=c.timeZone);return u}(r,e.range,e.context);ra(r.method,r.url,o,(function(e,n){t({rawEvents:e,xhr:n})}),(function(e,t){n({message:e,xhr:t})}))}};var aa={parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r=void 0;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(o=e.endTime,i=e.startTime,r={years:o.years-i.years,months:o.months-i.months,days:o.days-i.days,milliseconds:o.milliseconds-i.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}var o,i;return null},expand:function(e,t,n){var r=Hr(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){var o=e?xn(e):null,i=sn(n.start),a=n.end,c=[];for(;i<a;){var s=void 0;o&&!o[i.getUTCDay()]||(s=t?r.add(i,t):i,c.push(s)),i=rn(i,1)}return c}(e.daysOfWeek,e.startTime,r,n):[]}};function ca(e,t){for(var n=En(t.getCurrentData().eventSources),r=[],o=0,i=e;o<i.length;o++){for(var a=i[o],c=!1,s=0;s<n.length;s+=1)if(n[s]._raw===a){n.splice(s,1),c=!0;break}c||r.push(a)}for(var u=0,l=n;u<l.length;u++){var d=l[u];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var f=0,p=r;f<p.length;f++){var h=p[f];t.calendarApi.addEventSource(h)}}var sa=[Ai({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),Ai({eventSourceDefs:[{parseMeta:function(e){return"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.context.dateEnv;oi(e.eventSource.meta.bind(null,io(e.range,r)),(function(e){t({rawEvents:e})}),n)}}]}),Ai({eventSourceRefiners:{method:String,extraParams:vr,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[ia]}),Ai({recurringTypes:[aa],eventRefiners:{daysOfWeek:vr,startTime:Rn,endTime:Rn,duration:Rn,startRecur:vr,endRecur:vr}}),Ai({optionChangeHandlers:{events:function(e,t){ca([e],t)},eventSources:ca}}),Ai({isLoadingFuncs:[function(e){return Li(e.eventSources)}],contentTypeHandlers:{html:function(){var e=null,t="";return{render:function(n,r){n===e&&r===t||(n.innerHTML=r),e=n,t=r},destroy:function(){e.innerHTML="",e=null,t=""}}},domNodes:function(){var e=null,t=[];function n(){t.forEach(Dt),t=[],e=null}return{render:function(r,o){var i=Array.prototype.slice.call(o);if(r!==e||!zn(t,i)){for(var a=0,c=i;a<c.length;a++){var s=c[a];r.appendChild(s)}n()}e=r,t=i},destroy:n}}},propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",(0,it.pi)((0,it.pi)({},io(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Eo(e,t))}}})];var ua=function(){function e(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return e.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},e.prototype.pause=function(e){void 0===e&&(e="");var t=this.pauseDepths;t[e]=(t[e]||0)+1,this.clearTimeout()},e.prototype.resume=function(e,t){void 0===e&&(e="");var n=this.pauseDepths;if(e in n){if(t)delete n[e];else n[e]-=1,n[e]<=0&&delete n[e];this.tryDrain()}},e.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},e.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},e.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},e.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},e.prototype.drained=function(){this.drainedOption&&this.drainedOption()},e}(),la=function(){function e(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new ua(this.drain.bind(this))}return e.prototype.request=function(e,t){this.queue.push(e),this.delayedRunner.request(t)},e.prototype.pause=function(e){this.delayedRunner.pause(e)},e.prototype.resume=function(e,t){this.delayedRunner.resume(e,t)},e.prototype.drain=function(){for(var e=this.queue;e.length;){for(var t=[],n=void 0;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}},e.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},e.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},e}();function da(e,t,n){var r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,cr(t.titleFormat||function(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=cn(e.currentRange.start,e.currentRange.end);if(null!==n&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}var fa=function(){function e(e){var t=this;this.computeOptionsData=Wn(this._computeOptionsData),this.computeCurrentViewData=Wn(this._computeCurrentViewData),this.organizeRawLocales=Wn(Po),this.buildLocale=Wn(jo),this.buildPluginHooks=wi(),this.buildDateEnv=Wn(pa),this.buildTheme=Wn(ha),this.parseToolbars=Wn(ea),this.buildViewSpecs=Wn(Mi),this.buildDateProfileGenerator=Vn(ma),this.buildViewApi=Wn(ga),this.buildViewUiProps=Vn(ba),this.buildEventUiBySource=Wn(va,On),this.buildEventUiBases=Wn(ya),this.parseContextBusinessHours=Vn(wa),this.buildTitle=Wn(da),this.emitter=new ii,this.actionRunner=new la(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return t.data},this.dispatch=function(e){t.actionRunner.request(e)},this.props=e,this.actionRunner.pause();var n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),o=r.calendarOptions.initialView||r.pluginHooks.initialView,i=this.computeCurrentViewData(o,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);var a=function(e,t){var n=e.initialDate;return null!=n?t.createMarker(n):bo(e.now,t)}(r.calendarOptions,r.dateEnv),c=i.dateProfileGenerator.build(a);Vr(c.activeRange,a)||(a=c.currentRange.start);for(var s={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},u=0,l=r.pluginHooks.contextInit;u<l.length;u++){(0,l[u])(s)}for(var d=Fi(r.calendarOptions,c,s),f={dynamicOptionOverrides:n,currentViewType:o,currentDate:a,dateProfile:c,businessHours:this.parseContextBusinessHours(s),eventSources:d,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(s).selectionConfig},p=(0,it.pi)((0,it.pi)({},s),f),h=0,m=r.pluginHooks.reducers;h<m.length;h++){var g=m[h];(0,it.pi)(f,g(null,null,p))}Aa(f,s)&&this.emitter.trigger("loading",!0),this.state=f,this.updateData(),this.actionRunner.resume()}return e.prototype.resetOptions=function(e,t){var n=this.props;n.optionOverrides=t?(0,it.pi)((0,it.pi)({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},e.prototype._handleAction=function(e){var t=this,n=t.props,r=t.state,o=t.emitter,i=function(e,t){var n;return"SET_OPTION"===t.type?(0,it.pi)((0,it.pi)({},e),((n={})[t.optionName]=t.rawOptionValue,n)):e}(r.dynamicOptionOverrides,e),a=this.computeOptionsData(n.optionOverrides,i,n.calendarApi),c=function(e,t){"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType);return e}(r.currentViewType,e),s=this.computeCurrentViewData(c,a,n.optionOverrides,i);n.calendarApi.currentDataManager=this,o.setThisContext(n.calendarApi),o.setOptions(s.options);var u={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:o,getCurrentData:this.getCurrentData},l=r.currentDate,d=r.dateProfile;this.data&&this.data.dateProfileGenerator!==s.dateProfileGenerator&&(d=s.dateProfileGenerator.build(l)),l=function(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}(l,e),d=function(e,t,n,r){var o;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if((o=r.buildPrev(e,n)).isValid)return o;break;case"NEXT":if((o=r.buildNext(e,n)).isValid)return o}return e}(d,e,l,s.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&Vr(d.currentRange,l)||(l=d.currentRange.start);for(var f=Zi(r.eventSources,e,d,u),p=qi(r.eventStore,e,f,d,u),h=Li(f)&&!s.options.progressiveEventRendering&&r.renderableEventStore||p,m=this.buildViewUiProps(u),g=m.eventUiSingleBase,v=m.selectionConfig,y=this.buildEventUiBySource(f),b={dynamicOptionOverrides:i,currentViewType:c,currentDate:l,dateProfile:d,eventSources:f,eventStore:p,renderableEventStore:h,selectionConfig:v,eventUiBases:this.buildEventUiBases(h.defs,g,y),businessHours:this.parseContextBusinessHours(u),dateSelection:Xi(r.dateSelection,e),eventSelection:Ki(r.eventSelection,e),eventDrag:$i(r.eventDrag,e),eventResize:Ji(r.eventResize,e)},A=(0,it.pi)((0,it.pi)({},u),b),w=0,x=a.pluginHooks.reducers;w<x.length;w++){var E=x[w];(0,it.pi)(b,E(r,e,A))}var O=Aa(r,u),C=Aa(b,u);!O&&C?o.trigger("loading",!0):O&&!C&&o.trigger("loading",!1),this.state=b,n.onAction&&n.onAction(e)},e.prototype.updateData=function(){var e,t,n,r,o=this.props,i=this.state,a=this.data,c=this.computeOptionsData(o.optionOverrides,i.dynamicOptionOverrides,o.calendarApi),s=this.computeCurrentViewData(i.currentViewType,c,o.optionOverrides,i.dynamicOptionOverrides),u=this.data=(0,it.pi)((0,it.pi)((0,it.pi)({viewTitle:this.buildTitle(i.dateProfile,s.options,c.dateEnv),calendarApi:o.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},c),s),i),l=c.pluginHooks.optionChangeHandlers,d=a&&a.calendarOptions,f=c.calendarOptions;if(d&&d!==f)for(var p in d.timeZone!==f.timeZone&&(i.eventSources=u.eventSources=(e=u.eventSources,t=i.dateProfile,n=u,r=t?t.activeRange:null,zi(e,Vi(e,n),r,!0,n)),i.eventStore=u.eventStore=function(e,t,n){var r=e.defs,o=wn(e.instances,(function(e){var o=r[e.defId];return o.allDay||o.recurringDef?e:(0,it.pi)((0,it.pi)({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:r,instances:o}}(u.eventStore,a.dateEnv,u.dateEnv)),l)d[p]!==f[p]&&l[p](f[p],u);o.onData&&o.onData(u)},e.prototype._computeOptionsData=function(e,t,n){var r=this.processRawCalendarOptions(e,t),o=r.refinedOptions,i=r.pluginHooks,a=r.localeDefaults,c=r.availableLocaleData;xa(r.extra);var s=this.buildDateEnv(o.timeZone,o.locale,o.weekNumberCalculation,o.firstDay,o.weekText,i,c,o.defaultRangeSeparator),u=this.buildViewSpecs(i.views,e,t,a),l=this.buildTheme(o,i);return{calendarOptions:o,pluginHooks:i,dateEnv:s,viewSpecs:u,theme:l,toolbarConfig:this.parseToolbars(o,e,l,u,n),localeDefaults:a,availableRawLocales:c.map}},e.prototype.processRawCalendarOptions=function(e,t){var n=mr([ur,e,t]),r=n.locales,o=n.locale,i=this.organizeRawLocales(r),a=i.map,c=this.buildLocale(o||i.defaultCode,a).options,s=this.buildPluginHooks(e.plugins||[],sa),u=this.currentCalendarOptionsRefiners=(0,it.pi)((0,it.pi)((0,it.pi)((0,it.pi)((0,it.pi)({},sr),lr),dr),s.listenerRefiners),s.optionRefiners),l={},d=mr([ur,c,e,t]),f={},p=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,m=!1;for(var g in d)"plugins"!==g&&(d[g]===p[g]||fr[g]&&g in p&&fr[g](p[g],d[g])?f[g]=h[g]:u[g]?(f[g]=u[g](d[g]),m=!0):l[g]=p[g]);return m&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=f),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:s,availableLocaleData:i,localeDefaults:c,extra:l}},e.prototype._computeCurrentViewData=function(e,t,n,r){var o=t.viewSpecs[e];if(!o)throw new Error('viewType "'+e+"\" is not available. Please make sure you've loaded all neccessary plugins");var i=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,r),a=i.refinedOptions;return xa(i.extra),{viewSpec:o,options:a,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:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,monthMode:a.monthMode,fixedWeekCount:a.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}},e.prototype.processRawViewOptions=function(e,t,n,r,o){var i=mr([ur,e.optionDefaults,n,r,e.optionOverrides,o]),a=(0,it.pi)((0,it.pi)((0,it.pi)((0,it.pi)((0,it.pi)((0,it.pi)({},sr),lr),dr),hr),t.listenerRefiners),t.optionRefiners),c={},s=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,l=!1,d={};for(var f in i)i[f]===s[f]||fr[f]&&fr[f](i[f],s[f])?c[f]=u[f]:(i[f]===this.currentCalendarOptionsInput[f]||fr[f]&&fr[f](i[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(c[f]=this.currentCalendarOptionsRefined[f]):a[f]?c[f]=a[f](i[f]):d[f]=i[f],l=!0);return l&&(this.currentViewOptionsInput=i,this.currentViewOptionsRefined=c),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}},e}();function pa(e,t,n,r,o,i,a,c){var s=jo(t||a.defaultCode,a.map);return new ko({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:s,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:i.cmdFormatter,defaultSeparator:c})}function ha(e,t){return new(t.themeClasses[e.themeSystem]||xi)(e)}function ma(e){return new(e.dateProfileGeneratorClass||Ni)(e)}function ga(e,t,n){return new mo(e,t,n)}function va(e){return wn(e,(function(e){return e.ui}))}function ya(e,t,n){var r={"":t};for(var o in e){var i=e[o];i.sourceId&&n[i.sourceId]&&(r[o]=n[i.sourceId])}return r}function ba(e){var t=e.options;return{eventUiSingleBase:kr({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:kr({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Aa(e,t){for(var n=0,r=t.pluginHooks.isLoadingFuncs;n<r.length;n++){if((0,r[n])(e))return!0}return!1}function wa(e){return Mo(e.options.businessHours,e)}function xa(e,t){for(var n in e)console.warn("Unknown option '"+n+"'"+(t?" for view '"+t+"'":""))}var Ea=function(e){function t(t){var n=e.call(this,t)||this;return n.handleData=function(e){n.dataManager?n.setState(e):n.state=e},n.dataManager=new fa({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:n.handleData}),n}return(0,it.ZT)(t,e),t.prototype.render=function(){return this.props.children(this.state)},t.prototype.componentDidUpdate=function(e){var t=this.props.optionOverrides;t!==e.optionOverrides&&this.dataManager.resetOptions(t)},t}(At);var Oa=function(){function e(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return e.prototype.addSegs=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];this.insertEntry(o,t)}return t},e.prototype.insertEntry=function(e,t){var n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)},e.prototype.isInsertionValid=function(e,t){return(-1===this.maxCoord||e.levelCoord+t.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)},e.prototype.handleInvalidInsertion=function(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)},e.prototype.splitEntry=function(e,t,n){var r=0,o=[],i=e.span,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.apply(n,(0,it.ev)([{index:e.index,thickness:e.thickness,span:Sa(a,i)}],o)),r):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this.entriesByLevel,r=this.levelCoords;-1===t.lateral?(Da(r,t.level,t.levelCoord),Da(n,t.level,[e])):Da(n[t.level],t.lateral,e),this.stackCnts[ka(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this,n=t.levelCoords,r=t.entriesByLevel,o=t.strictOrder,i=t.stackCnts,a=n.length,c=0,s=-1,u=-1,l=null,d=0,f=0;f<a;f+=1){var p=n[f];if(!o&&p>=c+e.thickness)break;for(var h=r[f],m=void 0,g=_a(h,e.span.start,Ca),v=g[0]+g[1];(m=h[v])&&m.span.start<e.span.end;){var y=p+m.thickness;y>c&&(c=y,l=m,s=f,u=v),y===c&&(d=Math.max(d,i[ka(m)]+1)),v+=1}}var b=0;if(l)for(b=s+1;b<a&&n[b]<c;)b+=1;var A=-1;return b<a&&n[b]===c&&(A=_a(r[b],e.span.end,Ca)[0]),{touchingLevel:s,touchingLateral:u,touchingEntry:l,stackCnt:d,levelCoord:c,level:b,lateral:A}},e.prototype.toRects=function(){for(var e=this.entriesByLevel,t=this.levelCoords,n=e.length,r=[],o=0;o<n;o+=1)for(var i=e[o],a=t[o],c=0,s=i;c<s.length;c++){var u=s[c];r.push((0,it.pi)((0,it.pi)({},u),{levelCoord:a}))}return r},e}();function Ca(e){return e.span.end}function ka(e){return e.index+":"+e.span.start}function Sa(e,t){var n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function Da(e,t,n){e.splice(t,0,n)}function _a(e,t,n){var r=0,o=e.length;if(!o||t<n(e[r]))return[0,0];if(t>n(e[o-1]))return[o,0];for(;r<o;){var i=Math.floor(r+(o-r)/2),a=n(e[i]);if(t<a)o=i;else{if(!(t>a))return[i,1];r=i+1}}return[r,0]}var Pa=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}();function ja(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function Ta(e){var t;return(t={})[e.component.uid]=e,t}var Ra={},Ia=function(){function e(e,t){this.emitter=new ii}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),Ma={},Ba={startTime:Rn,duration:Rn,create:Boolean,sourceId:String};function Na(e){var t=gr(e,Ba),n=t.refined,r=t.extra;return{startTime:n.startTime||null,duration:n.duration||null,create:null==n.create||n.create,sourceId:n.sourceId,leftoverProps:r}}var Fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map((function(t){return e.renderWidgetGroup(t)}));return wt.apply(void 0,(0,it.ev)(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,r=[],o=!0,i=0,a=e;i<a.length;i++){var c=a[i],s=c.buttonName,u=c.buttonClick,l=c.buttonText,d=c.buttonIcon,f=c.buttonHint;if("title"===s)o=!1,r.push(wt("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{var p=s===t.activeButton,h=!t.isTodayEnabled&&"today"===s||!t.isPrevEnabled&&"prev"===s||!t.isNextEnabled&&"next"===s,m=["fc-"+s+"-button",n.getClass("button")];p&&m.push(n.getClass("buttonActive")),r.push(wt("button",{type:"button",title:"function"==typeof f?f(t.navUnit):f,disabled:h,"aria-pressed":p,className:m.join(" "),onClick:u},l||(d?wt("span",{className:d}):"")))}}if(r.length>1){var g=o&&n.getClass("buttonGroup")||"";return wt.apply(void 0,(0,it.ev)(["div",{className:g}],r))}return r[0]},t}(mi),Za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.model,o=n.extraClassName,i=!1,a=r.sectionWidgets,c=a.center;return a.left?(i=!0,e=a.left):e=a.start,a.right?(i=!0,t=a.right):t=a.end,wt("div",{className:[o||"","fc-toolbar",i?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",c||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return wt(Fa,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})},t}(mi),La=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,yi(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=e.aspectRatio,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",i="";return n?null!==t.availableWidth?o=t.availableWidth/n:i=1/n*100+"%":o=e.height||"",wt("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:o,paddingBottom:i}},e.children)},t.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},t.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},t}(mi),Ha=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var r=n.component,o=r.context,i=Gr(t);if(i&&r.isValidSegDownEl(e.target)){var a=_t(e.target,".fc-event-forced-url"),c=a?a.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:t,event:new wo(r.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:o.viewApi}),c&&!e.defaultPrevented&&(window.location.href=c)}},n.destroy=Lt(t.el,"click",".fc-event",n.handleSegClick),n}return(0,it.ZT)(t,e),t}(Pa),Ua=function(e){function t(t){var n=e.call(this,t)||this;return n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){Gr(t)&&(n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))},n.removeHoverListeners=function(e,t,n,r){var o;return Lt(e,"mouseover",t,(function(e,t){if(t!==o){o=t,n(e,t);var i=function(e){o=null,r(e,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}}))}(t.el,".fc-event",n.handleSegEnter,n.handleSegLeave),n}return(0,it.ZT)(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var r=this.component,o=r.context,i=Gr(n);t&&!r.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new wo(o,i.eventRange.def,i.eventRange.instance),jsEvent:t,view:o.viewApi})},t}(Pa),za=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=Wn(pi),t.buildViewPropTransformers=Wn(Va),t.buildToolbarProps=Wn(Wa),t.headerRef=xt(),t.footerRef=xt(),t.interactionsStore={},t.state={viewLabelId:Ft()},t.registerInteractiveComponent=function(e,n){var r=ja(e,n),o=[Ha,Ua].concat(t.props.pluginHooks.componentInteractions).map((function(e){return new e(r)}));t.interactionsStore[e.uid]=o,Ra[e.uid]=r},t.unregisterInteractiveComponent=function(e){var n=t.interactionsStore[e.uid];if(n){for(var r=0,o=n;r<o.length;r++){o[r].destroy()}delete t.interactionsStore[e.uid]}delete Ra[e.uid]},t.resizeRunner=new ua((function(){t.props.emitter.trigger("_resize",!0),t.props.emitter.trigger("windowResize",{view:t.props.viewApi})})),t.handleWindowResize=function(e){var n=t.props.options;n.handleWindowResize&&e.target===window&&t.resizeRunner.request(n.windowResizeDelay)},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.toolbarConfig,r=t.options,o=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,bo(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);var c=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),s=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return wt(fi.Provider,{value:c},n.header&&wt(Za,(0,it.pi)({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:s},o)),wt(La,{liquid:i,height:a,aspectRatio:e,labeledById:s},this.renderView(t),this.buildAppendContent()),n.footer&&wt(Za,(0,it.pi)({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},o)))},t.prototype.componentDidMount=function(){var e=this.props;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((function(t){return new t(e)})),window.addEventListener("resize",this.handleWindowResize);var t=e.pluginHooks.propSetHandlers;for(var n in t)t[n](e[n],e)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.pluginHooks.propSetHandlers;for(var r in n)t[r]!==e[r]&&n[r](t[r],t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var e=0,t=this.calendarInteractions;e<t.length;e++){t[e].destroy()}this.props.emitter.trigger("_unmount")},t.prototype.buildAppendContent=function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map((function(t){return t(e)}));return wt.apply(void 0,(0,it.ev)([Et,{}],t))},t.prototype.renderView=function(e){for(var t=e.pluginHooks,n=e.viewSpec,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},o=0,i=this.buildViewPropTransformers(t.viewPropsTransformers);o<i.length;o++){var a=i[o];(0,it.pi)(r,a.transform(r,e))}var c=n.component;return wt(c,(0,it.pi)({},r))},t}(hi);function Wa(e,t,n,r,o,i){var a=n.build(o,void 0,!1),c=n.buildPrev(t,r,!1),s=n.buildNext(t,r,!1);return{title:i,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:a.isValid&&!Vr(t.currentRange,o),isPrevEnabled:c.isValid,isNextEnabled:s.isValid}}function Va(e){return e.map((function(e){return new e}))}var Ya=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={forPrint:!1},t.handleBeforePrint=function(){t.setState({forPrint:!0})},t.handleAfterPrint=function(){t.setState({forPrint:!1})},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=e.options,n=this.state.forPrint,r=n||"auto"===t.height||"auto"===t.contentHeight,o=r||null==t.height?"":t.height,i=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")];return Zo()||i.push("fc-liquid-hack"),e.children(i,o,r,n)},t.prototype.componentDidMount=function(){var e=this.props.emitter;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)},t.prototype.componentWillUnmount=function(){var e=this.props.emitter;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)},t}(mi);function qa(e,t){return cr(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}var Ga="fc-col-header-cell";function Qa(e){return e.text}var Xa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,r=e.theme,o=e.viewApi,i=this.props,a=i.date,c=i.dateProfile,s=zo(a,i.todayRange,null,c),u=[Ga].concat(Wo(s,r)),l=t.format(a,i.dayHeaderFormat),d=!s.isDisabled&&i.colCnt>1?Go(this.context,a):{},f=(0,it.pi)((0,it.pi)((0,it.pi)({date:t.toDate(a),view:o},i.extraHookProps),{text:l}),s);return wt(Oi,{hookProps:f,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:Qa,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(e,t,n,r){return wt("th",(0,it.pi)({ref:e,role:"columnheader",className:u.concat(t).join(" "),"data-date":s.isDisabled?void 0:Hn(a),colSpan:i.colSpan},i.extraDataAttrs),wt("div",{className:"fc-scrollgrid-sync-inner"},!s.isDisabled&&wt("a",(0,it.pi)({ref:n,className:["fc-col-header-cell-cushion",i.isSticky?"fc-sticky":""].join(" ")},d),r)))}))},t}(mi),Ka=cr({weekday:"long"}),$a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,r=t.theme,o=t.viewApi,i=t.options,a=rn(new Date(2592e5),e.dow),c={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},s=[Ga].concat(Wo(c,r),e.extraClassNames||[]),u=n.format(a,e.dayHeaderFormat),l=(0,it.pi)((0,it.pi)((0,it.pi)((0,it.pi)({date:a},c),{view:o}),e.extraHookProps),{text:u});return wt(Oi,{hookProps:l,classNames:i.dayHeaderClassNames,content:i.dayHeaderContent,defaultContent:Qa,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},(function(t,r,o,i){return wt("th",(0,it.pi)({ref:t,role:"columnheader",className:s.concat(r).join(" "),colSpan:e.colSpan},e.extraDataAttrs),wt("div",{className:"fc-scrollgrid-sync-inner"},wt("a",{"aria-label":n.format(a,Ka),className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:o},i)))}))},t}(mi),Ja=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=bo(n.options.now,n.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return e.children(t.nowDate,t.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var e=this.props,t=this.context,n=on(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),o=t.dateEnv.add(r,Rn(1,e.unit)),i=o.valueOf()-n.valueOf();return i=Math.min(864e5,i),{currentState:{nowDate:r,todayRange:ec(r)},nextState:{nowDate:o,todayRange:ec(o)},waitMs:i}},t.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,r=t.waitMs;this.timeoutId=setTimeout((function(){e.setState(n,(function(){e.setTimeout()}))}),r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=fi,t}(At);function ec(e){var t=sn(e);return{start:t,end:rn(t,1)}}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=Wn(tc),t}(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,o=t.datesRepDistinctDays,i=t.renderIntro,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,o,n.length);return wt(Ja,{unit:"day"},(function(e,t){return wt("tr",{role:"row"},i&&i("day"),n.map((function(e){return o?wt(Xa,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:a}):wt($a,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:a})})))}))}}(mi);function tc(e,t,n){return e||qa(t,n)}(function(){function e(e,t){for(var n=e.start,r=e.end,o=[],i=[],a=-1;n<r;)t.isHiddenDay(n)?o.push(a+.5):(a+=1,o.push(a),i.push(n)),n=rn(n,1);this.dates=i,this.indices=o,this.cnt=i.length}e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(rn(e.end,-1)),r=Math.max(0,t),o=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(o=Math.floor(o))?{firstIndex:r,lastIndex:o,isStart:t===r,isEnd:n===o}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(an(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}})(),function(){function e(e,t){var n,r,o,i=e.dates;if(t){for(r=i[0].getUTCDay(),n=1;n<i.length&&i[n].getUTCDay()!==r;n+=1);o=Math.ceil(i.length/n)}else o=1,n=i.length;this.rowCnt=o,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t+=1){for(var n=[],r=0;r<this.colCnt;r+=1)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){var n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var o=n.firstIndex,i=n.lastIndex,a=o;a<=i;){var c=Math.floor(a/t),s=Math.min((c+1)*t,i+1);r.push({row:c,firstCol:a%t,lastCol:(s-1)%t,isStart:n.isStart&&a===o,isEnd:n.isEnd&&s-1===i}),a=s}return r}}();var nc=function(){function e(){this.sliceBusinessHours=Wn(this._sliceBusinessHours),this.sliceDateSelection=Wn(this._sliceDateSpan),this.sliceEventStore=Wn(this._sliceEventStore),this.sliceEventDrag=Wn(this._sliceInteraction),this.sliceEventResize=Wn(this._sliceInteraction),this.forceDayIfListItem=!1}return e.prototype.sliceProps=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=e.eventUiBases,c=this.sliceEventStore.apply(this,(0,it.ev)([e.eventStore,a,t,n],o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,(0,it.ev)([e.dateSelection,a,r],o)),businessHourSegs:this.sliceBusinessHours.apply(this,(0,it.ev)([e.businessHours,t,n,r],o)),fgEventSegs:c.fg,bgEventSegs:c.bg,eventDrag:this.sliceEventDrag.apply(this,(0,it.ev)([e.eventDrag,a,t,n],o)),eventResize:this.sliceEventResize.apply(this,(0,it.ev)([e.eventResize,a,t,n],o)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,(0,it.ev)([{range:{start:e,end:on(e,1)},allDay:!1},{},t],n))},e.prototype._sliceBusinessHours=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];return e?this._sliceEventStore.apply(this,(0,it.ev)([_n(e,rc(t,Boolean(n)),r),{},t,n],o)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(e){var a=Yr(e,t,rc(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(!e)return null;var a=Yr(e.mutatedEvents,t,rc(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},e.prototype._sliceDateSpan=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];if(!e)return[];for(var i=co(e,t,n),a=this.sliceRange.apply(this,(0,it.ev)([e.range],r)),c=0,s=a;c<s.length;c++){var u=s[c];u.eventRange=i}return a},e.prototype.sliceEventRanges=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];n.push.apply(n,this.sliceEventRange(i,t))}return n},e.prototype.sliceEventRange=function(e,t){var n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:rn(n.start,1)});for(var r=this.sliceRange.apply(this,(0,it.ev)([n],t)),o=0,i=r;o<i.length;o++){var a=i[o];a.eventRange=e,a.isStart=e.isStart&&a.isStart,a.isEnd=e.isEnd&&a.isEnd}return r},e}();function rc(e,t){var n=e.activeRange;return t?n:{start:on(n.start,e.slotMinTime.milliseconds),end:on(n.end,e.slotMaxTime.milliseconds-864e5)}}function oc(e,t,n){var r=e.mutatedEvents.instances;for(var o in r)if(!Wr(t.validRange,r[o].range))return!1;return ic({eventDrag:e},n)}function ic(e,t){var n=t.getCurrentData(),r=(0,it.pi)({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||ac)(r,t)}function ac(e,t,n,r){return void 0===n&&(n={}),!(e.eventDrag&&!function(e,t,n,r){var o=t.getCurrentData(),i=e.eventDrag,a=i.mutatedEvents,c=a.defs,s=a.instances,u=Qr(c,i.isEvent?e.eventUiBases:{"":o.selectionConfig});r&&(u=wn(u,r));var l=(h=e.eventStore,m=i.affectedEvents.instances,{defs:h.defs,instances:An(h.instances,(function(e){return!m[e.instanceId]}))}),d=l.defs,f=l.instances,p=Qr(d,e.eventUiBases);var h,m;for(var g in s){var v=s[g],y=v.range,b=u[v.defId],A=c[v.defId];if(!cc(b.constraints,y,l,e.businessHours,t))return!1;var w=t.options.eventOverlap,x="function"==typeof w?w:null;for(var E in f){var O=f[E];if(zr(y,O.range)){if(!1===p[O.defId].overlap&&i.isEvent)return!1;if(!1===b.overlap)return!1;if(x&&!x(new wo(t,d[O.defId],O),new wo(t,A,v)))return!1}}for(var C=o.eventStore,k=0,S=b.allows;k<S.length;k++){var D=S[k],_=(0,it.pi)((0,it.pi)({},n),{range:v.range,allDay:A.allDay}),P=C.defs[A.defId],j=C.instances[g],T=void 0;if(T=P?new wo(t,P,j):new wo(t,A),!D(uo(_,t),T))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){var o=e.eventStore,i=o.defs,a=o.instances,c=e.dateSelection,s=c.range,u=t.getCurrentData().selectionConfig;r&&(u=r(u));if(!cc(u.constraints,s,o,e.businessHours,t))return!1;var l=t.options.selectOverlap,d="function"==typeof l?l:null;for(var f in a){var p=a[f];if(zr(s,p.range)){if(!1===u.overlap)return!1;if(d&&!d(new wo(t,i[p.defId],p),null))return!1}}for(var h=0,m=u.allows;h<m.length;h++){if(!(0,m[h])(uo((0,it.pi)((0,it.pi)({},n),c),t),null))return!1}return!0}(e,t,n,r))}function cc(e,t,n,r,o){for(var i=0,a=e;i<a.length;i++){if(!lc(sc(a[i],t,n,r,o),t))return!1}return!0}function sc(e,t,n,r,o){return"businessHours"===e?uc(_n(r,t,o)):"string"==typeof e?uc(xr(n,(function(t){return t.groupId===e}))):"object"==typeof e&&e?uc(_n(e,t,o)):[]}function uc(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function lc(e,t){for(var n=0,r=e;n<r.length;n++){if(Wr(r[n],t))return!0}return!1}var dc=/^(visible|hidden)$/,fc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,yi(t.props.elRef,e)},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),wt("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)},t.prototype.needsXScrolling=function(){if(dc.test(this.props.overflowX))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().width>t)return!0}return!1},t.prototype.needsYScrolling=function(){if(dc.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().height>t)return!0}return!1},t.prototype.getXScrollbarWidth=function(){return dc.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return dc.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(mi),pc=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var r=t,o=r.depths,i=r.currentMap,a=!1,c=!1;null!==e?(a=n in i,i[n]=e,o[n]=(o[n]||0)+1,c=!0):(o[n]-=1,o[n]||(delete i[n],delete t.callbackMap[n],a=!0)),t.masterCallback&&(a&&t.masterCallback(null,String(n)),c&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n},e.prototype.collect=function(e,t,n){return Dn(this.currentMap,e,t,n)},e.prototype.getAll=function(){return En(this.currentMap)},e}();function hc(e){for(var t=0,n=0,r=jt(e,".fc-scrollgrid-shrink");n<r.length;n++){var o=r[n];t=Math.max(t,tn(o))}return Math.ceil(t)}function mc(e,t){return e.liquid&&t.liquid}function gc(e,t){return null!=t.maxHeight||mc(e,t)}function vc(e,t,n,r){var o=n.expandRows;return"function"==typeof t.content?t.content(n):wt("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,wt(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}function yc(e,t){return zn(e,t,On)}function bc(e,t){for(var n=[],r=0,o=e;r<o.length;r++)for(var i=o[r],a=i.span||1,c=0;c<a;c+=1)n.push(wt("col",{style:{width:"shrink"===i.width?Ac(t):i.width||"",minWidth:i.minWidth||""}}));return wt.apply(void 0,(0,it.ev)(["colgroup",{}],n))}function Ac(e){return null==e?4:e}function wc(e){for(var t=0,n=e;t<n.length;t++){if("shrink"===n[t].width)return!0}return!1}function xc(e,t){var n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function Ec(e,t){var n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Oc(e){return wt("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function Cc(e){var t=e.stickyHeaderDates;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function kc(e){var t=e.stickyFooterScrollbar;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}var Sc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processCols=Wn((function(e){return e}),yc),t.renderMicroColGroup=Wn(bc),t.scrollerRefs=new pc,t.scrollerElRefs=new pc(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.safeSetState((0,it.pi)({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=e.context,o=t.sections||[],i=this.processCols(t.cols),a=this.renderMicroColGroup(i,n.shrinkWidth),c=xc(t.liquid,r);t.collapsibleWidth&&c.push("fc-scrollgrid-collapsible");for(var s,u=o.length,l=0,d=[],f=[],p=[];l<u&&"header"===(s=o[l]).type;)d.push(this.renderSection(s,a,!0)),l+=1;for(;l<u&&"body"===(s=o[l]).type;)f.push(this.renderSection(s,a,!1)),l+=1;for(;l<u&&"footer"===(s=o[l]).type;)p.push(this.renderSection(s,a,!0)),l+=1;var h=!Zo(),m={role:"rowgroup"};return wt("table",{role:"grid",className:c.join(" "),style:{height:t.height}},Boolean(!h&&d.length)&&wt.apply(void 0,(0,it.ev)(["thead",m],d)),Boolean(!h&&f.length)&&wt.apply(void 0,(0,it.ev)(["tbody",m],f)),Boolean(!h&&p.length)&&wt.apply(void 0,(0,it.ev)(["tfoot",m],p)),h&&wt.apply(void 0,(0,it.ev)((0,it.ev)((0,it.ev)(["tbody",m],d),f),p)))},t.prototype.renderSection=function(e,t,n){return"outerContent"in e?wt(Et,{key:e.key},e.outerContent):wt("tr",{key:e.key,role:"presentation",className:Ec(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))},t.prototype.renderChunkTd=function(e,t,n,r){if("outerContent"in n)return n.outerContent;var o=this.props,i=this.state,a=i.forceYScrollbars,c=i.scrollerClientWidths,s=i.scrollerClientHeights,u=gc(o,e),l=mc(o,e),d=o.liquid?a?"scroll":u?"auto":"hidden":"visible",f=e.key,p=vc(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:o.collapsibleWidth||void 0===c[f]?null:c[f],clientHeight:void 0!==s[f]?s[f]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},r);return wt(r?"th":"td",{ref:n.elRef,role:"presentation"},wt("div",{className:"fc-scroller-harness"+(l?" fc-scroller-harness-liquid":"")},wt(fc,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:d,overflowX:o.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:l,liquidIsAbsolute:!0},p)))},t.prototype._handleScrollerEl=function(e,t){var n=function(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.key===t)return o}return null}(this.props.sections,t);n&&yi(n.chunk.scrollerElRef,e)},t.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(){this.handleSizing()},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},t.prototype.computeShrinkWidth=function(){return wc(this.props.cols)?hc(this.scrollerElRefs.getAll()):0},t.prototype.computeScrollerDims=function(){var e=$o(),t=this.scrollerRefs,n=this.scrollerElRefs,r=!1,o={},i={};for(var a in t.currentMap){var c=t.currentMap[a];if(c&&c.needsYScrolling()){r=!0;break}}for(var s=0,u=this.props.sections;s<u.length;s++){a=u[s].key;var l=n.currentMap[a];if(l){var d=l.parentNode;o[a]=Math.floor(d.getBoundingClientRect().width-(r?e.y:0)),i[a]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:o,scrollerClientHeights:i}},t}(mi);Sc.addStateEquality({scrollerClientWidths:On,scrollerClientHeights:On});var Dc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=xt(),t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=e.seg,o=r.eventRange,i=o.ui,a={event:new wo(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,isDraggable:!e.disableDragging&&Jr(r,t),isStartResizable:!e.disableResizing&&eo(r,t),isEndResizable:!e.disableResizing&&to(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)},c=function(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}(a).concat(i.classNames);return wt(Oi,{hookProps:a,classNames:n.eventClassNames,content:n.eventContent,defaultContent:e.defaultContent,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount,elRef:this.elRef},(function(t,n,r,o){return e.children(t,c.concat(n),r,o,a)}))},t.prototype.componentDidMount=function(){qr(this.elRef.current,this.props.seg)},t.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&qr(this.elRef.current,t)},t}(mi),_c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.seg,r=t.options.eventTimeFormat||e.defaultTimeFormat,o=function(e,t,n,r,o,i,a){var c=n.dateEnv,s=n.options,u=s.displayEventTime,l=s.displayEventEnd,d=e.eventRange.def,f=e.eventRange.instance;null==u&&(u=!1!==r),null==l&&(l=!1!==o);var 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=sn(p).valueOf()===sn(m).valueOf(),y=sn(on(h,-1)).valueOf()===sn(on(g,-1)).valueOf();return u&&!d.allDay&&(v||y)?(m=v?p:m,g=y?h:g,l&&d.hasEnd?c.formatRange(m,g,t,{forcedStartTzo:i?null:f.forcedStartTzo,forcedEndTzo:a?null:f.forcedEndTzo}):c.format(m,t,{forcedTzo:i?null:f.forcedStartTzo})):""}(n,r,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return wt(Dc,{seg:n,timeText:o,disableDragging:e.disableDragging,disableResizing:e.disableResizing,defaultContent:e.defaultContent||Pc,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(r,o,i,a,c){return wt("a",(0,it.pi)({className:e.extraClassNames.concat(o).join(" "),style:{borderColor:c.borderColor,backgroundColor:c.backgroundColor},ref:r},function(e,t){var n=e.eventRange,r=n.def,o=n.instance,i=r.url;if(i)return{href:i};var a=t.emitter,c=t.options.eventInteractive;return null==c&&null==(c=r.interactive)&&(c=Boolean(a.hasHandlers("eventClick"))),c?Ut((function(e){a.trigger("eventClick",{el:e.target,event:new wo(t,r,o),jsEvent:e,view:t.viewApi})})):{}}(n,t)),wt("div",{className:"fc-event-main",ref:i,style:{color:c.textColor}},a),c.isStartResizable&&wt("div",{className:"fc-event-resizer fc-event-resizer-start"}),c.isEndResizable&&wt("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},t}(mi);function Pc(e){return wt("div",{className:"fc-event-main-frame"},e.timeText&&wt("div",{className:"fc-event-time"},e.timeText),wt("div",{className:"fc-event-title-container"},wt("div",{className:"fc-event-title fc-sticky"},e.event.title||wt(Et,null," "))))}var jc=function(e){return wt(fi.Consumer,null,(function(t){var n=t.options,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return wt(Oi,{hookProps:r,classNames:n.nowIndicatorClassNames,content:n.nowIndicatorContent,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)}))},Tc=cr({day:"numeric"}),Rc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=Ic({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv});return wt(ki,{hookProps:r,content:n.dayCellContent,defaultContent:e.defaultContent},e.children)},t}(mi);function Ic(e){var t=e.date,n=e.dateEnv,r=zo(t,e.todayRange,null,e.dateProfile);return(0,it.pi)((0,it.pi)((0,it.pi)({date:n.toDate(t),view:e.viewApi},r),{dayNumberText:e.showDayNumber?n.format(t,Tc):""}),e.extraProps)}var Mc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=Vn(Ic),t.normalizeClassNames=_i(),t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=this.refineHookProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv}),o=Wo(r,t.theme).concat(r.isDisabled?[]:this.normalizeClassNames(n.dayCellClassNames,r)),i=r.isDisabled?{}:{"data-date":Hn(e.date)};return wt(Di,{hookProps:r,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount,elRef:e.elRef},(function(t){return e.children(t,o,i,r.isDisabled)}))},t}(mi);var Bc=function(e){return wt(Dc,{defaultContent:Nc,seg:e.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(e,t,n,r,o){return wt("div",{ref:e,className:["fc-bg-event"].concat(t).join(" "),style:{backgroundColor:o.backgroundColor}},r)}))};function Nc(e){return e.event.title&&wt("div",{className:"fc-event-title"},e.event.title)}var Fc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={titleId:Ft()},t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&yi(t.props.elRef,e)},t.handleDocumentMouseDown=function(e){var n=Mt(e);t.rootEl.contains(n)||t.handleCloseClick()},t.handleDocumentKeyDown=function(e){"Escape"===e.key&&t.handleCloseClick()},t.handleCloseClick=function(){var e=t.props.onClose;e&&e()},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.context,t=e.theme,n=e.options,r=this.props,o=this.state,i=["fc-popover",t.getClass("popover")].concat(r.extraClassNames||[]);return Ct(wt("div",(0,it.pi)({id:r.id,className:i.join(" "),"aria-labelledby":o.titleId},r.extraAttrs,{ref:this.handleRootEl}),wt("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},wt("span",{className:"fc-popover-title",id:o.titleId},r.title),wt("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),wt("div",{className:"fc-popover-body "+t.getClass("popoverContent")},r.children)),r.parentEl)},t.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)},t.prototype.updateSize=function(){var e=this.context.isRtl,t=this.props,n=t.alignmentEl,r=t.alignGridTop,o=this.rootEl,i=function(e){for(var t=ri(e),n=e.getBoundingClientRect(),r=0,o=t;r<o.length;r++){var i=No(n,o[r].getBoundingClientRect());if(!i)return null;n=i}return n}(n);if(i){var a=o.getBoundingClientRect(),c=r?_t(n,".fc-scrollgrid").getBoundingClientRect().top:i.top,s=e?i.right-a.width:i.left;c=Math.max(c,10),s=Math.min(s,document.documentElement.clientWidth-10-a.width),s=Math.max(s,10);var u=o.offsetParent.getBoundingClientRect();Rt(o,{top:c-u.top,left:s-u.left})}},t}(mi),Zc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,useEventCenter:!1}):t.context.unregisterInteractiveComponent(t)},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.context,t=e.options,n=e.dateEnv,r=this.props,o=r.startDate,i=r.todayRange,a=r.dateProfile,c=n.format(o,t.dayPopoverFormat);return wt(Mc,{date:o,dateProfile:a,todayRange:i,elRef:this.handleRootEl},(function(e,t,n){return wt(Fc,{elRef:e,id:r.id,title:c,extraClassNames:["fc-more-popover"].concat(t),extraAttrs:n,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},wt(Rc,{date:o,dateProfile:a,todayRange:i},(function(e,t){return t&&wt("div",{className:"fc-more-popover-misc",ref:e},t)})),r.children)}))},t.prototype.queryHit=function(e,t,n,r){var o=this.rootEl,i=this.props;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:i.dateProfile,dateSpan:(0,it.pi)({allDay:!0,range:{start:i.startDate,end:i.endDate}},i.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null},t}(bi),Lc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.linkElRef=xt(),t.state={isPopoverOpen:!1,popoverId:Ft()},t.handleClick=function(e){var n=t,r=n.props,o=n.context,i=o.options.moreLinkClick,a=Uc(r).start;function c(e){var t=e.eventRange,n=t.def,r=t.instance,i=t.range;return{event:new wo(o,n,r),start:o.dateEnv.toDate(i.start),end:o.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof i&&(i=i({date:a,allDay:Boolean(r.allDayDate),allSegs:r.allSegs.map(c),hiddenSegs:r.hiddenSegs.map(c),jsEvent:e,view:o.viewApi})),i&&"popover"!==i?"string"==typeof i&&o.calendarApi.zoomTo(a,i):t.setState({isPopoverOpen:!0})},t.handlePopoverClose=function(){t.setState({isPopoverOpen:!1})},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.state;return wt(fi.Consumer,null,(function(r){var o=r.viewApi,i=r.options,a=r.calendarApi,c=i.moreLinkText,s=t.moreCnt,u=Uc(t),l="function"==typeof c?c.call(a,s):"+"+s+" "+c,d=$t(i.moreLinkHint,[s],l),f={num:s,shortText:"+"+s,text:l,view:o};return wt(Et,null,Boolean(t.moreCnt)&&wt(Oi,{elRef:e.linkElRef,hookProps:f,classNames:i.moreLinkClassNames,content:i.moreLinkContent,defaultContent:t.defaultContent||Hc,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},(function(r,o,i,a){return t.children(r,["fc-more-link"].concat(o),i,a,e.handleClick,d,n.isPopoverOpen,n.isPopoverOpen?n.popoverId:"")})),n.isPopoverOpen&&wt(Zc,{id:n.popoverId,startDate:u.start,endDate:u.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:e.parentEl,alignmentEl:t.alignmentElRef.current,alignGridTop:t.alignGridTop,onClose:e.handlePopoverClose},t.popoverContent()))}))},t.prototype.componentDidMount=function(){this.updateParentEl()},t.prototype.componentDidUpdate=function(){this.updateParentEl()},t.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=_t(this.linkElRef.current,".fc-view-harness"))},t}(mi);function Hc(e){return e.text}function Uc(e){if(e.allDayDate)return{start:e.allDayDate,end:rn(e.allDayDate,1)};var t,n=e.hiddenSegs;return{start:zc(n),end:(t=n,t.reduce(Vc).eventRange.range.end)}}function zc(e){return e.reduce(Wc).eventRange.range.start}function Wc(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Vc(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}const Yc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._calendarApi=new Ao,t}return(0,it.ZT)(t,e),t.prototype.render=function(){return I.createElement(Ea,{optionOverrides:this.props,calendarApi:this._calendarApi},(function(e){return I.createElement(Ya,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,n,r,o){return I.createElement("div",{className:t.join(" "),style:{height:n}},I.createElement(za,(0,it.pi)({isHeightAuto:r,forPrint:o},e)))}))}))},t.prototype.getApi=function(){return this._calendarApi},t}(I.Component);var qc=a(81959),Gc={};Gc.styleTagTransform=vt(),Gc.setAttributes=pt(),Gc.insert=dt().bind(null,"head"),Gc.domAPI=ut(),Gc.insertStyleElement=mt();ct()(qc.Z,Gc);qc.Z&&qc.Z.locals&&qc.Z.locals;
|
|
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,c=r.useRef,s=r.useEffect,u=r.useMemo,l=r.useDebugValue;t.useSyncExternalStoreWithSelector=function(e,t,n,r,o){var d=c(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(!s){if(s=!0,a=e,e=r(e),void 0!==o&&f.hasValue){var t=f.value;if(o(t,e))return c=t}return c=e}if(t=c,i(a,e))return t;var n=r(e);return void 0!==o&&o(t,n)?t:(a=e,c=n)}var a,c,s=!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 s((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 c=[];for(let e=0;e<256;++e)c.push((e+256).toString(16).slice(1));function s(e,t=0){return(c[e[t+0]]+c[e[t+1]]+c[e[t+2]]+c[e[t+3]]+"-"+c[e[t+4]]+c[e[t+5]]+"-"+c[e[t+6]]+c[e[t+7]]+"-"+c[e[t+8]]+c[e[t+9]]+"-"+c[e[t+10]]+c[e[t+11]]+c[e[t+12]]+c[e[t+13]]+c[e[t+14]]+c[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 s(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 s=n[1];if(e=e.replace(s,"").replace(/(^<|>$)/g,""),s.endsWith(" ")&&(s=s.substr(0,s.length-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}(s))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;var b=g.join("@");if(t.domain_specific_validation&&("gmail.com"===y||"googlemail.com"===y)){var A=(b=b.toLowerCase()).split("+")[0];if(!(0,i.default)(A.replace(/\./g,""),{min:6,max:30}))return!1;for(var w=A.split("."),x=0;x<w.length;x++)if(!f.test(w[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})){if(!t.allow_ip_domain)return!1;if(!(0,c.default)(v)){if(!v.startsWith("[")||!v.endsWith("]"))return!1;var E=v.substr(1,v.length-2);if(0===E.length||!(0,c.default)(E))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 O=t.allow_utf8_local_part?h:d,C=b.split("."),k=0;k<C.length;k++)if(!O.test(C[k]))return!1;if(t.blacklisted_chars&&-1!==b.search(new RegExp("[".concat(t.blacklisted_chars,"]+"),"g")))return!1;return!0};var r=s(n(65571)),o=s(n(84808)),i=s(n(2851)),a=s(n(10221)),c=s(n(61028));function s(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:[]},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(!/^([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)&&(!!/^[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};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){if(!c.test(t))return!1;var r=t.split(".").sort((function(e,t){return e-t}));return r[3]<=255}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),c=new RegExp("^".concat(a,"$")),s="(?:[0-9a-fA-F]{1,4})",u=new RegExp("^("+"(?:".concat(s,":){7}(?:").concat(s,"|:)|")+"(?:".concat(s,":){6}(?:").concat(a,"|:").concat(s,"|:)|")+"(?:".concat(s,":){5}(?::").concat(a,"|(:").concat(s,"){1,2}|:)|")+"(?:".concat(s,":){4}(?:(:").concat(s,"){0,1}:").concat(a,"|(:").concat(s,"){1,3}|:)|")+"(?:".concat(s,":){3}(?:(:").concat(s,"){0,2}:").concat(a,"|(:").concat(s,"){1,4}|:)|")+"(?:".concat(s,":){2}(?:(:").concat(s,"){0,3}:").concat(a,"|(:").concat(s,"){1,5}|:)|")+"(?:".concat(s,":){1}(?:(:").concat(s,"){0,4}:").concat(a,"|(:").concat(s,"){1,6}|:)|")+"(?::((?::".concat(s,"){0,5}:").concat(a,"|(?::").concat(s,"){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,c,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.substr(0,2)){if(!t.allow_protocol_relative_urls)return!1;g[0]=e.substr(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((c=g.shift()).indexOf(":")>=0&&c.split(":").length>2)return!1;var y=c.split(":"),b=(E=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,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}(x,E)||function(e,t){if(e){if("string"==typeof e)return s(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)?s(e,t):void 0}}(x,E)||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.")}()),A=b[0],w=b[1];if(""===A&&""===w)return!1}var x,E;p=g.join("@"),m=null,v=null;var O=p.match(l);O?(f="",v=O[1],m=O[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(!((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=c(n(65571)),o=c(n(10221)),i=c(n(61028)),a=c(n(84808));function c(e){return e&&e.__esModule?e:{default:e}}function s(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},85042:e=>{"use strict";e.exports="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="},1024:e=>{"use strict";e.exports=t},30314:t=>{"use strict";t.exports=e},55721:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,r,o,i,a){var c=new Date(0);return c.setUTCFullYear(e,t,n),c.setUTCHours(r,o,i,a),c},e.exports=t.default},25855:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(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)},e.exports=t.default},32734:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var r,i,d;if(""===e)return 0;if(r=c.timezoneZ.exec(e))return 0;if(r=c.timezoneHH.exec(e))return u(d=parseInt(r[1],10))?-d*a:NaN;if(r=c.timezoneHHMM.exec(e)){d=parseInt(r[1],10);var f=parseInt(r[2],10);return u(d,f)?(i=Math.abs(d)*a+6e4*f,d>0?-i:i):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.default)(e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds())}(t),h=s(p,e),m=n?h:function(e,t,n){var r=e.getTime()-t,o=s(new Date(r),n);if(t===o)return t;r-=o-t;var i=s(new Date(r),n);if(o===i)return o;return Math.max(o,i)}(t,h,e);return-m}return NaN};var r=i(n(2712)),o=i(n(55721));function i(e){return e&&e.__esModule?e:{default:e}}var a=36e5,c={timezone:/([Z+-].*)$/,timezoneZ:/^(Z)$/,timezoneHH:/^([+-]\d{2})$/,timezoneHHMM:/^([+-]\d{2}):?(\d{2})$/};function s(e,t){var n=(0,r.default)(e,t),i=(0,o.default)(n[0],n[1]-1,n[2],n[3]%24,n[4],n[5],0).getTime(),a=e.getTime(),c=a%1e3;return i-(a-=c>=0?c:1e3+c)}function u(e,t){return-23<=e&&e<=23&&(null==t||0<=t&&t<=59)}var l={};e.exports=t.default},7048:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var n=/(Z|[+-]\d{2}(?::?\d{2})?| UTC| [a-zA-Z]+\/[a-zA-Z_]+(?:\/[a-zA-Z_]+)?)$/;t.default=n,e.exports=t.default},2712:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var o=function(e){if(!r[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;r[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 r[e]}(t);return o.formatToParts?function(e,t){try{for(var r=e.formatToParts(t),o=[],i=0;i<r.length;i++){var a=n[r[i].type];a>=0&&(o[a]=parseInt(r[i].value,10))}return o}catch(e){if(e instanceof RangeError)return[NaN];throw e}}(o,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]]}(o,e)};var n={year:0,month:1,day:2,hour:3,minute:4,second:5};var r={};e.exports=t.default},33826:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=void 0;var r=i(n(25855)),o=i(n(32734));function i(e){return e&&e.__esModule?e:{default:e}}function a(e,t){var n=e?(0,o.default)(e,t,!0)/6e4:t.getTimezoneOffset();if(Number.isNaN(n))throw new RangeError("Invalid time zone specified: "+e);return n}function c(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+c(Math.floor(o/60),2)+n+c(Math.floor(o%60),2)}function u(e,t){return e%60==0?(e>0?"-":"+")+c(Math.abs(e)/60,2):s(e,t)}var l={X:function(e,t,n,r){var o=a(r.timeZone,r._originalDate||e);if(0===o)return"Z";switch(t){case"X":return u(o);case"XXXX":case"XX":return s(o);default:return s(o,":")}},x:function(e,t,n,r){var o=a(r.timeZone,r._originalDate||e);switch(t){case"x":return u(o);case"xxxx":case"xx":return s(o);default:return s(o,":")}},O:function(e,t,n,r){var o=a(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 a=t||"";return n+String(o)+a+c(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.default)("short",i,o);default:return(0,r.default)("long",i,o)}}};t.default=l,e.exports=t.default},56558:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var a=String(t),s=n||{},u=a.match(c);if(u){var l=(0,i.default)(e,s);a=u.reduce((function(e,t){if("'"===t[0])return e;var n=e.indexOf(t),r="'"===e[n-1],i=e.replace(t,"'"+o.default[t[0]](l,t,null,s)+"'");return r?i.substring(0,n-1)+i.substring(n+1):i}),a)}return(0,r.default)(e,a,s)};var r=a(n(15616)),o=a(n(33826)),i=a(n(21476));function a(e){return e&&e.__esModule?e:{default:e}}var c=/([xXOz]+)|''|'(''|[^'])+('|$)/g;e.exports=t.default},26645:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n,a){var c=(0,r.default)(a);return c.timeZone=t,(0,o.default)((0,i.default)(e,t),n,c)};var r=a(n(46420)),o=a(n(56558)),i=a(n(1132));function a(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},24992:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return-(0,o.default)(e,t)};var r,o=(r=n(32734))&&r.__esModule?r:{default:r};e.exports=t.default},70722:(e,t,n)=>{"use strict";e.exports={format:n(56558),formatInTimeZone:n(26645),getTimezoneOffset:n(24992),toDate:n(21476),utcToZonedTime:n(1132),zonedTimeToUtc:n(68516)}},21476:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(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:(0,r.default)(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 c=l(e),s=d(c.date,a),u=s.year,h=s.restDateString,m=f(h,u);if(isNaN(m))return new Date(NaN);if(m){var g,v=m.getTime(),y=0;if(c.time&&(y=p(c.time),isNaN(y)))return new Date(NaN);if(c.timeZone||n.timeZone){if(g=(0,i.default)(c.timeZone||n.timeZone,new Date(v+y)),isNaN(g))return new Date(NaN)}else g=(0,o.default)(new Date(v+y)),g=(0,o.default)(new Date(v+y+g));return new Date(v+y+g)}return new Date(NaN)};var r=c(n(82084)),o=c(n(93561)),i=c(n(32734)),a=c(n(7048));function c(e){return e&&e.__esModule?e:{default:e}}var s=36e5,u={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.default};function l(e){var t,n={},r=u.dateTimePattern.exec(e);if(r?(n.date=r[1],t=r[3]):(r=u.datePattern.exec(e))?(n.date=r[1],t=r[2]):(n.date=null,t=e),t){var o=u.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=u.YYY[t],o=u.YYYYY[t];if(n=u.YYYY.exec(e)||o.exec(e)){var i=n[1];return{year:parseInt(i,10),restDateString:e.slice(i.length)}}if(n=u.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=u.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=u.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=u.MMDD.exec(e)){r=new Date(0),o=parseInt(n[1],10)-1;var c=parseInt(n[2],10);return y(t,o,c)?(r.setUTCFullYear(t,o,c),r):new Date(NaN)}if(n=u.Www.exec(e))return b(t,i=parseInt(n[1],10)-1)?h(t,i):new Date(NaN);if(n=u.WwwD.exec(e)){i=parseInt(n[1],10)-1;var s=parseInt(n[2],10)-1;return b(t,i,s)?h(t,i,s):new Date(NaN)}return null}function p(e){var t,n,r;if(t=u.HH.exec(e))return A(n=parseFloat(t[1].replace(",",".")))?n%24*s:NaN;if(t=u.HHMM.exec(e))return A(n=parseInt(t[1],10),r=parseFloat(t[2].replace(",",".")))?n%24*s+6e4*r:NaN;if(t=u.HHMMSS.exec(e)){n=parseInt(t[1],10),r=parseInt(t[2],10);var o=parseFloat(t[3].replace(",","."));return A(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 A(e,t,n){return(null==e||!(e<0||e>=25))&&((null==t||!(t<0||t>=60))&&(null==n||!(n<0||n>=60)))}e.exports=t.default},1132:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){var i=(0,o.default)(e,n),a=(0,r.default)(t,i,!0),c=new Date(i.getTime()-a),s=new Date(0);return s.setFullYear(c.getUTCFullYear(),c.getUTCMonth(),c.getUTCDate()),s.setHours(c.getUTCHours(),c.getUTCMinutes(),c.getUTCSeconds(),c.getUTCMilliseconds()),s};var r=i(n(32734)),o=i(n(21476));function i(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},68516:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t,n){if("string"==typeof e&&!e.match(i.default)){var s=(0,r.default)(n);return s.timeZone=t,(0,o.default)(e,s)}var u=(0,o.default)(e,n),l=(0,c.default)(u.getFullYear(),u.getMonth(),u.getDate(),u.getHours(),u.getMinutes(),u.getSeconds(),u.getMilliseconds()).getTime(),d=(0,a.default)(t,new Date(l));return new Date(l+d)};var r=s(n(46420)),o=s(n(21476)),i=s(n(7048)),a=s(n(32734)),c=s(n(55721));function s(e){return e&&e.__esModule?e:{default:e}}e.exports=t.default},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})},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})},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})},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})},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,c=!1;try{for(n=n.call(e);!(a=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);a=!0);}catch(e){c=!0,o=e}finally{try{a||null==n.return||n.return()}finally{if(c)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.")}()}},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=>288===e?"chunk-ckeditor.e7bfe40c1f6d30e7d316.js":"chunk-"+({85:"code-editor",198:"vendor-fontawesome",614:"vendor-icons",877:"vendor-libphonenumber-js"}[e]||e)+"."+{85:"884f0ce2cdac1e9c2902",198:"97ac4a852bd9a61298d3",560:"dbc9c6afbb5c0bbe87e4",608:"b54f7a2dcb8f88236ba3",614:"5cbe74f63db5162f6ef1",759:"7aa09f3c0f32bbc5fe3a",817:"32a024d3c7e2fc5be22e",877:"d0e1a624b281ea60375f"}[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-legacy-bundle:",a.l=(e,t,o,i)=>{if(n[e])n[e].push(t);else{var c,s;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){c=d;break}}c||(s=!0,(c=document.createElement("script")).charset="utf-8",c.timeout=120,a.nc&&c.setAttribute("nonce",a.nc),c.setAttribute("data-webpack",r+o),c.src=e),n[e]=[t];var f=(t,r)=>{c.onerror=c.onload=null,clearTimeout(p);var o=n[e];if(delete n[e],c.parentNode&&c.parentNode.removeChild(c),o&&o.forEach((e=>e(r))),t)return t(r)},p=setTimeout(f.bind(null,void 0,{type:"timeout",target:c}),12e4);c.onerror=f.bind(null,c.onerror),c.onload=f.bind(null,c.onload),s&&document.head.appendChild(c)}},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="/",(()=>{a.b=document.baseURI||self.location.href;var e={713: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),c=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;c.message="Loading chunk "+t+" failed.\n("+o+": "+i+")",c.name="ChunkLoadError",c.type=o,c.request=i,r[1](c)}}),"chunk-"+t,t)}};var t=(t,n)=>{var r,o,[i,c,s]=n,u=0;if(i.some((t=>0!==e[t]))){for(r in c)a.o(c,r)&&(a.m[r]=c[r]);if(s)s(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_legacy_bundle=self.webpackChunktocco_legacy_bundle||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),a.nc=void 0;var c={};return(()=>{"use strict";a.r(c);var e={};a.r(e),a.d(e,{ACTION_INVOKE:()=>Ng,ACTION_INVOKED:()=>Zg,ACTION_IN_PROGRESS:()=>Fg,actionInvoke:()=>Lg,actionInvoked:()=>Hg});var t={};a.r(t),a.d(t,{focusErrorField:()=>Qw,focusField:()=>qw,formInitialValueSelector:()=>Yw,getCurrentEntityState:()=>$w,getEntityForSubmit:()=>Jw,getFormErrors:()=>Gw,handleInvalidForm:()=>Kw,handleSubmitError:()=>ex,touchAllFields:()=>Xw});var n={};a.r(n),a.d(n,{asyncValidationStop:()=>sx,autoComplete:()=>ax,default:()=>ix,onChange:()=>cx});var r={};a.r(r),a.d(r,{useAsyncValidation:()=>eI,useFormEvents:()=>tI,useSyncValidation:()=>JR});var o,i,s=a(79013),u=a(45697),l=a.n(u),d=a(50600),f=a(22731),p=a(19743),h=a(19241),m=a(27023),g=a(73665),v=a(28655),y=a.n(v),b=a(76538),A=a(38205),w=a(24875),x=a(30759),E=a(7281),O=w.FS.color("secondaryLight"),C=w.FS.color("paper"),k=w.FS.color("secondary"),S=(0,A.vJ)(o||(o=y()(["\n .react-datepicker-popper {\n && {\n z-index: 5;\n margin: 0;\n }\n }\n\n .react-datepicker {\n && {\n * {\n box-sizing: content-box; // prevent box-sizing problems in widgets\n }\n border-radius: 0;\n border: 1px solid ",";\n ","\n\n .react-datepicker__header {\n ","\n border-radius: 0;\n background-color: ",";\n padding-bottom: 0;\n }\n\n .react-datepicker__navigation {\n top: 3px;\n }\n\n .react-datepicker__navigation--previous,\n .react-datepicker__navigation--next {\n margin-top: ",";\n }\n ","\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow,\n .react-datepicker__navigation-icon:before {\n border-color: "," !important;\n border-width: 1.5px 1.5px 0 0;\n }\n\n .react-datepicker__header__dropdown {\n font-size: ",";\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n font-size: ",";\n }\n }\n\n .react-datepicker__current-month {\n ","\n }\n\n .react-datepicker__day-name {\n color: ",";\n font-size: ",";\n }\n\n .react-datepicker__day,\n .react-datepicker__day-name {\n border: 1px solid transparent;\n padding: ",";\n outline: none;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n padding: ",";\n }\n }\n\n .react-datepicker__day--selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n\n &:focus {\n border-color: ",";\n background-color: ",";\n }\n }\n\n .react-datepicker__day--keyboard-selected {\n background-color: ",";\n border-color: ",";\n border-radius: 50%;\n }\n\n .react-datepicker__day--today,\n .react-datepicker__month-text--today,\n .react-datepicker__quarter-text--today,\n .react-datepicker__year-text--today {\n border-radius: 50%;\n border-color: ",";\n }\n\n .react-datepicker__today-button {\n ","\n background-color: ",";\n border-top: 0;\n padding-bottom: ",";\n padding-top: 0;\n\n &:hover > button {\n background-color: ",";\n }\n }\n\n .react-datepicker__input-time-container {\n display: flex;\n justify-content: center;\n margin: 5px 0;\n\n .react-datepicker-time__input {\n margin: 0;\n\n input {\n text-align: center;\n }\n }\n }\n\n .react-datepicker__header__dropdown.react-datepicker__header__dropdown--scroll {\n width: 190px;\n margin: 8px auto 0;\n display: grid;\n grid-template-columns: 100px 85px;\n }\n\n .react-datepicker__month-read-view,\n .react-datepicker__year-read-view {\n color: ",";\n visibility: visible !important;\n }\n\n .react-datepicker__year-option,\n .react-datepicker__month-option,\n .react-datepicker__month-year-option {\n font-size: ",";\n }\n\n .react-datepicker__year-option:first-of-type,\n .react-datepicker__month-option:first-of-type,\n .react-datepicker__month-year-option:first-of-type,\n .react-datepicker__year-option:last-of-type,\n .react-datepicker__month-option:last-of-type,\n .react-datepicker__month-year-option:last-of-type {\n border-radius: 0;\n }\n\n .react-datepicker__year-read-view--down-arrow,\n .react-datepicker__month-read-view--down-arrow,\n .react-datepicker__month-year-read-view--down-arrow {\n top: 6px;\n right: -10px;\n width: 5px;\n height: 5px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: -8px;\n }\n }\n\n .react-datepicker__year-read-view--down-arrow {\n right: -4px;\n\n /* decrease padding to prevent overflow on small screens */\n @media only screen and (max-width: 480px) {\n right: 3px;\n }\n }\n\n .react-datepicker__day:hover,\n .react-datepicker__month-text:hover,\n .react-datepicker__quarter-text:hover,\n .react-datepicker__year-text:hover {\n border-color: ",";\n background-color: ",";\n border-radius: 50%;\n color: ",";\n }\n\n .react-datepicker__year-dropdown {\n left: 40%;\n top: 45px;\n }\n\n .react-datepicker__navigation--years-upcoming:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 8px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(-45deg);\n }\n\n .react-datepicker__navigation--years-previous:before {\n border-width: 1.5px 1.5px 0 0;\n border-color: ",";\n border-style: solid;\n content: '';\n display: block;\n position: absolute;\n top: 6px;\n left: 12px;\n height: 5px;\n width: 5px;\n transform: rotate(135deg);\n }\n\n .react-datepicker__year-dropdown,\n .react-datepicker__month-dropdown,\n .react-datepicker__month-year-dropdown {\n background-color: ",";\n border-radius: 0;\n border-color: ",";\n box-shadow: 0 0 5px rgb(0 0 0 / 30%);\n }\n\n .react-datepicker__year-option:hover,\n .react-datepicker__month-option:hover,\n .react-datepicker__month-year-option:hover {\n background-color: ",";\n }\n\n .react-datepicker__month-option--selected {\n left: 10px;\n }\n\n .react-datepicker__day--outside-month {\n color: ",";\n }\n }\n }\n"])),O,(0,x.Z)(),(0,x.Z)(),O,E.Z.space(-.6),"\n .react-datepicker__current-month.react-datepicker__current-month--hasYearDropdown.react-datepicker__current-month--hasMonthDropdown {\n // Avoid showing the month and year a second time when it has month and year dropdowns.\n display: none;\n }\n",C,E.Z.font(2.85),E.Z.font(1.8),(0,x.Z)({fontWeight:w.FS.fontWeight("bold")}),C,E.Z.font(-2),E.Z.space(-.6),E.Z.space(-1.2),k,k,k,O,O,O,k,(0,x.Z)(),C,E.Z.space(-.5),(function(e){var t=e.theme;return(0,b._j)(.1,t.colors.paper)}),C,E.Z.font(0),O,O,C,w.FS.color("text"),w.FS.color("text"),C,O,(function(e){var t=e.theme;return(0,b._j)(.1,t.colors.paper)}),(function(e){var t=e.theme;return(0,b.$n)(.7,t.colors.text)})),D=a(85893);const _=function(){return(0,D.jsx)(D.Fragment,{children:i||(i=(0,D.jsx)(S,{}))})};var P=a(74806),j=a(50558),T=a(63038),R=a.n(T),I=a(1024),M=a.n(I),B=function(){return window.innerWidth},N="top",F="left",Z={sidepanelPosition:F,isCollapsed:!1,toggleCollapse:function(){},scrollBehaviour:"none"},L=M().createContext(Z),H=function(){return(0,I.useContext)(L)};const U=function(e){var t=e.children,n=e.sidepanelPosition,r=void 0===n?N:n,o=e.sidepanelCollapsed,i=void 0!==o&&o,a=e.setSidepanelCollapsed,c=void 0===a?function(){}:a,s=e.scrollBehaviour,u=void 0===s?"none":s,l=function(e,t){var n=(0,I.useState)(!1),r=R()(n,2),o=r[0],i=r[1],a=(0,I.useState)(B()),c=R()(a,2),s=c[0],u=c[1];(0,I.useEffect)((function(){var e=function(){u(B())};return window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[s]),(0,I.useEffect)((function(){i(s<768||e)}),[s,e]);var l=(0,I.useCallback)((function(){i(!o),B()>768&&t(!o)}),[o,t]);return{isCollapsed:o,toggleCollapse:l}}(i,c),d=l.isCollapsed,f=l.toggleCollapse,p=(0,I.useMemo)((function(){return{sidepanelPosition:r,isCollapsed:r===F&&d,toggleCollapse:f,scrollBehaviour:u}}),[d,f,r,u]);return(0,D.jsx)(L.Provider,{value:p,children:t})};var z,W,V,Y,q,G,Q,X,K=a(80470),$=a(11347),J=a(59713),ee=a.n(J),te=a(30314),ne=a.n(te),re=a(83590),oe=a(65035),ie=a(88601),ae=a(97388),ce="ontouchstart"in window||navigator.maxTouchPoints>0||navigator.msMaxTouchPoints>0,se=A.ZP.div.withConfig({displayName:"StyledIconWrapper"})(z||(z=y()(["\n margin-left: ",";\n margin-right: -",";\n"])),E.Z.space(-1.7),E.Z.space(-2.1)),ue=(0,A.ZP)(oe.Z).withConfig({displayName:"StyledIconButtonWrapper"})(W||(W=y()(["\n padding-left: ",";\n padding-right: ",";\n"])),E.Z.space(-.5),E.Z.space(-.5)),le=A.ZP.div.withConfig({displayName:"StyledPopperWrapper"})(V||(V=y()(["\n position: relative;\n"]))),de=A.ZP.div.withConfig({displayName:"StyledPopper"})(Y||(Y=y()(["\n max-height: ","; // add 15px for small padding\n min-height: calc(2 * "," + ","); // min-height of 1 entry\n width: max-content;\n overflow-y: auto;\n overflow-x: hidden;\n background: ",";\n box-shadow: 0 0 5px rgba(0, 0, 0, 0.3);\n border: 1px solid ",";\n z-index: 9999999; /* higher than StyledModalHolder */\n ","\n"])),(function(e){var t=e.rectBottom;return"calc(100dvh - ".concat(t+15,"px)")}),E.Z.space(-1.4),E.Z.font(0),ie.Z.color("paper"),ie.Z.color("secondaryLight"),$.C),fe=A.ZP.div.withConfig({displayName:"StyledMenuItem"})(q||(q=y()(["\n min-width: 200px;\n max-width: 300px;\n"]))),pe=A.ZP.div.withConfig({displayName:"StyledItemLabel"})(G||(G=y()(["\n cursor: ",";\n ","\n ","\n /* increased padding on touchdevices */\n padding: ","\n calc("," + ",");\n font-weight: ",";\n box-shadow: none;\n"])),(function(e){return e.hasOnClick?"pointer":"default"}),(0,x.Z)(),ae.Z,ce?(0,A.iv)(Q||(Q=y()(["\n ","\n ","\n ","\n "])),E.Z.space(-1.4),E.Z.space(-.5),E.Z.space(-1.4)):(0,A.iv)(X||(X=y()(["\n ","\n ","\n ","\n "])),E.Z.space(-2),E.Z.space(-.5),E.Z.space(-2)),E.Z.space(-.5),(function(e){return 5*(e.level||0)+"px"}),(function(e){return e.isGroup?ie.Z.fontWeight("bold"):ie.Z.fontWeight("regular")}));function he(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 me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?he(Object(n),!0).forEach((function(t){ee()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):he(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}const ge=function(e){var t=e.referenceElement,n=e.onClose,r=e.open,o=e.children,i=(0,I.useRef)(null),a=(0,I.useState)(null),c=R()(a,2),s=c[0],u=c[1],l=(0,I.useState)(0),d=R()(l,2),f=d[0],p=d[1],h=(0,I.useCallback)((function(e){i&&i.current&&!i.current.contains(e.target)&&s&&!s.contains(e.target)&&t&&!t.contains(e.target)&&n()}),[t,s,n]);(0,I.useEffect)((function(){return i.current&&p(i.current.getBoundingClientRect().bottom),document.addEventListener("mousedown",h),function(){document.removeEventListener("mousedown",h)}}),[h]);var m=(0,re.D)(t,s,{placement:"bottom-start",modifiers:[{name:"offset",options:{offset:[0,5]}}]}),g=m.styles,v=m.attributes;return r?(0,D.jsx)(le,{ref:i,children:o&&ne().createPortal((0,D.jsx)(de,me(me({ref:u,style:g.popper},v.popper),{},{rectBottom:f,children:M().Children.map(o,(function(e){return e&&M().cloneElement(e,{onClose:n})}))})),document.body)}):null};var ve,ye,be,Ae,we,xe,Ee,Oe,Ce,ke,Se=A.ZP.div.withConfig({displayName:"TopPositioning"})(ve||(ve=y()(["\n height: 100%;\n width: 100%;\n display: grid;\n row-gap: 8px;\n grid-template-areas:\n 'sidepanel'\n 'content';\n grid-auto-rows: auto minmax(auto, 1fr);\n grid-template-columns: minmax(100%, 700px);\n"]))),De=A.ZP.div.withConfig({displayName:"LeftPositioning"})(ye||(ye=y()(["\n display: grid;\n width: 100%;\n height: 100%;\n column-gap: 1rem;\n /* only show one panel at a time on screens <= 500px */\n grid: ",";\n\n @media (max-width: 600px) {\n column-gap: 8px;\n }\n"])),(function(e){var t=e.isCollapsed;return(e.windowWidth<=500&&!t?"'sidepanel content' / 100% 0":!t&&"'sidepanel content' / minmax(350px, 16dvw) auto")||"'sidepanel content' / 25px auto"})),_e=A.ZP.div.withConfig({displayName:"StyledSidepanel"})(be||(be=y()(["\n grid-area: sidepanel;\n min-height: 50px; /* prevent collapse on shorter screens */\n ","\n\n /* Limit height when positioned top */\n "," && {\n ","\n padding-right: ",";\n ","\n }\n"])),(function(e){return"inline"===e.scrollBehaviour&&"overflow-y: auto;"}),Se,(function(e){return"inline"===e.scrollBehaviour?"max-height: 200px;":"max-height: none;"}),E.Z.space(-.5),$.C),Pe=A.ZP.div.withConfig({displayName:"StyledSidepanelMainContent"})(Ae||(Ae=y()(["\n grid-area: content;\n display: flex;\n"]))),je=A.ZP.div.withConfig({displayName:"StyledSidepanelLeftContentWrapper"})(we||(we=y()(["\n display: flex; // enables StyledSidepanelCollapsed to take full height\n flex-direction: column;\n height: 100%;\n overflow-y: auto;\n overflow-x: hidden;\n background-color: ",";\n"])),ie.Z.color("paper")),Te=A.ZP.div.withConfig({displayName:"StyledSidepanelTopContentWrapper"})(xe||(xe=y()([""]))),Re=A.ZP.div.withConfig({displayName:"StyledSidepanelContent"})(Ee||(Ee=y()(["\n display: ",";\n height: 100%;\n overflow: hidden;\n"])),(function(e){return e.isCollapsed?"none":"block"})),Ie=A.ZP.div.withConfig({displayName:"StyledSidepanelCollapsed"})(Oe||(Oe=y()(["\n display: ",";\n flex: 1;\n align-items: flex-start;\n background: ",";\n padding-top: ",";\n padding-left: ",";\n\n &:hover {\n cursor: pointer;\n }\n"])),(function(e){return e.isCollapsed?"flex":"none"}),ie.Z.color("paper"),E.Z.space(-.5),E.Z.space(-2.5)),Me=(0,A.ZP)(K.Z).withConfig({displayName:"StyledToggleCollapseButton"})(Ce||(Ce=y()(["\n font-size: ",";\n margin-right: auto;\n position: relative;\n left: ",";\n\n &:hover,\n ",":hover & {\n background-color: transparent;\n color: ",";\n }\n"])),E.Z.font(0),(function(e){return e.isCollapsed?"0.5px":"-5px"}),Ie,ie.Z.color("secondaryLight")),Be=A.ZP.div.withConfig({displayName:"StyledSidepanelHeader"})(ke||(ke=y()(["\n background-color: ",";\n border-bottom: 3px solid ",";\n display: flex;\n justify-content: flex-end;\n padding: ",";\n position: relative;\n z-index: 2; // higher than StyledTether to prevent cover on scroll\n\n "," {\n z-index: 3; //higher than rest to lay over search filter list\n }\n"])),ie.Z.color("paper"),ie.Z.color("backgroundBody"),E.Z.space(-.53),ge);const Ne=function(e){var t=e.children,n=H(),r=n.sidepanelPosition,o=n.isCollapsed,i="left"===r?De:Se;return(0,D.jsx)(i,{windowWidth:window.innerWidth,isCollapsed:o,children:t})};const Fe=function(e){var t=e.children,n=e.sidepanelPosition,r=e.sidepanelCollapsed,o=e.setSidepanelCollapsed,i=e.scrollBehaviour;return(0,D.jsx)(U,{sidepanelPosition:n,sidepanelCollapsed:r,setSidepanelCollapsed:o,scrollBehaviour:i,children:(0,D.jsx)(Ne,{children:t})})};const Ze=function(e){var t=e.children,n=H(),r=n.sidepanelPosition,o=n.isCollapsed,i=n.toggleCollapse,a=n.scrollBehaviour,c=r===F?je:Te;return(0,D.jsx)(_e,{sidepanelPosition:r,scrollBehaviour:a,children:(0,D.jsxs)(c,{children:[(0,D.jsx)(Re,{isCollapsed:o,children:t}),"left"===r&&(0,D.jsx)(Ie,{onClick:i,isCollapsed:o,children:(0,D.jsx)(Me,{icon:"chevron-right",isCollapsed:o})})]})})};var Le=a(50258);const He=function(e){var t=e.children,n=H(),r=n.sidepanelPosition,o=n.isCollapsed,i=n.toggleCollapse;return"left"!==r?null:(0,D.jsxs)(Be,{children:[(0,D.jsx)(Me,{icon:"chevron-left",isCollapsed:o,onClick:i}),t]})};const Ue=function(e){var t=e.children;return(0,D.jsx)(Pe,{children:t})};var ze=a(35997),We=a(319),Ve=a.n(We),Ye=16,qe=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!e)return t;e=Ge(e);var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],Ye),g:parseInt(n[2],Ye),b:parseInt(n[3],Ye)}:t},Ge=function(e){return e.startsWith("#")||(e="#"+e),e.padEnd(7,"0")},Qe=function(e){var t=e/255;return t<=.03928?t/=12.92:t=Math.pow((t+.055)/1.055,2.4),t},Xe=function(e){return.2126*Qe(e.r)+.7152*Qe(e.g)+.0722*Qe(e.b)};const Ke=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=qe(e);return r&&Xe(r)>.25?n:t},$e=Object.freeze({EXISTING:"existing",ACCEPTED:"accepted",NONE:"none"});function Je(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 et(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Je(Object(n),!0).forEach((function(t){ee()(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Je(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}var tt=function(e,t){return e+t},nt=function(e){return e.map((function(e){return{title:e.label,id:tt(e.key,e.model),entityKey:e.key,calendarType:e.calendarType,entityModel:e.model}}))},rt=a(69100),ot=a.n(rt),it=a(70655);("undefined"!=typeof globalThis?globalThis:window).FullCalendarVDom={Component:I.Component,createElement:I.createElement,render:te.render,createRef:I.createRef,Fragment:I.Fragment,createContext:I.createContext,createPortal:te.createPortal,flushSync:function(e){e()},unmountComponentAtNode:te.unmountComponentAtNode};var at=a(93379),ct=a.n(at),st=a(7795),ut=a.n(st),lt=a(90569),dt=a.n(lt),ft=a(3565),pt=a.n(ft),ht=a(19216),mt=a.n(ht),gt=a(44589),vt=a.n(gt),yt=a(46),bt={};bt.styleTagTransform=vt(),bt.setAttributes=pt(),bt.insert=dt().bind(null,"head"),bt.domAPI=ut(),bt.insertStyleElement=mt();ct()(yt.Z,bt);yt.Z&&yt.Z.locals&&yt.Z.locals;if("undefined"==typeof FullCalendarVDom)throw new Error("Please import the top-level fullcalendar lib before attempting to import a plugin.");var At=FullCalendarVDom.Component,wt=FullCalendarVDom.createElement,xt=(FullCalendarVDom.render,FullCalendarVDom.createRef),Et=FullCalendarVDom.Fragment,Ot=FullCalendarVDom.createContext,Ct=FullCalendarVDom.createPortal,kt=FullCalendarVDom.flushSync,St=(FullCalendarVDom.unmountComponentAtNode,function(){function e(e,t){this.context=e,this.internalEventSource=t}return e.prototype.remove=function(){this.context.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:this.internalEventSource.sourceId})},e.prototype.refetch=function(){this.context.dispatch({type:"FETCH_EVENT_SOURCES",sourceIds:[this.internalEventSource.sourceId],isRefetch:!0})},Object.defineProperty(e.prototype,"id",{get:function(){return this.internalEventSource.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this.internalEventSource.meta.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"format",{get:function(){return this.internalEventSource.meta.format},enumerable:!1,configurable:!0}),e}());function Dt(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(Pt(e,t))return e;e=e.parentElement||e.parentNode}while(null!==e&&1===e.nodeType);return null}function Pt(e,t){return(e.matches||e.matchesSelector||e.msMatchesSelector).call(e,t)}function jt(e,t){for(var n=e instanceof HTMLElement?[e]:e,r=[],o=0;o<n.length;o+=1)for(var i=n[o].querySelectorAll(t),a=0;a<i.length;a+=1)r.push(i[a]);return r}var Tt=/(top|left|right|bottom|width|height)$/i;function Rt(e,t){for(var n in t)It(e,n,t[n])}function It(e,t,n){null==n?e.style[t]="":"number"==typeof n&&Tt.test(t)?e.style[t]=n+"px":e.style[t]=n}function Mt(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}function Bt(e){return e.getRootNode?e.getRootNode():document}var Nt=0;function Ft(){return"fc-dom-"+(Nt+=1)}function Zt(e){e.preventDefault()}function Lt(e,t,n,r){var o=function(e,t){return function(n){var r=_t(n.target,e);r&&t.call(r,n,r)}}(n,r);return e.addEventListener(t,o),function(){e.removeEventListener(t,o)}}var Ht=["webkitTransitionEnd","otransitionend","oTransitionEnd","msTransitionEnd","transitionend"];function Ut(e){return{tabIndex:0,onKeyDown:function(t){"Enter"!==t.key&&" "!==t.key||(e(t),t.preventDefault())}}}var zt=0;function Wt(){return String(zt+=1)}function Vt(){document.body.classList.add("fc-not-allowed")}function Yt(){document.body.classList.remove("fc-not-allowed")}function qt(e){var t,n,r=[],o=[];for("string"==typeof e?o=e.split(/\s*,\s*/):"function"==typeof e?o=[e]:Array.isArray(e)&&(o=e),t=0;t<o.length;t+=1)"string"==typeof(n=o[t])?r.push("-"===n.charAt(0)?{field:n.substring(1),order:-1}:{field:n,order:1}):"function"==typeof n&&r.push({func:n});return r}function Gt(e,t,n){var r,o;for(r=0;r<n.length;r+=1)if(o=Qt(e,t,n[r]))return o;return 0}function Qt(e,t,n){return n.func?n.func(e,t):Xt(e[n.field],t[n.field])*(n.order||1)}function Xt(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 Kt(e,t){var n=String(e);return"000".substr(0,t-n.length)+n}function $t(e,t,n){return"function"==typeof e?e.apply(void 0,t):"string"==typeof e?t.reduce((function(e,t,n){return e.replace("$"+n,t||"")}),e):n}function Jt(e,t){return e-t}function en(e){return e%1==0}function tn(e){var t=e.querySelector(".fc-scrollgrid-shrink-frame"),n=e.querySelector(".fc-scrollgrid-shrink-cushion");if(!t)throw new Error("needs fc-scrollgrid-shrink-frame className");if(!n)throw new Error("needs fc-scrollgrid-shrink-cushion className");return e.getBoundingClientRect().width-t.getBoundingClientRect().width+n.getBoundingClientRect().width}var nn=["sun","mon","tue","wed","thu","fri","sat"];function rn(e,t){var n=pn(e);return n[2]+=t,hn(n)}function on(e,t){var n=pn(e);return n[6]+=t,hn(n)}function an(e,t){return(t.valueOf()-e.valueOf())/864e5}function cn(e,t){return gn(e)===gn(t)?Math.round(an(e,t)):null}function sn(e){return hn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate()])}function un(e,t,n,r){var o=hn([t,0,1+ln(t,n,r)]),i=sn(e),a=Math.round(an(o,i));return Math.floor(a/7)+1}function ln(e,t,n){var r=7+t-n;return-((7+hn([e,0,r]).getUTCDay()-t)%7)+r-1}function dn(e){return[e.getFullYear(),e.getMonth(),e.getDate(),e.getHours(),e.getMinutes(),e.getSeconds(),e.getMilliseconds()]}function fn(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 pn(e){return[e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds(),e.getUTCMilliseconds()]}function hn(e){return 1===e.length&&(e=e.concat([0])),new Date(Date.UTC.apply(Date,e))}function mn(e){return!isNaN(e.valueOf())}function gn(e){return 1e3*e.getUTCHours()*60*60+1e3*e.getUTCMinutes()*60+1e3*e.getUTCSeconds()+e.getUTCMilliseconds()}function vn(e,t,n,r){return{instanceId:Wt(),defId:e,range:t,forcedStartTzo:null==n?null:n,forcedEndTzo:null==r?null:r}}var yn=Object.prototype.hasOwnProperty;function bn(e,t){var n={};if(t)for(var r in t){for(var o=[],i=e.length-1;i>=0;i-=1){var a=e[i][r];if("object"==typeof a&&a)o.unshift(a);else if(void 0!==a){n[r]=a;break}}o.length&&(n[r]=bn(o))}for(i=e.length-1;i>=0;i-=1){var c=e[i];for(var s in c)s in n||(n[s]=c[s])}return n}function An(e,t){var n={};for(var r in e)t(e[r],r)&&(n[r]=e[r]);return n}function wn(e,t){var n={};for(var r in e)n[r]=t(e[r],r);return n}function xn(e){for(var t={},n=0,r=e;n<r.length;n++){t[r[n]]=!0}return t}function En(e){var t=[];for(var n in e)t.push(e[n]);return t}function On(e,t){if(e===t)return!0;for(var n in e)if(yn.call(e,n)&&!(n in t))return!1;for(var n in t)if(yn.call(t,n)&&e[n]!==t[n])return!1;return!0}function Cn(e,t){var n=[];for(var r in e)yn.call(e,r)&&(r in t||n.push(r));for(var r in t)yn.call(t,r)&&e[r]!==t[r]&&n.push(r);return n}function kn(e,t,n){if(void 0===n&&(n={}),e===t)return!0;for(var r in t)if(!(r in e)||!Sn(e[r],t[r],n[r]))return!1;for(var r in e)if(!(r in t))return!1;return!0}function Sn(e,t,n){return e===t||!0===n||!!n&&n(e,t)}function Dn(e,t,n,r){void 0===t&&(t=0),void 0===r&&(r=1);var o=[];null==n&&(n=Object.keys(e).length);for(var i=t;i<n;i+=r){var a=e[i];void 0!==a&&o.push(a)}return o}function _n(e,t,n){var r=n.dateEnv,o=n.pluginHooks,i=n.options,a=e.defs,c=e.instances;for(var s in c=An(c,(function(e){return!a[e.defId].recurringDef})),a){var u=a[s];if(u.recurringDef){var l=u.recurringDef.duration;l||(l=u.allDay?i.defaultAllDayEventDuration:i.defaultTimedEventDuration);for(var d=0,f=Pn(u,l,t,r,o.recurringTypes);d<f.length;d++){var p=f[d],h=vn(s,{start:p,end:r.add(p,l)});c[h.instanceId]=h}}}return{defs:a,instances:c}}function Pn(e,t,n,r,o){var i=o[e.recurringDef.typeId].expand(e.recurringDef.typeData,{start:r.subtract(n.start,t),end:n.end},r);return e.allDay&&(i=i.map(sn)),i}var jn=["years","months","days","milliseconds"],Tn=/^(-?)(?:(\d+)\.)?(\d+):(\d\d)(?::(\d\d)(?:\.(\d\d\d))?)?/;function Rn(e,t){var n;return"string"==typeof e?function(e){var t=Tn.exec(e);if(t){var n=t[1]?-1:1;return{years:0,months:0,days:n*(t[2]?parseInt(t[2],10):0),milliseconds:n*(60*(t[3]?parseInt(t[3],10):0)*60*1e3+60*(t[4]?parseInt(t[4],10):0)*1e3+1e3*(t[5]?parseInt(t[5],10):0)+(t[6]?parseInt(t[6],10):0))}}return null}(e):"object"==typeof e&&e?In(e):"number"==typeof e?In(((n={})[t||"milliseconds"]=e,n)):null}function In(e){var t={years:e.years||e.year||0,months:e.months||e.month||0,days:e.days||e.day||0,milliseconds:60*(e.hours||e.hour||0)*60*1e3+60*(e.minutes||e.minute||0)*1e3+1e3*(e.seconds||e.second||0)+(e.milliseconds||e.millisecond||e.ms||0)},n=e.weeks||e.week;return n&&(t.days+=7*n,t.specifiedWeeks=!0),t}function Mn(e){return e.years||e.months||e.milliseconds?0:e.days}function Bn(e){return Nn(e)/864e5}function Nn(e){return 31536e6*e.years+2592e6*e.months+864e5*e.days+e.milliseconds}function Fn(e,t){for(var n=null,r=0;r<jn.length;r+=1){var o=jn[r];if(t[o]){var i=e[o]/t[o];if(!en(i)||null!==n&&n!==i)return null;n=i}else if(e[o])return null}return n}function Zn(e){var t=e.milliseconds;if(t){if(t%1e3!=0)return{unit:"millisecond",value:t};if(t%6e4!=0)return{unit:"second",value:t/1e3};if(t%36e5!=0)return{unit:"minute",value:t/6e4};if(t)return{unit:"hour",value:t/36e5}}return e.days?e.specifiedWeeks&&e.days%7==0?{unit:"week",value:e.days/7}:{unit:"day",value:e.days}:e.months?{unit:"month",value:e.months}:e.years?{unit:"year",value:e.years}:{unit:"millisecond",value:0}}function Ln(e,t,n){void 0===n&&(n=!1);var r=e.toISOString();return r=r.replace(".000",""),n&&(r=r.replace("T00:00:00Z","")),r.length>10&&(null==t?r=r.replace("Z",""):0!==t&&(r=r.replace("Z",Un(t,!0)))),r}function Hn(e){return e.toISOString().replace(/T.*$/,"")}function Un(e,t){void 0===t&&(t=!1);var n=e<0?"-":"+",r=Math.abs(e),o=Math.floor(r/60),i=Math.round(r%60);return t?n+Kt(o,2)+":"+Kt(i,2):"GMT"+n+o+(i?":"+Kt(i,2):"")}function zn(e,t,n){if(e===t)return!0;var r,o=e.length;if(o!==t.length)return!1;for(r=0;r<o;r+=1)if(!(n?n(e[r],t[r]):e[r]===t[r]))return!1;return!0}function Wn(e,t,n){var r,o;return function(){for(var i=[],a=0;a<arguments.length;a++)i[a]=arguments[a];if(r){if(!zn(r,i)){n&&n(o);var c=e.apply(this,i);t&&t(c,o)||(o=c)}}else o=e.apply(this,i);return r=i,o}}function Vn(e,t,n){var r,o,i=this;return function(a){if(r){if(!On(r,a)){n&&n(o);var c=e.call(i,a);t&&t(c,o)||(o=c)}}else o=e.call(i,a);return r=a,o}}function Yn(e,t,n){var r=this,o=[],i=[];return function(a){for(var c=o.length,s=a.length,u=0;u<c;u+=1)if(a[u]){if(!zn(o[u],a[u])){n&&n(i[u]);var l=e.apply(r,a[u]);t&&t(l,i[u])||(i[u]=l)}}else n&&n(i[u]);for(;u<s;u+=1)i[u]=e.apply(r,a[u]);return o=a,i.splice(s),i}}function qn(e,t,n){var r=this,o={},i={};return function(a){var c={};for(var s in a)if(i[s])if(zn(o[s],a[s]))c[s]=i[s];else{n&&n(i[s]);var u=e.apply(r,a[s]);c[s]=t&&t(u,i[s])?i[s]:u}else c[s]=e.apply(r,a[s]);return o=a,i=c,c}}var Gn={week:3,separator:0,omitZeroMinute:0,meridiem:0,omitCommas:0},Qn={timeZoneName:7,era:6,year:5,month:4,day:2,weekday:2,hour:1,minute:1,second:1},Xn=/\s*([ap])\.?m\.?/i,Kn=/,/g,$n=/\s+/g,Jn=/\u200e/g,er=/UTC|GMT/,tr=function(){function e(e){var t={},n={},r=0;for(var o in e)o in Gn?(n[o]=e[o],r=Math.max(Gn[o],r)):(t[o]=e[o],o in Qn&&(r=Math.max(Qn[o],r)));this.standardDateProps=t,this.extendedSettings=n,this.severity=r,this.buildFormattingFunc=Wn(nr)}return e.prototype.format=function(e,t){return this.buildFormattingFunc(this.standardDateProps,this.extendedSettings,t)(e)},e.prototype.formatRange=function(e,t,n,r){var o=this.standardDateProps,i=this.extendedSettings,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(gn(e)!==gn(t))return 1;return 0}(e.marker,t.marker,n.calendarSystem);if(!a)return this.format(e,n);var c=a;!(c>1)||"numeric"!==o.year&&"2-digit"!==o.year||"numeric"!==o.month&&"2-digit"!==o.month||"numeric"!==o.day&&"2-digit"!==o.day||(c=1);var s=this.format(e,n),u=this.format(t,n);if(s===u)return s;var l=function(e,t){var n={};for(var r in e)(!(r in Qn)||Qn[r]<=t)&&(n[r]=e[r]);return n}(o,c),d=nr(l,i,n),f=d(e),p=d(t),h=function(e,t,n,r){var o=0;for(;o<e.length;){var i=e.indexOf(t,o);if(-1===i)break;var a=e.substr(0,i);o=i+t.length;for(var c=e.substr(o),s=0;s<n.length;){var u=n.indexOf(r,s);if(-1===u)break;var l=n.substr(0,u);s=u+r.length;var d=n.substr(s);if(a===l&&c===d)return{before:a,after:c}}}return null}(s,f,u,p),m=i.separator||r||n.defaultSeparator||"";return h?h.before+f+m+p+h.after:s+m+u},e.prototype.getLargestUnit=function(){switch(this.severity){case 7:case 6:case 5:return"year";case 4:return"month";case 3:return"week";case 2:return"day";default:return"time"}},e}();function nr(e,t,n){var r=Object.keys(e).length;return 1===r&&"short"===e.timeZoneName?function(e){return Un(e.timeZoneOffset)}:0===r&&t.week?function(e){return function(e,t,n,r,o){var i=[];"long"===o?i.push(n):"short"!==o&&"narrow"!==o||i.push(t);"long"!==o&&"short"!==o||i.push(" ");i.push(r.simpleNumberFormat.format(e)),"rtl"===r.options.direction&&i.reverse();return i.join("")}(n.computeWeekNumber(e.marker),n.weekText,n.weekTextLong,n.locale,t.week)}:function(e,t,n){e=(0,it.pi)({},e),t=(0,it.pi)({},t),function(e,t){e.timeZoneName&&(e.hour||(e.hour="2-digit"),e.minute||(e.minute="2-digit"));"long"===e.timeZoneName&&(e.timeZoneName="short");t.omitZeroMinute&&(e.second||e.millisecond)&&delete t.omitZeroMinute}(e,t),e.timeZone="UTC";var r,o=new Intl.DateTimeFormat(n.locale.codes,e);if(t.omitZeroMinute){var i=(0,it.pi)({},e);delete i.minute,r=new Intl.DateTimeFormat(n.locale.codes,i)}return function(i){var a=i.marker;return function(e,t,n,r,o){e=e.replace(Jn,""),"short"===n.timeZoneName&&(e=function(e,t){var n=!1;e=e.replace(er,(function(){return n=!0,t})),n||(e+=" "+t);return e}(e,"UTC"===o.timeZone||null==t.timeZoneOffset?"UTC":Un(t.timeZoneOffset)));r.omitCommas&&(e=e.replace(Kn,"").trim());r.omitZeroMinute&&(e=e.replace(":00",""));!1===r.meridiem?e=e.replace(Xn,"").trim():"narrow"===r.meridiem?e=e.replace(Xn,(function(e,t){return t.toLocaleLowerCase()})):"short"===r.meridiem?e=e.replace(Xn,(function(e,t){return t.toLocaleLowerCase()+"m"})):"lowercase"===r.meridiem&&(e=e.replace(Xn,(function(e){return e.toLocaleLowerCase()})));return e=(e=e.replace($n," ")).trim()}((r&&!a.getUTCMinutes()?r:o).format(a),i,e,t,n)}}(e,t,n)}function rr(e,t){var n=t.markerToArray(e.marker);return{marker:e.marker,timeZoneOffset:e.timeZoneOffset,array:n,year:n[0],month:n[1],day:n[2],hour:n[3],minute:n[4],second:n[5],millisecond:n[6]}}function or(e,t,n,r){var o=rr(e,n.calendarSystem);return{date:o,start:o,end:t?rr(t,n.calendarSystem):null,timeZone:n.timeZone,localeCodes:n.locale.codes,defaultSeparator:r||n.defaultSeparator}}var ir=function(){function e(e){this.cmdStr=e}return e.prototype.format=function(e,t,n){return t.cmdFormatter(this.cmdStr,or(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return n.cmdFormatter(this.cmdStr,or(e,t,n,r))},e}(),ar=function(){function e(e){this.func=e}return e.prototype.format=function(e,t,n){return this.func(or(e,null,t,n))},e.prototype.formatRange=function(e,t,n,r){return this.func(or(e,t,n,r))},e}();function cr(e){return"object"==typeof e&&e?new tr(e):"string"==typeof e?new ir(e):"function"==typeof e?new ar(e):null}var sr={navLinkDayClick:vr,navLinkWeekClick:vr,duration:Rn,bootstrapFontAwesome:vr,buttonIcons:vr,customButtons:vr,defaultAllDayEventDuration:Rn,defaultTimedEventDuration:Rn,nextDayThreshold:Rn,scrollTime:Rn,scrollTimeReset:Boolean,slotMinTime:Rn,slotMaxTime:Rn,dayPopoverFormat:cr,slotDuration:Rn,snapDuration:Rn,headerToolbar:vr,footerToolbar:vr,defaultRangeSeparator:String,titleRangeSeparator:String,forceEventDuration:Boolean,dayHeaders:Boolean,dayHeaderFormat:cr,dayHeaderClassNames:vr,dayHeaderContent:vr,dayHeaderDidMount:vr,dayHeaderWillUnmount:vr,dayCellClassNames:vr,dayCellContent:vr,dayCellDidMount:vr,dayCellWillUnmount:vr,initialView:String,aspectRatio:Number,weekends:Boolean,weekNumberCalculation:vr,weekNumbers:Boolean,weekNumberClassNames:vr,weekNumberContent:vr,weekNumberDidMount:vr,weekNumberWillUnmount:vr,editable:Boolean,viewClassNames:vr,viewDidMount:vr,viewWillUnmount:vr,nowIndicator:Boolean,nowIndicatorClassNames:vr,nowIndicatorContent:vr,nowIndicatorDidMount:vr,nowIndicatorWillUnmount:vr,showNonCurrentDates:Boolean,lazyFetching:Boolean,startParam:String,endParam:String,timeZoneParam:String,timeZone:String,locales:vr,locale:vr,themeSystem:String,dragRevertDuration:Number,dragScroll:Boolean,allDayMaintainDuration:Boolean,unselectAuto:Boolean,dropAccept:vr,eventOrder:qt,eventOrderStrict:Boolean,handleWindowResize:Boolean,windowResizeDelay:Number,longPressDelay:Number,eventDragMinDistance:Number,expandRows:Boolean,height:vr,contentHeight:vr,direction:String,weekNumberFormat:cr,eventResizableFromStart:Boolean,displayEventTime:Boolean,displayEventEnd:Boolean,weekText:String,weekTextLong:String,progressiveEventRendering:Boolean,businessHours:vr,initialDate:vr,now:vr,eventDataTransform:vr,stickyHeaderDates:vr,stickyFooterScrollbar:vr,viewHeight:vr,defaultAllDay:Boolean,eventSourceFailure:vr,eventSourceSuccess:vr,eventDisplay:String,eventStartEditable:Boolean,eventDurationEditable:Boolean,eventOverlap:vr,eventConstraint:vr,eventAllow:vr,eventBackgroundColor:String,eventBorderColor:String,eventTextColor:String,eventColor:String,eventClassNames:vr,eventContent:vr,eventDidMount:vr,eventWillUnmount:vr,selectConstraint:vr,selectOverlap:vr,selectAllow:vr,droppable:Boolean,unselectCancel:String,slotLabelFormat:vr,slotLaneClassNames:vr,slotLaneContent:vr,slotLaneDidMount:vr,slotLaneWillUnmount:vr,slotLabelClassNames:vr,slotLabelContent:vr,slotLabelDidMount:vr,slotLabelWillUnmount:vr,dayMaxEvents:vr,dayMaxEventRows:vr,dayMinWidth:Number,slotLabelInterval:Rn,allDayText:String,allDayClassNames:vr,allDayContent:vr,allDayDidMount:vr,allDayWillUnmount:vr,slotMinWidth:Number,navLinks:Boolean,eventTimeFormat:cr,rerenderDelay:Number,moreLinkText:vr,moreLinkHint:vr,selectMinDistance:Number,selectable:Boolean,selectLongPressDelay:Number,eventLongPressDelay:Number,selectMirror:Boolean,eventMaxStack:Number,eventMinHeight:Number,eventMinWidth:Number,eventShortHeight:Number,slotEventOverlap:Boolean,plugins:vr,firstDay:Number,dayCount:Number,dateAlignment:String,dateIncrement:Rn,hiddenDays:vr,monthMode:Boolean,fixedWeekCount:Boolean,validRange:vr,visibleRange:vr,titleFormat:vr,eventInteractive:Boolean,noEventsText:String,viewHint:vr,navLinkHint:vr,closeHint:String,timeHint:String,eventHint:String,moreLinkClick:vr,moreLinkClassNames:vr,moreLinkContent:vr,moreLinkDidMount:vr,moreLinkWillUnmount:vr},ur={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},lr={datesSet:vr,eventsSet:vr,eventAdd:vr,eventChange:vr,eventRemove:vr,windowResize:vr,eventClick:vr,eventMouseEnter:vr,eventMouseLeave:vr,select:vr,unselect:vr,loading:vr,_unmount:vr,_beforeprint:vr,_afterprint:vr,_noEventDrop:vr,_noEventResize:vr,_resize:vr,_scrollRequest:vr},dr={buttonText:vr,buttonHints:vr,views:vr,plugins:vr,initialEvents:vr,events:vr,eventSources:vr},fr={headerToolbar:pr,footerToolbar:pr,buttonText:pr,buttonHints:pr,buttonIcons:pr,dateIncrement:pr};function pr(e,t){return"object"==typeof e&&"object"==typeof t&&e&&t?On(e,t):e===t}var hr={type:String,component:vr,buttonText:String,buttonTextKey:String,dateProfileGeneratorClass:vr,usesMinMaxTime:Boolean,classNames:vr,content:vr,didMount:vr,willUnmount:vr};function mr(e){return bn(e,fr)}function gr(e,t){var n={},r={};for(var o in t)o in e&&(n[o]=t[o](e[o]));for(var o in e)o in t||(r[o]=e[o]);return{refined:n,extra:r}}function vr(e){return e}function yr(e,t,n,r){for(var o={defs:{},instances:{}},i=Ir(n),a=0,c=e;a<c.length;a++){var s=Tr(c[a],t,n,r,i);s&&br(s,o)}return o}function br(e,t){return void 0===t&&(t={defs:{},instances:{}}),t.defs[e.def.defId]=e.def,e.instance&&(t.instances[e.instance.instanceId]=e.instance),t}function Ar(e,t){var n=e.instances[t];if(n){var r=e.defs[n.defId],o=xr(e,(function(e){return t=r,n=e,Boolean(t.groupId&&t.groupId===n.groupId);var t,n}));return o.defs[r.defId]=r,o.instances[n.instanceId]=n,o}return{defs:{},instances:{}}}function wr(e,t){return{defs:(0,it.pi)((0,it.pi)({},e.defs),t.defs),instances:(0,it.pi)((0,it.pi)({},e.instances),t.instances)}}function xr(e,t){var n=An(e.defs,t),r=An(e.instances,(function(e){return n[e.defId]}));return{defs:n,instances:r}}function Er(e){return Array.isArray(e)?e:"string"==typeof e?e.split(/\s+/):[]}var Or={display:String,editable:Boolean,startEditable:Boolean,durationEditable:Boolean,constraint:vr,overlap:vr,allow:vr,className:Er,classNames:Er,color:String,backgroundColor:String,borderColor:String,textColor:String},Cr={display:null,startEditable:null,durationEditable:null,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]};function kr(e,t){var n=function(e,t){return Array.isArray(e)?yr(e,null,t,!0):"object"==typeof e&&e?yr([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 Sr(e){return e.reduce(Dr,Cr)}function Dr(e,t){return{display:null!=t.display?t.display:e.display,startEditable:null!=t.startEditable?t.startEditable:e.startEditable,durationEditable:null!=t.durationEditable?t.durationEditable:e.durationEditable,constraints:e.constraints.concat(t.constraints),overlap:"boolean"==typeof t.overlap?t.overlap:e.overlap,allows:e.allows.concat(t.allows),backgroundColor:t.backgroundColor||e.backgroundColor,borderColor:t.borderColor||e.borderColor,textColor:t.textColor||e.textColor,classNames:e.classNames.concat(t.classNames)}}var _r={id:String,groupId:String,title:String,url:String,interactive:Boolean},Pr={start:vr,end:vr,date:vr,allDay:Boolean},jr=(0,it.pi)((0,it.pi)((0,it.pi)({},_r),Pr),{extendedProps:vr});function Tr(e,t,n,r,o){void 0===o&&(o=Ir(n));var i=Rr(e,n,o),a=i.refined,c=i.extra,s=function(e,t){var n=null;e&&(n=e.defaultAllDay);null==n&&(n=t.options.defaultAllDay);return n}(t,n),u=function(e,t,n,r){for(var o=0;o<r.length;o+=1){var i=r[o].parse(e,n);if(i){var a=e.allDay;return null==a&&null==(a=t)&&null==(a=i.allDayGuess)&&(a=!1),{allDay:a,duration:i.duration,typeData:i.typeData,typeId:o}}}return null}(a,s,n.dateEnv,n.pluginHooks.recurringTypes);if(u)return(l=Mr(a,c,t?t.sourceId:"",u.allDay,Boolean(u.duration),n)).recurringDef={typeId:u.typeId,typeData:u.typeData,duration:u.duration},{def:l,instance:null};var l,d=function(e,t,n,r){var o,i,a=e.allDay,c=null,s=!1,u=null,l=null!=e.start?e.start:e.date;if(o=n.dateEnv.createMarkerMeta(l))c=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&&c&&(c=sn(c));i&&(u=i.marker,a&&(u=sn(u)),c&&u<=c&&(u=null));u?s=!0:r||(s=n.options.forceEventDuration||!1,u=n.dateEnv.add(c,a?n.options.defaultAllDayEventDuration:n.options.defaultTimedEventDuration));return{allDay:a,hasEnd:s,range:{start:c,end:u},forcedStartTzo:o?o.forcedTzo:null,forcedEndTzo:i?i.forcedTzo:null}}(a,s,n,r);return d?{def:l=Mr(a,c,t?t.sourceId:"",d.allDay,d.hasEnd,n),instance:vn(l.defId,d.range,d.forcedStartTzo,d.forcedEndTzo)}:null}function Rr(e,t,n){return void 0===n&&(n=Ir(t)),gr(e,n)}function Ir(e){return(0,it.pi)((0,it.pi)((0,it.pi)({},Or),jr),e.pluginHooks.eventRefiners)}function Mr(e,t,n,r,o,i){for(var a={title:e.title||"",groupId:e.groupId||"",publicId:e.id||"",url:e.url||"",recurringDef:null,defId:Wt(),sourceId:n,allDay:r,hasEnd:o,interactive:e.interactive,ui:kr(e,i),extendedProps:(0,it.pi)((0,it.pi)({},e.extendedProps||{}),t)},c=0,s=i.pluginHooks.eventDefMemberAdders;c<s.length;c++){var u=s[c];(0,it.pi)(a,u(e))}return Object.freeze(a.ui.classNames),Object.freeze(a.extendedProps),a}function Br(e){var t=Math.floor(an(e.start,e.end))||1,n=sn(e.start);return{start:n,end:rn(n,t)}}function Nr(e,t){void 0===t&&(t=Rn(0));var n=null,r=null;if(e.end){r=sn(e.end);var o=e.end.valueOf()-r.valueOf();o&&o>=Nn(t)&&(r=rn(r,1))}return e.start&&(n=sn(e.start),r&&r<=n&&(r=rn(n,1))),{start:n,end:r}}function Fr(e,t,n,r){return"year"===r?Rn(n.diffWholeYears(e,t),"year"):"month"===r?Rn(n.diffWholeMonths(e,t),"month"):(i=t,a=sn(o=e),c=sn(i),{years:0,months:0,days:Math.round(an(a,c)),milliseconds:i.valueOf()-c.valueOf()-(o.valueOf()-a.valueOf())});var o,i,a,c}function Zr(e,t){var n,r,o=[],i=t.start;for(e.sort(Lr),n=0;n<e.length;n+=1)(r=e[n]).start>i&&o.push({start:i,end:r.start}),r.end>i&&(i=r.end);return i<t.end&&o.push({start:i,end:t.end}),o}function Lr(e,t){return e.start.valueOf()-t.start.valueOf()}function Hr(e,t){var n=e.start,r=e.end,o=null;return null!==t.start&&(n=null===n?t.start:new Date(Math.max(n.valueOf(),t.start.valueOf()))),null!=t.end&&(r=null===r?t.end:new Date(Math.min(r.valueOf(),t.end.valueOf()))),(null===n||null===r||n<r)&&(o={start:n,end:r}),o}function Ur(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 zr(e,t){return(null===e.end||null===t.start||e.end>t.start)&&(null===e.start||null===t.end||e.start<t.end)}function Wr(e,t){return(null===e.start||null!==t.start&&t.start>=e.start)&&(null===e.end||null!==t.end&&t.end<=e.end)}function Vr(e,t){return(null===e.start||t>=e.start)&&(null===e.end||t<e.end)}function Yr(e,t,n,r){var o={},i={},a={},c=[],s=[],u=Qr(e.defs,t);for(var l in e.defs){"inverse-background"===(p=u[(A=e.defs[l]).defId]).display&&(A.groupId?(o[A.groupId]=[],a[A.groupId]||(a[A.groupId]=A)):i[l]=[])}for(var d in e.instances){var f=e.instances[d],p=u[(A=e.defs[f.defId]).defId],h=f.range,m=!A.allDay&&r?Nr(h,r):h,g=Hr(m,n);g&&("inverse-background"===p.display?A.groupId?o[A.groupId].push(g):i[f.defId].push(g):"none"!==p.display&&("background"===p.display?c:s).push({def:A,ui:p,instance:f,range:g,isStart:m.start&&m.start.valueOf()===g.start.valueOf(),isEnd:m.end&&m.end.valueOf()===g.end.valueOf()}))}for(var v in o)for(var y=0,b=Zr(o[v],n);y<b.length;y++){var A,w=b[y];p=u[(A=a[v]).defId];c.push({def:A,ui:p,instance:null,range:w,isStart:!1,isEnd:!1})}for(var l in i)for(var x=0,E=Zr(i[l],n);x<E.length;x++){w=E[x];c.push({def:e.defs[l],ui:u[l],instance:null,range:w,isStart:!1,isEnd:!1})}return{bg:c,fg:s}}function qr(e,t){e.fcSeg=t}function Gr(e){return e.fcSeg||e.parentNode.fcSeg||null}function Qr(e,t){return wn(e,(function(e){return Xr(e,t)}))}function Xr(e,t){var n=[];return t[""]&&n.push(t[""]),t[e.defId]&&n.push(t[e.defId]),n.push(e.ui),Sr(n)}function Kr(e,t){var n=e.map($r);return n.sort((function(e,n){return Gt(e,n,t)})),n.map((function(e){return e._seg}))}function $r(e){var t=e.eventRange,n=t.def,r=t.instance?t.instance.range:t.range,o=r.start?r.start.valueOf():0,i=r.end?r.end.valueOf():0;return(0,it.pi)((0,it.pi)((0,it.pi)({},n.extendedProps),n),{id:n.publicId,start:o,end:i,duration:i-o,allDay:Number(n.allDay),_seg:e})}function Jr(e,t){for(var n=t.pluginHooks.isDraggableTransformers,r=e.eventRange,o=r.def,i=r.ui,a=i.startEditable,c=0,s=n;c<s.length;c++){a=(0,s[c])(a,o,i,t)}return a}function eo(e,t){return e.isStart&&e.eventRange.ui.durationEditable&&t.options.eventResizableFromStart}function to(e,t){return e.isEnd&&e.eventRange.ui.durationEditable}function no(e,t,n){var r=e.eventRange.range;return{isPast:r.end<(n||t.start),isFuture:r.start>=(n||t.end),isToday:t&&Vr(t,r.start)}}var ro={start:vr,end:vr,allDay:Boolean};function oo(e,t,n){var r=function(e,t){var n=gr(e,ro),r=n.refined,o=n.extra,i=r.start?t.createMarkerMeta(r.start):null,a=r.end?t.createMarkerMeta(r.end):null,c=r.allDay;null==c&&(c=i&&i.isTimeUnspecified&&(!a||a.isTimeUnspecified));return(0,it.pi)({range:{start:i?i.marker:null,end:a?a.marker:null},allDay:c},o)}(e,t),o=r.range;if(!o.start)return null;if(!o.end){if(null==n)return null;o.end=t.add(o.start,n)}return r}function io(e,t,n){return(0,it.pi)((0,it.pi)({},ao(e,t,n)),{timeZone:t.timeZone})}function ao(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 co(e,t,n){var r=Rr({editable:!1},n),o=Mr(r.refined,r.extra,"",e.allDay,!0,n);return{def:o,ui:Xr(o,t),instance:vn(o.defId,e.range),range:e.range,isStart:!0,isEnd:!0}}function so(e,t,n){n.emitter.trigger("select",(0,it.pi)((0,it.pi)({},uo(e,n)),{jsEvent:t?t.origEvent:null,view:n.viewApi||n.calendarApi.view}))}function uo(e,t){for(var n,r,o={},i=0,a=t.pluginHooks.dateSpanTransforms;i<a.length;i++){var c=a[i];(0,it.pi)(o,c(e,t))}return(0,it.pi)(o,(n=e,r=t.dateEnv,(0,it.pi)((0,it.pi)({},ao(n.range,r,n.allDay)),{allDay:n.allDay}))),o}function lo(e,t,n){var r=n.dateEnv,o=n.options,i=t;return e?(i=sn(i),i=r.add(i,o.defaultAllDayEventDuration)):i=r.add(i,o.defaultTimedEventDuration),i}function fo(e,t,n,r){var o=Qr(e.defs,t),i={defs:{},instances:{}};for(var a in e.defs){var c=e.defs[a];i.defs[a]=po(c,o[a],n,r)}for(var s in e.instances){var u=e.instances[s];c=i.defs[u.defId];i.instances[s]=ho(u,c,o[u.defId],n,r)}return i}function po(e,t,n,r){var o=n.standardProps||{};null==o.hasEnd&&t.durationEditable&&(n.startDelta||n.endDelta)&&(o.hasEnd=!0);var i=(0,it.pi)((0,it.pi)((0,it.pi)({},e),o),{ui:(0,it.pi)((0,it.pi)({},e.ui),o.ui)});n.extendedProps&&(i.extendedProps=(0,it.pi)((0,it.pi)({},i.extendedProps),n.extendedProps));for(var a=0,c=r.pluginHooks.eventDefMutationAppliers;a<c.length;a++){(0,c[a])(i,n,r)}return!i.hasEnd&&r.options.forceEventDuration&&(i.hasEnd=!0),i}function ho(e,t,n,r,o){var i=o.dateEnv,a=r.standardProps&&!0===r.standardProps.allDay,c=r.standardProps&&!1===r.standardProps.hasEnd,s=(0,it.pi)({},e);return a&&(s.range=Br(s.range)),r.datesDelta&&n.startEditable&&(s.range={start:i.add(s.range.start,r.datesDelta),end:i.add(s.range.end,r.datesDelta)}),r.startDelta&&n.durationEditable&&(s.range={start:i.add(s.range.start,r.startDelta),end:s.range.end}),r.endDelta&&n.durationEditable&&(s.range={start:s.range.start,end:i.add(s.range.end,r.endDelta)}),c&&(s.range={start:s.range.start,end:lo(t.allDay,s.range.start,o)}),t.allDay&&(s.range={start:sn(s.range.start),end:sn(s.range.end)}),s.range.end<s.range.start&&(s.range.end=lo(t.allDay,s.range.start,o)),s}var mo=function(){function e(e,t,n){this.type=e,this.getCurrentData=t,this.dateEnv=n}return Object.defineProperty(e.prototype,"calendar",{get:function(){return this.getCurrentData().calendarApi},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this.getCurrentData().viewTitle},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"activeEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.activeRange.end)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentStart",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.start)},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"currentEnd",{get:function(){return this.dateEnv.toDate(this.getCurrentData().dateProfile.currentRange.end)},enumerable:!1,configurable:!0}),e.prototype.getOption=function(e){return this.getCurrentData().options[e]},e}(),go={id:String,defaultAllDay:Boolean,url:String,format:String,events:vr,eventDataTransform:vr,success:vr,failure:vr};function vo(e,t,n){var r;if(void 0===n&&(n=yo(t)),"string"==typeof e?r={url:e}:"function"==typeof e||Array.isArray(e)?r={events:e}:"object"==typeof e&&e&&(r=e),r){var o=gr(r,n),i=o.refined,a=o.extra,c=function(e,t){for(var n=t.pluginHooks.eventSourceDefs,r=n.length-1;r>=0;r-=1){var o=n[r].parseMeta(e);if(o)return{sourceDefId:r,meta:o}}return null}(i,t);if(c)return{_raw:e,isFetching:!1,latestFetchId:"",fetchRange:null,defaultAllDay:i.defaultAllDay,eventDataTransform:i.eventDataTransform,success:i.success,failure:i.failure,publicId:i.id||"",sourceId:Wt(),sourceDefId:c.sourceDefId,meta:c.meta,ui:kr(i,t),extendedProps:a}}return null}function yo(e){return(0,it.pi)((0,it.pi)((0,it.pi)({},Or),go),e.pluginHooks.eventSourceRefiners)}function bo(e,t){return"function"==typeof e&&(e=e()),null==e?t.createNowMarker():t.createMarker(e)}var Ao=function(){function e(){}return e.prototype.getCurrentData=function(){return this.currentDataManager.getCurrentData()},e.prototype.dispatch=function(e){return this.currentDataManager.dispatch(e)},Object.defineProperty(e.prototype,"view",{get:function(){return this.getCurrentData().viewApi},enumerable:!1,configurable:!0}),e.prototype.batchRendering=function(e){e()},e.prototype.updateSize=function(){this.trigger("_resize",!0)},e.prototype.setOption=function(e,t){this.dispatch({type:"SET_OPTION",optionName:e,rawOptionValue:t})},e.prototype.getOption=function(e){return this.currentDataManager.currentCalendarOptionsInput[e]},e.prototype.getAvailableLocaleCodes=function(){return Object.keys(this.getCurrentData().availableRawLocales)},e.prototype.on=function(e,t){var n=this.currentDataManager;n.currentCalendarOptionsRefiners[e]?n.emitter.on(e,t):console.warn("Unknown listener name '"+e+"'")},e.prototype.off=function(e,t){this.currentDataManager.emitter.off(e,t)},e.prototype.trigger=function(e){for(var t,n=[],r=1;r<arguments.length;r++)n[r-1]=arguments[r];(t=this.currentDataManager.emitter).trigger.apply(t,(0,it.ev)([e],n))},e.prototype.changeView=function(e,t){var n=this;this.batchRendering((function(){if(n.unselect(),t)if(t.start&&t.end)n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e}),n.dispatch({type:"SET_OPTION",optionName:"visibleRange",rawOptionValue:t});else{var r=n.getCurrentData().dateEnv;n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e,dateMarker:r.createMarker(t)})}else n.dispatch({type:"CHANGE_VIEW_TYPE",viewType:e})}))},e.prototype.zoomTo=function(e,t){var n;t=t||"day",n=this.getCurrentData().viewSpecs[t]||this.getUnitViewSpec(t),this.unselect(),n?this.dispatch({type:"CHANGE_VIEW_TYPE",viewType:n.type,dateMarker:e}):this.dispatch({type:"CHANGE_DATE",dateMarker:e})},e.prototype.getUnitViewSpec=function(e){var t,n,r=this.getCurrentData(),o=r.viewSpecs,i=r.toolbarConfig,a=[].concat(i.header?i.header.viewsWithButtons:[],i.footer?i.footer.viewsWithButtons:[]);for(var c in o)a.push(c);for(t=0;t<a.length;t+=1)if((n=o[a[t]])&&n.singleUnit===e)return n;return null},e.prototype.prev=function(){this.unselect(),this.dispatch({type:"PREV"})},e.prototype.next=function(){this.unselect(),this.dispatch({type:"NEXT"})},e.prototype.prevYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,-1)})},e.prototype.nextYear=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:e.dateEnv.addYears(e.currentDate,1)})},e.prototype.today=function(){var e=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:bo(e.calendarOptions.now,e.dateEnv)})},e.prototype.gotoDate=function(e){var t=this.getCurrentData();this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.createMarker(e)})},e.prototype.incrementDate=function(e){var t=this.getCurrentData(),n=Rn(e);n&&(this.unselect(),this.dispatch({type:"CHANGE_DATE",dateMarker:t.dateEnv.add(t.currentDate,n)}))},e.prototype.getDate=function(){var e=this.getCurrentData();return e.dateEnv.toDate(e.currentDate)},e.prototype.formatDate=function(e,t){var n=this.getCurrentData().dateEnv;return n.format(n.createMarker(e),cr(t))},e.prototype.formatRange=function(e,t,n){var r=this.getCurrentData().dateEnv;return r.formatRange(r.createMarker(e),r.createMarker(t),cr(n),n)},e.prototype.formatIso=function(e,t){var n=this.getCurrentData().dateEnv;return n.formatIso(n.createMarker(e),{omitTime:t})},e.prototype.select=function(e,t){var n;n=null==t?null!=e.start?e:{start:e,end:null}:{start:e,end:t};var r=this.getCurrentData(),o=oo(n,r.dateEnv,Rn({days:1}));o&&(this.dispatch({type:"SELECT_DATES",selection:o}),so(o,null,r))},e.prototype.unselect=function(e){var t=this.getCurrentData();t.dateSelection&&(this.dispatch({type:"UNSELECT_DATES"}),function(e,t){t.emitter.trigger("unselect",{jsEvent:e?e.origEvent:null,view:t.viewApi||t.calendarApi.view})}(e,t))},e.prototype.addEvent=function(e,t){if(e instanceof wo){var n=e._def,r=e._instance;return this.getCurrentData().eventStore.defs[n.defId]||(this.dispatch({type:"ADD_EVENTS",eventStore:br({def:n,instance:r})}),this.triggerEventAdd(e)),e}var o,i=this.getCurrentData();if(t instanceof St)o=t.internalEventSource;else if("boolean"==typeof t)t&&(o=En(i.eventSources)[0]);else if(null!=t){var a=this.getEventSourceById(t);if(!a)return console.warn('Could not find an event source with ID "'+t+'"'),null;o=a.internalEventSource}var c=Tr(e,o,i,!1);if(c){var s=new wo(i,c.def,c.def.recurringDef?null:c.instance);return this.dispatch({type:"ADD_EVENTS",eventStore:br(c)}),this.triggerEventAdd(s),s}return null},e.prototype.triggerEventAdd=function(e){var t=this;this.getCurrentData().emitter.trigger("eventAdd",{event:e,relatedEvents:[],revert:function(){t.dispatch({type:"REMOVE_EVENTS",eventStore:xo(e)})}})},e.prototype.getEventById=function(e){var t=this.getCurrentData(),n=t.eventStore,r=n.defs,o=n.instances;for(var i in e=String(e),r){var a=r[i];if(a.publicId===e){if(a.recurringDef)return new wo(t,a,null);for(var c in o){var s=o[c];if(s.defId===a.defId)return new wo(t,a,s)}}}return null},e.prototype.getEvents=function(){var e=this.getCurrentData();return Eo(e.eventStore,e)},e.prototype.removeAllEvents=function(){this.dispatch({type:"REMOVE_ALL_EVENTS"})},e.prototype.getEventSources=function(){var e=this.getCurrentData(),t=e.eventSources,n=[];for(var r in t)n.push(new St(e,t[r]));return n},e.prototype.getEventSourceById=function(e){var t=this.getCurrentData(),n=t.eventSources;for(var r in e=String(e),n)if(n[r].publicId===e)return new St(t,n[r]);return null},e.prototype.addEventSource=function(e){var t=this.getCurrentData();if(e instanceof St)return t.eventSources[e.internalEventSource.sourceId]||this.dispatch({type:"ADD_EVENT_SOURCES",sources:[e.internalEventSource]}),e;var n=vo(e,t);return n?(this.dispatch({type:"ADD_EVENT_SOURCES",sources:[n]}),new St(t,n)):null},e.prototype.removeAllEventSources=function(){this.dispatch({type:"REMOVE_ALL_EVENT_SOURCES"})},e.prototype.refetchEvents=function(){this.dispatch({type:"FETCH_EVENT_SOURCES",isRefetch:!0})},e.prototype.scrollToTime=function(e){var t=Rn(e);t&&this.trigger("_scrollRequest",{time:t})},e}(),wo=function(){function e(e,t,n){this._context=e,this._def=t,this._instance=n||null}return e.prototype.setProp=function(e,t){var n,r;if(e in Pr)console.warn("Could not set date-related prop 'name'. Use one of the date-related methods instead.");else if("id"===e)t=_r[e](t),this.mutate({standardProps:{publicId:t}});else if(e in _r)t=_r[e](t),this.mutate({standardProps:(n={},n[e]=t,n)});else if(e in Or){var o=Or[e](t);"color"===e?o={backgroundColor:t,borderColor:t}:"editable"===e?o={startEditable:t,durationEditable:t}:((r={})[e]=t,o=r),this.mutate({standardProps:{ui:o}})}else console.warn("Could not set prop '"+e+"'. Use setExtendedProp instead.")},e.prototype.setExtendedProp=function(e,t){var n;this.mutate({extendedProps:(n={},n[e]=t,n)})},e.prototype.setStart=function(e,t){void 0===t&&(t={});var n=this._context.dateEnv,r=n.createMarker(e);if(r&&this._instance){var o=Fr(this._instance.range.start,r,n,t.granularity);t.maintainDuration?this.mutate({datesDelta:o}):this.mutate({startDelta:o})}},e.prototype.setEnd=function(e,t){void 0===t&&(t={});var n,r=this._context.dateEnv;if((null==e||(n=r.createMarker(e)))&&this._instance)if(n){var o=Fr(this._instance.range.end,n,r,t.granularity);this.mutate({endDelta:o})}else this.mutate({standardProps:{hasEnd:!1}})},e.prototype.setDates=function(e,t,n){void 0===n&&(n={});var r,o,i,a=this._context.dateEnv,c={allDay:n.allDay},s=a.createMarker(e);if(s&&((null==t||(r=a.createMarker(t)))&&this._instance)){var u=this._instance.range;!0===n.allDay&&(u=Br(u));var l=Fr(u.start,s,a,n.granularity);if(r){var d=Fr(u.end,r,a,n.granularity);i=d,(o=l).years===i.years&&o.months===i.months&&o.days===i.days&&o.milliseconds===i.milliseconds?this.mutate({datesDelta:l,standardProps:c}):this.mutate({startDelta:l,endDelta:d,standardProps:c})}else c.hasEnd=!1,this.mutate({datesDelta:l,standardProps:c})}},e.prototype.moveStart=function(e){var t=Rn(e);t&&this.mutate({startDelta:t})},e.prototype.moveEnd=function(e){var t=Rn(e);t&&this.mutate({endDelta:t})},e.prototype.moveDates=function(e){var t=Rn(e);t&&this.mutate({datesDelta:t})},e.prototype.setAllDay=function(e,t){void 0===t&&(t={});var n={allDay:e},r=t.maintainDuration;null==r&&(r=this._context.options.allDayMaintainDuration),this._def.allDay!==e&&(n.hasEnd=r),this.mutate({standardProps:n})},e.prototype.formatRange=function(e){var t=this._context.dateEnv,n=this._instance,r=cr(e);return this._def.hasEnd?t.formatRange(n.range.start,n.range.end,r,{forcedStartTzo:n.forcedStartTzo,forcedEndTzo:n.forcedEndTzo}):t.format(n.range.start,r,{forcedTzo:n.forcedStartTzo})},e.prototype.mutate=function(t){var n=this._instance;if(n){var r=this._def,o=this._context,i=o.getCurrentData().eventStore,a=Ar(i,n.instanceId);a=fo(a,{"":{display:"",startEditable:!0,durationEditable:!0,constraints:[],overlap:null,allows:[],backgroundColor:"",borderColor:"",textColor:"",classNames:[]}},t,o);var c=new e(o,r,n);this._def=a.defs[r.defId],this._instance=a.instances[n.instanceId],o.dispatch({type:"MERGE_EVENTS",eventStore:a}),o.emitter.trigger("eventChange",{oldEvent:c,event:this,relatedEvents:Eo(a,o,n),revert:function(){o.dispatch({type:"RESET_EVENTS",eventStore:i})}})}},e.prototype.remove=function(){var e=this._context,t=xo(this);e.dispatch({type:"REMOVE_EVENTS",eventStore:t}),e.emitter.trigger("eventRemove",{event:this,relatedEvents:[],revert:function(){e.dispatch({type:"MERGE_EVENTS",eventStore:t})}})},Object.defineProperty(e.prototype,"source",{get:function(){var e=this._def.sourceId;return e?new St(this._context,this._context.getCurrentData().eventSources[e]):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"start",{get:function(){return this._instance?this._context.dateEnv.toDate(this._instance.range.start):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"end",{get:function(){return this._instance&&this._def.hasEnd?this._context.dateEnv.toDate(this._instance.range.end):null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startStr",{get:function(){var e=this._instance;return e?this._context.dateEnv.formatIso(e.range.start,{omitTime:this._def.allDay,forcedTzo:e.forcedStartTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"endStr",{get:function(){var e=this._instance;return e&&this._def.hasEnd?this._context.dateEnv.formatIso(e.range.end,{omitTime:this._def.allDay,forcedTzo:e.forcedEndTzo}):""},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"id",{get:function(){return this._def.publicId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"groupId",{get:function(){return this._def.groupId},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allDay",{get:function(){return this._def.allDay},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"title",{get:function(){return this._def.title},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"url",{get:function(){return this._def.url},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"display",{get:function(){return this._def.ui.display||"auto"},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"startEditable",{get:function(){return this._def.ui.startEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"durationEditable",{get:function(){return this._def.ui.durationEditable},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"constraint",{get:function(){return this._def.ui.constraints[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"overlap",{get:function(){return this._def.ui.overlap},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"allow",{get:function(){return this._def.ui.allows[0]||null},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"backgroundColor",{get:function(){return this._def.ui.backgroundColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"borderColor",{get:function(){return this._def.ui.borderColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"textColor",{get:function(){return this._def.ui.textColor},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"classNames",{get:function(){return this._def.ui.classNames},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"extendedProps",{get:function(){return this._def.extendedProps},enumerable:!1,configurable:!0}),e.prototype.toPlainObject=function(e){void 0===e&&(e={});var t=this._def,n=t.ui,r=this.startStr,o=this.endStr,i={};return t.title&&(i.title=t.title),r&&(i.start=r),o&&(i.end=o),t.publicId&&(i.id=t.publicId),t.groupId&&(i.groupId=t.groupId),t.url&&(i.url=t.url),n.display&&"auto"!==n.display&&(i.display=n.display),e.collapseColor&&n.backgroundColor&&n.backgroundColor===n.borderColor?i.color=n.backgroundColor:(n.backgroundColor&&(i.backgroundColor=n.backgroundColor),n.borderColor&&(i.borderColor=n.borderColor)),n.textColor&&(i.textColor=n.textColor),n.classNames.length&&(i.classNames=n.classNames),Object.keys(t.extendedProps).length&&(e.collapseExtendedProps?(0,it.pi)(i,t.extendedProps):i.extendedProps=t.extendedProps),i},e.prototype.toJSON=function(){return this.toPlainObject()},e}();function xo(e){var t,n,r=e._def,o=e._instance;return{defs:(t={},t[r.defId]=r,t),instances:o?(n={},n[o.instanceId]=o,n):{}}}function Eo(e,t,n){var r=e.defs,o=e.instances,i=[],a=n?n.instanceId:"";for(var c in o){var s=o[c],u=r[s.defId];s.instanceId!==a&&i.push(new wo(t,u,s))}return i}var Oo={};!function(e,t){Oo[e]=t}("gregory",function(){function e(){}return e.prototype.getMarkerYear=function(e){return e.getUTCFullYear()},e.prototype.getMarkerMonth=function(e){return e.getUTCMonth()},e.prototype.getMarkerDay=function(e){return e.getUTCDate()},e.prototype.arrayToMarker=function(e){return hn(e)},e.prototype.markerToArray=function(e){return pn(e)},e}());var Co=/^\s*(\d{4})(-?(\d{2})(-?(\d{2})([T ](\d{2}):?(\d{2})(:?(\d{2})(\.(\d+))?)?(Z|(([-+])(\d{2})(:?(\d{2}))?))?)?)?)?$/;var ko=function(){function e(e){var t=this.timeZone=e.timeZone,n="local"!==t&&"UTC"!==t;e.namedTimeZoneImpl&&n&&(this.namedTimeZoneImpl=new e.namedTimeZoneImpl(t)),this.canComputeOffset=Boolean(!n||this.namedTimeZoneImpl),this.calendarSystem=function(e){return new Oo[e]}(e.calendarSystem),this.locale=e.locale,this.weekDow=e.locale.week.dow,this.weekDoy=e.locale.week.doy,"ISO"===e.weekNumberCalculation&&(this.weekDow=1,this.weekDoy=4),"number"==typeof e.firstDay&&(this.weekDow=e.firstDay),"function"==typeof e.weekNumberCalculation&&(this.weekNumberFunc=e.weekNumberCalculation),this.weekText=null!=e.weekText?e.weekText:e.locale.options.weekText,this.weekTextLong=(null!=e.weekTextLong?e.weekTextLong:e.locale.options.weekTextLong)||this.weekText,this.cmdFormatter=e.cmdFormatter,this.defaultSeparator=e.defaultSeparator}return e.prototype.createMarker=function(e){var t=this.createMarkerMeta(e);return null===t?null:t.marker},e.prototype.createNowMarker=function(){return this.canComputeOffset?this.timestampToMarker((new Date).valueOf()):hn(dn(new Date))},e.prototype.createMarkerMeta=function(e){if("string"==typeof e)return this.parse(e);var t=null;return"number"==typeof e?t=this.timestampToMarker(e):e instanceof Date?(e=e.valueOf(),isNaN(e)||(t=this.timestampToMarker(e))):Array.isArray(e)&&(t=hn(e)),null!==t&&mn(t)?{marker:t,isTimeUnspecified:!1,forcedTzo:null}:null},e.prototype.parse=function(e){var t=function(e){var t=Co.exec(e);if(t){var n=new Date(Date.UTC(Number(t[1]),t[3]?Number(t[3])-1:0,Number(t[5]||1),Number(t[7]||0),Number(t[8]||0),Number(t[10]||0),t[12]?1e3*Number("0."+t[12]):0));if(mn(n)){var r=null;return t[13]&&(r=("-"===t[15]?-1:1)*(60*Number(t[16]||0)+Number(t[18]||0))),{marker:n,isTimeUnspecified:!t[6],timeZoneOffset:r}}}return null}(e);if(null===t)return null;var n=t.marker,r=null;return null!==t.timeZoneOffset&&(this.canComputeOffset?n=this.timestampToMarker(n.valueOf()-60*t.timeZoneOffset*1e3):r=t.timeZoneOffset),{marker:n,isTimeUnspecified:t.isTimeUnspecified,forcedTzo:r}},e.prototype.getYear=function(e){return this.calendarSystem.getMarkerYear(e)},e.prototype.getMonth=function(e){return this.calendarSystem.getMarkerMonth(e)},e.prototype.add=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t.years,n[1]+=t.months,n[2]+=t.days,n[6]+=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.subtract=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]-=t.years,n[1]-=t.months,n[2]-=t.days,n[6]-=t.milliseconds,this.calendarSystem.arrayToMarker(n)},e.prototype.addYears=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[0]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.addMonths=function(e,t){var n=this.calendarSystem.markerToArray(e);return n[1]+=t,this.calendarSystem.arrayToMarker(n)},e.prototype.diffWholeYears=function(e,t){var n=this.calendarSystem;return gn(e)===gn(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)&&n.getMarkerMonth(e)===n.getMarkerMonth(t)?n.getMarkerYear(t)-n.getMarkerYear(e):null},e.prototype.diffWholeMonths=function(e,t){var n=this.calendarSystem;return gn(e)===gn(t)&&n.getMarkerDay(e)===n.getMarkerDay(t)?n.getMarkerMonth(t)-n.getMarkerMonth(e)+12*(n.getMarkerYear(t)-n.getMarkerYear(e)):null},e.prototype.greatestWholeUnit=function(e,t){var n=this.diffWholeYears(e,t);return null!==n?{unit:"year",value:n}:null!==(n=this.diffWholeMonths(e,t))?{unit:"month",value:n}:(n=function(e,t){var n=cn(e,t);return null!==n&&n%7==0?n/7:null}(e,t),null!==n?{unit:"week",value:n}:null!==(n=cn(e,t))?{unit:"day",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/36e5}(e,t),en(n)?{unit:"hour",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/6e4}(e,t),en(n)?{unit:"minute",value:n}:(n=function(e,t){return(t.valueOf()-e.valueOf())/1e3}(e,t),en(n)?{unit:"second",value:n}:{unit:"millisecond",value:t.valueOf()-e.valueOf()}))))},e.prototype.countDurationsBetween=function(e,t,n){var r;return n.years&&null!==(r=this.diffWholeYears(e,t))?r/(Bn(n)/365):n.months&&null!==(r=this.diffWholeMonths(e,t))?r/function(e){return Bn(e)/30}(n):n.days&&null!==(r=cn(e,t))?r/Bn(n):(t.valueOf()-e.valueOf())/Nn(n)},e.prototype.startOf=function(e,t){return"year"===t?this.startOfYear(e):"month"===t?this.startOfMonth(e):"week"===t?this.startOfWeek(e):"day"===t?sn(e):"hour"===t?function(e){return hn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours()])}(e):"minute"===t?function(e){return hn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes()])}(e):"second"===t?function(e){return hn([e.getUTCFullYear(),e.getUTCMonth(),e.getUTCDate(),e.getUTCHours(),e.getUTCMinutes(),e.getUTCSeconds()])}(e):null},e.prototype.startOfYear=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e)])},e.prototype.startOfMonth=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e)])},e.prototype.startOfWeek=function(e){return this.calendarSystem.arrayToMarker([this.calendarSystem.getMarkerYear(e),this.calendarSystem.getMarkerMonth(e),e.getUTCDate()-(e.getUTCDay()-this.weekDow+7)%7])},e.prototype.computeWeekNumber=function(e){return this.weekNumberFunc?this.weekNumberFunc(this.toDate(e)):function(e,t,n){var r=e.getUTCFullYear(),o=un(e,r,t,n);if(o<1)return un(e,r-1,t,n);var i=un(e,r+1,t,n);return i>=1?Math.min(o,i):o}(e,this.weekDow,this.weekDoy)},e.prototype.format=function(e,t,n){return void 0===n&&(n={}),t.format({marker:e,timeZoneOffset:null!=n.forcedTzo?n.forcedTzo:this.offsetForMarker(e)},this)},e.prototype.formatRange=function(e,t,n,r){return void 0===r&&(r={}),r.isEndExclusive&&(t=on(t,-1)),n.formatRange({marker:e,timeZoneOffset:null!=r.forcedStartTzo?r.forcedStartTzo:this.offsetForMarker(e)},{marker:t,timeZoneOffset:null!=r.forcedEndTzo?r.forcedEndTzo:this.offsetForMarker(t)},this,r.defaultSeparator)},e.prototype.formatIso=function(e,t){void 0===t&&(t={});var n=null;return t.omitTimeZoneOffset||(n=null!=t.forcedTzo?t.forcedTzo:this.offsetForMarker(e)),Ln(e,n,t.omitTime)},e.prototype.timestampToMarker=function(e){return"local"===this.timeZone?hn(dn(new Date(e))):"UTC"!==this.timeZone&&this.namedTimeZoneImpl?hn(this.namedTimeZoneImpl.timestampToArray(e)):new Date(e)},e.prototype.offsetForMarker=function(e){return"local"===this.timeZone?-fn(pn(e)).getTimezoneOffset():"UTC"===this.timeZone?0:this.namedTimeZoneImpl?this.namedTimeZoneImpl.offsetForArray(pn(e)):null},e.prototype.toDate=function(e,t){return"local"===this.timeZone?fn(pn(e)):"UTC"===this.timeZone?new Date(e.valueOf()):this.namedTimeZoneImpl?new Date(e.valueOf()-1e3*this.namedTimeZoneImpl.offsetForArray(pn(e))*60):new Date(e.valueOf()-(t||0))},e}(),So=[],Do={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"},_o=(0,it.pi)((0,it.pi)({},Do),{buttonHints:{prev:"Previous $0",next:"Next $0",today:function(e,t){return"day"===t?"Today":"This "+e}},viewHint:"$0 view",navLinkHint:"Go to $0",moreLinkHint:function(e){return"Show "+e+" more event"+(1===e?"":"s")}});function Po(e){for(var t=e.length>0?e[0].code:"en",n=So.concat(e),r={en:_o},o=0,i=n;o<i.length;o++){var a=i[o];r[a.code]=a}return{map:r,defaultCode:t}}function jo(e,t){return"object"!=typeof e||Array.isArray(e)?function(e,t){var n=[].concat(e||[]),r=function(e,t){for(var n=0;n<e.length;n+=1)for(var r=e[n].toLocaleLowerCase().split("-"),o=r.length;o>0;o-=1){var i=r.slice(0,o).join("-");if(t[i])return t[i]}return null}(n,t)||_o;return To(e,n,r)}(e,t):To(e.code,[e.code],e)}function To(e,t,n){var r=bn([Do,n],["buttonText"]);delete r.code;var o=r.week;return delete r.week,{codeArg:e,codes:t,week:o,simpleNumberFormat:new Intl.NumberFormat(e),options:r}}var Ro,Io={startTime:"09:00",endTime:"17:00",daysOfWeek:[1,2,3,4,5],display:"inverse-background",classNames:"fc-non-business",groupId:"_businessHours"};function Mo(e,t){return yr(function(e){var t;t=!0===e?[{}]:Array.isArray(e)?e.filter((function(e){return e.daysOfWeek})):"object"==typeof e&&e?[e]:[];return t=t.map((function(e){return(0,it.pi)((0,it.pi)({},Io),e)}))}(e),null,t)}function Bo(e,t){return e.left>=t.left&&e.left<t.right&&e.top>=t.top&&e.top<t.bottom}function No(e,t){var 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 Fo(e,t,n){return{left:e.left+t,right:e.right+t,top:e.top+n,bottom:e.bottom+n}}function Zo(){return null==Ro&&(Ro=function(){if("undefined"==typeof document)return!0;var e=document.createElement("div");e.style.position="absolute",e.style.top="0px",e.style.left="0px",e.innerHTML="<table><tr><td><div></div></td></tr></table>",e.querySelector("table").style.height="100px",e.querySelector("div").style.height="100%",document.body.appendChild(e);var t=e.querySelector("div").offsetHeight>0;return document.body.removeChild(e),t}()),Ro}var Lo={defs:{},instances:{}},Ho=function(){function e(){this.getKeysForEventDefs=Wn(this._getKeysForEventDefs),this.splitDateSelection=Wn(this._splitDateSpan),this.splitEventStore=Wn(this._splitEventStore),this.splitIndividualUi=Wn(this._splitIndividualUi),this.splitEventDrag=Wn(this._splitInteraction),this.splitEventResize=Wn(this._splitInteraction),this.eventUiBuilders={}}return e.prototype.splitProps=function(e){var t=this,n=this.getKeyInfo(e),r=this.getKeysForEventDefs(e.eventStore),o=this.splitDateSelection(e.dateSelection),i=this.splitIndividualUi(e.eventUiBases,r),a=this.splitEventStore(e.eventStore,r),c=this.splitEventDrag(e.eventDrag),s=this.splitEventResize(e.eventResize),u={};for(var l in this.eventUiBuilders=wn(n,(function(e,n){return t.eventUiBuilders[n]||Wn(Uo)})),n){var d=n[l],f=a[l]||Lo,p=this.eventUiBuilders[l];u[l]={businessHours:d.businessHours||e.businessHours,dateSelection:o[l]||null,eventStore:f,eventUiBases:p(e.eventUiBases[""],d.ui,i[l]),eventSelection:f.instances[e.eventSelection]?e.eventSelection:"",eventDrag:c[l]||null,eventResize:s[l]||null}}return u},e.prototype._splitDateSpan=function(e){var t={};if(e)for(var n=0,r=this.getKeysForDateSpan(e);n<r.length;n++){t[r[n]]=e}return t},e.prototype._getKeysForEventDefs=function(e){var t=this;return wn(e.defs,(function(e){return t.getKeysForEventDef(e)}))},e.prototype._splitEventStore=function(e,t){var n=e.defs,r=e.instances,o={};for(var i in n)for(var a=0,c=t[i];a<c.length;a++){o[f=c[a]]||(o[f]={defs:{},instances:{}}),o[f].defs[i]=n[i]}for(var s in r)for(var u=r[s],l=0,d=t[u.defId];l<d.length;l++){var f;o[f=d[l]]&&(o[f].instances[s]=u)}return o},e.prototype._splitIndividualUi=function(e,t){var n={};for(var r in e)if(r)for(var o=0,i=t[r];o<i.length;o++){var a=i[o];n[a]||(n[a]={}),n[a][r]=e[r]}return n},e.prototype._splitInteraction=function(e){var t={};if(e){var n=this._splitEventStore(e.affectedEvents,this._getKeysForEventDefs(e.affectedEvents)),r=this._getKeysForEventDefs(e.mutatedEvents),o=this._splitEventStore(e.mutatedEvents,r),i=function(r){t[r]||(t[r]={affectedEvents:n[r]||Lo,mutatedEvents:o[r]||Lo,isEvent:e.isEvent})};for(var a in n)i(a);for(var a in o)i(a)}return t},e}();function Uo(e,t,n){var r=[];e&&r.push(e),t&&r.push(t);var o={"":Sr(r)};return n&&(0,it.pi)(o,n),o}function zo(e,t,n,r){return{dow:e.getUTCDay(),isDisabled:Boolean(r&&!Vr(r.activeRange,e)),isOther:Boolean(r&&!Vr(r.currentRange,e)),isToday:Boolean(t&&Vr(t,e)),isPast:Boolean(n?e<n:!!t&&e<t.start),isFuture:Boolean(n?e>n:!!t&&e>=t.end)}}function Wo(e,t){var n=["fc-day","fc-day-"+nn[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 Vo(e,t){var n=["fc-slot","fc-slot-"+nn[e.dow]];return e.isDisabled?n.push("fc-slot-disabled"):(e.isToday&&(n.push("fc-slot-today"),n.push(t.getClass("today"))),e.isPast&&n.push("fc-slot-past"),e.isFuture&&n.push("fc-slot-future")),n}var Yo=cr({year:"numeric",month:"long",day:"numeric"}),qo=cr({week:"long"});function Go(e,t,n,r){void 0===n&&(n="day"),void 0===r&&(r=!0);var o,i=e.dateEnv,a=e.options,c=e.calendarApi,s=i.format(t,"week"===n?qo:Yo);if(a.navLinks){var u=i.toDate(t),l=function(e){var r="day"===n?a.navLinkDayClick:"week"===n?a.navLinkWeekClick:null;"function"==typeof r?r.call(c,i.toDate(t),e):("string"==typeof r&&(n=r),c.zoomTo(t,n))};return(0,it.pi)({title:$t(a.navLinkHint,[s,u],s),"data-navlink":""},r?(o=l,(0,it.pi)({onClick:o},Ut(o))):{onClick:l})}return{"aria-label":s}}var Qo,Xo=null;function Ko(){return null===Xo&&(Xo=function(){var e=document.createElement("div");Rt(e,{position:"absolute",top:-1e3,left:0,border:0,padding:0,overflow:"scroll",direction:"rtl"}),e.innerHTML="<div></div>",document.body.appendChild(e);var t=e.firstChild.getBoundingClientRect().left>e.getBoundingClientRect().left;return Dt(e),t}()),Xo}function $o(){return Qo||(Qo=function(){var e=document.createElement("div");e.style.overflow="scroll",e.style.position="absolute",e.style.top="-9999px",e.style.left="-9999px",document.body.appendChild(e);var t=Jo(e);return document.body.removeChild(e),t}()),Qo}function Jo(e){return{x:e.offsetHeight-e.clientHeight,y:e.offsetWidth-e.clientWidth}}function ei(e,t){void 0===t&&(t=!1);var n=window.getComputedStyle(e),r=parseInt(n.borderLeftWidth,10)||0,o=parseInt(n.borderRightWidth,10)||0,i=parseInt(n.borderTopWidth,10)||0,a=parseInt(n.borderBottomWidth,10)||0,c=Jo(e),s=c.y-r-o,u={borderLeft:r,borderRight:o,borderTop:i,borderBottom:a,scrollbarBottom:c.x-i-a,scrollbarLeft:0,scrollbarRight:0};return Ko()&&"rtl"===n.direction?u.scrollbarLeft=s:u.scrollbarRight=s,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 ti(e,t,n){void 0===t&&(t=!1);var r=n?e.getBoundingClientRect():ni(e),o=ei(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 ni(e){var t=e.getBoundingClientRect();return{left:t.left+window.pageXOffset,top:t.top+window.pageYOffset,right:t.right+window.pageXOffset,bottom:t.bottom+window.pageYOffset}}function ri(e){for(var t=[];e instanceof HTMLElement;){var n=window.getComputedStyle(e);if("fixed"===n.position)break;/(auto|scroll)/.test(n.overflow+n.overflowY+n.overflowX)&&t.push(e),e=e.parentNode}return t}function oi(e,t,n){var r=!1,o=function(){r||(r=!0,t.apply(this,arguments))},i=function(){r||(r=!0,n&&n.apply(this,arguments))},a=e(o,i);a&&"function"==typeof a.then&&a.then(o,i)}var ii=function(){function e(){this.handlers={},this.thisContext=null}return e.prototype.setThisContext=function(e){this.thisContext=e},e.prototype.setOptions=function(e){this.options=e},e.prototype.on=function(e,t){!function(e,t,n){(e[t]||(e[t]=[])).push(n)}(this.handlers,e,t)},e.prototype.off=function(e,t){!function(e,t,n){n?e[t]&&(e[t]=e[t].filter((function(e){return e!==n}))):delete e[t]}(this.handlers,e,t)},e.prototype.trigger=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];for(var r=this.handlers[e]||[],o=this.options&&this.options[e],i=[].concat(o||[],r),a=0,c=i;a<c.length;a++){var s=c[a];s.apply(this.thisContext,t)}},e.prototype.hasHandlers=function(e){return Boolean(this.handlers[e]&&this.handlers[e].length||this.options&&this.options[e])},e}();var ai=function(){function e(e,t,n,r){this.els=t;var o=this.originClientRect=e.getBoundingClientRect();n&&this.buildElHorizontals(o.left),r&&this.buildElVerticals(o.top)}return e.prototype.buildElHorizontals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r].getBoundingClientRect();t.push(i.left-e),n.push(i.right-e)}this.lefts=t,this.rights=n},e.prototype.buildElVerticals=function(e){for(var t=[],n=[],r=0,o=this.els;r<o.length;r++){var i=o[r].getBoundingClientRect();t.push(i.top-e),n.push(i.bottom-e)}this.tops=t,this.bottoms=n},e.prototype.leftToIndex=function(e){var t,n=this.lefts,r=this.rights,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.topToIndex=function(e){var t,n=this.tops,r=this.bottoms,o=n.length;for(t=0;t<o;t+=1)if(e>=n[t]&&e<r[t])return t},e.prototype.getWidth=function(e){return this.rights[e]-this.lefts[e]},e.prototype.getHeight=function(e){return this.bottoms[e]-this.tops[e]},e}(),ci=function(){function e(){}return e.prototype.getMaxScrollTop=function(){return this.getScrollHeight()-this.getClientHeight()},e.prototype.getMaxScrollLeft=function(){return this.getScrollWidth()-this.getClientWidth()},e.prototype.canScrollVertically=function(){return this.getMaxScrollTop()>0},e.prototype.canScrollHorizontally=function(){return this.getMaxScrollLeft()>0},e.prototype.canScrollUp=function(){return this.getScrollTop()>0},e.prototype.canScrollDown=function(){return this.getScrollTop()<this.getMaxScrollTop()},e.prototype.canScrollLeft=function(){return this.getScrollLeft()>0},e.prototype.canScrollRight=function(){return this.getScrollLeft()<this.getMaxScrollLeft()},e}(),si=function(e){function t(t){var n=e.call(this)||this;return n.el=t,n}return(0,it.ZT)(t,e),t.prototype.getScrollTop=function(){return this.el.scrollTop},t.prototype.getScrollLeft=function(){return this.el.scrollLeft},t.prototype.setScrollTop=function(e){this.el.scrollTop=e},t.prototype.setScrollLeft=function(e){this.el.scrollLeft=e},t.prototype.getScrollWidth=function(){return this.el.scrollWidth},t.prototype.getScrollHeight=function(){return this.el.scrollHeight},t.prototype.getClientHeight=function(){return this.el.clientHeight},t.prototype.getClientWidth=function(){return this.el.clientWidth},t}(ci),ui=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.getScrollTop=function(){return window.pageYOffset},t.prototype.getScrollLeft=function(){return window.pageXOffset},t.prototype.setScrollTop=function(e){window.scroll(window.pageXOffset,e)},t.prototype.setScrollLeft=function(e){window.scroll(e,window.pageYOffset)},t.prototype.getScrollWidth=function(){return document.documentElement.scrollWidth},t.prototype.getScrollHeight=function(){return document.documentElement.scrollHeight},t.prototype.getClientHeight=function(){return document.documentElement.clientHeight},t.prototype.getClientWidth=function(){return document.documentElement.clientWidth},t}(ci),li=function(){function e(e){this.iconOverrideOption&&this.setIconOverride(e[this.iconOverrideOption])}return e.prototype.setIconOverride=function(e){var t,n;if("object"==typeof e&&e){for(n in t=(0,it.pi)({},this.iconClasses),e)t[n]=this.applyIconOverridePrefix(e[n]);this.iconClasses=t}else!1===e&&(this.iconClasses={})},e.prototype.applyIconOverridePrefix=function(e){var t=this.iconOverridePrefix;return t&&0!==e.indexOf(t)&&(e=t+e),e},e.prototype.getClass=function(e){return this.classes[e]||""},e.prototype.getIconClass=function(e,t){var n;return(n=t&&this.rtlIconClasses&&this.rtlIconClasses[e]||this.iconClasses[e])?this.baseIconClass+" "+n:""},e.prototype.getCustomButtonIconClass=function(e){var t;return this.iconOverrideCustomButtonOption&&(t=e[this.iconOverrideCustomButtonOption])?this.baseIconClass+" "+this.applyIconOverridePrefix(t):""},e}();li.prototype.classes={},li.prototype.iconClasses={},li.prototype.baseIconClass="",li.prototype.iconOverridePrefix="";var di=function(){function e(e,t,n,r){var o=this;this.execFunc=e,this.emitter=t,this.scrollTime=n,this.scrollTimeReset=r,this.handleScrollRequest=function(e){o.queuedRequest=(0,it.pi)({},o.queuedRequest||{},e),o.drain()},t.on("_scrollRequest",this.handleScrollRequest),this.fireInitialScroll()}return e.prototype.detach=function(){this.emitter.off("_scrollRequest",this.handleScrollRequest)},e.prototype.update=function(e){e&&this.scrollTimeReset?this.fireInitialScroll():this.drain()},e.prototype.fireInitialScroll=function(){this.handleScrollRequest({time:this.scrollTime})},e.prototype.drain=function(){this.queuedRequest&&this.execFunc(this.queuedRequest)&&(this.queuedRequest=null)},e}(),fi=Ot({});function pi(e,t,n,r,o,i,a,c,s,u,l,d,f){return{dateEnv:o,options:n,pluginHooks:a,emitter:u,dispatch:c,getCurrentData:s,calendarApi:l,viewSpec:e,viewApi:t,dateProfileGenerator:r,theme:i,isRtl:"rtl"===n.direction,addResizeHandler:function(e){u.on("_resize",e)},removeResizeHandler:function(e){u.off("_resize",e)},createScrollResponder:function(e){return new di(e,u,Rn(n.scrollTime),n.scrollTimeReset)},registerInteractiveComponent:d,unregisterInteractiveComponent:f}}var hi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.shouldComponentUpdate=function(e,t){return this.debug&&console.log(Cn(e,this.props),Cn(t,this.state)),!kn(this.props,e,this.propEquality)||!kn(this.state,t,this.stateEquality)},t.prototype.safeSetState=function(e){kn(this.state,(0,it.pi)((0,it.pi)({},this.state),e),this.stateEquality)||this.setState(e)},t.addPropsEquality=gi,t.addStateEquality=vi,t.contextType=fi,t}(At);hi.prototype.propEquality={},hi.prototype.stateEquality={};var mi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.contextType=fi,t}(hi);function gi(e){var t=Object.create(this.prototype.propEquality);(0,it.pi)(t,e),this.prototype.propEquality=t}function vi(e){var t=Object.create(this.prototype.stateEquality);(0,it.pi)(t,e),this.prototype.stateEquality=t}function yi(e,t){"function"==typeof e?e(t):e&&(e.current=t)}var bi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.uid=Wt(),t}return(0,it.ZT)(t,e),t.prototype.prepareHits=function(){},t.prototype.queryHit=function(e,t,n,r){return null},t.prototype.isValidSegDownEl=function(e){return!this.props.eventDrag&&!this.props.eventResize&&!_t(e,".fc-event-mirror")},t.prototype.isValidDateDownEl=function(e){return!(_t(e,".fc-event:not(.fc-bg-event)")||_t(e,".fc-more-link")||_t(e,"a[data-navlink]")||_t(e,".fc-popover"))},t}(mi);function Ai(e){return{id:Wt(),deps:e.deps||[],reducers:e.reducers||[],isLoadingFuncs:e.isLoadingFuncs||[],contextInit:[].concat(e.contextInit||[]),eventRefiners:e.eventRefiners||{},eventDefMemberAdders:e.eventDefMemberAdders||[],eventSourceRefiners:e.eventSourceRefiners||{},isDraggableTransformers:e.isDraggableTransformers||[],eventDragMutationMassagers:e.eventDragMutationMassagers||[],eventDefMutationAppliers:e.eventDefMutationAppliers||[],dateSelectionTransformers:e.dateSelectionTransformers||[],datePointTransforms:e.datePointTransforms||[],dateSpanTransforms:e.dateSpanTransforms||[],views:e.views||{},viewPropsTransformers:e.viewPropsTransformers||[],isPropsValid:e.isPropsValid||null,externalDefTransforms:e.externalDefTransforms||[],viewContainerAppends:e.viewContainerAppends||[],eventDropTransformers:e.eventDropTransformers||[],componentInteractions:e.componentInteractions||[],calendarInteractions:e.calendarInteractions||[],themeClasses:e.themeClasses||{},eventSourceDefs:e.eventSourceDefs||[],cmdFormatter:e.cmdFormatter,recurringTypes:e.recurringTypes||[],namedTimeZonedImpl:e.namedTimeZonedImpl,initialView:e.initialView||"",elementDraggingImpl:e.elementDraggingImpl,optionChangeHandlers:e.optionChangeHandlers||{},scrollGridImpl:e.scrollGridImpl||null,contentTypeHandlers:e.contentTypeHandlers||{},listenerRefiners:e.listenerRefiners||{},optionRefiners:e.optionRefiners||{},propSetHandlers:e.propSetHandlers||{}}}function wi(){var e,t=[],n=[];return function(r,o){return e&&zn(r,t)&&zn(o,n)||(e=function(e,t){var n={},r={reducers:[],isLoadingFuncs:[],contextInit:[],eventRefiners:{},eventDefMemberAdders:[],eventSourceRefiners:{},isDraggableTransformers:[],eventDragMutationMassagers:[],eventDefMutationAppliers:[],dateSelectionTransformers:[],datePointTransforms:[],dateSpanTransforms:[],views:{},viewPropsTransformers:[],isPropsValid:null,externalDefTransforms:[],viewContainerAppends:[],eventDropTransformers:[],componentInteractions:[],calendarInteractions:[],themeClasses:{},eventSourceDefs:[],cmdFormatter:null,recurringTypes:[],namedTimeZonedImpl:null,initialView:"",elementDraggingImpl:null,optionChangeHandlers:{},scrollGridImpl:null,contentTypeHandlers:{},listenerRefiners:{},optionRefiners:{},propSetHandlers:{}};function o(e){for(var t=0,i=e;t<i.length;t++){var a=i[t];n[a.id]||(n[a.id]=!0,o(a.deps),s=a,r={reducers:(c=r).reducers.concat(s.reducers),isLoadingFuncs:c.isLoadingFuncs.concat(s.isLoadingFuncs),contextInit:c.contextInit.concat(s.contextInit),eventRefiners:(0,it.pi)((0,it.pi)({},c.eventRefiners),s.eventRefiners),eventDefMemberAdders:c.eventDefMemberAdders.concat(s.eventDefMemberAdders),eventSourceRefiners:(0,it.pi)((0,it.pi)({},c.eventSourceRefiners),s.eventSourceRefiners),isDraggableTransformers:c.isDraggableTransformers.concat(s.isDraggableTransformers),eventDragMutationMassagers:c.eventDragMutationMassagers.concat(s.eventDragMutationMassagers),eventDefMutationAppliers:c.eventDefMutationAppliers.concat(s.eventDefMutationAppliers),dateSelectionTransformers:c.dateSelectionTransformers.concat(s.dateSelectionTransformers),datePointTransforms:c.datePointTransforms.concat(s.datePointTransforms),dateSpanTransforms:c.dateSpanTransforms.concat(s.dateSpanTransforms),views:(0,it.pi)((0,it.pi)({},c.views),s.views),viewPropsTransformers:c.viewPropsTransformers.concat(s.viewPropsTransformers),isPropsValid:s.isPropsValid||c.isPropsValid,externalDefTransforms:c.externalDefTransforms.concat(s.externalDefTransforms),viewContainerAppends:c.viewContainerAppends.concat(s.viewContainerAppends),eventDropTransformers:c.eventDropTransformers.concat(s.eventDropTransformers),calendarInteractions:c.calendarInteractions.concat(s.calendarInteractions),componentInteractions:c.componentInteractions.concat(s.componentInteractions),themeClasses:(0,it.pi)((0,it.pi)({},c.themeClasses),s.themeClasses),eventSourceDefs:c.eventSourceDefs.concat(s.eventSourceDefs),cmdFormatter:s.cmdFormatter||c.cmdFormatter,recurringTypes:c.recurringTypes.concat(s.recurringTypes),namedTimeZonedImpl:s.namedTimeZonedImpl||c.namedTimeZonedImpl,initialView:c.initialView||s.initialView,elementDraggingImpl:c.elementDraggingImpl||s.elementDraggingImpl,optionChangeHandlers:(0,it.pi)((0,it.pi)({},c.optionChangeHandlers),s.optionChangeHandlers),scrollGridImpl:s.scrollGridImpl||c.scrollGridImpl,contentTypeHandlers:(0,it.pi)((0,it.pi)({},c.contentTypeHandlers),s.contentTypeHandlers),listenerRefiners:(0,it.pi)((0,it.pi)({},c.listenerRefiners),s.listenerRefiners),optionRefiners:(0,it.pi)((0,it.pi)({},c.optionRefiners),s.optionRefiners),propSetHandlers:(0,it.pi)((0,it.pi)({},c.propSetHandlers),s.propSetHandlers)})}var c,s}return e&&o(e),o(t),r}(r,o)),t=r,n=o,e}}var xi=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t}(li);function Ei(e,t,n,r){if(t[e])return t[e];var o=function(e,t,n,r){var o=n[e],i=r[e],a=function(e){return o&&null!==o[e]?o[e]:i&&null!==i[e]?i[e]:null},c=a("component"),s=a("superType"),u=null;if(s){if(s===e)throw new Error("Can't have a custom view type that references itself");u=Ei(s,t,n,r)}!c&&u&&(c=u.component);if(!c)return null;return{type:e,component:c,defaults:(0,it.pi)((0,it.pi)({},u?u.defaults:{}),o?o.rawOptions:{}),overrides:(0,it.pi)((0,it.pi)({},u?u.overrides:{}),i?i.rawOptions:{})}}(e,t,n,r);return o&&(t[e]=o),o}xi.prototype.classes={root:"fc-theme-standard",tableCellShaded:"fc-cell-shaded",buttonGroup:"fc-button-group",button:"fc-button fc-button-primary",buttonActive:"fc-button-active"},xi.prototype.baseIconClass="fc-icon",xi.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"},xi.prototype.rtlIconClasses={prev:"fc-icon-chevron-right",next:"fc-icon-chevron-left",prevYear:"fc-icon-chevrons-right",nextYear:"fc-icon-chevrons-left"},xi.prototype.iconOverrideOption="buttonIcons",xi.prototype.iconOverrideCustomButtonOption="icon",xi.prototype.iconOverridePrefix="fc-icon-";var Oi=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.rootElRef=xt(),t.handleRootEl=function(e){yi(t.rootElRef,e),t.props.elRef&&yi(t.props.elRef,e)},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=t.hookProps;return wt(Di,{hookProps:n,didMount:t.didMount,willUnmount:t.willUnmount,elRef:this.handleRootEl},(function(r){return wt(ki,{hookProps:n,content:t.content,defaultContent:t.defaultContent,backupElRef:e.rootElRef},(function(e,o){return t.children(r,Pi(t.classNames,n),e,o)}))}))},t}(mi),Ci=Ot(0);function ki(e){return wt(Ci.Consumer,null,(function(t){return wt(Si,(0,it.pi)({renderId:t},e))}))}var Si=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.innerElRef=xt(),t}return(0,it.ZT)(t,e),t.prototype.render=function(){return this.props.children(this.innerElRef,this.renderInnerContent())},t.prototype.componentDidMount=function(){this.updateCustomContent()},t.prototype.componentDidUpdate=function(){this.updateCustomContent()},t.prototype.componentWillUnmount=function(){this.customContentInfo&&this.customContentInfo.destroy&&this.customContentInfo.destroy()},t.prototype.renderInnerContent=function(){var e=this.customContentInfo,t=this.getInnerContent(),n=this.getContentMeta(t);return e&&e.contentKey===n.contentKey?e&&(e.contentVal=t[n.contentKey]):(e&&(e.destroy&&e.destroy(),e=this.customContentInfo=null),n.contentKey&&(e=this.customContentInfo=(0,it.pi)({contentKey:n.contentKey,contentVal:t[n.contentKey]},n.buildLifecycleFuncs()))),e?[]:t},t.prototype.getInnerContent=function(){var e=this.props,t=ji(e.content,e.hookProps);return void 0===t&&(t=ji(e.defaultContent,e.hookProps)),null==t?null:t},t.prototype.getContentMeta=function(e){var t=this.context.pluginHooks.contentTypeHandlers,n="",r=null;if(e)for(var o in t)if(void 0!==e[o]){n=o,r=t[o];break}return{contentKey:n,buildLifecycleFuncs:r}},t.prototype.updateCustomContent=function(){this.customContentInfo&&this.customContentInfo.render(this.innerElRef.current||this.props.backupElRef.current,this.customContentInfo.contentVal)},t}(mi),Di=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&yi(t.props.elRef,e)},t}return(0,it.ZT)(t,e),t.prototype.render=function(){return this.props.children(this.handleRootEl)},t.prototype.componentDidMount=function(){var e=this.props.didMount;e&&e((0,it.pi)((0,it.pi)({},this.props.hookProps),{el:this.rootEl}))},t.prototype.componentWillUnmount=function(){var e=this.props.willUnmount;e&&e((0,it.pi)((0,it.pi)({},this.props.hookProps),{el:this.rootEl}))},t}(mi);function _i(){var e,t,n=[];return function(r,o){return t&&On(t,o)&&r===e||(e=r,t=o,n=Pi(r,o)),n}}function Pi(e,t){return"function"==typeof e&&(e=e(t)),Er(e)}function ji(e,t){return"function"==typeof e?e(t,wt):e}var Ti=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.normalizeClassNames=_i(),t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r={view:t.viewApi},o=this.normalizeClassNames(n.viewClassNames,r);return wt(Di,{hookProps:r,didMount:n.viewDidMount,willUnmount:n.viewWillUnmount,elRef:e.elRef},(function(t){return e.children(t,["fc-"+e.viewSpec.type+"-view","fc-view"].concat(o))}))},t}(mi);function Ri(e){return wn(e,Ii)}function Ii(e){var t="function"==typeof e?{component:e}:e,n=t.component;return t.content&&(n=function(e){return function(t){return wt(fi.Consumer,null,(function(n){return wt(Ti,{viewSpec:n.viewSpec},(function(r,o){var i=(0,it.pi)((0,it.pi)({},t),{nextDayThreshold:n.options.nextDayThreshold});return wt(Oi,{hookProps:i,classNames:e.classNames,content:e.content,didMount:e.didMount,willUnmount:e.willUnmount,elRef:r},(function(e,t,n,r){return wt("div",{className:o.concat(t).join(" "),ref:e},r)}))}))}))}}(t)),{superType:t.type,component:n,rawOptions:t}}function Mi(e,t,n,r){var o=Ri(e),i=Ri(t.views),a=function(e,t){var n,r={};for(n in e)Ei(n,r,e,t);for(n in t)Ei(n,r,e,t);return r}(o,i);return wn(a,(function(e){return function(e,t,n,r,o){var i=e.overrides.duration||e.defaults.duration||r.duration||n.duration,a=null,c="",s="",u={};if(i&&(a=function(e){var t=JSON.stringify(e),n=Bi[t];void 0===n&&(n=Rn(e),Bi[t]=n);return n}(i),a)){var l=Zn(a);c=l.unit,1===l.value&&(s=c,u=t[c]?t[c].rawOptions:{})}var d=function(t){var n=t.buttonText||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[s]?n[s]:null},f=function(t){var n=t.buttonHints||{},r=e.defaults.buttonTextKey;return null!=r&&null!=n[r]?n[r]:null!=n[e.type]?n[e.type]:null!=n[s]?n[s]:null};return{type:e.type,component:e.component,duration:a,durationUnit:c,singleUnit:s,optionDefaults:e.defaults,optionOverrides:(0,it.pi)((0,it.pi)({},u),e.overrides),buttonTextOverride:d(r)||d(n)||e.overrides.buttonText,buttonTextDefault:d(o)||e.defaults.buttonText||d(ur)||e.type,buttonTitleOverride:f(r)||f(n)||e.overrides.buttonHint,buttonTitleDefault:f(o)||e.defaults.buttonHint||f(ur)}}(e,i,t,n,r)}))}var Bi={};var Ni=function(){function e(e){this.props=e,this.nowDate=bo(e.nowInput,e.dateEnv),this.initHiddenDays()}return e.prototype.buildPrev=function(e,t,n){var r=this.props.dateEnv,o=r.subtract(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,-1,n)},e.prototype.buildNext=function(e,t,n){var r=this.props.dateEnv,o=r.add(r.startOf(t,e.currentRangeUnit),e.dateIncrement);return this.build(o,1,n)},e.prototype.build=function(e,t,n){void 0===n&&(n=!0);var r,o,i,a,c,s,u=this.props;return r=this.buildValidRange(),r=this.trimHiddenDays(r),n&&(e=function(e,t){return null!=t.start&&e<t.start?t.start:null!=t.end&&e>=t.end?new Date(t.end.valueOf()-1):e}(e,r)),o=this.buildCurrentRangeInfo(e,t),i=/^(year|month|week|day)$/.test(o.unit),a=this.buildRenderRange(this.trimHiddenDays(o.range),o.unit,i),c=a=this.trimHiddenDays(a),u.showNonCurrentDates||(c=Hr(c,o.range)),c=Hr(c=this.adjustActiveRange(c),r),s=zr(o.range,r),{validRange:r,currentRange:o.range,currentRangeUnit:o.unit,isRangeAllDay:i,activeRange:c,renderRange:a,slotMinTime:u.slotMinTime,slotMaxTime:u.slotMaxTime,isValid:s,dateIncrement:this.buildDateIncrement(o.duration)}},e.prototype.buildValidRange=function(){var e=this.props.validRangeInput,t="function"==typeof e?e.call(this.props.calendarApi,this.nowDate):e;return this.refineRange(t)||{start:null,end:null}},e.prototype.buildCurrentRangeInfo=function(e,t){var n,r=this.props,o=null,i=null,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:(i=Zn(o=this.getFallbackDuration()).unit,a=this.buildRangeFromDuration(e,t,o,i)),{duration:o,unit:i,range:a}},e.prototype.getFallbackDuration=function(){return Rn({day:1})},e.prototype.adjustActiveRange=function(e){var t=this.props,n=t.dateEnv,r=t.usesMinMaxTime,o=t.slotMinTime,i=t.slotMaxTime,a=e.start,c=e.end;return r&&(Bn(o)<0&&(a=sn(a),a=n.add(a,o)),Bn(i)>1&&(c=rn(c=sn(c),-1),c=n.add(c,i))),{start:a,end:c}},e.prototype.buildRangeFromDuration=function(e,t,n,r){var o,i,a,c=this.props,s=c.dateEnv,u=c.dateAlignment;if(!u){var l=this.props.dateIncrement;u=l&&Nn(l)<Nn(n)?Zn(l).unit:r}function d(){o=s.startOf(e,u),i=s.add(o,n),a={start:o,end:i}}return Bn(n)<=1&&this.isHiddenDay(o)&&(o=sn(o=this.skipHiddenDays(o,t))),d(),this.trimHiddenDays(a)||(e=this.skipHiddenDays(e,t),d()),a},e.prototype.buildRangeFromDayCount=function(e,t,n){var r,o=this.props,i=o.dateEnv,a=o.dateAlignment,c=0,s=e;a&&(s=i.startOf(s,a)),s=sn(s),r=s=this.skipHiddenDays(s,t);do{r=rn(r,1),this.isHiddenDay(r)||(c+=1)}while(c<n);return{start:s,end:r}},e.prototype.buildCustomVisibleRange=function(e){var t=this.props,n=t.visibleRangeInput,r="function"==typeof n?n.call(t.calendarApi,t.dateEnv.toDate(e)):n,o=this.refineRange(r);return!o||null!=o.start&&null!=o.end?o:null},e.prototype.buildRenderRange=function(e,t,n){return e},e.prototype.buildDateIncrement=function(e){var t,n=this.props.dateIncrement;return n||((t=this.props.dateAlignment)?Rn(1,t):e||Rn({days:1}))},e.prototype.refineRange=function(e){if(e){var t=(n=e,r=this.props.dateEnv,o=null,i=null,n.start&&(o=r.createMarker(n.start)),n.end&&(i=r.createMarker(n.end)),o||i?o&&i&&i<o?null:{start:o,end:i}:null);return t&&(t=Nr(t)),t}var n,r,o,i;return null},e.prototype.initHiddenDays=function(){var e,t=this.props.hiddenDays||[],n=[],r=0;for(!1===this.props.weekends&&t.push(0,6),e=0;e<7;e+=1)(n[e]=-1!==t.indexOf(e))||(r+=1);if(!r)throw new Error("invalid hiddenDays");this.isHiddenDayHash=n},e.prototype.trimHiddenDays=function(e){var t=e.start,n=e.end;return t&&(t=this.skipHiddenDays(t)),n&&(n=this.skipHiddenDays(n,-1,!0)),null==t||null==n||t<n?{start:t,end:n}:null},e.prototype.isHiddenDay=function(e){return e instanceof Date&&(e=e.getUTCDay()),this.isHiddenDayHash[e]},e.prototype.skipHiddenDays=function(e,t,n){for(void 0===t&&(t=1),void 0===n&&(n=!1);this.isHiddenDayHash[(e.getUTCDay()+(n?t:0)+7)%7];)e=rn(e,t);return e},e}();function Fi(e,t,n){var r=t?t.activeRange:null;return Hi({},function(e,t){var n=yo(t),r=[].concat(e.eventSources||[]),o=[];e.initialEvents&&r.unshift(e.initialEvents);e.events&&r.unshift(e.events);for(var i=0,a=r;i<a.length;i++){var c=vo(a[i],t,n);c&&o.push(c)}return o}(e,n),r,n)}function Zi(e,t,n,r){var o,i,a=n?n.activeRange:null;switch(t.type){case"ADD_EVENT_SOURCES":return Hi(e,t.sources,a,r);case"REMOVE_EVENT_SOURCE":return o=e,i=t.sourceId,An(o,(function(e){return e.sourceId!==i}));case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return n?Ui(e,a,r):e;case"FETCH_EVENT_SOURCES":return zi(e,t.sourceIds?xn(t.sourceIds):Vi(e,r),a,t.isRefetch||!1,r);case"RECEIVE_EVENTS":case"RECEIVE_EVENT_ERROR":return function(e,t,n,r){var o,i=e[t];if(i&&n===i.latestFetchId)return(0,it.pi)((0,it.pi)({},e),((o={})[t]=(0,it.pi)((0,it.pi)({},i),{isFetching:!1,fetchRange:r}),o));return e}(e,t.sourceId,t.fetchId,t.fetchRange);case"REMOVE_ALL_EVENT_SOURCES":return{};default:return e}}function Li(e){for(var t in e)if(e[t].isFetching)return!0;return!1}function Hi(e,t,n,r){for(var o={},i=0,a=t;i<a.length;i++){var c=a[i];o[c.sourceId]=c}return n&&(o=Ui(o,n,r)),(0,it.pi)((0,it.pi)({},e),o)}function Ui(e,t,n){return zi(e,An(e,(function(e){return function(e,t,n){if(!Yi(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 zi(e,t,n,r,o){var i={};for(var a in e){var c=e[a];t[a]?i[a]=Wi(c,n,r,o):i[a]=c}return i}function Wi(e,t,n,r){var o=r.options,i=r.calendarApi,a=r.pluginHooks.eventSourceDefs[e.sourceDefId],c=Wt();return a.fetch({eventSource:e,range:t,isRefetch:n,context:r},(function(n){var a=n.rawEvents;o.eventSourceSuccess&&(a=o.eventSourceSuccess.call(i,a,n.xhr)||a),e.success&&(a=e.success.call(i,a,n.xhr)||a),r.dispatch({type:"RECEIVE_EVENTS",sourceId:e.sourceId,fetchId:c,fetchRange:t,rawEvents:a})}),(function(n){console.warn(n.message,n),o.eventSourceFailure&&o.eventSourceFailure.call(i,n),e.failure&&e.failure(n),r.dispatch({type:"RECEIVE_EVENT_ERROR",sourceId:e.sourceId,fetchId:c,fetchRange:t,error:n})})),(0,it.pi)((0,it.pi)({},e),{isFetching:!0,latestFetchId:c})}function Vi(e,t){return An(e,(function(e){return Yi(e,t)}))}function Yi(e,t){return!t.pluginHooks.eventSourceDefs[e.sourceDefId].ignoreRange}function qi(e,t,n,r,o){switch(t.type){case"RECEIVE_EVENTS":return function(e,t,n,r,o,i){if(t&&n===t.latestFetchId){var a=yr(function(e,t,n){var r=n.options.eventDataTransform,o=t?t.eventDataTransform:null;o&&(e=Gi(e,o));r&&(e=Gi(e,r));return e}(o,t,i),t,i);return r&&(a=_n(a,r,i)),wr(Qi(e,t.sourceId),a)}return e}(e,n[t.sourceId],t.fetchId,t.fetchRange,t.rawEvents,o);case"ADD_EVENTS":return function(e,t,n,r){n&&(t=_n(t,n,r));return wr(e,t)}(e,t.eventStore,r?r.activeRange:null,o);case"RESET_EVENTS":return t.eventStore;case"MERGE_EVENTS":return wr(e,t.eventStore);case"PREV":case"NEXT":case"CHANGE_DATE":case"CHANGE_VIEW_TYPE":return r?_n(e,r.activeRange,o):e;case"REMOVE_EVENTS":return function(e,t){var n=e.defs,r=e.instances,o={},i={};for(var a in n)t.defs[a]||(o[a]=n[a]);for(var c in r)!t.instances[c]&&o[r[c].defId]&&(i[c]=r[c]);return{defs:o,instances:i}}(e,t.eventStore);case"REMOVE_EVENT_SOURCE":return Qi(e,t.sourceId);case"REMOVE_ALL_EVENT_SOURCES":return xr(e,(function(e){return!e.sourceId}));case"REMOVE_ALL_EVENTS":return{defs:{},instances:{}};default:return e}}function Gi(e,t){var n;if(t){n=[];for(var r=0,o=e;r<o.length;r++){var i=o[r],a=t(i);a?n.push(a):null==a&&n.push(i)}}else n=e;return n}function Qi(e,t){return xr(e,(function(e){return e.sourceId!==t}))}function Xi(e,t){switch(t.type){case"UNSELECT_DATES":return null;case"SELECT_DATES":return t.selection;default:return e}}function Ki(e,t){switch(t.type){case"UNSELECT_EVENT":return"";case"SELECT_EVENT":return t.eventInstanceId;default:return e}}function $i(e,t){var n;switch(t.type){case"UNSET_EVENT_DRAG":return null;case"SET_EVENT_DRAG":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function Ji(e,t){var n;switch(t.type){case"UNSET_EVENT_RESIZE":return null;case"SET_EVENT_RESIZE":return{affectedEvents:(n=t.state).affectedEvents,mutatedEvents:n.mutatedEvents,isEvent:n.isEvent};default:return e}}function ea(e,t,n,r,o){return{header:e.headerToolbar?ta(e.headerToolbar,e,t,n,r,o):null,footer:e.footerToolbar?ta(e.footerToolbar,e,t,n,r,o):null}}function ta(e,t,n,r,o,i){var a={},c=[],s=!1;for(var u in e){var l=na(e[u],t,n,r,o,i);a[u]=l.widgets,c.push.apply(c,l.viewsWithButtons),s=s||l.hasTitle}return{sectionWidgets:a,viewsWithButtons:c,hasTitle:s}}function na(e,t,n,r,o,i){var a="rtl"===t.direction,c=t.customButtons||{},s=n.buttonText||{},u=t.buttonText||{},l=n.buttonHints||{},d=t.buttonHints||{},f=e?e.split(" "):[],p=[],h=!1;return{widgets:f.map((function(e){return e.split(",").map((function(e){if("title"===e)return h=!0,{buttonName:e};var n,f,m,g,v,y;if(n=c[e])m=function(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=function(){i.changeView(e)},(v=f.buttonTextOverride)||(g=r.getIconClass(e,a))||(v=f.buttonTextDefault);var b=f.buttonTextOverride||f.buttonTextDefault;y=$t(f.buttonTitleOverride||f.buttonTitleDefault||t.viewHint,[b,e],b)}else if(i[e])if(m=function(){i[e]()},(v=s[e])||(g=r.getIconClass(e,a))||(v=u[e]),"prevYear"===e||"nextYear"===e){var A="prevYear"===e?"prev":"next";y=$t(l[A]||d[A],[u.year||"year","year"],u[e])}else y=function(t){return $t(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}}function ra(e,t,n,r,o){var i=null;"GET"===(e=e.toUpperCase())?t=function(e,t){return e+(-1===e.indexOf("?")?"?":"&")+oa(t)}(t,n):i=oa(n);var a=new XMLHttpRequest;a.open(e,t,!0),"GET"!==e&&a.setRequestHeader("Content-Type","application/x-www-form-urlencoded"),a.onload=function(){if(a.status>=200&&a.status<400){var e=!1,t=void 0;try{t=JSON.parse(a.responseText),e=!0}catch(e){}e?r(t,a):o("Failure parsing JSON",a)}else o("Request failed",a)},a.onerror=function(){o("Request failed",a)},a.send(i)}function oa(e){var t=[];for(var n in e)t.push(encodeURIComponent(n)+"="+encodeURIComponent(e[n]));return t.join("&")}var ia={parseMeta:function(e){return!e.url||"json"!==e.format&&e.format?null:{url:e.url,format:"json",method:(e.method||"GET").toUpperCase(),extraParams:e.extraParams,startParam:e.startParam,endParam:e.endParam,timeZoneParam:e.timeZoneParam}},fetch:function(e,t,n){var r=e.eventSource.meta,o=function(e,t,n){var r,o,i,a,c=n.dateEnv,s=n.options,u={};null==(r=e.startParam)&&(r=s.startParam);null==(o=e.endParam)&&(o=s.endParam);null==(i=e.timeZoneParam)&&(i=s.timeZoneParam);a="function"==typeof e.extraParams?e.extraParams():e.extraParams||{};(0,it.pi)(u,a),u[r]=c.formatIso(t.start),u[o]=c.formatIso(t.end),"local"!==c.timeZone&&(u[i]=c.timeZone);return u}(r,e.range,e.context);ra(r.method,r.url,o,(function(e,n){t({rawEvents:e,xhr:n})}),(function(e,t){n({message:e,xhr:t})}))}};var aa={parse:function(e,t){if(e.daysOfWeek||e.startTime||e.endTime||e.startRecur||e.endRecur){var n={daysOfWeek:e.daysOfWeek||null,startTime:e.startTime||null,endTime:e.endTime||null,startRecur:e.startRecur?t.createMarker(e.startRecur):null,endRecur:e.endRecur?t.createMarker(e.endRecur):null},r=void 0;return e.duration&&(r=e.duration),!r&&e.startTime&&e.endTime&&(o=e.endTime,i=e.startTime,r={years:o.years-i.years,months:o.months-i.months,days:o.days-i.days,milliseconds:o.milliseconds-i.milliseconds}),{allDayGuess:Boolean(!e.startTime&&!e.endTime),duration:r,typeData:n}}var o,i;return null},expand:function(e,t,n){var r=Hr(t,{start:e.startRecur,end:e.endRecur});return r?function(e,t,n,r){var o=e?xn(e):null,i=sn(n.start),a=n.end,c=[];for(;i<a;){var s=void 0;o&&!o[i.getUTCDay()]||(s=t?r.add(i,t):i,c.push(s)),i=rn(i,1)}return c}(e.daysOfWeek,e.startTime,r,n):[]}};function ca(e,t){for(var n=En(t.getCurrentData().eventSources),r=[],o=0,i=e;o<i.length;o++){for(var a=i[o],c=!1,s=0;s<n.length;s+=1)if(n[s]._raw===a){n.splice(s,1),c=!0;break}c||r.push(a)}for(var u=0,l=n;u<l.length;u++){var d=l[u];t.dispatch({type:"REMOVE_EVENT_SOURCE",sourceId:d.sourceId})}for(var f=0,p=r;f<p.length;f++){var h=p[f];t.calendarApi.addEventSource(h)}}var sa=[Ai({eventSourceDefs:[{ignoreRange:!0,parseMeta:function(e){return Array.isArray(e.events)?e.events:null},fetch:function(e,t){t({rawEvents:e.eventSource.meta})}}]}),Ai({eventSourceDefs:[{parseMeta:function(e){return"function"==typeof e.events?e.events:null},fetch:function(e,t,n){var r=e.context.dateEnv;oi(e.eventSource.meta.bind(null,io(e.range,r)),(function(e){t({rawEvents:e})}),n)}}]}),Ai({eventSourceRefiners:{method:String,extraParams:vr,startParam:String,endParam:String,timeZoneParam:String},eventSourceDefs:[ia]}),Ai({recurringTypes:[aa],eventRefiners:{daysOfWeek:vr,startTime:Rn,endTime:Rn,duration:Rn,startRecur:vr,endRecur:vr}}),Ai({optionChangeHandlers:{events:function(e,t){ca([e],t)},eventSources:ca}}),Ai({isLoadingFuncs:[function(e){return Li(e.eventSources)}],contentTypeHandlers:{html:function(){var e=null,t="";return{render:function(n,r){n===e&&r===t||(n.innerHTML=r),e=n,t=r},destroy:function(){e.innerHTML="",e=null,t=""}}},domNodes:function(){var e=null,t=[];function n(){t.forEach(Dt),t=[],e=null}return{render:function(r,o){var i=Array.prototype.slice.call(o);if(r!==e||!zn(t,i)){for(var a=0,c=i;a<c.length;a++){var s=c[a];r.appendChild(s)}n()}e=r,t=i},destroy:n}}},propSetHandlers:{dateProfile:function(e,t){t.emitter.trigger("datesSet",(0,it.pi)((0,it.pi)({},io(e.activeRange,t.dateEnv)),{view:t.viewApi}))},eventStore:function(e,t){var n=t.emitter;n.hasHandlers("eventsSet")&&n.trigger("eventsSet",Eo(e,t))}}})];var ua=function(){function e(e){this.drainedOption=e,this.isRunning=!1,this.isDirty=!1,this.pauseDepths={},this.timeoutId=0}return e.prototype.request=function(e){this.isDirty=!0,this.isPaused()||(this.clearTimeout(),null==e?this.tryDrain():this.timeoutId=setTimeout(this.tryDrain.bind(this),e))},e.prototype.pause=function(e){void 0===e&&(e="");var t=this.pauseDepths;t[e]=(t[e]||0)+1,this.clearTimeout()},e.prototype.resume=function(e,t){void 0===e&&(e="");var n=this.pauseDepths;if(e in n){if(t)delete n[e];else n[e]-=1,n[e]<=0&&delete n[e];this.tryDrain()}},e.prototype.isPaused=function(){return Object.keys(this.pauseDepths).length},e.prototype.tryDrain=function(){if(!this.isRunning&&!this.isPaused()){for(this.isRunning=!0;this.isDirty;)this.isDirty=!1,this.drained();this.isRunning=!1}},e.prototype.clear=function(){this.clearTimeout(),this.isDirty=!1,this.pauseDepths={}},e.prototype.clearTimeout=function(){this.timeoutId&&(clearTimeout(this.timeoutId),this.timeoutId=0)},e.prototype.drained=function(){this.drainedOption&&this.drainedOption()},e}(),la=function(){function e(e,t){this.runTaskOption=e,this.drainedOption=t,this.queue=[],this.delayedRunner=new ua(this.drain.bind(this))}return e.prototype.request=function(e,t){this.queue.push(e),this.delayedRunner.request(t)},e.prototype.pause=function(e){this.delayedRunner.pause(e)},e.prototype.resume=function(e,t){this.delayedRunner.resume(e,t)},e.prototype.drain=function(){for(var e=this.queue;e.length;){for(var t=[],n=void 0;n=e.shift();)this.runTask(n),t.push(n);this.drained(t)}},e.prototype.runTask=function(e){this.runTaskOption&&this.runTaskOption(e)},e.prototype.drained=function(e){this.drainedOption&&this.drainedOption(e)},e}();function da(e,t,n){var r;return r=/^(year|month)$/.test(e.currentRangeUnit)?e.currentRange:e.activeRange,n.formatRange(r.start,r.end,cr(t.titleFormat||function(e){var t=e.currentRangeUnit;if("year"===t)return{year:"numeric"};if("month"===t)return{year:"numeric",month:"long"};var n=cn(e.currentRange.start,e.currentRange.end);if(null!==n&&n>1)return{year:"numeric",month:"short",day:"numeric"};return{year:"numeric",month:"long",day:"numeric"}}(e)),{isEndExclusive:e.isRangeAllDay,defaultSeparator:t.titleRangeSeparator})}var fa=function(){function e(e){var t=this;this.computeOptionsData=Wn(this._computeOptionsData),this.computeCurrentViewData=Wn(this._computeCurrentViewData),this.organizeRawLocales=Wn(Po),this.buildLocale=Wn(jo),this.buildPluginHooks=wi(),this.buildDateEnv=Wn(pa),this.buildTheme=Wn(ha),this.parseToolbars=Wn(ea),this.buildViewSpecs=Wn(Mi),this.buildDateProfileGenerator=Vn(ma),this.buildViewApi=Wn(ga),this.buildViewUiProps=Vn(ba),this.buildEventUiBySource=Wn(va,On),this.buildEventUiBases=Wn(ya),this.parseContextBusinessHours=Vn(wa),this.buildTitle=Wn(da),this.emitter=new ii,this.actionRunner=new la(this._handleAction.bind(this),this.updateData.bind(this)),this.currentCalendarOptionsInput={},this.currentCalendarOptionsRefined={},this.currentViewOptionsInput={},this.currentViewOptionsRefined={},this.currentCalendarOptionsRefiners={},this.getCurrentData=function(){return t.data},this.dispatch=function(e){t.actionRunner.request(e)},this.props=e,this.actionRunner.pause();var n={},r=this.computeOptionsData(e.optionOverrides,n,e.calendarApi),o=r.calendarOptions.initialView||r.pluginHooks.initialView,i=this.computeCurrentViewData(o,r,e.optionOverrides,n);e.calendarApi.currentDataManager=this,this.emitter.setThisContext(e.calendarApi),this.emitter.setOptions(i.options);var a=function(e,t){var n=e.initialDate;return null!=n?t.createMarker(n):bo(e.now,t)}(r.calendarOptions,r.dateEnv),c=i.dateProfileGenerator.build(a);Vr(c.activeRange,a)||(a=c.currentRange.start);for(var s={dateEnv:r.dateEnv,options:r.calendarOptions,pluginHooks:r.pluginHooks,calendarApi:e.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},u=0,l=r.pluginHooks.contextInit;u<l.length;u++){(0,l[u])(s)}for(var d=Fi(r.calendarOptions,c,s),f={dynamicOptionOverrides:n,currentViewType:o,currentDate:a,dateProfile:c,businessHours:this.parseContextBusinessHours(s),eventSources:d,eventUiBases:{},eventStore:{defs:{},instances:{}},renderableEventStore:{defs:{},instances:{}},dateSelection:null,eventSelection:"",eventDrag:null,eventResize:null,selectionConfig:this.buildViewUiProps(s).selectionConfig},p=(0,it.pi)((0,it.pi)({},s),f),h=0,m=r.pluginHooks.reducers;h<m.length;h++){var g=m[h];(0,it.pi)(f,g(null,null,p))}Aa(f,s)&&this.emitter.trigger("loading",!0),this.state=f,this.updateData(),this.actionRunner.resume()}return e.prototype.resetOptions=function(e,t){var n=this.props;n.optionOverrides=t?(0,it.pi)((0,it.pi)({},n.optionOverrides),e):e,this.actionRunner.request({type:"NOTHING"})},e.prototype._handleAction=function(e){var t=this,n=t.props,r=t.state,o=t.emitter,i=function(e,t){var n;return"SET_OPTION"===t.type?(0,it.pi)((0,it.pi)({},e),((n={})[t.optionName]=t.rawOptionValue,n)):e}(r.dynamicOptionOverrides,e),a=this.computeOptionsData(n.optionOverrides,i,n.calendarApi),c=function(e,t){"CHANGE_VIEW_TYPE"===t.type&&(e=t.viewType);return e}(r.currentViewType,e),s=this.computeCurrentViewData(c,a,n.optionOverrides,i);n.calendarApi.currentDataManager=this,o.setThisContext(n.calendarApi),o.setOptions(s.options);var u={dateEnv:a.dateEnv,options:a.calendarOptions,pluginHooks:a.pluginHooks,calendarApi:n.calendarApi,dispatch:this.dispatch,emitter:o,getCurrentData:this.getCurrentData},l=r.currentDate,d=r.dateProfile;this.data&&this.data.dateProfileGenerator!==s.dateProfileGenerator&&(d=s.dateProfileGenerator.build(l)),l=function(e,t){return"CHANGE_DATE"===t.type?t.dateMarker:e}(l,e),d=function(e,t,n,r){var o;switch(t.type){case"CHANGE_VIEW_TYPE":return r.build(t.dateMarker||n);case"CHANGE_DATE":return r.build(t.dateMarker);case"PREV":if((o=r.buildPrev(e,n)).isValid)return o;break;case"NEXT":if((o=r.buildNext(e,n)).isValid)return o}return e}(d,e,l,s.dateProfileGenerator),"PREV"!==e.type&&"NEXT"!==e.type&&Vr(d.currentRange,l)||(l=d.currentRange.start);for(var f=Zi(r.eventSources,e,d,u),p=qi(r.eventStore,e,f,d,u),h=Li(f)&&!s.options.progressiveEventRendering&&r.renderableEventStore||p,m=this.buildViewUiProps(u),g=m.eventUiSingleBase,v=m.selectionConfig,y=this.buildEventUiBySource(f),b={dynamicOptionOverrides:i,currentViewType:c,currentDate:l,dateProfile:d,eventSources:f,eventStore:p,renderableEventStore:h,selectionConfig:v,eventUiBases:this.buildEventUiBases(h.defs,g,y),businessHours:this.parseContextBusinessHours(u),dateSelection:Xi(r.dateSelection,e),eventSelection:Ki(r.eventSelection,e),eventDrag:$i(r.eventDrag,e),eventResize:Ji(r.eventResize,e)},A=(0,it.pi)((0,it.pi)({},u),b),w=0,x=a.pluginHooks.reducers;w<x.length;w++){var E=x[w];(0,it.pi)(b,E(r,e,A))}var O=Aa(r,u),C=Aa(b,u);!O&&C?o.trigger("loading",!0):O&&!C&&o.trigger("loading",!1),this.state=b,n.onAction&&n.onAction(e)},e.prototype.updateData=function(){var e,t,n,r,o=this.props,i=this.state,a=this.data,c=this.computeOptionsData(o.optionOverrides,i.dynamicOptionOverrides,o.calendarApi),s=this.computeCurrentViewData(i.currentViewType,c,o.optionOverrides,i.dynamicOptionOverrides),u=this.data=(0,it.pi)((0,it.pi)((0,it.pi)({viewTitle:this.buildTitle(i.dateProfile,s.options,c.dateEnv),calendarApi:o.calendarApi,dispatch:this.dispatch,emitter:this.emitter,getCurrentData:this.getCurrentData},c),s),i),l=c.pluginHooks.optionChangeHandlers,d=a&&a.calendarOptions,f=c.calendarOptions;if(d&&d!==f)for(var p in d.timeZone!==f.timeZone&&(i.eventSources=u.eventSources=(e=u.eventSources,t=i.dateProfile,n=u,r=t?t.activeRange:null,zi(e,Vi(e,n),r,!0,n)),i.eventStore=u.eventStore=function(e,t,n){var r=e.defs,o=wn(e.instances,(function(e){var o=r[e.defId];return o.allDay||o.recurringDef?e:(0,it.pi)((0,it.pi)({},e),{range:{start:n.createMarker(t.toDate(e.range.start,e.forcedStartTzo)),end:n.createMarker(t.toDate(e.range.end,e.forcedEndTzo))},forcedStartTzo:n.canComputeOffset?null:e.forcedStartTzo,forcedEndTzo:n.canComputeOffset?null:e.forcedEndTzo})}));return{defs:r,instances:o}}(u.eventStore,a.dateEnv,u.dateEnv)),l)d[p]!==f[p]&&l[p](f[p],u);o.onData&&o.onData(u)},e.prototype._computeOptionsData=function(e,t,n){var r=this.processRawCalendarOptions(e,t),o=r.refinedOptions,i=r.pluginHooks,a=r.localeDefaults,c=r.availableLocaleData;xa(r.extra);var s=this.buildDateEnv(o.timeZone,o.locale,o.weekNumberCalculation,o.firstDay,o.weekText,i,c,o.defaultRangeSeparator),u=this.buildViewSpecs(i.views,e,t,a),l=this.buildTheme(o,i);return{calendarOptions:o,pluginHooks:i,dateEnv:s,viewSpecs:u,theme:l,toolbarConfig:this.parseToolbars(o,e,l,u,n),localeDefaults:a,availableRawLocales:c.map}},e.prototype.processRawCalendarOptions=function(e,t){var n=mr([ur,e,t]),r=n.locales,o=n.locale,i=this.organizeRawLocales(r),a=i.map,c=this.buildLocale(o||i.defaultCode,a).options,s=this.buildPluginHooks(e.plugins||[],sa),u=this.currentCalendarOptionsRefiners=(0,it.pi)((0,it.pi)((0,it.pi)((0,it.pi)((0,it.pi)({},sr),lr),dr),s.listenerRefiners),s.optionRefiners),l={},d=mr([ur,c,e,t]),f={},p=this.currentCalendarOptionsInput,h=this.currentCalendarOptionsRefined,m=!1;for(var g in d)"plugins"!==g&&(d[g]===p[g]||fr[g]&&g in p&&fr[g](p[g],d[g])?f[g]=h[g]:u[g]?(f[g]=u[g](d[g]),m=!0):l[g]=p[g]);return m&&(this.currentCalendarOptionsInput=d,this.currentCalendarOptionsRefined=f),{rawOptions:this.currentCalendarOptionsInput,refinedOptions:this.currentCalendarOptionsRefined,pluginHooks:s,availableLocaleData:i,localeDefaults:c,extra:l}},e.prototype._computeCurrentViewData=function(e,t,n,r){var o=t.viewSpecs[e];if(!o)throw new Error('viewType "'+e+"\" is not available. Please make sure you've loaded all neccessary plugins");var i=this.processRawViewOptions(o,t.pluginHooks,t.localeDefaults,n,r),a=i.refinedOptions;return xa(i.extra),{viewSpec:o,options:a,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:a.slotMinTime,slotMaxTime:a.slotMaxTime,showNonCurrentDates:a.showNonCurrentDates,dayCount:a.dayCount,dateAlignment:a.dateAlignment,dateIncrement:a.dateIncrement,hiddenDays:a.hiddenDays,weekends:a.weekends,nowInput:a.now,validRangeInput:a.validRange,visibleRangeInput:a.visibleRange,monthMode:a.monthMode,fixedWeekCount:a.fixedWeekCount}),viewApi:this.buildViewApi(e,this.getCurrentData,t.dateEnv)}},e.prototype.processRawViewOptions=function(e,t,n,r,o){var i=mr([ur,e.optionDefaults,n,r,e.optionOverrides,o]),a=(0,it.pi)((0,it.pi)((0,it.pi)((0,it.pi)((0,it.pi)((0,it.pi)({},sr),lr),dr),hr),t.listenerRefiners),t.optionRefiners),c={},s=this.currentViewOptionsInput,u=this.currentViewOptionsRefined,l=!1,d={};for(var f in i)i[f]===s[f]||fr[f]&&fr[f](i[f],s[f])?c[f]=u[f]:(i[f]===this.currentCalendarOptionsInput[f]||fr[f]&&fr[f](i[f],this.currentCalendarOptionsInput[f])?f in this.currentCalendarOptionsRefined&&(c[f]=this.currentCalendarOptionsRefined[f]):a[f]?c[f]=a[f](i[f]):d[f]=i[f],l=!0);return l&&(this.currentViewOptionsInput=i,this.currentViewOptionsRefined=c),{rawOptions:this.currentViewOptionsInput,refinedOptions:this.currentViewOptionsRefined,extra:d}},e}();function pa(e,t,n,r,o,i,a,c){var s=jo(t||a.defaultCode,a.map);return new ko({calendarSystem:"gregory",timeZone:e,namedTimeZoneImpl:i.namedTimeZonedImpl,locale:s,weekNumberCalculation:n,firstDay:r,weekText:o,cmdFormatter:i.cmdFormatter,defaultSeparator:c})}function ha(e,t){return new(t.themeClasses[e.themeSystem]||xi)(e)}function ma(e){return new(e.dateProfileGeneratorClass||Ni)(e)}function ga(e,t,n){return new mo(e,t,n)}function va(e){return wn(e,(function(e){return e.ui}))}function ya(e,t,n){var r={"":t};for(var o in e){var i=e[o];i.sourceId&&n[i.sourceId]&&(r[o]=n[i.sourceId])}return r}function ba(e){var t=e.options;return{eventUiSingleBase:kr({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:kr({constraint:t.selectConstraint,overlap:"boolean"==typeof t.selectOverlap?t.selectOverlap:void 0,allow:t.selectAllow},e)}}function Aa(e,t){for(var n=0,r=t.pluginHooks.isLoadingFuncs;n<r.length;n++){if((0,r[n])(e))return!0}return!1}function wa(e){return Mo(e.options.businessHours,e)}function xa(e,t){for(var n in e)console.warn("Unknown option '"+n+"'"+(t?" for view '"+t+"'":""))}var Ea=function(e){function t(t){var n=e.call(this,t)||this;return n.handleData=function(e){n.dataManager?n.setState(e):n.state=e},n.dataManager=new fa({optionOverrides:t.optionOverrides,calendarApi:t.calendarApi,onData:n.handleData}),n}return(0,it.ZT)(t,e),t.prototype.render=function(){return this.props.children(this.state)},t.prototype.componentDidUpdate=function(e){var t=this.props.optionOverrides;t!==e.optionOverrides&&this.dataManager.resetOptions(t)},t}(At);var Oa=function(){function e(){this.strictOrder=!1,this.allowReslicing=!1,this.maxCoord=-1,this.maxStackCnt=-1,this.levelCoords=[],this.entriesByLevel=[],this.stackCnts={}}return e.prototype.addSegs=function(e){for(var t=[],n=0,r=e;n<r.length;n++){var o=r[n];this.insertEntry(o,t)}return t},e.prototype.insertEntry=function(e,t){var n=this.findInsertion(e);return this.isInsertionValid(n,e)?(this.insertEntryAt(e,n),1):this.handleInvalidInsertion(n,e,t)},e.prototype.isInsertionValid=function(e,t){return(-1===this.maxCoord||e.levelCoord+t.thickness<=this.maxCoord)&&(-1===this.maxStackCnt||e.stackCnt<this.maxStackCnt)},e.prototype.handleInvalidInsertion=function(e,t,n){return this.allowReslicing&&e.touchingEntry?this.splitEntry(t,e.touchingEntry,n):(n.push(t),0)},e.prototype.splitEntry=function(e,t,n){var r=0,o=[],i=e.span,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.apply(n,(0,it.ev)([{index:e.index,thickness:e.thickness,span:Sa(a,i)}],o)),r):(n.push(e),0)},e.prototype.insertEntryAt=function(e,t){var n=this.entriesByLevel,r=this.levelCoords;-1===t.lateral?(Da(r,t.level,t.levelCoord),Da(n,t.level,[e])):Da(n[t.level],t.lateral,e),this.stackCnts[ka(e)]=t.stackCnt},e.prototype.findInsertion=function(e){for(var t=this,n=t.levelCoords,r=t.entriesByLevel,o=t.strictOrder,i=t.stackCnts,a=n.length,c=0,s=-1,u=-1,l=null,d=0,f=0;f<a;f+=1){var p=n[f];if(!o&&p>=c+e.thickness)break;for(var h=r[f],m=void 0,g=_a(h,e.span.start,Ca),v=g[0]+g[1];(m=h[v])&&m.span.start<e.span.end;){var y=p+m.thickness;y>c&&(c=y,l=m,s=f,u=v),y===c&&(d=Math.max(d,i[ka(m)]+1)),v+=1}}var b=0;if(l)for(b=s+1;b<a&&n[b]<c;)b+=1;var A=-1;return b<a&&n[b]===c&&(A=_a(r[b],e.span.end,Ca)[0]),{touchingLevel:s,touchingLateral:u,touchingEntry:l,stackCnt:d,levelCoord:c,level:b,lateral:A}},e.prototype.toRects=function(){for(var e=this.entriesByLevel,t=this.levelCoords,n=e.length,r=[],o=0;o<n;o+=1)for(var i=e[o],a=t[o],c=0,s=i;c<s.length;c++){var u=s[c];r.push((0,it.pi)((0,it.pi)({},u),{levelCoord:a}))}return r},e}();function Ca(e){return e.span.end}function ka(e){return e.index+":"+e.span.start}function Sa(e,t){var n=Math.max(e.start,t.start),r=Math.min(e.end,t.end);return n<r?{start:n,end:r}:null}function Da(e,t,n){e.splice(t,0,n)}function _a(e,t,n){var r=0,o=e.length;if(!o||t<n(e[r]))return[0,0];if(t>n(e[o-1]))return[o,0];for(;r<o;){var i=Math.floor(r+(o-r)/2),a=n(e[i]);if(t<a)o=i;else{if(!(t>a))return[i,1];r=i+1}}return[r,0]}var Pa=function(){function e(e){this.component=e.component,this.isHitComboAllowed=e.isHitComboAllowed||null}return e.prototype.destroy=function(){},e}();function ja(e,t){return{component:e,el:t.el,useEventCenter:null==t.useEventCenter||t.useEventCenter,isHitComboAllowed:t.isHitComboAllowed||null}}function Ta(e){var t;return(t={})[e.component.uid]=e,t}var Ra={},Ia=function(){function e(e,t){this.emitter=new ii}return e.prototype.destroy=function(){},e.prototype.setMirrorIsVisible=function(e){},e.prototype.setMirrorNeedsRevert=function(e){},e.prototype.setAutoScrollEnabled=function(e){},e}(),Ma={},Ba={startTime:Rn,duration:Rn,create:Boolean,sourceId:String};function Na(e){var t=gr(e,Ba),n=t.refined,r=t.extra;return{startTime:n.startTime||null,duration:n.duration||null,create:null==n.create||n.create,sourceId:n.sourceId,leftoverProps:r}}var Fa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props.widgetGroups.map((function(t){return e.renderWidgetGroup(t)}));return wt.apply(void 0,(0,it.ev)(["div",{className:"fc-toolbar-chunk"}],t))},t.prototype.renderWidgetGroup=function(e){for(var t=this.props,n=this.context.theme,r=[],o=!0,i=0,a=e;i<a.length;i++){var c=a[i],s=c.buttonName,u=c.buttonClick,l=c.buttonText,d=c.buttonIcon,f=c.buttonHint;if("title"===s)o=!1,r.push(wt("h2",{className:"fc-toolbar-title",id:t.titleId},t.title));else{var p=s===t.activeButton,h=!t.isTodayEnabled&&"today"===s||!t.isPrevEnabled&&"prev"===s||!t.isNextEnabled&&"next"===s,m=["fc-"+s+"-button",n.getClass("button")];p&&m.push(n.getClass("buttonActive")),r.push(wt("button",{type:"button",title:"function"==typeof f?f(t.navUnit):f,disabled:h,"aria-pressed":p,className:m.join(" "),onClick:u},l||(d?wt("span",{className:d}):"")))}}if(r.length>1){var g=o&&n.getClass("buttonGroup")||"";return wt.apply(void 0,(0,it.ev)(["div",{className:g}],r))}return r[0]},t}(mi),Za=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.render=function(){var e,t,n=this.props,r=n.model,o=n.extraClassName,i=!1,a=r.sectionWidgets,c=a.center;return a.left?(i=!0,e=a.left):e=a.start,a.right?(i=!0,t=a.right):t=a.end,wt("div",{className:[o||"","fc-toolbar",i?"fc-toolbar-ltr":""].join(" ")},this.renderSection("start",e||[]),this.renderSection("center",c||[]),this.renderSection("end",t||[]))},t.prototype.renderSection=function(e,t){var n=this.props;return wt(Fa,{key:e,widgetGroups:t,title:n.title,navUnit:n.navUnit,activeButton:n.activeButton,isTodayEnabled:n.isTodayEnabled,isPrevEnabled:n.isPrevEnabled,isNextEnabled:n.isNextEnabled,titleId:n.titleId})},t}(mi),La=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={availableWidth:null},t.handleEl=function(e){t.el=e,yi(t.props.elRef,e),t.updateAvailableWidth()},t.handleResize=function(){t.updateAvailableWidth()},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.state,n=e.aspectRatio,r=["fc-view-harness",n||e.liquid||e.height?"fc-view-harness-active":"fc-view-harness-passive"],o="",i="";return n?null!==t.availableWidth?o=t.availableWidth/n:i=1/n*100+"%":o=e.height||"",wt("div",{"aria-labelledby":e.labeledById,ref:this.handleEl,className:r.join(" "),style:{height:o,paddingBottom:i}},e.children)},t.prototype.componentDidMount=function(){this.context.addResizeHandler(this.handleResize)},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleResize)},t.prototype.updateAvailableWidth=function(){this.el&&this.props.aspectRatio&&this.setState({availableWidth:this.el.offsetWidth})},t}(mi),Ha=function(e){function t(t){var n=e.call(this,t)||this;return n.handleSegClick=function(e,t){var r=n.component,o=r.context,i=Gr(t);if(i&&r.isValidSegDownEl(e.target)){var a=_t(e.target,".fc-event-forced-url"),c=a?a.querySelector("a[href]").href:"";o.emitter.trigger("eventClick",{el:t,event:new wo(r.context,i.eventRange.def,i.eventRange.instance),jsEvent:e,view:o.viewApi}),c&&!e.defaultPrevented&&(window.location.href=c)}},n.destroy=Lt(t.el,"click",".fc-event",n.handleSegClick),n}return(0,it.ZT)(t,e),t}(Pa),Ua=function(e){function t(t){var n=e.call(this,t)||this;return n.handleEventElRemove=function(e){e===n.currentSegEl&&n.handleSegLeave(null,n.currentSegEl)},n.handleSegEnter=function(e,t){Gr(t)&&(n.currentSegEl=t,n.triggerEvent("eventMouseEnter",e,t))},n.handleSegLeave=function(e,t){n.currentSegEl&&(n.currentSegEl=null,n.triggerEvent("eventMouseLeave",e,t))},n.removeHoverListeners=function(e,t,n,r){var o;return Lt(e,"mouseover",t,(function(e,t){if(t!==o){o=t,n(e,t);var i=function(e){o=null,r(e,t),t.removeEventListener("mouseleave",i)};t.addEventListener("mouseleave",i)}}))}(t.el,".fc-event",n.handleSegEnter,n.handleSegLeave),n}return(0,it.ZT)(t,e),t.prototype.destroy=function(){this.removeHoverListeners()},t.prototype.triggerEvent=function(e,t,n){var r=this.component,o=r.context,i=Gr(n);t&&!r.isValidSegDownEl(t.target)||o.emitter.trigger(e,{el:n,event:new wo(o,i.eventRange.def,i.eventRange.instance),jsEvent:t,view:o.viewApi})},t}(Pa),za=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.buildViewContext=Wn(pi),t.buildViewPropTransformers=Wn(Va),t.buildToolbarProps=Wn(Wa),t.headerRef=xt(),t.footerRef=xt(),t.interactionsStore={},t.state={viewLabelId:Ft()},t.registerInteractiveComponent=function(e,n){var r=ja(e,n),o=[Ha,Ua].concat(t.props.pluginHooks.componentInteractions).map((function(e){return new e(r)}));t.interactionsStore[e.uid]=o,Ra[e.uid]=r},t.unregisterInteractiveComponent=function(e){var n=t.interactionsStore[e.uid];if(n){for(var r=0,o=n;r<o.length;r++){o[r].destroy()}delete t.interactionsStore[e.uid]}delete Ra[e.uid]},t.resizeRunner=new ua((function(){t.props.emitter.trigger("_resize",!0),t.props.emitter.trigger("windowResize",{view:t.props.viewApi})})),t.handleWindowResize=function(e){var n=t.props.options;n.handleWindowResize&&e.target===window&&t.resizeRunner.request(n.windowResizeDelay)},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e,t=this.props,n=t.toolbarConfig,r=t.options,o=this.buildToolbarProps(t.viewSpec,t.dateProfile,t.dateProfileGenerator,t.currentDate,bo(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);var c=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),s=n.header&&n.header.hasTitle?this.state.viewLabelId:"";return wt(fi.Provider,{value:c},n.header&&wt(Za,(0,it.pi)({ref:this.headerRef,extraClassName:"fc-header-toolbar",model:n.header,titleId:s},o)),wt(La,{liquid:i,height:a,aspectRatio:e,labeledById:s},this.renderView(t),this.buildAppendContent()),n.footer&&wt(Za,(0,it.pi)({ref:this.footerRef,extraClassName:"fc-footer-toolbar",model:n.footer,titleId:""},o)))},t.prototype.componentDidMount=function(){var e=this.props;this.calendarInteractions=e.pluginHooks.calendarInteractions.map((function(t){return new t(e)})),window.addEventListener("resize",this.handleWindowResize);var t=e.pluginHooks.propSetHandlers;for(var n in t)t[n](e[n],e)},t.prototype.componentDidUpdate=function(e){var t=this.props,n=t.pluginHooks.propSetHandlers;for(var r in n)t[r]!==e[r]&&n[r](t[r],t)},t.prototype.componentWillUnmount=function(){window.removeEventListener("resize",this.handleWindowResize),this.resizeRunner.clear();for(var e=0,t=this.calendarInteractions;e<t.length;e++){t[e].destroy()}this.props.emitter.trigger("_unmount")},t.prototype.buildAppendContent=function(){var e=this.props,t=e.pluginHooks.viewContainerAppends.map((function(t){return t(e)}));return wt.apply(void 0,(0,it.ev)([Et,{}],t))},t.prototype.renderView=function(e){for(var t=e.pluginHooks,n=e.viewSpec,r={dateProfile:e.dateProfile,businessHours:e.businessHours,eventStore:e.renderableEventStore,eventUiBases:e.eventUiBases,dateSelection:e.dateSelection,eventSelection:e.eventSelection,eventDrag:e.eventDrag,eventResize:e.eventResize,isHeightAuto:e.isHeightAuto,forPrint:e.forPrint},o=0,i=this.buildViewPropTransformers(t.viewPropsTransformers);o<i.length;o++){var a=i[o];(0,it.pi)(r,a.transform(r,e))}var c=n.component;return wt(c,(0,it.pi)({},r))},t}(hi);function Wa(e,t,n,r,o,i){var a=n.build(o,void 0,!1),c=n.buildPrev(t,r,!1),s=n.buildNext(t,r,!1);return{title:i,activeButton:e.type,navUnit:e.singleUnit,isTodayEnabled:a.isValid&&!Vr(t.currentRange,o),isPrevEnabled:c.isValid,isNextEnabled:s.isValid}}function Va(e){return e.map((function(e){return new e}))}var Ya=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={forPrint:!1},t.handleBeforePrint=function(){t.setState({forPrint:!0})},t.handleAfterPrint=function(){t.setState({forPrint:!1})},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=e.options,n=this.state.forPrint,r=n||"auto"===t.height||"auto"===t.contentHeight,o=r||null==t.height?"":t.height,i=["fc",n?"fc-media-print":"fc-media-screen","fc-direction-"+t.direction,e.theme.getClass("root")];return Zo()||i.push("fc-liquid-hack"),e.children(i,o,r,n)},t.prototype.componentDidMount=function(){var e=this.props.emitter;e.on("_beforeprint",this.handleBeforePrint),e.on("_afterprint",this.handleAfterPrint)},t.prototype.componentWillUnmount=function(){var e=this.props.emitter;e.off("_beforeprint",this.handleBeforePrint),e.off("_afterprint",this.handleAfterPrint)},t}(mi);function qa(e,t){return cr(!e||t>10?{weekday:"short"}:t>1?{weekday:"short",month:"numeric",day:"numeric",omitCommas:!0}:{weekday:"long"})}var Ga="fc-col-header-cell";function Qa(e){return e.text}var Xa=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.context,t=e.dateEnv,n=e.options,r=e.theme,o=e.viewApi,i=this.props,a=i.date,c=i.dateProfile,s=zo(a,i.todayRange,null,c),u=[Ga].concat(Wo(s,r)),l=t.format(a,i.dayHeaderFormat),d=!s.isDisabled&&i.colCnt>1?Go(this.context,a):{},f=(0,it.pi)((0,it.pi)((0,it.pi)({date:t.toDate(a),view:o},i.extraHookProps),{text:l}),s);return wt(Oi,{hookProps:f,classNames:n.dayHeaderClassNames,content:n.dayHeaderContent,defaultContent:Qa,didMount:n.dayHeaderDidMount,willUnmount:n.dayHeaderWillUnmount},(function(e,t,n,r){return wt("th",(0,it.pi)({ref:e,role:"columnheader",className:u.concat(t).join(" "),"data-date":s.isDisabled?void 0:Hn(a),colSpan:i.colSpan},i.extraDataAttrs),wt("div",{className:"fc-scrollgrid-sync-inner"},!s.isDisabled&&wt("a",(0,it.pi)({ref:n,className:["fc-col-header-cell-cushion",i.isSticky?"fc-sticky":""].join(" ")},d),r)))}))},t}(mi),Ka=cr({weekday:"long"}),$a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.dateEnv,r=t.theme,o=t.viewApi,i=t.options,a=rn(new Date(2592e5),e.dow),c={dow:e.dow,isDisabled:!1,isFuture:!1,isPast:!1,isToday:!1,isOther:!1},s=[Ga].concat(Wo(c,r),e.extraClassNames||[]),u=n.format(a,e.dayHeaderFormat),l=(0,it.pi)((0,it.pi)((0,it.pi)((0,it.pi)({date:a},c),{view:o}),e.extraHookProps),{text:u});return wt(Oi,{hookProps:l,classNames:i.dayHeaderClassNames,content:i.dayHeaderContent,defaultContent:Qa,didMount:i.dayHeaderDidMount,willUnmount:i.dayHeaderWillUnmount},(function(t,r,o,i){return wt("th",(0,it.pi)({ref:t,role:"columnheader",className:s.concat(r).join(" "),colSpan:e.colSpan},e.extraDataAttrs),wt("div",{className:"fc-scrollgrid-sync-inner"},wt("a",{"aria-label":n.format(a,Ka),className:["fc-col-header-cell-cushion",e.isSticky?"fc-sticky":""].join(" "),ref:o},i)))}))},t}(mi),Ja=function(e){function t(t,n){var r=e.call(this,t,n)||this;return r.initialNowDate=bo(n.options.now,n.dateEnv),r.initialNowQueriedMs=(new Date).valueOf(),r.state=r.computeTiming().currentState,r}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.state;return e.children(t.nowDate,t.todayRange)},t.prototype.componentDidMount=function(){this.setTimeout()},t.prototype.componentDidUpdate=function(e){e.unit!==this.props.unit&&(this.clearTimeout(),this.setTimeout())},t.prototype.componentWillUnmount=function(){this.clearTimeout()},t.prototype.computeTiming=function(){var e=this.props,t=this.context,n=on(this.initialNowDate,(new Date).valueOf()-this.initialNowQueriedMs),r=t.dateEnv.startOf(n,e.unit),o=t.dateEnv.add(r,Rn(1,e.unit)),i=o.valueOf()-n.valueOf();return i=Math.min(864e5,i),{currentState:{nowDate:r,todayRange:ec(r)},nextState:{nowDate:o,todayRange:ec(o)},waitMs:i}},t.prototype.setTimeout=function(){var e=this,t=this.computeTiming(),n=t.nextState,r=t.waitMs;this.timeoutId=setTimeout((function(){e.setState(n,(function(){e.setTimeout()}))}),r)},t.prototype.clearTimeout=function(){this.timeoutId&&clearTimeout(this.timeoutId)},t.contextType=fi,t}(At);function ec(e){var t=sn(e);return{start:t,end:rn(t,1)}}!function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.createDayHeaderFormatter=Wn(tc),t}(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.context,t=this.props,n=t.dates,r=t.dateProfile,o=t.datesRepDistinctDays,i=t.renderIntro,a=this.createDayHeaderFormatter(e.options.dayHeaderFormat,o,n.length);return wt(Ja,{unit:"day"},(function(e,t){return wt("tr",{role:"row"},i&&i("day"),n.map((function(e){return o?wt(Xa,{key:e.toISOString(),date:e,dateProfile:r,todayRange:t,colCnt:n.length,dayHeaderFormat:a}):wt($a,{key:e.getUTCDay(),dow:e.getUTCDay(),dayHeaderFormat:a})})))}))}}(mi);function tc(e,t,n){return e||qa(t,n)}(function(){function e(e,t){for(var n=e.start,r=e.end,o=[],i=[],a=-1;n<r;)t.isHiddenDay(n)?o.push(a+.5):(a+=1,o.push(a),i.push(n)),n=rn(n,1);this.dates=i,this.indices=o,this.cnt=i.length}e.prototype.sliceRange=function(e){var t=this.getDateDayIndex(e.start),n=this.getDateDayIndex(rn(e.end,-1)),r=Math.max(0,t),o=Math.min(this.cnt-1,n);return(r=Math.ceil(r))<=(o=Math.floor(o))?{firstIndex:r,lastIndex:o,isStart:t===r,isEnd:n===o}:null},e.prototype.getDateDayIndex=function(e){var t=this.indices,n=Math.floor(an(this.dates[0],e));return n<0?t[0]-1:n>=t.length?t[t.length-1]+1:t[n]}})(),function(){function e(e,t){var n,r,o,i=e.dates;if(t){for(r=i[0].getUTCDay(),n=1;n<i.length&&i[n].getUTCDay()!==r;n+=1);o=Math.ceil(i.length/n)}else o=1,n=i.length;this.rowCnt=o,this.colCnt=n,this.daySeries=e,this.cells=this.buildCells(),this.headerDates=this.buildHeaderDates()}e.prototype.buildCells=function(){for(var e=[],t=0;t<this.rowCnt;t+=1){for(var n=[],r=0;r<this.colCnt;r+=1)n.push(this.buildCell(t,r));e.push(n)}return e},e.prototype.buildCell=function(e,t){var n=this.daySeries.dates[e*this.colCnt+t];return{key:n.toISOString(),date:n}},e.prototype.buildHeaderDates=function(){for(var e=[],t=0;t<this.colCnt;t+=1)e.push(this.cells[0][t].date);return e},e.prototype.sliceRange=function(e){var t=this.colCnt,n=this.daySeries.sliceRange(e),r=[];if(n)for(var o=n.firstIndex,i=n.lastIndex,a=o;a<=i;){var c=Math.floor(a/t),s=Math.min((c+1)*t,i+1);r.push({row:c,firstCol:a%t,lastCol:(s-1)%t,isStart:n.isStart&&a===o,isEnd:n.isEnd&&s-1===i}),a=s}return r}}();var nc=function(){function e(){this.sliceBusinessHours=Wn(this._sliceBusinessHours),this.sliceDateSelection=Wn(this._sliceDateSpan),this.sliceEventStore=Wn(this._sliceEventStore),this.sliceEventDrag=Wn(this._sliceInteraction),this.sliceEventResize=Wn(this._sliceInteraction),this.forceDayIfListItem=!1}return e.prototype.sliceProps=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];var a=e.eventUiBases,c=this.sliceEventStore.apply(this,(0,it.ev)([e.eventStore,a,t,n],o));return{dateSelectionSegs:this.sliceDateSelection.apply(this,(0,it.ev)([e.dateSelection,a,r],o)),businessHourSegs:this.sliceBusinessHours.apply(this,(0,it.ev)([e.businessHours,t,n,r],o)),fgEventSegs:c.fg,bgEventSegs:c.bg,eventDrag:this.sliceEventDrag.apply(this,(0,it.ev)([e.eventDrag,a,t,n],o)),eventResize:this.sliceEventResize.apply(this,(0,it.ev)([e.eventResize,a,t,n],o)),eventSelection:e.eventSelection}},e.prototype.sliceNowDate=function(e,t){for(var n=[],r=2;r<arguments.length;r++)n[r-2]=arguments[r];return this._sliceDateSpan.apply(this,(0,it.ev)([{range:{start:e,end:on(e,1)},allDay:!1},{},t],n))},e.prototype._sliceBusinessHours=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];return e?this._sliceEventStore.apply(this,(0,it.ev)([_n(e,rc(t,Boolean(n)),r),{},t,n],o)).bg:[]},e.prototype._sliceEventStore=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(e){var a=Yr(e,t,rc(n,Boolean(r)),r);return{bg:this.sliceEventRanges(a.bg,o),fg:this.sliceEventRanges(a.fg,o)}}return{bg:[],fg:[]}},e.prototype._sliceInteraction=function(e,t,n,r){for(var o=[],i=4;i<arguments.length;i++)o[i-4]=arguments[i];if(!e)return null;var a=Yr(e.mutatedEvents,t,rc(n,Boolean(r)),r);return{segs:this.sliceEventRanges(a.fg,o),affectedInstances:e.affectedEvents.instances,isEvent:e.isEvent}},e.prototype._sliceDateSpan=function(e,t,n){for(var r=[],o=3;o<arguments.length;o++)r[o-3]=arguments[o];if(!e)return[];for(var i=co(e,t,n),a=this.sliceRange.apply(this,(0,it.ev)([e.range],r)),c=0,s=a;c<s.length;c++){var u=s[c];u.eventRange=i}return a},e.prototype.sliceEventRanges=function(e,t){for(var n=[],r=0,o=e;r<o.length;r++){var i=o[r];n.push.apply(n,this.sliceEventRange(i,t))}return n},e.prototype.sliceEventRange=function(e,t){var n=e.range;this.forceDayIfListItem&&"list-item"===e.ui.display&&(n={start:n.start,end:rn(n.start,1)});for(var r=this.sliceRange.apply(this,(0,it.ev)([n],t)),o=0,i=r;o<i.length;o++){var a=i[o];a.eventRange=e,a.isStart=e.isStart&&a.isStart,a.isEnd=e.isEnd&&a.isEnd}return r},e}();function rc(e,t){var n=e.activeRange;return t?n:{start:on(n.start,e.slotMinTime.milliseconds),end:on(n.end,e.slotMaxTime.milliseconds-864e5)}}function oc(e,t,n){var r=e.mutatedEvents.instances;for(var o in r)if(!Wr(t.validRange,r[o].range))return!1;return ic({eventDrag:e},n)}function ic(e,t){var n=t.getCurrentData(),r=(0,it.pi)({businessHours:n.businessHours,dateSelection:"",eventStore:n.eventStore,eventUiBases:n.eventUiBases,eventSelection:"",eventDrag:null,eventResize:null},e);return(t.pluginHooks.isPropsValid||ac)(r,t)}function ac(e,t,n,r){return void 0===n&&(n={}),!(e.eventDrag&&!function(e,t,n,r){var o=t.getCurrentData(),i=e.eventDrag,a=i.mutatedEvents,c=a.defs,s=a.instances,u=Qr(c,i.isEvent?e.eventUiBases:{"":o.selectionConfig});r&&(u=wn(u,r));var l=(h=e.eventStore,m=i.affectedEvents.instances,{defs:h.defs,instances:An(h.instances,(function(e){return!m[e.instanceId]}))}),d=l.defs,f=l.instances,p=Qr(d,e.eventUiBases);var h,m;for(var g in s){var v=s[g],y=v.range,b=u[v.defId],A=c[v.defId];if(!cc(b.constraints,y,l,e.businessHours,t))return!1;var w=t.options.eventOverlap,x="function"==typeof w?w:null;for(var E in f){var O=f[E];if(zr(y,O.range)){if(!1===p[O.defId].overlap&&i.isEvent)return!1;if(!1===b.overlap)return!1;if(x&&!x(new wo(t,d[O.defId],O),new wo(t,A,v)))return!1}}for(var C=o.eventStore,k=0,S=b.allows;k<S.length;k++){var D=S[k],_=(0,it.pi)((0,it.pi)({},n),{range:v.range,allDay:A.allDay}),P=C.defs[A.defId],j=C.instances[g],T=void 0;if(T=P?new wo(t,P,j):new wo(t,A),!D(uo(_,t),T))return!1}}return!0}(e,t,n,r))&&!(e.dateSelection&&!function(e,t,n,r){var o=e.eventStore,i=o.defs,a=o.instances,c=e.dateSelection,s=c.range,u=t.getCurrentData().selectionConfig;r&&(u=r(u));if(!cc(u.constraints,s,o,e.businessHours,t))return!1;var l=t.options.selectOverlap,d="function"==typeof l?l:null;for(var f in a){var p=a[f];if(zr(s,p.range)){if(!1===u.overlap)return!1;if(d&&!d(new wo(t,i[p.defId],p),null))return!1}}for(var h=0,m=u.allows;h<m.length;h++){if(!(0,m[h])(uo((0,it.pi)((0,it.pi)({},n),c),t),null))return!1}return!0}(e,t,n,r))}function cc(e,t,n,r,o){for(var i=0,a=e;i<a.length;i++){if(!lc(sc(a[i],t,n,r,o),t))return!1}return!0}function sc(e,t,n,r,o){return"businessHours"===e?uc(_n(r,t,o)):"string"==typeof e?uc(xr(n,(function(t){return t.groupId===e}))):"object"==typeof e&&e?uc(_n(e,t,o)):[]}function uc(e){var t=e.instances,n=[];for(var r in t)n.push(t[r].range);return n}function lc(e,t){for(var n=0,r=e;n<r.length;n++){if(Wr(r[n],t))return!0}return!1}var dc=/^(visible|hidden)$/,fc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleEl=function(e){t.el=e,yi(t.props.elRef,e)},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=e.liquid,n=e.liquidIsAbsolute,r=t&&n,o=["fc-scroller"];return t&&(n?o.push("fc-scroller-liquid-absolute"):o.push("fc-scroller-liquid")),wt("div",{ref:this.handleEl,className:o.join(" "),style:{overflowX:e.overflowX,overflowY:e.overflowY,left:r&&-(e.overcomeLeft||0)||"",right:r&&-(e.overcomeRight||0)||"",bottom:r&&-(e.overcomeBottom||0)||"",marginLeft:!r&&-(e.overcomeLeft||0)||"",marginRight:!r&&-(e.overcomeRight||0)||"",marginBottom:!r&&-(e.overcomeBottom||0)||"",maxHeight:e.maxHeight||""}},e.children)},t.prototype.needsXScrolling=function(){if(dc.test(this.props.overflowX))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().width-this.getYScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().width>t)return!0}return!1},t.prototype.needsYScrolling=function(){if(dc.test(this.props.overflowY))return!1;for(var e=this.el,t=this.el.getBoundingClientRect().height-this.getXScrollbarWidth(),n=e.children,r=0;r<n.length;r+=1){if(n[r].getBoundingClientRect().height>t)return!0}return!1},t.prototype.getXScrollbarWidth=function(){return dc.test(this.props.overflowX)?0:this.el.offsetHeight-this.el.clientHeight},t.prototype.getYScrollbarWidth=function(){return dc.test(this.props.overflowY)?0:this.el.offsetWidth-this.el.clientWidth},t}(mi),pc=function(){function e(e){var t=this;this.masterCallback=e,this.currentMap={},this.depths={},this.callbackMap={},this.handleValue=function(e,n){var r=t,o=r.depths,i=r.currentMap,a=!1,c=!1;null!==e?(a=n in i,i[n]=e,o[n]=(o[n]||0)+1,c=!0):(o[n]-=1,o[n]||(delete i[n],delete t.callbackMap[n],a=!0)),t.masterCallback&&(a&&t.masterCallback(null,String(n)),c&&t.masterCallback(e,String(n)))}}return e.prototype.createRef=function(e){var t=this,n=this.callbackMap[e];return n||(n=this.callbackMap[e]=function(n){t.handleValue(n,String(e))}),n},e.prototype.collect=function(e,t,n){return Dn(this.currentMap,e,t,n)},e.prototype.getAll=function(){return En(this.currentMap)},e}();function hc(e){for(var t=0,n=0,r=jt(e,".fc-scrollgrid-shrink");n<r.length;n++){var o=r[n];t=Math.max(t,tn(o))}return Math.ceil(t)}function mc(e,t){return e.liquid&&t.liquid}function gc(e,t){return null!=t.maxHeight||mc(e,t)}function vc(e,t,n,r){var o=n.expandRows;return"function"==typeof t.content?t.content(n):wt("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,wt(r?"thead":"tbody",{role:"presentation"},"function"==typeof t.rowContent?t.rowContent(n):t.rowContent))}function yc(e,t){return zn(e,t,On)}function bc(e,t){for(var n=[],r=0,o=e;r<o.length;r++)for(var i=o[r],a=i.span||1,c=0;c<a;c+=1)n.push(wt("col",{style:{width:"shrink"===i.width?Ac(t):i.width||"",minWidth:i.minWidth||""}}));return wt.apply(void 0,(0,it.ev)(["colgroup",{}],n))}function Ac(e){return null==e?4:e}function wc(e){for(var t=0,n=e;t<n.length;t++){if("shrink"===n[t].width)return!0}return!1}function xc(e,t){var n=["fc-scrollgrid",t.theme.getClass("table")];return e&&n.push("fc-scrollgrid-liquid"),n}function Ec(e,t){var n=["fc-scrollgrid-section","fc-scrollgrid-section-"+e.type,e.className];return t&&e.liquid&&null==e.maxHeight&&n.push("fc-scrollgrid-section-liquid"),e.isSticky&&n.push("fc-scrollgrid-section-sticky"),n}function Oc(e){return wt("div",{className:"fc-scrollgrid-sticky-shim",style:{width:e.clientWidth,minWidth:e.tableMinWidth}})}function Cc(e){var t=e.stickyHeaderDates;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}function kc(e){var t=e.stickyFooterScrollbar;return null!=t&&"auto"!==t||(t="auto"===e.height||"auto"===e.viewHeight),t}var Sc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.processCols=Wn((function(e){return e}),yc),t.renderMicroColGroup=Wn(bc),t.scrollerRefs=new pc,t.scrollerElRefs=new pc(t._handleScrollerEl.bind(t)),t.state={shrinkWidth:null,forceYScrollbars:!1,scrollerClientWidths:{},scrollerClientHeights:{}},t.handleSizing=function(){t.safeSetState((0,it.pi)({shrinkWidth:t.computeShrinkWidth()},t.computeScrollerDims()))},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this,t=e.props,n=e.state,r=e.context,o=t.sections||[],i=this.processCols(t.cols),a=this.renderMicroColGroup(i,n.shrinkWidth),c=xc(t.liquid,r);t.collapsibleWidth&&c.push("fc-scrollgrid-collapsible");for(var s,u=o.length,l=0,d=[],f=[],p=[];l<u&&"header"===(s=o[l]).type;)d.push(this.renderSection(s,a,!0)),l+=1;for(;l<u&&"body"===(s=o[l]).type;)f.push(this.renderSection(s,a,!1)),l+=1;for(;l<u&&"footer"===(s=o[l]).type;)p.push(this.renderSection(s,a,!0)),l+=1;var h=!Zo(),m={role:"rowgroup"};return wt("table",{role:"grid",className:c.join(" "),style:{height:t.height}},Boolean(!h&&d.length)&&wt.apply(void 0,(0,it.ev)(["thead",m],d)),Boolean(!h&&f.length)&&wt.apply(void 0,(0,it.ev)(["tbody",m],f)),Boolean(!h&&p.length)&&wt.apply(void 0,(0,it.ev)(["tfoot",m],p)),h&&wt.apply(void 0,(0,it.ev)((0,it.ev)((0,it.ev)(["tbody",m],d),f),p)))},t.prototype.renderSection=function(e,t,n){return"outerContent"in e?wt(Et,{key:e.key},e.outerContent):wt("tr",{key:e.key,role:"presentation",className:Ec(e,this.props.liquid).join(" ")},this.renderChunkTd(e,t,e.chunk,n))},t.prototype.renderChunkTd=function(e,t,n,r){if("outerContent"in n)return n.outerContent;var o=this.props,i=this.state,a=i.forceYScrollbars,c=i.scrollerClientWidths,s=i.scrollerClientHeights,u=gc(o,e),l=mc(o,e),d=o.liquid?a?"scroll":u?"auto":"hidden":"visible",f=e.key,p=vc(e,n,{tableColGroupNode:t,tableMinWidth:"",clientWidth:o.collapsibleWidth||void 0===c[f]?null:c[f],clientHeight:void 0!==s[f]?s[f]:null,expandRows:e.expandRows,syncRowHeights:!1,rowSyncHeights:[],reportRowHeightChange:function(){}},r);return wt(r?"th":"td",{ref:n.elRef,role:"presentation"},wt("div",{className:"fc-scroller-harness"+(l?" fc-scroller-harness-liquid":"")},wt(fc,{ref:this.scrollerRefs.createRef(f),elRef:this.scrollerElRefs.createRef(f),overflowY:d,overflowX:o.liquid?"hidden":"visible",maxHeight:e.maxHeight,liquid:l,liquidIsAbsolute:!0},p)))},t.prototype._handleScrollerEl=function(e,t){var n=function(e,t){for(var n=0,r=e;n<r.length;n++){var o=r[n];if(o.key===t)return o}return null}(this.props.sections,t);n&&yi(n.chunk.scrollerElRef,e)},t.prototype.componentDidMount=function(){this.handleSizing(),this.context.addResizeHandler(this.handleSizing)},t.prototype.componentDidUpdate=function(){this.handleSizing()},t.prototype.componentWillUnmount=function(){this.context.removeResizeHandler(this.handleSizing)},t.prototype.computeShrinkWidth=function(){return wc(this.props.cols)?hc(this.scrollerElRefs.getAll()):0},t.prototype.computeScrollerDims=function(){var e=$o(),t=this.scrollerRefs,n=this.scrollerElRefs,r=!1,o={},i={};for(var a in t.currentMap){var c=t.currentMap[a];if(c&&c.needsYScrolling()){r=!0;break}}for(var s=0,u=this.props.sections;s<u.length;s++){a=u[s].key;var l=n.currentMap[a];if(l){var d=l.parentNode;o[a]=Math.floor(d.getBoundingClientRect().width-(r?e.y:0)),i[a]=Math.floor(d.getBoundingClientRect().height)}}return{forceYScrollbars:r,scrollerClientWidths:o,scrollerClientHeights:i}},t}(mi);Sc.addStateEquality({scrollerClientWidths:On,scrollerClientHeights:On});var Dc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.elRef=xt(),t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=e.seg,o=r.eventRange,i=o.ui,a={event:new wo(t,o.def,o.instance),view:t.viewApi,timeText:e.timeText,textColor:i.textColor,backgroundColor:i.backgroundColor,borderColor:i.borderColor,isDraggable:!e.disableDragging&&Jr(r,t),isStartResizable:!e.disableResizing&&eo(r,t),isEndResizable:!e.disableResizing&&to(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)},c=function(e){var t=["fc-event"];return e.isMirror&&t.push("fc-event-mirror"),e.isDraggable&&t.push("fc-event-draggable"),(e.isStartResizable||e.isEndResizable)&&t.push("fc-event-resizable"),e.isDragging&&t.push("fc-event-dragging"),e.isResizing&&t.push("fc-event-resizing"),e.isSelected&&t.push("fc-event-selected"),e.isStart&&t.push("fc-event-start"),e.isEnd&&t.push("fc-event-end"),e.isPast&&t.push("fc-event-past"),e.isToday&&t.push("fc-event-today"),e.isFuture&&t.push("fc-event-future"),t}(a).concat(i.classNames);return wt(Oi,{hookProps:a,classNames:n.eventClassNames,content:n.eventContent,defaultContent:e.defaultContent,didMount:n.eventDidMount,willUnmount:n.eventWillUnmount,elRef:this.elRef},(function(t,n,r,o){return e.children(t,c.concat(n),r,o,a)}))},t.prototype.componentDidMount=function(){qr(this.elRef.current,this.props.seg)},t.prototype.componentDidUpdate=function(e){var t=this.props.seg;t!==e.seg&&qr(this.elRef.current,t)},t}(mi),_c=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=e.seg,r=t.options.eventTimeFormat||e.defaultTimeFormat,o=function(e,t,n,r,o,i,a){var c=n.dateEnv,s=n.options,u=s.displayEventTime,l=s.displayEventEnd,d=e.eventRange.def,f=e.eventRange.instance;null==u&&(u=!1!==r),null==l&&(l=!1!==o);var 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=sn(p).valueOf()===sn(m).valueOf(),y=sn(on(h,-1)).valueOf()===sn(on(g,-1)).valueOf();return u&&!d.allDay&&(v||y)?(m=v?p:m,g=y?h:g,l&&d.hasEnd?c.formatRange(m,g,t,{forcedStartTzo:i?null:f.forcedStartTzo,forcedEndTzo:a?null:f.forcedEndTzo}):c.format(m,t,{forcedTzo:i?null:f.forcedStartTzo})):""}(n,r,t,e.defaultDisplayEventTime,e.defaultDisplayEventEnd);return wt(Dc,{seg:n,timeText:o,disableDragging:e.disableDragging,disableResizing:e.disableResizing,defaultContent:e.defaultContent||Pc,isDragging:e.isDragging,isResizing:e.isResizing,isDateSelecting:e.isDateSelecting,isSelected:e.isSelected,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(r,o,i,a,c){return wt("a",(0,it.pi)({className:e.extraClassNames.concat(o).join(" "),style:{borderColor:c.borderColor,backgroundColor:c.backgroundColor},ref:r},function(e,t){var n=e.eventRange,r=n.def,o=n.instance,i=r.url;if(i)return{href:i};var a=t.emitter,c=t.options.eventInteractive;return null==c&&null==(c=r.interactive)&&(c=Boolean(a.hasHandlers("eventClick"))),c?Ut((function(e){a.trigger("eventClick",{el:e.target,event:new wo(t,r,o),jsEvent:e,view:t.viewApi})})):{}}(n,t)),wt("div",{className:"fc-event-main",ref:i,style:{color:c.textColor}},a),c.isStartResizable&&wt("div",{className:"fc-event-resizer fc-event-resizer-start"}),c.isEndResizable&&wt("div",{className:"fc-event-resizer fc-event-resizer-end"}))}))},t}(mi);function Pc(e){return wt("div",{className:"fc-event-main-frame"},e.timeText&&wt("div",{className:"fc-event-time"},e.timeText),wt("div",{className:"fc-event-title-container"},wt("div",{className:"fc-event-title fc-sticky"},e.event.title||wt(Et,null," "))))}var jc=function(e){return wt(fi.Consumer,null,(function(t){var n=t.options,r={isAxis:e.isAxis,date:t.dateEnv.toDate(e.date),view:t.viewApi};return wt(Oi,{hookProps:r,classNames:n.nowIndicatorClassNames,content:n.nowIndicatorContent,didMount:n.nowIndicatorDidMount,willUnmount:n.nowIndicatorWillUnmount},e.children)}))},Tc=cr({day:"numeric"}),Rc=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=Ic({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv});return wt(ki,{hookProps:r,content:n.dayCellContent,defaultContent:e.defaultContent},e.children)},t}(mi);function Ic(e){var t=e.date,n=e.dateEnv,r=zo(t,e.todayRange,null,e.dateProfile);return(0,it.pi)((0,it.pi)((0,it.pi)({date:n.toDate(t),view:e.viewApi},r),{dayNumberText:e.showDayNumber?n.format(t,Tc):""}),e.extraProps)}var Mc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.refineHookProps=Vn(Ic),t.normalizeClassNames=_i(),t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.props,t=this.context,n=t.options,r=this.refineHookProps({date:e.date,dateProfile:e.dateProfile,todayRange:e.todayRange,showDayNumber:e.showDayNumber,extraProps:e.extraHookProps,viewApi:t.viewApi,dateEnv:t.dateEnv}),o=Wo(r,t.theme).concat(r.isDisabled?[]:this.normalizeClassNames(n.dayCellClassNames,r)),i=r.isDisabled?{}:{"data-date":Hn(e.date)};return wt(Di,{hookProps:r,didMount:n.dayCellDidMount,willUnmount:n.dayCellWillUnmount,elRef:e.elRef},(function(t){return e.children(t,o,i,r.isDisabled)}))},t}(mi);var Bc=function(e){return wt(Dc,{defaultContent:Nc,seg:e.seg,timeText:"",disableDragging:!0,disableResizing:!0,isDragging:!1,isResizing:!1,isDateSelecting:!1,isSelected:!1,isPast:e.isPast,isFuture:e.isFuture,isToday:e.isToday},(function(e,t,n,r,o){return wt("div",{ref:e,className:["fc-bg-event"].concat(t).join(" "),style:{backgroundColor:o.backgroundColor}},r)}))};function Nc(e){return e.event.title&&wt("div",{className:"fc-event-title"},e.event.title)}var Fc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.state={titleId:Ft()},t.handleRootEl=function(e){t.rootEl=e,t.props.elRef&&yi(t.props.elRef,e)},t.handleDocumentMouseDown=function(e){var n=Mt(e);t.rootEl.contains(n)||t.handleCloseClick()},t.handleDocumentKeyDown=function(e){"Escape"===e.key&&t.handleCloseClick()},t.handleCloseClick=function(){var e=t.props.onClose;e&&e()},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.context,t=e.theme,n=e.options,r=this.props,o=this.state,i=["fc-popover",t.getClass("popover")].concat(r.extraClassNames||[]);return Ct(wt("div",(0,it.pi)({id:r.id,className:i.join(" "),"aria-labelledby":o.titleId},r.extraAttrs,{ref:this.handleRootEl}),wt("div",{className:"fc-popover-header "+t.getClass("popoverHeader")},wt("span",{className:"fc-popover-title",id:o.titleId},r.title),wt("span",{className:"fc-popover-close "+t.getIconClass("close"),title:n.closeHint,onClick:this.handleCloseClick})),wt("div",{className:"fc-popover-body "+t.getClass("popoverContent")},r.children)),r.parentEl)},t.prototype.componentDidMount=function(){document.addEventListener("mousedown",this.handleDocumentMouseDown),document.addEventListener("keydown",this.handleDocumentKeyDown),this.updateSize()},t.prototype.componentWillUnmount=function(){document.removeEventListener("mousedown",this.handleDocumentMouseDown),document.removeEventListener("keydown",this.handleDocumentKeyDown)},t.prototype.updateSize=function(){var e=this.context.isRtl,t=this.props,n=t.alignmentEl,r=t.alignGridTop,o=this.rootEl,i=function(e){for(var t=ri(e),n=e.getBoundingClientRect(),r=0,o=t;r<o.length;r++){var i=No(n,o[r].getBoundingClientRect());if(!i)return null;n=i}return n}(n);if(i){var a=o.getBoundingClientRect(),c=r?_t(n,".fc-scrollgrid").getBoundingClientRect().top:i.top,s=e?i.right-a.width:i.left;c=Math.max(c,10),s=Math.min(s,document.documentElement.clientWidth-10-a.width),s=Math.max(s,10);var u=o.offsetParent.getBoundingClientRect();Rt(o,{top:c-u.top,left:s-u.left})}},t}(mi),Zc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.handleRootEl=function(e){t.rootEl=e,e?t.context.registerInteractiveComponent(t,{el:e,useEventCenter:!1}):t.context.unregisterInteractiveComponent(t)},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this.context,t=e.options,n=e.dateEnv,r=this.props,o=r.startDate,i=r.todayRange,a=r.dateProfile,c=n.format(o,t.dayPopoverFormat);return wt(Mc,{date:o,dateProfile:a,todayRange:i,elRef:this.handleRootEl},(function(e,t,n){return wt(Fc,{elRef:e,id:r.id,title:c,extraClassNames:["fc-more-popover"].concat(t),extraAttrs:n,parentEl:r.parentEl,alignmentEl:r.alignmentEl,alignGridTop:r.alignGridTop,onClose:r.onClose},wt(Rc,{date:o,dateProfile:a,todayRange:i},(function(e,t){return t&&wt("div",{className:"fc-more-popover-misc",ref:e},t)})),r.children)}))},t.prototype.queryHit=function(e,t,n,r){var o=this.rootEl,i=this.props;return e>=0&&e<n&&t>=0&&t<r?{dateProfile:i.dateProfile,dateSpan:(0,it.pi)({allDay:!0,range:{start:i.startDate,end:i.endDate}},i.extraDateSpan),dayEl:o,rect:{left:0,top:0,right:n,bottom:r},layer:1}:null},t}(bi),Lc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.linkElRef=xt(),t.state={isPopoverOpen:!1,popoverId:Ft()},t.handleClick=function(e){var n=t,r=n.props,o=n.context,i=o.options.moreLinkClick,a=Uc(r).start;function c(e){var t=e.eventRange,n=t.def,r=t.instance,i=t.range;return{event:new wo(o,n,r),start:o.dateEnv.toDate(i.start),end:o.dateEnv.toDate(i.end),isStart:e.isStart,isEnd:e.isEnd}}"function"==typeof i&&(i=i({date:a,allDay:Boolean(r.allDayDate),allSegs:r.allSegs.map(c),hiddenSegs:r.hiddenSegs.map(c),jsEvent:e,view:o.viewApi})),i&&"popover"!==i?"string"==typeof i&&o.calendarApi.zoomTo(a,i):t.setState({isPopoverOpen:!0})},t.handlePopoverClose=function(){t.setState({isPopoverOpen:!1})},t}return(0,it.ZT)(t,e),t.prototype.render=function(){var e=this,t=this.props,n=this.state;return wt(fi.Consumer,null,(function(r){var o=r.viewApi,i=r.options,a=r.calendarApi,c=i.moreLinkText,s=t.moreCnt,u=Uc(t),l="function"==typeof c?c.call(a,s):"+"+s+" "+c,d=$t(i.moreLinkHint,[s],l),f={num:s,shortText:"+"+s,text:l,view:o};return wt(Et,null,Boolean(t.moreCnt)&&wt(Oi,{elRef:e.linkElRef,hookProps:f,classNames:i.moreLinkClassNames,content:i.moreLinkContent,defaultContent:t.defaultContent||Hc,didMount:i.moreLinkDidMount,willUnmount:i.moreLinkWillUnmount},(function(r,o,i,a){return t.children(r,["fc-more-link"].concat(o),i,a,e.handleClick,d,n.isPopoverOpen,n.isPopoverOpen?n.popoverId:"")})),n.isPopoverOpen&&wt(Zc,{id:n.popoverId,startDate:u.start,endDate:u.end,dateProfile:t.dateProfile,todayRange:t.todayRange,extraDateSpan:t.extraDateSpan,parentEl:e.parentEl,alignmentEl:t.alignmentElRef.current,alignGridTop:t.alignGridTop,onClose:e.handlePopoverClose},t.popoverContent()))}))},t.prototype.componentDidMount=function(){this.updateParentEl()},t.prototype.componentDidUpdate=function(){this.updateParentEl()},t.prototype.updateParentEl=function(){this.linkElRef.current&&(this.parentEl=_t(this.linkElRef.current,".fc-view-harness"))},t}(mi);function Hc(e){return e.text}function Uc(e){if(e.allDayDate)return{start:e.allDayDate,end:rn(e.allDayDate,1)};var t,n=e.hiddenSegs;return{start:zc(n),end:(t=n,t.reduce(Vc).eventRange.range.end)}}function zc(e){return e.reduce(Wc).eventRange.range.start}function Wc(e,t){return e.eventRange.range.start<t.eventRange.range.start?e:t}function Vc(e,t){return e.eventRange.range.end>t.eventRange.range.end?e:t}const Yc=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t._calendarApi=new Ao,t}return(0,it.ZT)(t,e),t.prototype.render=function(){return I.createElement(Ea,{optionOverrides:this.props,calendarApi:this._calendarApi},(function(e){return I.createElement(Ya,{options:e.calendarOptions,theme:e.theme,emitter:e.emitter},(function(t,n,r,o){return I.createElement("div",{className:t.join(" "),style:{height:n}},I.createElement(za,(0,it.pi)({isHeightAuto:r,forPrint:o},e)))}))}))},t.prototype.getApi=function(){return this._calendarApi},t}(I.Component);var qc=a(81959),Gc={};Gc.styleTagTransform=vt(),Gc.setAttributes=pt(),Gc.insert=dt().bind(null,"head"),Gc.domAPI=ut(),Gc.insertStyleElement=mt();ct()(qc.Z,Gc);qc.Z&&qc.Z.locals&&qc.Z.locals;
|
|
57
57
|
/*!
|
|
58
58
|
FullCalendar Scheduler v5.11.3
|
|
59
59
|
Docs & License: https://fullcalendar.io/scheduler
|