1/* flatpickr - rangePlugin */ 2!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e=e||self).rangePlugin=t()}(this,function(){"use strict";return function(t){return void 0===t&&(t={}),function(a){var s,l,c,r="",e={onParseConfig:function(){a.config.mode="range",r=a.config.altInput?a.config.altFormat:a.config.dateFormat},onReady:function(){!function(){if(t.input){if(!(s=t.input instanceof Element?t.input:window.document.querySelector(t.input)))return a.config.errorHandler(new Error("Invalid input element specified"));a.config.wrap&&(s=s.querySelector("[data-input]"))}else(s=a._input.cloneNode()).removeAttribute("id"),s._flatpickr=void 0;if(s.value){var e=a.parseDate(s.value);e&&a.selectedDates.push(e)}s.setAttribute("data-fp-omit",""),a._bind(s,["focus","click"],function(){a.selectedDates[1]&&(a.latestSelectedDateObj=a.selectedDates[1],a._setHoursFromDate(a.selectedDates[1]),a.jumpToDate(a.selectedDates[1])),l=!0,a.isOpen=!1,a.open(void 0,"left"===t.position?a._input:s)}),a._bind(a._input,["focus","click"],function(e){e.preventDefault(),a.isOpen=!1,a.open()}),a.config.allowInput&&a._bind(s,"keydown",function(e){"Enter"===e.key&&(a.setDate([a.selectedDates[0],s.value],!0,r),s.click())}),t.input||a._input.parentNode&&a._input.parentNode.insertBefore(s,a._input.nextSibling)}(),a.config.ignoredFocusElements.push(s),a.config.allowInput?(a._input.removeAttribute("readonly"),s.removeAttribute("readonly")):s.setAttribute("readonly","readonly"),a._bind(a._input,"focus",function(){a.latestSelectedDateObj=a.selectedDates[0],a._setHoursFromDate(a.selectedDates[0]),l=!1,a.jumpToDate(a.selectedDates[0])}),a.config.allowInput&&a._bind(a._input,"keydown",function(e){"Enter"===e.key&&a.setDate([a._input.value,a.selectedDates[1]],!0,r)}),a.setDate(a.selectedDates,!1),e.onValueUpdate(a.selectedDates),a.loadedPlugins.push("range")},onPreCalendarPosition:function(){l&&(a._positionElement=s,setTimeout(function(){a._positionElement=a._input},0))},onChange:function(){a.selectedDates.length||setTimeout(function(){a.selectedDates.length||(s.value="",c=[])},10),l&&setTimeout(function(){s.focus()},0)},onDestroy:function(){t.input||s.parentNode&&s.parentNode.removeChild(s)},onValueUpdate:function(e){var t,n,i;if(s){if((c=!c||e.length>=c.length?e.slice():c).length>e.length){var o=e[0],u=l?[c[0],o]:[o,c[1]];a.setDate(u,!1),c=u.slice()}n=(t=a.selectedDates.map(function(e){return a.formatDate(e,r)}))[0],a._input.value=void 0===n?"":n,i=t[1],s.value=void 0===i?"":i}}};return e}}});
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.