芝麻web文件管理V1.00
编辑当前文件:/home/qrafawbu/www/breadwinnerv2/assets/myjs/flatpickr.min.js
/*! flatpickr v2.2.2, @license MIT */ function Flatpickr(e,t){function n(){e._flatpickr&&y(e._flatpickr),e._flatpickr=te,te.element=e,te.instanceConfig=t||{},j(),L(),F(),U(),R(),P(),te.isOpen=te.config.inline,te.changeMonth=D,te.clear=v,te.close=b,te.destroy=y,te.formatDate=k,te.jumpToDate=c,te.open=Y,te.parseDate=N,te.redraw=S,te.set=O,te.setDate=A,te.toggle=B,te.isMobile=!te.config.disableMobile&&"single"===te.config.mode&&!te.config.disable.length&&!te.config.enable.length&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),te.isMobile||d(),l(),te.minDateHasTime=te.config.minDate&&(te.config.minDate.getHours()||te.config.minDate.getMinutes()||te.config.minDate.getSeconds()),te.maxDateHasTime=te.config.maxDate&&(te.config.maxDate.getHours()||te.config.maxDate.getMinutes()||te.config.maxDate.getSeconds()),te.isMobile||Object.defineProperty(te,"dateIsPicked",{set:function(e){return e?te.calendarContainer.classList.add("dateIsPicked"):void te.calendarContainer.classList.remove("dateIsPicked")}}),te.dateIsPicked=te.selectedDates.length>0,te.selectedDates.length&&(te.config.enableTime&&r(),Q()),z("Ready")}function a(e){te.config.noCalendar&&!te.selectedDates.length&&(te.selectedDates=[te.now]),ee(e),te.selectedDates.length&&(i(),Q())}function i(){if(te.config.enableTime){var e=parseInt(te.hourElement.value,10)||0,t=(60+(parseInt(te.minuteElement.value,10)||0))%60,n=te.config.enableSeconds?(60+parseInt(te.secondElement.value,10)||0)%60:0;te.amPM&&(e=e%12+12*("PM"===te.amPM.innerHTML)),te.minDateHasTime&&0===Z(J(),te.config.minDate)?(e=Math.max(e,te.config.minDate.getHours()),e===te.config.minDate.getHours()&&(t=Math.max(t,te.config.minDate.getMinutes()))):te.maxDateHasTime&&0===Z(J(),te.config.maxDate)&&(e=Math.min(e,te.config.maxDate.getHours()),e===te.config.maxDate.getHours()&&(t=Math.min(t,te.config.maxDate.getMinutes()))),o(e,t,n)}}function r(e){var t=e||J();t&&o(t.getHours(),t.getMinutes(),t.getSeconds())}function o(e,t,n){te.selectedDates.length&&te.selectedDates[te.selectedDates.length-1].setHours(e%24,t,n||0,0),te.config.enableTime&&!te.isMobile&&(te.hourElement.value=te.pad(te.config.time_24hr?e:(12+e)%12+12*(e%12===0)),te.minuteElement.value=te.pad(t),!te.config.time_24hr&&te.selectedDates.length&&(te.amPM.textContent=J().getHours()>=12?"PM":"AM"),te.config.enableSeconds&&(te.secondElement.value=te.pad(n)))}function l(){return te.config.wrap&&["open","close","toggle","clear"].forEach(function(e){try{te.element.querySelector("[data-"+e+"]").addEventListener("click",te[e])}catch(e){}}),"createEvent"in document&&(te.changeEvent=document.createEvent("HTMLEvents"),te.changeEvent.initEvent("change",!1,!0)),te.isMobile?W():(te.debouncedResize=X(T,100),te.triggerChange=function(){return z("Change")},te.debouncedChange=X(te.triggerChange,1e3),"range"===te.config.mode&&te.days.addEventListener("mouseover",I),document.addEventListener("keydown",x),window.addEventListener("resize",te.debouncedResize),document.addEventListener("click",C),document.addEventListener("blur",C),te.config.clickOpens&&(te.altInput||te.input).addEventListener("focus",Y),te.config.noCalendar||(te.prevMonthNav.addEventListener("click",function(){return D(-1)}),te.nextMonthNav.addEventListener("click",function(){return D(1)}),te.currentYearElement.addEventListener("wheel",function(e){return X($(e),50)}),te.currentYearElement.addEventListener("focus",function(){te.currentYearElement.select()}),te.currentYearElement.addEventListener("input",function(e){4===e.target.value.length&&(te.currentYearElement.blur(),w(e.target.value),e.target.value=te.currentYear)}),te.days.addEventListener("click",_)),void(te.config.enableTime&&(te.timeContainer.addEventListener("wheel",function(e){return X(a(e),5)}),te.timeContainer.addEventListener("input",a),te.timeContainer.addEventListener("wheel",te.debouncedChange),te.timeContainer.addEventListener("input",te.triggerChange),te.hourElement.addEventListener("focus",function(){te.hourElement.select()}),te.minuteElement.addEventListener("focus",function(){te.minuteElement.select()}),te.secondElement&&te.secondElement.addEventListener("focus",function(){te.secondElement.select()}),te.amPM&&te.amPM.addEventListener("click",function(e){a(e),te.triggerChange(e)}))))}function c(e){e=e?N(e):J()||(te.config.minDate>te.now?te.config.minDate:te.now);try{te.currentYear=e.getFullYear(),te.currentMonth=e.getMonth()}catch(t){console.error(t.stack),console.warn("Invalid date supplied: "+e)}te.redraw()}function s(e,t){var n=e.target.parentNode.childNodes[0];n.value=parseInt(n.value,10)+t*(n.step||1);try{n.dispatchEvent(new Event("input",{bubbles:!0}))}catch(e){var a=document.createEvent("CustomEvent");a.initCustomEvent("input",!0,!0,{}),n.dispatchEvent(a)}}function u(e){var t=G("div","numInputWrapper"),n=G("input","numInput "+e),a=G("span","arrowUp"),i=G("span","arrowDown");return n.type="text",t.appendChild(n),t.appendChild(a),t.appendChild(i),a.addEventListener("click",function(e){return s(e,1)}),i.addEventListener("click",function(e){return s(e,-1)}),t}function d(){var e=document.createDocumentFragment();te.calendarContainer=G("div","flatpickr-calendar"),te.numInputType=navigator.userAgent.indexOf("MSIE 9.0")>0?"text":"number",te.config.noCalendar||(e.appendChild(m()),te.innerContainer=G("div","flatpickr-innerContainer"),te.config.weekNumbers&&te.innerContainer.appendChild(h()),te.rContainer=G("div","flatpickr-rContainer"),te.rContainer.appendChild(g()),te.rContainer.appendChild(f()),te.innerContainer.appendChild(te.rContainer),e.appendChild(te.innerContainer)),te.config.enableTime&&e.appendChild(p()),te.calendarContainer.appendChild(e),te.config.inline||te.config.static?(te.calendarContainer.classList.add(te.config.inline?"inline":"static"),H(),te.config.appendTo&&te.config.appendTo.nodeType?te.config.appendTo.appendChild(te.calendarContainer):te.element.parentNode.insertBefore(te.calendarContainer,(te.altInput||te.input).nextSibling)):document.body.appendChild(te.calendarContainer)}function f(){te.days||(te.days=G("div","flatpickr-days"),te.days.tabIndex=-1),te.firstOfMonth=(new Date(te.currentYear,te.currentMonth,1).getDay()-te.l10n.firstDayOfWeek+7)%7,te.prevMonthDays=te.utils.getDaysinMonth((te.currentMonth-1+12)%12);var e=te.utils.getDaysinMonth(),t=document.createDocumentFragment(),n=te.prevMonthDays+1-te.firstOfMonth,a=void 0,i=void 0;if(te.config.weekNumbers&&(te.weekNumbers.innerHTML=""),"range"===te.config.mode){te.config.enable.length||te.config.disable.length||te.config.mixDate||te.config.maxDate;te.minRangeDate=new Date(te.currentYear,te.currentMonth-1,n),te.maxRangeDate=new Date(te.currentYear,te.currentMonth+1,(42-te.firstOfMonth)%e)}te.days.innerHTML="";for(var r=0;n<=te.prevMonthDays;r++,n++){var o=new Date(te.currentYear,te.currentMonth-1,n,0,0,0,0,0),l=E(o),c=G("span","flatpickr-day prevMonthDay"+(l?"":" disabled")+(q(o)?" inRange":"")+(1===te.selectedDates.length&&(o
te.maxRangeDate)?" notAllowed":"")+(K(o)!==!1?" selected":""),n);c.dateObj=o,l?c.tabIndex=0:te.selectedDates[0]&&o>te.minRangeDate&&o
te.selectedDates[0]&&(te.maxRangeDate=o),z("DayCreate",c),t.appendChild(c)}for(n=1;n<=e;n++){a=new Date(te.currentYear,te.currentMonth,n,0,0,0,0,0),te.config.weekNumbers&&n%7===1&&te.weekNumbers.insertAdjacentHTML("beforeend","
"+te.config.getWeek(a)+"
"),i=!E(a);var s=G("span",i?"flatpickr-day disabled":"flatpickr-day"+(q(a)?" inRange":"")+(1===te.selectedDates.length&&(a
te.maxRangeDate)?" notAllowed":""),n);s.dateObj=a,0===Z(a,te.now)&&s.classList.add("today"),i?te.selectedDates[0]&&a>te.minRangeDate&&a
te.selectedDates[0]&&(te.maxRangeDate=a):(s.tabIndex=0,K(a)&&(s.classList.add("selected"),te.selectedDateElem=s,"range"===te.config.mode&&(s.className+=0===Z(a,te.selectedDates[0])?" startRange":te.selectedDates.length>1?" endRange":""))),z("DayCreate",s),t.appendChild(s)}for(var u=e+1;u<=42-te.firstOfMonth;u++){var d=new Date(te.currentYear,te.currentMonth+1,u%e,0,0,0,0,0),f=E(d),m=G("span","flatpickr-day nextMonthDay"+(f?"":" disabled")+(q(d)?" inRange":"")+(1===te.selectedDates.length&&(d
te.maxRangeDate)?" notAllowed":"")+(K(d)!==!1?" selected":""),u%e);m.dateObj=d,te.config.weekNumbers&&u%7===1&&te.weekNumbers.insertAdjacentHTML("beforeend","
"+te.config.getWeek(d)+"
"),f?m.tabIndex=0:te.selectedDates[0]&&d>te.minRangeDate&&d
te.selectedDates[0]&&(te.maxRangeDate=d),z("DayCreate",m),t.appendChild(m)}return te.days.appendChild(t),te.days}function m(){var e=document.createDocumentFragment();te.monthNav=G("div","flatpickr-month"),te.prevMonthNav=G("span","flatpickr-prev-month"),te.prevMonthNav.innerHTML=te.config.prevArrow,te.currentMonthElement=G("span","cur-month");var t=u("cur-year");return te.currentYearElement=t.childNodes[0],te.currentYearElement.title=te.l10n.scrollTitle,te.config.minDate&&(te.currentYearElement.min=te.config.minDate.getFullYear()),te.config.maxDate&&(te.currentYearElement.max=te.config.maxDate.getFullYear(),te.currentYearElement.disabled=te.config.minDate&&te.config.minDate.getFullYear()===te.config.maxDate.getFullYear()),te.nextMonthNav=G("span","flatpickr-next-month"),te.nextMonthNav.innerHTML=te.config.nextArrow,te.navigationCurrentMonth=G("span","flatpickr-current-month"),te.navigationCurrentMonth.appendChild(te.currentMonthElement),te.navigationCurrentMonth.appendChild(t),e.appendChild(te.prevMonthNav),e.appendChild(te.navigationCurrentMonth),e.appendChild(te.nextMonthNav),te.monthNav.appendChild(e),V(),te.monthNav}function p(){te.calendarContainer.classList.add("hasTime"),te.timeContainer=G("div","flatpickr-time"),te.timeContainer.tabIndex=-1;var e=G("span","flatpickr-time-separator",":"),t=u("flatpickr-hour");te.hourElement=t.childNodes[0];var n=u("flatpickr-minute");if(te.minuteElement=n.childNodes[0],te.hourElement.tabIndex=te.minuteElement.tabIndex=0,te.hourElement.pattern=te.minuteElement.pattern="d*",te.hourElement.value=te.pad(J()?J().getHours():te.config.defaultHour),te.minuteElement.value=te.pad(J()?J().getMinutes():te.config.defaultMinute),te.hourElement.step=te.config.hourIncrement,te.minuteElement.step=te.config.minuteIncrement,te.hourElement.min=-(te.config.time_24hr?1:0),te.hourElement.max=te.config.time_24hr?24:13,te.minuteElement.min=-te.minuteElement.step,te.minuteElement.max=60,te.hourElement.title=te.minuteElement.title=te.l10n.scrollTitle,te.timeContainer.appendChild(t),te.timeContainer.appendChild(e),te.timeContainer.appendChild(n),te.config.enableSeconds){te.timeContainer.classList.add("hasSeconds");var a=u("flatpickr-second");te.secondElement=a.childNodes[0],te.secondElement.pattern=te.hourElement.pattern,te.secondElement.value=J()?te.pad(J().getSeconds()):"00",te.secondElement.step=te.minuteElement.step,te.secondElement.min=te.minuteElement.min,te.secondElement.max=te.minuteElement.max,te.timeContainer.appendChild(G("span","flatpickr-time-separator",":")),te.timeContainer.appendChild(a)}return te.config.time_24hr||(te.amPM=G("span","flatpickr-am-pm",["AM","PM"][te.hourElement.value>11|0]),te.amPM.title=te.l10n.toggleTitle,te.amPM.tabIndex=0,te.timeContainer.appendChild(te.amPM)),te.timeContainer}function g(){te.weekdayContainer||(te.weekdayContainer=G("div","flatpickr-weekdays"));var e=te.l10n.firstDayOfWeek,t=te.l10n.weekdays.shorthand.slice();return e>0&&e
\n\t\t\t"+t.join("
")+"\n\t\t
\n\t\t",te.weekdayContainer}function h(){return te.calendarContainer.classList.add("hasWeeks"),te.weekWrapper=G("div","flatpickr-weekwrapper"),te.weekWrapper.appendChild(G("span","flatpickr-weekday",te.l10n.weekAbbreviation)),te.weekNumbers=G("div","flatpickr-weeks"),te.weekWrapper.appendChild(te.weekNumbers),te.weekWrapper}function D(e,t){te.currentMonth="undefined"==typeof t||t?te.currentMonth+e:e,w(),V(),f(),te.config.noCalendar||te.days.focus(),z("MonthChange")}function v(){te.input.value="",te.altInput&&(te.altInput.value=""),te.mobileInput&&(te.mobileInput.value=""),te.selectedDates=[],te.dateIsPicked=!1,te.redraw(),z("Change")}function b(){te.isOpen=!1,te.isMobile||(te.calendarContainer.classList.remove("open"),(te.altInput||te.input).classList.remove("active")),z("Close")}function y(e){e=e||te,e.clear(),document.removeEventListener("keydown",x),window.removeEventListener("resize",e.debouncedResize),document.removeEventListener("click",C),document.removeEventListener("blur",C),e.isMobile&&e.mobileInput&&e.mobileInput.parentNode?e.mobileInput.parentNode.removeChild(e.mobileInput):e.calendarContainer&&e.calendarContainer.parentNode&&e.calendarContainer.parentNode.removeChild(e.calendarContainer),e.altInput&&(e.input.type="text",e.altInput.parentNode&&e.altInput.parentNode.removeChild(e.altInput)),e.input.classList.remove("flatpickr-input"),e.input.removeEventListener("focus",Y),e.input.removeAttribute("readonly")}function M(e){for(var t=e;t;){if(/flatpickr-day|flatpickr-calendar/.test(t.className))return!0;t=t.parentNode}return!1}function C(e){var t=te.element.contains(e.target)||e.target===te.input||e.target===te.altInput;!te.isOpen||M(e.target)||t||(te.close(),"range"===te.config.mode&&1===te.selectedDates.length&&(te.clear(),te.redraw()))}function k(e,t){var n=e.split("");return n.map(function(e,a){return te.formats[e]&&"\\"!==n[a-1]?te.formats[e](t):"\\"!==e?e:""}).join("")}function w(e){te.currentMonth<0||te.currentMonth>11?(te.currentYear+=te.currentMonth%11,te.currentMonth=(te.currentMonth+12)%12,z("YearChange")):e&&(!te.currentYearElement.min||e>=te.currentYearElement.min)&&(!te.currentYearElement.max||e<=te.currentYearElement.max)&&(te.currentYear=parseInt(e,10)||te.currentYear,te.config.maxDate&&te.currentYear===te.config.maxDate.getFullYear()?te.currentMonth=Math.min(te.config.maxDate.getMonth(),te.currentMonth):te.config.minDate&&te.currentYear===te.config.minDate.getFullYear()&&(te.currentMonth=Math.max(te.config.minDate.getMonth(),te.currentMonth)),te.redraw(),z("YearChange"))}function E(e){if(te.config.minDate&&Z(e,te.config.minDate)<0||te.config.maxDate&&Z(e,te.config.maxDate)>0)return!1;if(!te.config.enable.length&&!te.config.disable.length)return!0;e=N(e,!0);for(var t,n=te.config.enable.length>0,a=n?te.config.enable:te.config.disable,i=0;i
=N(t.from)&&e<=N(t.to))return n}return!n}function x(e){if(te.isOpen)switch(e.which){case 13:te.timeContainer&&te.timeContainer.contains(e.target)?Q():_(e);break;case 27:te.clear(),te.redraw(),te.close();break;case 37:e.target!==te.input&e.target!==te.altInput&&D(-1);break;case 38:e.preventDefault(),te.timeContainer&&te.timeContainer.contains(e.target)?a(e):(te.currentYear++,te.redraw());break;case 39:e.target!==te.input&e.target!==te.altInput&&D(1);break;case 40:e.preventDefault(),te.timeContainer&&te.timeContainer.contains(e.target)?a(e):(te.currentYear--,te.redraw())}}function I(e){if(1===te.selectedDates.length&&e.target.classList.contains("flatpickr-day")){for(var t=e.target.dateObj,n=Math.min(t.getTime(),te.selectedDates[0].getTime()),a=Math.max(t.getTime(),te.selectedDates[0].getTime()),i=!1,r=n;r
te.maxRangeDate.getTime()?(te.days.childNodes[l].classList.add("notAllowed"),te.days.childNodes[l].classList.remove("inRange")):!i&&o>Math.max(te.minRangeDate.getTime(),n)&&o
1&&void 0!==arguments[1]&&arguments[1];if(!e)return null;var n=/(\d+)/g,a=/^(\d{1,2})[:\s](\d\d)?[:\s]?(\d\d)?\s?(a|p)?/i,i=e;if(e.toFixed)e=new Date(e);else if("string"==typeof e)if(e=e.trim(),"today"===e)e=new Date,t=!0;else if(te.config.parseDate)e=te.config.parseDate(e);else if(a.test(e)){var r=e.match(a),o=r[4]?r[1]%12+("p"===r[4].toLowerCase()?12:0):r[1];e=new Date,e.setHours(o,r[2]||0,r[3]||0)}else if(/Z$/.test(e)||/GMT$/.test(e))e=new Date(e);else if(n.test(e)&&/^[0-9]/.test(e)){var l=e.match(n);e=new Date(l[0]+"/"+(l[1]||1)+"/"+(l[2]||1)+" "+(l[3]||0)+":"+(l[4]||0)+":"+(l[5]||0))}else e=new Date(e);return e instanceof Date?(te.config.utc&&!e.fp_isUTC&&(e=e.fp_toUTC()),t&&e.setHours(0,0,0,0),e):(console.warn("flatpickr: invalid date "+i),console.info(te.element),null)}function H(){var e=te.calendarContainer.offsetHeight,t=te.altInput||te.input,n=t.getBoundingClientRect(),a=window.innerHeight-n.bottom+t.offsetHeight,i=void 0,r=window.pageXOffset+n.left;a
0,void(t&&z("Change"))):te.clear()}function R(){te.selectedDates=[],te.now=new Date;var e=te.config.defaultDate||te.input.value;if(Array.isArray(e))te.selectedDates=e.map(N);else if(e)switch(te.config.mode){case"single":te.selectedDates=[N(e)];break;case"multiple":te.selectedDates=e.split("; ").map(N);break;case"range":te.selectedDates=e.split(" to ").map(N)}te.selectedDates=te.selectedDates.filter(function(e){return e instanceof Date&&e.getTime()&&E(e)});var t=te.selectedDates.length?te.selectedDates[0]:te.config.minDate>te.now?te.config.minDate:te.now;te.currentYear=t.getFullYear(),te.currentMonth=t.getMonth()}function P(){te.utils={duration:{DAY:864e5},getDaysinMonth:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:te.currentMonth,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.currentYear;return 1===e&&t%4===0&&t%100!==0||t%400===0?29:te.l10n.daysInMonth[e]},monthToStr:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:te.config.shorthandCurrentMonth;return te.l10n.months[(t?"short":"long")+"hand"][e]}}}function j(){te.formats={D:function(e){return te.l10n.weekdays.shorthand[te.formats.w(e)]},F:function(e){return te.utils.monthToStr(te.formats.n(e)-1,!1)},H:function(e){return Flatpickr.prototype.pad(e.getHours())},J:function(e){return e.getDate()+te.l10n.ordinal(e.getDate())},K:function(e){return e.getHours()>11?"PM":"AM"},M:function(e){return te.utils.monthToStr(e.getMonth(),!0)},S:function(e){return Flatpickr.prototype.pad(e.getSeconds())},U:function(e){return e.getTime()/1e3},Y:function(e){return e.getFullYear()},d:function(e){return Flatpickr.prototype.pad(te.formats.j(e))},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return Flatpickr.prototype.pad(e.getMinutes())},j:function(e){return e.getDate()},l:function(e){return te.l10n.weekdays.longhand[te.formats.w(e)]},m:function(e){return Flatpickr.prototype.pad(te.formats.n(e))},n:function(e){return e.getMonth()+1},s:function(e){return e.getSeconds()},w:function(e){return e.getDay()},y:function(e){return String(te.formats.Y(e)).substring(2)}}}function U(){te.input=te.config.wrap?te.element.querySelector("[data-input]"):te.element,te.input.classList.add("flatpickr-input"),te.config.altInput&&(te.altInput=G(te.input.nodeName,te.config.altInputClass),te.altInput.placeholder=te.input.placeholder,te.altInput.type="text",te.input.type="hidden",te.input.parentNode&&te.input.parentNode.insertBefore(te.altInput,te.input.nextSibling)),te.config.allowInput||(te.altInput||te.input).setAttribute("readonly","readonly")}function W(){var e=te.config.enableTime?te.config.noCalendar?"time":"datetime-local":"date";te.mobileInput=G("input","flatpickr-input flatpickr-mobile"),te.mobileInput.step="any",te.mobileInput.tabIndex=-1,te.mobileInput.type=e,te.mobileInput.disabled=te.input.disabled,te.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",te.selectedDates.length&&(te.mobileInput.defaultValue=te.mobileInput.value=k(te.mobileFormatStr,te.selectedDates[0])),te.config.minDate&&(te.mobileInput.min=k("Y-m-d",te.config.minDate)),te.config.maxDate&&(te.mobileInput.max=k("Y-m-d",te.config.maxDate)),te.input.type="hidden",te.config.altInput&&(te.altInput.type="hidden");try{te.input.parentNode.insertBefore(te.mobileInput,te.input.nextSibling)}catch(e){}te.mobileInput.addEventListener("change",function(e){te.setDate(e.target.value),z("Change"),z("Close")})}function B(){te.isOpen?te.close():te.open()}function z(e,t){if(te.config["on"+e])for(var n=Array.isArray(te.config["on"+e])?te.config["on"+e]:[te.config["on"+e]],a=0;a
te.selectedDates[0]&&e
te.config.maxDate.getMonth():te.currentYear>te.config.maxDate.getFullYear();te.nextMonthNav.style.display=t?"none":"block"}else te.nextMonthNav.style.display="block"}}function Q(){if(!te.selectedDates.length)return te.clear();te.isMobile&&(te.mobileInput.value=te.selectedDates.length?k(te.mobileFormatStr,J()):"");var e="range"!==te.config.mode?"; ":" to ";te.input.value=te.selectedDates.map(function(e){return k(te.config.dateFormat,e)}).join(e),te.config.altInput&&(te.altInput.value=te.selectedDates.map(function(e){return k(te.config.altFormat,e)}).join(e)),z("ValueUpdate")}function $(e){e.preventDefault();var t=Math.max(-1,Math.min(1,e.wheelDelta||-e.deltaY)),n=parseInt(e.target.value,10)+t;w(n),e.target.value=te.currentYear}function G(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",a=document.createElement(e);return a.className=t,n&&(a.innerHTML=n),a}function X(e,t,n){var a=void 0;return function(){for(var i=arguments.length,r=Array(i),o=0;o
=2||"keydown"!==e.type&&"input"!==e.type)&&e.target.blur(),"flatpickr-am-pm"===e.target.className)return void(e.target.textContent=["AM","PM"]["AM"===e.target.textContent|0]);var t=parseInt(e.target.min,10),n=parseInt(e.target.max,10),a=parseInt(e.target.step,10),i=parseInt(e.target.value,10),r=i;"wheel"===e.type?r=i+a*Math.max(-1,Math.min(1,e.wheelDelta||-e.deltaY)):"keydown"===e.type&&(r=i+a*(38===e.which?1:-1)),r<=t?r=n-a:r>=n&&(r=t+a),te.amPM&&(11===i&&12===r||12===i&&11===r)&&(te.amPM.textContent="PM"===te.amPM.innerHTML?"AM":"PM"),e.target.value=te.pad(r)}var te=this;return n(),te}function _flatpickr(e,t){for(var n=[],a=0;a
",nextArrow:"
",enableSeconds:!1,hourIncrement:1,minuteIncrement:5,defaultHour:12,defaultMinute:0,disableMobile:!1,locale:"default",onChange:null,onOpen:null,onClose:null,onReady:null,onValueUpdate:null,onDayCreate:null},Flatpickr.l10ns={en:{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"}},weekAbbreviation:"Wk",scrollTitle:"Scroll to increment",toggleTitle:"Click to toggle"}},Flatpickr.l10ns.default=Flatpickr.l10ns.en,Flatpickr.localize=function(e){return _extends(Flatpickr.l10ns.default,e||{})},Flatpickr.prototype={pad:function(e){return("0"+e).slice(-2)}},"undefined"!=typeof HTMLElement&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return _flatpickr(this,e)},HTMLElement.prototype.flatpickr=function(e){return _flatpickr([this],e)}),"undefined"!=typeof jQuery&&(jQuery.fn.flatpickr=function(e){return _flatpickr(this,e)}),Date.prototype.fp_incr=function(e){return new Date(this.getFullYear(),this.getMonth(),this.getDate()+parseInt(e,10))},Date.prototype.fp_isUTC=!1,Date.prototype.fp_toUTC=function(){var e=new Date(this.getUTCFullYear(),this.getUTCMonth(),this.getUTCDate(),this.getUTCHours(),this.getUTCMinutes(),this.getUTCSeconds());return e.fp_isUTC=!0,e},"classList"in document.documentElement||!Object.defineProperty||"undefined"==typeof HTMLElement||Object.defineProperty(HTMLElement.prototype,"classList",{ get:function(){function e(e){return function(n){var a=t.className.split(/\s+/),i=a.indexOf(n);e(a,i,n),t.className=a.join(" ")}}var t=this,n={add:e(function(e,t,n){~t||e.push(n)}),remove:e(function(e,t){~t&&e.splice(t,1)}),toggle:e(function(e,t,n){~t?e.splice(t,1):e.push(n)}),contains:function(e){return!!~t.className.split(/\s+/).indexOf(e)},item:function(e){return t.className.split(/\s+/)[e]||null}};return Object.defineProperty(n,"length",{get:function(){return t.className.split(/\s+/).length}}),n}}),"undefined"!=typeof module&&(module.exports=Flatpickr);