PHP Classes

File: front/js/qalendar_latest.js

Recommend this page to a friend!
  Classes of Rodrigo Faustino   Eventos   front/js/qalendar_latest.js   Download  
File: front/js/qalendar_latest.js
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Eventos
Manage events that happen at given dates
Author: By
Last change:
Date: 1 month ago
Size: 187,611 bytes
 

Contents

Class file image Download
/** * Minified by jsDelivr using Terser v5.19.2. * Original file: /npm/qalendar@3.9.0/dist/qalendar.umd.js * * Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files */ !function(e,t){"object"==typeof exports&&typeof module<"u"?t(exports,require("vue")):"function"==typeof define&&define.amd?define(["exports","vue"],t):t((e=typeof globalThis<"u"?globalThis:e||self).Qalendar={},e.Vue)}(this,(function(e,t){"use strict";var n,i=Object.defineProperty,a=(e,t,n)=>(((e,t,n)=>{t in e?i(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n),r=((n=r||{}).SINGLE_DAY_TIMED="SINGLE_DAY_TIMED",n.SINGLE_DAY_FULL_DAY="SINGLE_DAY_FULL_DAY",n.SINGLE_HYBRID_DAY_TIMED="SINGLE_HYBRID_DAY_TIMED",n.MULTI_DAY_TIMED="MULTI_DAY_TIMED",n.MULTI_DAY_FULL_DAY="MULTI_DAY_FULL_DAY",n);const o={yellow:"rgb(244, 180, 0)",blue:"rgb(38, 132, 255)",green:"rgb(51, 182, 121)",red:"rgb(255, 84, 86)",pink:"rgb(239, 139, 239)",purple:"rgb(157, 114, 245)",turquoise:"rgb(64, 190, 190)",brown:"rgb(169, 99, 30)"},s=/^\d{4}-\d{2}-\d{2} \d{2}:\d{2}$/,l=/^\d{4}-\d{2}-\d{2}$/;var c=(e=>(e.REGULAR="regular",e.SHORTENED="shortened",e.FLEXIBLE="flexible",e))(c||{});class d{static getBrowserNavigatorLocale(){return"object"!=typeof navigator?"en-US":navigator.languages&&navigator.languages.length?navigator.languages[0]:navigator.language}static hasSlotContent(e){return!!e&&e().some((e=>!(e.type===t.Comment||Array.isArray(e.children)&&!e.children.length)&&(e.type!==t.Text||"string"==typeof e.children&&""!==e.children.trim())))}static getEventType(e,t){const n=s.test(e.time.start)&&s.test(e.time.end),i=l.test(e.time.start)&&l.test(e.time.end);if(n)return this.getTimedEventType(e,t);if(i)return this.getFullDayEventType(e,t);throw new Error("Event has invalid type")}static getTimedEventType(e,t){if(t.dateStringsHaveEqualDates(e.time.start,e.time.end))return r.SINGLE_DAY_TIMED;if(t.dayMode===c.FLEXIBLE){const n=t.setHourInDateTimeString(t.addDaysToDateTimeString(1,t.dateStringFrom(e.time.start)),f.getHourFromTimePoints(t.DAY_END));if(e.time.end<n)return r.SINGLE_HYBRID_DAY_TIMED}return r.MULTI_DAY_TIMED}static getFullDayEventType(e,t){return t.dateStringsHaveEqualDates(e.time.start,e.time.end)?r.SINGLE_DAY_FULL_DAY:r.MULTI_DAY_FULL_DAY}static isUIEventTouchEvent(e){return"touches"in e&&"object"==typeof e.touches}}var u=(e=>(e[e.MIDNIGHT=0]="MIDNIGHT",e[e.ONE_AM=100]="ONE_AM",e[e.TWO_AM=200]="TWO_AM",e[e.THREE_AM=300]="THREE_AM",e[e.FOUR_AM=400]="FOUR_AM",e[e.FIVE_AM=500]="FIVE_AM",e[e.SIX_AM=600]="SIX_AM",e[e.SEVEN_AM=700]="SEVEN_AM",e[e.EIGHT_AM=800]="EIGHT_AM",e[e.NINE_AM=900]="NINE_AM",e[e.TEN_AM=1e3]="TEN_AM",e[e.ELEVEN_AM=1100]="ELEVEN_AM",e[e.TWELVE_PM=1200]="TWELVE_PM",e[e.ONE_PM=1300]="ONE_PM",e[e.TWO_PM=1400]="TWO_PM",e[e.THREE_PM=1500]="THREE_PM",e[e.FOUR_PM=1600]="FOUR_PM",e[e.FIVE_PM=1700]="FIVE_PM",e[e.SIX_PM=1800]="SIX_PM",e[e.SEVEN_PM=1900]="SEVEN_PM",e[e.EIGHT_PM=2e3]="EIGHT_PM",e[e.NINE_PM=2100]="NINE_PM",e[e.TEN_PM=2200]="TEN_PM",e[e.ELEVEN_PM=2300]="ELEVEN_PM",e[e.TWELVE_AM=2400]="TWELVE_AM",e))(u||{});class m extends Date{get fullYear(){return this.getFullYear()}get month(){return this.getMonth()}get date(){return this.getDate()}}var h=(e=>(e.SUNDAY="sunday",e.MONDAY="monday",e))(h||{});class f{constructor(e="monday",t=null,n={start:0,end:2400}){a(this,"FIRST_DAY_OF_WEEK"),a(this,"CALENDAR_LOCALE"),a(this,"ALL_HOURS",[0,100,200,300,400,500,600,700,800,900,1e3,1100,1200,1300,1400,1500,1600,1700,1800,1900,2e3,2100,2200,2300]),a(this,"DAY_START"),a(this,"DAY_END"),a(this,"HOURS_PER_DAY",24),a(this,"MS_PER_DAY"),this.FIRST_DAY_OF_WEEK=e,this.CALENDAR_LOCALE=t||d.getBrowserNavigatorLocale(),this.DAY_START=n.start,this.DAY_END=n.end,this.HOURS_PER_DAY=(()=>{const e=f.getHourFromTimePoints(this.DAY_END),t=f.getHourFromTimePoints(this.DAY_START);return e>t?e-t:this.HOURS_PER_DAY-t+e})(),this.MS_PER_DAY=864e5}get dayMode(){return 0===this.DAY_START&&2400===this.DAY_END?c.REGULAR:this.DAY_START>=this.DAY_END?c.FLEXIBLE:c.SHORTENED}getDatesBetweenTwoDates(e,t){for(var n=[],i=new Date(e);i<=t;i.setDate(i.getDate()+1))n.push(new Date(i.getFullYear(),i.getMonth(),i.getDate()));return n}getCalendarWeekDateObjects(e){let t;t="sunday"===this.FIRST_DAY_OF_WEEK?e.getDay():0===e.getDay()?6:e.getDay()-1;const n=e.getDate()-t,i=new Date(e.getFullYear(),e.getMonth(),n);return this.getDatesBetweenTwoDates(i,new Date(i.getFullYear(),i.getMonth(),i.getDate()+6))}getCalendarMonthSplitInWeeks(e,t){const n=[],i=new Date(e,t,1),a=new Date(i.getFullYear(),i.getMonth(),1),r=this.getCalendarWeekDateObjects(a);n.push(r);let o=!0,s=r[0];const l=i.getMonth();for(;o;){const e=new Date(s.getFullYear(),s.getMonth(),s.getDate()+7);e.getMonth()===l?(n.push(this.getCalendarWeekDateObjects(e)),s=e):o=!1}return n}getCalendarYearMonths(e){const t=[];let n=0;for(;n<=11;)t.push(new Date(e,n,1)),n++;return t}getHourAndMinutesFromTimePoints(e){const t=e.toString();let n="0",i="0";return 4===t.length?(n=t[0]+t[1],i=t[2]+t[3]):3===t.length&&(n=t[0],i=t[1]+t[2]),{hour:+n,minutes:+i}}getHourLocaleStringFromHourDigits(e){const{hour:t,minutes:n}=this.getHourAndMinutesFromTimePoints(e),i=new Date(2100,0,1,+t,+n,0).toLocaleTimeString(this.CALENDAR_LOCALE,{hour:"2-digit"});return"0"===i[0]?i.substring(1):i}getLocalizedNameOfWeekday(e,t="short"){return e.toLocaleDateString(this.CALENDAR_LOCALE,{weekday:t})}getLocalizedNameOfMonth(e,t="short"){return e.toLocaleDateString(this.CALENDAR_LOCALE,{month:t})}getLocalizedDateString(e){return e.toLocaleDateString(this.CALENDAR_LOCALE)}getDateTimeStringFromDate(e,t){const n=e.getFullYear(),i=e.getMonth()+1,a=e.getDate(),r=`${n}-${i>=10?i:"0"+i}-${a>=10?a:"0"+a}`;if(!t){const t=e.getHours(),n=e.getMinutes();return`${r} ${t>=10?t:"0"+t}:${n>=10?n:"0"+n}`}return`${r} ${"start"===t?"00:00":"23:59"}`}getLocalizedTime(e){const{year:t,month:n,date:i,hour:a,minutes:r}=this.getAllVariablesFromDateTimeString(e);return new Date(t,n,i,a,r).toLocaleTimeString(this.CALENDAR_LOCALE,{hour:"numeric",minute:"numeric"})}getLocalizedHour(e){return e.toLocaleTimeString(this.CALENDAR_LOCALE,{hour:"2-digit"})}getLocalizedTimeRange(e,t){return`${this.getLocalizedTime(e)} - ${this.getLocalizedTime(t)}`}getAllVariablesFromDateTimeString(e){return{year:+e.substring(0,4),month:+e.substring(5,7)-1,date:+e.substring(8,10),hour:this.hourFrom(e),minutes:this.minutesFrom(e)}}dateIsToday(e){const{fullYear:t,month:n,date:i}=new m,{fullYear:a,month:r,date:o}=new m(e);return t===a&&n===r&&i===o}dateIsInWeek(e,t){const{date:n,month:i,fullYear:a}=new m(e);for(const e of t){const t=n===e.getDate(),r=i===e.getMonth(),o=a===e.getFullYear();if(t&&r&&o)return!0}return!1}getDateStringFromDate(e){const t=e.getFullYear(),n=e.getMonth()+1,i=e.getDate();return`${t}-${n>=10?n:"0"+n}-${i>=10?i:"0"+i}`}addMinutesToDateTimeString(e,t){const{year:n,month:i,date:a,hour:r,minutes:o}=this.getAllVariablesFromDateTimeString(t),s=new Date(n,i,a,r,o),l=new Date(s.getTime()+6e4*e);return this.getDateTimeStringFromDate(l)}addDaysToDateTimeString(e,t){return this.addMinutesToDateTimeString(1440*e,t)}dateStringsHaveEqualDates(e,t){const{year:n,month:i,date:a}=this.getAllVariablesFromDateTimeString(e),{year:r,month:o,date:s}=this.getAllVariablesFromDateTimeString(t);return n===r&&i===o&&a===s}setDateToEndOfDay(e){return new Date(e.getFullYear(),e.getMonth(),e.getDate(),23,59,59,999)}turnMinutesIntoPercentageOfHour(e){const t=1.6666666666666667*e;return t<10?"0"+t:t.toString()}getPercentageOfDayFromDateTimeString(e,t,n){const i=100*this.hourFrom(e),a=+e.substring(14,16),r=+this.turnMinutesIntoPercentageOfHour(+a);if(n>t){return(i+r-t)/(n-t)*100}const o=u.TWELVE_AM-t,s=i+r;return(s>=t?s-t:o+s)/(o+n)*100}getTimeFromClick(e,t){if(t<=0)throw new Error("weekHeight cannot be a negative number");if(e<0)throw new Error("clickOffsetY cannot be a negative number");const n=this.DAY_START/100,i=t/this.HOURS_PER_DAY,a=Math.floor(e%i/(i/60));if(this.DAY_END<=this.DAY_START){const n=t-this.DAY_END/100*i;if(e>n){const t=Math.floor((e-n)/i);return`${this.doubleDigit(t)}:${this.doubleDigit(a)}`}}const r=Math.floor(e/i)+n;return`${this.doubleDigit(r)}:${this.doubleDigit(a)}`}setSegmentOfDateTimeString(e,t){if(t.hour<0||t.hour>23)throw new Error("Invalid hour");const n=this.doubleDigit(t.hour);return e=e.replace(/\d{2}:/,n+":")}isTrailingOrLeadingDate(e,t){const{month:n}=new m(e);return t!==n}static getTimePointsFromHour(e){if(e<0||e>24||e%1!=0)throw new Error("Invalid day boundary");return 0===e?e:100*e}static getHourFromTimePoints(e){if(e<0||e>2400||e%100!=0)throw new Error("Invalid time points");return 0===e?e:e/100}getTimelineHours(){return this.dayMode!==c.FLEXIBLE?this.ALL_HOURS.filter((e=>e>=this.DAY_START&&e<this.DAY_END)):[...this.ALL_HOURS.filter((e=>e>=this.DAY_START)),...this.ALL_HOURS.filter((e=>e<this.DAY_END))]}dateStringFrom(e){return e.substring(0,10)}timeStringFrom(e){return e.substring(11,16)}hourFrom(e){return+e.substring(11,13)}minutesFrom(e){return+e.substring(14,16)}areDaysConsecutive(e,t){return this.dateStringFrom(this.addDaysToDateTimeString(1,e))===this.dateStringFrom(t)}setHourInDateTimeString(e,t){const n=this.doubleDigit(t);return e=e.replace(/\d{2}:/,n+":")}setMinutesInDateTimeString(e,t){const n=this.doubleDigit(t);return e=e.replace(/:\d{2}/,":"+n)}getDateTimeStringDayBoundariesFrom(e){if(this.DAY_END<=this.DAY_START){const t=this.addDaysToDateTimeString(1,e),n=this.setHourInDateTimeString(t,this.getHourAndMinutesFromTimePoints(this.DAY_END).hour);return{start:this.setHourInDateTimeString(e,this.getHourAndMinutesFromTimePoints(this.DAY_START).hour),end:n}}const t=this.setHourInDateTimeString(e,this.getHourAndMinutesFromTimePoints(this.DAY_START).hour);let n;return this.DAY_END===u.TWELVE_AM?(n=this.setHourInDateTimeString(e,23),n=this.setMinutesInDateTimeString(n,59)):n=this.setHourInDateTimeString(e,this.getHourAndMinutesFromTimePoints(this.DAY_END).hour),{start:t,end:n}}doubleDigit(e){if(e<0||e>60)throw new Error("Invalid number. This is not a valid hour or minute");return e<10?"0"+e:String(e)}}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e){return(p="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})(e)}function y(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function b(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:typeof Symbol<"u"&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,a,r=[],o=!0,s=!1;try{for(n=n.call(e);!(o=(i=n.next()).done)&&(r.push(i.value),!t||r.length!==t);o=!0);}catch(e){s=!0,a=e}finally{try{!o&&null!=n.return&&n.return()}finally{if(s)throw a}}return r}}(e,t)||E(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.")}()}function D(e){return function(e){if(Array.isArray(e))return w(e)}(e)||function(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||E(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function E(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return w(e,t)}}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var S=function(){},T={},C={},_=null,A={mark:S,measure:S};try{typeof window<"u"&&(T=window),typeof document<"u"&&(C=document),typeof MutationObserver<"u"&&(_=MutationObserver),typeof performance<"u"&&(A=performance)}catch{}var M=(T.navigator||{}).userAgent,I=void 0===M?"":M,N=T,x=C,P=_,O=A;N.document;var L,F,B,R,Y,z=!!x.documentElement&&!!x.head&&"function"==typeof x.addEventListener&&"function"==typeof x.createElement,W=~I.indexOf("MSIE")||~I.indexOf("Trident/"),H="___FONT_AWESOME___",V=16,j="fa",$="svg-inline--fa",X="data-fa-i2svg",U="data-fa-pseudo-element",q="data-fa-pseudo-element-pending",G="data-prefix",K="data-icon",Q="fontawesome-i2svg",J="async",Z=["HTML","HEAD","STYLE","SCRIPT"],ee=function(){try{return"production"===process.env.NODE_ENV}catch{return!1}}(),te="classic",ne="sharp",ie=[te,ne];function ae(e){return new Proxy(e,{get:function(e,t){return t in e?e[t]:e[te]}})}var re=ae((b(L={},te,{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fad:"duotone","fa-duotone":"duotone",fab:"brands","fa-brands":"brands",fak:"kit","fa-kit":"kit"}),b(L,ne,{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular"}),L)),oe=ae((b(F={},te,{solid:"fas",regular:"far",light:"fal",thin:"fat",duotone:"fad",brands:"fab",kit:"fak"}),b(F,ne,{solid:"fass",regular:"fasr"}),F)),se=ae((b(B={},te,{fab:"fa-brands",fad:"fa-duotone",fak:"fa-kit",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"}),b(B,ne,{fass:"fa-solid",fasr:"fa-regular"}),B)),le=ae((b(R={},te,{"fa-brands":"fab","fa-duotone":"fad","fa-kit":"fak","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"}),b(R,ne,{"fa-solid":"fass","fa-regular":"fasr"}),R)),ce=/fa(s|r|l|t|d|b|k|ss|sr)?[\-\ ]/,de="fa-layers-text",ue=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp|Kit)?.*/i,me=ae((b(Y={},te,{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"}),b(Y,ne,{900:"fass",400:"fasr"}),Y)),he=[1,2,3,4,5,6,7,8,9,10],fe=he.concat([11,12,13,14,15,16,17,18,19,20]),ge=["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"],ve={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},pe=new Set;Object.keys(oe[te]).map(pe.add.bind(pe)),Object.keys(oe[ne]).map(pe.add.bind(pe));var ye=[].concat(ie,D(pe),["2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ve.GROUP,ve.SWAP_OPACITY,ve.PRIMARY,ve.SECONDARY]).concat(he.map((function(e){return"".concat(e,"x")}))).concat(fe.map((function(e){return"w-".concat(e)}))),be=N.FontAwesomeConfig||{};if(x&&"function"==typeof x.querySelector){[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((function(e){var t=k(e,2),n=t[0],i=t[1],a=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=x.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(n));null!=a&&(be[i]=a)}))}var ke={styleDefault:"solid",familyDefault:"classic",cssPrefix:j,replacementClass:$,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};be.familyPrefix&&(be.cssPrefix=be.familyPrefix);var De=v(v({},ke),be);De.autoReplaceSvg||(De.observeMutations=!1);var Ee={};Object.keys(ke).forEach((function(e){Object.defineProperty(Ee,e,{enumerable:!0,set:function(t){De[e]=t,we.forEach((function(e){return e(Ee)}))},get:function(){return De[e]}})})),Object.defineProperty(Ee,"familyPrefix",{enumerable:!0,set:function(e){De.cssPrefix=e,we.forEach((function(e){return e(Ee)}))},get:function(){return De.cssPrefix}}),N.FontAwesomeConfig=Ee;var we=[];var Se=V,Te={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};var Ce="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ";function _e(){for(var e=12,t="";e-- >0;)t+=Ce[62*Math.random()|0];return t}function Ae(e){for(var t=[],n=(e||[]).length>>>0;n--;)t[n]=e[n];return t}function Me(e){return e.classList?Ae(e.classList):(e.getAttribute("class")||"").split(" ").filter((function(e){return e}))}function Ie(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Ne(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,": ").concat(e[n].trim(),";")}),"")}function xe(e){return e.size!==Te.size||e.x!==Te.x||e.y!==Te.y||e.rotate!==Te.rotate||e.flipX||e.flipY}var Pe=':root, :host {\n --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Solid";\n --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Regular";\n --fa-font-light: normal 300 1em/1 "Font Awesome 6 Light";\n --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Thin";\n --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n overflow: visible;\n box-sizing: content-box;\n}\n\n.svg-inline--fa {\n display: var(--fa-display, inline-block);\n height: 1em;\n overflow: visible;\n vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n margin-right: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n margin-left: var(--fa-pull-margin, 0.3em);\n width: auto;\n}\n.svg-inline--fa.fa-li {\n width: var(--fa-li-width, 2em);\n top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n display: inline-block;\n position: absolute;\n text-align: center;\n}\n\n.fa-layers {\n display: inline-block;\n height: 1em;\n position: relative;\n text-align: center;\n vertical-align: -0.125em;\n width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-text {\n left: 50%;\n top: 50%;\n -webkit-transform: translate(-50%, -50%);\n transform: translate(-50%, -50%);\n -webkit-transform-origin: center center;\n transform-origin: center center;\n}\n\n.fa-layers-counter {\n background-color: var(--fa-counter-background-color, #ff253a);\n border-radius: var(--fa-counter-border-radius, 1em);\n box-sizing: border-box;\n color: var(--fa-inverse, #fff);\n line-height: var(--fa-counter-line-height, 1);\n max-width: var(--fa-counter-max-width, 5em);\n min-width: var(--fa-counter-min-width, 1.5em);\n overflow: hidden;\n padding: var(--fa-counter-padding, 0.25em 0.5em);\n right: var(--fa-right, 0);\n text-overflow: ellipsis;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-counter-scale, 0.25));\n transform: scale(var(--fa-counter-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n bottom: var(--fa-bottom, 0);\n right: var(--fa-right, 0);\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom right;\n transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n bottom: var(--fa-bottom, 0);\n left: var(--fa-left, 0);\n right: auto;\n top: auto;\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: bottom left;\n transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n top: var(--fa-top, 0);\n right: var(--fa-right, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top right;\n transform-origin: top right;\n}\n\n.fa-layers-top-left {\n left: var(--fa-left, 0);\n right: auto;\n top: var(--fa-top, 0);\n -webkit-transform: scale(var(--fa-layers-scale, 0.25));\n transform: scale(var(--fa-layers-scale, 0.25));\n -webkit-transform-origin: top left;\n transform-origin: top left;\n}\n\n.fa-1x {\n font-size: 1em;\n}\n\n.fa-2x {\n font-size: 2em;\n}\n\n.fa-3x {\n font-size: 3em;\n}\n\n.fa-4x {\n font-size: 4em;\n}\n\n.fa-5x {\n font-size: 5em;\n}\n\n.fa-6x {\n font-size: 6em;\n}\n\n.fa-7x {\n font-size: 7em;\n}\n\n.fa-8x {\n font-size: 8em;\n}\n\n.fa-9x {\n font-size: 9em;\n}\n\n.fa-10x {\n font-size: 10em;\n}\n\n.fa-2xs {\n font-size: 0.625em;\n line-height: 0.1em;\n vertical-align: 0.225em;\n}\n\n.fa-xs {\n font-size: 0.75em;\n line-height: 0.0833333337em;\n vertical-align: 0.125em;\n}\n\n.fa-sm {\n font-size: 0.875em;\n line-height: 0.0714285718em;\n vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n font-size: 1.25em;\n line-height: 0.05em;\n vertical-align: -0.075em;\n}\n\n.fa-xl {\n font-size: 1.5em;\n line-height: 0.0416666682em;\n vertical-align: -0.125em;\n}\n\n.fa-2xl {\n font-size: 2em;\n line-height: 0.03125em;\n vertical-align: -0.1875em;\n}\n\n.fa-fw {\n text-align: center;\n width: 1.25em;\n}\n\n.fa-ul {\n list-style-type: none;\n margin-left: var(--fa-li-margin, 2.5em);\n padding-left: 0;\n}\n.fa-ul > li {\n position: relative;\n}\n\n.fa-li {\n left: calc(var(--fa-li-width, 2em) * -1);\n position: absolute;\n text-align: center;\n width: var(--fa-li-width, 2em);\n line-height: inherit;\n}\n\n.fa-border {\n border-color: var(--fa-border-color, #eee);\n border-radius: var(--fa-border-radius, 0.1em);\n border-style: var(--fa-border-style, solid);\n border-width: var(--fa-border-width, 0.08em);\n padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n float: left;\n margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n float: right;\n margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n -webkit-animation-name: fa-beat;\n animation-name: fa-beat;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n -webkit-animation-name: fa-bounce;\n animation-name: fa-bounce;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n -webkit-animation-name: fa-fade;\n animation-name: fa-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n -webkit-animation-name: fa-beat-fade;\n animation-name: fa-beat-fade;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n -webkit-animation-name: fa-flip;\n animation-name: fa-flip;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, ease-in-out);\n animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n -webkit-animation-name: fa-shake;\n animation-name: fa-shake;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-delay: var(--fa-animation-delay, 0s);\n animation-delay: var(--fa-animation-delay, 0s);\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 2s);\n animation-duration: var(--fa-animation-duration, 2s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, linear);\n animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n -webkit-animation-name: fa-spin;\n animation-name: fa-spin;\n -webkit-animation-direction: var(--fa-animation-direction, normal);\n animation-direction: var(--fa-animation-direction, normal);\n -webkit-animation-duration: var(--fa-animation-duration, 1s);\n animation-duration: var(--fa-animation-duration, 1s);\n -webkit-animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n -webkit-animation-timing-function: var(--fa-animation-timing, steps(8));\n animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n -webkit-animation-delay: -1ms;\n animation-delay: -1ms;\n -webkit-animation-duration: 1ms;\n animation-duration: 1ms;\n -webkit-animation-iteration-count: 1;\n animation-iteration-count: 1;\n -webkit-transition-delay: 0s;\n transition-delay: 0s;\n -webkit-transition-duration: 0s;\n transition-duration: 0s;\n }\n}\n@-webkit-keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@keyframes fa-beat {\n 0%, 90% {\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 45% {\n -webkit-transform: scale(var(--fa-beat-scale, 1.25));\n transform: scale(var(--fa-beat-scale, 1.25));\n }\n}\n@-webkit-keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@keyframes fa-bounce {\n 0% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 10% {\n -webkit-transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n }\n 30% {\n -webkit-transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n }\n 50% {\n -webkit-transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n }\n 57% {\n -webkit-transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n }\n 64% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n 100% {\n -webkit-transform: scale(1, 1) translateY(0);\n transform: scale(1, 1) translateY(0);\n }\n}\n@-webkit-keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@keyframes fa-fade {\n 50% {\n opacity: var(--fa-fade-opacity, 0.4);\n }\n}\n@-webkit-keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@keyframes fa-beat-fade {\n 0%, 100% {\n opacity: var(--fa-beat-fade-opacity, 0.4);\n -webkit-transform: scale(1);\n transform: scale(1);\n }\n 50% {\n opacity: 1;\n -webkit-transform: scale(var(--fa-beat-fade-scale, 1.125));\n transform: scale(var(--fa-beat-fade-scale, 1.125));\n }\n}\n@-webkit-keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@keyframes fa-flip {\n 50% {\n -webkit-transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n }\n}\n@-webkit-keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@keyframes fa-shake {\n 0% {\n -webkit-transform: rotate(-15deg);\n transform: rotate(-15deg);\n }\n 4% {\n -webkit-transform: rotate(15deg);\n transform: rotate(15deg);\n }\n 8%, 24% {\n -webkit-transform: rotate(-18deg);\n transform: rotate(-18deg);\n }\n 12%, 28% {\n -webkit-transform: rotate(18deg);\n transform: rotate(18deg);\n }\n 16% {\n -webkit-transform: rotate(-22deg);\n transform: rotate(-22deg);\n }\n 20% {\n -webkit-transform: rotate(22deg);\n transform: rotate(22deg);\n }\n 32% {\n -webkit-transform: rotate(-12deg);\n transform: rotate(-12deg);\n }\n 36% {\n -webkit-transform: rotate(12deg);\n transform: rotate(12deg);\n }\n 40%, 100% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n}\n@-webkit-keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n@keyframes fa-spin {\n 0% {\n -webkit-transform: rotate(0deg);\n transform: rotate(0deg);\n }\n 100% {\n -webkit-transform: rotate(360deg);\n transform: rotate(360deg);\n }\n}\n.fa-rotate-90 {\n -webkit-transform: rotate(90deg);\n transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n -webkit-transform: rotate(180deg);\n transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n -webkit-transform: rotate(270deg);\n transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n -webkit-transform: scale(-1, 1);\n transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n -webkit-transform: scale(1, -1);\n transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n -webkit-transform: scale(-1, -1);\n transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n -webkit-transform: rotate(var(--fa-rotate-angle, none));\n transform: rotate(var(--fa-rotate-angle, none));\n}\n\n.fa-stack {\n display: inline-block;\n vertical-align: middle;\n height: 2em;\n position: relative;\n width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n bottom: 0;\n left: 0;\n margin: auto;\n position: absolute;\n right: 0;\n top: 0;\n z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n height: 1em;\n width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n height: 2em;\n width: 2.5em;\n}\n\n.fa-inverse {\n color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n position: absolute;\n width: 1px;\n height: 1px;\n padding: 0;\n margin: -1px;\n overflow: hidden;\n clip: rect(0, 0, 0, 0);\n white-space: nowrap;\n border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n fill: var(--fa-primary-color, currentColor);\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n fill: var(--fa-secondary-color, currentColor);\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n fill: black;\n}\n\n.fad.fa-inverse,\n.fa-duotone.fa-inverse {\n color: var(--fa-inverse, #fff);\n}';function Oe(){var e=j,t=$,n=Ee.cssPrefix,i=Ee.replacementClass,a=Pe;if(n!==e||i!==t){var r=new RegExp("\\.".concat(e,"\\-"),"g"),o=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");a=a.replace(r,".".concat(n,"-")).replace(o,"--".concat(n,"-")).replace(s,".".concat(i))}return a}var Le=!1;function Fe(){Ee.autoAddCss&&!Le&&(function(e){if(e&&z){var t=x.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;for(var n=x.head.childNodes,i=null,a=n.length-1;a>-1;a--){var r=n[a],o=(r.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(i=r)}x.head.insertBefore(t,i)}}(Oe()),Le=!0)}var Be={mixout:function(){return{dom:{css:Oe,insertCss:Fe}}},hooks:function(){return{beforeDOMElementCreation:function(){Fe()},beforeI2svg:function(){Fe()}}}},Re=N||{};Re[H]||(Re[H]={}),Re[H].styles||(Re[H].styles={}),Re[H].hooks||(Re[H].hooks={}),Re[H].shims||(Re[H].shims=[]);var Ye=Re[H],ze=[],We=!1;function He(e){var t=e.tag,n=e.attributes,i=void 0===n?{}:n,a=e.children,r=void 0===a?[]:a;return"string"==typeof e?Ie(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce((function(t,n){return t+"".concat(n,'="').concat(Ie(e[n]),'" ')}),"").trim()}(i),">").concat(r.map(He).join(""),"</").concat(t,">")}function Ve(e,t,n){if(e&&e[t]&&e[t][n])return{prefix:t,iconName:n,icon:e[t][n]}}z&&((We=(x.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(x.readyState))||x.addEventListener("DOMContentLoaded",(function e(){x.removeEventListener("DOMContentLoaded",e),We=1,ze.map((function(e){return e()}))})));var je=function(e,t,n,i){var a,r,o,s=Object.keys(e),l=s.length,c=void 0!==i?function(e,t){return function(n,i,a,r){return e.call(t,n,i,a,r)}}(t,i):t;for(void 0===n?(a=1,o=e[s[0]]):(a=0,o=n);a<l;a++)o=c(o,e[r=s[a]],r,e);return o};function $e(e){var t=function(e){for(var t=[],n=0,i=e.length;n<i;){var a=e.charCodeAt(n++);if(a>=55296&&a<=56319&&n<i){var r=e.charCodeAt(n++);56320==(64512&r)?t.push(((1023&a)<<10)+(1023&r)+65536):(t.push(a),n--)}else t.push(a)}return t}(e);return 1===t.length?t[0].toString(16):null}function Xe(e){return Object.keys(e).reduce((function(t,n){var i=e[n];return!!i.icon?t[i.iconName]=i.icon:t[n]=i,t}),{})}function Ue(e,t){var n=(arguments.length>2&&void 0!==arguments[2]?arguments[2]:{}).skipHooks,i=void 0!==n&&n,a=Xe(t);"function"!=typeof Ye.hooks.addPack||i?Ye.styles[e]=v(v({},Ye.styles[e]||{}),a):Ye.hooks.addPack(e,Xe(t)),"fas"===e&&Ue("fa",t)}var qe,Ge,Ke,Qe=Ye.styles,Je=Ye.shims,Ze=(b(qe={},te,Object.values(se[te])),b(qe,ne,Object.values(se[ne])),qe),et=null,tt={},nt={},it={},at={},rt={},ot=(b(Ge={},te,Object.keys(re[te])),b(Ge,ne,Object.keys(re[ne])),Ge);function st(e,t){var n=t.split("-"),i=n[0],a=n.slice(1).join("-");return i!==e||""===a||function(e){return~ye.indexOf(e)}(a)?null:a}var lt=function(){var e=function(e){return je(Qe,(function(t,n,i){return t[i]=je(n,e,{}),t}),{})};tt=e((function(e,t,n){(t[3]&&(e[t[3]]=n),t[2])&&t[2].filter((function(e){return"number"==typeof e})).forEach((function(t){e[t.toString(16)]=n}));return e})),nt=e((function(e,t,n){(e[n]=n,t[2])&&t[2].filter((function(e){return"string"==typeof e})).forEach((function(t){e[t]=n}));return e})),rt=e((function(e,t,n){var i=t[2];return e[n]=n,i.forEach((function(t){e[t]=n})),e}));var t="far"in Qe||Ee.autoFetchSvg,n=je(Je,(function(e,n){var i=n[0],a=n[1],r=n[2];return"far"===a&&!t&&(a="fas"),"string"==typeof i&&(e.names[i]={prefix:a,iconName:r}),"number"==typeof i&&(e.unicodes[i.toString(16)]={prefix:a,iconName:r}),e}),{names:{},unicodes:{}});it=n.names,at=n.unicodes,et=ft(Ee.styleDefault,{family:Ee.familyDefault})};function ct(e,t){return(tt[e]||{})[t]}function dt(e,t){return(rt[e]||{})[t]}function ut(e){return it[e]||{prefix:null,iconName:null}}function mt(){return et}(function(e){we.push(e)})((function(e){et=ft(e.styleDefault,{family:Ee.familyDefault})})),lt();var ht=function(){return{prefix:null,iconName:null,rest:[]}};function ft(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).family,n=void 0===t?te:t,i=re[n][e],a=oe[n][e]||oe[n][i],r=e in Ye.styles?e:null;return a||r||null}var gt=(b(Ke={},te,Object.keys(se[te])),b(Ke,ne,Object.keys(se[ne])),Ke);function vt(e){var t,n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).skipLookups,i=void 0!==n&&n,a=(b(t={},te,"".concat(Ee.cssPrefix,"-").concat(te)),b(t,ne,"".concat(Ee.cssPrefix,"-").concat(ne)),t),r=null,o=te;(e.includes(a[te])||e.some((function(e){return gt[te].includes(e)})))&&(o=te),(e.includes(a[ne])||e.some((function(e){return gt[ne].includes(e)})))&&(o=ne);var s=e.reduce((function(e,t){var n=st(Ee.cssPrefix,t);if(Qe[t]?(t=Ze[o].includes(t)?le[o][t]:t,r=t,e.prefix=t):ot[o].indexOf(t)>-1?(r=t,e.prefix=ft(t,{family:o})):n?e.iconName=n:t!==Ee.replacementClass&&t!==a[te]&&t!==a[ne]&&e.rest.push(t),!i&&e.prefix&&e.iconName){var s="fa"===r?ut(e.iconName):{},l=dt(e.prefix,e.iconName);s.prefix&&(r=null),e.iconName=s.iconName||l||e.iconName,e.prefix=s.prefix||e.prefix,"far"===e.prefix&&!Qe.far&&Qe.fas&&!Ee.autoFetchSvg&&(e.prefix="fas")}return e}),ht());return(e.includes("fa-brands")||e.includes("fab"))&&(s.prefix="fab"),(e.includes("fa-duotone")||e.includes("fad"))&&(s.prefix="fad"),!s.prefix&&o===ne&&(Qe.fass||Ee.autoFetchSvg)&&(s.prefix="fass",s.iconName=dt(s.prefix,s.iconName)||s.iconName),("fa"===s.prefix||"fa"===r)&&(s.prefix=mt()||"fas"),s}var pt=function(){function e(){(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")})(this,e),this.definitions={}}return function(e,t,n){t&&y(e.prototype,t),n&&y(e,n),Object.defineProperty(e,"prototype",{writable:!1})}(e,[{key:"add",value:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var a=n.reduce(this._pullDefinitions,{});Object.keys(a).forEach((function(t){e.definitions[t]=v(v({},e.definitions[t]||{}),a[t]),Ue(t,a[t]);var n=se[te][t];n&&Ue(n,a[t]),lt()}))}},{key:"reset",value:function(){this.definitions={}}},{key:"_pullDefinitions",value:function(e,t){var n=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(n).map((function(t){var i=n[t],a=i.prefix,r=i.iconName,o=i.icon,s=o[2];e[a]||(e[a]={}),s.length>0&&s.forEach((function(t){"string"==typeof t&&(e[a][t]=o)})),e[a][r]=o})),e}}]),e}(),yt=[],bt={},kt={},Dt=Object.keys(kt);function Et(e,t){for(var n=arguments.length,i=new Array(n>2?n-2:0),a=2;a<n;a++)i[a-2]=arguments[a];return(bt[e]||[]).forEach((function(e){t=e.apply(null,[t].concat(i))})),t}function wt(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];(bt[e]||[]).forEach((function(e){e.apply(null,n)}))}function St(){var e=arguments[0],t=Array.prototype.slice.call(arguments,1);return kt[e]?kt[e].apply(null,t):void 0}function Tt(e){"fa"===e.prefix&&(e.prefix="fas");var t=e.iconName,n=e.prefix||mt();if(t)return t=dt(n,t)||t,Ve(Ct.definitions,n,t)||Ve(Ye.styles,n,t)}var Ct=new pt,_t={i2svg:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return z?(wt("beforeI2svg",e),St("pseudoElements2svg",e),St("i2svg",e)):Promise.reject("Operation requires a DOM of some kind.")},watch:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.autoReplaceSvgRoot;!1===Ee.autoReplaceSvg&&(Ee.autoReplaceSvg=!0),Ee.observeMutations=!0,function(e){z&&(We?setTimeout(e,0):ze.push(e))}((function(){Mt({autoReplaceSvgRoot:t}),wt("watch",e)}))}},At={noAuto:function(){Ee.autoReplaceSvg=!1,Ee.observeMutations=!1,wt("noAuto")},config:Ee,dom:_t,parse:{icon:function(e){if(null===e)return null;if("object"===p(e)&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:dt(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){var t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],n=ft(e[0]);return{prefix:n,iconName:dt(n,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(Ee.cssPrefix,"-"))>-1||e.match(ce))){var i=vt(e.split(" "),{skipLookups:!0});return{prefix:i.prefix||mt(),iconName:dt(i.prefix,i.iconName)||i.iconName}}if("string"==typeof e){var a=mt();return{prefix:a,iconName:dt(a,e)||e}}}},library:Ct,findIconDefinition:Tt,toHtml:He},Mt=function(){var e=(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}).autoReplaceSvgRoot,t=void 0===e?x:e;(Object.keys(Ye.styles).length>0||Ee.autoFetchSvg)&&z&&Ee.autoReplaceSvg&&At.dom.i2svg({node:t})};function It(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((function(e){return He(e)}))}}),Object.defineProperty(e,"node",{get:function(){if(z){var t=x.createElement("div");return t.innerHTML=e.html,t.children}}}),e}function Nt(e){var t=e.icons,n=t.main,i=t.mask,a=e.prefix,r=e.iconName,o=e.transform,s=e.symbol,l=e.title,c=e.maskId,d=e.titleId,u=e.extra,m=e.watchable,h=void 0!==m&&m,f=i.found?i:n,g=f.width,p=f.height,y="fak"===a,b=[Ee.replacementClass,r?"".concat(Ee.cssPrefix,"-").concat(r):""].filter((function(e){return-1===u.classes.indexOf(e)})).filter((function(e){return""!==e||!!e})).concat(u.classes).join(" "),k={children:[],attributes:v(v({},u.attributes),{},{"data-prefix":a,"data-icon":r,class:b,role:u.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(g," ").concat(p)})},D=y&&!~u.classes.indexOf("fa-fw")?{width:"".concat(g/p*16*.0625,"em")}:{};h&&(k.attributes[X]=""),l&&(k.children.push({tag:"title",attributes:{id:k.attributes["aria-labelledby"]||"title-".concat(d||_e())},children:[l]}),delete k.attributes.title);var E=v(v({},k),{},{prefix:a,iconName:r,main:n,mask:i,maskId:c,transform:o,symbol:s,styles:v(v({},D),u.styles)}),w=i.found&&n.found?St("generateAbstractMask",E)||{children:[],attributes:{}}:St("generateAbstractIcon",E)||{children:[],attributes:{}},S=w.children,T=w.attributes;return E.children=S,E.attributes=T,s?function(e){var t=e.prefix,n=e.iconName,i=e.children,a=e.attributes,r=e.symbol,o=!0===r?"".concat(t,"-").concat(Ee.cssPrefix,"-").concat(n):r;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:v(v({},a),{},{id:o}),children:i}]}]}(E):function(e){var t=e.children,n=e.main,i=e.mask,a=e.attributes,r=e.styles,o=e.transform;if(xe(o)&&n.found&&!i.found){var s={x:n.width/n.height/2,y:.5};a.style=Ne(v(v({},r),{},{"transform-origin":"".concat(s.x+o.x/16,"em ").concat(s.y+o.y/16,"em")}))}return[{tag:"svg",attributes:a,children:t}]}(E)}function xt(e){var t=e.content,n=e.width,i=e.height,a=e.transform,r=e.title,o=e.extra,s=e.watchable,l=void 0!==s&&s,c=v(v(v({},o.attributes),r?{title:r}:{}),{},{class:o.classes.join(" ")});l&&(c[X]="");var d=v({},o.styles);xe(a)&&(d.transform=function(e){var t=e.transform,n=e.width,i=void 0===n?V:n,a=e.height,r=void 0===a?V:a,o=e.startCentered,s=void 0!==o&&o,l="";return l+=s&&W?"translate(".concat(t.x/Se-i/2,"em, ").concat(t.y/Se-r/2,"em) "):s?"translate(calc(-50% + ".concat(t.x/Se,"em), calc(-50% + ").concat(t.y/Se,"em)) "):"translate(".concat(t.x/Se,"em, ").concat(t.y/Se,"em) "),l+="scale(".concat(t.size/Se*(t.flipX?-1:1),", ").concat(t.size/Se*(t.flipY?-1:1),") "),l+"rotate(".concat(t.rotate,"deg) ")}({transform:a,startCentered:!0,width:n,height:i}),d["-webkit-transform"]=d.transform);var u=Ne(d);u.length>0&&(c.style=u);var m=[];return m.push({tag:"span",attributes:c,children:[t]}),r&&m.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),m}var Pt=Ye.styles;function Ot(e){var t=e[0],n=e[1],i=k(e.slice(4),1)[0];return{found:!0,width:t,height:n,icon:Array.isArray(i)?{tag:"g",attributes:{class:"".concat(Ee.cssPrefix,"-").concat(ve.GROUP)},children:[{tag:"path",attributes:{class:"".concat(Ee.cssPrefix,"-").concat(ve.SECONDARY),fill:"currentColor",d:i[0]}},{tag:"path",attributes:{class:"".concat(Ee.cssPrefix,"-").concat(ve.PRIMARY),fill:"currentColor",d:i[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:i}}}}var Lt={found:!1,width:512,height:512};function Ft(e,t){var n=t;return"fa"===t&&null!==Ee.styleDefault&&(t=mt()),new Promise((function(i,a){if(St("missingIconAbstract"),"fa"===n){var r=ut(e)||{};e=r.iconName||e,t=r.prefix||t}if(e&&t&&Pt[t]&&Pt[t][e])return i(Ot(Pt[t][e]));(function(e,t){!ee&&!Ee.showMissingIcons&&e&&console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))})(e,t),i(v(v({},Lt),{},{icon:Ee.showMissingIcons&&e&&St("missingIconAbstract")||{}}))}))}var Bt=function(){},Rt=Ee.measurePerformance&&O&&O.mark&&O.measure?O:{mark:Bt,measure:Bt},Yt='FA "6.3.0"',zt=function(e){Rt.mark("".concat(Yt," ").concat(e," ends")),Rt.measure("".concat(Yt," ").concat(e),"".concat(Yt," ").concat(e," begins"),"".concat(Yt," ").concat(e," ends"))},Wt={begin:function(e){return Rt.mark("".concat(Yt," ").concat(e," begins")),function(){return zt(e)}},end:zt},Ht=function(){};function Vt(e){return"string"==typeof(e.getAttribute?e.getAttribute(X):null)}function jt(e){return x.createElementNS("http://www.w3.org/2000/svg",e)}function $t(e){return x.createElement(e)}function Xt(e){var t=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:{}).ceFn,n=void 0===t?"svg"===e.tag?jt:$t:t;if("string"==typeof e)return x.createTextNode(e);var i=n(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){i.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){i.appendChild(Xt(e,{ceFn:n}))})),i}var Ut={replace:function(e){var t=e[0];if(t.parentNode)if(e[1].forEach((function(e){t.parentNode.insertBefore(Xt(e),t)})),null===t.getAttribute(X)&&Ee.keepOriginalSource){var n=x.createComment(function(e){var t=" ".concat(e.outerHTML," ");return"".concat(t,"Font Awesome fontawesome.com ")}(t));t.parentNode.replaceChild(n,t)}else t.remove()},nest:function(e){var t=e[0],n=e[1];if(~Me(t).indexOf(Ee.replacementClass))return Ut.replace(e);var i=new RegExp("".concat(Ee.cssPrefix,"-.*"));if(delete n[0].attributes.id,n[0].attributes.class){var a=n[0].attributes.class.split(" ").reduce((function(e,t){return t===Ee.replacementClass||t.match(i)?e.toSvg.push(t):e.toNode.push(t),e}),{toNode:[],toSvg:[]});n[0].attributes.class=a.toSvg.join(" "),0===a.toNode.length?t.removeAttribute("class"):t.setAttribute("class",a.toNode.join(" "))}var r=n.map((function(e){return He(e)})).join("\n");t.setAttribute(X,""),t.innerHTML=r}};function qt(e){e()}function Gt(e,t){var n="function"==typeof t?t:Ht;if(0===e.length)n();else{var i=qt;Ee.mutateApproach===J&&(i=N.requestAnimationFrame||qt),i((function(){var t=!0===Ee.autoReplaceSvg?Ut.replace:Ut[Ee.autoReplaceSvg]||Ut.replace,i=Wt.begin("mutate");e.map(t),i(),n()}))}}var Kt=!1;function Qt(){Kt=!0}function Jt(){Kt=!1}var Zt=null;function en(e){if(P&&Ee.observeMutations){var t=e.treeCallback,n=void 0===t?Ht:t,i=e.nodeCallback,a=void 0===i?Ht:i,r=e.pseudoElementsCallback,o=void 0===r?Ht:r,s=e.observeMutationsRoot,l=void 0===s?x:s;Zt=new P((function(e){if(!Kt){var t=mt();Ae(e).forEach((function(e){if("childList"===e.type&&e.addedNodes.length>0&&!Vt(e.addedNodes[0])&&(Ee.searchPseudoElements&&o(e.target),n(e.target)),"attributes"===e.type&&e.target.parentNode&&Ee.searchPseudoElements&&o(e.target.parentNode),"attributes"===e.type&&Vt(e.target)&&~ge.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){var t=e.getAttribute?e.getAttribute(G):null,n=e.getAttribute?e.getAttribute(K):null;return t&&n}(e.target)){var i=vt(Me(e.target)),r=i.prefix,s=i.iconName;e.target.setAttribute(G,r||t),s&&e.target.setAttribute(K,s)}else(function(e){return e&&e.classList&&e.classList.contains&&e.classList.contains(Ee.replacementClass)})(e.target)&&a(e.target)}))}})),z&&Zt.observe(l,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}}function tn(e){var t=e.getAttribute("data-prefix"),n=e.getAttribute("data-icon"),i=void 0!==e.innerText?e.innerText.trim():"",a=vt(Me(e));return a.prefix||(a.prefix=mt()),t&&n&&(a.prefix=t,a.iconName=n),a.iconName&&a.prefix||(a.prefix&&i.length>0&&(a.iconName=function(e,t){return(nt[e]||{})[t]}(a.prefix,e.innerText)||ct(a.prefix,$e(e.innerText))),!a.iconName&&Ee.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(a.iconName=e.firstChild.data)),a}function nn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0},n=tn(e),i=n.iconName,a=n.prefix,r=n.rest,o=function(e){var t=Ae(e.attributes).reduce((function(e,t){return"class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e}),{}),n=e.getAttribute("title"),i=e.getAttribute("data-fa-title-id");return Ee.autoA11y&&(n?t["aria-labelledby"]="".concat(Ee.replacementClass,"-title-").concat(i||_e()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),s=Et("parseNodeAttributes",{},e),l=t.styleParser?function(e){var t=e.getAttribute("style"),n=[];return t&&(n=t.split(";").reduce((function(e,t){var n=t.split(":"),i=n[0],a=n.slice(1);return i&&a.length>0&&(e[i]=a.join(":").trim()),e}),{})),n}(e):[];return v({iconName:i,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:a,transform:Te,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:r,styles:l,attributes:o}},s)}var an=Ye.styles;function rn(e){var t="nest"===Ee.autoReplaceSvg?nn(e,{styleParser:!1}):nn(e);return~t.extra.classes.indexOf(de)?St("generateLayersText",e,t):St("generateSvgReplacementMutation",e,t)}var on=new Set;function sn(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!z)return Promise.resolve();var n=x.documentElement.classList,i=function(e){return n.add("".concat(Q,"-").concat(e))},a=function(e){return n.remove("".concat(Q,"-").concat(e))},r=Ee.autoFetchSvg?on:ie.map((function(e){return"fa-".concat(e)})).concat(Object.keys(an));r.includes("fa")||r.push("fa");var o=[".".concat(de,":not([").concat(X,"])")].concat(r.map((function(e){return".".concat(e,":not([").concat(X,"])")}))).join(", ");if(0===o.length)return Promise.resolve();var s=[];try{s=Ae(e.querySelectorAll(o))}catch{}if(!(s.length>0))return Promise.resolve();i("pending"),a("complete");var l=Wt.begin("onTree"),c=s.reduce((function(e,t){try{var n=rn(t);n&&e.push(n)}catch(e){ee||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise((function(e,n){Promise.all(c).then((function(n){Gt(n,(function(){i("active"),i("complete"),a("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((function(e){l(),n(e)}))}))}function ln(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;rn(e).then((function(e){e&&Gt([e],t)}))}function cn(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=(t||{}).icon?t:Tt(t||{}),a=n.mask;return a&&(a=(a||{}).icon?a:Tt(a||{})),e(i,v(v({},n),{},{mask:a}))}}ie.map((function(e){on.add("fa-".concat(e))})),Object.keys(re[te]).map(on.add.bind(on)),Object.keys(re[ne]).map(on.add.bind(on)),on=D(on);var dn=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,i=void 0===n?Te:n,a=t.symbol,r=void 0!==a&&a,o=t.mask,s=void 0===o?null:o,l=t.maskId,c=void 0===l?null:l,d=t.title,u=void 0===d?null:d,m=t.titleId,h=void 0===m?null:m,f=t.classes,g=void 0===f?[]:f,p=t.attributes,y=void 0===p?{}:p,b=t.styles,k=void 0===b?{}:b;if(e){var D=e.prefix,E=e.iconName,w=e.icon;return It(v({type:"icon"},e),(function(){return wt("beforeDOMElementCreation",{iconDefinition:e,params:t}),Ee.autoA11y&&(u?y["aria-labelledby"]="".concat(Ee.replacementClass,"-title-").concat(h||_e()):(y["aria-hidden"]="true",y.focusable="false")),Nt({icons:{main:Ot(w),mask:s?Ot(s.icon):{found:!1,width:null,height:null,icon:{}}},prefix:D,iconName:E,transform:v(v({},Te),i),symbol:r,title:u,maskId:c,titleId:h,extra:{attributes:y,styles:k,classes:g}})}))}},un={mixout:function(){return{icon:cn(dn)}},hooks:function(){return{mutationObserverCallbacks:function(e){return e.treeCallback=sn,e.nodeCallback=ln,e}}},provides:function(e){e.i2svg=function(e){var t=e.node,n=void 0===t?x:t,i=e.callback;return sn(n,void 0===i?function(){}:i)},e.generateSvgReplacementMutation=function(e,t){var n=t.iconName,i=t.title,a=t.titleId,r=t.prefix,o=t.transform,s=t.symbol,l=t.mask,c=t.maskId,d=t.extra;return new Promise((function(t,u){Promise.all([Ft(n,r),l.iconName?Ft(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((function(l){var u=k(l,2),m=u[0],h=u[1];t([e,Nt({icons:{main:m,mask:h},prefix:r,iconName:n,transform:o,symbol:s,maskId:c,title:i,titleId:a,extra:d,watchable:!0})])})).catch(u)}))},e.generateAbstractIcon=function(e){var t,n=e.children,i=e.attributes,a=e.main,r=e.transform,o=Ne(e.styles);return o.length>0&&(i.style=o),xe(r)&&(t=St("generateAbstractTransformGrouping",{main:a,transform:r,containerWidth:a.width,iconWidth:a.width})),n.push(t||a.icon),{children:n,attributes:i}}}},mn={mixout:function(){return{layer:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.classes,i=void 0===n?[]:n;return It({type:"layer"},(function(){wt("beforeDOMElementCreation",{assembler:e,params:t});var n=[];return e((function(e){Array.isArray(e)?e.map((function(e){n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(Ee.cssPrefix,"-layers")].concat(D(i)).join(" ")},children:n}]}))}}}},hn={mixout:function(){return{counter:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.title,i=void 0===n?null:n,a=t.classes,r=void 0===a?[]:a,o=t.attributes,s=void 0===o?{}:o,l=t.styles,c=void 0===l?{}:l;return It({type:"counter",content:e},(function(){return wt("beforeDOMElementCreation",{content:e,params:t}),function(e){var t=e.content,n=e.title,i=e.extra,a=v(v(v({},i.attributes),n?{title:n}:{}),{},{class:i.classes.join(" ")}),r=Ne(i.styles);r.length>0&&(a.style=r);var o=[];return o.push({tag:"span",attributes:a,children:[t]}),n&&o.push({tag:"span",attributes:{class:"sr-only"},children:[n]}),o}({content:e.toString(),title:i,extra:{attributes:s,styles:c,classes:["".concat(Ee.cssPrefix,"-layers-counter")].concat(D(r))}})}))}}}},fn={mixout:function(){return{text:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.transform,i=void 0===n?Te:n,a=t.title,r=void 0===a?null:a,o=t.classes,s=void 0===o?[]:o,l=t.attributes,c=void 0===l?{}:l,d=t.styles,u=void 0===d?{}:d;return It({type:"text",content:e},(function(){return wt("beforeDOMElementCreation",{content:e,params:t}),xt({content:e,transform:v(v({},Te),i),title:r,extra:{attributes:c,styles:u,classes:["".concat(Ee.cssPrefix,"-layers-text")].concat(D(s))}})}))}}},provides:function(e){e.generateLayersText=function(e,t){var n=t.title,i=t.transform,a=t.extra,r=null,o=null;if(W){var s=parseInt(getComputedStyle(e).fontSize,10),l=e.getBoundingClientRect();r=l.width/s,o=l.height/s}return Ee.autoA11y&&!n&&(a.attributes["aria-hidden"]="true"),Promise.resolve([e,xt({content:e.innerHTML,width:r,height:o,transform:i,title:n,extra:a,watchable:!0})])}}},gn=new RegExp('"',"ug"),vn=[1105920,1112319];function pn(e,t){var n="".concat(q).concat(t.replace(":","-"));return new Promise((function(i,a){if(null!==e.getAttribute(n))return i();var r=Ae(e.children).filter((function(e){return e.getAttribute(U)===t}))[0],o=N.getComputedStyle(e,t),s=o.getPropertyValue("font-family").match(ue),l=o.getPropertyValue("font-weight"),c=o.getPropertyValue("content");if(r&&!s)return e.removeChild(r),i();if(s&&"none"!==c&&""!==c){var d=o.getPropertyValue("content"),u=~["Sharp"].indexOf(s[2])?ne:te,m=~["Solid","Regular","Light","Thin","Duotone","Brands","Kit"].indexOf(s[2])?oe[u][s[2].toLowerCase()]:me[u][l],h=function(e){var t=e.replace(gn,""),n=function(e,t){var n,i=e.length,a=e.charCodeAt(t);return a>=55296&&a<=56319&&i>t+1&&(n=e.charCodeAt(t+1))>=56320&&n<=57343?1024*(a-55296)+n-56320+65536:a}(t,0),i=n>=vn[0]&&n<=vn[1],a=2===t.length&&t[0]===t[1];return{value:$e(a?t[0]:t),isSecondary:i||a}}(d),f=h.value,g=h.isSecondary,p=s[0].startsWith("FontAwesome"),y=ct(m,f),b=y;if(p){var k=function(e){var t=at[e],n=ct("fas",e);return t||(n?{prefix:"fas",iconName:n}:null)||{prefix:null,iconName:null}}(f);k.iconName&&k.prefix&&(y=k.iconName,m=k.prefix)}if(!y||g||r&&r.getAttribute(G)===m&&r.getAttribute(K)===b)i();else{e.setAttribute(n,b),r&&e.removeChild(r);var D={iconName:null,title:null,titleId:null,prefix:null,transform:Te,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},E=D.extra;E.attributes[U]=t,Ft(y,m).then((function(a){var r=Nt(v(v({},D),{},{icons:{main:a,mask:ht()},prefix:m,iconName:b,extra:E,watchable:!0})),o=x.createElement("svg");"::before"===t?e.insertBefore(o,e.firstChild):e.appendChild(o),o.outerHTML=r.map((function(e){return He(e)})).join("\n"),e.removeAttribute(n),i()})).catch(a)}}else i()}))}function yn(e){return Promise.all([pn(e,"::before"),pn(e,"::after")])}function bn(e){return!(e.parentNode===document.head||~Z.indexOf(e.tagName.toUpperCase())||e.getAttribute(U)||e.parentNode&&"svg"===e.parentNode.tagName)}function kn(e){if(z)return new Promise((function(t,n){var i=Ae(e.querySelectorAll("*")).filter(bn).map(yn),a=Wt.begin("searchPseudoElements");Qt(),Promise.all(i).then((function(){a(),Jt(),t()})).catch((function(){a(),Jt(),n()}))}))}var Dn=!1,En=function(e){return e.toLowerCase().split(" ").reduce((function(e,t){var n=t.toLowerCase().split("-"),i=n[0],a=n.slice(1).join("-");if(i&&"h"===a)return e.flipX=!0,e;if(i&&"v"===a)return e.flipY=!0,e;if(a=parseFloat(a),isNaN(a))return e;switch(i){case"grow":e.size=e.size+a;break;case"shrink":e.size=e.size-a;break;case"left":e.x=e.x-a;break;case"right":e.x=e.x+a;break;case"up":e.y=e.y-a;break;case"down":e.y=e.y+a;break;case"rotate":e.rotate=e.rotate+a}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0})},wn={x:0,y:0,width:"100%",height:"100%"};function Sn(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}function Tn(e){return"g"===e.tag?e.children:[e]}var Cn={hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-mask"),i=n?vt(n.split(" ").map((function(e){return e.trim()}))):ht();return i.prefix||(i.prefix=mt()),e.mask=i,e.maskId=t.getAttribute("data-fa-mask-id"),e}}},provides:function(e){e.generateAbstractMask=function(e){var t=e.children,n=e.attributes,i=e.main,a=e.mask,r=e.maskId,o=e.transform,s=i.width,l=i.icon,c=a.width,d=a.icon,u=function(e){var t=e.transform,n=e.containerWidth,i=e.iconWidth,a={transform:"translate(".concat(n/2," 256)")},r="translate(".concat(32*t.x,", ").concat(32*t.y,") "),o="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:a,inner:{transform:"".concat(r," ").concat(o," ").concat(s)},path:{transform:"translate(".concat(i/2*-1," -256)")}}}({transform:o,containerWidth:c,iconWidth:s}),m={tag:"rect",attributes:v(v({},wn),{},{fill:"white"})},h=l.children?{children:l.children.map(Sn)}:{},f={tag:"g",attributes:v({},u.inner),children:[Sn(v({tag:l.tag,attributes:v(v({},l.attributes),u.path)},h))]},g={tag:"g",attributes:v({},u.outer),children:[f]},p="mask-".concat(r||_e()),y="clip-".concat(r||_e()),b={tag:"mask",attributes:v(v({},wn),{},{id:p,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[m,g]},k={tag:"defs",children:[{tag:"clipPath",attributes:{id:y},children:Tn(d)},b]};return t.push(k,{tag:"rect",attributes:v({fill:"currentColor","clip-path":"url(#".concat(y,")"),mask:"url(#".concat(p,")")},wn)}),{children:t,attributes:n}}}};!function(e,t){var n=t.mixoutsTo;yt=e,bt={},Object.keys(kt).forEach((function(e){-1===Dt.indexOf(e)&&delete kt[e]})),yt.forEach((function(e){var t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((function(e){"function"==typeof t[e]&&(n[e]=t[e]),"object"===p(t[e])&&Object.keys(t[e]).forEach((function(i){n[e]||(n[e]={}),n[e][i]=t[e][i]}))})),e.hooks){var i=e.hooks();Object.keys(i).forEach((function(e){bt[e]||(bt[e]=[]),bt[e].push(i[e])}))}e.provides&&e.provides(kt)}))}([Be,un,mn,hn,fn,{hooks:function(){return{mutationObserverCallbacks:function(e){return e.pseudoElementsCallback=kn,e}}},provides:function(e){e.pseudoElements2svg=function(e){var t=e.node,n=void 0===t?x:t;Ee.searchPseudoElements&&kn(n)}}},{mixout:function(){return{dom:{unwatch:function(){Qt(),Dn=!0}}}},hooks:function(){return{bootstrap:function(){en(Et("mutationObserverCallbacks",{}))},noAuto:function(){Zt&&Zt.disconnect()},watch:function(e){var t=e.observeMutationsRoot;Dn?Jt():en(Et("mutationObserverCallbacks",{observeMutationsRoot:t}))}}}},{mixout:function(){return{parse:{transform:function(e){return En(e)}}}},hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-transform");return n&&(e.transform=En(n)),e}}},provides:function(e){e.generateAbstractTransformGrouping=function(e){var t=e.main,n=e.transform,i=e.containerWidth,a=e.iconWidth,r={transform:"translate(".concat(i/2," 256)")},o="translate(".concat(32*n.x,", ").concat(32*n.y,") "),s="scale(".concat(n.size/16*(n.flipX?-1:1),", ").concat(n.size/16*(n.flipY?-1:1),") "),l="rotate(".concat(n.rotate," 0 0)"),c={outer:r,inner:{transform:"".concat(o," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(a/2*-1," -256)")}};return{tag:"g",attributes:v({},c.outer),children:[{tag:"g",attributes:v({},c.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:v(v({},t.icon.attributes),c.path)}]}]}}}},Cn,{provides:function(e){var t=!1;N.matchMedia&&(t=N.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){var e=[],n={fill:"currentColor"},i={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:v(v({},n),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});var a=v(v({},i),{},{attributeName:"opacity"}),r={tag:"circle",attributes:v(v({},n),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||r.children.push({tag:"animate",attributes:v(v({},i),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:v(v({},a),{},{values:"1;0;1;1;0;1;"})}),e.push(r),e.push({tag:"path",attributes:v(v({},n),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:v(v({},a),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:v(v({},n),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:v(v({},a),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}},{hooks:function(){return{parseNodeAttributes:function(e,t){var n=t.getAttribute("data-fa-symbol"),i=null!==n&&(""===n||n);return e.symbol=i,e}}}}],{mixoutsTo:At});var _n=At.config,An=At.parse,Mn=At.icon,In=At.text;function Nn(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function xn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Nn(Object(n),!0).forEach((function(t){On(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Nn(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pn(e){return(Pn="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})(e)}function On(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ln(e,t){if(null==e)return{};var n,i,a=function(e,t){if(null==e)return{};var n,i,a={},r=Object.keys(e);for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)n=r[i],!(t.indexOf(n)>=0)&&Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Fn(e){return function(e){if(Array.isArray(e))return Bn(e)}(e)||function(e){if(typeof Symbol<"u"&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Bn(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if("Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Bn(e,t)}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Bn(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var Rn=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},Yn={exports:{}};!function(e){var t,n,i,a,r,o,s,l,c,d,u,m,h,f,g;t=Rn,n=function(e,t,i){if(!l(t)||d(t)||u(t)||m(t)||s(t))return t;var a,r=0,o=0;if(c(t))for(a=[],o=t.length;r<o;r++)a.push(n(e,t[r],i));else for(var h in a={},t)Object.prototype.hasOwnProperty.call(t,h)&&(a[e(h,i)]=n(e,t[h],i));return a},i=function(e){return h(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},a=function(e){var t=i(e);return t.substr(0,1).toUpperCase()+t.substr(1)},r=function(e,t){return function(e,t){var n=(t=t||{}).separator||"_",i=t.split||/(?=[A-Z])/;return e.split(i).join(n)}(e,t).toLowerCase()},o=Object.prototype.toString,s=function(e){return"function"==typeof e},l=function(e){return e===Object(e)},c=function(e){return"[object Array]"==o.call(e)},d=function(e){return"[object Date]"==o.call(e)},u=function(e){return"[object RegExp]"==o.call(e)},m=function(e){return"[object Boolean]"==o.call(e)},h=function(e){return(e-=0)==e},f=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!=typeof n?e:function(t,i){return n(t,e,i)}},g={camelize:i,decamelize:r,pascalize:a,depascalize:r,camelizeKeys:function(e,t){return n(f(i,t),e)},decamelizeKeys:function(e,t){return n(f(r,t),e,t)},pascalizeKeys:function(e,t){return n(f(a,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}},e.exports?e.exports=g:t.humps=g}(Yn);var zn=Yn.exports,Wn=["class","style"];function Hn(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof e)return e;var a=(e.children||[]).map((function(e){return Hn(e)})),r=Object.keys(e.attributes||{}).reduce((function(t,n){var i=e.attributes[n];switch(n){case"class":t.class=function(e){return e.split(/\s+/).reduce((function(e,t){return e[t]=!0,e}),{})}(i);break;case"style":t.style=function(e){return e.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var n=t.indexOf(":"),i=zn.camelize(t.slice(0,n)),a=t.slice(n+1).trim();return e[i]=a,e}),{})}(i);break;default:t.attrs[n]=i}return t}),{attrs:{},class:{},style:{}});i.class;var o=i.style,s=void 0===o?{}:o,l=Ln(i,Wn);return t.h(e.tag,xn(xn(xn({},n),{},{class:r.class,style:xn(xn({},r.style),s)},r.attrs),l),a)}var Vn=!1;try{Vn="production"===process.env.NODE_ENV}catch{}function jn(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?On({},e,t):{}}function $n(e){return e&&"object"===Pn(e)&&e.prefix&&e.iconName&&e.icon?e:An.icon?An.icon(e):null===e?null:"object"===Pn(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}var Xn=t.defineComponent({name:"FontAwesomeIcon",props:{border:{type:Boolean,default:!1},fixedWidth:{type:Boolean,default:!1},flip:{type:[Boolean,String],default:!1,validator:function(e){return[!0,!1,"horizontal","vertical","both"].indexOf(e)>-1}},icon:{type:[Object,Array,String],required:!0},mask:{type:[Object,Array,String],default:null},listItem:{type:Boolean,default:!1},pull:{type:String,default:null,validator:function(e){return["right","left"].indexOf(e)>-1}},pulse:{type:Boolean,default:!1},rotation:{type:[String,Number],default:null,validator:function(e){return[90,180,270].indexOf(Number.parseInt(e,10))>-1}},swapOpacity:{type:Boolean,default:!1},size:{type:String,default:null,validator:function(e){return["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"].indexOf(e)>-1}},spin:{type:Boolean,default:!1},transform:{type:[String,Object],default:null},symbol:{type:[Boolean,String],default:!1},title:{type:String,default:null},inverse:{type:Boolean,default:!1},bounce:{type:Boolean,default:!1},shake:{type:Boolean,default:!1},beat:{type:Boolean,default:!1},fade:{type:Boolean,default:!1},beatFade:{type:Boolean,default:!1},flash:{type:Boolean,default:!1},spinPulse:{type:Boolean,default:!1},spinReverse:{type:Boolean,default:!1}},setup:function(e,n){var i=n.attrs,a=t.computed((function(){return $n(e.icon)})),r=t.computed((function(){return jn("classes",function(e){var t,n=(On(t={"fa-spin":e.spin,"fa-pulse":e.pulse,"fa-fw":e.fixedWidth,"fa-border":e.border,"fa-li":e.listItem,"fa-inverse":e.inverse,"fa-flip":!0===e.flip,"fa-flip-horizontal":"horizontal"===e.flip||"both"===e.flip,"fa-flip-vertical":"vertical"===e.flip||"both"===e.flip},"fa-".concat(e.size),null!==e.size),On(t,"fa-rotate-".concat(e.rotation),null!==e.rotation),On(t,"fa-pull-".concat(e.pull),null!==e.pull),On(t,"fa-swap-opacity",e.swapOpacity),On(t,"fa-bounce",e.bounce),On(t,"fa-shake",e.shake),On(t,"fa-beat",e.beat),On(t,"fa-fade",e.fade),On(t,"fa-beat-fade",e.beatFade),On(t,"fa-flash",e.flash),On(t,"fa-spin-pulse",e.spinPulse),On(t,"fa-spin-reverse",e.spinReverse),t);return Object.keys(n).map((function(e){return n[e]?e:null})).filter((function(e){return e}))}(e))})),o=t.computed((function(){return jn("transform","string"==typeof e.transform?An.transform(e.transform):e.transform)})),s=t.computed((function(){return jn("mask",$n(e.mask))})),l=t.computed((function(){return Mn(a.value,xn(xn(xn(xn({},r.value),o.value),s.value),{},{symbol:e.symbol,title:e.title}))}));t.watch(l,(function(e){if(!e)return function(){var e;!Vn&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find one or more icon(s)",a.value,s.value)}),{immediate:!0});var c=t.computed((function(){return l.value?Hn(l.value.abstract[0],{},i):null}));return function(){return c.value}}});t.defineComponent({name:"FontAwesomeLayers",props:{fixedWidth:{type:Boolean,default:!1}},setup:function(e,n){var i=n.slots,a=_n.familyPrefix,r=t.computed((function(){return["".concat(a,"-layers")].concat(Fn(e.fixedWidth?["".concat(a,"-fw")]:[]))}));return function(){return t.h("div",{class:r.value},i.default?i.default():[])}}}),t.defineComponent({name:"FontAwesomeLayersText",props:{value:{type:[String,Number],default:""},transform:{type:[String,Object],default:null},counter:{type:Boolean,default:!1},position:{type:String,default:null,validator:function(e){return["bottom-left","bottom-right","top-left","top-right"].indexOf(e)>-1}}},setup:function(e,n){var i=n.attrs,a=_n.familyPrefix,r=t.computed((function(){return jn("classes",[].concat(Fn(e.counter?["".concat(a,"-layers-counter")]:[]),Fn(e.position?["".concat(a,"-layers-").concat(e.position)]:[])))})),o=t.computed((function(){return jn("transform","string"==typeof e.transform?An.transform(e.transform):e.transform)})),s=t.computed((function(){var t=In(e.value.toString(),xn(xn({},o.value),r.value)).abstract;return e.counter&&(t[0].attributes.class=t[0].attributes.class.replace("fa-layers-text","")),t[0]})),l=t.computed((function(){return Hn(s.value,{},i)}));return function(){return l.value}}});var Un={prefix:"fas",iconName:"circle-chevron-right",icon:[512,512,["chevron-circle-right"],"f138","M0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM241 377c-9.4 9.4-24.6 9.4-33.9 0s-9.4-24.6 0-33.9l87-87-87-87c-9.4-9.4-9.4-24.6 0-33.9s24.6-9.4 33.9 0L345 239c9.4 9.4 9.4 24.6 0 33.9L241 377z"]},qn={prefix:"fas",iconName:"user",icon:[448,512,[128100,62144],"f007","M224 256A128 128 0 1 0 224 0a128 128 0 1 0 0 256zm-45.7 48C79.8 304 0 383.8 0 482.3C0 498.7 13.3 512 29.7 512H418.3c16.4 0 29.7-13.3 29.7-29.7C448 383.8 368.2 304 269.7 304H178.3z"]},Gn={prefix:"fas",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M256 512A256 256 0 1 0 256 0a256 256 0 1 0 0 512zM169.8 165.3c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},Kn={prefix:"fas",iconName:"comment",icon:[512,512,[128489,61669],"f075","M512 240c0 114.9-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6C73.6 471.1 44.7 480 16 480c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4l0 0 0 0 0 0 0 0 .3-.3c.3-.3 .7-.7 1.3-1.4c1.1-1.2 2.8-3.1 4.9-5.7c4.1-5 9.6-12.4 15.2-21.6c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208z"]},Qn={prefix:"fas",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M256 0a256 256 0 1 1 0 512A256 256 0 1 1 256 0zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]},Jn={prefix:"fas",iconName:"location-dot",icon:[384,512,["map-marker-alt"],"f3c5","M215.7 499.2C267 435 384 279.4 384 192C384 86 298 0 192 0S0 86 0 192c0 87.4 117 243 168.3 307.2c12.3 15.3 35.1 15.3 47.4 0zM192 128a64 64 0 1 1 0 128 64 64 0 1 1 0-128z"]},Zn={prefix:"fas",iconName:"xmark",icon:[320,512,[128473,10005,10006,10060,215,"close","multiply","remove","times"],"f00d","M310.6 150.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0L160 210.7 54.6 105.4c-12.5-12.5-32.8-12.5-45.3 0s-12.5 32.8 0 45.3L114.7 256 9.4 361.4c-12.5 12.5-12.5 32.8 0 45.3s32.8 12.5 45.3 0L160 301.3 265.4 406.6c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L205.3 256 310.6 150.6z"]},ei={prefix:"fas",iconName:"chevron-left",icon:[320,512,[9001],"f053","M9.4 233.4c-12.5 12.5-12.5 32.8 0 45.3l192 192c12.5 12.5 32.8 12.5 45.3 0s12.5-32.8 0-45.3L77.3 256 246.6 86.6c12.5-12.5 12.5-32.8 0-45.3s-32.8-12.5-45.3 0l-192 192z"]},ti={prefix:"fas",iconName:"chevron-right",icon:[320,512,[9002],"f054","M310.6 233.4c12.5 12.5 12.5 32.8 0 45.3l-192 192c-12.5 12.5-32.8 12.5-45.3 0s-12.5-32.8 0-45.3L242.7 256 73.4 86.6c-12.5-12.5-12.5-32.8 0-45.3s32.8-12.5 45.3 0l192 192z"]},ni={prefix:"fas",iconName:"circle-chevron-left",icon:[512,512,["chevron-circle-left"],"f137","M512 256A256 256 0 1 0 0 256a256 256 0 1 0 512 0zM271 135c9.4-9.4 24.6-9.4 33.9 0s9.4 24.6 0 33.9l-87 87 87 87c9.4 9.4 9.4 24.6 0 33.9s-24.6 9.4-33.9 0L167 273c-9.4-9.4-9.4-24.6 0-33.9L271 135z"]},ii={prefix:"fas",iconName:"calendar-day",icon:[448,512,[],"f783","M128 0c17.7 0 32 14.3 32 32V64H288V32c0-17.7 14.3-32 32-32s32 14.3 32 32V64h48c26.5 0 48 21.5 48 48v48H0V112C0 85.5 21.5 64 48 64H96V32c0-17.7 14.3-32 32-32zM0 192H448V464c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V192zm80 64c-8.8 0-16 7.2-16 16v96c0 8.8 7.2 16 16 16h96c8.8 0 16-7.2 16-16V272c0-8.8-7.2-16-16-16H80z"]};const ai=t.defineComponent({name:"DatePicker",components:{FontAwesomeIcon:Xn},props:{mode:{type:String,default:"week"},timeProp:{type:Object,default:null},periodProp:{type:Object,default:null},firstDayOfWeek:{type:String,default:""},defaultDate:{type:Date,default:new Date},locale:{type:String,default:""},disableDates:{type:Object,default:null}},emits:["updated"],data(){var e,t;return{periodText:"",weekPickerDates:[],monthPickerDates:[],icons:{calendarIcon:ii,chevronLeft:ni,chevronRight:Un},showDatePicker:!(!this.locale||!this.firstDayOfWeek),datePickerCurrentDate:(null==(e=this.periodProp)?void 0:e.selectedDate)||this.defaultDate||new Date,selectedDate:(null==(t=this.periodProp)?void 0:t.selectedDate)||new Date,datePickerMode:"month",weekDays:[],time:this.timeProp?this.timeProp:new f(this.firstDayOfWeek,this.locale),period:this.periodProp||{start:new Date,end:new Date,selectedDate:this.defaultDate?this.defaultDate:new Date}}},computed:{isStandAloneComponent(){return this.locale&&this.firstDayOfWeek}},mounted(){this.hydrateDatePicker()},methods:{setMonthDaysInWeekPicker(e=(new Date).getMonth(),t=(new Date).getFullYear()){this.weekPickerDates=[],this.weekPickerDates=this.time.getCalendarMonthSplitInWeeks(t,e)},togglePeriodSelector(){this.weekPickerDates=this.time.getCalendarMonthSplitInWeeks(this.datePickerCurrentDate.getFullYear(),this.datePickerCurrentDate.getMonth()),this.showDatePicker=!this.showDatePicker},setWeek(e,t=!1){t||(this.datePickerCurrentDate=e);const n=this.time.getCalendarWeekDateObjects(e);this.weekDays=n;const i=n[0],a=n[6];switch(this.mode){case"week":this.periodText=`${this.time.getLocalizedDateString(i)} - ${this.time.getLocalizedDateString(a)}`;break;case"month":this.periodText=this.time.getLocalizedNameOfMonth(e);break;default:this.periodText=this.time.getLocalizedDateString(e)}t||this.emitChange(i,a)},setMonth(e){this.datePickerCurrentDate=e,this.setMonthDaysInWeekPicker(e.getMonth(),e.getFullYear()),this.datePickerMode="month",this.showDatePicker=!0},emitChange(e,t){if(this.selectedDate=this.datePickerCurrentDate,"month"===this.mode){const n=this.time.getCalendarMonthSplitInWeeks(this.selectedDate.getFullYear(),this.selectedDate.getMonth());e=n[0][0];const i=n[n.length-1];t=i[i.length-1]}else"day"===this.mode&&(e=this.selectedDate,t=this.selectedDate);this.isStandAloneComponent?this.$emit("updated",{year:this.datePickerCurrentDate.getFullYear(),month:this.datePickerCurrentDate.getMonth(),date:this.datePickerCurrentDate.getDate()}):this.$emit("updated",{start:new Date(e.getFullYear(),e.getMonth(),e.getDate(),0,0,0),end:this.time.setDateToEndOfDay(t),selectedDate:this.datePickerCurrentDate})},toggleDatePickerPeriod(e){const t=new Date(this.datePickerCurrentDate);if("month"===this.datePickerMode){const n=new Date(t.getFullYear(),"previous"===e?t.getMonth()-1:t.getMonth()+1,1);this.setMonthDaysInWeekPicker(n.getMonth(),n.getFullYear()),this.datePickerCurrentDate=n}else this.monthPickerDates=this.time.getCalendarYearMonths("previous"===e?t.getFullYear()-1:t.getFullYear()+1),this.datePickerCurrentDate=new Date(this.monthPickerDates[0])},toggleDatePickerMode(){if("month"===this.datePickerMode)return this.monthPickerDates=this.time.getCalendarYearMonths(this.datePickerCurrentDate.getFullYear()),this.datePickerMode="year";this.weekPickerDates=this.time.getCalendarMonthSplitInWeeks(this.datePickerCurrentDate.getFullYear(),this.datePickerCurrentDate.getMonth()),this.datePickerMode="month"},getLocale(){return this.time.CALENDAR_LOCALE},goToPeriod(e){let t,n;if("week"===this.mode){const i=this.time.getCalendarWeekDateObjects(this.datePickerCurrentDate);t=new Date(i[0]),n="next"===e?t.getDate()+7:t.getDate()-7,t.setDate(n)}else"month"===this.mode?(t=new Date(this.datePickerCurrentDate),t.setMonth("next"===e?t.getMonth()+1:t.getMonth()-1),t.setDate(1)):(t=new Date(this.datePickerCurrentDate),n="next"===e?t.getDate()+1:t.getDate()-1,t.setDate(n));this.setWeek(t)},hideDatePicker(){this.isStandAloneComponent||setTimeout((()=>this.showDatePicker=!1),100)},hydrateDatePicker(){const e=this.datePickerCurrentDate;this.setMonthDaysInWeekPicker(e.getMonth(),e.getFullYear()),this.setWeek(e,!0)},checkIfDateIsDisabled(e){return!!this.disableDates&&(e.getTime()<this.disableDates.before.getTime()||e.getTime()>this.disableDates.after.getTime())}}}),ri=(e,t)=>{const n=e.__vccOpts||e;for(const[e,i]of t)n[e]=i;return n},oi={class:"date-picker__value-display-text"},si={class:"date-picker__week-picker-navigation"},li={key:0,class:"date-picker__day-names week"},ci=["onClick"],di={class:"months"},ui=["onClick"];const mi=ri(ai,[["render",function(e,n,i,a,r,o){const s=t.resolveComponent("font-awesome-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["date-picker",e.isStandAloneComponent?"date-picker-root":"is-in-qalendar"]),onMouseleave:n[5]||(n[5]=(...t)=>e.hideDatePicker&&e.hideDatePicker(...t))},[e.isStandAloneComponent?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"date-picker__value-display",onClick:n[0]||(n[0]=(...t)=>e.togglePeriodSelector&&e.togglePeriodSelector(...t))},[t.createVNode(s,{icon:e.icons.calendarIcon},null,8,["icon"]),t.createElementVNode("span",oi,t.toDisplayString(e.periodText),1)])),e.showDatePicker?(t.openBlock(),t.createElementBlock("div",{key:1,class:t.normalizeClass(["date-picker__week-picker",{"is-in-qalendar":!e.isStandAloneComponent}]),onMouseleave:n[4]||(n[4]=(...t)=>e.hideDatePicker&&e.hideDatePicker(...t))},[t.createElementVNode("div",si,[t.createVNode(s,{class:"is-icon is-chevron-left",icon:e.icons.chevronLeft,onClick:n[1]||(n[1]=t=>e.toggleDatePickerPeriod("previous"))},null,8,["icon"]),t.createElementVNode("span",{class:"date-picker__toggle-mode",onClick:n[2]||(n[2]=(...t)=>e.toggleDatePickerMode&&e.toggleDatePickerMode(...t))},["month"===e.datePickerMode?(t.openBlock(),t.createElementBlock(t.Fragment,{key:0},[t.createTextVNode(t.toDisplayString(e.datePickerCurrentDate.toLocaleString(e.getLocale(),{month:"long",year:"numeric"})),1)],64)):"year"===e.datePickerMode?(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[t.createTextVNode(t.toDisplayString(new Date(e.datePickerCurrentDate).toLocaleString(e.getLocale(),{year:"numeric"})),1)],64)):t.createCommentVNode("",!0)]),t.createVNode(s,{class:"is-icon is-chevron-right",icon:e.icons.chevronRight,onClick:n[3]||(n[3]=t=>e.toggleDatePickerPeriod("next"))},null,8,["icon"])]),"month"===e.datePickerMode?(t.openBlock(),t.createElementBlock("div",li,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weekDays,(n=>(t.openBlock(),t.createElementBlock("span",{key:n.getDate()},t.toDisplayString(e.time.getLocalizedNameOfWeekday(n,"short")),1)))),128))])):t.createCommentVNode("",!0),(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.weekPickerDates,((n,i)=>t.withDirectives((t.openBlock(),t.createElementBlock("div",{key:i,class:t.normalizeClass(["week",e.time.dateIsInWeek(e.selectedDate,n)&&!e.isStandAloneComponent?"is-active":""])},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(n,((n,a)=>(t.openBlock(),t.createElementBlock("span",{key:i+a,class:t.normalizeClass({"is-weekend":[5,6].includes(a),"is-not-in-month":n.getMonth()!==e.datePickerCurrentDate.getMonth(),"has-day":n,"is-today":e.time.dateIsToday(n),"is-disabled":e.checkIfDateIsDisabled(n)}),onClick:t=>e.checkIfDateIsDisabled(n)?null:e.setWeek(n)},t.toDisplayString(n?n.getDate():""),11,ci)))),128))],2)),[[t.vShow,"month"===e.datePickerMode]]))),128)),t.withDirectives(t.createElementVNode("div",di,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.monthPickerDates,((n,i)=>(t.openBlock(),t.createElementBlock("span",{key:i,class:"has-month",onClick:t=>e.setMonth(n)},t.toDisplayString(new Date(n).toLocaleString(e.getLocale(),{month:"long"})),9,ui)))),128))],512),[[t.vShow,"year"===e.datePickerMode]])],34)):t.createCommentVNode("",!0)],34)}],["__scopeId","data-v-67f77862"]]),hi={week:{"it-IT":"Settimana","en-US":"Week","de-DE":"Woche","sv-SE":"Vecka","zh-CN":"?","pt-BR":"Semana","fr-FR":"Semaine","th-TH":"???????","nl-NL":"Week","ru-RU":"??????","ar-YE":"?????","es-ES":"Semana","ja-JP":"?","pl-PL":"Tydzie?","hu-HU":"Hét"},month:{"it-IT":"Mese","en-US":"Month","de-DE":"Monat","sv-SE":"Månad","zh-CN":"?","pt-BR":"Mês","fr-FR":"Mois","th-TH":"?????","nl-NL":"Maand","ru-RU":"?????","ar-YE":"???","es-ES":"Mes","ja-JP":"?","pl-PL":"Miesi?c","hu-HU":"Hónap"},day:{"it-IT":"Giorno","en-US":"Day","de-DE":"Tag","sv-SE":"Dag","zh-CN":"?","pt-BR":"Dia","fr-FR":"Jour","th-TH":"???","nl-NL":"Dag","ru-RU":"????","ar-YE":"???","es-ES":"Día","ja-JP":"?","pl-PL":"Dzie?","hu-HU":"Nap"},moreEvents:{"it-IT":"+ altri eventi","en-US":"+ more events","de-DE":"+ weitere Ereignisse","sv-SE":"+ fler event","zh-CN":"??????","pt-BR":"+ mais eventos","fr-FR":"+ d'autres événements","th-TH":"+ ??????????????????","nl-NL":"meer evenementen","ru-RU":"+ ??? ???????","ar-YE":"+ ?????? ?? ???????","es-ES":"más eventos","ja-JP":"???????","pl-PL":"+ wi?cej wydarze?","hu-HU":"További események"},noEvent:{"it-IT":"Nessun evento","en-US":"No events","de-DE":"Keine Ereignisse","sv-SE":"Inga event","zh-CN":"????","pt-BR":"Sem eventos","fr-FR":"Aucun Evènement","th-TH":"????????????","nl-NL":"Geen evenementen","ru-RU":"??? ???????","ar-YE":"?? ?????","es-ES":"No hay eventos","ja-JP":"??????","pl-PL":"Brak wydarze?","hu-HU":"Nincs esemény"}},fi=new Map([["de","de-DE"],["en","en-US"],["it","it-IT"],["sv","sv-SE"],["zh","zh-CN"],["pt","pt-BR"],["fr","fr-FR"],["th","th-TH"],["nl","nl-NL"],["ru","ru-RU"],["ar","ar-YE"],["es","es-ES"],["ja","ja-JP"],["pl","pl-PL"],["hu","hu-HU"]]),gi={data:()=>({languageKeys:hi}),methods:{getLanguage(e,t){return e[t=this.overrideShortLocaleWithLongLocale(t)]?e[t]:e["en-US"]},overrideShortLocaleWithLongLocale:e=>(fi.has(e)&&(e=fi.get(e)),e)}},vi=t.defineComponent({name:"AppHeader",components:{DatePicker:mi,FontAwesomeIcon:Xn},mixins:[gi],props:{config:{type:Object,default:()=>({})},mode:{type:String,default:"week"},time:{type:Object,default:()=>({})},period:{type:Object,required:!0},isSmall:{type:Boolean,required:!0}},emits:["change-mode","updated-period"],data(){return{modeOptions:["month","week","day"],icons:{chevronLeft:ei,chevronRight:ti},currentPeriod:this.period,showModePicker:!1}},computed:{periodName(){var e,t,n;if("week"===this.mode){const n=this.time.getLocalizedNameOfMonth(null==(e=this.currentPeriod)?void 0:e.start,"short"),i=this.time.getLocalizedNameOfMonth(null==(t=this.currentPeriod)?void 0:t.end,"short");return n===i?n:`${n} - ${i}`}return this.time.getLocalizedNameOfMonth(null==(n=this.currentPeriod)?void 0:n.selectedDate,"short")+" "+this.currentPeriod.selectedDate.getFullYear()},modeName(){var e;return this.getLanguage(this.languageKeys[this.mode],null==(e=this.time)?void 0:e.CALENDAR_LOCALE)},onlyDayModeIsEnabled(){var e,t;const n=null==(e=this.config.disableModes)?void 0:e.includes("week"),i=null==(t=this.config.disableModes)?void 0:t.includes("month");return this.config.disableModes&&n&&i}},watch:{isSmall:{handler(e){this.modeOptions=e?["month","day"]:["month","week","day"]},immediate:!0}},methods:{handlePeriodChange(e){this.currentPeriod=e,this.$emit("updated-period",e)},goToPeriod(e){this.$refs.periodSelect.goToPeriod(e)}}}),pi={class:"calendar-header"},yi={key:0,class:"calendar-header__period-name"},bi={class:"calendar-header__period"},ki={class:"calendar-header__chevron-arrows"},Di={key:0,class:"calendar-header__mode-picker"},Ei=["onClick"];const wi=ri(vi,[["render",function(e,n,i,a,r,o){const s=t.resolveComponent("FontAwesomeIcon"),l=t.resolveComponent("DatePicker");return t.openBlock(),t.createElementBlock("div",pi,[e.periodName?(t.openBlock(),t.createElementBlock("div",yi,t.toDisplayString(e.periodName),1)):t.createCommentVNode("",!0),t.createElementVNode("div",bi,[t.createElementVNode("div",ki,[t.createVNode(s,{class:"calendar-header__chevron-arrow calendar-header__chevron-arrow-left",icon:e.icons.chevronLeft,onClick:n[0]||(n[0]=t=>e.goToPeriod("previous"))},null,8,["icon"]),t.createVNode(s,{class:"calendar-header__chevron-arrow calendar-header__chevron-arrow-right",icon:e.icons.chevronRight,onClick:n[1]||(n[1]=t=>e.goToPeriod("next"))},null,8,["icon"])]),t.createVNode(l,{ref:"periodSelect",mode:e.mode,"time-prop":e.time,"period-prop":e.period,onUpdated:e.handlePeriodChange},null,8,["mode","time-prop","period-prop","onUpdated"]),e.onlyDayModeIsEnabled?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",Di,[t.createElementVNode("div",{class:"calendar-header__mode-value",onClick:n[2]||(n[2]=t=>e.showModePicker=!0)},t.toDisplayString(e.modeName),1),e.showModePicker?(t.openBlock(),t.createElementBlock("div",{key:0,class:"calendar-header__mode-options",onMouseleave:n[3]||(n[3]=t=>e.showModePicker=!1)},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.modeOptions,(n=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:n},[e.config.disableModes&&e.config.disableModes.includes(n)?t.createCommentVNode("",!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:t.normalizeClass(["calendar-header__mode-option","is-"+n+"-mode"]),onClick:t=>e.$emit("change-mode",n)},t.toDisplayString(e.getLanguage(e.languageKeys[n],e.time.CALENDAR_LOCALE)),11,Ei))],64)))),128))],32)):t.createCommentVNode("",!0)]))])])}],["__scopeId","data-v-37f1c389"]]),Si=t.defineComponent({name:"DayTimeline",props:{time:{type:Object,required:!0},weekHeight:{type:String,required:!0}},data:()=>({availableHours:[0,100,200,300,400,500,600,700,800,900,1e3,1100,1200,1300,1400,1500,1600,1700,1800,1900,2e3,2100,2200,2300],timelineHours:[]}),mounted(){this.timelineHours=this.time.getTimelineHours()},methods:{getLocaleTimeString(e){const{hour:t}=this.time.getHourAndMinutesFromTimePoints(e);return this.time.getLocalizedHour(new Date(2100,1,1,t))}}}),Ti=()=>{t.useCssVars((e=>({"11371d19":e.weekHeight})))},Ci=Si.setup;Si.setup=Ci?(e,t)=>(Ti(),Ci(e,t)):Ti;const _i={class:"day-timeline"},Ai={class:"day-timeline__hour-text"};const Mi=ri(Si,[["render",function(e,n,i,a,r,o){return t.openBlock(),t.createElementBlock("div",_i,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.timelineHours,(n=>(t.openBlock(),t.createElementBlock("div",{key:n,class:"day-timeline__hour"},[t.createElementVNode("span",Ai,t.toDisplayString(e.getLocaleTimeString(n)),1)])))),128))])}],["__scopeId","data-v-014bf4e0"]]),Ii=t.defineComponent({name:"FullDayEvent",props:{scheduleEvent:{type:Object,default:null},config:{type:Object,required:!0},mode:{type:String,required:!0}},emits:["event-was-clicked"],data:()=>({colors:o,eventColor:"#fff",eventBackgroundColor:"",eventElementIdPrefix:"week-timeline__event-id-"}),computed:{eventWidth(){return"day"!==this.mode?`calc(${100*this.scheduleEvent.nDays}% - 6px)`:"calc(100% - 6px)"}},mounted(){this.setColors()},methods:{setColors(){var e,t,n;return null!=(e=this.scheduleEvent)&&e.colorScheme&&null!=(t=this.config.style)&&t.colorSchemes&&this.config.style.colorSchemes[this.scheduleEvent.colorScheme]?(this.eventColor=this.config.style.colorSchemes[this.scheduleEvent.colorScheme].color,this.eventBackgroundColor=this.config.style.colorSchemes[this.scheduleEvent.colorScheme].backgroundColor):null!=(n=this.scheduleEvent)&&n.color?(this.eventColor="#fff",this.eventBackgroundColor=this.colors[this.scheduleEvent.color]):this.eventBackgroundColor=this.colors.blue},handleClickOnEvent(){const e=document.getElementById(this.eventElementIdPrefix+this.scheduleEvent.id);this.$emit("event-was-clicked",{clickedEvent:this.scheduleEvent,eventElement:e})}}}),Ni=["id"],xi={key:1,class:"week-timeline__event"};const Pi=ri(Ii,[["render",function(e,n,i,a,r,o){return e.scheduleEvent?(t.openBlock(),t.createElementBlock("div",{key:0,id:`${e.eventElementIdPrefix}${e.scheduleEvent.id}`,class:"week-timeline__event is-event",style:t.normalizeStyle({width:e.eventWidth,color:e.eventColor,backgroundColor:e.eventBackgroundColor,zIndex:1}),onClick:n[0]||(n[0]=(...t)=>e.handleClickOnEvent&&e.handleClickOnEvent(...t))},t.toDisplayString(e.scheduleEvent.title),13,Ni)):(t.openBlock(),t.createElementBlock("div",xi))}],["__scopeId","data-v-778d59fc"]]),Oi=t.defineComponent({name:"WeekTimeline",components:{FullDayEvent:Pi},props:{days:{type:Array,required:!0},time:{type:Object,required:!0},fullDayEvents:{type:Array,default:()=>[]},config:{type:Object,required:!0},mode:{type:String,required:!0}},emits:["event-was-clicked","day-was-clicked"],data:()=>({now:new Date}),methods:{getDaysDate(e){const{date:t}=this.time.getAllVariablesFromDateTimeString(e.dateTimeString);return t}}}),Li={class:"week-timeline"},Fi=["onClick"],Bi={class:"week-timeline__day-name"},Ri={class:"week-timeline__date"},Yi={class:"week-timeline__events"};const zi=ri(Oi,[["render",function(e,n,i,a,r,o){const s=t.resolveComponent("FullDayEvent");return t.openBlock(),t.createElementBlock("div",Li,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.days,((i,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:t.normalizeClass(["week-timeline__day",{"is-today":e.time.getDateTimeStringFromDate(e.now,"start")===i.dateTimeString}]),onClick:t=>e.$emit("day-was-clicked",e.time.dateStringFrom(i.dateTimeString))},[t.createElementVNode("div",Bi,t.toDisplayString(i.dayName.substring(0,2).toUpperCase()),1),t.createElementVNode("div",Ri,t.toDisplayString(e.getDaysDate(i)),1),t.createElementVNode("div",Yi,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i.fullDayEvents,((i,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},["date"!==a?(t.openBlock(),t.createBlock(s,{key:0,"schedule-event":"object"==typeof i?i:null,config:e.config,mode:e.mode,onEventWasClicked:n[0]||(n[0]=t=>e.$emit("event-was-clicked",t))},null,8,["schedule-event","config","mode"])):t.createCommentVNode("",!0)],64)))),128))])],10,Fi)))),128))])}],["__scopeId","data-v-a43746b6"]]);var Wi=(e=>(e.BACKWARDS="backwards",e.FORWARDS="forwards",e))(Wi||{});class Hi{constructor(e,t){a(this,"dayStart",""),a(this,"dayEnd",""),this.timeInstance=e,this.date=t,this.setDayBoundariesTimeStrings()}canEventBeMoved(e,t){return this.timeInstance.dayMode!==c.FLEXIBLE?this.handleNonFlexibleDays(t,e):this.handleFlexibleDays(t,e)}handleNonFlexibleDays(e,t){return e===Wi.FORWARDS?this.handleForwardsMoveForNonFlexibleDays(t):this.handleBackwardsMoveForNonFlexibleDays(t)}handleFlexibleDays(e,t){return e==Wi.FORWARDS?this.handleForwardsMoveForFlexibleDays(t):this.handleBackwardsMoveForFlexibleDays(t)}handleForwardsMoveForNonFlexibleDays(e){const t=this.timeInstance.addMinutesToDateTimeString(15,e.time.end),n=this.timeInstance.timeStringFrom(t);return!(this.timeInstance.dateStringFrom(t)>this.date)&&n<=this.dayEnd}handleBackwardsMoveForNonFlexibleDays(e){const t=this.timeInstance.addMinutesToDateTimeString(-15,e.time.start),n=this.timeInstance.timeStringFrom(t);return!(this.timeInstance.dateStringFrom(t)<this.date)&&n>=this.dayStart}handleForwardsMoveForFlexibleDays(e){const t=this.timeInstance.addMinutesToDateTimeString(15,e.time.end),n=this.timeInstance.timeStringFrom(t);return this.timeInstance.dateStringFrom(t)===this.date||n<=this.dayEnd}handleBackwardsMoveForFlexibleDays(e){const t=this.timeInstance.addMinutesToDateTimeString(-15,e.time.start),n=this.timeInstance.timeStringFrom(t);return this.timeInstance.dateStringFrom(t)>this.date||n>=this.dayStart}setDayBoundariesTimeStrings(){const e=this.timeInstance.getHourAndMinutesFromTimePoints(this.timeInstance.DAY_START).hour,t=this.timeInstance.getHourAndMinutesFromTimePoints(this.timeInstance.DAY_END).hour,n=this.timeInstance.doubleDigit(e);this.dayStart=`${n}:00`;const i=this.timeInstance.doubleDigit(t);this.dayEnd=`${i}:00`}}const Vi=t.defineComponent({name:"DayEvent",components:{FontAwesomeIcon:Xn},props:{eventProp:{type:Object,required:!0},time:{type:Object,required:!0},config:{type:Object,required:!0},dayInfo:{type:Object,required:!0},mode:{type:String,required:!0}},emits:["event-was-clicked","event-was-resized","event-was-dragged","drag-start","drag-end"],data(){return{event:this.eventProp,icons:{clock:Qn,user:qn,description:Kn,location:Jn,topic:Gn},showResizeElements:!1,eventTransformValue:"initial",eventZIndexValue:"initial",dayElement:document.querySelector(".calendar-week__day"),dayBoundariesDateTimeStrings:this.time.getDateTimeStringDayBoundariesFrom(this.dayInfo.dateTimeString),resizingStartingPoint:void 0,resizingStartingPointEndOfTime:this.eventProp.time.end,resizingStartingPointStartOfTime:this.eventProp.time.start,resizingDirection:"",changeInQuarterHoursEventStart:0,changeInQuarterHoursEventEnd:0,isEditable:this.eventProp.isEditable||!1,colors:o,eventColor:"#fff",eventBackgroundColor:"",isResizing:!1,canDrag:!1,clientYDragStart:null,clientXDragStart:null,changeInQuartersOnDrag:0,changeInDaysOnDrag:0,isDragging:!1,timeStartDragStart:this.eventProp.time.start,timeEndDragStart:this.eventProp.time.end,dragMoveListenerNameAndCallbacks:[["mousemove",this.handleDrag],["touchmove",this.handleDrag],["mouseup",this.onMouseUpWhenDragging],["touchend",this.onMouseUpWhenDragging]]}},computed:{eventChangeHelper(){const e=this.time.addDaysToDateTimeString(this.changeInDaysOnDrag,this.dayInfo.dateTimeString);return new Hi(this.time,this.time.dateStringFrom(e))},isCustomEvent(){return Array.isArray(this.eventProp.isCustom)?this.eventProp.isCustom.includes(this.mode):this.eventProp.isCustom||!1},getEventTime(){return this.time.getLocalizedTime(this.event.time.start)+" - "+this.time.getLocalizedTime(this.event.time.end)},timePointsInDay(){return 100*this.time.HOURS_PER_DAY},timePointsInOneMinute:()=>100/60,getLeftRule(){return this.event.totalConcurrentEvents&&this.event.nOfPreviousConcurrentEvents?this.event.nOfPreviousConcurrentEvents/this.event.totalConcurrentEvents*100:0},getWidthRule(){return 100-this.getLeftRule},getBorderRule(){return this.event.nOfPreviousConcurrentEvents?"1px solid #fff":"none"},eventIsLongerThan30Minutes(){const{hour:e,minutes:t}=this.time.getAllVariablesFromDateTimeString(this.event.time.start),{hour:n,minutes:i}=this.time.getAllVariablesFromDateTimeString(this.event.time.end),a=new Date(0,0,0,e,t).getTime();return new Date(0,0,0,n,i).getTime()-a>=18e5},hasDisabledDragAndDrop(){return!(!this.eventProp.disableDnD||!this.eventProp.disableDnD.includes(this.mode))},hasDisabledResize(){return!(!this.eventProp.disableResize||!this.eventProp.disableResize.includes(this.mode))},requiredStyles(){return{top:this.getPositionInDay(this.event.time.start),height:this.getLengthOfEvent(this.event.time.start,this.event.time.end),left:this.getLeftRule+"%",width:this.getWidthRule+"%",transform:this.eventTransformValue,zIndex:this.eventZIndexValue}}},watch:{changeInQuarterHoursEventStart(e,t){const n=this.time.addMinutesToDateTimeString(15*e,this.resizingStartingPointStartOfTime),i=e>t?Wi.FORWARDS:Wi.BACKWARDS,a=this.eventChangeHelper.canEventBeMoved(this.event,i);n<this.event.time.end&&a&&(this.event.time.start=n)},changeInQuarterHoursEventEnd(e,t){const n=this.time.addMinutesToDateTimeString(15*e,this.resizingStartingPointEndOfTime),i=e>t?Wi.FORWARDS:Wi.BACKWARDS,a=this.eventChangeHelper.canEventBeMoved(this.event,i);n>this.event.time.start&&a&&(this.event.time.end=n)},changeInQuartersOnDrag(e,t){const n=e>t?Wi.FORWARDS:Wi.BACKWARDS;this.eventChangeHelper.canEventBeMoved(this.event,n)&&this.updatePositionOnDrag()},changeInDaysOnDrag(e){if(!this.dayElement)return;const t=this.dayInfo.daysTotalN-(this.dayInfo.thisDayIndex+1),n=0-this.dayInfo.thisDayIndex;if(e>t||e<n)return;const i=e*this.dayElement.clientWidth;this.eventTransformValue=`translateX(${i}px)`,this.updatePositionOnDrag()}},mounted(){this.setColors()},methods:{getPositionInDay(e){return this.time.getPercentageOfDayFromDateTimeString(e,this.time.DAY_START,this.time.DAY_END).toString()+"%"},getLengthOfEvent(e,t){const n=this.time.getPercentageOfDayFromDateTimeString(e,this.time.DAY_START,this.time.DAY_END),i=this.time.getPercentageOfDayFromDateTimeString(t,this.time.DAY_START,this.time.DAY_END);return Math.abs(i-n)+"%"},handleClickOnEvent(e){const t=this.getEventElementFromChildElement(e);t&&this.$emit("event-was-clicked",{clickedEvent:this.event,eventElement:t})},getEventElementFromChildElement(e){const t=e.target;return t&&"function"==typeof t.className.includes?t.className.includes(".calendar-week__event")?e.target:t.closest(".calendar-week__event"):null},onMouseMoveResize(e){const t=document.querySelector(".calendar-week__events");if(!t)return;typeof this.resizingStartingPoint>"u"&&(this.resizingStartingPoint=e.clientY);const n=(e.clientY-this.resizingStartingPoint)/t.clientHeight*100,i=this.timePointsInDay/100*n,a=this.getMinutesFromTimePoints(i);"down"===this.resizingDirection?this.changeInQuarterHoursEventEnd=Math.floor(a/15):this.changeInQuarterHoursEventStart=Math.floor(a/15)},onMouseUpWhenResizing(){this.stopResizing()},resizeEvent(e){this.isResizing=!0,this.resizingDirection=e,document.addEventListener("mousemove",this.onMouseMoveResize),document.addEventListener("mouseup",this.onMouseUpWhenResizing)},stopResizing(){document.removeEventListener("mousemove",this.onMouseMoveResize),document.removeEventListener("mouseup",this.onMouseUpWhenResizing),this.resetResizingValues(),this.$emit("event-was-resized",this.event),this.isResizing=!1},resetResizingValues(){this.resizingStartingPoint=void 0,this.resizingStartingPointStartOfTime=this.eventProp.time.start,this.resizingStartingPointEndOfTime=this.eventProp.time.end,this.changeInQuarterHoursEventEnd=0},getMinutesFromTimePoints(e){return e/this.timePointsInOneMinute},setColors(){var e,t,n;return null!=(e=this.event)&&e.colorScheme&&null!=(t=this.config.style)&&t.colorSchemes&&this.config.style.colorSchemes[this.event.colorScheme]?(this.eventColor=this.config.style.colorSchemes[this.event.colorScheme].color,this.eventBackgroundColor=this.config.style.colorSchemes[this.event.colorScheme].backgroundColor):null!=(n=this.event)&&n.color?(this.eventColor="#fff",void(this.eventBackgroundColor=this.colors[this.event.color])):void(this.eventBackgroundColor=this.colors.blue)},initDrag(e){var t,n;!this.event.isEditable||this.hasDisabledDragAndDrop||(this.$emit("drag-start"),this.dragMoveListenerNameAndCallbacks.forEach((([e,t])=>{document.addEventListener(e,t)})),d.isUIEventTouchEvent(e)?this.setInitialDragValues(null==(t=e.touches[0])?void 0:t.clientX,null==(n=e.touches[0])?void 0:n.clientY):this.setInitialDragValues(e.clientX,e.clientY))},setInitialDragValues(e,t){this.canDrag=!0,this.eventZIndexValue=10,this.clientYDragStart=t,this.clientXDragStart=e,this.timeStartDragStart=this.event.time.start,this.timeEndDragStart=this.event.time.end},onMouseUpWhenDragging(){this.$emit("drag-end"),this.handleDragEnd()},handleDragEnd(){this.canDrag=!1,this.eventZIndexValue="initial",this.dragMoveListenerNameAndCallbacks.forEach((([e,t])=>{document.removeEventListener(e,t)}));const e=this.changeInDaysOnDrag<=-1||this.changeInDaysOnDrag>0,t=this.changeInQuartersOnDrag<=-1||this.changeInQuartersOnDrag>0;(e||t)&&this.$emit("event-was-dragged",this.event)},handleDrag(e){this.isResizing||!this.canDrag||!this.clientYDragStart||(d.isUIEventTouchEvent(e)?(this.handleVerticalDrag(e.touches[0].clientY),this.handleHorizontalDrag(e.touches[0].clientX)):(this.handleVerticalDrag(e.clientY),this.handleHorizontalDrag(e.clientX)))},handleVerticalDrag(e){const t=document.querySelector(".calendar-week__events");if(!t||!this.clientYDragStart)return;const n=(e-this.clientYDragStart)/t.clientHeight*100,i=this.timePointsInDay/100*n,a=this.getMinutesFromTimePoints(i);this.changeInQuartersOnDrag=a<0?Math.ceil(a/15):Math.floor(a/15)},handleHorizontalDrag(e){if(!this.dayElement||!this.clientXDragStart)return;const t=this.dayElement.clientWidth,n=e-this.clientXDragStart;this.changeInDaysOnDrag=n<0?Math.ceil(n/t):Math.floor(n/t)},updatePositionOnDrag(){const e=15*this.changeInQuartersOnDrag,t=1440*this.changeInDaysOnDrag;this.event.time.start=this.time.addMinutesToDateTimeString(e+t,this.timeStartDragStart),this.event.time.end=this.time.addMinutesToDateTimeString(e+t,this.timeEndDragStart)}}}),ji=["data-ref"],$i={class:"calendar-week__event-row is-title"},Xi={class:"calendar-week__event-row is-time"},Ui={key:0,class:"calendar-week__event-row is-location"},qi={key:1,class:"calendar-week__event-row is-with"},Gi={key:2,class:"calendar-week__event-row is-topic"},Ki={key:3,class:"calendar-week__event-row is-description"},Qi=["innerHTML"];const Ji=ri(Vi,[["render",function(e,n,i,a,r,o){const s=t.resolveComponent("font-awesome-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["calendar-week__event is-event",{"is-editable":e.isEditable,"has-disabled-dnd":e.hasDisabledDragAndDrop}]),style:t.normalizeStyle({...e.requiredStyles,border:e.getBorderRule}),"data-ref":"event-"+e.event.id,onClick:n[2]||(n[2]=(...t)=>e.handleClickOnEvent&&e.handleClickOnEvent(...t)),onMouseenter:n[3]||(n[3]=t=>e.showResizeElements=e.isEditable&&!e.hasDisabledResize),onMouseleave:n[4]||(n[4]=t=>e.showResizeElements=!1),onMousedown:n[5]||(n[5]=(...t)=>e.initDrag&&e.initDrag(...t)),onTouchstart:n[6]||(n[6]=(...t)=>e.initDrag&&e.initDrag(...t))},[e.isCustomEvent?t.renderSlot(e.$slots,"weekDayEvent",{key:1,eventData:e.event},void 0,!0):(t.openBlock(),t.createElementBlock("div",{key:0,class:"calendar-week__event-info-wrapper",style:t.normalizeStyle({color:e.eventColor,width:"100%",height:"100%",backgroundColor:e.eventBackgroundColor})},[t.createElementVNode("div",$i,t.toDisplayString(e.event.title),1),t.createElementVNode("div",Xi,[t.createVNode(s,{icon:e.icons.clock,class:"calendar-week__event-icon"},null,8,["icon"]),t.createElementVNode("span",null,t.toDisplayString(e.getEventTime),1)]),e.event.location?(t.openBlock(),t.createElementBlock("div",Ui,[t.createVNode(s,{icon:e.icons.location,class:"calendar-week__event-icon"},null,8,["icon"]),t.createElementVNode("span",null,t.toDisplayString(e.event.location),1)])):t.createCommentVNode("",!0),e.event.with?(t.openBlock(),t.createElementBlock("div",qi,[t.createVNode(s,{icon:e.icons.user,class:"calendar-week__event-icon"},null,8,["icon"]),t.createElementVNode("span",null,t.toDisplayString(e.event.with),1)])):t.createCommentVNode("",!0),e.event.topic?(t.openBlock(),t.createElementBlock("div",Gi,[t.createVNode(s,{icon:e.icons.topic,class:"calendar-week__event-icon"},null,8,["icon"]),t.createElementVNode("span",null,t.toDisplayString(e.event.topic),1)])):t.createCommentVNode("",!0),e.event.description?(t.openBlock(),t.createElementBlock("div",Ki,[t.createVNode(s,{icon:e.icons.description,class:"calendar-week__event-icon"},null,8,["icon"]),t.createElementVNode("p",{innerHTML:e.event.description},null,8,Qi)])):t.createCommentVNode("",!0),e.eventIsLongerThan30Minutes?(t.openBlock(),t.createElementBlock("div",{key:4,class:"calendar-week__event-blend-out",style:t.normalizeStyle({backgroundImage:"linear-gradient(to bottom, transparent, "+e.eventBackgroundColor+")"})},null,4)):t.createCommentVNode("",!0)],4)),e.showResizeElements?(t.openBlock(),t.createElementBlock("div",{key:2,class:"calendar-week__event-resize calendar-week__event-resize-up",onMousedown:n[0]||(n[0]=t=>e.resizeEvent("up"))},null,32)):t.createCommentVNode("",!0),e.showResizeElements?(t.openBlock(),t.createElementBlock("div",{key:3,class:"calendar-week__event-resize calendar-week__event-resize-down",onMousedown:n[1]||(n[1]=t=>e.resizeEvent("down"))},null,32)):t.createCommentVNode("",!0)],46,ji)}],["__scopeId","data-v-5564d436"]]);class Zi extends f{constructor(e,t,n=24){super(),a(this,"INTERVAL_MINUTES"),a(this,"DAY_START_DATE_TIME_STRING"),a(this,"HOURS_PER_DAY",24),this.INTERVAL_MINUTES=e,this.DAY_START_DATE_TIME_STRING=t,this.HOURS_PER_DAY=n}getIntervals(){const e=[],t=this.HOURS_PER_DAY*(60/this.INTERVAL_MINUTES);let n=this.DAY_START_DATE_TIME_STRING;for(;e.length<t;){const t=this.addMinutesToDateTimeString(this.INTERVAL_MINUTES,n);e.push({intervalStart:n,intervalEnd:t,hasBorder:"00"!==t.substring(14,16)}),n=t}return e}}const ea=new class{sortEventsAccordingToStartOfTime(e){return e.sort((function(e,t){return e.time.start<t.time.start?-1:e.time.start>t.time.start?1:0}))}calculateConcurrencyForEvents(e){const t=this.sortEventsAccordingToStartOfTime(e);if(!t.length)return[];for(const[e,n]of t.entries()){if(0===e)continue;t[e-1];let i=0,a=0;for(;i<e;)t[i].time.end>n.time.start&&a++,i++;a&&(t[e].nOfPreviousConcurrentEvents=a)}for(let e=t.length-1;e>=0;e--){let n=0,i=t.length-1;for(;i>e;)t[i].time.start<t[e].time.end&&n++,i--;const a=t[e].nOfPreviousConcurrentEvents||0;t[e].totalConcurrentEvents=a+n+1}return e}},ta=t.defineComponent({name:"Day",components:{DayEvent:Ji},props:{day:{type:Object,required:!0},time:{type:Object,required:!0},config:{type:Object,required:!0},dayInfo:{type:Object,required:!0},mode:{type:String,required:!0},dayIntervals:{type:Object,required:!0},weekHeight:{type:Number,required:!0}},emits:["event-was-clicked","event-was-resized","event-was-dragged","interval-was-clicked","day-was-clicked","datetime-was-clicked","drag-start","drag-end"],data:()=>({events:[],intervals:[]}),computed:{intervalStyles(){var e;return null!=(e=this.config.dayIntervals)&&e.intervalStyles?this.config.dayIntervals.intervalStyles:{}}},mounted(){this.calculateEventConcurrency(),this.dayIntervals.displayClickableInterval&&this.setClickableIntervals()},methods:{calculateEventConcurrency(){this.events=ea.calculateConcurrencyForEvents(this.day.events)},handleEventWasResized(e){this.$emit("event-was-resized",e),this.calculateEventConcurrency()},handleClickOnInterval(e){const{intervalStart:t,intervalEnd:n}=e;this.$emit("interval-was-clicked",{intervalStart:t,intervalEnd:n})},setClickableIntervals(){let e=this.day.dateTimeString;if(0!==this.time.DAY_START){const{hour:t}=this.time.getHourAndMinutesFromTimePoints(this.time.DAY_START);e=this.time.setSegmentOfDateTimeString(e,{hour:t})}this.intervals=new Zi(this.dayIntervals.length||60,e,this.time.HOURS_PER_DAY).getIntervals()},handleClickOnDay(e){const t=this.time.getTimeFromClick(e.offsetY,this.weekHeight);let n=this.time.dateStringFrom(this.day.dateTimeString);this.time.DAY_END<=this.time.DAY_START&&(n=this.getDateStringForFlexibleDayBoundaries(n,t));const i=`${n} ${t}`;this.$emit("day-was-clicked",n),this.$emit("datetime-was-clicked",i)},getDateStringForFlexibleDayBoundaries(e,t){return t<`${this.time.doubleDigit(this.time.DAY_START/100)}:00`&&(e=this.time.dateStringFrom(this.time.addDaysToDateTimeString(1,e))),e}}}),na=["id","onClick"];const ia=ri(ta,[["render",function(e,n,i,a,r,o){const s=t.resolveComponent("DayEvent");return t.openBlock(),t.createElementBlock("div",{class:"calendar-week__day",onClick:n[4]||(n[4]=t.withModifiers(((...t)=>e.handleClickOnDay&&e.handleClickOnDay(...t)),["self"]))},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.events,((i,a)=>(t.openBlock(),t.createBlock(s,{key:a,"data-test":"day-event","event-prop":i,day:e.day,time:e.time,config:e.config,"day-info":e.dayInfo,mode:e.mode,onEventWasClicked:n[0]||(n[0]=t=>e.$emit("event-was-clicked",t)),onEventWasDragged:n[1]||(n[1]=t=>e.$emit("event-was-dragged",t)),onEventWasResized:e.handleEventWasResized,onDragStart:n[2]||(n[2]=t=>e.$emit("drag-start")),onDragEnd:n[3]||(n[3]=t=>e.$emit("drag-end"))},{weekDayEvent:t.withCtx((n=>[t.renderSlot(e.$slots,"weekDayEvent",{eventData:n.eventData},void 0,!0)])),_:2},1032,["event-prop","day","time","config","day-info","mode","onEventWasResized"])))),128)),e.dayIntervals&&e.dayIntervals.displayClickableInterval?(t.openBlock(!0),t.createElementBlock(t.Fragment,{key:0},t.renderList(e.intervals,((n,i)=>(t.openBlock(),t.createElementBlock("div",{id:"interval-"+i,key:n.intervalStart,class:t.normalizeClass(["calendar-week__day-interval",{"has-border":n.hasBorder}]),style:t.normalizeStyle(e.intervalStyles),onClick:t=>e.handleClickOnInterval(n)},t.toDisplayString(e.time.getLocalizedTime(n.intervalStart)),15,na)))),128)):t.createCommentVNode("",!0)])}],["__scopeId","data-v-b268be7e"]]),aa={x:8,y:26,width:903,height:702,top:26,right:911,bottom:728,left:8};var ra={prefix:"far",iconName:"trash-can",icon:[448,512,[61460,"trash-alt"],"f2ed","M170.5 51.6L151.5 80h145l-19-28.4c-1.5-2.2-4-3.6-6.7-3.6H177.1c-2.7 0-5.2 1.3-6.7 3.6zm147-26.6L354.2 80H368h48 8c13.3 0 24 10.7 24 24s-10.7 24-24 24h-8V432c0 44.2-35.8 80-80 80H112c-44.2 0-80-35.8-80-80V128H24c-13.3 0-24-10.7-24-24S10.7 80 24 80h8H80 93.8l36.7-55.1C140.9 9.4 158.4 0 177.1 0h93.7c18.7 0 36.2 9.4 46.6 24.9zM80 128V432c0 17.7 14.3 32 32 32H336c17.7 0 32-14.3 32-32V128H80zm80 64V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16zm80 0V400c0 8.8-7.2 16-16 16s-16-7.2-16-16V192c0-8.8 7.2-16 16-16s16 7.2 16 16z"]},oa={prefix:"far",iconName:"pen-to-square",icon:[512,512,["edit"],"f044","M441 58.9L453.1 71c9.4 9.4 9.4 24.6 0 33.9L424 134.1 377.9 88 407 58.9c9.4-9.4 24.6-9.4 33.9 0zM209.8 256.2L344 121.9 390.1 168 255.8 302.2c-2.9 2.9-6.5 5-10.4 6.1l-58.5 16.7 16.7-58.5c1.1-3.9 3.2-7.5 6.1-10.4zM373.1 25L175.8 222.2c-8.7 8.7-15 19.4-18.3 31.1l-28.6 100c-2.4 8.4-.1 17.4 6.1 23.6s15.2 8.5 23.6 6.1l100-28.6c11.8-3.4 22.5-9.7 31.1-18.3L487 138.9c28.1-28.1 28.1-73.7 0-101.8L474.9 25C446.8-3.1 401.2-3.1 373.1 25zM88 64C39.4 64 0 103.4 0 152V424c0 48.6 39.4 88 88 88H360c48.6 0 88-39.4 88-88V312c0-13.3-10.7-24-24-24s-24 10.7-24 24V424c0 22.1-17.9 40-40 40H88c-22.1 0-40-17.9-40-40V152c0-22.1 17.9-40 40-40H200c13.3 0 24-10.7 24-24s-10.7-24-24-24H88z"]},sa={prefix:"far",iconName:"user",icon:[448,512,[128100,62144],"f007","M304 128a80 80 0 1 0 -160 0 80 80 0 1 0 160 0zM96 128a128 128 0 1 1 256 0A128 128 0 1 1 96 128zM49.3 464H398.7c-8.9-63.3-63.3-112-129-112H178.3c-65.7 0-120.1 48.7-129 112zM0 482.3C0 383.8 79.8 304 178.3 304h91.4C368.2 304 448 383.8 448 482.3c0 16.4-13.3 29.7-29.7 29.7H29.7C13.3 512 0 498.7 0 482.3z"]},la={prefix:"far",iconName:"circle-question",icon:[512,512,[62108,"question-circle"],"f059","M464 256A208 208 0 1 0 48 256a208 208 0 1 0 416 0zM0 256a256 256 0 1 1 512 0A256 256 0 1 1 0 256zm169.8-90.7c7.9-22.3 29.1-37.3 52.8-37.3h58.3c34.9 0 63.1 28.3 63.1 63.1c0 22.6-12.1 43.5-31.7 54.8L280 264.4c-.2 13-10.9 23.6-24 23.6c-13.3 0-24-10.7-24-24V250.5c0-8.6 4.6-16.5 12.1-20.8l44.3-25.4c4.7-2.7 7.6-7.7 7.6-13.1c0-8.4-6.8-15.1-15.1-15.1H222.6c-3.4 0-6.4 2.1-7.5 5.3l-.4 1.2c-4.4 12.5-18.2 19-30.6 14.6s-19-18.2-14.6-30.6l.4-1.2zM224 352a32 32 0 1 1 64 0 32 32 0 1 1 -64 0z"]},ca={prefix:"far",iconName:"comment",icon:[512,512,[128489,61669],"f075","M123.6 391.3c12.9-9.4 29.6-11.8 44.6-6.4c26.5 9.6 56.2 15.1 87.8 15.1c124.7 0 208-80.5 208-160s-83.3-160-208-160S48 160.5 48 240c0 32 12.4 62.8 35.7 89.2c8.6 9.7 12.8 22.5 11.8 35.5c-1.4 18.1-5.7 34.7-11.3 49.4c17-7.9 31.1-16.7 39.4-22.7zM21.2 431.9c1.8-2.7 3.5-5.4 5.1-8.1c10-16.6 19.5-38.4 21.4-62.9C17.7 326.8 0 285.1 0 240C0 125.1 114.6 32 256 32s256 93.1 256 208s-114.6 208-256 208c-37.1 0-72.3-6.4-104.1-17.9c-11.9 8.7-31.3 20.6-54.3 30.6c-15.1 6.6-32.3 12.6-50.1 16.1c-.8 .2-1.6 .3-2.4 .5c-4.4 .8-8.7 1.5-13.2 1.9c-.2 0-.5 .1-.7 .1c-5.1 .5-10.2 .8-15.3 .8c-6.5 0-12.3-3.9-14.8-9.9c-2.5-6-1.1-12.8 3.4-17.4c4.1-4.2 7.8-8.7 11.3-13.5c1.7-2.3 3.3-4.6 4.8-6.9c.1-.2 .2-.3 .3-.5z"]},da={prefix:"far",iconName:"clock",icon:[512,512,[128339,"clock-four"],"f017","M464 256A208 208 0 1 1 48 256a208 208 0 1 1 416 0zM0 256a256 256 0 1 0 512 0A256 256 0 1 0 0 256zM232 120V256c0 8 4 15.5 10.7 20l96 64c11 7.4 25.9 4.4 33.3-6.7s4.4-25.9-6.7-33.3L280 243.2V120c0-13.3-10.7-24-24-24s-24 10.7-24 24z"]};const ua=new class{calculateFlyoutPosition(e,t,n=null){const i=n||aa,a=e.top-i.top,r=i.right-e.right,o=i.bottom-e.bottom,s=e.left-i.left,l=t.width+10,c=o<0?i.bottom-t.height-10:null,d=a<0?i.top+10:null;return o>t.height&&r>l?{top:d||Math.round(e.top),left:Math.round(e.right)+10}:a>t.height&&r>l?{top:c||Math.round(e.bottom)-t.height,left:Math.round(e.right)+10}:s>l&&o>t.height?{top:d||e.top,left:Math.round(e.left-(t.width+10))}:s>l&&a>t.height?{top:c||Math.round(e.bottom-t.height),left:Math.round(e.left-(t.width+10))}:o<t.height?{top:i.bottom-t.height,left:null}:{top:e.top,left:null}}},ma=t.defineComponent({name:"EventFlyout",components:{FontAwesomeIcon:Xn},props:{calendarEventProp:{type:Object,default:()=>({})},eventElement:{type:Object,default:null},time:{type:Object,required:!0},config:{type:Object,required:!0}},emits:["hide","edit-event","delete-event"],data(){return{isVisible:!1,top:0,left:0,icons:{clock:da,user:sa,description:ca,trash:ra,edit:oa,times:Zn,topic:la,location:Jn},calendarEvent:this.calendarEventProp,flyoutWidth:"400px",colors:o}},computed:{getEventTime(){if(!this.calendarEvent||!this.calendarEvent.time)return null;const e=d.getEventType(this.calendarEvent,this.time);if([r.MULTI_DAY_TIMED].includes(e)){return`${this.getDateFromDateString(this.calendarEvent.time.start)+" "+this.time.getLocalizedTime(this.calendarEvent.time.start)} - ${this.getDateFromDateString(this.calendarEvent.time.end)+" "+this.time.getLocalizedTime(this.calendarEvent.time.end)}`}if([r.SINGLE_DAY_FULL_DAY,r.MULTI_DAY_FULL_DAY].includes(e)){const e=this.getDateFromDateString(this.calendarEvent.time.start),t=this.getDateFromDateString(this.calendarEvent.time.end);return e===t?e:`${e} - ${t}`}return`${this.getDateFromDateString(this.calendarEvent.time.start)} ? ${this.time.getLocalizedTimeRange(this.calendarEvent.time.start,this.calendarEvent.time.end)}`},eventFlyoutInlineStyles(){return"number"!=typeof this.top||this.left?{top:this.top+"px",left:this.left+"px",position:"fixed"}:{top:this.top+"px",left:"50%",position:"fixed",transform:"translateX(-50%)"}},isEditable(){var e;return(null==(e=this.calendarEventProp)?void 0:e.isEditable)||!1},eventBackgroundColor(){var e,t,n;return null!=(e=this.calendarEvent)&&e.colorScheme&&null!=(t=this.config.style)&&t.colorSchemes&&this.config.style.colorSchemes[this.calendarEvent.colorScheme]?this.config.style.colorSchemes[this.calendarEvent.colorScheme].backgroundColor:this.colors[(null==(n=this.calendarEvent)?void 0:n.color)||"blue"]}},watch:{calendarEventProp:{deep:!0,handler(e){setTimeout((()=>{this.calendarEvent=e,this.isVisible=!!e,this.$nextTick((()=>this.setFlyoutPosition()))}),10)}}},mounted(){this.listenForClickOutside()},beforeUnmount(){document.removeEventListener("click",this.closeFlyoutOnClickOutside)},methods:{setFlyoutPosition(){var e,t;const n=null==(e=this.eventElement)?void 0:e.closest(".calendar-root"),i=document.querySelector(".event-flyout");if(!this.eventElement)return;const a=ua.calculateFlyoutPosition(null==(t=this.eventElement)?void 0:t.getBoundingClientRect(),{height:(null==i?void 0:i.clientHeight)||300,width:(null==i?void 0:i.clientWidth)||0},n?n.getBoundingClientRect():null);this.top="number"==typeof(null==a?void 0:a.top)?a.top:null,this.left="number"==typeof(null==a?void 0:a.left)?a.left:null},editEvent(){var e;this.$emit("edit-event",null==(e=this.calendarEvent)?void 0:e.id),this.closeFlyout()},deleteEvent(){var e;this.$emit("delete-event",null==(e=this.calendarEvent)?void 0:e.id),this.closeFlyout()},closeFlyout(){this.isVisible=!1,setTimeout((()=>{this.$emit("hide")}),100)},getDateFromDateString(e){const{year:t,month:n,date:i}=this.time.getAllVariablesFromDateTimeString(e);return new Date(t,n,i).toLocaleDateString(this.time.CALENDAR_LOCALE,{year:"numeric",month:"long",day:"numeric"})},listenForClickOutside(){document.addEventListener("click",this.closeFlyoutOnClickOutside)},closeFlyoutOnClickOutside(e){var t;const n=document.querySelector(".event-flyout");if(!n||!this.isVisible)return;const i=!n.contains(e.target),a=!!e.target.closest(".is-event"),r=(null==(t=this.config.eventDialog)?void 0:t.closeOnClickOutside)??!0;this.isVisible&&i&&!a&&r&&this.closeFlyout()}}}),ha=()=>{t.useCssVars((e=>({"7c0b2114":e.flyoutWidth})))},fa=ma.setup;ma.setup=fa?(e,t)=>(ha(),fa(e,t)):ha;const ga={key:0,class:"event-flyout__relative-wrapper"},va={class:"event-flyout__menu"},pa={key:0,class:"event-flyout__menu-editable"},ya={class:"event-flyout__menu-close"},ba={key:0,class:"event-flyout__info-wrapper"},ka={key:0,class:"event-flyout__row is-title"},Da={key:1,class:"event-flyout__row is-time"},Ea={key:2,class:"event-flyout__row is-location"},wa={key:3,class:"event-flyout__row is-with"},Sa={key:4,class:"event-flyout__row is-topic"},Ta={key:5,class:"event-flyout__row is-description"},Ca=["innerHTML"];const _a=ri(ma,[["render",function(e,n,i,a,r,o){const s=t.resolveComponent("font-awesome-icon");return t.openBlock(),t.createElementBlock("div",{class:t.normalizeClass(["event-flyout",{"is-visible":e.isVisible,"is-not-editable":!e.isEditable}]),style:t.normalizeStyle(e.eventFlyoutInlineStyles)},[e.config.eventDialog&&e.config.eventDialog.isCustom?t.renderSlot(e.$slots,"default",{key:1,eventDialogData:e.calendarEvent,closeEventDialog:e.closeFlyout},void 0,!0):(t.openBlock(),t.createElementBlock("div",ga,[t.createElementVNode("div",va,[e.isEditable?(t.openBlock(),t.createElementBlock("span",pa,[t.createVNode(s,{class:"event-flyout__menu-item is-edit-icon",icon:e.icons.edit,onClick:e.editEvent},null,8,["icon","onClick"]),t.createVNode(s,{class:"event-flyout__menu-item is-trash-icon",icon:e.icons.trash,onClick:e.deleteEvent},null,8,["icon","onClick"])])):t.createCommentVNode("",!0),t.createElementVNode("span",ya,[t.createVNode(s,{class:"event-flyout__menu-item is-times-icon",icon:e.icons.times,onClick:e.closeFlyout},null,8,["icon","onClick"])])]),e.calendarEvent?(t.openBlock(),t.createElementBlock("div",ba,[e.calendarEvent.title?(t.openBlock(),t.createElementBlock("div",ka,[t.createElementVNode("div",{class:"event-flyout__color-icon",style:t.normalizeStyle({backgroundColor:e.eventBackgroundColor})},null,4),t.createTextVNode(" "+t.toDisplayString(e.calendarEvent.title),1)])):t.createCommentVNode("",!0),e.calendarEvent.time?(t.openBlock(),t.createElementBlock("div",Da,t.toDisplayString(e.getEventTime),1)):t.createCommentVNode("",!0),e.calendarEvent.location?(t.openBlock(),t.createElementBlock("div",Ea,[t.createVNode(s,{icon:e.icons.location},null,8,["icon"]),t.createTextVNode(" "+t.toDisplayString(e.calendarEvent.location),1)])):t.createCommentVNode("",!0),e.calendarEvent.with?(t.openBlock(),t.createElementBlock("div",wa,[t.createVNode(s,{icon:e.icons.user},null,8,["icon"]),t.createTextVNode(" "+t.toDisplayString(e.calendarEvent.with),1)])):t.createCommentVNode("",!0),e.calendarEvent.topic?(t.openBlock(),t.createElementBlock("div",Sa,[t.createVNode(s,{icon:e.icons.topic,class:"calendar-week__event-icon"},null,8,["icon"]),t.createTextVNode(" "+t.toDisplayString(e.calendarEvent.topic),1)])):t.createCommentVNode("",!0),e.calendarEvent.description?(t.openBlock(),t.createElementBlock("div",Ta,[t.createVNode(s,{icon:e.icons.description,class:"calendar-week__event-icon"},null,8,["icon"]),t.createElementVNode("p",{innerHTML:e.calendarEvent.description},null,8,Ca)])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0)]))],6)}],["__scopeId","data-v-d6a61e37"]]);class Aa extends f{positionFullDayEventsInWeek(e,t,n){const i=n.map((e=>{const{year:t,month:n,date:i}=this.getAllVariablesFromDateTimeString(e.time.start),{year:a,month:r,date:o}=this.getAllVariablesFromDateTimeString(e.time.end);return e.timeJS={start:new Date(t,n,i),end:new Date(a,r,o)},e})).sort(((e,t)=>e.time.start<t.time.start?-1:e.time.start>t.time.start?1:0)),a=this.getDatesBetweenTwoDates(e,t).map((e=>({date:e})));for(const e of i)for(const[t,n]of a.entries()){const i=this.getDateStringFromDate(n.date);if(this.getDateStringFromDate(e.timeJS.start)<=i&&this.getDateStringFromDate(e.timeJS.end)>=i){let i=1;for(;typeof a[t][`level${i}`]<"u";)i++;let r=Math.ceil((e.timeJS.end.getTime()-n.date.getTime())/this.MS_PER_DAY)+1;const o=a.length-t;r>o&&(r=o),a[t][`level${i}`]={...e,nDays:r};for(let e=1;e<r;e++)a[t+e][`level${i}`]="blocked";break}}const r=[];for(const e of a)r.push(Object.keys(e).sort().reduce(((t,n)=>(t[n]=e[n],t)),{}));return r}positionFullDayEventsInMonth(e,t){const n=[],i=e.flat(),a=new Map;i.forEach((e=>a.set(this.dateStringFrom(e.dateTimeString),e))),t=t.sort(((e,t)=>e.time.start<t.time.start?1:e.time.start>t.time.start?-1:0));for(const e of t){const{year:t,month:n,date:i}=this.getAllVariablesFromDateTimeString(e.time.start),{year:r,month:o,date:s}=this.getAllVariablesFromDateTimeString(e.time.end),l=this.getDatesBetweenTwoDates(new Date(t,n,i),new Date(r,o,s));for(const t of l){const n=this.getDateStringFromDate(t),i=a.get(n);i&&a.set(n,{...i,events:[e,...i.events]})}}let r=0;return a.forEach((e=>{n.length?n[r]&&n[r].length<7?n[r].push(e):n[r]&&7===n[r].length&&(n.push([e]),r++):n.push([e])})),n /*! * perfect-scrollbar v1.5.3 * Copyright 2021 Hyunje Jun, MDBootstrap and Contributors * Licensed under MIT */}}function Ma(e){return getComputedStyle(e)}function Ia(e,t){for(var n in t){var i=t[n];"number"==typeof i&&(i+="px"),e.style[n]=i}return e}function Na(e){var t=document.createElement("div");return t.className=e,t}var xa=typeof Element<"u"&&(Element.prototype.matches||Element.prototype.webkitMatchesSelector||Element.prototype.mozMatchesSelector||Element.prototype.msMatchesSelector);function Pa(e,t){if(!xa)throw new Error("No element matching method supported");return xa.call(e,t)}function Oa(e){e.remove?e.remove():e.parentNode&&e.parentNode.removeChild(e)}function La(e,t){return Array.prototype.filter.call(e.children,(function(e){return Pa(e,t)}))}var Fa={main:"ps",rtl:"ps__rtl",element:{thumb:function(e){return"ps__thumb-"+e},rail:function(e){return"ps__rail-"+e},consuming:"ps__child--consume"},state:{focus:"ps--focus",clicking:"ps--clicking",active:function(e){return"ps--active-"+e},scrolling:function(e){return"ps--scrolling-"+e}}},Ba={x:null,y:null};function Ra(e,t){var n=e.element.classList,i=Fa.state.scrolling(t);n.contains(i)?clearTimeout(Ba[t]):n.add(i)}function Ya(e,t){Ba[t]=setTimeout((function(){return e.isAlive&&e.element.classList.remove(Fa.state.scrolling(t))}),e.settings.scrollingThreshold)}var za=function(e){this.element=e,this.handlers={}},Wa={isEmpty:{configurable:!0}};za.prototype.bind=function(e,t){typeof this.handlers[e]>"u"&&(this.handlers[e]=[]),this.handlers[e].push(t),this.element.addEventListener(e,t,!1)},za.prototype.unbind=function(e,t){var n=this;this.handlers[e]=this.handlers[e].filter((function(i){return!(!t||i===t)||(n.element.removeEventListener(e,i,!1),!1)}))},za.prototype.unbindAll=function(){for(var e in this.handlers)this.unbind(e)},Wa.isEmpty.get=function(){var e=this;return Object.keys(this.handlers).every((function(t){return 0===e.handlers[t].length}))},Object.defineProperties(za.prototype,Wa);var Ha=function(){this.eventElements=[]};function Va(e){if("function"==typeof window.CustomEvent)return new CustomEvent(e);var t=document.createEvent("CustomEvent");return t.initCustomEvent(e,!1,!1,void 0),t}function ja(e,t,n,i,a){var r;if(void 0===i&&(i=!0),void 0===a&&(a=!1),"top"===t)r=["contentHeight","containerHeight","scrollTop","y","up","down"];else{if("left"!==t)throw new Error("A proper axis should be provided");r=["contentWidth","containerWidth","scrollLeft","x","left","right"]}!function(e,t,n,i,a){var r=n[0],o=n[1],s=n[2],l=n[3],c=n[4],d=n[5];void 0===i&&(i=!0),void 0===a&&(a=!1);var u=e.element;e.reach[l]=null,u[s]<1&&(e.reach[l]="start"),u[s]>e[r]-e[o]-1&&(e.reach[l]="end"),t&&(u.dispatchEvent(Va("ps-scroll-"+l)),t<0?u.dispatchEvent(Va("ps-scroll-"+c)):t>0&&u.dispatchEvent(Va("ps-scroll-"+d)),i&&function(e,t){Ra(e,t),Ya(e,t)}(e,l)),e.reach[l]&&(t||a)&&u.dispatchEvent(Va("ps-"+l+"-reach-"+e.reach[l]))}(e,n,r,i,a)}function $a(e){return parseInt(e,10)||0}Ha.prototype.eventElement=function(e){var t=this.eventElements.filter((function(t){return t.element===e}))[0];return t||(t=new za(e),this.eventElements.push(t)),t},Ha.prototype.bind=function(e,t,n){this.eventElement(e).bind(t,n)},Ha.prototype.unbind=function(e,t,n){var i=this.eventElement(e);i.unbind(t,n),i.isEmpty&&this.eventElements.splice(this.eventElements.indexOf(i),1)},Ha.prototype.unbindAll=function(){this.eventElements.forEach((function(e){return e.unbindAll()})),this.eventElements=[]},Ha.prototype.once=function(e,t,n){var i=this.eventElement(e),a=function(e){i.unbind(t,a),n(e)};i.bind(t,a)};var Xa={isWebKit:typeof document<"u"&&"WebkitAppearance"in document.documentElement.style,supportsTouch:typeof window<"u"&&("ontouchstart"in window||"maxTouchPoints"in window.navigator&&window.navigator.maxTouchPoints>0||window.DocumentTouch&&document instanceof window.DocumentTouch),supportsIePointer:typeof navigator<"u"&&navigator.msMaxTouchPoints,isChrome:typeof navigator<"u"&&/Chrome/i.test(navigator&&navigator.userAgent)};function Ua(e){var t=e.element,n=Math.floor(t.scrollTop),i=t.getBoundingClientRect();e.containerWidth=Math.round(i.width),e.containerHeight=Math.round(i.height),e.contentWidth=t.scrollWidth,e.contentHeight=t.scrollHeight,t.contains(e.scrollbarXRail)||(La(t,Fa.element.rail("x")).forEach((function(e){return Oa(e)})),t.appendChild(e.scrollbarXRail)),t.contains(e.scrollbarYRail)||(La(t,Fa.element.rail("y")).forEach((function(e){return Oa(e)})),t.appendChild(e.scrollbarYRail)),!e.settings.suppressScrollX&&e.containerWidth+e.settings.scrollXMarginOffset<e.contentWidth?(e.scrollbarXActive=!0,e.railXWidth=e.containerWidth-e.railXMarginWidth,e.railXRatio=e.containerWidth/e.railXWidth,e.scrollbarXWidth=qa(e,$a(e.railXWidth*e.containerWidth/e.contentWidth)),e.scrollbarXLeft=$a((e.negativeScrollAdjustment+t.scrollLeft)*(e.railXWidth-e.scrollbarXWidth)/(e.contentWidth-e.containerWidth))):e.scrollbarXActive=!1,!e.settings.suppressScrollY&&e.containerHeight+e.settings.scrollYMarginOffset<e.contentHeight?(e.scrollbarYActive=!0,e.railYHeight=e.containerHeight-e.railYMarginHeight,e.railYRatio=e.containerHeight/e.railYHeight,e.scrollbarYHeight=qa(e,$a(e.railYHeight*e.containerHeight/e.contentHeight)),e.scrollbarYTop=$a(n*(e.railYHeight-e.scrollbarYHeight)/(e.contentHeight-e.containerHeight))):e.scrollbarYActive=!1,e.scrollbarXLeft>=e.railXWidth-e.scrollbarXWidth&&(e.scrollbarXLeft=e.railXWidth-e.scrollbarXWidth),e.scrollbarYTop>=e.railYHeight-e.scrollbarYHeight&&(e.scrollbarYTop=e.railYHeight-e.scrollbarYHeight),function(e,t){var n={width:t.railXWidth},i=Math.floor(e.scrollTop);t.isRtl?n.left=t.negativeScrollAdjustment+e.scrollLeft+t.containerWidth-t.contentWidth:n.left=e.scrollLeft,t.isScrollbarXUsingBottom?n.bottom=t.scrollbarXBottom-i:n.top=t.scrollbarXTop+i,Ia(t.scrollbarXRail,n);var a={top:i,height:t.railYHeight};t.isScrollbarYUsingRight?t.isRtl?a.right=t.contentWidth-(t.negativeScrollAdjustment+e.scrollLeft)-t.scrollbarYRight-t.scrollbarYOuterWidth-9:a.right=t.scrollbarYRight-e.scrollLeft:t.isRtl?a.left=t.negativeScrollAdjustment+e.scrollLeft+2*t.containerWidth-t.contentWidth-t.scrollbarYLeft-t.scrollbarYOuterWidth:a.left=t.scrollbarYLeft+e.scrollLeft,Ia(t.scrollbarYRail,a),Ia(t.scrollbarX,{left:t.scrollbarXLeft,width:t.scrollbarXWidth-t.railBorderXWidth}),Ia(t.scrollbarY,{top:t.scrollbarYTop,height:t.scrollbarYHeight-t.railBorderYWidth})}(t,e),e.scrollbarXActive?t.classList.add(Fa.state.active("x")):(t.classList.remove(Fa.state.active("x")),e.scrollbarXWidth=0,e.scrollbarXLeft=0,t.scrollLeft=!0===e.isRtl?e.contentWidth:0),e.scrollbarYActive?t.classList.add(Fa.state.active("y")):(t.classList.remove(Fa.state.active("y")),e.scrollbarYHeight=0,e.scrollbarYTop=0,t.scrollTop=0)}function qa(e,t){return e.settings.minScrollbarLength&&(t=Math.max(t,e.settings.minScrollbarLength)),e.settings.maxScrollbarLength&&(t=Math.min(t,e.settings.maxScrollbarLength)),t}function Ga(e,t){var n=t[0],i=t[1],a=t[2],r=t[3],o=t[4],s=t[5],l=t[6],c=t[7],d=t[8],u=e.element,m=null,h=null,f=null;function g(t){t.touches&&t.touches[0]&&(t[a]=t.touches[0].pageY),u[l]=m+f*(t[a]-h),Ra(e,c),Ua(e),t.stopPropagation(),t.type.startsWith("touch")&&t.changedTouches.length>1&&t.preventDefault()}function v(){Ya(e,c),e[d].classList.remove(Fa.state.clicking),e.event.unbind(e.ownerDocument,"mousemove",g)}function p(t,o){m=u[l],o&&t.touches&&(t[a]=t.touches[0].pageY),h=t[a],f=(e[i]-e[n])/(e[r]-e[s]),o?e.event.bind(e.ownerDocument,"touchmove",g):(e.event.bind(e.ownerDocument,"mousemove",g),e.event.once(e.ownerDocument,"mouseup",v),t.preventDefault()),e[d].classList.add(Fa.state.clicking),t.stopPropagation()}e.event.bind(e[o],"mousedown",(function(e){p(e)})),e.event.bind(e[o],"touchstart",(function(e){p(e,!0)}))}var Ka={"click-rail":function(e){e.element,e.event.bind(e.scrollbarY,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarYRail,"mousedown",(function(t){var n=t.pageY-window.pageYOffset-e.scrollbarYRail.getBoundingClientRect().top>e.scrollbarYTop?1:-1;e.element.scrollTop+=n*e.containerHeight,Ua(e),t.stopPropagation()})),e.event.bind(e.scrollbarX,"mousedown",(function(e){return e.stopPropagation()})),e.event.bind(e.scrollbarXRail,"mousedown",(function(t){var n=t.pageX-window.pageXOffset-e.scrollbarXRail.getBoundingClientRect().left>e.scrollbarXLeft?1:-1;e.element.scrollLeft+=n*e.containerWidth,Ua(e),t.stopPropagation()}))},"drag-thumb":function(e){Ga(e,["containerWidth","contentWidth","pageX","railXWidth","scrollbarX","scrollbarXWidth","scrollLeft","x","scrollbarXRail"]),Ga(e,["containerHeight","contentHeight","pageY","railYHeight","scrollbarY","scrollbarYHeight","scrollTop","y","scrollbarYRail"])},keyboard:function(e){var t=e.element;e.event.bind(e.ownerDocument,"keydown",(function(n){if(!(n.isDefaultPrevented&&n.isDefaultPrevented()||n.defaultPrevented)&&(Pa(t,":hover")||Pa(e.scrollbarX,":focus")||Pa(e.scrollbarY,":focus"))){var i=document.activeElement?document.activeElement:e.ownerDocument.activeElement;if(i){if("IFRAME"===i.tagName)i=i.contentDocument.activeElement;else for(;i.shadowRoot;)i=i.shadowRoot.activeElement;if(function(e){return Pa(e,"input,[contenteditable]")||Pa(e,"select,[contenteditable]")||Pa(e,"textarea,[contenteditable]")||Pa(e,"button,[contenteditable]")}(i))return}var a=0,r=0;switch(n.which){case 37:a=n.metaKey?-e.contentWidth:n.altKey?-e.containerWidth:-30;break;case 38:r=n.metaKey?e.contentHeight:n.altKey?e.containerHeight:30;break;case 39:a=n.metaKey?e.contentWidth:n.altKey?e.containerWidth:30;break;case 40:r=n.metaKey?-e.contentHeight:n.altKey?-e.containerHeight:-30;break;case 32:r=n.shiftKey?e.containerHeight:-e.containerHeight;break;case 33:r=e.containerHeight;break;case 34:r=-e.containerHeight;break;case 36:r=e.contentHeight;break;case 35:r=-e.contentHeight;break;default:return}e.settings.suppressScrollX&&0!==a||e.settings.suppressScrollY&&0!==r||(t.scrollTop-=r,t.scrollLeft+=a,Ua(e),function(n,i){var a=Math.floor(t.scrollTop);if(0===n){if(!e.scrollbarYActive)return!1;if(0===a&&i>0||a>=e.contentHeight-e.containerHeight&&i<0)return!e.settings.wheelPropagation}var r=t.scrollLeft;if(0===i){if(!e.scrollbarXActive)return!1;if(0===r&&n<0||r>=e.contentWidth-e.containerWidth&&n>0)return!e.settings.wheelPropagation}return!0}(a,r)&&n.preventDefault())}}))},wheel:function(e){var t=e.element;function n(n){var i=function(e){var t=e.deltaX,n=-1*e.deltaY;return(typeof t>"u"||typeof n>"u")&&(t=-1*e.wheelDeltaX/6,n=e.wheelDeltaY/6),e.deltaMode&&1===e.deltaMode&&(t*=10,n*=10),t!=t&&n!=n&&(t=0,n=e.wheelDelta),e.shiftKey?[-n,-t]:[t,n]}(n),a=i[0],r=i[1];if(!function(e,n,i){if(!Xa.isWebKit&&t.querySelector("select:focus"))return!0;if(!t.contains(e))return!1;for(var a=e;a&&a!==t;){if(a.classList.contains(Fa.element.consuming))return!0;var r=Ma(a);if(i&&r.overflowY.match(/(scroll|auto)/)){var o=a.scrollHeight-a.clientHeight;if(o>0&&(a.scrollTop>0&&i<0||a.scrollTop<o&&i>0))return!0}if(n&&r.overflowX.match(/(scroll|auto)/)){var s=a.scrollWidth-a.clientWidth;if(s>0&&(a.scrollLeft>0&&n<0||a.scrollLeft<s&&n>0))return!0}a=a.parentNode}return!1}(n.target,a,r)){var o=!1;e.settings.useBothWheelAxes?e.scrollbarYActive&&!e.scrollbarXActive?(r?t.scrollTop-=r*e.settings.wheelSpeed:t.scrollTop+=a*e.settings.wheelSpeed,o=!0):e.scrollbarXActive&&!e.scrollbarYActive&&(a?t.scrollLeft+=a*e.settings.wheelSpeed:t.scrollLeft-=r*e.settings.wheelSpeed,o=!0):(t.scrollTop-=r*e.settings.wheelSpeed,t.scrollLeft+=a*e.settings.wheelSpeed),Ua(e),o=o||function(n,i){var a=Math.floor(t.scrollTop),r=0===t.scrollTop,o=a+t.offsetHeight===t.scrollHeight,s=0===t.scrollLeft,l=t.scrollLeft+t.offsetWidth===t.scrollWidth;return!(Math.abs(i)>Math.abs(n)?r||o:s||l)||!e.settings.wheelPropagation}(a,r),o&&!n.ctrlKey&&(n.stopPropagation(),n.preventDefault())}}typeof window.onwheel<"u"?e.event.bind(t,"wheel",n):typeof window.onmousewheel<"u"&&e.event.bind(t,"mousewheel",n)},touch:function(e){if(Xa.supportsTouch||Xa.supportsIePointer){var t=e.element,n={},i=0,a={},r=null;Xa.supportsTouch?(e.event.bind(t,"touchstart",c),e.event.bind(t,"touchmove",d),e.event.bind(t,"touchend",u)):Xa.supportsIePointer&&(window.PointerEvent?(e.event.bind(t,"pointerdown",c),e.event.bind(t,"pointermove",d),e.event.bind(t,"pointerup",u)):window.MSPointerEvent&&(e.event.bind(t,"MSPointerDown",c),e.event.bind(t,"MSPointerMove",d),e.event.bind(t,"MSPointerUp",u)))}function o(n,i){t.scrollTop-=i,t.scrollLeft-=n,Ua(e)}function s(e){return e.targetTouches?e.targetTouches[0]:e}function l(e){return(!e.pointerType||"pen"!==e.pointerType||0!==e.buttons)&&!!(e.targetTouches&&1===e.targetTouches.length||e.pointerType&&"mouse"!==e.pointerType&&e.pointerType!==e.MSPOINTER_TYPE_MOUSE)}function c(e){if(l(e)){var t=s(e);n.pageX=t.pageX,n.pageY=t.pageY,i=(new Date).getTime(),null!==r&&clearInterval(r)}}function d(r){if(l(r)){var c=s(r),d={pageX:c.pageX,pageY:c.pageY},u=d.pageX-n.pageX,m=d.pageY-n.pageY;if(function(e,n,i){if(!t.contains(e))return!1;for(var a=e;a&&a!==t;){if(a.classList.contains(Fa.element.consuming))return!0;var r=Ma(a);if(i&&r.overflowY.match(/(scroll|auto)/)){var o=a.scrollHeight-a.clientHeight;if(o>0&&(a.scrollTop>0&&i<0||a.scrollTop<o&&i>0))return!0}if(n&&r.overflowX.match(/(scroll|auto)/)){var s=a.scrollWidth-a.clientWidth;if(s>0&&(a.scrollLeft>0&&n<0||a.scrollLeft<s&&n>0))return!0}a=a.parentNode}return!1}(r.target,u,m))return;o(u,m),n=d;var h=(new Date).getTime(),f=h-i;f>0&&(a.x=u/f,a.y=m/f,i=h),function(n,i){var a=Math.floor(t.scrollTop),r=t.scrollLeft,o=Math.abs(n),s=Math.abs(i);if(s>o){if(i<0&&a===e.contentHeight-e.containerHeight||i>0&&0===a)return 0===window.scrollY&&i>0&&Xa.isChrome}else if(o>s&&(n<0&&r===e.contentWidth-e.containerWidth||n>0&&0===r))return!0;return!0}(u,m)&&r.preventDefault()}}function u(){e.settings.swipeEasing&&(clearInterval(r),r=setInterval((function(){e.isInitialized?clearInterval(r):a.x||a.y?Math.abs(a.x)<.01&&Math.abs(a.y)<.01?clearInterval(r):e.element?(o(30*a.x,30*a.y),a.x*=.8,a.y*=.8):clearInterval(r):clearInterval(r)}),10))}}},Qa=function(e,t){var n=this;if(void 0===t&&(t={}),"string"==typeof e&&(e=document.querySelector(e)),!e||!e.nodeName)throw new Error("no element is specified to initialize PerfectScrollbar");for(var i in this.element=e,e.classList.add(Fa.main),this.settings={handlers:["click-rail","drag-thumb","keyboard","wheel","touch"],maxScrollbarLength:null,minScrollbarLength:null,scrollingThreshold:1e3,scrollXMarginOffset:0,scrollYMarginOffset:0,suppressScrollX:!1,suppressScrollY:!1,swipeEasing:!0,useBothWheelAxes:!1,wheelPropagation:!0,wheelSpeed:1},t)this.settings[i]=t[i];this.containerWidth=null,this.containerHeight=null,this.contentWidth=null,this.contentHeight=null;var a,r,o=function(){return e.classList.add(Fa.state.focus)},s=function(){return e.classList.remove(Fa.state.focus)};this.isRtl="rtl"===Ma(e).direction,!0===this.isRtl&&e.classList.add(Fa.rtl),this.isNegativeScroll=(r=e.scrollLeft,e.scrollLeft=-1,a=e.scrollLeft<0,e.scrollLeft=r,a),this.negativeScrollAdjustment=this.isNegativeScroll?e.scrollWidth-e.clientWidth:0,this.event=new Ha,this.ownerDocument=e.ownerDocument||document,this.scrollbarXRail=Na(Fa.element.rail("x")),e.appendChild(this.scrollbarXRail),this.scrollbarX=Na(Fa.element.thumb("x")),this.scrollbarXRail.appendChild(this.scrollbarX),this.scrollbarX.setAttribute("tabindex",0),this.event.bind(this.scrollbarX,"focus",o),this.event.bind(this.scrollbarX,"blur",s),this.scrollbarXActive=null,this.scrollbarXWidth=null,this.scrollbarXLeft=null;var l=Ma(this.scrollbarXRail);this.scrollbarXBottom=parseInt(l.bottom,10),isNaN(this.scrollbarXBottom)?(this.isScrollbarXUsingBottom=!1,this.scrollbarXTop=$a(l.top)):this.isScrollbarXUsingBottom=!0,this.railBorderXWidth=$a(l.borderLeftWidth)+$a(l.borderRightWidth),Ia(this.scrollbarXRail,{display:"block"}),this.railXMarginWidth=$a(l.marginLeft)+$a(l.marginRight),Ia(this.scrollbarXRail,{display:""}),this.railXWidth=null,this.railXRatio=null,this.scrollbarYRail=Na(Fa.element.rail("y")),e.appendChild(this.scrollbarYRail),this.scrollbarY=Na(Fa.element.thumb("y")),this.scrollbarYRail.appendChild(this.scrollbarY),this.scrollbarY.setAttribute("tabindex",0),this.event.bind(this.scrollbarY,"focus",o),this.event.bind(this.scrollbarY,"blur",s),this.scrollbarYActive=null,this.scrollbarYHeight=null,this.scrollbarYTop=null;var c=Ma(this.scrollbarYRail);this.scrollbarYRight=parseInt(c.right,10),isNaN(this.scrollbarYRight)?(this.isScrollbarYUsingRight=!1,this.scrollbarYLeft=$a(c.left)):this.isScrollbarYUsingRight=!0,this.scrollbarYOuterWidth=this.isRtl?function(e){var t=Ma(e);return $a(t.width)+$a(t.paddingLeft)+$a(t.paddingRight)+$a(t.borderLeftWidth)+$a(t.borderRightWidth)}(this.scrollbarY):null,this.railBorderYWidth=$a(c.borderTopWidth)+$a(c.borderBottomWidth),Ia(this.scrollbarYRail,{display:"block"}),this.railYMarginHeight=$a(c.marginTop)+$a(c.marginBottom),Ia(this.scrollbarYRail,{display:""}),this.railYHeight=null,this.railYRatio=null,this.reach={x:e.scrollLeft<=0?"start":e.scrollLeft>=this.contentWidth-this.containerWidth?"end":null,y:e.scrollTop<=0?"start":e.scrollTop>=this.contentHeight-this.containerHeight?"end":null},this.isAlive=!0,this.settings.handlers.forEach((function(e){return Ka[e](n)})),this.lastScrollTop=Math.floor(e.scrollTop),this.lastScrollLeft=e.scrollLeft,this.event.bind(this.element,"scroll",(function(e){return n.onScroll(e)})),Ua(this)};Qa.prototype.update=function(){this.isAlive&&(this.negativeScrollAdjustment=this.isNegativeScroll?this.element.scrollWidth-this.element.clientWidth:0,Ia(this.scrollbarXRail,{display:"block"}),Ia(this.scrollbarYRail,{display:"block"}),this.railXMarginWidth=$a(Ma(this.scrollbarXRail).marginLeft)+$a(Ma(this.scrollbarXRail).marginRight),this.railYMarginHeight=$a(Ma(this.scrollbarYRail).marginTop)+$a(Ma(this.scrollbarYRail).marginBottom),Ia(this.scrollbarXRail,{display:"none"}),Ia(this.scrollbarYRail,{display:"none"}),Ua(this),ja(this,"top",0,!1,!0),ja(this,"left",0,!1,!0),Ia(this.scrollbarXRail,{display:""}),Ia(this.scrollbarYRail,{display:""}))},Qa.prototype.onScroll=function(e){this.isAlive&&(Ua(this),ja(this,"top",this.element.scrollTop-this.lastScrollTop),ja(this,"left",this.element.scrollLeft-this.lastScrollLeft),this.lastScrollTop=Math.floor(this.element.scrollTop),this.lastScrollLeft=this.element.scrollLeft)},Qa.prototype.destroy=function(){this.isAlive&&(this.event.unbindAll(),Oa(this.scrollbarX),Oa(this.scrollbarY),Oa(this.scrollbarXRail),Oa(this.scrollbarYRail),this.removePsClasses(),this.element=null,this.scrollbarX=null,this.scrollbarY=null,this.scrollbarXRail=null,this.scrollbarYRail=null,this.isAlive=!1)},Qa.prototype.removePsClasses=function(){this.element.className=this.element.className.split(" ").filter((function(e){return!e.match(/^ps([-_].+|)$/)})).join(" ")};class Ja{constructor(e){this.events=e}getEventsForDay(e,t){return this.events.filter((n=>this.isEventInDayBoundaries(n,e,t)))}isEventInDayBoundaries(e,t,n){const i=t.dateStringFrom(e.time.start)===t.dateStringFrom(n);return t.dayMode===c.REGULAR?i:i&&t.dayMode===c.SHORTENED?this.handlePartialDayWithinOneDayBoundary(t,e):t.dayMode===c.FLEXIBLE&&this.handleDayStretchingTwoDates(t,e,n,i)}handleDayStretchingTwoDates(e,t,n,i){const{hour:a}=e.getHourAndMinutesFromTimePoints(e.DAY_START),{hour:r}=e.getHourAndMinutesFromTimePoints(e.DAY_END),{hour:o}=e.getAllVariablesFromDateTimeString(t.time.start),s=e.addDaysToDateTimeString(1,n),l=t.time.start.substring(0,11)===s.substring(0,11);return i&&o>=a||l&&o<r}handlePartialDayWithinOneDayBoundary(e,t){const{hour:n}=e.getHourAndMinutesFromTimePoints(e.DAY_START),{hour:i}=e.getHourAndMinutesFromTimePoints(e.DAY_END),{hour:a}=e.getAllVariablesFromDateTimeString(t.time.start);return a>=n&&a<i}}class Za{static getNHoursIntoDayFromHour(e,t){const n=f.getHourFromTimePoints(t.DAY_START);return t.dayMode===c.REGULAR?e:t.dayMode===c.SHORTENED||t.dayMode===c.FLEXIBLE&&e>=n?e-n:24-n+e}static eventSeparator(e,t){const n=[],i=[];for(const a of e){const e=d.getEventType(a,t);[r.SINGLE_DAY_TIMED,r.SINGLE_HYBRID_DAY_TIMED].includes(e)?n.push(a):i.push(a)}return{fullDayAndMultipleDayEvents:i,singleDayTimedEvents:n}}}const er=new Aa,tr=t.defineComponent({name:"Week",components:{Day:ia,WeekTimeline:zi,DayTimeline:Mi,EventFlyout:_a},props:{config:{type:Object,required:!0},eventsProp:{type:Array,default:()=>[]},period:{type:Object,required:!0},modeProp:{type:String,default:"week"},time:{type:Object,required:!0}},emits:["event-was-clicked","event-was-resized","event-was-dragged","edit-event","delete-event","interval-was-clicked","day-was-clicked","datetime-was-clicked"],data(){var e;return{days:[],mode:this.modeProp,selectedEvent:null,selectedEventElement:null,events:this.eventsProp,fullDayEvents:[],weekVersion:0,dayIntervals:{length:60,height:66},weekHeight:"1584px",scrollbar:null,currentTimePercentage:0,showCurrentTime:!(null==(e=this.config)||!e.showCurrentTime)}},computed:{hasCustomCurrentTimeSlot(){return d.hasSlotContent(this.$slots.customCurrentTime)},nDays(){var e,t;return(null==(t=null==(e=this.config)?void 0:e.week)?void 0:t.nDays)||7}},watch:{period:{deep:!0,handler(){this.setInitialEvents(this.mode)}},modeProp:{deep:!0,handler(e){this.mode=e,this.setInitialEvents(e)}}},mounted(){var e;this.setDayIntervals(),this.separateFullDayEventsFromOtherEvents(),this.setInitialEvents(this.modeProp),this.scrollOnMount(),this.initScrollbar(),(null!=(e=this.config)&&e.showCurrentTime||this.hasCustomCurrentTimeSlot)&&this.setCurrentTime()},methods:{initScrollbar(e=0){const t=document.querySelector(".calendar-week__wrapper");e>3e3||(t?(this.scrollbar=new Qa(t),this.scrollbar.update()):this.initScrollbar(e+50))},destroyScrollbarAndHideOverflow(){const e=document.querySelector(".calendar-week__wrapper");e instanceof HTMLElement&&(e.style.overflowY="hidden",this.scrollbar.destroy())},separateFullDayEventsFromOtherEvents(){const{singleDayTimedEvents:e,fullDayAndMultipleDayEvents:t}=Za.eventSeparator(this.events,this.time);this.events=e,this.positionFullDayEvents(t)},positionFullDayEvents(e){const t=5===this.nDays?new Date(this.period.end.getFullYear(),this.period.end.getMonth(),this.period.end.getDate()-2):this.period.end;this.fullDayEvents=e.length?er.positionFullDayEventsInWeek(this.period.start,t,e):[]},setDays(){const e=this.time.getCalendarWeekDateObjects(this.period.start).map((e=>{const t=this.time.getLocalizedNameOfWeekday(e,"long"),n=this.time.getDateTimeStringFromDate(e,"start");return{dayName:t,dateTimeString:n,events:new Ja(this.events).getEventsForDay(this.time,n)}}));5===this.nDays&&this.time.FIRST_DAY_OF_WEEK===h.MONDAY?(e.splice(5,2),this.fullDayEvents.splice(5,2)):5===this.nDays&&this.time.FIRST_DAY_OF_WEEK===h.SUNDAY&&(e.splice(6,1),this.fullDayEvents.splice(6,1),e.splice(0,1),this.fullDayEvents.splice(0,1)),this.days=e},mergeFullDayEventsIntoDays(){for(const[e]of this.days.entries())this.days[e].fullDayEvents=this.fullDayEvents[e]},setDay(){const e=this.time.getDateTimeStringFromDate(this.period.selectedDate);if(this.days=[{dayName:new Date(this.period.selectedDate).toLocaleDateString(this.time.CALENDAR_LOCALE,{weekday:"long"}),dateTimeString:this.time.getDateTimeStringFromDate(this.period.selectedDate,"start"),events:new Ja(this.events).getEventsForDay(this.time,e)}],this.fullDayEvents.length)for(const t of this.fullDayEvents)if(this.time.getDateTimeStringFromDate(t.date).substring(0,11)===e.substring(0,11))return void(this.fullDayEvents=[t])},setInitialEvents(e){"day"===e&&this.setDay(),"week"===e&&this.setDays(),this.mergeFullDayEventsIntoDays()},handleClickOnEvent(e){this.$emit("event-was-clicked",e),this.selectedEventElement=e.eventElement,this.selectedEvent=e.clickedEvent},handleEventWasDragged(e){this.initScrollbar();const t=e;delete t.totalConcurrentEvents,delete t.nOfPreviousConcurrentEvents;const n=this.events.filter((t=>t.id!==e.id));this.events=[t,...n.map((e=>(delete e.nOfPreviousConcurrentEvents,delete e.totalConcurrentEvents,e)))],this.setInitialEvents(this.mode),this.weekVersion=this.weekVersion+1,this.$emit("event-was-dragged",e)},scrollOnMount(){var e;if("number"!=typeof(null==(e=this.config.week)?void 0:e.scrollToHour))return;const t=document.querySelector(".calendar-week__wrapper");t&&this.$nextTick((()=>{const e=+this.weekHeight.split("p")[0]/this.time.HOURS_PER_DAY*Za.getNHoursIntoDayFromHour(this.config.week.scrollToHour,this.time);t.scroll(0,e-10)}))},setDayIntervals(){if(this.config.dayIntervals)for(const[e,t]of Object.entries(this.config.dayIntervals))this.dayIntervals[e]=t;this.setWeekHeightBasedOnIntervals()},setWeekHeightBasedOnIntervals(){[15,30,60].includes(this.dayIntervals.length)||(this.dayIntervals.length=60,this.dayIntervals.height=66,console.warn("The dayIntervals configuration is faulty. It has been reset to default values."));let e=1;15===this.dayIntervals.length&&(e=4),30===this.dayIntervals.length&&(e=2),this.weekHeight=this.dayIntervals.height*e*this.time.HOURS_PER_DAY+"px"},setCurrentTime(){const e=()=>{const e=this.time.getDateTimeStringFromDate(new Date),t=this.time.getPercentageOfDayFromDateTimeString(e,this.time.DAY_START,this.time.DAY_END);if(t<0||t>100)return this.showCurrentTime=!1;this.showCurrentTime=!0,this.currentTimePercentage=t};e(),setInterval((()=>e()),6e4)}}}),nr=()=>{t.useCssVars((e=>({"5cb5d057":e.weekHeight})))},ir=tr.setup;tr.setup=ir?(e,t)=>(nr(),ir(e,t)):nr;const ar={class:"calendar-week__wrapper"},rr={class:"calendar-week"},or=[(e=>(t.pushScopeId("data-v-8bb6ad05"),e=e(),t.popScopeId(),e))((()=>t.createElementVNode("div",{class:"current-time-line__circle"},null,-1)))],sr={class:"calendar-week__events"};const lr=ri(tr,[["render",function(e,n,i,a,r,o){const s=t.resolveComponent("WeekTimeline"),l=t.resolveComponent("EventFlyout"),c=t.resolveComponent("DayTimeline"),d=t.resolveComponent("Day");return t.openBlock(),t.createElementBlock(t.Fragment,null,[t.createVNode(s,{days:e.days,time:e.time,"full-day-events":e.fullDayEvents,config:e.config,mode:e.mode,onEventWasClicked:e.handleClickOnEvent,onDayWasClicked:n[0]||(n[0]=t=>e.$emit("day-was-clicked",t))},null,8,["days","time","full-day-events","config","mode","onEventWasClicked"]),t.createElementVNode("div",ar,[e.config.eventDialog&&e.config.eventDialog.isDisabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(l,{key:0,"calendar-event-prop":e.selectedEvent,"event-element":e.selectedEventElement,time:e.time,config:e.config,onHide:n[1]||(n[1]=t=>e.selectedEvent=null),onEditEvent:n[2]||(n[2]=t=>e.$emit("edit-event",t)),onDeleteEvent:n[3]||(n[3]=t=>e.$emit("delete-event",t))},{default:t.withCtx((n=>[t.renderSlot(e.$slots,"eventDialog",{eventDialogData:n.eventDialogData,closeEventDialog:n.closeEventDialog},void 0,!0)])),_:3},8,["calendar-event-prop","event-element","time","config"])),t.createElementVNode("section",rr,[e.hasCustomCurrentTimeSlot&&e.showCurrentTime?(t.openBlock(),t.createElementBlock("div",{key:0,class:"custom-current-time",style:t.normalizeStyle({top:`${e.currentTimePercentage}%`})},[t.renderSlot(e.$slots,"customCurrentTime",{},void 0,!0)],4)):e.config&&e.config.showCurrentTime&&e.showCurrentTime?(t.openBlock(),t.createElementBlock("div",{key:1,class:"current-time-line",style:t.normalizeStyle({top:`${e.currentTimePercentage}%`})},or,4)):t.createCommentVNode("",!0),(t.openBlock(),t.createBlock(c,{key:e.period.start.getTime()+e.period.end.getTime()+e.mode,time:e.time,"day-intervals":e.dayIntervals,"week-height":e.weekHeight},null,8,["time","day-intervals","week-height"])),t.createElementVNode("div",sr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.days,((i,a)=>(t.openBlock(),t.createBlock(d,{key:i.dateTimeString+e.mode+e.weekVersion,day:i,time:e.time,config:e.config,"day-info":{daysTotalN:e.days.length,thisDayIndex:a,dateTimeString:i.dateTimeString},mode:e.mode,"day-intervals":e.dayIntervals,"week-height":+e.weekHeight.replace("px",""),onEventWasClicked:e.handleClickOnEvent,onEventWasResized:n[4]||(n[4]=t=>e.$emit("event-was-resized",t)),onEventWasDragged:e.handleEventWasDragged,onIntervalWasClicked:n[5]||(n[5]=t=>e.$emit("interval-was-clicked",t)),onDayWasClicked:n[6]||(n[6]=t=>e.$emit("day-was-clicked",t)),onDragStart:e.destroyScrollbarAndHideOverflow,onDragEnd:e.initScrollbar,onDatetimeWasClicked:n[7]||(n[7]=t=>e.$emit("datetime-was-clicked",t))},{weekDayEvent:t.withCtx((n=>[t.renderSlot(e.$slots,"weekDayEvent",{eventData:n.eventData},void 0,!0)])),_:2},1032,["day","time","config","day-info","mode","day-intervals","week-height","onEventWasClicked","onEventWasDragged","onDragStart","onDragEnd"])))),128))])])])],64)}],["__scopeId","data-v-8bb6ad05"]]),cr=t.defineComponent({name:"Event",props:{time:{type:Object,required:!0},calendarEvent:{type:Object,required:!0},config:{type:Object,required:!0},day:{type:Object,required:!0}},emits:["event-was-clicked"],data:()=>({colors:o,eventBackgroundColor:"",eventIdPrefix:"calendar-month__event-"}),computed:{isCustomEvent(){return Array.isArray(this.calendarEvent.isCustom)?this.calendarEvent.isCustom.includes("month"):this.calendarEvent.isCustom||!1},eventTimeStart(){return s.test(this.calendarEvent.time.start)?this.time.getLocalizedTime(this.calendarEvent.time.start):null},elementId(){return this.eventIdPrefix+this.calendarEvent.id+this.time.dateStringFrom(this.day.dateTimeString)},elementDraggableAttribute(){const{year:e,month:t,date:n}=this.time.getAllVariablesFromDateTimeString(this.calendarEvent.time.start),{year:i,month:a,date:r}=this.time.getAllVariablesFromDateTimeString(this.calendarEvent.time.end),o=e===i&&t===a&&n===r,s=this.calendarEvent.disableDnD&&this.calendarEvent.disableDnD.includes("month");return!(!this.calendarEvent.isEditable||!o||s)||void 0}},mounted(){this.setColors()},methods:{setColors(){var e,t,n;return null!=(e=this.calendarEvent)&&e.colorScheme&&null!=(t=this.config.style)&&t.colorSchemes&&this.config.style.colorSchemes[this.calendarEvent.colorScheme]?this.eventBackgroundColor=this.config.style.colorSchemes[this.calendarEvent.colorScheme].backgroundColor:null!=(n=this.calendarEvent)&&n.color?this.eventBackgroundColor=this.colors[this.calendarEvent.color]:this.eventBackgroundColor=this.colors.blue},handleClickOnEvent(){const e=document.getElementById(this.elementId);this.$emit("event-was-clicked",{clickedEvent:this.calendarEvent,eventElement:e})},handleDragStart(e){!e||!e.dataTransfer||(e.dataTransfer.effectAllowed="move",e.dataTransfer.setData("json",JSON.stringify(this.calendarEvent)))}}}),dr=()=>{t.useCssVars((e=>({"63a9bc8a":e.eventBackgroundColor})))},ur=cr.setup;cr.setup=ur?(e,t)=>(dr(),ur(e,t)):dr;const mr={key:0,class:"calendar-month__event"},hr=["id","draggable"],fr=["id","draggable"],gr=(e=>(t.pushScopeId("data-v-4766dfc7"),e=e(),t.popScopeId(),e))((()=>t.createElementVNode("span",{class:"calendar-month__event-color"},null,-1))),vr={key:0,class:"calendar-month__event-time"},pr={class:"calendar-month__event-title"};const yr=ri(cr,[["render",function(e,n,i,a,r,o){return e.config.isSmall?(t.openBlock(),t.createElementBlock("div",mr)):(t.openBlock(),t.createElementBlock(t.Fragment,{key:1},[e.isCustomEvent?(t.openBlock(),t.createElementBlock("div",{key:0,id:e.elementId,class:t.normalizeClass(["is-event",{"is-draggable":e.elementDraggableAttribute}]),"data-ref":"custom-event",draggable:e.elementDraggableAttribute,onDragstart:n[0]||(n[0]=(...t)=>e.handleDragStart&&e.handleDragStart(...t)),onClick:n[1]||(n[1]=(...t)=>e.handleClickOnEvent&&e.handleClickOnEvent(...t))},[t.renderSlot(e.$slots,"monthEvent",{eventData:e.calendarEvent},void 0,!0)],42,hr)):(t.openBlock(),t.createElementBlock("div",{key:1,id:e.elementId,"data-ref":"default-event",class:t.normalizeClass(["calendar-month__event is-event",{"is-draggable":e.elementDraggableAttribute}]),draggable:e.elementDraggableAttribute,onDragstart:n[2]||(n[2]=(...t)=>e.handleDragStart&&e.handleDragStart(...t)),onClick:n[3]||(n[3]=(...t)=>e.handleClickOnEvent&&e.handleClickOnEvent(...t))},[gr,e.eventTimeStart&&!e.calendarEvent.originalEvent?(t.openBlock(),t.createElementBlock("span",vr,t.toDisplayString(e.eventTimeStart),1)):t.createCommentVNode("",!0),t.createElementVNode("span",pr,t.toDisplayString(e.calendarEvent.title),1)],42,fr))],64))}],["__scopeId","data-v-4766dfc7"]]),br=t.defineComponent({name:"Day",components:{Event:yr},mixins:[gi],props:{config:{type:Object,required:!0},time:{type:Object,required:!0},day:{type:Object,required:!0},isSelected:{type:Boolean,default:!1}},emits:["event-was-clicked","event-was-dragged","updated-period","date-was-clicked","day-was-selected"],data:()=>({isActiveDroppable:!1}),computed:{canBeDropped(){return this.isActiveDroppable},hideLeadingAndTrailingDate(){var e;return!0===this.day.isTrailingOrLeadingDate&&!1===(null==(e=this.config.month)?void 0:e.showTrailingAndLeadingDates)},isToday(){const{year:e,month:t,date:n}=this.time.getAllVariablesFromDateTimeString(this.day.dateTimeString);return this.time.dateIsToday(new Date(e,t,n))}},methods:{getMoreEvents(){const{date:e,month:t,year:n}=this.time.getAllVariablesFromDateTimeString(this.day.dateTimeString),i=new Date(n,t,e),a=this.time.getCalendarWeekDateObjects(i),r=a[0],o=a[6];this.$emit("updated-period",{start:r,end:o,selectedDate:i})},handleDragLeave(){this.isActiveDroppable=!1},handleDragEnd(e){this.isActiveDroppable=!1,e.stopPropagation()},handleDrop(e){if(this.isActiveDroppable=!1,e.stopPropagation(),!e||!e.dataTransfer)return;const t=JSON.parse(e.dataTransfer.getData("json"));this.time.dateStringsHaveEqualDates(t.time.start,this.time.dateStringFrom(this.day.dateTimeString))||(t.time.start=t.time.start.replace(/^\d{4}-\d{2}-\d{2}/,this.time.dateStringFrom(this.day.dateTimeString)),t.time.end=t.time.end.replace(/^\d{4}-\d{2}-\d{2}/,this.time.dateStringFrom(this.day.dateTimeString)),this.$emit("event-was-dragged",t))},handleDragOver(e){return this.isActiveDroppable=!0,e.preventDefault(),!1},emitDayWasClicked(){this.$emit("date-was-clicked",this.time.dateStringFrom(this.day.dateTimeString)),this.config.isSmall&&this.$emit("day-was-selected",this.day)}}}),kr=["id"],Dr={class:"calendar-month_events"},Er={key:1,class:"space-reserver"};const wr=ri(br,[["render",function(e,n,i,a,r,o){const s=t.resolveComponent("Event");return e.hideLeadingAndTrailingDate?(t.openBlock(),t.createElementBlock("div",Er)):(t.openBlock(),t.createElementBlock("div",{key:0,id:"day-"+e.time.dateStringFrom(e.day.dateTimeString),class:t.normalizeClass(["calendar-month__weekday",{"is-droppable":e.canBeDropped,"trailing-or-leading":e.day.isTrailingOrLeadingDate,"is-selected":e.isSelected,"is-today":e.isToday}]),onClick:n[3]||(n[3]=t.withModifiers(((...t)=>e.emitDayWasClicked&&e.emitDayWasClicked(...t)),["self"])),onDragleave:n[4]||(n[4]=(...t)=>e.handleDragLeave&&e.handleDragLeave(...t)),onDragover:n[5]||(n[5]=(...t)=>e.handleDragOver&&e.handleDragOver(...t)),onDrop:n[6]||(n[6]=(...t)=>e.handleDrop&&e.handleDrop(...t)),onDragend:n[7]||(n[7]=(...t)=>e.handleDragEnd&&e.handleDragEnd(...t))},[t.renderSlot(e.$slots,"dayCell",{dayData:e.day},(()=>[t.createElementVNode("span",{class:"calendar-month__day-date",onClick:n[0]||(n[0]=(...t)=>e.emitDayWasClicked&&e.emitDayWasClicked(...t))},t.toDisplayString(e.day.dateTimeString.substring(8,10).startsWith("0")?e.day.dateTimeString.substring(9,10):e.day.dateTimeString.substring(8,10)),1),t.createElementVNode("div",Dr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.day.events,((i,a)=>(t.openBlock(),t.createElementBlock(t.Fragment,{key:a},[a<3?(t.openBlock(),t.createBlock(s,{key:i.id,"calendar-event":i,config:e.config,time:e.time,day:e.day,onEventWasClicked:n[1]||(n[1]=t=>e.$emit("event-was-clicked",t))},{monthEvent:t.withCtx((n=>[t.renderSlot(e.$slots,"monthEvent",{eventData:n.eventData},void 0,!0)])),_:2},1032,["calendar-event","config","time","day"])):t.createCommentVNode("",!0)],64)))),128)),e.day.events.length>=4?(t.openBlock(),t.createElementBlock("div",{key:0,class:"calendar-month__weekday-more",onClick:n[2]||(n[2]=(...t)=>e.getMoreEvents&&e.getMoreEvents(...t))},t.toDisplayString(e.getLanguage(e.languageKeys.moreEvents,e.time.CALENDAR_LOCALE)),1)):t.createCommentVNode("",!0)])]),!0)],42,kr))}],["__scopeId","data-v-e7ff2963"]]),Sr=t.defineComponent({name:"WeekDay",props:{day:{type:Object,required:!0}}}),Tr={class:"calendar-month__day-name"};const Cr=ri(Sr,[["render",function(e,n,i,a,r,o){return t.openBlock(),t.createElementBlock("span",Tr,t.toDisplayString(e.day.dayName),1)}],["__scopeId","data-v-09c7c5db"]]),_r=t.defineComponent({name:"Event",components:{FontAwesomeIcon:Xn},props:{time:{type:Object,required:!0},calendarEvent:{type:Object,required:!0},config:{type:Object,required:!0}},emits:["event-was-clicked"],data:()=>({icons:{clock:da,user:sa,description:ca,trash:ra,edit:oa,times:Zn,topic:la,location:Jn},colors:o,eventBackgroundColor:"",eventColor:"#fff",eventIdPrefix:"agenda__event-"}),computed:{eventTime(){return s.test(this.calendarEvent.time.start)?this.time.getLocalizedTimeRange(this.calendarEvent.time.start,this.calendarEvent.time.end):null},elementId(){return this.eventIdPrefix+this.calendarEvent.id}},mounted(){this.setColors()},methods:{setColors(){var e,t,n;return null!=(e=this.calendarEvent)&&e.colorScheme&&null!=(t=this.config.style)&&t.colorSchemes&&this.config.style.colorSchemes[this.calendarEvent.colorScheme]?(this.eventColor=this.config.style.colorSchemes[this.calendarEvent.colorScheme].color,this.eventBackgroundColor=this.config.style.colorSchemes[this.calendarEvent.colorScheme].backgroundColor):null!=(n=this.calendarEvent)&&n.color?this.eventBackgroundColor=this.colors[this.calendarEvent.color]:this.eventBackgroundColor=this.colors.blue},handleClickOnEvent(){const e=document.getElementById(this.elementId);this.$emit("event-was-clicked",{clickedEvent:this.calendarEvent,eventElement:e})}}}),Ar=()=>{t.useCssVars((e=>({"691f2791":e.eventBackgroundColor,fa1649c2:e.eventColor})))},Mr=_r.setup;_r.setup=Mr?(e,t)=>(Ar(),Mr(e,t)):Ar;const Ir=["id"],Nr={key:0,class:"agenda__event-time"},xr={class:"agenda__event-title"},Pr={key:1,class:"agenda__event-with"},Or={key:2,class:"agenda__event-location"};const Lr=ri(_r,[["render",function(e,n,i,a,r,o){const s=t.resolveComponent("FontAwesomeIcon");return t.openBlock(),t.createElementBlock("div",{id:e.elementId,class:"agenda__event is-event",onClick:n[0]||(n[0]=t.withModifiers(((...t)=>e.handleClickOnEvent&&e.handleClickOnEvent(...t)),["prevent"]))},[e.eventTime&&!e.calendarEvent.originalEvent?(t.openBlock(),t.createElementBlock("span",Nr,[t.createVNode(s,{icon:e.icons.clock},null,8,["icon"]),t.createTextVNode(" "+t.toDisplayString(e.eventTime),1)])):t.createCommentVNode("",!0),t.createElementVNode("span",xr,t.toDisplayString(e.calendarEvent.title),1),e.calendarEvent.with?(t.openBlock(),t.createElementBlock("span",Pr,[t.createVNode(s,{icon:e.icons.user},null,8,["icon"]),t.createTextVNode(" "+t.toDisplayString(e.calendarEvent.with),1)])):t.createCommentVNode("",!0),e.calendarEvent.location?(t.openBlock(),t.createElementBlock("span",Or,[t.createVNode(s,{icon:e.icons.location},null,8,["icon"]),t.createTextVNode(" "+t.toDisplayString(e.calendarEvent.location),1)])):t.createCommentVNode("",!0)],8,Ir)}],["__scopeId","data-v-698b431e"]]),Fr=t.defineComponent({name:"AgendaEvents",components:{AgendaEventTile:Lr},mixins:[gi],props:{config:{type:Object,required:!0},time:{type:Object,required:!0},day:{type:Object,required:!0}},emits:["event-was-clicked"]}),Br={class:"agenda__wrapper"},Rr={class:"agenda__header"},Yr={class:"agenda__header-day-name"},zr={class:"agenda__header-date"},Wr={class:"agenda__content"},Hr={key:0,class:"is-empty"},Vr={key:1,class:"agenda__content-events-list"};const jr=ri(Fr,[["render",function(e,n,i,a,r,o){const s=t.resolveComponent("AgendaEventTile");return t.openBlock(),t.createElementBlock("div",Br,[t.createElementVNode("header",Rr,[t.createElementVNode("div",Yr,t.toDisplayString(e.day.dayName),1),t.createElementVNode("div",zr,t.toDisplayString(e.day.dateTimeString.substring(8,10)),1)]),t.createElementVNode("div",Wr,[0===e.day.events.length?(t.openBlock(),t.createElementBlock("div",Hr,t.toDisplayString(e.getLanguage(e.languageKeys.noEvent,e.time.CALENDAR_LOCALE)),1)):(t.openBlock(),t.createElementBlock("div",Vr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.day.events,(i=>(t.openBlock(),t.createBlock(s,{key:"agenda_event_"+i.id,day:e.day,config:e.config,"calendar-event":i,time:e.time,onEventWasClicked:n[0]||(n[0]=t=>e.$emit("event-was-clicked",t))},null,8,["day","config","calendar-event","time"])))),128))]))])])}],["__scopeId","data-v-b60cbce5"]]),$r=new Aa,Xr=t.defineComponent({name:"Month",components:{AgendaEvents:jr,Day:wr,EventFlyout:_a,WeekDay:Cr},props:{config:{type:Object,required:!0},time:{type:Object,required:!0},period:{type:Object,required:!0},eventsProp:{type:Array,default:()=>[]}},emits:["edit-event","delete-event","updated-period","event-was-clicked","event-was-dragged","date-was-clicked"],data(){return{month:[],selectedEvent:null,selectedEventElement:null,events:this.eventsProp,fullDayEvents:[],scrollbar:null,selectedDay:null}},mounted(){this.initMonth(),this.initScrollbar()},methods:{initScrollbar(e=0){const t=document.querySelector(".calendar-month");e>3e3||(t?(this.scrollbar=new Qa(t),this.scrollbar.update()):this.initScrollbar(e+50))},initMonth(){this.month=[],this.sortOutFullDayEvents(),this.setMonth(),this.config.isSmall&&this.setInitialSelectedDay()},setMonth(){const{month:e,fullYear:t}=new m(this.period.selectedDate),n=this.time.getCalendarMonthSplitInWeeks(t,e).map((t=>t.map((t=>{const n=this.time.getDateTimeStringFromDate(t),i=this.events.filter((e=>this.time.dateStringsHaveEqualDates(e.time.start,n)));return{isTrailingOrLeadingDate:this.time.isTrailingOrLeadingDate(t,e),dayName:this.time.getLocalizedNameOfWeekday(t),dateTimeString:this.time.getDateTimeStringFromDate(t),events:i}}))));this.month=$r.positionFullDayEventsInMonth(n,this.fullDayEvents)},sortOutFullDayEvents(){const e=[],t=[];for(const n of this.events)d.getEventType(n,this.time)===r.SINGLE_DAY_TIMED?e.push(n):t.push(n);this.events=e,this.fullDayEvents=t},handleClickOnEvent(e){this.$emit("event-was-clicked",e),this.selectedEventElement=e.eventElement,this.selectedEvent=e.clickedEvent},handleEventWasDragged(e){this.$emit("event-was-dragged",e);const t=[...this.events,...this.fullDayEvents].filter((t=>t.id!==e.id));t.push(e),this.events=[],this.fullDayEvents=[],this.events=t,this.initMonth()},setInitialSelectedDay(){const e=this.time.getDateStringFromDate(this.period.selectedDate);this.selectedDay=this.month.flat().find((t=>this.time.dateStringFrom(t.dateTimeString)===e))||null}}}),Ur={class:"calendar-month"},qr={class:"calendar-month__week-day-names"},Gr={class:"calendar-month__weeks"},Kr={key:0,class:"calendar-month__day_events"};const Qr=ri(Xr,[["render",function(e,n,i,a,r,o){var s;const l=t.resolveComponent("WeekDay"),c=t.resolveComponent("Day"),d=t.resolveComponent("AgendaEvents"),u=t.resolveComponent("EventFlyout");return t.openBlock(),t.createElementBlock("div",Ur,[t.createElementVNode("div",qr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.month[0],((n,i)=>(t.openBlock(),t.createBlock(l,{key:i,class:"calendar-month__week-day-name",config:e.config,day:n,time:e.time},null,8,["config","day","time"])))),128))]),t.createElementVNode("div",Gr,[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(e.month,((i,a)=>(t.openBlock(),t.createElementBlock("div",{key:a,class:"calendar-month__week"},[(t.openBlock(!0),t.createElementBlock(t.Fragment,null,t.renderList(i,((i,a)=>{var r;return t.openBlock(),t.createBlock(c,{key:a,config:e.config,day:i,time:e.time,"is-selected":(null==(r=e.selectedDay)?void 0:r.dateTimeString)===i.dateTimeString,onEventWasClicked:e.handleClickOnEvent,onEventWasDragged:e.handleEventWasDragged,onDateWasClicked:n[0]||(n[0]=t=>e.$emit("date-was-clicked",t)),onDayWasSelected:n[1]||(n[1]=t=>e.selectedDay=t),onUpdatedPeriod:n[2]||(n[2]=t=>e.$emit("updated-period",t))},{monthEvent:t.withCtx((({eventData:n})=>[t.renderSlot(e.$slots,"monthEvent",{eventData:n},void 0,!0)])),dayCell:t.withCtx((({dayData:n})=>[t.renderSlot(e.$slots,"dayCell",{dayData:n},void 0,!0)])),_:2},1032,["config","day","time","is-selected","onEventWasClicked","onEventWasDragged"])})),128))])))),128))]),!1!==(null==(s=e.config.month)?void 0:s.showEventsOnMobileView)?(t.openBlock(),t.createElementBlock("div",Kr,[e.selectedDay?(t.openBlock(),t.createBlock(d,{key:0,config:e.config,time:e.time,day:e.selectedDay,onEventWasClicked:e.handleClickOnEvent},null,8,["config","time","day","onEventWasClicked"])):t.createCommentVNode("",!0)])):t.createCommentVNode("",!0),e.config.eventDialog&&e.config.eventDialog.isDisabled?t.createCommentVNode("",!0):(t.openBlock(),t.createBlock(u,{key:1,"calendar-event-prop":e.selectedEvent,"event-element":e.selectedEventElement,time:e.time,config:e.config,onHide:n[3]||(n[3]=t=>e.selectedEvent=null),onEditEvent:n[4]||(n[4]=t=>e.$emit("edit-event",t)),onDeleteEvent:n[5]||(n[5]=t=>e.$emit("delete-event",t))},{default:t.withCtx((n=>[t.renderSlot(e.$slots,"eventDialog",{eventDialogData:n.eventDialogData,closeEventDialog:n.closeEventDialog},void 0,!0)])),_:3},8,["calendar-event-prop","event-element","time","config"]))])}],["__scopeId","data-v-206c177e"]]),Jr=class{static checkEventProperties(e){var t,n,i,a,r,o;e.id||console.warn(this.MISSING_ID_WARNING),e.title||console.warn(this.MISSING_TITLE_WARNING),e.time||console.warn(this.MISSING_TIME_WARNING),null!=(t=null==e?void 0:e.time)&&t.start||console.warn(this.MISSING_TIME_START_WARNING),null!=(n=null==e?void 0:e.time)&&n.end||console.warn(this.MISSING_TIME_END_WARNING),null!=(i=e.time)&&i.start&&null!=(a=e.time)&&a.end&&!s.test(e.time.start)&&!l.test(e.time.start)&&console.warn(`${this.PREFIX} event property 'time.start' expects a string formatted like 'YYYY-MM-DD hh:mm', or 'YYYY-MM-DD', received ${e.time.start} \n${this.SUFFIX}`),null!=(r=e.time)&&r.start&&null!=(o=e.time)&&o.end&&!s.test(e.time.end)&&!l.test(e.time.end)&&console.warn(`${this.PREFIX} event property 'time.end' expects a string formatted like 'YYYY-MM-DD hh:mm', or 'YYYY-MM-DD', received ${e.time.end} \n${this.SUFFIX}`)}static checkConfig(e){e.locale&&!/^[a-z]{2}-[A-Z]{2}$/.test(e.locale)&&console.warn(`${this.PREFIX} config.locale expects a string of format xx-XX, received: ${e.locale}`),e.defaultMode&&!["month","week","day"].some((t=>t===e.defaultMode))&&console.warn(`${this.PREFIX} config.defaultMode expects either one of the values "day", "week" or "month"`)}};let Zr=Jr;a(Zr,"PREFIX","[Qalendar warning]"),a(Zr,"SUFFIX",""),a(Zr,"MISSING_ID_WARNING",`${Jr.PREFIX} required event property 'id' is missing \n${Jr.SUFFIX}`),a(Zr,"MISSING_TITLE_WARNING",`${Jr.PREFIX} required event property 'title' is missing \n${Jr.SUFFIX}`),a(Zr,"MISSING_TIME_WARNING",`${Jr.PREFIX} required event property 'time' is missing \n${Jr.SUFFIX}`),a(Zr,"MISSING_TIME_START_WARNING",`${Jr.PREFIX} required event property 'time.start' is missing \n${Jr.SUFFIX}`),a(Zr,"MISSING_TIME_END_WARNING",`${Jr.PREFIX} required event property 'time.end' is missing \n${Jr.SUFFIX}`);const eo=t.defineComponent({name:"Qalendar",components:{Month:Qr,AppHeader:wi,Week:lr},props:{config:{type:Object,default:()=>({})},events:{type:Array,default:()=>[]},selectedDate:{type:Date,default:new Date},isLoading:{type:Boolean,default:!1}},emits:["event-was-clicked","event-was-resized","event-was-dragged","updated-period","updated-mode","edit-event","delete-event","interval-was-clicked","day-was-clicked","date-was-clicked","datetime-was-clicked"],data(){var e,t,n,i,a,r,o,s,l,c;return{wasInitialized:0,period:{start:new Date,end:new Date,selectedDate:this.selectedDate},mode:(null==(e=this.config)?void 0:e.defaultMode)||"week",time:new f(null==(n=null==(t=this.config)?void 0:t.week)?void 0:n.startsOn,(null==(i=this.config)?void 0:i.locale)||null,{start:this.setTimePointsFromDayBoundary((null==(r=null==(a=this.config)?void 0:a.dayBoundaries)?void 0:r.start)||0),end:this.setTimePointsFromDayBoundary((null==(s=null==(o=this.config)?void 0:o.dayBoundaries)?void 0:s.end)||24)}),fontFamily:(null==(c=null==(l=this.config)?void 0:l.style)?void 0:c.fontFamily)||"'Verdana', 'Open Sans', serif",eventRenderingKey:0,eventsDataProperty:this.events,isSmall:!1,ErrorsHelper:Zr}},computed:{enhancedConfig(){return{...this.config,isSmall:this.isSmall}}},watch:{events:{deep:!0,handler(e,t){JSON.stringify(e)!==JSON.stringify(t)&&(this.eventsDataProperty=e,this.eventRenderingKey=this.eventRenderingKey+1),!this.config.isSilent&&this.events.forEach((e=>this.ErrorsHelper.checkEventProperties(e)))},immediate:!0},config:{deep:!0,handler(e){this.ErrorsHelper.checkConfig(e)},immediate:!0}},mounted(){this.setConfigOnMount(),this.onCalendarResize(),this.setPeriodOnMount(),window.addEventListener("resize",this.onCalendarResize)},beforeUnmount(){window.removeEventListener("resize",this.onCalendarResize)},methods:{setConfigOnMount(){this.wasInitialized=1},handleUpdatedPeriod(e,t=!1){this.$emit("updated-period",{start:e.start,end:e.end}),this.period=e,t&&(this.mode="day")},handleChangeMode(e){if("day"===e&&(this.period.start=this.period.selectedDate,this.period.end=this.time.setDateToEndOfDay(this.period.selectedDate)),"week"===e){const e=this.time.getCalendarWeekDateObjects(this.period.selectedDate);this.period.start=e[0],this.period.end=this.time.setDateToEndOfDay(e[6])}if("month"===e){const e=this.time.getCalendarMonthSplitInWeeks(this.period.selectedDate.getFullYear(),this.period.selectedDate.getMonth());this.period.start=e[0][0];const t=e[e.length-1];this.period.end=this.time.setDateToEndOfDay(t[t.length-1])}this.mode=e,this.$emit("updated-mode",{mode:e,period:this.period})},onCalendarResize(){const e=document.documentElement,t=document.querySelector(".calendar-root"),n=700/(16/+window.getComputedStyle(e).fontSize.split("p")[0]);t&&(this.isSmall=t.clientWidth<n,this.isSmall&&!["day","month"].includes(this.mode)&&(this.mode="day"))},setPeriodOnMount(){if("week"===this.mode){const e=this.time.getCalendarWeekDateObjects(this.period.selectedDate);this.period.start=e[0],this.period.end=e[6]}else if("month"===this.mode){const e=this.time.getCalendarMonthSplitInWeeks(this.period.selectedDate.getFullYear(),this.period.selectedDate.getMonth());this.period.start=e[0][0];const t=e[e.length-1];this.period.end=t[t.length-1]}},handleEventWasUpdated(e,t){const n=this.eventsDataProperty.filter((t=>t.id!==e.id));this.eventsDataProperty=[e,...n],this.$emit(`event-was-${t}`,e)},setTimePointsFromDayBoundary:e=>f.getTimePointsFromHour(e),handleDateWasClicked(e){this.$emit("day-was-clicked",e),this.$emit("date-was-clicked",e)},goToPeriod(e){this.$refs.appHeader.goToPeriod(e)}}}),to=()=>{t.useCssVars((e=>({"51d82805":e.fontFamily})))},no=eo.setup;eo.setup=no?(e,t)=>(to(),no(e,t)):to;const io={class:"calendar-root-wrapper"},ao=["data-lang"],ro={key:0,class:"top-bar-loader"};const oo=ri(eo,[["render",function(e,n,i,a,r,o){var s,l;const c=t.resolveComponent("AppHeader"),d=t.resolveComponent("Week"),u=t.resolveComponent("Month");return t.openBlock(),t.createElementBlock("div",io,[t.createElementVNode("div",{class:t.normalizeClass(["calendar-root",{"mode-is-day":"day"===e.mode,"mode-is-week":"week"===e.mode,"mode-is-month":"month"===e.mode,"qalendar-is-small":e.isSmall}]),"data-lang":(null==(l=null==(s=e.config)?void 0:s.locale)?void 0:l.substring(0,2))||"en"},[t.createVNode(t.Transition,{name:"loading"},{default:t.withCtx((()=>[e.isLoading?(t.openBlock(),t.createElementBlock("div",ro)):t.createCommentVNode("",!0)])),_:1}),(t.openBlock(),t.createBlock(c,{ref:"appHeader",key:e.wasInitialized+e.mode,config:e.config,mode:e.mode,time:e.time,period:e.period,"is-small":e.isSmall,onChangeMode:e.handleChangeMode,onUpdatedPeriod:e.handleUpdatedPeriod},null,8,["config","mode","time","period","is-small","onChangeMode","onUpdatedPeriod"])),["week","day"].includes(e.mode)?(t.openBlock(),t.createBlock(d,{key:e.period.start.getTime()+e.period.end.getTime()+e.eventRenderingKey,"events-prop":e.eventsDataProperty,period:e.period,config:e.config,"mode-prop":e.mode,time:e.time,onEventWasClicked:n[0]||(n[0]=t=>e.$emit("event-was-clicked",t)),onEventWasResized:n[1]||(n[1]=t=>e.handleEventWasUpdated(t,"resized")),onEventWasDragged:n[2]||(n[2]=t=>e.handleEventWasUpdated(t,"dragged")),onEditEvent:n[3]||(n[3]=t=>e.$emit("edit-event",t)),onDeleteEvent:n[4]||(n[4]=t=>e.$emit("delete-event",t)),onIntervalWasClicked:n[5]||(n[5]=t=>e.$emit("interval-was-clicked",t)),onDayWasClicked:n[6]||(n[6]=t=>e.$emit("day-was-clicked",t)),onDatetimeWasClicked:n[7]||(n[7]=t=>e.$emit("datetime-was-clicked",t))},{weekDayEvent:t.withCtx((n=>[t.renderSlot(e.$slots,"weekDayEvent",{eventData:n.eventData})])),eventDialog:t.withCtx((n=>[t.renderSlot(e.$slots,"eventDialog",{eventDialogData:n.eventDialogData,closeEventDialog:n.closeEventDialog})])),customCurrentTime:t.withCtx((()=>[t.renderSlot(e.$slots,"customCurrentTime")])),_:3},8,["events-prop","period","config","mode-prop","time"])):t.createCommentVNode("",!0),"month"===e.mode?(t.openBlock(),t.createBlock(u,{key:e.period.start.getTime()+e.period.end.getTime()+e.eventRenderingKey,"events-prop":e.eventsDataProperty,time:e.time,config:e.enhancedConfig,period:e.period,onEventWasClicked:n[8]||(n[8]=t=>e.$emit("event-was-clicked",t)),onDateWasClicked:e.handleDateWasClicked,onEventWasDragged:n[9]||(n[9]=t=>e.handleEventWasUpdated(t,"dragged")),onUpdatedPeriod:n[10]||(n[10]=t=>e.handleUpdatedPeriod(t,!0)),onEditEvent:n[11]||(n[11]=t=>e.$emit("edit-event",t)),onDeleteEvent:n[12]||(n[12]=t=>e.$emit("delete-event",t))},{eventDialog:t.withCtx((n=>[t.renderSlot(e.$slots,"eventDialog",{eventDialogData:n.eventDialogData,closeEventDialog:n.closeEventDialog})])),monthEvent:t.withCtx((n=>[t.renderSlot(e.$slots,"monthEvent",{eventData:n.eventData})])),dayCell:t.withCtx((({dayData:n})=>[t.renderSlot(e.$slots,"dayCell",{dayData:n})])),_:3},8,["events-prop","time","config","period","onDateWasClicked"])):t.createCommentVNode("",!0)],10,ao)])}]]);e.DatePicker=mi,e.Qalendar=oo,Object.defineProperty(e,Symbol.toStringTag,{value:"Module"})})); //# sourceMappingURL=/sm/82b6b3875dd37ffe8efbe16d2cedde5fdcec1c7ed2f100ef91b3ff4f3fd5f302.map