PageSourceSearch

https://energycapitalpower.com/wp-content/plugins/events-widgets-p…/assets/js/ewpe-daterange.min.js?ver=3.1.5

js energycapitalpower.com collected 2026-09-24 09:05:29 UTC 51,396 bytes, 14 lines download raw bytes

vendor: 6,489 bytes, lines 1-14
1/* flatpickr v4.6.13, @license MIT */ !function(e,n){"object"==typeof exports&&"undefined"!=typeof module?module.exports=n():"function"==typeof define&&define.amd?define(n):(e="undefined"!=typeof globalThis?globalThis:e||self).flatpickr=n()}(this,function(){"use strict";/*! *****************************************************************************
2    Copyright (c) Microsoft Corporation.
3
4    Permission to use, copy, modify, and/or distribute this software for any
5    purpose with or without fee is hereby granted.
6
7    THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
8    REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
9    AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
10    INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
11    LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12    OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13    PERFORMANCE OF THIS SOFTWARE.
14    ***************************************************************************** */ var e=function(){return(e=Object.assign||function e(n){for(var t,a=1,i=arguments.length;a<i;a++)for(var o in t=arguments[a])Object.prototype.hasOwnProperty.call(t,o)&&(n[o]=t[o]);return n}).apply(this,arguments)};function n(){for(var e=0,n=0,t=arguments.length;n<t;n++)e+=arguments[n].length;for(var a=Array(e),i=0,n=0;n<t;n++)for(var o=arguments[n],r=0,l=o.length;r<l;r++,i++)a[i]=o[r];return a}var t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition",],a={_disable:[],allowInput:!1,allowInvalidPreload:!1,altFormat:"F j, Y",altInput:!1,altInputClass:"form-control input",animate:"object"==typeof window&&-1===window.navigator.userAgent.indexOf("MSIE"),ariaDateFormat:"F j, Y",autoFillDefaultTime:!0,clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var n=new Date(e.getTime());n.setHours(0,0,0,0),n.setDate(n.getDate()+3-(n.getDay()+6)%7);var t=new Date(n.getFullYear(),0,4);return 1+Math.round(((n.getTime()-t.getTime())/864e5-3+(t.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},i={weekdays:{shorthand:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],longhand:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday",]},months:{shorthand:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec",],longhand:["January","February","March","April","May","June","July","August","September","October","November","December",]},daysInMonth:[31,28,31,30,31,30,31,31,30,31,30,31],firstDayOfWeek:0,ordinal:function(e){var n=e%100;if(n>3&&n<21)return"th";switch(n%10){case 1:return"st";case 2:return"nd";case 3:return"rd";default:return"th"}},rangeSeparator:" to ",weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle",amPM:["AM","PM"],yearAriaLabel:"Year",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},o=function(e,n){return void 0===n&&(n=2),("000"+e).slice(-1*n)},r=function(e){return!0===e?1:0};function l(e,n){var t;return function(){var a=this,i=arguments;clearTimeout(t),t=setTimeout(function(){return e.apply(a,i)},n)}}var c=function(e){return e instanceof Array?e:[e]};function s(e,n,t){if(!0===t)return e.classList.add(n);e.classList.remove(n)}function d(e,n,t){var a=window.document.createElement(e);return n=n||"",t=t||"",a.className=n,void 0!==t&&(a.textContent=t),a}function u(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function f(e,n){var t=d("div","numInputWrapper"),a=d("input","numInput "+e),i=d("span","arrowUp"),o=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d*"),void 0!==n)for(var r in n)a.setAttribute(r,n[r]);return t.appendChild(a),t.appendChild(i),t.appendChild(o),t}function m(e){try{if("function"==typeof e.composedPath)return e.composedPath()[0];return e.target}catch(n){return e.target}}var g=function(){},p=function(e,n,t){return t.months[n?"shorthand":"longhand"][e]},h={D:g,F:function(e,n,t){e.setMonth(t.months.longhand.indexOf(n))},G:function(e,n){e.setHours((e.getHours()>=12?12:0)+parseFloat(n))},H:function(e,n){e.setHours(parseFloat(n))},J:function(e,n){e.setDate(parseFloat(n))},K:function(e,n,t){e.setHours(e.getHours()%12+12*r(RegExp(t.amPM[1],"i").test(n)))},M:function(e,n,t){e.setMonth(t.months.shorthand.indexOf(n))},S:function(e,n){e.setSeconds(parseFloat(n))},U:function(e,n){return new Date(1e3*parseFloat(n))},W:function(e,n,t){var a=parseInt(n),i=new Date(e.getFullYear(),0,2+(a-1)*7,0,0,0,0);return i.setDate(i.getDate()-i.getDay()+t.firstDayOfWeek),i},Y:function(e,n){e.setFullYear(parseFloat(n))},Z:function(e,n){return new Date(n)},d:function(e,n){e.setDate(parseFloat(n))},h:function(e,n){e.setHours((e.getHours()>=12?12:0)+parseFloat(n))},i:function(e,n){e.setMinutes(parseFloat(n))},j:function(e,n){e.setDate(parseFloat(n))},l:g,m:function(e,n){e.setMonth(parseFloat(n)-1)},n:function(e,n){e.setMonth(parseFloat(n)-1)},s:function(e,n){e.setSeconds(parseFloat(n))},u:function(e,n){return new Date(parseFloat(n))},w:g,y:function(e,n){e.setFullYear(2e3+parseFloat(n))}},$={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"
14(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},v={Z:function(e){return e.toISOString()},D:function(e,n,t){return n.weekdays.shorthand[v.w(e,n,t)]},F:function(e,n,t){return p(v.n(e,n,t)-1,!1,n)},G:function(e,n,t){return o(v.h(e,n,t))},H:function(e){return o(e.getHours())},J:function(e,n){return void 0!==n.ordinal?e.getDate()+n.ordinal(e.getDate()):e.getDate()},K:function(e,n){return n.amPM[r(e.getHours()>11)]},M:function(e,n){return p(e.getMonth(),!0,n)},S:function(e){return o(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,n,t){return t.getWeek(e)},Y:function(e){return o(e.getFullYear(),4)},d:function(e){return o(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return o(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,n){return n.weekdays.longhand[e.getDay()]},m:function(e){return o(e.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},u:function(e){return e.getTime()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},D=function(e){var n=e.config,t=void 0===n?a:n,o=e.l10n,r=void 0===o?i:o,l=e.isMobile,c=void 0!==l&&l;return function(e,n,a){var i=a||r;return void 0===t.formatDate||c?n.split("").map(function(n,a,o){return v[n]&&"\\"!==o[a-1]?v[n](e,i,t):"\\"!==n?n:""}).join(""):t.formatDate(e,n,i)}},_=function(e){var n=e.config,t=void 0===n?a:n,o=e.l10n,r=void 0===o?i:o;return function(e,n,i,o){if(0===e||e){var l,c=o||r;if(e instanceof Date)l=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)l=new Date(e);else if("string"==typeof e){var s=n||(t||a).dateFormat,d=String(e).trim();if("today"===d)l=new Date,i=!0;else if(t&&t.parseDate)l=t.parseDate(e,s);else if(/Z$/.test(d)||/GMT$/.test(d))l=new Date(e);else{for(var u=void 0,f=[],m=0,g=0,p="";m<s.length;m++){var v=s[m],D="\\"===v,_="\\"===s[m-1]||D;if($[v]&&!_){var C=RegExp(p+=$[v]).exec(e);C&&(u=!0)&&f["Y"!==v?"push":"unshift"]({fn:h[v],val:C[++g]})}else D||(p+=".")}l=t&&t.noCalendar?new Date(new Date().setHours(0,0,0,0)):new Date(new Date().getFullYear(),0,1,0,0,0,0),f.forEach(function(e){var n;return l=(0,e.fn)(l,e.val,c)||l}),l=u?l:void 0}}if(!(l instanceof Date&&!isNaN(l.getTime()))){t.errorHandler(Error("Invalid date provided: "+e));return}return!0===i&&l.setHours(0,0,0,0),l}}};function C(e,n,t){return(void 0===t&&(t=!0),!1!==t)?new Date(e.getTime()).setHours(0,0,0,0)-new Date(n.getTime()).setHours(0,0,0,0):e.getTime()-n.getTime()}var b=function(e,n,t){return 3600*e+60*n+t},y=function(e){var n=Math.floor(e/3600),t=(e-3600*n)/60;return[n,t,e-3600*n-60*t]},M={DAY:864e5};function w(e){var n=e.defaultHour,t=e.defaultMinute,a=e.defaultSeconds;if(void 0!==e.minDate){var i=e.minDate.getHours(),o=e.minDate.getMinutes(),r=e.minDate.getSeconds();n<i&&(n=i),n===i&&t<o&&(t=o),n===i&&t===o&&a<r&&(a=e.minDate.getSeconds())}if(void 0!==e.maxDate){var l=e.maxDate.getHours(),c=e.maxDate.getMinutes();(n=Math.min(n,l))===l&&(t=Math.min(c,t)),n===l&&t===c&&(a=e.maxDate.getSeconds())}return{hours:n,minutes:t,seconds:a}}function x(g,h){var v,x,E={config:e(e({},a),k.defaultConfig),l10n:i};function T(){var e;return(null===(e=E.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function I(e){return e.bind(E)}function S(){var e=E.config;(!1!==e.weekNumbers||1!==e.showMonths)&&!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==E.calendarContainer&&(E.calendarContainer.style.visibility="hidden",E.calendarContainer.style.display="block"),void 0!==E.daysContainer){var n=(E.days.offsetWidth+1)*e.showMonths;E.daysContainer.style.width=n+"px",E.calendarContainer.style.width=n+(void 0!==E.weekWrapper?E.weekWrapper.offsetWidth:0)+"px",E.calendarContainer.style.removeProperty("visibility"),E.calendarContainer.style.removeProperty("display")}})}function P(e){if(0===E.selectedDates.length){var n=void 0===E.config.minDate||C(new Date,E.config.minDate)>=0?new Date:new Date(E.config.minDate.getTime()),t=w(E.config);n.setHours(t.hours,t.minutes,t.seconds,n.getMilliseconds()),E.selectedDates=[n],E.latestSelectedDateObj=n}void 0!==e&&"blur"!==e.type&&function e(n){n.preventDefault();var t="keydown"===n.type,a=m(n),i=a;void 0!==E.amPM&&a===E.amPM&&(E.amPM.textContent=E.l10n.amPM[r(E.amPM.textContent===E.l10n.amPM[0])]);var l=parseFloat(i.getAttribute("min")),c=parseFloat(i.getAttribute("max")),s=parseFloat(i.getAttribute("step")),d=parseInt(i.value,10),u=d+s*(n.delta||(t?38===n.which?1:-1:0));if(void 0!==i.value&&2===i.value.length){var f=i===E.hourElement,g=i===E.minuteElement;u<l?(u=c+u+r(!f)+(r(f)&&r(!E.amPM)),g&&W(void 0,-1,E.hourElement)):u>
vendor: 4,427 bytes, line 14
14c&&(u=i===E.hourElement?u-c-r(!E.amPM):l,g&&W(void 0,1,E.hourElement)),E.amPM&&f&&(1===s?u+d===23:Math.abs(u-d)>s)&&(E.amPM.textContent=E.l10n.amPM[r(E.amPM.textContent===E.l10n.amPM[0])]),i.value=o(u)}}(e);var a=E._input.value;Y(),ew(),E._input.value!==a&&E._debouncedChange()}function Y(){if(void 0!==E.hourElement&&void 0!==E.minuteElement){var e,n,t=(parseInt(E.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(E.minuteElement.value,10)||0)%60,i=void 0!==E.secondElement?(parseInt(E.secondElement.value,10)||0)%60:0;void 0!==E.amPM&&(t=(e=t,e%12+12*r((n=E.amPM.textContent)===E.l10n.amPM[1])));var o=void 0!==E.config.minTime||E.config.minDate&&E.minDateHasTime&&E.latestSelectedDateObj&&0===C(E.latestSelectedDateObj,E.config.minDate,!0),l=void 0!==E.config.maxTime||E.config.maxDate&&E.maxDateHasTime&&E.latestSelectedDateObj&&0===C(E.latestSelectedDateObj,E.config.maxDate,!0);if(void 0!==E.config.maxTime&&void 0!==E.config.minTime&&E.config.minTime>E.config.maxTime){var c=b(E.config.minTime.getHours(),E.config.minTime.getMinutes(),E.config.minTime.getSeconds()),s=b(E.config.maxTime.getHours(),E.config.maxTime.getMinutes(),E.config.maxTime.getSeconds()),d=b(t,a,i);if(d>s&&d<c){var u=y(c);t=u[0],a=u[1],i=u[2]}}else{if(l){var f=void 0!==E.config.maxTime?E.config.maxTime:E.config.maxDate;(t=Math.min(t,f.getHours()))===f.getHours()&&(a=Math.min(a,f.getMinutes())),a===f.getMinutes()&&(i=Math.min(i,f.getSeconds()))}if(o){var m=void 0!==E.config.minTime?E.config.minTime:E.config.minDate;(t=Math.max(t,m.getHours()))===m.getHours()&&a<m.getMinutes()&&(a=m.getMinutes()),a===m.getMinutes()&&(i=Math.max(i,m.getSeconds()))}}O(t,a,i)}}function A(e){var n=e||E.latestSelectedDateObj;n&&n instanceof Date&&O(n.getHours(),n.getMinutes(),n.getSeconds())}function O(e,n,t){void 0!==E.latestSelectedDateObj&&E.latestSelectedDateObj.setHours(e%24,n,t||0,0),E.hourElement&&E.minuteElement&&!E.isMobile&&(E.hourElement.value=o(E.config.time_24hr?e:(12+e)%12+12*r(e%12==0)),E.minuteElement.value=o(n),void 0!==E.amPM&&(E.amPM.textContent=E.l10n.amPM[r(e>=12)]),void 0!==E.secondElement&&(E.secondElement.value=o(t)))}function N(e){var n=parseInt(m(e).value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&et(n)}function F(e,n,t,a){return n instanceof Array?n.forEach(function(n){return F(e,n,t,a)}):e instanceof Array?e.forEach(function(e){return F(e,n,t,a)}):void(e.addEventListener(n,t,a),E._handlers.push({remove:function(){return e.removeEventListener(n,t,a)}}))}function H(){e_("onChange")}function j(e,n){var t=void 0!==e?E.parseDate(e):E.latestSelectedDateObj||(E.config.minDate&&E.config.minDate>E.now?E.config.minDate:E.config.maxDate&&E.config.maxDate<E.now?E.config.maxDate:E.now),a=E.currentYear,i=E.currentMonth;try{void 0!==t&&(E.currentYear=t.getFullYear(),E.currentMonth=t.getMonth())}catch(o){o.message="Invalid date supplied: "+t,E.config.errorHandler(o)}n&&E.currentYear!==a&&(e_("onYearChange"),V()),n&&(E.currentYear!==a||E.currentMonth!==i)&&e_("onMonthChange"),E.redraw()}function L(e){var n=m(e);~n.className.indexOf("arrow")&&W(e,n.classList.contains("arrowUp")?1:-1)}function W(e,n,t){var a=e&&m(e),i=t||a&&a.parentNode&&a.parentNode.firstChild,o=eC("increment");o.delta=n,i&&i.dispatchEvent(o)}function R(e,n,t,a){var i,o=ea(n,!0),r=d("span",e,n.getDate().toString());return r.dateObj=n,r.$i=a,r.setAttribute("aria-label",E.formatDate(n,E.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===C(n,E.now)&&(E.todayDateElem=r,r.classList.add("today"),r.setAttribute("aria-current","date")),o?(r.tabIndex=-1,eb(n)&&(r.classList.add("selected"),E.selectedDateElem=r,"range"===E.config.mode&&(s(r,"startRange",E.selectedDates[0]&&0===C(n,E.selectedDates[0],!0)),s(r,"endRange",E.selectedDates[1]&&0===C(n,E.selectedDates[1],!0)),"nextMonthDay"===e&&r.classList.add("inRange")))):r.classList.add("flatpickr-disabled"),"range"===E.config.mode&&(i=n,"range"===E.config.mode&&!(E.selectedDates.length<2)&&C(i,E.selectedDates[0])>=0&&0>=C(i,E.selectedDates[1])&&!eb(n))&&r.classList.add("inRange"),E.weekNumbers&&1===E.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&E.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+E.config.getWeek(n)+"</span>"),e_("onDayCreate",r),r}function B(e){e.focus(),"range"===E.config.mode&&el(e)}function K(e){for(var n=e>0?0:E.config.showMonths-1,t=e>0?E.config.showMonths:-1,a=n;a!=t;a+=e)for(var i=E.daysContainer.children[a],o=e>
vendor: 4,361 bytes, line 14
140?0:i.children.length-1,r=e>0?i.children.length:-1,l=o;l!=r;l+=e){var c=i.children[l];if(-1===c.className.indexOf("hidden")&&ea(c.dateObj))return c}}function U(e,n){var t=T(),a=ei(t||document.body),i=void 0!==e?e:a?t:void 0!==E.selectedDateElem&&ei(E.selectedDateElem)?E.selectedDateElem:void 0!==E.todayDateElem&&ei(E.todayDateElem)?E.todayDateElem:K(n>0?1:-1);void 0===i?E._input.focus():a?function e(n,t){for(var a=-1===n.className.indexOf("Month")?n.dateObj.getMonth():E.currentMonth,i=t>0?E.config.showMonths:-1,o=t>0?1:-1,r=a-E.currentMonth;r!=i;r+=o)for(var l=E.daysContainer.children[r],c=a-E.currentMonth===r?n.$i+t:t<0?l.children.length-1:0,s=l.children.length,d=c;d>=0&&d<s&&d!=(t>0?s:-1);d+=o){var u=l.children[d];if(-1===u.className.indexOf("hidden")&&ea(u.dateObj)&&Math.abs(n.$i-d)>=Math.abs(t))return B(u)}E.changeMonth(o),U(K(o),0)}(i,n):B(i)}function q(e,n){for(var t=(new Date(e,n,1).getDay()-E.l10n.firstDayOfWeek+7)%7,a=E.utils.getDaysInMonth((n-1+12)%12,e),i=E.utils.getDaysInMonth(n,e),o=window.document.createDocumentFragment(),r=E.config.showMonths>1,l=r?"prevMonthDay hidden":"prevMonthDay",c=r?"nextMonthDay hidden":"nextMonthDay",s=a+1-t,u=0;s<=a;s++,u++)o.appendChild(R("flatpickr-day "+l,new Date(e,n-1,s),s,u));for(s=1;s<=i;s++,u++)o.appendChild(R("flatpickr-day",new Date(e,n,s),s,u));for(var f=i+1;f<=42-t&&(1===E.config.showMonths||u%7!=0);f++,u++)o.appendChild(R("flatpickr-day "+c,new Date(e,n+1,f%i),f,u));var m=d("div","dayContainer");return m.appendChild(o),m}function J(){if(void 0!==E.daysContainer){u(E.daysContainer),E.weekNumbers&&u(E.weekNumbers);for(var e=document.createDocumentFragment(),n=0;n<E.config.showMonths;n++){var t=new Date(E.currentYear,E.currentMonth,1);t.setMonth(E.currentMonth+n),e.appendChild(q(t.getFullYear(),t.getMonth()))}E.daysContainer.appendChild(e),E.days=E.daysContainer.firstChild,"range"===E.config.mode&&1===E.selectedDates.length&&el()}}function V(){if(!(E.config.showMonths>1)&&"dropdown"===E.config.monthSelectorType){E.monthsDropdownContainer.tabIndex=-1,E.monthsDropdownContainer.innerHTML="";for(var e,n=0;n<12;n++)if(e=n,!(void 0!==E.config.minDate&&E.currentYear===E.config.minDate.getFullYear()&&e<E.config.minDate.getMonth()||void 0!==E.config.maxDate&&E.currentYear===E.config.maxDate.getFullYear()&&e>E.config.maxDate.getMonth())){var t=d("option","flatpickr-monthDropdown-month");t.value=new Date(E.currentYear,n).getMonth().toString(),t.textContent=p(n,E.config.shorthandCurrentMonth,E.l10n),t.tabIndex=-1,E.currentMonth===n&&(t.selected=!0),E.monthsDropdownContainer.appendChild(t)}}}function z(){var e,n=d("div","flatpickr-month"),t=window.document.createDocumentFragment();E.config.showMonths>1||"static"===E.config.monthSelectorType?e=d("span","cur-month"):(E.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),E.monthsDropdownContainer.setAttribute("aria-label",E.l10n.monthAriaLabel),F(E.monthsDropdownContainer,"change",function(e){var n=parseInt(m(e).value,10);E.changeMonth(n-E.currentMonth),e_("onMonthChange")}),V(),e=E.monthsDropdownContainer);var a=f("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",E.l10n.yearAriaLabel),E.config.minDate&&i.setAttribute("min",E.config.minDate.getFullYear().toString()),E.config.maxDate&&(i.setAttribute("max",E.config.maxDate.getFullYear().toString()),i.disabled=!!E.config.minDate&&E.config.minDate.getFullYear()===E.config.maxDate.getFullYear());var o=d("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),t.appendChild(o),n.appendChild(t),{container:n,yearElement:i,monthElement:e}}function G(){u(E.monthNav),E.monthNav.appendChild(E.prevMonthNav),E.config.showMonths&&(E.yearElements=[],E.monthElements=[]);for(var e=E.config.showMonths;e--;){var n=z();E.yearElements.push(n.yearElement),E.monthElements.push(n.monthElement),E.monthNav.appendChild(n.container)}E.monthNav.appendChild(E.nextMonthNav)}function Z(){E.weekdayContainer?u(E.weekdayContainer):E.weekdayContainer=d("div","flatpickr-weekdays");for(var e=E.config.showMonths;e--;){var n=d("div","flatpickr-weekdaycontainer");E.weekdayContainer.appendChild(n)}return X(),E.weekdayContainer}function X(){if(E.weekdayContainer){var e=E.l10n.firstDayOfWeek,t=n(E.l10n.weekdays.shorthand);e>0&&e<t.length&&(t=n(t.splice(e,t.length),t.splice(0,e)));for(var a=E.config.showMonths;a--;
vendor: 5,156 bytes, line 14
14)E.weekdayContainer.children[a].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+t.join("</span><span class='flatpickr-weekday'>")+"\n      </span>\n      "}}function Q(e,n){void 0===n&&(n=!0);var t=n?e:e-E.currentMonth;t<0&&!0===E._hidePrevMonthArrow||t>0&&!0===E._hideNextMonthArrow||(E.currentMonth+=t,(E.currentMonth<0||E.currentMonth>11)&&(E.currentYear+=E.currentMonth>11?1:-1,E.currentMonth=(E.currentMonth+12)%12,e_("onYearChange"),V()),J(),e_("onMonthChange"),ey())}function ee(e){return E.calendarContainer.contains(e)}function en(e){if(E.isOpen&&!E.config.inline){var n=m(e),t=ee(n),a=!(n===E.input||n===E.altInput||E.element.contains(n)||e.path&&e.path.indexOf&&(~e.path.indexOf(E.input)||~e.path.indexOf(E.altInput)))&&!t&&!ee(e.relatedTarget),i=!E.config.ignoredFocusElements.some(function(e){return e.contains(n)});a&&i&&(E.config.allowInput&&E.setDate(E._input.value,!1,E.config.altInput?E.config.altFormat:E.config.dateFormat),void 0!==E.timeContainer&&void 0!==E.minuteElement&&void 0!==E.hourElement&&""!==E.input.value&&void 0!==E.input.value&&P(),E.close(),E.config&&"range"===E.config.mode&&1===E.selectedDates.length&&E.clear(!1))}}function et(e){if(!(!e||E.config.minDate&&e<E.config.minDate.getFullYear()||E.config.maxDate&&e>E.config.maxDate.getFullYear())){var n=e,t=E.currentYear!==n;E.currentYear=n||E.currentYear,E.config.maxDate&&E.currentYear===E.config.maxDate.getFullYear()?E.currentMonth=Math.min(E.config.maxDate.getMonth(),E.currentMonth):E.config.minDate&&E.currentYear===E.config.minDate.getFullYear()&&(E.currentMonth=Math.max(E.config.minDate.getMonth(),E.currentMonth)),t&&(E.redraw(),e_("onYearChange"),V())}}function ea(e,n){void 0===n&&(n=!0);var t,a=E.parseDate(e,void 0,n);if(E.config.minDate&&a&&0>C(a,E.config.minDate,void 0!==n?n:!E.minDateHasTime)||E.config.maxDate&&a&&C(a,E.config.maxDate,void 0!==n?n:!E.maxDateHasTime)>0)return!1;if(!E.config.enable&&0===E.config.disable.length)return!0;if(void 0===a)return!1;for(var i=!!E.config.enable,o=null!==(t=E.config.enable)&&void 0!==t?t:E.config.disable,r=0,l=void 0;r<o.length;r++){if("function"==typeof(l=o[r])&&l(a))return i;if(l instanceof Date&&void 0!==a&&l.getTime()===a.getTime())return i;if("string"==typeof l){var c=E.parseDate(l,void 0,!0);return c&&c.getTime()===a.getTime()?i:!i}else if("object"==typeof l&&void 0!==a&&l.from&&l.to&&a.getTime()>=l.from.getTime()&&a.getTime()<=l.to.getTime())return i}return!i}function ei(e){return void 0!==E.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&E.daysContainer.contains(e)}function eo(e){var n=e.target===E._input,t=E._input.value.trimEnd()!==eM();n&&t&&!(e.relatedTarget&&ee(e.relatedTarget))&&E.setDate(E._input.value,!0,e.target===E.altInput?E.config.altFormat:E.config.dateFormat)}function er(e){var n=m(e),t=E.config.wrap?g.contains(n):n===E._input,a=E.config.allowInput,i=E.isOpen&&(!a||!t),o=E.config.inline&&t&&!a;if(13===e.keyCode&&t){if(a)return E.setDate(E._input.value,!0,n===E.altInput?E.config.altFormat:E.config.dateFormat),E.close(),n.blur();E.open()}else if(ee(n)||i||o){var r=!!E.timeContainer&&E.timeContainer.contains(n);switch(e.keyCode){case 13:r?(e.preventDefault(),P(),eg()):ep(e);break;case 27:e.preventDefault(),eg();break;case 8:case 46:t&&!E.config.allowInput&&(e.preventDefault(),E.clear());break;case 37:case 39:if(r||t)E.hourElement&&E.hourElement.focus();else{e.preventDefault();var l=T();if(void 0!==E.daysContainer&&(!1===a||l&&ei(l))){var c=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),Q(c),U(K(1),0)):U(void 0,c)}}break;case 38:case 40:e.preventDefault();var s=40===e.keyCode?1:-1;E.daysContainer&&void 0!==n.$i||n===E.input||n===E.altInput?e.ctrlKey?(e.stopPropagation(),et(E.currentYear-s),U(K(1),0)):r||U(void 0,7*s):n===E.currentYearElement?et(E.currentYear-s):E.config.enableTime&&(!r&&E.hourElement&&E.hourElement.focus(),P(e),E._debouncedChange());break;case 9:if(r){var d=[E.hourElement,E.minuteElement,E.secondElement,E.amPM,].concat(E.pluginElements).filter(function(e){return e}),u=d.indexOf(n);if(-1!==u){var f=d[u+(e.shiftKey?-1:1)];e.preventDefault(),(f||E._input).focus()}}else!E.config.noCalendar&&E.daysContainer&&E.daysContainer.contains(n)&&e.shiftKey&&(e.preventDefault(),E._input.focus())}}if(void 0!==E.amPM&&n===E.amPM)switch(e.key){case E.l10n.amPM[0].charAt(0):case E.l10n.amPM[0].charAt(0).toLowerCase():E.amPM.textContent=E.l10n.amPM[0],Y(),ew();break;case E.l10n.amPM[1].charAt(0):case E.l10n.amPM[1].charAt(0).toLowerCase():E.amPM.textContent=E.l10n.amPM[1],Y(),ew()}(t||ee(n))&&e_("onKeyDown",e)}function el(e,n){if(void 0===n&&(n="flatpickr-day"),!(1!==E.selectedDates.length||e&&(!e.classList.contains(n)||e.classList.contains("flatpickr-disabled")))){for(var t=e?e.dateObj.getTime():E.days.firstElementChild.dateObj.getTime(),a=E.parseDate(E.selectedDates[0],void 0,!0).getTime(),i=Math.min(t,E.selectedDates[0].getTime()),o=Math.max(t,E.selectedDates[0].getTime()),r=!1,l=0,c=0,s=i;s<o;s+=M.DAY)!ea(new Date(s),!0)&&(r=r||s>i&&s<o,s<a&&(!l||s>l)?l=s:s>a&&(!c||s<c)&&(c=s));Array.from(E.rContainer.querySelectorAll("*:nth-child(-n+"+E.config.showMonths+") >
14 ."+n)).forEach(function(n){var i,o,s,d=n.dateObj.getTime(),u=l>0&&d<l||c>0&&d>c;if(u){n.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){n.classList.remove(e)});return}(!r||u)&&(["startRange","inRange","endRange","notAllowed"].forEach(function(e){n.classList.remove(e)}),void 0!==e&&(e.classList.add(t<=E.selectedDates[0].getTime()?"startRange":"endRange"),a<t&&d===a?n.classList.add("startRange"):a>t&&d===a&&n.classList.add("endRange"),d>=l&&(0===c||d<=c)&&(i=d,o=a,i>Math.min(o,s=t)&&i<Math.max(o,s))&&n.classList.add("inRange")))})}}function ec(){!E.isOpen||E.config.static||E.config.inline||ef()}function es(e){return function(n){var t=E.config["_"+e+"Date"]=E.parseDate(n,E.config.dateFormat),a=E.config["_"+("min"===e?"max":"min")+"Date"];void 0!==t&&(E["min"===e?"minDateHasTime":"maxDateHasTime"]=t.getHours()>0||t.getMinutes()>0||t.getSeconds()>0),E.selectedDates&&(E.selectedDates=E.selectedDates.filter(function(e){return ea(e)}),E.selectedDates.length||"min"!==e||A(t),ew()),E.daysContainer&&(em(),void 0!==t?E.currentYearElement[e]=t.getFullYear().toString():E.currentYearElement.removeAttribute(e),E.currentYearElement.disabled=!!a&&void 0!==t&&a.getFullYear()===t.getFullYear())}}function ed(){return E.config.wrap?g.querySelector("[data-input]"):g}function eu(){"object"!=typeof E.config.locale&&void 0===k.l10ns[E.config.locale]&&E.config.errorHandler(Error("flatpickr: invalid locale "+E.config.locale)),E.l10n=e(e({},k.l10ns.default),"object"==typeof E.config.locale?E.config.locale:"default"!==E.config.locale?k.l10ns[E.config.locale]:void 0),$.D="("+E.l10n.weekdays.shorthand.join("|")+")",$.l="("+E.l10n.weekdays.longhand.join("|")+")",$.M="("+E.l10n.months.shorthand.join("|")+")",$.F="("+E.l10n.months.longhand.join("|")+")",$.K="("+E.l10n.amPM[0]+"|"+E.l10n.amPM[1]+"|"+E.l10n.amPM[0].toLowerCase()+"|"+E.l10n.amPM[1].toLowerCase()+")",void 0===e(e({},h),JSON.parse(JSON.stringify(g.dataset||{}))).time_24hr&&void 0===k.defaultConfig.time_24hr&&(E.config.time_24hr=E.l10n.time_24hr),E.formatDate=D(E),E.parseDate=_({config:E.config,l10n:E.l10n})}function ef(e){if("function"==typeof E.config.position)return void E.config.position(E,e);if(void 0!==E.calendarContainer){e_("onPreCalendarPosition");var n=e||E._positionElement,t=Array.prototype.reduce.call(E.calendarContainer.children,function(e,n){return e+n.offsetHeight},0),a=E.calendarContainer.offsetWidth,i=E.config.position.split(" "),o=i[0],r=i.length>1?i[1]:null,l=n.getBoundingClientRect(),c=window.innerHeight-l.bottom,d="above"===o||"below"!==o&&c<t&&l.top>t,u=window.pageYOffset+l.top+(d?-t-2:n.offsetHeight+2);if(s(E.calendarContainer,"arrowTop",!d),s(E.calendarContainer,"arrowBottom",d),!E.config.inline){var f=window.pageXOffset+l.left,m=!1,g=!1;"center"===r?(f-=(a-l.width)/2,m=!0):"right"===r&&(f-=a-l.width,g=!0),s(E.calendarContainer,"arrowLeft",!m&&!g),s(E.calendarContainer,"arrowCenter",m),s(E.calendarContainer,"arrowRight",g);var p=window.document.body.offsetWidth-(window.pageXOffset+l.right),h=f+a>window.document.body.offsetWidth,$=p+a>window.document.body.offsetWidth;if(s(E.calendarContainer,"rightMost",h),!E.config.static){if(E.calendarContainer.style.top=u+"px",h){if($){var v=function e(){for(var n,t=null,a=0;a<document.styleSheets.length;a++){var i=document.styleSheets[a];if(i.cssRules){try{i.cssRules}catch(o){continue}t=i;break}}return null!=t?t:(n=document.createElement("style"),document.head.appendChild(n),n.sheet)}();if(void 0===v)return;var D=window.document.body.offsetWidth,_=v.cssRules.length,C="{left:"+l.left+"px;right:auto;}";s(E.calendarContainer,"rightMost",!1),s(E.calendarContainer,"centerMost",!0),v.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+C,_),E.calendarContainer.style.left=Math.max(0,D/2-a/2)+"px",E.calendarContainer.style.right="auto"}else E.calendarContainer.style.left="auto",E.calendarContainer.style.right=p+"px"}else E.calendarContainer.style.left=f+"px",E.calendarContainer.style.right="auto"}}}}function em(){E.config.noCalendar||E.isMobile||(V(),ey(),J())}function eg(){E._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(E.close,0):E.close()}function ep(e){e.preventDefault(),e.stopPropagation();var n=function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")},t=function e(n,t){return t(n)?n:n.parentNode?e(n.parentNode,t):void 0}(m(e),n);if(void 0!==t){var a=t,i=E.latestSelectedDateObj=new Date(a.dateObj.getTime()),o=(i.getMonth()<E.currentMonth||i.getMonth()>E.currentMonth+E.config.showMonths-1)&&"range"!==E.config.mode;if(E.selectedDateElem=a,"single"===E.config.mode)E.selectedDates=[i];else if("multiple"===E.config.mode){var r=eb(i);r?E.selectedDates.splice(parseInt(r),1):E.selectedDates.push(i)}else"range"===E.config.mode&&(2===E.selectedDates.length&&E.clear(!1,!1),E.latestSelectedDateObj=i,E.selectedDates.push(i),0!==C(i,E.selectedDates[0],!0)&&E.selectedDates.sort(function(e,n){return e.getTime()-n.getTime()}));if(Y(),o){var l=E.currentYear!==i.getFullYear();E.currentYear=i.getFullYear(),E.currentMonth=i.getMonth(),l&&(e_("onYearChange"),V()),e_("onMonthChange")}if(ey(),J(),ew(),o||"range"===E.config.mode||1!==E.config.showMonths?void 0!==E.selectedDateElem&&void 0===E.hourElement&&E.selectedDateElem&&E.selectedDateElem.focus():B(a),void 0!==E.hourElement&&void 0!==E.hourElement&&E.hourElement.focus(),E.config.closeOnSelect){var c="single"===E.config.mode&&!E.config.enableTime,s="range"===E.config.mode&&2===E.selectedDates.length&&!E.config.enableTime;(c||s)&&eg()}H()}}E.parseDate=_({config:E.config,l10n:E.l10n}),E._handlers=[],E.pluginElements=[],E.loadedPlugins=[],E._bind=F,E._setHoursFromDate=A,E._positionCalendar=ef,E.changeMonth=Q,E.changeYear=et,E.clear=function e(n,t){if(void 0===n&&(n=!0),void 0===t&&(t=!0),E.input.value="",void 0!==E.altInput&&(E.altInput.value=""),void 0!==E.mobileInput&&(E.mobileInput.value=""),E.selectedDates=[],E.latestSelectedDateObj=void 0,!0===t&&(E.currentYear=E._initialDate.getFullYear(),E.currentMonth=E._initialDate.getMonth()),!0===E.config.enableTime){var a,i=w(E.config),o=i.hours;O(o,i.minutes,i.seconds)}E.redraw(),n&&e_("onChange")},E.close=function e(){E.isOpen=!1,E.isMobile||(void 0!==E.calendarContainer&&E.calendarContainer.classList.remove("open"),void 0!==E._input&&E._input.classList.remove("active")),e_("onClose")},E.onMouseOver=el,E._createElement=d,E.createDay=R,E.destroy=function e(){void 0!==E.config&&e_("onDestroy");for(var n=E._handlers.length;n--;)E._handlers[n].remove();if(E._handlers=[],E.mobileInput)E.mobileInput.parentNode&&E.mobileInput.parentNode.removeChild(E.mobileInput),E.mobileInput=void 0;else if(E.calendarContainer&&E.calendarContainer.parentNode){if(E.config.static&&E.calendarContainer.parentNode){var t=E.calendarContainer.parentNode;if(t.lastChild&&t.removeChild(t.lastChild),t.parentNode){for(;t.firstChild;)t.parentNode.insertBefore(t.firstChild,t);t.parentNode.removeChild(t)}}else E.calendarContainer.parentNode.removeChild(E.calendarContainer)}E.altInput&&(E.input.type="text",E.altInput.parentNode&&E.altInput.parentNode.removeChild(E.altInput),delete E.altInput),E.input&&(E.input.type=E.input._type,E.input.classList.remove("flatpickr-input"),E.input.removeAttribute("readonly")),["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","
14isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","monthsDropdownContainer","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config",].forEach(function(e){try{delete E[e]}catch(n){}})},E.isEnabled=ea,E.jumpToDate=j,E.updateValue=ew,E.open=function e(n,t){if(void 0===t&&(t=E._positionElement),!0===E.isMobile){if(n){n.preventDefault();var a=m(n);a&&a.blur()}void 0!==E.mobileInput&&(E.mobileInput.focus(),E.mobileInput.click()),e_("onOpen");return}if(!E._input.disabled&&!E.config.inline){var i=E.isOpen;E.isOpen=!0,i||(E.calendarContainer.classList.add("open"),E._input.classList.add("active"),e_("onOpen"),ef(t)),!0!==E.config.enableTime||!0!==E.config.noCalendar||!1!==E.config.allowInput||void 0!==n&&E.timeContainer.contains(n.relatedTarget)||setTimeout(function(){return E.hourElement.select()},50)}},E.redraw=em,E.set=function e(n,a){if(null!==n&&"object"==typeof n)for(var i in Object.assign(E.config,n),n)void 0!==eh[i]&&eh[i].forEach(function(e){return e()});else E.config[n]=a,void 0!==eh[n]?eh[n].forEach(function(e){return e()}):t.indexOf(n)>-1&&(E.config[n]=c(a));E.redraw(),ew(!0)},E.setDate=function e(n,t,a){if(void 0===t&&(t=!1),void 0===a&&(a=E.config.dateFormat),0!==n&&!n||n instanceof Array&&0===n.length)return E.clear(t);e$(n,a),E.latestSelectedDateObj=E.selectedDates[E.selectedDates.length-1],E.redraw(),j(void 0,t),A(),0===E.selectedDates.length&&E.clear(!1),ew(t),t&&e_("onChange")},E.toggle=function e(n){if(!0===E.isOpen)return E.close();E.open(n)};var eh={locale:[eu,X],showMonths:[G,S,Z],minDate:[j],maxDate:[j],positionElement:[eD],clickOpens:[function(){!0===E.config.clickOpens?(F(E._input,"focus",E.open),F(E._input,"click",E.open)):(E._input.removeEventListener("focus",E.open),E._input.removeEventListener("click",E.open))},]};function e$(e,n){var t=[];if(e instanceof Array)t=e.map(function(e){return E.parseDate(e,n)});else if(e instanceof Date||"number"==typeof e)t=[E.parseDate(e,n)];else if("string"==typeof e)switch(E.config.mode){case"single":case"time":t=[E.parseDate(e,n)];break;case"multiple":t=e.split(E.config.conjunction).map(function(e){return E.parseDate(e,n)});break;case"range":t=e.split(E.l10n.rangeSeparator).map(function(e){return E.parseDate(e,n)})}else E.config.errorHandler(Error("Invalid date supplied: "+JSON.stringify(e)));E.selectedDates=E.config.allowInvalidPreload?t:t.filter(function(e){return e instanceof Date&&ea(e,!1)}),"range"===E.config.mode&&E.selectedDates.sort(function(e,n){return e.getTime()-n.getTime()})}function ev(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?E.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:E.parseDate(e.from,void 0),to:E.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function eD(){E._positionElement=E.config.positionElement||E._input}function e_(e,n){if(void 0!==E.config){var t=E.config[e];if(void 0!==t&&t.length>0)for(var a=0;t[a]&&a<t.length;a++)t[a](E.selectedDates,E.input.value,E,n);"onChange"===e&&(E.input.dispatchEvent(eC("change")),E.input.dispatchEvent(eC("input")))}}function eC(e){var n=document.createEvent("Event");return n.initEvent(e,!0,!0),n}function eb(e){for(var n=0;n<E.selectedDates.length;n++){var t=E.selectedDates[n];if(t instanceof Date&&0===C(t,e))return""+n}return!1}function ey(){E.config.noCalendar||E.isMobile||!E.monthNav||(E.yearElements.forEach(function(e,n){var t=new Date(E.currentYear,E.currentMonth,1);t.setMonth(E.currentMonth+n),E.config.showMonths>1||"static"===E.config.monthSelectorType?E.monthElements[n].textContent=p(t.getMonth(),E.config.shorthandCurrentMonth,E.l10n)+" ":E.monthsDropdownContainer.value=t.getMonth().toString(),e.value=t.getFullYear().toString()}),E._hidePrevMonthArrow=void 0!==E.config.minDate&&(E.currentYear===E.config.minDate.getFullYear()?E.currentMonth<=E.config.minDate.getMonth():E.currentYear<E.config.minDate.getFullYear()),E._hideNextMonthArrow=void 0!==E.config.maxDate&&(E.currentYear===E.config.maxDate.getFullYear()?E.currentMonth+1>E.config.maxDate.getMonth():E.currentYear>E.config.maxDate.getFullYear()))}function eM(e){var n=e||(E.config.altInput?E.config.altFormat:E.config.dateFormat);return E.selectedDates.map(function(e){return E.formatDate(e,n)}).filter(function(e,n,t){return"range"!==E.config.mode||E.config.enableTime||t.indexOf(e)===n}).join("range"!==E.config.mode?E.config.conjunction:E.l10n.rangeSeparator)}function ew(e){void 0===e&&(e=!0),void 0!==E.mobileInput&&E.mobileFormatStr&&(E.mobileInput.value=void 0!==E.latestSelectedDateObj?E.formatDate(E.latestSelectedDateObj,E.mobileFormatStr):""),E.input.value=eM(E.config.dateFormat),void 0!==E.altInput&&(E.altInput.value=eM(E.config.altFormat)),!1!==e&&e_("onValueUpdate")}function ex(e){var n=m(e),t=E.prevMonthNav.contains(n),a=E.nextMonthNav.contains(n);t||a?Q(t?-1:1):E.yearElements.indexOf(n)>=0?n.select():n.classList.contains("arrowUp")?E.changeYear(E.currentYear+1):n.classList.contains("arrowDown")&&E.changeYear(E.currentYear-1)}return E.element=E.input=g,E.isOpen=!1,function n(){var i=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile",],o=e(e({},JSON.parse(JSON.stringify(g.dataset||{}))),h),r={};E.config.parseDate=o.parseDate,E.config.formatDate=o.formatDate,Object.defineProperty(E.config,"enable",{get:function(){return E.config._enable},set:function(e){E.config._enable=ev(e)}}),Object.defineProperty(E.config,"disable",{get:function(){return E.config._disable},set:function(e){E.config._disable=ev(e)}});var l="time"===o.mode;if(!o.dateFormat&&(o.enableTime||l)){var s=k.defaultConfig.dateFormat||a.dateFormat;r.dateFormat=o.noCalendar||l?"H:i"+(o.enableSeconds?":S":""):s+" H:i"+(o.enableSeconds?":S":"")}if(o.altInput&&(o.enableTime||l)&&!o.altFormat){var d=k.defaultConfig.altFormat||a.altFormat;r.altFormat=o.noCalendar||l?"h:i"+(o.enableSeconds?":S K":" K"):d+" h:i"+(o.enableSeconds?":S":"")+" K"}Object.defineProperty(E.config,"minDate",{get:function(){return E.config._minDate},set:es("min")}),Object.defineProperty(E.config,"maxDate",{get:function(){return E.config._maxDate},set:es("max")});var u=function(e){return function(n){E.config["min"===e?"_minTime":"_maxTime"]=E.parseDate(n,"H:i:S")}};Object.defineProperty(E.config,"minTime",{get:function(){return E.config._minTime},set:u("min")}),Object.defineProperty(E.config,"maxTime",{get:function(){return E.config._maxTime},set:u("max")}
vendor: 4,555 bytes, line 14
14),"time"===o.mode&&(E.config.noCalendar=!0,E.config.enableTime=!0),Object.assign(E.config,r,o);for(var f=0;f<i.length;f++)E.config[i[f]]=!0===E.config[i[f]]||"true"===E.config[i[f]];t.filter(function(e){return void 0!==E.config[e]}).forEach(function(e){E.config[e]=c(E.config[e]||[]).map(I)}),E.isMobile=!E.config.disableMobile&&!E.config.inline&&"single"===E.config.mode&&!E.config.disable.length&&!E.config.enable&&!E.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var f=0;f<E.config.plugins.length;f++){var m=E.config.plugins[f](E)||{};for(var p in m)t.indexOf(p)>-1?E.config[p]=c(m[p]).map(I).concat(E.config[p]):void 0===o[p]&&(E.config[p]=m[p])}o.altInputClass||(E.config.altInputClass=ed().className+" "+E.config.altInputClass),e_("onParseConfig")}(),eu(),function e(){if(E.input=ed(),!E.input){E.config.errorHandler(Error("Invalid input element specified"));return}E.input._type=E.input.type,E.input.type="text",E.input.classList.add("flatpickr-input"),E._input=E.input,E.config.altInput&&(E.altInput=d(E.input.nodeName,E.config.altInputClass),E._input=E.altInput,E.altInput.placeholder=E.input.placeholder,E.altInput.disabled=E.input.disabled,E.altInput.required=E.input.required,E.altInput.tabIndex=E.input.tabIndex,E.altInput.type="text",E.input.setAttribute("type","hidden"),!E.config.static&&E.input.parentNode&&E.input.parentNode.insertBefore(E.altInput,E.input.nextSibling)),E.config.allowInput||E._input.setAttribute("readonly","readonly"),eD()}(),E.selectedDates=[],E.now=E.parseDate(E.config.now)||new Date,(v=E.config.defaultDate||(("INPUT"===E.input.nodeName||"TEXTAREA"===E.input.nodeName)&&E.input.placeholder&&E.input.value===E.input.placeholder?null:E.input.value))&&e$(v,E.config.dateFormat),E._initialDate=E.selectedDates.length>0?E.selectedDates[0]:E.config.minDate&&E.config.minDate.getTime()>E.now.getTime()?E.config.minDate:E.config.maxDate&&E.config.maxDate.getTime()<E.now.getTime()?E.config.maxDate:E.now,E.currentYear=E._initialDate.getFullYear(),E.currentMonth=E._initialDate.getMonth(),E.selectedDates.length>0&&(E.latestSelectedDateObj=E.selectedDates[0]),void 0!==E.config.minTime&&(E.config.minTime=E.parseDate(E.config.minTime,"H:i")),void 0!==E.config.maxTime&&(E.config.maxTime=E.parseDate(E.config.maxTime,"H:i")),E.minDateHasTime=!!E.config.minDate&&(E.config.minDate.getHours()>0||E.config.minDate.getMinutes()>0||E.config.minDate.getSeconds()>0),E.maxDateHasTime=!!E.config.maxDate&&(E.config.maxDate.getHours()>0||E.config.maxDate.getMinutes()>0||E.config.maxDate.getSeconds()>0),E.utils={getDaysInMonth:function(e,n){return(void 0===e&&(e=E.currentMonth),void 0===n&&(n=E.currentYear),1===e&&(n%4==0&&n%100!=0||n%400==0))?29:E.l10n.daysInMonth[e]}},E.isMobile||function e(){var n=window.document.createDocumentFragment();if(E.calendarContainer=d("div","flatpickr-calendar"),E.calendarContainer.tabIndex=-1,!E.config.noCalendar){if(n.appendChild((E.monthNav=d("div","flatpickr-months"),E.yearElements=[],E.monthElements=[],E.prevMonthNav=d("span","flatpickr-prev-month"),E.prevMonthNav.innerHTML=E.config.prevArrow,E.nextMonthNav=d("span","flatpickr-next-month"),E.nextMonthNav.innerHTML=E.config.nextArrow,G(),Object.defineProperty(E,"_hidePrevMonthArrow",{get:function(){return E.__hidePrevMonthArrow},set:function(e){E.__hidePrevMonthArrow!==e&&(s(E.prevMonthNav,"flatpickr-disabled",e),E.__hidePrevMonthArrow=e)}}),Object.defineProperty(E,"_hideNextMonthArrow",{get:function(){return E.__hideNextMonthArrow},set:function(e){E.__hideNextMonthArrow!==e&&(s(E.nextMonthNav,"flatpickr-disabled",e),E.__hideNextMonthArrow=e)}}),E.currentYearElement=E.yearElements[0],ey(),E.monthNav)),E.innerContainer=d("div","flatpickr-innerContainer"),E.config.weekNumbers){var t,a,i=(E.calendarContainer.classList.add("hasWeeks"),t=d("div","flatpickr-weekwrapper"),t.appendChild(d("span","flatpickr-weekday",E.l10n.weekAbbreviation)),a=d("div","flatpickr-weeks"),t.appendChild(a),{weekWrapper:t,weekNumbers:a}),l=i.weekWrapper,c=i.weekNumbers;E.innerContainer.appendChild(l),E.weekNumbers=c,E.weekWrapper=l}E.rContainer=d("div","flatpickr-rContainer"),E.rContainer.appendChild(Z()),E.daysContainer||(E.daysContainer=d("div","flatpickr-days"),E.daysContainer.tabIndex=-1),J(),E.rContainer.appendChild(E.daysContainer),E.innerContainer.appendChild(E.rContainer),n.appendChild(E.innerContainer)}E.config.enableTime&&n.appendChild(function e(){E.calendarContainer.classList.add("hasTime"),E.config.noCalendar&&E.calendarContainer.classList.add("noCalendar");
vendor: 7,323 bytes, line 14
14var n=w(E.config);E.timeContainer=d("div","flatpickr-time"),E.timeContainer.tabIndex=-1;var t=d("span","flatpickr-time-separator",":"),a=f("flatpickr-hour",{"aria-label":E.l10n.hourAriaLabel});E.hourElement=a.getElementsByTagName("input")[0];var i=f("flatpickr-minute",{"aria-label":E.l10n.minuteAriaLabel});if(E.minuteElement=i.getElementsByTagName("input")[0],E.hourElement.tabIndex=E.minuteElement.tabIndex=-1,E.hourElement.value=o(E.latestSelectedDateObj?E.latestSelectedDateObj.getHours():E.config.time_24hr?n.hours:function e(n){switch(n%24){case 0:case 12:return 12;default:return n%12}}(n.hours)),E.minuteElement.value=o(E.latestSelectedDateObj?E.latestSelectedDateObj.getMinutes():n.minutes),E.hourElement.setAttribute("step",E.config.hourIncrement.toString()),E.minuteElement.setAttribute("step",E.config.minuteIncrement.toString()),E.hourElement.setAttribute("min",E.config.time_24hr?"0":"1"),E.hourElement.setAttribute("max",E.config.time_24hr?"23":"12"),E.hourElement.setAttribute("maxlength","2"),E.minuteElement.setAttribute("min","0"),E.minuteElement.setAttribute("max","59"),E.minuteElement.setAttribute("maxlength","2"),E.timeContainer.appendChild(a),E.timeContainer.appendChild(t),E.timeContainer.appendChild(i),E.config.time_24hr&&E.timeContainer.classList.add("time24hr"),E.config.enableSeconds){E.timeContainer.classList.add("hasSeconds");var l=f("flatpickr-second");E.secondElement=l.getElementsByTagName("input")[0],E.secondElement.value=o(E.latestSelectedDateObj?E.latestSelectedDateObj.getSeconds():n.seconds),E.secondElement.setAttribute("step",E.minuteElement.getAttribute("step")),E.secondElement.setAttribute("min","0"),E.secondElement.setAttribute("max","59"),E.secondElement.setAttribute("maxlength","2"),E.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),E.timeContainer.appendChild(l)}return E.config.time_24hr||(E.amPM=d("span","flatpickr-am-pm",E.l10n.amPM[r((E.latestSelectedDateObj?E.hourElement.value:E.config.defaultHour)>11)]),E.amPM.title=E.l10n.toggleTitle,E.amPM.tabIndex=-1,E.timeContainer.appendChild(E.amPM)),E.timeContainer}()),s(E.calendarContainer,"rangeMode","range"===E.config.mode),s(E.calendarContainer,"animate",!0===E.config.animate),s(E.calendarContainer,"multiMonth",E.config.showMonths>1),E.calendarContainer.appendChild(n);var u=void 0!==E.config.appendTo&&void 0!==E.config.appendTo.nodeType;if((E.config.inline||E.config.static)&&(E.calendarContainer.classList.add(E.config.inline?"inline":"static"),E.config.inline&&(!u&&E.element.parentNode?E.element.parentNode.insertBefore(E.calendarContainer,E._input.nextSibling):void 0!==E.config.appendTo&&E.config.appendTo.appendChild(E.calendarContainer)),E.config.static)){var m=d("div","flatpickr-wrapper");E.element.parentNode&&E.element.parentNode.insertBefore(m,E.element),m.appendChild(E.element),E.altInput&&m.appendChild(E.altInput),m.appendChild(E.calendarContainer)}E.config.static||E.config.inline||(void 0!==E.config.appendTo?E.config.appendTo:window.document.body).appendChild(E.calendarContainer)}(),function e(){if(E.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(E.element.querySelectorAll("[data-"+e+"]"),function(n){return F(n,"click",E[e])})}),E.isMobile){(function e(){var n=E.config.enableTime?E.config.noCalendar?"time":"datetime-local":"date";E.mobileInput=d("input",E.input.className+" flatpickr-mobile"),E.mobileInput.tabIndex=1,E.mobileInput.type=n,E.mobileInput.disabled=E.input.disabled,E.mobileInput.required=E.input.required,E.mobileInput.placeholder=E.input.placeholder,E.mobileFormatStr="datetime-local"===n?"Y-m-d\\TH:i:S":"date"===n?"Y-m-d":"H:i:S",E.selectedDates.length>0&&(E.mobileInput.defaultValue=E.mobileInput.value=E.formatDate(E.selectedDates[0],E.mobileFormatStr)),E.config.minDate&&(E.mobileInput.min=E.formatDate(E.config.minDate,"Y-m-d")),E.config.maxDate&&(E.mobileInput.max=E.formatDate(E.config.maxDate,"Y-m-d")),E.input.getAttribute("step")&&(E.mobileInput.step=String(E.input.getAttribute("step"))),E.input.type="hidden",void 0!==E.altInput&&(E.altInput.type="hidden");try{E.input.parentNode&&E.input.parentNode.insertBefore(E.mobileInput,E.input.nextSibling)}catch(t){}F(E.mobileInput,"change",function(e){E.setDate(m(e).value,!1,E.mobileFormatStr),e_("onChange"),e_("onClose")})})();return}var n=l(ec,50);if(E._debouncedChange=l(H,300),E.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&F(E.daysContainer,"mouseover",function(e){"range"===E.config.mode&&el(m(e))}),F(E._input,"keydown",er),void 0!==E.calendarContainer&&F(E.calendarContainer,"keydown",er),E.config.inline||E.config.static||F(window,"resize",n),void 0!==window.ontouchstart?F(window.document,"touchstart",en):F(window.document,"mousedown",en),F(window.document,"focus",en,{capture:!0}),!0===E.config.clickOpens&&(F(E._input,"focus",E.open),F(E._input,"click",E.open)),void 0!==E.daysContainer&&(F(E.monthNav,"click",ex),F(E.monthNav,["keyup","increment"],N),F(E.daysContainer,"click",ep)),void 0!==E.timeContainer&&void 0!==E.minuteElement&&void 0!==E.hourElement){var t=function(e){return m(e).select()};F(E.timeContainer,["increment"],P),F(E.timeContainer,"blur",P,{capture:!0}),F(E.timeContainer,"click",L),F([E.hourElement,E.minuteElement],["focus","click"],t),void 0!==E.secondElement&&F(E.secondElement,"focus",function(){return E.secondElement&&E.secondElement.select()}),void 0!==E.amPM&&F(E.amPM,"click",function(e){P(e)})}E.config.allowInput&&F(E._input,"blur",eo)}(),(E.selectedDates.length||E.config.noCalendar)&&(E.config.enableTime&&A(E.config.noCalendar?E.latestSelectedDateObj:void 0),ew(!1)),S(),x=/^((?!chrome|android).)*safari/i.test(navigator.userAgent),!E.isMobile&&x&&ef(),e_("onReady"),E}function E(e,n){for(var t=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),a=[],i=0;i<t.length;i++){var o=t[i];try{if(null!==o.getAttribute("data-fp-omit"))continue;void 0!==o._flatpickr&&(o._flatpickr.destroy(),o._flatpickr=void 0),o._flatpickr=x(o,n||{}),a.push(o._flatpickr)}catch(r){console.error(r)}}return 1===a.length?a[0]:a}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var n=[],t=1;t<arguments.length;t++)n[t-1]=arguments[t];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var a=function(n){n&&Object.keys(n).forEach(function(t){return e[t]=n[t]})},i=0,o=n;i<o.length;i++)a(o[i]);return e}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return E(this,e)},HTMLElement.prototype.flatpickr=function(e){return E([this],e)});var k=function(e,n){return"string"==typeof e?E(window.document.querySelectorAll(e),n):e instanceof Node?E([e],n):E(e,n)};return k.defaultConfig={},k.l10ns={en:e({},i),default:e({},i)},k.localize=function(n){k.l10ns.default=e(e({},k.l10ns.default),n)},k.setDefaults=function(n){k.defaultConfig=e(e({},k.defaultConfig),n)},k.parseDate=_({}),k.formatDate=D({}),k.compareDates=C,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return E(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+("string"==typeof e?parseInt(e,10):e))},"undefined"!=typeof window&&(window.flatpickr=k),k});

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.