diff --git a/asset-manifest.json b/asset-manifest.json index 9a21d41..5e38c63 100644 --- a/asset-manifest.json +++ b/asset-manifest.json @@ -1,7 +1,7 @@ { "files": { "main.css": "/trip-app/static/css/main.cb9261bd.css", - "main.js": "/trip-app/static/js/main.3fccf443.js", + "main.js": "/trip-app/static/js/main.23b809c2.js", "static/js/557.1d8630ee.chunk.js": "/trip-app/static/js/557.1d8630ee.chunk.js", "static/js/942.680b5715.chunk.js": "/trip-app/static/js/942.680b5715.chunk.js", "static/js/924.401052f6.chunk.js": "/trip-app/static/js/924.401052f6.chunk.js", @@ -79,10 +79,10 @@ "static/media/clear-day.svg": "/trip-app/static/media/clear-day.f1148f358aa1e13bee23.svg", "static/media/cloudy.svg": "/trip-app/static/media/cloudy.8a5788db9979257e9e7f.svg", "main.cb9261bd.css.map": "/trip-app/static/css/main.cb9261bd.css.map", - "main.3fccf443.js.map": "/trip-app/static/js/main.3fccf443.js.map" + "main.23b809c2.js.map": "/trip-app/static/js/main.23b809c2.js.map" }, "entrypoints": [ "static/css/main.cb9261bd.css", - "static/js/main.3fccf443.js" + "static/js/main.23b809c2.js" ] } \ No newline at end of file diff --git a/index.html b/index.html index d1df7a7..f9c26cb 100644 --- a/index.html +++ b/index.html @@ -1 +1 @@ -Trip App
\ No newline at end of file +Trip App
\ No newline at end of file diff --git a/static/js/main.3fccf443.js b/static/js/main.23b809c2.js similarity index 67% rename from static/js/main.3fccf443.js rename to static/js/main.23b809c2.js index f24cd64..44d6dc6 100644 --- a/static/js/main.3fccf443.js +++ b/static/js/main.23b809c2.js @@ -1,3 +1,3 @@ -/*! For license information please see main.3fccf443.js.LICENSE.txt */ -!function(){var e={3543:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return R}});var r=["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 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",monthSelectorType:"dropdown",nextArrow:"",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},o={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",monthAriaLabel:"Month",hourAriaLabel:"Hour",minuteAriaLabel:"Minute",time_24hr:!1},i=o,u=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},l=function(e){return!0===e?1:0};function s(e,t){var n;return function(){var r=this,a=arguments;clearTimeout(n),n=setTimeout((function(){return e.apply(r,a)}),t)}}var c=function(e){return e instanceof Array?e:[e]};function f(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function d(e,t,n){var r=window.document.createElement(e);return t=t||"",n=n||"",r.className=t,void 0!==n&&(r.textContent=n),r}function p(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function h(e,t){return t(e)?e:e.parentNode?h(e.parentNode,t):void 0}function v(e,t){var n=d("div","numInputWrapper"),r=d("input","numInput "+e),a=d("span","arrowUp"),o=d("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?r.type="number":(r.type="text",r.pattern="\\d*"),void 0!==t)for(var i in t)r.setAttribute(i,t[i]);return n.appendChild(r),n.appendChild(a),n.appendChild(o),n}function m(e){try{return"function"===typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var y=function(){},g=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},b={D:y,F:function(e,t,n){e.setMonth(n.months.longhand.indexOf(t))},G:function(e,t){e.setHours((e.getHours()>=12?12:0)+parseFloat(t))},H:function(e,t){e.setHours(parseFloat(t))},J:function(e,t){e.setDate(parseFloat(t))},K:function(e,t,n){e.setHours(e.getHours()%12+12*l(new RegExp(n.amPM[1],"i").test(t)))},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,n){var r=parseInt(t),a=new Date(e.getFullYear(),0,2+7*(r-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+n.firstDayOfWeek),a},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((e.getHours()>=12?12:0)+parseFloat(t))},i:function(e,t){e.setMinutes(parseFloat(t))},j:function(e,t){e.setDate(parseFloat(t))},l:y,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))},u:function(e,t){return new Date(parseFloat(t))},w:y,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},w={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",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:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},S={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[S.w(e,t,n)]},F:function(e,t,n){return g(S.n(e,t,n)-1,!1,t)},G:function(e,t,n){return u(S.h(e,t,n))},H:function(e){return u(e.getHours())},J:function(e,t){return void 0!==t.ordinal?e.getDate()+t.ordinal(e.getDate()):e.getDate()},K:function(e,t){return t.amPM[l(e.getHours()>11)]},M:function(e,t){return g(e.getMonth(),!0,t)},S:function(e){return u(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return u(e.getFullYear(),4)},d:function(e){return u(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return u(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return u(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)}},k=function(e){var t=e.config,n=void 0===t?a:t,r=e.l10n,i=void 0===r?o:r,u=e.isMobile,l=void 0!==u&&u;return function(e,t,r){var a=r||i;return void 0===n.formatDate||l?t.split("").map((function(t,r,o){return S[t]&&"\\"!==o[r-1]?S[t](e,a,n):"\\"!==t?t:""})).join(""):n.formatDate(e,t,a)}},x=function(e){var t=e.config,n=void 0===t?a:t,r=e.l10n,i=void 0===r?o:r;return function(e,t,r,o){if(0===e||e){var u,l=o||i,s=e;if(e instanceof Date)u=new Date(e.getTime());else if("string"!==typeof e&&void 0!==e.toFixed)u=new Date(e);else if("string"===typeof e){var c=t||(n||a).dateFormat,f=String(e).trim();if("today"===f)u=new Date,r=!0;else if(n&&n.parseDate)u=n.parseDate(e,c);else if(/Z$/.test(f)||/GMT$/.test(f))u=new Date(e);else{for(var d=void 0,p=[],h=0,v=0,m="";hMath.min(t,n)&&e=0?new Date:new Date(n.config.minDate.getTime()),r=T(n.config);t.setHours(r.hours,r.minutes,r.seconds,t.getMilliseconds()),n.selectedDates=[t],n.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,r=m(e),a=r;void 0!==n.amPM&&r===n.amPM&&(n.amPM.textContent=n.l10n.amPM[l(n.amPM.textContent===n.l10n.amPM[0])]);var o=parseFloat(a.getAttribute("min")),i=parseFloat(a.getAttribute("max")),s=parseFloat(a.getAttribute("step")),c=parseInt(a.value,10),f=e.delta||(t?38===e.which?1:-1:0),d=c+s*f;if("undefined"!==typeof a.value&&2===a.value.length){var p=a===n.hourElement,h=a===n.minuteElement;di&&(d=a===n.hourElement?d-i-l(!n.amPM):o,h&&W(void 0,1,n.hourElement)),n.amPM&&p&&(1===s?d+c===23:Math.abs(d-c)>s)&&(n.amPM.textContent=n.l10n.amPM[l(n.amPM.textContent===n.l10n.amPM[0])]),a.value=u(d)}}(e);var a=n._input.value;N(),Ce(),n._input.value!==a&&n._debouncedChange()}function N(){if(void 0!==n.hourElement&&void 0!==n.minuteElement){var e,t,r=(parseInt(n.hourElement.value.slice(-2),10)||0)%24,a=(parseInt(n.minuteElement.value,10)||0)%60,o=void 0!==n.secondElement?(parseInt(n.secondElement.value,10)||0)%60:0;void 0!==n.amPM&&(e=r,t=n.amPM.textContent,r=e%12+12*l(t===n.l10n.amPM[1]));var i=void 0!==n.config.minTime||n.config.minDate&&n.minDateHasTime&&n.latestSelectedDateObj&&0===E(n.latestSelectedDateObj,n.config.minDate,!0),u=void 0!==n.config.maxTime||n.config.maxDate&&n.maxDateHasTime&&n.latestSelectedDateObj&&0===E(n.latestSelectedDateObj,n.config.maxDate,!0);if(void 0!==n.config.maxTime&&void 0!==n.config.minTime&&n.config.minTime>n.config.maxTime){var s=C(n.config.minTime.getHours(),n.config.minTime.getMinutes(),n.config.minTime.getSeconds()),c=C(n.config.maxTime.getHours(),n.config.maxTime.getMinutes(),n.config.maxTime.getSeconds()),f=C(r,a,o);if(f>c&&f=12)]),void 0!==n.secondElement&&(n.secondElement.value=u(r)))}function I(e){var t=m(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&re(n)}function L(e,t,r,a){return t instanceof Array?t.forEach((function(t){return L(e,t,r,a)})):e instanceof Array?e.forEach((function(e){return L(e,t,r,a)})):(e.addEventListener(t,r,a),void n._handlers.push({remove:function(){return e.removeEventListener(t,r,a)}}))}function z(){Se("onChange")}function U(e,t){var r=void 0!==e?n.parseDate(e):n.latestSelectedDateObj||(n.config.minDate&&n.config.minDate>n.now?n.config.minDate:n.config.maxDate&&n.config.maxDate=0&&E(e,n.selectedDates[1])<=0)}(t)&&!xe(t)&&i.classList.add("inRange"),n.weekNumbers&&1===n.config.showMonths&&"prevMonthDay"!==e&&a%7===6&&n.weekNumbers.insertAdjacentHTML("beforeend",""+n.config.getWeek(t)+""),Se("onDayCreate",i),i}function H(e){e.focus(),"range"===n.config.mode&&le(e)}function V(e){for(var t=e>0?0:n.config.showMonths-1,r=e>0?n.config.showMonths:-1,a=t;a!=r;a+=e)for(var o=n.daysContainer.children[a],i=e>0?0:o.children.length-1,u=e>0?o.children.length:-1,l=i;l!=u;l+=e){var s=o.children[l];if(-1===s.className.indexOf("hidden")&&ae(s.dateObj))return s}}function Y(e,t){var r=o(),a=oe(r||document.body),i=void 0!==e?e:a?r:void 0!==n.selectedDateElem&&oe(n.selectedDateElem)?n.selectedDateElem:void 0!==n.todayDateElem&&oe(n.todayDateElem)?n.todayDateElem:V(t>0?1:-1);void 0===i?n._input.focus():a?function(e,t){for(var r=-1===e.className.indexOf("Month")?e.dateObj.getMonth():n.currentMonth,a=t>0?n.config.showMonths:-1,o=t>0?1:-1,i=r-n.currentMonth;i!=a;i+=o)for(var u=n.daysContainer.children[i],l=r-n.currentMonth===i?e.$i+t:t<0?u.children.length-1:0,s=u.children.length,c=l;c>=0&&c0?s:-1);c+=o){var f=u.children[c];if(-1===f.className.indexOf("hidden")&&ae(f.dateObj)&&Math.abs(e.$i-c)>=Math.abs(t))return H(f)}n.changeMonth(o),Y(V(o),0)}(i,t):H(i)}function q(e,t){for(var r=(new Date(e,t,1).getDay()-n.l10n.firstDayOfWeek+7)%7,a=n.utils.getDaysInMonth((t-1+12)%12,e),o=n.utils.getDaysInMonth(t,e),i=window.document.createDocumentFragment(),u=n.config.showMonths>1,l=u?"prevMonthDay hidden":"prevMonthDay",s=u?"nextMonthDay hidden":"nextMonthDay",c=a+1-r,f=0;c<=a;c++,f++)i.appendChild($("flatpickr-day "+l,new Date(e,t-1,c),0,f));for(c=1;c<=o;c++,f++)i.appendChild($("flatpickr-day",new Date(e,t,c),0,f));for(var p=o+1;p<=42-r&&(1===n.config.showMonths||f%7!==0);p++,f++)i.appendChild($("flatpickr-day "+s,new Date(e,t+1,p%o),0,f));var h=d("div","dayContainer");return h.appendChild(i),h}function K(){if(void 0!==n.daysContainer){p(n.daysContainer),n.weekNumbers&&p(n.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t1||"dropdown"!==n.config.monthSelectorType)){var e=function(e){return!(void 0!==n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&en.config.maxDate.getMonth())};n.monthsDropdownContainer.tabIndex=-1,n.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var r=d("option","flatpickr-monthDropdown-month");r.value=new Date(n.currentYear,t).getMonth().toString(),r.textContent=g(t,n.config.shorthandCurrentMonth,n.l10n),r.tabIndex=-1,n.currentMonth===t&&(r.selected=!0),n.monthsDropdownContainer.appendChild(r)}}}function Q(){var e,t=d("div","flatpickr-month"),r=window.document.createDocumentFragment();n.config.showMonths>1||"static"===n.config.monthSelectorType?e=d("span","cur-month"):(n.monthsDropdownContainer=d("select","flatpickr-monthDropdown-months"),n.monthsDropdownContainer.setAttribute("aria-label",n.l10n.monthAriaLabel),L(n.monthsDropdownContainer,"change",(function(e){var t=m(e),r=parseInt(t.value,10);n.changeMonth(r-n.currentMonth),Se("onMonthChange")})),G(),e=n.monthsDropdownContainer);var a=v("cur-year",{tabindex:"-1"}),o=a.getElementsByTagName("input")[0];o.setAttribute("aria-label",n.l10n.yearAriaLabel),n.config.minDate&&o.setAttribute("min",n.config.minDate.getFullYear().toString()),n.config.maxDate&&(o.setAttribute("max",n.config.maxDate.getFullYear().toString()),o.disabled=!!n.config.minDate&&n.config.minDate.getFullYear()===n.config.maxDate.getFullYear());var i=d("div","flatpickr-current-month");return i.appendChild(e),i.appendChild(a),r.appendChild(i),t.appendChild(r),{container:t,yearElement:o,monthElement:e}}function J(){p(n.monthNav),n.monthNav.appendChild(n.prevMonthNav),n.config.showMonths&&(n.yearElements=[],n.monthElements=[]);for(var e=n.config.showMonths;e--;){var t=Q();n.yearElements.push(t.yearElement),n.monthElements.push(t.monthElement),n.monthNav.appendChild(t.container)}n.monthNav.appendChild(n.nextMonthNav)}function X(){n.weekdayContainer?p(n.weekdayContainer):n.weekdayContainer=d("div","flatpickr-weekdays");for(var e=n.config.showMonths;e--;){var t=d("div","flatpickr-weekdaycontainer");n.weekdayContainer.appendChild(t)}return Z(),n.weekdayContainer}function Z(){if(n.weekdayContainer){var e=n.l10n.firstDayOfWeek,t=D(n.l10n.weekdays.shorthand);e>0&&e\n "+t.join("")+"\n \n "}}function ee(e,t){void 0===t&&(t=!0);var r=t?e:e-n.currentMonth;r<0&&!0===n._hidePrevMonthArrow||r>0&&!0===n._hideNextMonthArrow||(n.currentMonth+=r,(n.currentMonth<0||n.currentMonth>11)&&(n.currentYear+=n.currentMonth>11?1:-1,n.currentMonth=(n.currentMonth+12)%12,Se("onYearChange"),G()),K(),Se("onMonthChange"),Ee())}function te(e){return n.calendarContainer.contains(e)}function ne(e){if(n.isOpen&&!n.config.inline){var t=m(e),r=te(t),a=!(t===n.input||t===n.altInput||n.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(n.input)||~e.path.indexOf(n.altInput)))&&!r&&!te(e.relatedTarget),o=!n.config.ignoredFocusElements.some((function(e){return e.contains(t)}));a&&o&&(n.config.allowInput&&n.setDate(n._input.value,!1,n.config.altInput?n.config.altFormat:n.config.dateFormat),void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement&&""!==n.input.value&&void 0!==n.input.value&&S(),n.close(),n.config&&"range"===n.config.mode&&1===n.selectedDates.length&&n.clear(!1))}}function re(e){if(!(!e||n.config.minDate&&en.config.maxDate.getFullYear())){var t=e,r=n.currentYear!==t;n.currentYear=t||n.currentYear,n.config.maxDate&&n.currentYear===n.config.maxDate.getFullYear()?n.currentMonth=Math.min(n.config.maxDate.getMonth(),n.currentMonth):n.config.minDate&&n.currentYear===n.config.minDate.getFullYear()&&(n.currentMonth=Math.max(n.config.minDate.getMonth(),n.currentMonth)),r&&(n.redraw(),Se("onYearChange"),G())}}function ae(e,t){var r;void 0===t&&(t=!0);var a=n.parseDate(e,void 0,t);if(n.config.minDate&&a&&E(a,n.config.minDate,void 0!==t?t:!n.minDateHasTime)<0||n.config.maxDate&&a&&E(a,n.config.maxDate,void 0!==t?t:!n.maxDateHasTime)>0)return!1;if(!n.config.enable&&0===n.config.disable.length)return!0;if(void 0===a)return!1;for(var o=!!n.config.enable,i=null!==(r=n.config.enable)&&void 0!==r?r:n.config.disable,u=0,l=void 0;u=l.from.getTime()&&a.getTime()<=l.to.getTime())return o}return!o}function oe(e){return void 0!==n.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&n.daysContainer.contains(e))}function ie(e){var t=e.target===n._input,r=n._input.value.trimEnd()!==_e();!t||!r||e.relatedTarget&&te(e.relatedTarget)||n.setDate(n._input.value,!0,e.target===n.altInput?n.config.altFormat:n.config.dateFormat)}function ue(t){var r=m(t),a=n.config.wrap?e.contains(r):r===n._input,i=n.config.allowInput,u=n.isOpen&&(!i||!a),l=n.config.inline&&a&&!i;if(13===t.keyCode&&a){if(i)return n.setDate(n._input.value,!0,r===n.altInput?n.config.altFormat:n.config.dateFormat),n.close(),r.blur();n.open()}else if(te(r)||u||l){var s=!!n.timeContainer&&n.timeContainer.contains(r);switch(t.keyCode){case 13:s?(t.preventDefault(),S(),ve()):me(t);break;case 27:t.preventDefault(),ve();break;case 8:case 46:a&&!n.config.allowInput&&(t.preventDefault(),n.clear());break;case 37:case 39:if(s||a)n.hourElement&&n.hourElement.focus();else{t.preventDefault();var c=o();if(void 0!==n.daysContainer&&(!1===i||c&&oe(c))){var f=39===t.keyCode?1:-1;t.ctrlKey?(t.stopPropagation(),ee(f),Y(V(1),0)):Y(void 0,f)}}break;case 38:case 40:t.preventDefault();var d=40===t.keyCode?1:-1;n.daysContainer&&void 0!==r.$i||r===n.input||r===n.altInput?t.ctrlKey?(t.stopPropagation(),re(n.currentYear-d),Y(V(1),0)):s||Y(void 0,7*d):r===n.currentYearElement?re(n.currentYear-d):n.config.enableTime&&(!s&&n.hourElement&&n.hourElement.focus(),S(t),n._debouncedChange());break;case 9:if(s){var p=[n.hourElement,n.minuteElement,n.secondElement,n.amPM].concat(n.pluginElements).filter((function(e){return e})),h=p.indexOf(r);if(-1!==h){var v=p[h+(t.shiftKey?-1:1)];t.preventDefault(),(v||n._input).focus()}}else!n.config.noCalendar&&n.daysContainer&&n.daysContainer.contains(r)&&t.shiftKey&&(t.preventDefault(),n._input.focus())}}if(void 0!==n.amPM&&r===n.amPM)switch(t.key){case n.l10n.amPM[0].charAt(0):case n.l10n.amPM[0].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[0],N(),Ce();break;case n.l10n.amPM[1].charAt(0):case n.l10n.amPM[1].charAt(0).toLowerCase():n.amPM.textContent=n.l10n.amPM[1],N(),Ce()}(a||te(r))&&Se("onKeyDown",t)}function le(e,t){if(void 0===t&&(t="flatpickr-day"),1===n.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var r=e?e.dateObj.getTime():n.days.firstElementChild.dateObj.getTime(),a=n.parseDate(n.selectedDates[0],void 0,!0).getTime(),o=Math.min(r,n.selectedDates[0].getTime()),i=Math.max(r,n.selectedDates[0].getTime()),u=!1,l=0,s=0,c=o;co&&cl)?l=c:c>a&&(!s||c ."+t)).forEach((function(t){var o=t.dateObj.getTime(),i=l>0&&o0&&o>s;if(i)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){t.classList.remove(e)}));u&&!i||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){t.classList.remove(e)})),void 0!==e&&(e.classList.add(r<=n.selectedDates[0].getTime()?"startRange":"endRange"),ar&&o===a&&t.classList.add("endRange"),o>=l&&(0===s||o<=s)&&_(o,a,r)&&t.classList.add("inRange")))}))}}function se(){!n.isOpen||n.config.static||n.config.inline||pe()}function ce(e){return function(t){var r=n.config["_"+e+"Date"]=n.parseDate(t,n.config.dateFormat),a=n.config["_"+("min"===e?"max":"min")+"Date"];void 0!==r&&(n["min"===e?"minDateHasTime":"maxDateHasTime"]=r.getHours()>0||r.getMinutes()>0||r.getSeconds()>0),n.selectedDates&&(n.selectedDates=n.selectedDates.filter((function(e){return ae(e)})),n.selectedDates.length||"min"!==e||M(r),Ce()),n.daysContainer&&(he(),void 0!==r?n.currentYearElement[e]=r.getFullYear().toString():n.currentYearElement.removeAttribute(e),n.currentYearElement.disabled=!!a&&void 0!==r&&a.getFullYear()===r.getFullYear())}}function fe(){return n.config.wrap?e.querySelector("[data-input]"):e}function de(){"object"!==typeof n.config.locale&&"undefined"===typeof F.l10ns[n.config.locale]&&n.config.errorHandler(new Error("flatpickr: invalid locale "+n.config.locale)),n.l10n=P(P({},F.l10ns.default),"object"===typeof n.config.locale?n.config.locale:"default"!==n.config.locale?F.l10ns[n.config.locale]:void 0),w.D="("+n.l10n.weekdays.shorthand.join("|")+")",w.l="("+n.l10n.weekdays.longhand.join("|")+")",w.M="("+n.l10n.months.shorthand.join("|")+")",w.F="("+n.l10n.months.longhand.join("|")+")",w.K="("+n.l10n.amPM[0]+"|"+n.l10n.amPM[1]+"|"+n.l10n.amPM[0].toLowerCase()+"|"+n.l10n.amPM[1].toLowerCase()+")",void 0===P(P({},t),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===F.defaultConfig.time_24hr&&(n.config.time_24hr=n.l10n.time_24hr),n.formatDate=k(n),n.parseDate=x({config:n.config,l10n:n.l10n})}function pe(e){if("function"!==typeof n.config.position){if(void 0!==n.calendarContainer){Se("onPreCalendarPosition");var t=e||n._positionElement,r=Array.prototype.reduce.call(n.calendarContainer.children,(function(e,t){return e+t.offsetHeight}),0),a=n.calendarContainer.offsetWidth,o=n.config.position.split(" "),i=o[0],u=o.length>1?o[1]:null,l=t.getBoundingClientRect(),s=window.innerHeight-l.bottom,c="above"===i||"below"!==i&&sr,d=window.pageYOffset+l.top+(c?-r-2:t.offsetHeight+2);if(f(n.calendarContainer,"arrowTop",!c),f(n.calendarContainer,"arrowBottom",c),!n.config.inline){var p=window.pageXOffset+l.left,h=!1,v=!1;"center"===u?(p-=(a-l.width)/2,h=!0):"right"===u&&(p-=a-l.width,v=!0),f(n.calendarContainer,"arrowLeft",!h&&!v),f(n.calendarContainer,"arrowCenter",h),f(n.calendarContainer,"arrowRight",v);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right),y=p+a>window.document.body.offsetWidth,g=m+a>window.document.body.offsetWidth;if(f(n.calendarContainer,"rightMost",y),!n.config.static)if(n.calendarContainer.style.top=d+"px",y)if(g){var b=function(){for(var e=null,t=0;tn.currentMonth+n.config.showMonths-1)&&"range"!==n.config.mode;if(n.selectedDateElem=r,"single"===n.config.mode)n.selectedDates=[a];else if("multiple"===n.config.mode){var i=xe(a);i?n.selectedDates.splice(parseInt(i),1):n.selectedDates.push(a)}else"range"===n.config.mode&&(2===n.selectedDates.length&&n.clear(!1,!1),n.latestSelectedDateObj=a,n.selectedDates.push(a),0!==E(a,n.selectedDates[0],!0)&&n.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()})));if(N(),o){var u=n.currentYear!==a.getFullYear();n.currentYear=a.getFullYear(),n.currentMonth=a.getMonth(),u&&(Se("onYearChange"),G()),Se("onMonthChange")}if(Ee(),K(),Ce(),o||"range"===n.config.mode||1!==n.config.showMonths?void 0!==n.selectedDateElem&&void 0===n.hourElement&&n.selectedDateElem&&n.selectedDateElem.focus():H(r),void 0!==n.hourElement&&void 0!==n.hourElement&&n.hourElement.focus(),n.config.closeOnSelect){var l="single"===n.config.mode&&!n.config.enableTime,s="range"===n.config.mode&&2===n.selectedDates.length&&!n.config.enableTime;(l||s)&&ve()}z()}}n.parseDate=x({config:n.config,l10n:n.l10n}),n._handlers=[],n.pluginElements=[],n.loadedPlugins=[],n._bind=L,n._setHoursFromDate=M,n._positionCalendar=pe,n.changeMonth=ee,n.changeYear=re,n.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);n.input.value="",void 0!==n.altInput&&(n.altInput.value="");void 0!==n.mobileInput&&(n.mobileInput.value="");n.selectedDates=[],n.latestSelectedDateObj=void 0,!0===t&&(n.currentYear=n._initialDate.getFullYear(),n.currentMonth=n._initialDate.getMonth());if(!0===n.config.enableTime){var r=T(n.config);R(r.hours,r.minutes,r.seconds)}n.redraw(),e&&Se("onChange")},n.close=function(){n.isOpen=!1,n.isMobile||(void 0!==n.calendarContainer&&n.calendarContainer.classList.remove("open"),void 0!==n._input&&n._input.classList.remove("active"));Se("onClose")},n.onMouseOver=le,n._createElement=d,n.createDay=$,n.destroy=function(){void 0!==n.config&&Se("onDestroy");for(var e=n._handlers.length;e--;)n._handlers[e].remove();if(n._handlers=[],n.mobileInput)n.mobileInput.parentNode&&n.mobileInput.parentNode.removeChild(n.mobileInput),n.mobileInput=void 0;else if(n.calendarContainer&&n.calendarContainer.parentNode)if(n.config.static&&n.calendarContainer.parentNode){var t=n.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 n.calendarContainer.parentNode.removeChild(n.calendarContainer);n.altInput&&(n.input.type="text",n.altInput.parentNode&&n.altInput.parentNode.removeChild(n.altInput),delete n.altInput);n.input&&(n.input.type=n.input._type,n.input.classList.remove("flatpickr-input"),n.input.removeAttribute("readonly"));["_showTimeInput","latestSelectedDateObj","_hideNextMonthArrow","_hidePrevMonthArrow","__hideNextMonthArrow","__hidePrevMonthArrow","isMobile","isOpen","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 n[e]}catch(t){}}))},n.isEnabled=ae,n.jumpToDate=U,n.updateValue=Ce,n.open=function(e,t){void 0===t&&(t=n._positionElement);if(!0===n.isMobile){if(e){e.preventDefault();var r=m(e);r&&r.blur()}return void 0!==n.mobileInput&&(n.mobileInput.focus(),n.mobileInput.click()),void Se("onOpen")}if(n._input.disabled||n.config.inline)return;var a=n.isOpen;n.isOpen=!0,a||(n.calendarContainer.classList.add("open"),n._input.classList.add("active"),Se("onOpen"),pe(t));!0===n.config.enableTime&&!0===n.config.noCalendar&&(!1!==n.config.allowInput||void 0!==e&&n.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return n.hourElement.select()}),50))},n.redraw=he,n.set=function(e,t){if(null!==e&&"object"===typeof e)for(var a in Object.assign(n.config,e),e)void 0!==ye[a]&&ye[a].forEach((function(e){return e()}));else n.config[e]=t,void 0!==ye[e]?ye[e].forEach((function(e){return e()})):r.indexOf(e)>-1&&(n.config[e]=c(t));n.redraw(),Ce(!0)},n.setDate=function(e,t,r){void 0===t&&(t=!1);void 0===r&&(r=n.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return n.clear(t);ge(e,r),n.latestSelectedDateObj=n.selectedDates[n.selectedDates.length-1],n.redraw(),U(void 0,t),M(),0===n.selectedDates.length&&n.clear(!1);Ce(t),t&&Se("onChange")},n.toggle=function(e){if(!0===n.isOpen)return n.close();n.open(e)};var ye={locale:[de,Z],showMonths:[J,b,X],minDate:[U],maxDate:[U],positionElement:[we],clickOpens:[function(){!0===n.config.clickOpens?(L(n._input,"focus",n.open),L(n._input,"click",n.open)):(n._input.removeEventListener("focus",n.open),n._input.removeEventListener("click",n.open))}]};function ge(e,t){var r=[];if(e instanceof Array)r=e.map((function(e){return n.parseDate(e,t)}));else if(e instanceof Date||"number"===typeof e)r=[n.parseDate(e,t)];else if("string"===typeof e)switch(n.config.mode){case"single":case"time":r=[n.parseDate(e,t)];break;case"multiple":r=e.split(n.config.conjunction).map((function(e){return n.parseDate(e,t)}));break;case"range":r=e.split(n.l10n.rangeSeparator).map((function(e){return n.parseDate(e,t)}))}else n.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));n.selectedDates=n.config.allowInvalidPreload?r:r.filter((function(e){return e instanceof Date&&ae(e,!1)})),"range"===n.config.mode&&n.selectedDates.sort((function(e,t){return e.getTime()-t.getTime()}))}function be(e){return e.slice().map((function(e){return"string"===typeof e||"number"===typeof e||e instanceof Date?n.parseDate(e,void 0,!0):e&&"object"===typeof e&&e.from&&e.to?{from:n.parseDate(e.from,void 0),to:n.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function we(){n._positionElement=n.config.positionElement||n._input}function Se(e,t){if(void 0!==n.config){var r=n.config[e];if(void 0!==r&&r.length>0)for(var a=0;r[a]&&a1||"static"===n.config.monthSelectorType?n.monthElements[t].textContent=g(r.getMonth(),n.config.shorthandCurrentMonth,n.l10n)+" ":n.monthsDropdownContainer.value=r.getMonth().toString(),e.value=r.getFullYear().toString()})),n._hidePrevMonthArrow=void 0!==n.config.minDate&&(n.currentYear===n.config.minDate.getFullYear()?n.currentMonth<=n.config.minDate.getMonth():n.currentYearn.config.maxDate.getMonth():n.currentYear>n.config.maxDate.getFullYear()))}function _e(e){var t=e||(n.config.altInput?n.config.altFormat:n.config.dateFormat);return n.selectedDates.map((function(e){return n.formatDate(e,t)})).filter((function(e,t,r){return"range"!==n.config.mode||n.config.enableTime||r.indexOf(e)===t})).join("range"!==n.config.mode?n.config.conjunction:n.l10n.rangeSeparator)}function Ce(e){void 0===e&&(e=!0),void 0!==n.mobileInput&&n.mobileFormatStr&&(n.mobileInput.value=void 0!==n.latestSelectedDateObj?n.formatDate(n.latestSelectedDateObj,n.mobileFormatStr):""),n.input.value=_e(n.config.dateFormat),void 0!==n.altInput&&(n.altInput.value=_e(n.config.altFormat)),!1!==e&&Se("onValueUpdate")}function Oe(e){var t=m(e),r=n.prevMonthNav.contains(t),a=n.nextMonthNav.contains(t);r||a?ee(r?-1:1):n.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?n.changeYear(n.currentYear+1):t.classList.contains("arrowDown")&&n.changeYear(n.currentYear-1)}return function(){n.element=n.input=e,n.isOpen=!1,function(){var o=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=P(P({},JSON.parse(JSON.stringify(e.dataset||{}))),t),u={};n.config.parseDate=i.parseDate,n.config.formatDate=i.formatDate,Object.defineProperty(n.config,"enable",{get:function(){return n.config._enable},set:function(e){n.config._enable=be(e)}}),Object.defineProperty(n.config,"disable",{get:function(){return n.config._disable},set:function(e){n.config._disable=be(e)}});var l="time"===i.mode;if(!i.dateFormat&&(i.enableTime||l)){var s=F.defaultConfig.dateFormat||a.dateFormat;u.dateFormat=i.noCalendar||l?"H:i"+(i.enableSeconds?":S":""):s+" H:i"+(i.enableSeconds?":S":"")}if(i.altInput&&(i.enableTime||l)&&!i.altFormat){var f=F.defaultConfig.altFormat||a.altFormat;u.altFormat=i.noCalendar||l?"h:i"+(i.enableSeconds?":S K":" K"):f+" h:i"+(i.enableSeconds?":S":"")+" K"}Object.defineProperty(n.config,"minDate",{get:function(){return n.config._minDate},set:ce("min")}),Object.defineProperty(n.config,"maxDate",{get:function(){return n.config._maxDate},set:ce("max")});var d=function(e){return function(t){n.config["min"===e?"_minTime":"_maxTime"]=n.parseDate(t,"H:i:S")}};Object.defineProperty(n.config,"minTime",{get:function(){return n.config._minTime},set:d("min")}),Object.defineProperty(n.config,"maxTime",{get:function(){return n.config._maxTime},set:d("max")}),"time"===i.mode&&(n.config.noCalendar=!0,n.config.enableTime=!0);Object.assign(n.config,u,i);for(var p=0;p-1?n.config[v]=c(h[v]).map(y).concat(n.config[v]):"undefined"===typeof i[v]&&(n.config[v]=h[v])}i.altInputClass||(n.config.altInputClass=fe().className+" "+n.config.altInputClass);Se("onParseConfig")}(),de(),function(){if(n.input=fe(),!n.input)return void n.config.errorHandler(new Error("Invalid input element specified"));n.input._type=n.input.type,n.input.type="text",n.input.classList.add("flatpickr-input"),n._input=n.input,n.config.altInput&&(n.altInput=d(n.input.nodeName,n.config.altInputClass),n._input=n.altInput,n.altInput.placeholder=n.input.placeholder,n.altInput.disabled=n.input.disabled,n.altInput.required=n.input.required,n.altInput.tabIndex=n.input.tabIndex,n.altInput.type="text",n.input.setAttribute("type","hidden"),!n.config.static&&n.input.parentNode&&n.input.parentNode.insertBefore(n.altInput,n.input.nextSibling));n.config.allowInput||n._input.setAttribute("readonly","readonly");we()}(),function(){n.selectedDates=[],n.now=n.parseDate(n.config.now)||new Date;var e=n.config.defaultDate||("INPUT"!==n.input.nodeName&&"TEXTAREA"!==n.input.nodeName||!n.input.placeholder||n.input.value!==n.input.placeholder?n.input.value:null);e&&ge(e,n.config.dateFormat);n._initialDate=n.selectedDates.length>0?n.selectedDates[0]:n.config.minDate&&n.config.minDate.getTime()>n.now.getTime()?n.config.minDate:n.config.maxDate&&n.config.maxDate.getTime()0&&(n.latestSelectedDateObj=n.selectedDates[0]);void 0!==n.config.minTime&&(n.config.minTime=n.parseDate(n.config.minTime,"H:i"));void 0!==n.config.maxTime&&(n.config.maxTime=n.parseDate(n.config.maxTime,"H:i"));n.minDateHasTime=!!n.config.minDate&&(n.config.minDate.getHours()>0||n.config.minDate.getMinutes()>0||n.config.minDate.getSeconds()>0),n.maxDateHasTime=!!n.config.maxDate&&(n.config.maxDate.getHours()>0||n.config.maxDate.getMinutes()>0||n.config.maxDate.getSeconds()>0)}(),n.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=n.currentMonth),void 0===t&&(t=n.currentYear),1===e&&(t%4===0&&t%100!==0||t%400===0)?29:n.l10n.daysInMonth[e]}},n.isMobile||function(){var e=window.document.createDocumentFragment();if(n.calendarContainer=d("div","flatpickr-calendar"),n.calendarContainer.tabIndex=-1,!n.config.noCalendar){if(e.appendChild((n.monthNav=d("div","flatpickr-months"),n.yearElements=[],n.monthElements=[],n.prevMonthNav=d("span","flatpickr-prev-month"),n.prevMonthNav.innerHTML=n.config.prevArrow,n.nextMonthNav=d("span","flatpickr-next-month"),n.nextMonthNav.innerHTML=n.config.nextArrow,J(),Object.defineProperty(n,"_hidePrevMonthArrow",{get:function(){return n.__hidePrevMonthArrow},set:function(e){n.__hidePrevMonthArrow!==e&&(f(n.prevMonthNav,"flatpickr-disabled",e),n.__hidePrevMonthArrow=e)}}),Object.defineProperty(n,"_hideNextMonthArrow",{get:function(){return n.__hideNextMonthArrow},set:function(e){n.__hideNextMonthArrow!==e&&(f(n.nextMonthNav,"flatpickr-disabled",e),n.__hideNextMonthArrow=e)}}),n.currentYearElement=n.yearElements[0],Ee(),n.monthNav)),n.innerContainer=d("div","flatpickr-innerContainer"),n.config.weekNumbers){var t=function(){n.calendarContainer.classList.add("hasWeeks");var e=d("div","flatpickr-weekwrapper");e.appendChild(d("span","flatpickr-weekday",n.l10n.weekAbbreviation));var t=d("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),r=t.weekWrapper,a=t.weekNumbers;n.innerContainer.appendChild(r),n.weekNumbers=a,n.weekWrapper=r}n.rContainer=d("div","flatpickr-rContainer"),n.rContainer.appendChild(X()),n.daysContainer||(n.daysContainer=d("div","flatpickr-days"),n.daysContainer.tabIndex=-1),K(),n.rContainer.appendChild(n.daysContainer),n.innerContainer.appendChild(n.rContainer),e.appendChild(n.innerContainer)}n.config.enableTime&&e.appendChild(function(){n.calendarContainer.classList.add("hasTime"),n.config.noCalendar&&n.calendarContainer.classList.add("noCalendar");var e=T(n.config);n.timeContainer=d("div","flatpickr-time"),n.timeContainer.tabIndex=-1;var t=d("span","flatpickr-time-separator",":"),r=v("flatpickr-hour",{"aria-label":n.l10n.hourAriaLabel});n.hourElement=r.getElementsByTagName("input")[0];var a=v("flatpickr-minute",{"aria-label":n.l10n.minuteAriaLabel});n.minuteElement=a.getElementsByTagName("input")[0],n.hourElement.tabIndex=n.minuteElement.tabIndex=-1,n.hourElement.value=u(n.latestSelectedDateObj?n.latestSelectedDateObj.getHours():n.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),n.minuteElement.value=u(n.latestSelectedDateObj?n.latestSelectedDateObj.getMinutes():e.minutes),n.hourElement.setAttribute("step",n.config.hourIncrement.toString()),n.minuteElement.setAttribute("step",n.config.minuteIncrement.toString()),n.hourElement.setAttribute("min",n.config.time_24hr?"0":"1"),n.hourElement.setAttribute("max",n.config.time_24hr?"23":"12"),n.hourElement.setAttribute("maxlength","2"),n.minuteElement.setAttribute("min","0"),n.minuteElement.setAttribute("max","59"),n.minuteElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(r),n.timeContainer.appendChild(t),n.timeContainer.appendChild(a),n.config.time_24hr&&n.timeContainer.classList.add("time24hr");if(n.config.enableSeconds){n.timeContainer.classList.add("hasSeconds");var o=v("flatpickr-second");n.secondElement=o.getElementsByTagName("input")[0],n.secondElement.value=u(n.latestSelectedDateObj?n.latestSelectedDateObj.getSeconds():e.seconds),n.secondElement.setAttribute("step",n.minuteElement.getAttribute("step")),n.secondElement.setAttribute("min","0"),n.secondElement.setAttribute("max","59"),n.secondElement.setAttribute("maxlength","2"),n.timeContainer.appendChild(d("span","flatpickr-time-separator",":")),n.timeContainer.appendChild(o)}n.config.time_24hr||(n.amPM=d("span","flatpickr-am-pm",n.l10n.amPM[l((n.latestSelectedDateObj?n.hourElement.value:n.config.defaultHour)>11)]),n.amPM.title=n.l10n.toggleTitle,n.amPM.tabIndex=-1,n.timeContainer.appendChild(n.amPM));return n.timeContainer}());f(n.calendarContainer,"rangeMode","range"===n.config.mode),f(n.calendarContainer,"animate",!0===n.config.animate),f(n.calendarContainer,"multiMonth",n.config.showMonths>1),n.calendarContainer.appendChild(e);var o=void 0!==n.config.appendTo&&void 0!==n.config.appendTo.nodeType;if((n.config.inline||n.config.static)&&(n.calendarContainer.classList.add(n.config.inline?"inline":"static"),n.config.inline&&(!o&&n.element.parentNode?n.element.parentNode.insertBefore(n.calendarContainer,n._input.nextSibling):void 0!==n.config.appendTo&&n.config.appendTo.appendChild(n.calendarContainer)),n.config.static)){var i=d("div","flatpickr-wrapper");n.element.parentNode&&n.element.parentNode.insertBefore(i,n.element),i.appendChild(n.element),n.altInput&&i.appendChild(n.altInput),i.appendChild(n.calendarContainer)}n.config.static||n.config.inline||(void 0!==n.config.appendTo?n.config.appendTo:window.document.body).appendChild(n.calendarContainer)}(),function(){n.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(n.element.querySelectorAll("[data-"+e+"]"),(function(t){return L(t,"click",n[e])}))}));if(n.isMobile)return void function(){var e=n.config.enableTime?n.config.noCalendar?"time":"datetime-local":"date";n.mobileInput=d("input",n.input.className+" flatpickr-mobile"),n.mobileInput.tabIndex=1,n.mobileInput.type=e,n.mobileInput.disabled=n.input.disabled,n.mobileInput.required=n.input.required,n.mobileInput.placeholder=n.input.placeholder,n.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",n.selectedDates.length>0&&(n.mobileInput.defaultValue=n.mobileInput.value=n.formatDate(n.selectedDates[0],n.mobileFormatStr));n.config.minDate&&(n.mobileInput.min=n.formatDate(n.config.minDate,"Y-m-d"));n.config.maxDate&&(n.mobileInput.max=n.formatDate(n.config.maxDate,"Y-m-d"));n.input.getAttribute("step")&&(n.mobileInput.step=String(n.input.getAttribute("step")));n.input.type="hidden",void 0!==n.altInput&&(n.altInput.type="hidden");try{n.input.parentNode&&n.input.parentNode.insertBefore(n.mobileInput,n.input.nextSibling)}catch(t){}L(n.mobileInput,"change",(function(e){n.setDate(m(e).value,!1,n.mobileFormatStr),Se("onChange"),Se("onClose")}))}();var e=s(se,50);n._debouncedChange=s(z,A),n.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&L(n.daysContainer,"mouseover",(function(e){"range"===n.config.mode&&le(m(e))}));L(n._input,"keydown",ue),void 0!==n.calendarContainer&&L(n.calendarContainer,"keydown",ue);n.config.inline||n.config.static||L(window,"resize",e);void 0!==window.ontouchstart?L(window.document,"touchstart",ne):L(window.document,"mousedown",ne);L(window.document,"focus",ne,{capture:!0}),!0===n.config.clickOpens&&(L(n._input,"focus",n.open),L(n._input,"click",n.open));void 0!==n.daysContainer&&(L(n.monthNav,"click",Oe),L(n.monthNav,["keyup","increment"],I),L(n.daysContainer,"click",me));if(void 0!==n.timeContainer&&void 0!==n.minuteElement&&void 0!==n.hourElement){var t=function(e){return m(e).select()};L(n.timeContainer,["increment"],S),L(n.timeContainer,"blur",S,{capture:!0}),L(n.timeContainer,"click",B),L([n.hourElement,n.minuteElement],["focus","click"],t),void 0!==n.secondElement&&L(n.secondElement,"focus",(function(){return n.secondElement&&n.secondElement.select()})),void 0!==n.amPM&&L(n.amPM,"click",(function(e){S(e)}))}n.config.allowInput&&L(n._input,"blur",ie)}(),(n.selectedDates.length||n.config.noCalendar)&&(n.config.enableTime&&M(n.config.noCalendar?n.latestSelectedDateObj:void 0),Ce(!1)),b();var o=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!n.isMobile&&o&&pe(),Se("onReady")}(),n}function M(e,t){for(var n=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),r=[],a=0;a=this._maxSize&&this.clear(),e in this._values||this._size++,this._values[e]=t};var n=/[^.^\]^[]+|(?=\[\]|\.\.)/g,r=/^\d+$/,a=/^\d/,o=/[~`!#$%\^&*+=\-\[\]\\';,/{}|\\":<>\?]/g,i=/^\s*(['"]?)(.*?)(\1)\s*$/,u=new t(512),l=new t(512),s=new t(512);function c(e){return u.get(e)||u.set(e,f(e).map((function(e){return e.replace(i,"$2")})))}function f(e){return e.match(n)||[""]}function d(e){return"string"===typeof e&&e&&-1!==["'",'"'].indexOf(e.charAt(0))}function p(e){return!d(e)&&(function(e){return e.match(a)&&!e.match(r)}(e)||function(e){return o.test(e)}(e))}e.exports={Cache:t,split:f,normalizePath:c,setter:function(e){var t=c(e);return l.get(e)||l.set(e,(function(e,n){for(var r=0,a=t.length,o=e;r