vendor: 6,046 bytes, lines 1-5
1// ÐалендаÑÑ 2/* flatpickr v4.4.4, @license MIT */ 3 4var tr=($("#js_single_date_select").length > 0 ? 29 : 0); 5!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):e.flatpickr=t()}(this,function(){"use strict";var e=function(e){return("0"+e).slice(-2)},t=function(e){return!0===e?1:0};function n(e,t,n){var a;return void 0===n&&(n=!1),function(){var i=this,o=arguments;null!==a&&clearTimeout(a),a=window.setTimeout(function(){a=null,n||e.apply(i,o)},t),n&&!a&&e.apply(i,o)}}var a=function(e){return e instanceof Array?e:[e]},i=function(){},o=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},r={D:i,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours(parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,n,a){e.setHours(e.getHours()%12+12*t(new RegExp(a.amPM[1],"i").test(n)))},M:function(e,t,n){e.setMonth(n.months.shorthand.indexOf(t))},S:function(e,t){e.setSeconds(parseFloat(t))},U:function(e,t){return new Date(1e3*parseFloat(t))},W:function(e,t){var n=parseInt(t);return new Date(e.getFullYear(),0,2+7*(n-1),0,0,0,0)},Y:function(e,t){e.setFullYear(parseFloat(t))},Z:function(e,t){return new Date(t)},d:function(e,t){e.setDate(parseFloat(t))},h:function(e,t){e.setHours(parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:i,m:function(e,t){e.setMonth(parseFloat(t)-1)},n:function(e,t){e.setMonth(parseFloat(t)-1)},s:function(e,t){e.setSeconds(parseFloat(t))},w:i,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},c={D:"(\\w+)",F:"(\\w+)",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"(\\w+)",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"(\\w+)",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},l={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[l.w(e,t,n)]},F:function(e,t,n){return o(l.n(e,t,n)-1,!1,t)},G:function(t,n,a){return e(l.h(t,n,a))},H:function(t){return e(t.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,n){return n.amPM[t(e.getHours()>11)]},M:function(e,t){return o(e.getMonth(),!0,t)},S:function(t){return e(t.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return e.getFullYear()},d:function(t){return e(t.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(t){return e(t.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(t){return e(t.getMonth()+1)},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(e.getFullYear()).substring(2)}},d={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 t=e%100;if(t>3&&t<21)return"th";switch(t%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"},s=function(e){var t=e.config,n=void 0===t?p:t,a=e.l10n,i=void 0===a?d:a;return function(e,t,a){if(void 0!==n.formatDate)return n.formatDate(e,t);var o=a||i;return t.split("").map(function(t,a,i){return l[t]&&"\\"!==i[a-1]?l[t](e,o,n):"\\"!==t?t:""}).join("")}},u=function(e){var t=e.config,n=void 0===t?p:t,a=e.l10n,i=void 0===a?d:a;return function(e,t,a){if(0===e||e){var o,l=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"==typeof e){var d=t||(n||p).dateFormat,s=String(e).trim();if("today"===s)o=new Date,a=!0;else if(/Z$/.test(s)||/GMT$/.test(s))o=new Date(e);else if(n&&n.parseDate)o=n.parseDate(e,d);else{o=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0);for(var u,f=[],m=0,g=0,h="";m<d.length;m++){var v=d[m],D="\\"===v,w="\\"===d[m-1]||D;if(c[v]&&!w){h+=c[v];var b=new RegExp(h).exec(e);b&&(u=!0)&&f["Y"!==v?"push":"unshift"]({fn:r[v],val:b[++g]})}else D||(h+=".");f.forEach(function(e){var t=e.fn,n=e.val;return o=t(o,n,i)||o})}o=u?o:void 0}}if(o instanceof Date)return!0===a&&o.setHours(0,0,0,0),o;n.errorHandler(new Error("Invalid date provided: "+l))}}};function f(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var m=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},g={DAY:864e5},p={_disable:[],_enable:[],allowInput:!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",clickOpens:!0,closeOnSelect:!0,conjunction:", ",dateFormat:"Y-m-d",defaultHour:12,defaultMinute:0,defaultSeconds:0,disable:[],disableMobile:!1,enable:[],enableSeconds:!1,enableTime:!1,errorHandler:function(e){return"undefined"!=typeof console&&console.warn(e)},getWeek:function(e){var t=new Date(e.getTime());t.setHours(0,0,0,0),t.setDate(t.getDate()+3-(t.getDay()+6)%7);var n=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-n.getTime())/864e5-3+(n.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewB
5ox='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};function h(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function v(e,t,n){var a=window.document.createElement(e);return t=t||"",n=n||"",a.className=t,void 0!==n&&(a.textContent=n),a}function D(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function w(e,t){var n=v("div","numInputWrapper"),a=v("input","numInput "+e),i=v("span","arrowUp"),o=v("span","arrowDown");if(a.type="text",a.pattern="\\d*",void 0!==t)for(var r in t)a.setAttribute(r,t[r]);return n.appendChild(a),n.appendChild(i),n.appendChild(o),n}if("function"!=typeof Object.assign&&(Object.assign=function(e){if(!e)throw TypeError("Cannot convert undefined or null to object");for(var t=arguments.length,n=new Array(t>1?t-1:0),a=1;a<t;a++)n[a-1]=arguments[a];for(var i=function(){var t=n[o];t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},o=0;o<n.length;o++)i();return e}),"function"!=typeof window.requestAnimationFrame){for(var b=["ms","moz","webkit","o"],M=0,y=b.length;M<y&&!window.requestAnimationFrame;++M)window.requestAnimationFrame=window[b[M]+"RequestAnimationFrame"];"function"!=typeof window.requestAnimationFrame&&(window.requestAnimationFrame=function(e){return setTimeout(e,16)})}var C=300;function x(i,r){var l={config:Object.assign({},T.defaultConfig),l10n:d};function p(e){return e.bind(l)}function b(){var e=l.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(l.calendarContainer.style.visibility="hidden",l.calendarContainer.style.display="block",void 0!==l.daysContainer){var t=(l.days.offsetWidth+1)*e.showMonths;l.daysContainer.style.width=t+"px",l.calendarContainer.style.width=t+(void 0!==l.weekWrapper?l.weekWrapper.offsetWidth:0)+"px",l.calendarContainer.style.removeProperty("visibility"),l.calendarContainer.style.removeProperty("display")}})}function M(n){0!==l.selectedDates.length&&(!function(n){n.preventDefault();var a="keydown"===n.type,i=n.target;void 0!==l.amPM&&n.target===l.amPM&&(l.amPM.textContent=l.l10n.amPM[t(l.amPM.textContent===l.l10n.amPM[0])]);var o=parseFloat(i.getAttribute("data-min")),r=parseFloat(i.getAttribute("data-max")),c=parseFloat(i.getAttribute("data-step")),d=parseInt(i.value,10),s=n.delta||(a?38===n.which?1:-1:0),u=d+c*s;if(void 0!==i.value&&2===i.value.length){var f=i===l.hourElement,m=i===l.minuteElement;u<o?(u=r+u+t(!f)+(t(f)&&t(!l.amPM)),m&&_(void 0,-1,l.hourElement)):u>r&&(u=i===l.hourElement?u-r-t(!l.amPM):o,m&&_(void 0,1,l.hourElement)),l.amPM&&f&&(1===c?u+d===23:Math.abs(u-d)>c)&&(l.amPM.textContent=l.l10n.amPM[t(l.amPM.textContent===l.l10n.amPM[0])]),i.value=e(u)}}(n),"input"!==n.type?(y(),fe()):setTimeout(function(){y(),fe()},C))}function y(){if(void 0!==l.hourElement&&void 0!==l.minuteElement){var e,n,a=(parseInt(l.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(l.minuteElement.value,10)||0)%60,o=void 0!==l.secondElement?(parseInt(l.secondElement.value,10)||0)%60:0;void 0!==l.amPM&&(e=a,n=l.amPM.textContent,a=e%12+12*t(n===l.l10n.amPM[1]));var r=void 0!==l.config.minTime||l.config.minDate&&l.minDateHasTime&&l.latestSelectedDateObj&&0===f(l.latestSelectedDateObj,l.config.minDate,!0);if(void 0!==l.config.maxTime||l.config.maxDate&&l.maxDateHasTime&&l.latestSelectedDateObj&&0===f(l.latestSelectedDateObj,l.config.maxDate,!0)){var c=void 0!==l.config.maxTime?l.config.maxTime:l.config.maxDate;(a=Math.min(a,c.getHours()))===c.getHours()&&(i=Math.min(i,c.getMinutes())),i===c.getMinutes()&&(o=Math.min(o,c.getSeconds()))}if(r){var d=void 0!==l.config.minTime?l.config.minTime:l.config.minDate;(a=Math.max(a,d.getHours()))===d.getHours()&&(i=Math.max(i,d.getMinutes())),i===d.getMinutes()&&(o=Math.max(o,d.getSeconds()))}E(a,i,o)}}function x(e){var t=e||l.latestSelectedDateObj;t&&E(t.getHours(),t.getMinutes(),t.getSeconds())}function E(n,a,i){void 0!==l.latestSelectedDateObj&&l.latestSelectedDateObj.setHours(n%24,a,i||0,0),l.hourElement&&l.minuteElement&&!l.isMobile&&(l.hourElement.value=e(l.config.time_24hr?n:(12+n)%12+12*t(n%12==0)),l.minuteElement.value=e(a),void 0!==l.amPM&&(l.amPM.textContent=l.l10n.amPM[t(n>=12)]),void 0!==l.secondElement&&(l.secondElement.value=e(i)))}function k(e){var t=parseInt(e.target.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&z(t)}function I(e,t,n,a){return t instanceof Array?t.forEach(function(t){return I(e,t,n,a)}):e instanceof Array?e.forEach(function(e){return I(e,t,n,a)}):(e.addEventListener(t,n,a),void l._handlers.push({element:e,event:t,handler:n,options:a}))}function O(e){return function(t){1===t.which&&e(t)}}function S(){le("onChange")}function F(e){var t=void 0!==e?l.parseDate(e):l.latestSelectedDateObj||(l.config.minDate&&l.config.minDate>l.now?l.config.minDate:l.config.maxDate&&l.config.maxDate<l.now?l.config.maxDate:l.now);try{void 0!==t&&(l.currentYear=t.getFullYear(),l.currentMonth=t.getMonth())}catch(e){e.message="Invalid date supplied: "+t,l.config.errorHandler(e)}l.redraw()}function A(e){~e.target.className.indexOf("arrow")&&_(e,e.target.classList.contains("arrowUp")?1:-1)}function _(e,t,n){var a=e&&e.target,i=n||a&&a.parentNode&&a.parentNode.firstChild,o=de("increment");o.delta=t,i&&i.dispatchEvent(o)}function P(e,t,n,a){var i,o=$(t,!0),r=v("span","flatpickr-day "+e,t.getDate().toString());return r.dateObj=t,r.$i=a,r.setAttribute("aria-label",l.formatDate(t,l.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===f(t,l.now)&&(l.todayDateElem=r,r.classList.add("today"),r.setAttribute("aria-current","date")),o?(r.tabIndex=-1,se(t)&&(r.classList.add("selected"),l.selectedDateElem=r,"range"===l.config.mode&&(h(r,"startRange",l.selectedDates[0]&&0===f(t,l.selectedDates[0],!0)),h(r,"endRange",l.selectedDates[1]&&0===f(t,l.selectedDates[1],!0)),"nextMonthDay"===e&&r.classList.add("inRange")))):r.classList.add("disabled"),"range"===l.config.mode&&(i=t,!("range"!==l.config.mode||l.selectedDates.length<2)&&f(i,l.selectedDates[0])>=0&&f(i,l.selectedDates[1])<=0&&!se(t)&&r.classList.add("inRange")),l.weekNumbers&&1===l.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&l.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+l.config.getWeek(t)+"</span>"),le("onDayCreate",r),r}function N(e){e.focus(),"range"===l.config.mode&&Z(e)}function Y(e){for(var t=e>0?0:l.config.showMonths-1,n=e>0?l.config.showMonths:-1,a=t;a!=n;a+=e)for(var i=l.daysContainer.children[a],o=e>
vendor: 3,118 bytes, line 5
50?0:i.children.length-1,r=e>0?i.children.length:-1,c=o;c!=r;c+=e){var d=i.children[c];if(-1===d.className.indexOf("hidden")&&$(d.dateObj))return d}}function j(e,t){var n=G(document.activeElement),a=void 0!==e?e:n?document.activeElement:void 0!==l.selectedDateElem&&G(l.selectedDateElem)?l.selectedDateElem:void 0!==l.todayDateElem&&G(l.todayDateElem)?l.todayDateElem:Y(t>0?1:-1);return void 0===a?l._input.focus():n?void function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():l.currentMonth,a=t>0?l.config.showMonths:-1,i=t>0?1:-1,o=n-l.currentMonth;o!=a;o+=i)for(var r=l.daysContainer.children[o],c=n-l.currentMonth===o?e.$i+t:t<0?r.children.length-1:0,d=r.children.length,s=c;s>=0&&s<d&&s!=(t>0?d:-1);s+=i){var u=r.children[s];if(-1===u.className.indexOf("hidden")&&$(u.dateObj)&&Math.abs(e.$i-s)>=Math.abs(t))return N(u)}l.changeMonth(i),j(Y(i),0)}(a,t):N(a)}function H(e,t){for(var n=(new Date(e,t,1).getDay()-l.l10n.firstDayOfWeek+7)%7,a=l.utils.getDaysInMonth((t-1+12)%12),i=l.utils.getDaysInMonth(t),o=window.document.createDocumentFragment(),r=l.config.showMonths>1,c=r?"prevMonthDay hidden":"prevMonthDay",d=r?"nextMonthDay hidden":"nextMonthDay",s=a+1-n,u=0;s<=a;s++,u++)o.appendChild(P(c,new Date(e,t-1,s),s,u));for(s=1;s<=i;s++,u++)o.appendChild(P("",new Date(e,t,s),s,u));for(var f=i+1;f<=42-n&&(1===l.config.showMonths||u%7!=0);f++,u++)o.appendChild(P(d,new Date(e,t+1,f%i),f,u));var m=v("div","dayContainer");return m.appendChild(o),m}function L(){if(void 0!==l.daysContainer){D(l.daysContainer),l.weekNumbers&&D(l.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<l.config.showMonths;t++){var n=new Date(l.currentYear,l.currentMonth,1);n.setMonth(l.currentMonth+t),e.appendChild(H(n.getFullYear(),n.getMonth()))}l.daysContainer.appendChild(e),l.days=l.daysContainer.firstChild}}function W(){var e=v("div","flatpickr-month"),t=window.document.createDocumentFragment(),n=v("span","cur-month");n.title=l.l10n.scrollTitle;var a=w("cur-year",{tabindex:"-1"}),i=a.childNodes[0];i.title=l.l10n.scrollTitle,i.setAttribute("aria-label",l.l10n.yearAriaLabel),l.config.minDate&&i.setAttribute("data-min",l.config.minDate.getFullYear().toString()),l.config.maxDate&&(i.setAttribute("data-max",l.config.maxDate.getFullYear().toString()),i.disabled=!!l.config.minDate&&l.config.minDate.getFullYear()===l.config.maxDate.getFullYear());var o=v("div","flatpickr-current-month");return o.appendChild(n),o.appendChild(a),t.appendChild(o),e.appendChild(t),{container:e,yearElement:i,monthElement:n}}function R(){D(l.monthNav),l.monthNav.appendChild(l.prevMonthNav);for(var e=l.config.showMonths;e--;){var t=W();l.yearElements.push(t.yearElement),l.monthElements.push(t.monthElement),l.monthNav.appendChild(t.container)}l.monthNav.appendChild(l.nextMonthNav)}function q(){l.weekdayContainer?D(l.weekdayContainer):l.weekdayContainer=v("div","flatpickr-weekdays");for(var e=l.config.showMonths;e--;){var t=v("div","flatpickr-weekdaycontainer");l.weekdayContainer.appendChild(t)}return J(),l.weekdayContainer}function J(){var e=l.l10n.firstDayOfWeek,t=l.l10n.weekdays.shorthand.concat();e>
vendor: 7,413 bytes, line 5
50&&e<t.length&&(t=t.splice(e,t.length).concat(t.splice(0,e)));for(var n=l.config.showMonths;n--;)l.weekdayContainer.children[n].innerHTML="\n <span class=flatpickr-weekday>\n "+t.join("</span><span class=flatpickr-weekday>")+"\n </span>\n "}function K(e,t){void 0===t&&(t=!0);var n=t?e:e-l.currentMonth;n<0&&!0===l._hidePrevMonthArrow||n>0&&!0===l._hideNextMonthArrow||(l.currentMonth+=n,(l.currentMonth<0||l.currentMonth>11)&&(l.currentYear+=l.currentMonth>11?1:-1,l.currentMonth=(l.currentMonth+12)%12,le("onYearChange")),L(),le("onMonthChange"),ue())}function B(e){return!(!l.config.appendTo||!l.config.appendTo.contains(e))||l.calendarContainer.contains(e)}function U(e){if(l.isOpen&&!l.config.inline){var t=B(e.target),n=e.target===l.input||e.target===l.altInput||l.element.contains(e.target)||e.path&&e.path.indexOf&&(~e.path.indexOf(l.input)||~e.path.indexOf(l.altInput)),a="blur"===e.type?n&&e.relatedTarget&&!B(e.relatedTarget):!n&&!t,i=!l.config.ignoredFocusElements.some(function(t){return t.contains(e.target)});a&&i&&(l.close(),"range"===l.config.mode&&1===l.selectedDates.length&&(l.clear(!1),l.redraw()))}}function z(e){if(!(!e||l.config.minDate&&e<l.config.minDate.getFullYear()||l.config.maxDate&&e>l.config.maxDate.getFullYear())){var t=e,n=l.currentYear!==t;l.currentYear=t||l.currentYear,l.config.maxDate&&l.currentYear===l.config.maxDate.getFullYear()?l.currentMonth=Math.min(l.config.maxDate.getMonth(),l.currentMonth):l.config.minDate&&l.currentYear===l.config.minDate.getFullYear()&&(l.currentMonth=Math.max(l.config.minDate.getMonth(),l.currentMonth)),n&&(l.redraw(),le("onYearChange"))}}function $(e,t){void 0===t&&(t=!0);var n=l.parseDate(e,void 0,t);if(l.config.minDate&&n&&f(n,l.config.minDate,void 0!==t?t:!l.minDateHasTime)<0||l.config.maxDate&&n&&f(n,l.config.maxDate,void 0!==t?t:!l.maxDateHasTime)>0)return!1;if(0===l.config.enable.length&&0===l.config.disable.length)return!0;if(void 0===n)return!1;for(var a,i=l.config.enable.length>0,o=i?l.config.enable:l.config.disable,r=0;r<o.length;r++){if("function"==typeof(a=o[r])&&a(n))return i;if(a instanceof Date&&void 0!==n&&a.getTime()===n.getTime())return i;if("string"==typeof a&&void 0!==n){var c=l.parseDate(a,void 0,!0);return c&&c.getTime()===n.getTime()?i:!i}if("object"==typeof a&&void 0!==n&&a.from&&a.to&&n.getTime()>=a.from.getTime()&&n.getTime()<=a.to.getTime())return i}return!i}function G(e){return void 0!==l.daysContainer&&(-1===e.className.indexOf("hidden")&&l.daysContainer.contains(e))}function V(e){var t=e.target===l._input,n=B(e.target),a=l.config.allowInput,i=l.isOpen&&(!a||!t),o=l.config.inline&&t&&!a;if(13===e.keyCode&&t){if(a)return l.setDate(l._input.value,!0,e.target===l.altInput?l.config.altFormat:l.config.dateFormat),e.target.blur();l.open()}else if(n||i||o){var r=!!l.timeContainer&&l.timeContainer.contains(e.target);switch(e.keyCode){case 13:r?fe():ie(e);break;case 27:e.preventDefault(),ae();break;case 8:case 46:t&&!l.config.allowInput&&(e.preventDefault(),l.clear());break;case 37:case 39:if(r)l.hourElement&&l.hourElement.focus();else if(e.preventDefault(),void 0!==l.daysContainer&&(!1===a||G(document.activeElement))){var c=39===e.keyCode?1:-1;e.ctrlKey?(K(c),j(Y(1),0)):j(void 0,c)}break;case 38:case 40:e.preventDefault();var d=40===e.keyCode?1:-1;l.daysContainer?e.ctrlKey?(z(l.currentYear-d),j(Y(1),0)):r||j(void 0,7*d):l.config.enableTime&&(!r&&l.hourElement&&l.hourElement.focus(),M(e),l._debouncedChange());break;case 9:if(!r)break;e.target===l.hourElement?(e.preventDefault(),l.minuteElement.select()):e.target===l.minuteElement&&(l.secondElement||l.amPM)?(e.preventDefault(),void 0!==l.secondElement?l.secondElement.focus():void 0!==l.amPM&&(e.preventDefault(),l.amPM.focus())):e.target===l.secondElement&&l.amPM&&(e.preventDefault(),l.amPM.focus())}}if(void 0!==l.amPM&&e.target===l.amPM)switch(e.key){case l.l10n.amPM[0].charAt(0):case l.l10n.amPM[0].charAt(0).toLowerCase():l.amPM.textContent=l.l10n.amPM[0],y(),fe();break;case l.l10n.amPM[1].charAt(0):case l.l10n.amPM[1].charAt(0).toLowerCase():l.amPM.textContent=l.l10n.amPM[1],y(),fe()}le("onKeyDown",e)}function Z(e){if(1===l.selectedDates.length&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")){for(var t=e.dateObj.getTime(),n=l.parseDate(l.selectedDates[0],void 0,!0).getTime(),a=Math.min(t,l.selectedDates[0].getTime()),i=Math.max(t,l.selectedDates[0].getTime()),o=!1,r=0,c=0,d=a;d<i;d+=g.DAY)$(new Date(d),!0)||(o=o||d>a&&d<i,d<n&&(!r||d>r)?r=d:d>n&&(!c||d<c)&&(c=d));for(var s=0;s<l.config.showMonths;s++)for(var u=l.daysContainer.children[s],f=l.daysContainer.children[s-1],p=function(a,i){var d=u.children[a],g=d.dateObj.getTime(),p=r>0&&g<r||c>0&&g>c;return p?(d.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){d.classList.remove(e)}),"continue"):o&&!p?"continue":(["startRange","inRange","endRange","notAllowed"].forEach(function(e){d.classList.remove(e)}),e.classList.add(t<l.selectedDates[0].getTime()?"startRange":"endRange"),void(!u.contains(e)&&s>0&&f&&f.lastChild.dateObj.getTime()>=g||(n<t&&g===n?d.classList.add("startRange"):n>t&&g===n&&d.classList.add("endRange"),g>=r&&(0===c||g<=c)&&m(g,n,t)&&d.classList.add("inRange"))))},h=0,v=u.children.length;h<v;h++)p(h)}}function Q(){!l.isOpen||l.config.static||l.config.inline||te()}function X(e){return function(t){var n=l.config["_"+e+"Date"]=l.parseDate(t,l.config.dateFormat),a=l.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(l["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),l.selectedDates&&(l.selectedDates=l.selectedDates.filter(function(e){return $(e)}),l.selectedDates.length||"min"!==e||x(n),fe()),l.daysContainer&&(ne(),void 0!==n?l.currentYearElement[e]=n.getFullYear().toString():l.currentYearElement.removeAttribute(e),l.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function ee(){"object"!=typeof l.config.locale&&void 0===T.l10ns[l.config.locale]&&l.config.errorHandler(new Error("flatpickr: invalid locale "+l.config.locale)),l.l10n=Object.assign({},T.l10ns.default,"object"==typeof l.config.locale?l.config.locale:"default"!==l.config.locale?T.l10ns[l.config.locale]:void 0),c.K="("+l.l10n.amPM[0]+"|"+l.l10n.amPM[1]+"|"+l.l10n.amPM[0].toLowerCase()+"|"+l.l10n.amPM[1].toLowerCase()+")",l.formatDate=s(l)}function te(e){if(void 0!==l.calendarContainer){le("onPreCalendarPosition");var t=e||l._positionElement,n=Array.prototype.reduce.call(l.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),a=l.calendarContainer.offsetWidth,i=l.config.position.split(" "),o=i[0],r=i.length>1?i[1]:null,c=t.getBoundingClientRect(),d=window.innerHeight-c.bottom,s="above"===o||"below"!==o&&d<n&&c.top>n,u=window.pageYOffset+c.top+(s?-n-2+tr:t.offsetHeight+8);if(h(l.calendarContainer,"arrowTop",!s),h(l.calendarContainer,"arrowBottom",s),!l.config.inline){if(window.matchMedia("(max-width: 719px)").matches)var f=(document.body.clientWidth-a)/2;else f=window.pageXOffset+c.left-(null!=r&&"center"===r?(a-c.width)/2:0);var m=window.document.body.offsetWidth-c.right,g=f+a>window.document.body.offsetWidth;h(l.calendarContainer,"rightMost",g),l.config.static||(l.calendarContainer.style.top=u+"px",g?(l.calendarContainer.style.left="auto",l.calendarContainer.style.right=m+"px"):(l.calendarContainer.style.left=f+"px",l.calendarContainer.style.right="auto"))}}}
5function ne(){l.config.noCalendar||l.isMobile||(ue(),L())}function ae(){l._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(l.close,0):l.close()}function ie(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(e.target,function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var n=t,a=l.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<l.currentMonth||a.getMonth()>l.currentMonth+l.config.showMonths-1)&&"range"!==l.config.mode;if(l.selectedDateElem=n,"single"===l.config.mode)l.selectedDates=[a];else if("multiple"===l.config.mode){var o=se(a);o?l.selectedDates.splice(parseInt(o),1):l.selectedDates.push(a)}else"range"===l.config.mode&&(2===l.selectedDates.length&&l.clear(!1),l.selectedDates.push(a),0!==f(a,l.selectedDates[0],!0)&&l.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(y(),i){var r=l.currentYear!==a.getFullYear();l.currentYear=a.getFullYear(),l.currentMonth=a.getMonth(),r&&le("onYearChange"),le("onMonthChange")}if(ue(),L(),l.config.minDate&&l.minDateHasTime&&l.config.enableTime&&0===f(a,l.config.minDate)&&x(l.config.minDate),fe(),l.config.enableTime&&setTimeout(function(){return l.showTimeInput=!0},50),"range"===l.config.mode&&(1===l.selectedDates.length?Z(n):ue()),i||"range"===l.config.mode||1!==l.config.showMonths?l.selectedDateElem&&l.selectedDateElem.focus():N(n),void 0!==l.hourElement&&setTimeout(function(){return void 0!==l.hourElement&&l.hourElement.select()},451),l.config.closeOnSelect){var c="single"===l.config.mode&&!l.config.enableTime,d="range"===l.config.mode&&2===l.selectedDates.length&&!l.config.enableTime;(c||d)&&ae()}S()}}l.parseDate=u({config:l.config,l10n:l.l10n}),l._handlers=[],l._bind=I,l._setHoursFromDate=x,l.changeMonth=K,l.changeYear=z,l.clear=function(e){void 0===e&&(e=!0);l.input.value="",void 0!==l.altInput&&(l.altInput.value="");void 0!==l.mobileInput&&(l.mobileInput.value="");l.selectedDates=[],l.latestSelectedDateObj=void 0,l.showTimeInput=!1,!0===l.config.enableTime&&(void 0!==l.config.minDate?x(l.config.minDate):E(l.config.defaultHour,l.config.defaultMinute,l.config.defaultSeconds));l.redraw(),e&&le("onChange")},l.close=function(){l.isOpen=!1,l.isMobile||(l.calendarContainer.classList.remove("open"),l._input.classList.remove("active"));le("onClose")},l._createElement=v,l.destroy=function(){void 0!==l.config&&le("onDestroy");for(var e=l._handlers.length;e--;){var t=l._handlers[e];t.element.removeEventListener(t.event,t.handler,t.options)}l._handlers=[],l.mobileInput?(l.mobileInput.parentNode&&l.mobileInput.parentNode.removeChild(l.mobileInput),l.mobileInput=void 0):l.calendarContainer&&l.calendarContainer.parentNode&&l.calendarContainer.parentNode.removeChild(l.calendarContainer);l.altInput&&(l.input.type="text",l.altInput.parentNode&&l.altInput.parentNode.removeChild(l.altInput),delete l.altInput);l.input&&(l.input.type=l.input._type,l.input.classList.remove("flatpickr-input"),l.input.removeAttribute("readonly"),l.input.value="");["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","selectedDateElem","minDateHasTime","maxDateHasTime","days","daysContainer","_input","_positionElement","innerContainer","rContainer","monthNav","todayDateElem","calendarContainer","weekdayContainer","prevMonthNav","nextMonthNav","currentMonthElement","currentYearElement","navigationCurrentMonth","selectedDateElem","config"].forEach(function(e){try{delete l[e]}catch(e){}})},l.isEnabled=$,l.jumpToDate=F,l.open=function(e,t){void 0===t&&(t=l._input);if(!0===l.isMobile)return e&&(e.preventDefault(),e.target&&e.target.blur()),setTimeout(function(){void 0!==l.mobileInput&&l.mobileInput.focus()},0),void le("onOpen");if(l._input.disabled||l.config.inline)return;var n=l.isOpen;l.isOpen=!0,n||(l.calendarContainer.classList.add("open"),l._input.classList.add("active"),le("onOpen"),te(t));!0===l.config.enableTime&&!0===l.config.noCalendar&&(0===l.selectedDates.length&&(l.setDate(void 0!==l.config.minDate?new Date(l.config.minDate.getTime()):(new Date).setHours(l.config.defaultHour,l.config.defaultMinute,l.config.defaultSeconds,0),!1),y(),fe()),!1!==l.config.allowInput||void 0!==e&&l.t
5imeContainer.contains(e.relatedTarget)||setTimeout(function(){return l.hourElement.select()},50))},l.redraw=ne,l.set=function(e,t){null!==e&&"object"==typeof e?Object.assign(l.config,e):(l.config[e]=t,void 0!==oe[e]&&oe[e].forEach(function(e){return e()}));l.redraw(),F()},l.setDate=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=l.config.dateFormat);if(0!==e&&!e)return l.clear(t);re(e,n),l.showTimeInput=l.selectedDates.length>0,l.latestSelectedDateObj=l.selectedDates[0],l.redraw(),F(),x(),fe(t),t&&le("onChange")},l.toggle=function(e){if(!0===l.isOpen)return l.close();l.open(e)};var oe={locale:[ee,J],showMonths:[R,b,q]};function re(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return l.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[l.parseDate(e,t)];else if("string"==typeof e)switch(l.config.mode){case"single":case"time":n=[l.parseDate(e,t)];break;case"multiple":n=e.split(l.config.conjunction).map(function(e){return l.parseDate(e,t)});break;case"range":n=e.split(l.l10n.rangeSeparator).map(function(e){return l.parseDate(e,t)})}else l.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));l.selectedDates=n.filter(function(e){return e instanceof Date&&$(e,!1)}),"range"===l.config.mode&&l.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function ce(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?l.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:l.parseDate(e.from,void 0),to:l.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function le(e,t){var n=l.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](l.selectedDates,l.input.value,l,t);"onChange"===e&&(l.input.dispatchEvent(de("change")),l.input.dispatchEvent(de("input")))}function de(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function se(e){for(var t=0;t<l.selectedDates.length;t++)if(0===f(l.selectedDates[t],e))return""+t;return!1}function ue(){l.config.noCalendar||l.isMobile||!l.monthNav||(l.yearElements.forEach(function(e,t){var n=new Date(l.currentYear,l.currentMonth,1);n.setMonth(l.currentMonth+t),l.monthElements[t].textContent=o(n.getMonth(),l.config.shorthandCurrentMonth,l.l10n)+" ",e.value=n.getFullYear().toString()}),l._hidePrevMonthArrow=void 0!==l.config.minDate&&(l.currentYear===l.config.minDate.getFullYear()?l.currentMonth<=l.config.minDate.getMonth():l.currentYear<l.config.minDate.getFullYear()),l._hideNextMonthArrow=void 0!==l.config.maxDate&&(l.currentYear===l.config.maxDate.getFullYear()?l.currentMonth+1>l.config.maxDate.getMonth():l.currentYear>l.config.maxDate.getFullYear()))}function fe(e){if(void 0===e&&(e=!0),0===l.selectedDates.length)return l.clear(e);void 0!==l.mobileInput&&l.mobileFormatStr&&(l.mobileInput.value=void 0!==l.latestSelectedDateObj?l.formatDate(l.latestSelectedDateObj,l.mobileFormatStr):"");var t="range"!==l.config.mode?l.config.conjunction:l.l10n.rangeSeparator;l.input.value=l.selectedDates.map(function(e){return l.formatDate(e,l.config.dateFormat)}).join(t),void 0!==l.altInput&&(l.altInput.value=l.selectedDates.map(function(e){return l.formatDate(e,l.config.altFormat)}).join(t)),!1!==e&&le("onValueUpdate")}function me(e){e.preventDefault();var t=l.prevMonthNav.contains(e.target),n=l.nextMonthNav.contains(e.target);t||n?K(t?-1:1):l.yearElements.indexOf(e.target)>=0?e.target.select():e.target.classList.contains("arrowUp")?l.changeYear(l.currentYear+1):e.target.classList.contains("arrowDown")&&l.changeYear(l.currentYear-1)}return function(){l.element=l.input=i,l.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],n=Object.assign({},r,JSON.parse(JSON.stringify(i.dataset||{}))),o={};l.config.parseDate=n.parseDate,l.config.formatDate=n.formatDate,Object.defineProperty(l.config,"enable",{get:function(){return l.config._enable},set:function(e){l.config._enable=ce(e)}}),Object.defineProperty(l.config,"disable",{get:function(){return l.config._disable},set:function(e){l.config._disable=ce(e)}});var c="time"===n.mode;n.dateFormat||!n.enableTime&&!c||(o.dateFormat=n.noCalendar||c?"H:i"+(n.enableSeconds?":S":""):T.defaultConfig.dateFormat+" H:i"+(n.enableSeconds?":S":"")),n.altInput&&(n.enableTime||c)&&!n.altFormat&&(o.altFormat=n.noCalendar||c?"h:i"+(n.enableSeconds?":S K":" K"):T.defaultConfig.altFormat+" h:i"+(n.enableSeconds?":S":"")+" K"),Object.defineProperty(l.config,"minDate",{get:function(){return l.config._minDate},set:X("min")}),Object.defineProperty(l.config,"maxDate",{get:function(){return l.config._maxDate},set:X("max")});var d=function(e){return function(t){l.config["min"===e?"_minTime":"_maxTime"]=l.parseDate(t,"H:i")}};Object.defineProperty(l.config,"minTime",{get:function(){return l.config._minTime},set:d("min")}),Object.defineProperty(l.config,"maxTime",{get:function(){return l.config._maxTime},set:d("max")}),"time"===n.mode&&(l.config.noCalendar=!0,l.config.enableTime=!0),Object.assign(l.config,o,n);for(var s=0;s<e.length;s++)l.config[e[s]]=!0===l.config[e[s]]||"true"===l.config[e[s]];for(var u=t.length;u--;)void 0!==l.config[t[u]]&&(l.config[t[u]]=a(l.config[t[u]]||[]).map(p));l.isMobile=!l.config.disableMobile&&!l.config.inline&&"single"===l.config.mode&&!l.config.disable.length&&!l.config.enable.length&&!l.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var f=0;f<l.config.plugins.length;f++){var m=l.config.plugins[f](l)||{};for(var g in m)~t.indexOf(g)?l.config[g]=a(m[g]).map(p).concat(l.config[g]):void 0===n[g]&&(l.config[g]=m[g])}le("onParseConfig")}
vendor: 10,727 bytes, line 5
5(),ee(),l.input=l.config.wrap?i.querySelector("[data-input]"):i,l.input?(l.input._type=l.input.type,l.input.type="text",l.input.classList.add("flatpickr-input"),l._input=l.input,l.config.altInput&&(l.altInput=v(l.input.nodeName,l.input.className+" "+l.config.altInputClass),l._input=l.altInput,l.altInput.placeholder=l.input.placeholder,l.altInput.disabled=l.input.disabled,l.altInput.required=l.input.required,l.altInput.tabIndex=l.input.tabIndex,l.altInput.type="text",l.input.type="hidden",!l.config.static&&l.input.parentNode&&l.input.parentNode.insertBefore(l.altInput,l.input.nextSibling)),l.config.allowInput||l._input.setAttribute("readonly","readonly"),l._positionElement=l.config.positionElement||l._input):l.config.errorHandler(new Error("Invalid input element specified")),function(){l.selectedDates=[],l.now=l.parseDate(l.config.now)||new Date;var e=l.config.defaultDate||l.input.value;e&&re(e,l.config.dateFormat);var t=l.selectedDates.length>0?l.selectedDates[0]:l.config.minDate&&l.config.minDate.getTime()>l.now.getTime()?l.config.minDate:l.config.maxDate&&l.config.maxDate.getTime()<l.now.getTime()?l.config.maxDate:l.now;l.currentYear=t.getFullYear(),l.currentMonth=t.getMonth(),l.selectedDates.length>0&&(l.latestSelectedDateObj=l.selectedDates[0]),void 0!==l.config.minTime&&(l.config.minTime=l.parseDate(l.config.minTime,"H:i")),void 0!==l.config.maxTime&&(l.config.maxTime=l.parseDate(l.config.maxTime,"H:i")),l.minDateHasTime=!!l.config.minDate&&(l.config.minDate.getHours()>0||l.config.minDate.getMinutes()>0||l.config.minDate.getSeconds()>0),l.maxDateHasTime=!!l.config.maxDate&&(l.config.maxDate.getHours()>0||l.config.maxDate.getMinutes()>0||l.config.maxDate.getSeconds()>0),Object.defineProperty(l,"showTimeInput",{get:function(){return l._showTimeInput},set:function(e){l._showTimeInput=e,l.calendarContainer&&h(l.calendarContainer,"showTimeInput",e),l.isOpen&&te()}})}(),l.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=l.currentMonth),void 0===t&&(t=l.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:l.l10n.daysInMonth[e]}},l.isMobile||function(){var n=window.document.createDocumentFragment();if(l.calendarContainer=v("div","flatpickr-calendar"),l.calendarContainer.tabIndex=-1,!l.config.noCalendar){if(n.appendChild((l.monthNav=v("div","flatpickr-months"),l.yearElements=[],l.monthElements=[],l.prevMonthNav=v("span","flatpickr-prev-month"),l.prevMonthNav.innerHTML=l.config.prevArrow,l.nextMonthNav=v("span","flatpickr-next-month"),l.nextMonthNav.innerHTML=l.config.nextArrow,R(),Object.defineProperty(l,"_hidePrevMonthArrow",{get:function(){return l.__hidePrevMonthArrow},set:function(e){l.__hidePrevMonthArrow!==e&&(h(l.prevMonthNav,"disabled",e),l.__hidePrevMonthArrow=e)}}),Object.defineProperty(l,"_hideNextMonthArrow",{get:function(){return l.__hideNextMonthArrow},set:function(e){l.__hideNextMonthArrow!==e&&(h(l.nextMonthNav,"disabled",e),l.__hideNextMonthArrow=e)}}),l.currentYearElement=l.yearElements[0],ue(),l.monthNav)),l.innerContainer=v("div","flatpickr-innerContainer"),l.config.weekNumbers){var a=function(){l.calendarContainer.classList.add("hasWeeks");var e=v("div","flatpickr-weekwrapper");e.appendChild(v("span","flatpickr-weekday",l.l10n.weekAbbreviation));var t=v("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),i=a.weekWrapper,o=a.weekNumbers;l.innerContainer.appendChild(i),l.weekNumbers=o,l.weekWrapper=i}l.rContainer=v("div","flatpickr-rContainer"),l.rContainer.appendChild(q()),l.daysContainer||(l.daysContainer=v("div","flatpickr-days"),l.daysContainer.tabIndex=-1),L(),l.rContainer.appendChild(l.daysContainer),l.innerContainer.appendChild(l.rContainer),n.appendChild(l.innerContainer)}l.config.enableTime&&n.appendChild(function(){l.calendarContainer.classList.add("hasTime"),l.config.noCalendar&&l.calendarContainer.classList.add("noCalendar"),l.timeContainer=v("div","flatpickr-time"),l.timeContainer.tabIndex=-1;var n=v("span","flatpickr-time-separator",":"),a=w("flatpickr-hour");l.hourElement=a.childNodes[0];var i=w("flatpickr-minute");if(l.minuteElement=i.childNodes[0],l.hourElement.tabIndex=l.minuteElement.tabIndex=-1,l.hourElement.value=e(l.latestSelectedDateObj?l.latestSelectedDateObj.getHours():l.config.time_24hr?l.config.defaultHour:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(l.config.defaultHour)),l.minuteElement.value=e(l.latestSelectedDateObj?l.latestSelectedDateObj.getMinutes():l.config.defaultMinute),l.hourElement.setAttribute("data-step",l.config.hourIncrement.toString()),l.minuteElement.setAttribute("data-step",l.config.minuteIncrement.toString()),l.hourElement.setAttribute("data-min",l.config.time_24hr?"0":"1"),l.hourElement.setAttribute("data-max",l.config.time_24hr?"23":"12"),l.minuteElement.setAttribute("data-min","0"),l.minuteElement.setAttribute("data-max","59"),l.timeContainer.appendChild(a),l.timeContainer.appendChild(n),l.timeContainer.appendChild(i),l.config.time_24hr&&l.timeContainer.classList.add("time24hr"),l.config.enableSeconds){l.timeContainer.classList.add("hasSeconds");var o=w("flatpickr-second");l.secondElement=o.childNodes[0],l.secondElement.value=e(l.latestSelectedDateObj?l.latestSelectedDateObj.getSeconds():l.config.defaultSeconds),l.secondElement.setAttribute("data-step",l.minuteElement.getAttribute("data-step")),l.secondElement.setAttribute("data-min",l.minuteElement.getAttribute("data-min")),l.secondElement.setAttribute("data-max",l.minuteElement.getAttribute("data-max")),l.timeContainer.appendChild(v("span","flatpickr-time-separator",":")),l.timeContainer.appendChild(o)}return l.config.time_24hr||(l.amPM=v("span","flatpickr-am-pm",l.l10n.amPM[t((l.latestSelectedDateObj?l.hourElement.value:l.config.defaultHour)>11)]),l.amPM.title=l.l10n.toggleTitle,l.amPM.tabIndex=-1,l.timeContainer.appendChild(l.amPM)),l.timeContainer}()),h(l.calendarContainer,"rangeMode","range"===l.config.mode),h(l.calendarContainer,"animate",!0===l.config.animate),h(l.calendarContainer,"multiMonth",l.config.showMonths>1),l.calendarContainer.appendChild(n);var r=void 0!==l.config.appendTo&&void 0!==l.config.appendTo.nodeType;if((l.config.inline||l.config.static)&&(l.calendarContainer.classList.add(l.config.inline?"inline":"static"),l.config.inline&&(!r&&l.element.parentNode?l.element.parentNode.insertBefore(l.calendarContainer,l._input.nextSibling):void 0!==l.config.appendTo&&l.config.appendTo.appendChild(l.calendarContainer)),l.config.static)){var c=v("div","flatpickr-wrapper");l.element.parentNode&&l.element.parentNode.insertBefore(c,l.element),c.appendChild(l.element),l.altInput&&c.appendChild(l.altInput),c.appendChild(l.calendarContainer)}l.config.static||l.config.inline||(void 0!==l.config.appendTo?l.config.appendTo:window.document.body).appendChild(l.calendarContainer)}(),function(){if(l.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(l.element.querySelectorAll("[data-"+e+"]"),function(t){return I(t,"click",l[e])})}),l.isMobile)!function(){var e=l.config.enableTime?l.config.noCalendar?"time":"datetime-local":"date";l.mobileInput=v("input",l.input.className+" flatpickr-mobile"),l.mobileInput.step=l.input.getAttribute("step")||"any",l.mobileInput.tabIndex=1,l.mobileInput.type=e,l.mobileInput.disabled=l.input.disabled,l.mobileInput.required=l.input.required,l.mobileInput.placeholder=l.input.placeholder,l.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",l.selectedDates.length>0&&(l.mobileInput.defaultValue=l.mobileInput.value=l.formatDate(l.selectedDates[0],l.mobileFormatStr)),l.config.minDate&&(l.mobileInput.min=l.formatDate(l.config.minDate,"Y-m-d")),l.config.maxDate&&(l.mobileInput.max=l.formatDate(l.config.maxDate,"Y-m-d")),l.input.type="hidden",void 0!==l.altInput&&(l.altInput.type="hidden");try{l.input.parentNode&&l.input.parentNode.insertBefore(l.mobileInput,l.input.nextSibling)}catch(e){}I(l.mobileInput,"change",function(e){l.setDate(e.target.value,!1,l.mobileFormatStr),le("onChange"),le("onClose")})}();else{var e=n(Q,50);l._debouncedChange=n(S,C),l.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&I(l.daysContainer,"mouseover",function(e){"range"===l.config.mode&&Z(e.target)}),I(window.document.body,"keydown",V),l.config.static||I(l._input,"keydown",V),l.config.inline||l.config.static||I(window,"resize",e),void 0!==window.ontouchstart?I(window.document,"click",U):I(window.document,"mousedown",O(U)),I(window.document,"focus",U,{capture:!0}),!0===l.config.clickOpens&&(I(l._input,"focus",l.open),I(l._input,"mousedown",O(l.open))),void 0!==l.daysContainer&&(I(l.monthNav,"mousedown",O(me)),I(l.monthNav,["keyup","increment"],k),I(l.daysContainer,"mousedown",O(ie))),void 0!==l.timeContainer&&void 0!==l.minuteElement&&void 0!==l.hourElement&&(I(l.timeContainer,["input","increment"],M),I(l.timeContainer,"mousedown",O(A)),I(l.timeContainer,["input","increment"],l._debouncedChange,{passive:!0}),I([l.hourElement,l.minuteElement],["focus","click"],function(e){return e.target.select()}),void 0!==l.secondElement&&I(l.secondElement,"focus",function(){return l.secondElement&&l.secondElement.select()}),void 0!==l.amPM&&I(l.amPM,"mousedown",O(function(e){M(e),S()})))}}(),(l.selectedDates.length||l.config.noCalendar)&&(l.config.enableTime&&x(l.config.noCalendar?l.latestSelectedDateObj||l.config.minDate:void 0),fe(!1)),b(),l.showTimeInput=l.selectedDates.length>0||l.config.noCalendar;var o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!l.isMobile&&o&&te(),le("onReady")}(),l}function E(e,t){for(var n=Array.prototype.slice.call(e),a=[],i=0;i<n.length;i++){var o=n[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,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return E(this,e)},HTMLElement.prototype.flatpickr=function(e){return E([this],e)});var T=function(e,t){return e instanceof NodeList?E(e,t):E("string"==typeof e?window.document.querySelectorAll(e):[e],t)};return T.defaultConfig=p,T.l10ns={en:Object.assign({},d),default:Object.assign({},d)},T.localize=function(e){T.l10ns.default=Object.assign({},T.l10ns.default,e)},T.setDefaults=function(e){T.defaultConfig=Object.assign({},T.defaultConfig,e)},T.parseDate=u({}),T.formatDate=s({}),T.compareDates=f,"undefined"!=typeof jQuery&&(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=T),T});
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.