PageSourceSearch

https://www.boucherville.ca/wp-content/cache/min/1/wp-content/them…twp_datepicker-677b11c466.js?ver=1790705960

js boucherville.ca collected 2026-10-02 03:11:28 UTC 52,329 bytes, 1 lines download raw bytes

1!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).flatpickr=t()}(this,function(){"use strict";var Z=function(){return(Z=Object.assign||function(e){for(var t,n=1,a=arguments.length;n<a;n++)for(var i in t=arguments[n])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)};function X(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;for(var a=Array(e),i=0,t=0;t<n;t++)for(var o=arguments[t],r=0,l=o.length;r<l;r++,i++)a[i]=o[r];return a}var ee=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],te={_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);e=new Date(t.getFullYear(),0,4);return 1+Math.round(((t.getTime()-e.getTime())/864e5-3+(e.getDay()+6)%7)/7)},hourIncrement:1,ignoredFocusElements:[],inline:!1,locale:"default",minuteIncrement:5,mode:"single",monthSelectorType:"dropdown",nextArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M13.207 8.472l-7.854 7.854-0.707-0.707 7.146-7.146-7.146-7.148 0.707-0.707 7.854 7.854z' /></svg>",noCalendar:!1,now:new Date,onChange:[],onClose:[],onDayCreate:[],onDestroy:[],onKeyDown:[],onMonthChange:[],onOpen:[],onParseConfig:[],onReady:[],onValueUpdate:[],onYearChange:[],onPreCalendarPosition:[],plugins:[],position:"auto",positionElement:void 0,prevArrow:"<svg version='1.1' xmlns='http://www.w3.org/2000/svg' xmlns:xlink='http://www.w3.org/1999/xlink' viewBox='0 0 17 17'><g></g><path d='M5.207 8.471l7.146 7.147-0.707 0.707-7.853-7.854 7.854-7.853 0.707 0.707-7.147 7.146z' /></svg>",shorthandCurrentMonth:!1,showMonths:1,static:!1,time_24hr:!1,weekNumbers:!1,wrap:!1},ne={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){e%=100;if(3<e&&e<21)return"th";switch(e%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},ae=function(e,t){return("000"+e).slice(-1*(t=void 0===t?2:t))},ie=function(e){return!0===e?1:0};function oe(t,n){var a;return function(){var e=this;clearTimeout(a),a=setTimeout(function(){return t.apply(e,arguments)},n)}}var re=function(e){return e instanceof Array?e:[e]};function le(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function ce(e,t,n){e=window.document.createElement(e);return n=n||"",e.className=t=t||"",void 0!==n&&(e.textContent=n),e}function de(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function se(e,t){var n=ce("div","numInputWrapper"),a=ce("input","numInput "+e),i=ce("span","arrowUp"),e=ce("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?a.type="number":(a.type="text",a.pattern="\\d*"),void 0!==t)for(var o in t)a.setAttribute(o,t[o]);return n.appendChild(a),n.appendChild(i),n.appendChild(e),n}function ue(t){try{return"function"==typeof t.composedPath?t.composedPath()[0]:t.target}catch(e){return t.target}}function e(){}var fe=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},v={D:e,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,t,n){e.setHours(e.getHours()%12+12*ie(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){t=parseInt(t),t=new Date(e.getFullYear(),0,2+7*(t-1),0,0,0,0);return t.setDate(t.getDate()-t.getDay()+n.firstDayOfWeek),t},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:e,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:e,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},me={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:"
1(\\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)",u:"(.+)",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 fe(l.n(e,t,n)-1,!1,t)},G:function(e,t,n){return ae(l.h(e,t,n))},H:function(e){return ae(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[ie(11<e.getHours())]},M:function(e,t){return fe(e.getMonth(),!0,t)},S:function(e){return ae(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return ae(e.getFullYear(),4)},d:function(e){return ae(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return ae(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return ae(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)}},pe=function(e){var t=e.config,o=void 0===t?te:t,t=e.l10n,n=void 0===t?ne:t,e=e.isMobile,r=void 0!==e&&e;return function(a,e,t){var i=t||n;return void 0===o.formatDate||r?e.split("").map(function(e,t,n){return l[e]&&"\\"!==n[t-1]?l[e](a,i,o):"\\"!==e?e:""}).join(""):o.formatDate(a,e,i)}},ge=function(e){var t=e.config,g=void 0===t?te:t,e=e.l10n,h=void 0===e?ne:e;return function(e,t,n,a){if(0===e||e){var i=a||h,a=e;if(e instanceof Date)r=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)r=new Date(e);else if("string"==typeof e){var o=t||(g||te).dateFormat,t=String(e).trim();if("today"===t)r=new Date,n=!0;else if(/Z$/.test(t)||/GMT$/.test(t))r=new Date(e);else if(g&&g.parseDate)r=g.parseDate(e,o);else{for(var r=g&&g.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),l=void 0,c=[],d=0,s=0,u="";d<o.length;d++){var f=o[d],m="\\"===f,p="\\"===o[d-1]||m;me[f]&&!p?(u+=me[f],(p=new RegExp(u).exec(e))&&(l=!0)&&c["Y"!==f?"push":"unshift"]({fn:v[f],val:p[++s]})):m||(u+="."),c.forEach(function(e){var t=e.fn,e=e.val;return r=t(r,e,i)||r})}r=l?r:void 0}}if(r instanceof Date&&!isNaN(r.getTime()))return!0===n&&r.setHours(0,0,0,0),r;g.errorHandler(new Error("Invalid date provided: "+a))}}};function he(e,t,n){return!1!==(n=void 0===n?!0:n)?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var ve=864e5;function De(e){var t,n,a,i=e.defaultHour,o=e.defaultMinute,r=e.defaultSeconds;return void 0!==e.minDate&&(t=e.minDate.getHours(),n=e.minDate.getMinutes(),a=e.minDate.getSeconds(),(i=i<t?t:i)===t&&o<n&&(o=n),i===t&&o===n&&r<a&&(r=e.minDate.getSeconds())),void 0!==e.maxDate&&(n=e.maxDate.getHours(),a=e.maxDate.getMinutes(),(i=Math.min(i,n))===n&&(o=Math.min(a,o)),i===n&&o===a&&(r=e.maxDate.getSeconds())),{hours:i,minutes:o,seconds:r}}function r(d,s){var m={config:Z(Z({},te),we.defaultConfig),l10n:ne};function u(e){return e.bind(m)}function t(){var t=m.config;!1===t.weekNumbers&&1===t.showMonths||!0!==t.noCalendar&&window.requestAnimationFrame(function(){var e;void 0!==m.calendarContainer&&(m.calendarContainer.style.visibility="hidden",m.calendarContainer.style.display="block"),void 0!==m.daysContainer&&(e=(m.days.offsetWidth+1)*t.showMonths,m.daysContainer.style.width=e+"px",m.calendarContainer.style.width=e+(void 0!==m.weekWrapper?m.weekWrapper.offsetWidth:0)+"px",m.calendarContainer.style.removeProperty("visibility"),m.calendarContainer.style.removeProperty("display"))})}function f(e){var t,n;0===m.selectedDates.length&&(t=void 0===m.config.minDate||0<=he(new Date,m.config.minDate)?new Date:new Date(m.config.minDate.getTime()),n=De(m.config),t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),m.selectedDates=[t],m.latestSelectedDateObj=t),void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=ue(e),a=n;void 0!==m.amPM&&n===m.amPM&&(m.amPM.textContent=m.l10n.amPM[ie(m.amPM.textContent===m.l10n.amPM[0])]);var i=parseFloat(a.getAttribute("min")),o=parseFloat(a.getAttribute("max")),r=parseFloat(a.getAttribute("step")),l=parseInt(a.value,10),n=l+r*(e.delta||(t?38===e.which?1:-1:0));void 0!==a.value&&2===a.value.length&&(t=a===m.hourElement,e=a===m.minuteElement,n<i?(n=o+n+ie(!t)+(ie(t)&&ie(!m.amPM)),e&&g(void 0,-1,m.hourElement)):o<n&&(n=a===m.hourElement?n-o-ie(!m.amPM):i,e&&g(void 0,1,m.hourElement)),m.amPM&&t&&(1===r?n+l===23:Math.abs(n-l)>r)&&(m.amPM.textContent=m.l10n.amPM[ie(m.amPM.textContent===m.l10n.amPM[0])]),a.value=ae(n))}(e);e=m._input.value;p(),Q(),m._input.value!==e&&m._debouncedChange()}function p(){var e,t,n,a,i;void 0!==m.hourElement&&void 0!==m.minuteElement&&(e=(parseInt(m.hourElement.value.slice(-2),10)||0)%24,t=(
1parseInt(m.minuteElement.value,10)||0)%60,n=void 0!==m.secondElement?(parseInt(m.secondElement.value,10)||0)%60:0,void 0!==m.amPM&&(i=e,a=m.amPM.textContent,e=i%12+12*ie(a===m.l10n.amPM[1])),i=void 0!==m.config.minTime||m.config.minDate&&m.minDateHasTime&&m.latestSelectedDateObj&&0===he(m.latestSelectedDateObj,m.config.minDate,!0),(void 0!==m.config.maxTime||m.config.maxDate&&m.maxDateHasTime&&m.latestSelectedDateObj&&0===he(m.latestSelectedDateObj,m.config.maxDate,!0))&&(a=void 0!==m.config.maxTime?m.config.maxTime:m.config.maxDate,(t=(e=Math.min(e,a.getHours()))===a.getHours()?Math.min(t,a.getMinutes()):t)===a.getMinutes()&&(n=Math.min(n,a.getSeconds()))),i&&(i=void 0!==m.config.minTime?m.config.minTime:m.config.minDate,(t=(e=Math.max(e,i.getHours()))===i.getHours()&&t<i.getMinutes()?i.getMinutes():t)===i.getMinutes()&&(n=Math.max(n,i.getSeconds()))),o(e,t,n))}function a(e){e=e||m.latestSelectedDateObj;e&&o(e.getHours(),e.getMinutes(),e.getSeconds())}function o(e,t,n){void 0!==m.latestSelectedDateObj&&m.latestSelectedDateObj.setHours(e%24,t,n||0,0),m.hourElement&&m.minuteElement&&!m.isMobile&&(m.hourElement.value=ae(m.config.time_24hr?e:(12+e)%12+12*ie(e%12==0)),m.minuteElement.value=ae(t),void 0!==m.amPM&&(m.amPM.textContent=m.l10n.amPM[ie(12<=e)]),void 0!==m.secondElement&&(m.secondElement.value=ae(n)))}function n(e){var t=ue(e),t=parseInt(t.value)+(e.delta||0);(1<t/1e3||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&_(t)}function r(t,n,a,i){return n instanceof Array?n.forEach(function(e){return r(t,e,a,i)}):t instanceof Array?t.forEach(function(e){return r(e,n,a,i)}):(t.addEventListener(n,a,i),void m._handlers.push({remove:function(){return t.removeEventListener(n,a)}}))}function i(){U("onChange")}function l(e,t){var n=void 0!==e?m.parseDate(e):m.latestSelectedDateObj||(m.config.minDate&&m.config.minDate>m.now?m.config.minDate:m.config.maxDate&&m.config.maxDate<m.now?m.config.maxDate:m.now),a=m.currentYear,i=m.currentMonth;try{void 0!==n&&(m.currentYear=n.getFullYear(),m.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,m.config.errorHandler(e)}t&&m.currentYear!==a&&(U("onYearChange"),y()),!t||m.currentYear===a&&m.currentMonth===i||U("onMonthChange"),m.redraw()}function c(e){var t=ue(e);~t.className.indexOf("arrow")&&g(e,t.classList.contains("arrowUp")?1:-1)}function g(e,t,n){e=e&&ue(e),n=n||e&&e.parentNode&&e.parentNode.firstChild,e=q("increment");e.delta=t,n&&n.dispatchEvent(e)}function h(e,t,n,a){var i=S(t,!0),o=ce("span","flatpickr-day "+e,t.getDate().toString());return o.dateObj=t,o.$i=a,o.setAttribute("aria-label",m.formatDate(t,m.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===he(t,m.now)&&((m.todayDateElem=o).classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,$(t)&&(o.classList.add("selected"),m.selectedDateElem=o,"range"===m.config.mode&&(le(o,"startRange",m.selectedDates[0]&&0===he(t,m.selectedDates[0],!0)),le(o,"endRange",m.selectedDates[1]&&0===he(t,m.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===m.config.mode&&(i=t,!("range"!==m.config.mode||m.selectedDates.length<2)&&0<=he(i,m.selectedDates[0])&&he(i,m.selectedDates[1])<=0)&&!$(t)&&o.classList.add("inRange"),m.weekNumbers&&1===m.config.showMonths&&"prevMonthDay"!==e&&n%7==1&&m.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+m.config.getWeek(t)+"</span>"),U("onDayCreate",o),o}function v(e){e.focus(),"range"===m.config.mode&&P(e)}function D(e){for(var t=0<e?0:m.config.showMonths-1,n=0<e?m.config.showMonths:-1,a=t;a!=n;a+=e)for(var i=m.daysContainer.children[a],o=0<e?0:i.children.length-1,r=0<e?i.children.length:-1,l=o;l!=r;l+=e){var c=i.children[l];if(-1===c.className.indexOf("hidden")&&S(c.dateObj))return c}}function w(e,t){var n=F(document.activeElement||document.body),e=void 0!==e?e:n?document.activeElement:void 0!==m.selectedDateElem&&F(m.selectedDateElem)?m.selectedDateElem:void 0!==m.todayDateElem&&F(m.todayDateElem)?m.todayDateElem:D(0<t?1:-1);void 0===e?m._input.focus():n?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():m.currentMonth,a=0<t?m.config.showMonths:-1,i=0<t?1:-1,o=n-m.currentMonth;o!=a;o+=i)for(var r=m.daysContainer.children[o],l=n-m.currentMonth===o?e.$i+t:t<0?r.children.length-1:0,c=r.children.length,d=l;0<=d&&d<c&&d!=(0<t?c:-1);d+=i){var s=r.children[d];if(-1===s.className.indexOf("hidden")&&S(s.dateObj)&&Math.abs(e.$i-d)>=Math.abs(t))return v(s)}m.changeMonth(i),w(D(i),0)}(e,t):v(e)}function b(){if(void 0!==m.daysContainer){de(m.daysContainer),m.weekNumbers&&de(m.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<m.config.showMonths;t++){var n=new Date(m.currentYear,m.currentMonth,1);n.setMonth(m.currentMonth+t),e.appendChild(function(e,t){for(var n=(new Date(e,t,1).getDay()-m.l10n.firstDayOfWeek+7)%7,a=m.utils.getDaysInMonth((t-1+12)%12,e),i=m.utils.getDaysInMonth(t,e),o=window.document.createDocumentFragment(),r=1<m.config.showMonths,l=r?"prevMonthDay hidden":"prevMonthDay",c=r?"nextMonthDay hidden":"nextMonthDay",d=a+1-n,s=0;d<=a;d++,s++)o.appendChild(h(l,new Date(e,t-1,d),d,s));for(d=1;d<=i;d++,s++)o.appendChild(h("",new Date(e,t,d),d,s));for(var u=i+1;u<=42-n&&(1===m.config.showMonths||s%7!=0);u++,s++)o.appendChild(h(c,new Date(e,t+1,u%i),u,s));return(r=ce("div","dayContainer")).appendChild(o),r}(n.getFullYear(),n.getMonth()))}m.daysContainer.appendChild(e),m.days=m.daysContainer.firstChild,"range"===m.config.mode&&1===m.selectedDates.length&&P()}}function y(){if(!(1<m.config.showMonths||"dropdown"!==m.config.monthSelectorType)){m.monthsDropdownContainer.tabIndex=-1,m.monthsDropdownContainer.innerHTML="";for(var e,t=0;t<12;t++)n=t,void 0!==m.config.minDate&&m.currentYear===m.config.minDate.getFullYear()&&n<m.config.minDate.getMonth()||void 0!==m.config.maxDate&&m.currentYear===m.config.maxDate.getFullYear()&&n>m.config.maxDate.getMonth()||((e=ce("option","flatpickr-monthDropdown-month")).value=new Date(m.currentYear,t).getMonth().toString(),e.textContent=fe(t,m.config.shorthandCurrentMonth,m.l10n),e.tabIndex=-1,m.currentMonth===t&&(e.selected=!0),m.monthsDropdownContainer.appendChild(e))}var n}function C(){de(m.monthNav),m.monthNav.appendChild(m.prevMonthNav),m.config.showMonths&&(m.yearElements=[],m.monthElements=[]);for(var e=m.config.showMonths;e--;){var t=function(){var e=ce("div","flatpickr-month"),t=window.document.createDocumentFragment(),n=1<m.config.showMonths||"static"===m.config.monthSelectorType?ce("span","cur-month"):(m.monthsDropdownContainer=ce("select","flatpickr-monthDropdown-months"),m.monthsDropdownContainer.setAttribute("aria-label",m.l10n.monthAriaLabel),r(m.monthsDropdownContainer,"change",function(e){e=ue(e),e=parseInt(e.value,10);m.changeMonth(e-m.currentMonth),U("onMonthChange")}),y(),m.monthsDropdownContainer),a=se("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",m.l10n.yearAriaLabel),m.config.minDate&&i.setAttribute("min",m.config.minDate.getFullYear().toString()),m.config.maxDate&&(i.setAttribute("max",m.config.maxDate.getFullYear().toString()),i.disabled=!!m.config.minDate&&m.config.minDate.getFullYear()===m.config.maxDate.getFullYear());var o=ce("div","flatpickr-current-month");return o.appendChild(n),o.appendChild(a),t.appendChild(o),e.appendChild(t),{container:e,yearElement:i,monthElement:n}}();m.yearElements.push(t.yearElement),m.monthElements.push(t.monthElement),m.monthNav.appendChild(t.container)}m.monthNav.appendChild(m.nextMonthNav)}function M(){m.weekdayContainer?de(m.weekdayContainer):m.weekdayContainer=ce("div","flatpickr-weekdays");for(var e=m.config.showMonths;e--;){var t=ce("div","flatpickr-weekdaycontainer");m.weekdayContainer.appendChild(t)}return x(),m.weekdayContainer}function x(){if(m.weekdayContainer){var e=m.l10n.firstDayOfWeek,t=X(m.l10n.weekdays.shorthand);0<e&&e<t.length&&(t=X(t.splice(e,t.length),t.splice(0,e)));for(var n=m.config.showMonths;n--;
1)m.weekdayContainer.children[n].innerHTML="\n      <span class='flatpickr-weekday'>\n        "+t.join("</span><span class='flatpickr-weekday'>")+"\n      </span>\n      "}}function k(e,t){e=(t=void 0===t?!0:t)?e:e-m.currentMonth;e<0&&!0===m._hidePrevMonthArrow||0<e&&!0===m._hideNextMonthArrow||(m.currentMonth+=e,(m.currentMonth<0||11<m.currentMonth)&&(m.currentYear+=11<m.currentMonth?1:-1,m.currentMonth=(m.currentMonth+12)%12,U("onYearChange"),y()),b(),U("onMonthChange"),z())}function E(e){return!(!m.config.appendTo||!m.config.appendTo.contains(e))||m.calendarContainer.contains(e)}function T(e){var t,n,a;m.isOpen&&!m.config.inline&&(a=E(t=ue(e)),n=t===m.input||t===m.altInput||m.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(m.input)||~e.path.indexOf(m.altInput)),a="blur"===e.type?n&&e.relatedTarget&&!E(e.relatedTarget):!n&&!a&&!E(e.relatedTarget),e=!m.config.ignoredFocusElements.some(function(e){return e.contains(t)}),a&&e&&(void 0!==m.timeContainer&&void 0!==m.minuteElement&&void 0!==m.hourElement&&""!==m.input.value&&void 0!==m.input.value&&f(),m.close(),m.config&&"range"===m.config.mode&&1===m.selectedDates.length&&(m.clear(!1),m.redraw())))}function _(e){var t;!e||m.config.minDate&&e<m.config.minDate.getFullYear()||m.config.maxDate&&e>m.config.maxDate.getFullYear()||(t=m.currentYear!==e,m.currentYear=e||m.currentYear,m.config.maxDate&&m.currentYear===m.config.maxDate.getFullYear()?m.currentMonth=Math.min(m.config.maxDate.getMonth(),m.currentMonth):m.config.minDate&&m.currentYear===m.config.minDate.getFullYear()&&(m.currentMonth=Math.max(m.config.minDate.getMonth(),m.currentMonth)),t&&(m.redraw(),U("onYearChange"),y()))}function S(e,t){var n=m.parseDate(e,void 0,t=void 0===t?!0:t);if(m.config.minDate&&n&&he(n,m.config.minDate,void 0!==t?t:!m.minDateHasTime)<0||m.config.maxDate&&n&&0<he(n,m.config.maxDate,void 0!==t?t:!m.maxDateHasTime))return!1;if(!m.config.enable&&0===m.config.disable.length)return!0;if(void 0===n)return!1;for(var a=!!m.config.enable,i=null!==(t=m.config.enable)&&void 0!==t?t:m.config.disable,o=0,r=void 0;o<i.length;o++){if("function"==typeof(r=i[o])&&r(n))return a;if(r instanceof Date&&void 0!==n&&r.getTime()===n.getTime())return a;if("string"==typeof r){var l=m.parseDate(r,void 0,!0);return l&&l.getTime()===n.getTime()?a:!a}if("object"==typeof r&&void 0!==n&&r.from&&r.to&&n.getTime()>=r.from.getTime()&&n.getTime()<=r.to.getTime())return a}return!a}function F(e){return void 0!==m.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&m.daysContainer.contains(e)}function I(e){e.target!==m._input||!(0<m.selectedDates.length||0<m._input.value.length)||e.relatedTarget&&E(e.relatedTarget)||m.setDate(m._input.value,!0,e.target===m.altInput?m.config.altFormat:m.config.dateFormat)}function O(e){var t=ue(e),n=m.config.wrap?d.contains(t):t===m._input,a=m.config.allowInput,i=m.isOpen&&(!a||!n),o=m.config.inline&&n&&!a;if(13===e.keyCode&&n){if(a)return m.setDate(m._input.value,!0,t===m.altInput?m.config.altFormat:m.config.dateFormat),t.blur();m.open()}else if(E(t)||i||o){var r,l=!!m.timeContainer&&m.timeContainer.contains(t);switch(e.keyCode){case 13:l?(e.preventDefault(),f(),W()):R(e);break;case 27:e.preventDefault(),W();break;case 8:case 46:n&&!m.config.allowInput&&(e.preventDefault(),m.clear());break;case 37:case 39:l||n?m.hourElement&&m.hourElement.focus():(e.preventDefault(),void 0!==m.daysContainer&&(!1===a||document.activeElement&&F(document.activeElement))&&(r=39===e.keyCode?1:-1,e.ctrlKey?(e.stopPropagation(),k(r),w(D(1),0)):w(void 0,r)));break;case 38:case 40:e.preventDefault();var c=40===e.keyCode?1:-1;m.daysContainer&&void 0!==t.$i||t===m.input||t===m.altInput?e.ctrlKey?(e.stopPropagation(),_(m.currentYear-c),w(D(1),0)):l||w(void 0,7*c):t===m.currentYearElement?_(m.currentYear-c):m.config.enableTime&&(!l&&m.hourElement&&m.hourElement.focus(),f(e),m._debouncedChange());break;case 9:l?-1!==(c=(r=[m.hourElement,m.minuteElement,m.secondElement,m.amPM].concat(m.pluginElements).filter(function(e){return e})).indexOf(t))&&(c=r[c+(e.shiftKey?-1:1)],e.preventDefault(),(c||m._input).focus()):!m.config.noCalendar&&m.daysContainer&&m.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),m._input.focus())}}if(void 0!==m.amPM&&t===m.amPM)switch(e.key){case m.l10n.amPM[0].charAt(0):case m.l10n.amPM[0].charAt(0).toLowerCase():m.amPM.textContent=m.l10n.amPM[0],p(),Q();break;case m.l10n.amPM[1].charAt(0):case m.l10n.amPM[1].charAt(0).toLowerCase():m.amPM.textContent=m.l10n.amPM[1],p(),Q()}(n||E(t))&&U("onKeyDown",e)}function P(i){if(1===m.selectedDates.length&&(!i||i.classList.contains("flatpickr-day")&&!i.classList.contains("flatpickr-disabled"))){for(var o=(i||m.days.firstElementChild).dateObj.getTime(),r=m.parseDate(m.selectedDates[0],void 0,!0).getTime(),e=Math.min(o,m.selectedDates[0].getTime()),t=Math.max(o,m.selectedDates[0].getTime()),l=!1,c=0,d=0,n=e;n<t;
1n+=ve)S(new Date(n),!0)||(l=l||e<n&&n<t,n<r&&(!c||c<n)?c=n:r<n&&(!d||n<d)&&(d=n));for(var a=0;a<m.config.showMonths;a++)for(var s=m.daysContainer.children[a],u=0,f=s.children.length;u<f;u++)!function(e){var t=s.children[e],n=t.dateObj.getTime(),a=0<c&&n<c||0<d&&d<n;a?(t.classList.add("notAllowed"),["inRange","startRange","endRange"].forEach(function(e){t.classList.remove(e)})):l&&!a||(["startRange","inRange","endRange","notAllowed"].forEach(function(e){t.classList.remove(e)}),void 0!==i&&(i.classList.add(o<=m.selectedDates[0].getTime()?"startRange":"endRange"),r<o&&n===r?t.classList.add("startRange"):o<r&&n===r&&t.classList.add("endRange"),c<=n&&(0===d||n<=d)&&(e=r,a=o,(n=n)>Math.min(e,a)&&n<Math.max(e,a))&&t.classList.add("inRange")))}(u)}}function A(){!m.isOpen||m.config.static||m.config.inline||H()}function N(n){return function(e){var t=m.config["_"+n+"Date"]=m.parseDate(e,m.config.dateFormat),e=m.config["_"+("min"===n?"max":"min")+"Date"];void 0!==t&&(m["min"===n?"minDateHasTime":"maxDateHasTime"]=0<t.getHours()||0<t.getMinutes()||0<t.getSeconds()),m.selectedDates&&(m.selectedDates=m.selectedDates.filter(function(e){return S(e)}),m.selectedDates.length||"min"!==n||a(t),Q()),m.daysContainer&&(L(),void 0!==t?m.currentYearElement[n]=t.getFullYear().toString():m.currentYearElement.removeAttribute(n),m.currentYearElement.disabled=!!e&&void 0!==t&&e.getFullYear()===t.getFullYear())}}function Y(){return m.config.wrap?d.querySelector("[data-input]"):d}function j(){"object"!=typeof m.config.locale&&void 0===we.l10ns[m.config.locale]&&m.config.errorHandler(new Error("flatpickr: invalid locale "+m.config.locale)),m.l10n=Z(Z({},we.l10ns.default),"object"==typeof m.config.locale?m.config.locale:"default"!==m.config.locale?we.l10ns[m.config.locale]:void 0),me.K="("+m.l10n.amPM[0]+"|"+m.l10n.amPM[1]+"|"+m.l10n.amPM[0].toLowerCase()+"|"+m.l10n.amPM[1].toLowerCase()+")",void 0===Z(Z({},s),JSON.parse(JSON.stringify(d.dataset||{}))).time_24hr&&void 0===we.defaultConfig.time_24hr&&(m.config.time_24hr=m.l10n.time_24hr),m.formatDate=pe(m),m.parseDate=ge({config:m.config,l10n:m.l10n})}function H(e){var t,n,a,i,o,r,l;"function"!=typeof m.config.position?void 0!==m.calendarContainer&&(U("onPreCalendarPosition"),i=e||m._positionElement,n=Array.prototype.reduce.call(m.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),r=m.calendarContainer.offsetWidth,o=(t=m.config.position.split(" "))[0],a=1<t.length?t[1]:null,l=i.getBoundingClientRect(),t=window.innerHeight-l.bottom,o="above"===o||"below"!==o&&t<n&&l.top>n,t=window.pageYOffset+l.top+(o?-n-2:i.offsetHeight+2),le(m.calendarContainer,"arrowTop",!o),le(m.calendarContainer,"arrowBottom",o),m.config.inline||(n=window.pageXOffset+l.left,o=i=!1,"center"===a?(n-=(r-l.width)/2,i=!0):"right"===a&&(n-=r-l.width,o=!0),le(m.calendarContainer,"arrowLeft",!i&&!o),le(m.calendarContainer,"arrowCenter",i),le(m.calendarContainer,"arrowRight",o),a=window.document.body.offsetWidth-(window.pageXOffset+l.right),i=n+r>window.document.body.offsetWidth,o=a+r>window.document.body.offsetWidth,le(m.calendarContainer,"rightMost",i),m.config.static||(m.calendarContainer.style.top=t+"px",i?o?void 0!==(i=function(){for(var e,t=null,n=0;n<document.styleSheets.length;n++){var a=document.styleSheets[n];try{a.cssRules}catch(t){continue}t=a;break}return null!=t?t:(e=document.createElement("style"),document.head.appendChild(e),e.sheet)}())&&(o=window.document.body.offsetWidth,o=Math.max(0,o/2-r/2),r=i.cssRules.length,l="{left:"+l.left+"px;right:auto;}",le(m.calendarContainer,"rightMost",!1),le(m.calendarContainer,"centerMost",!0),i.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+l,r),m.calendarContainer.style.left=o+"px",m.calendarContainer.style.right="auto"):(m.calendarContainer.style.left="auto",m.calendarContainer.style.right=a+"px"):(m.calendarContainer.style.left=n+"px",m.calendarContainer.style.right="auto")))):m.config.position(m,e)}function L(){m.config.noCalendar||m.isMobile||(y(),z(),b())}function W(){m._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(m.close,0):m.close()}function R(e){e.preventDefault(),e.stopPropagation();var t,n,a=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(ue(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});void 0!==a&&(n=a,a=((e=m.latestSelectedDateObj=new Date(n.dateObj.getTime())).getMonth()<m.currentMonth||e.getMonth()>m.currentMonth+m.config.showMonths-1)&&"range"!==m.config.mode,m.
1selectedDateElem=n,"single"===m.config.mode?m.selectedDates=[e]:"multiple"===m.config.mode?(t=$(e))?m.selectedDates.splice(parseInt(t),1):m.selectedDates.push(e):"range"===m.config.mode&&(2===m.selectedDates.length&&m.clear(!1,!1),m.latestSelectedDateObj=e,m.selectedDates.push(e),0!==he(e,m.selectedDates[0],!0)&&m.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})),p(),a&&(t=m.currentYear!==e.getFullYear(),m.currentYear=e.getFullYear(),m.currentMonth=e.getMonth(),t&&(U("onYearChange"),y()),U("onMonthChange")),z(),b(),Q(),a||"range"===m.config.mode||1!==m.config.showMonths?void 0!==m.selectedDateElem&&void 0===m.hourElement&&m.selectedDateElem&&m.selectedDateElem.focus():v(n),void 0!==m.hourElement&&void 0!==m.hourElement&&m.hourElement.focus(),m.config.closeOnSelect&&(a="single"===m.config.mode&&!m.config.enableTime,n="range"===m.config.mode&&2===m.selectedDates.length&&!m.config.enableTime,(a||n)&&W()),i())}m.parseDate=ge({config:m.config,l10n:m.l10n}),m._handlers=[],m.pluginElements=[],m.loadedPlugins=[],m._bind=r,m._setHoursFromDate=a,m._positionCalendar=H,m.changeMonth=k,m.changeYear=_,m.clear=function(e,t){void 0===e&&(e=!0),void 0===t&&(t=!0),m.input.value="",void 0!==m.altInput&&(m.altInput.value=""),void 0!==m.mobileInput&&(m.mobileInput.value=""),m.selectedDates=[],!(m.latestSelectedDateObj=void 0)===t&&(m.currentYear=m._initialDate.getFullYear(),m.currentMonth=m._initialDate.getMonth()),!0===m.config.enableTime&&o((t=De(m.config)).hours,t.minutes,t.seconds),m.redraw(),e&&U("onChange")},m.close=function(){m.isOpen=!1,m.isMobile||(void 0!==m.calendarContainer&&m.calendarContainer.classList.remove("open"),void 0!==m._input&&m._input.classList.remove("active")),U("onClose")},m._createElement=ce,m.destroy=function(){void 0!==m.config&&U("onDestroy");for(var e=m._handlers.length;e--;)m._handlers[e].remove();if(m._handlers=[],m.mobileInput)m.mobileInput.parentNode&&m.mobileInput.parentNode.removeChild(m.mobileInput),m.mobileInput=void 0;else if(m.calendarContainer&&m.calendarContainer.parentNode)if(m.config.static&&m.calendarContainer.parentNode){var t=m.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 m.calendarContainer.parentNode.removeChild(m.calendarContainer);m.altInput&&(m.input.type="text",m.altInput.parentNode&&m.altInput.parentNode.removeChild(m.altInput),delete m.altInput),m.input&&(m.input.type=m.input._type,m.input.classList.remove("flatpickr-input"),m.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 m[e]}catch(e){}})},m.isEnabled=S,m.jumpToDate=l,m.open=function(e,t){var n;if(void 0===t&&(t=m._positionElement),!0===m.isMobile)return e&&(e.preventDefault(),(n=ue(e))&&n.blur()),void 0!==m.mobileInput&&(m.mobileInput.focus(),m.mobileInput.click()),void U("onOpen");m._input.disabled||m.config.inline||(n=m.isOpen,m.isOpen=!0,n||(m.calendarContainer.classList.add("open"),m._input.classList.add("active"),U("onOpen"),H(t)),!0===m.config.enableTime&&!0===m.config.noCalendar&&(!1!==m.config.allowInput||void 0!==e&&m.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return m.hourElement.select()},50)))},m.redraw=L,m.set=function(e,t){if(null!==e&&"object"==typeof e)for(var n in Object.assign(m.config,e),e)void 0!==J[n]&&J[n].forEach(function(e){return e()});else m.config[e]=t,void 0!==J[e]?J[e].forEach(function(e){return e()}):-1<ee.indexOf(e)&&(m.config[e]=re(t));m.redraw(),Q(!0)},m.setDate=function(e,t,n){if(void 0===t&&(t=!1),void 0===n&&(n=m.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return m.clear(t);B(e,n),m.latestSelectedDateObj=m.selectedDates[m.selectedDates.length-1],m.redraw(),l(void 0,t),a(),0===m.selectedDates.length&&m.clear(!1),Q(t),t&&U("onChange")},m.toggle=function(e){if(!0===m.isOpen)return m.close();m.open(e)};var J={locale:[j,x],showMonths:[C,t,M],minDate:[l],maxDate:[l],clickOpens:[function(){!0===m.config.clickOpens?(r(m._input,"focus",m.open),r(m._input,"click",m.open)):(m._input.removeEventListener("focus",m.open),m._input.removeEventListener("click",m.open))}]};function B(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return m.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[m.parseDate(e,t)];else if("string"==typeof e)switch(m.config.mode){case"single":case"time":n=[m.parseDate(e,t)];break;case"multiple":n=e.split(m.config.conjunction).map(function(e){return m.parseDate(e,t)});break;case"range":n=e.split(m.l10n.rangeSeparator).map(function(e){return m.parseDate(e,t)})}else m.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));m.selectedDates=m.config.allowInvalidPreload?n:n.filter(function(e){return e instanceof Date&&S(e,!1)}),"range"===m.config.mode&&m.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function K(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?m.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:m.parseDate(e.from,void 0),to:m.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function U(e,t){if(void 0!==m.config){var n=m.config[e];if(void 0!==n&&0<n.length)for(var a=0;n[a]&&a<n.length;a++)n[a](m.selectedDates,m.input.value,m,t);"onChange"===e&&(m.input.dispatchEvent(q("change")),m.input.dispatchEvent(q("input")))}}function q(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function $(e){for(var t=0;t<m.selectedDates.length;t++)if(0===he(m.selectedDates[t],e))return""+t;return!1}function z(){m.config.noCalendar||m.isMobile||!m.monthNav||(m.yearElements.forEac
1h(function(e,t){var n=new Date(m.currentYear,m.currentMonth,1);n.setMonth(m.currentMonth+t),1<m.config.showMonths||"static"===m.config.monthSelectorType?m.monthElements[t].textContent=fe(n.getMonth(),m.config.shorthandCurrentMonth,m.l10n)+" ":m.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()}),m._hidePrevMonthArrow=void 0!==m.config.minDate&&(m.currentYear===m.config.minDate.getFullYear()?m.currentMonth<=m.config.minDate.getMonth():m.currentYear<m.config.minDate.getFullYear()),m._hideNextMonthArrow=void 0!==m.config.maxDate&&(m.currentYear===m.config.maxDate.getFullYear()?m.currentMonth+1>m.config.maxDate.getMonth():m.currentYear>m.config.maxDate.getFullYear()))}function G(t){return m.selectedDates.map(function(e){return m.formatDate(e,t)}).filter(function(e,t,n){return"range"!==m.config.mode||m.config.enableTime||n.indexOf(e)===t}).join("range"!==m.config.mode?m.config.conjunction:m.l10n.rangeSeparator)}function Q(e){void 0===e&&(e=!0),void 0!==m.mobileInput&&m.mobileFormatStr&&(m.mobileInput.value=void 0!==m.latestSelectedDateObj?m.formatDate(m.latestSelectedDateObj,m.mobileFormatStr):""),m.input.value=G(m.config.dateFormat),void 0!==m.altInput&&(m.altInput.value=G(m.config.altFormat)),!1!==e&&U("onValueUpdate")}function V(e){var t=ue(e),n=m.prevMonthNav.contains(t),e=m.nextMonthNav.contains(t);n||e?k(n?-1:1):0<=m.yearElements.indexOf(t)?t.select():t.classList.contains("arrowUp")?m.changeYear(m.currentYear+1):t.classList.contains("arrowDown")&&m.changeYear(m.currentYear-1)}return function(){m.element=m.input=d,m.isOpen=!1,function(){var e=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],t=Z(Z({},JSON.parse(JSON.stringify(d.dataset||{}))),s),n={};m.config.parseDate=t.parseDate,m.config.formatDate=t.formatDate,Object.defineProperty(m.config,"enable",{get:function(){return m.config._enable},set:function(e){m.config._enable=K(e)}}),Object.defineProperty(m.config,"disable",{get:function(){return m.config._disable},set:function(e){m.config._disable=K(e)}});var a,i="time"===t.mode;t.dateFormat||!t.enableTime&&!i||(a=we.defaultConfig.dateFormat||te.dateFormat,n.dateFormat=t.noCalendar||i?"H:i"+(t.enableSeconds?":S":""):a+" H:i"+(t.enableSeconds?":S":"")),t.altInput&&(t.enableTime||i)&&!t.altFormat&&(o=we.defaultConfig.altFormat||te.altFormat,n.altFormat=t.noCalendar||i?"h:i"+(t.enableSeconds?":S K":" K"):o+" h:i"+(t.enableSeconds?":S":"")+" K"),Object.defineProperty(m.config,"minDate",{get:function(){return m.config._minDate},set:N("min")}),Object.defineProperty(m.config,"maxDate",{get:function(){return m.config._maxDate},set:N("max")});var o=function(t){return function(e){m.config["min"===t?"_minTime":"_maxTime"]=m.parseDate(e,"H:i:S")}};Object.defineProperty(m.config,"minTime",{get:function(){return m.config._minTime},set:o("min")}),Object.defineProperty(m.config,"maxTime",{get:function(){return m.config._maxTime},set:o("max")}),"time"===t.mode&&(m.config.noCalendar=!0,m.config.enableTime=!0),Object.assign(m.config,n,t);for(var r=0;r<e.length;r++)m.config[e[r]]=!0===m.config[e[r]]||"true"===m.config[e[r]];for(ee.filter(function(e){return void 0!==m.config[e]}).forEach(function(e){m.config[e]=re(m.config[e]||[]).map(u)}),m.isMobile=!m.config.disableMobile&&!m.config.inline&&"single"===m.config.mode&&!m.config.disable.length&&!m.config.enable&&!m.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),r=0;r<m.config.plugins.length;r++){var l,c=m.config.plugins[r](m)||{};for(l in c)-1<ee.indexOf(l)?m.config[l]=re(c[l]).map(u).concat(m.config[l]):void 0===t[l]&&(m.config[l]=c[l])}t.altInputClass||(m.config.altInputClass=Y().className+" "+m.config.altInputClass),U("onParseConfig")}(),j(),m.input=Y(),m.input?(m.input._type=m.input.type,m.input.type="text",m.input.classList.add("flatpickr-input"),m._input=m.input,m.config.altInput&&(m.altInput=ce(m.input.nodeName,m.config.altInputClass),m._input=m.altInput,m.altInput.placeholder=m.input.placeholder,m.altInput.disabled=m.input.disabled,m.altInput.required=m.input.required,m.altInput.tabIndex=m.input.tabIndex,m.altInput.type="text",m.input.setAttribute("type","hidden"),!m.config.static&&m.input.parentNode&&m.input.parentNode.insertBefore(m.altInput,m.input.nextSibling)),m.config.allowInput||m._input.setAttribute("readonly","readonly"),m._positionElement=m.config.positionElement||m._input):m.config.errorHandler(new Error("Invalid input element specified")),function(){m.selectedDates=[],m.now=m.parseDate(m.config.now)||new Date;var e=m.config.defaultDate||("INPUT"!==m.input.nodeName&&"TEXTAREA"!==m.input.nodeName||!m.input.placeholder||m.input.value!==m.input.placeholder?m.input.value:null);e&&B(e,m.config.dateFormat),m._initialDate=0<m.selectedDates.length?m.selectedDates[0]:m.config.minDate&&m.config.minDate.getTime()>m.now.getTime()?m.config.minDate:m.config.maxDate&&m.config.maxDate.getTime()<m.now.getTime()?m.config.maxDate:m.now,m.currentYear=m._initialDate.getFullYear(),m.currentMonth=m._initialDate.getMonth(),0<m.selectedDates.length&&(m.latestSelectedDateObj=m.selectedDates[0]),void 0!==m.config.minTime&&(m.config.minTime=m.parseDate(m.config.minTime,"H:i")),void 0!==m.config.maxTime&&(m.config.maxTime=m.parseDate(m.config.maxTime,"H:i")),m.minDateHasTime=!!m.config.minDate&&(0<m.config.minDate.getHours()||0<m.config.minDate.getMinutes()||0<m.config.minDate.getSeconds()),m.maxDateHasTime=!!m.config.maxDate&&(0<m.config.maxDate.getHours()||0<m.config.maxDate.getMinutes()||0<m.config.maxDate.getSeconds())}(),m.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=m.currentMonth),void 0===t&&(t=m.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:m.l10n.daysInMonth[e]}},m.isMobile||function(){var e,t,n=window.document.createDocumentFragment();m.calendarContainer=ce("div","flatpickr-calendar"),m.calendarContainer.tabIndex=-1,m.config.noCalendar||(n.appendChild((m.monthNav=ce("div","flatpickr-months"),m.yearElements=[],m.monthElements=[],m.prevMonthNav=ce("span","flatpickr-prev-month"),m.prevMonthNav.innerHTML=m.config.prevArrow,m.nextMonthNav=ce("span","flatpickr-next-month"),m.nextMonthNav.innerHTML=m.config.nextArrow,C(),Object.defineProperty(m,"_hidePrevMonthArrow",{get:function(){return m.__hidePrevMonthArrow},set:function(e){m.__hidePrevMonthArrow!==e&&(le(m.prevMonthNav,"flatpickr-disabled",e),m.__hidePrevMonthArrow=e)}}),Object.defineProperty(m,"_hideNextMonthArrow",{get:function(){return m.__hideNextMonthArrow},set:function(e){m.__hideNextMonthArrow!==e&&(le(m.nextMonthNav,"flatpickr-disabled",e),m.__hideNextMonthArrow=e)}}),m.currentYearElement=m.yearElements[0],z(),m.monthNav)),m.innerContainer=ce("div","flatpickr-innerContainer"),m.config.weekNumbers&&(e=(t=function(){m.calendarContainer.classList.add("hasWeeks");var e=ce("div","flatpickr-weekwrapper");e.appendChild(ce("span","flatpickr-weekday",m.l10n.weekAbbreviation));var t=ce("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}()).weekWrapper,t=t.weekNumbers,m.innerContainer.appendChild(e),m.weekNumbers=t,m.weekWrapper=e),m.rContainer=ce("div","flatpickr-rContainer"),m.rContainer.appendChild(M()),m.daysContainer||(m.daysContainer=ce("div","flatpickr-days"),m.daysContainer.tabIndex=-1),b(),m.rContainer.appendChild(m.daysContainer),m.innerContainer.appendChild(m.rContainer),n.appendChild(m.innerContainer)),m.config.enableTime&&n.appendChild(function(){m.calendarContainer.classList.add("hasTime"),m.config.noCalendar&&m.calendarContainer.classList.add("noCalendar");var e=De(m.config);m.timeContainer=ce("div","flatpickr-time"),m.timeContainer.tabIndex=-1;var t=ce("span","flatpickr-time-separator",":"),n=se("flatpickr-hour",{"aria-label":m.l
110n.hourAriaLabel});m.hourElement=n.getElementsByTagName("input")[0];var a=se("flatpickr-minute",{"aria-label":m.l10n.minuteAriaLabel});return m.minuteElement=a.getElementsByTagName("input")[0],m.hourElement.tabIndex=m.minuteElement.tabIndex=-1,m.hourElement.value=ae(m.latestSelectedDateObj?m.latestSelectedDateObj.getHours():m.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),m.minuteElement.value=ae(m.latestSelectedDateObj?m.latestSelectedDateObj.getMinutes():e.minutes),m.hourElement.setAttribute("step",m.config.hourIncrement.toString()),m.minuteElement.setAttribute("step",m.config.minuteIncrement.toString()),m.hourElement.setAttribute("min",m.config.time_24hr?"0":"1"),m.hourElement.setAttribute("max",m.config.time_24hr?"23":"12"),m.hourElement.setAttribute("maxlength","2"),m.minuteElement.setAttribute("min","0"),m.minuteElement.setAttribute("max","59"),m.minuteElement.setAttribute("maxlength","2"),m.timeContainer.appendChild(n),m.timeContainer.appendChild(t),m.timeContainer.appendChild(a),m.config.time_24hr&&m.timeContainer.classList.add("time24hr"),m.config.enableSeconds&&(m.timeContainer.classList.add("hasSeconds"),a=se("flatpickr-second"),m.secondElement=a.getElementsByTagName("input")[0],m.secondElement.value=ae(m.latestSelectedDateObj?m.latestSelectedDateObj.getSeconds():e.seconds),m.secondElement.setAttribute("step",m.minuteElement.getAttribute("step")),m.secondElement.setAttribute("min","0"),m.secondElement.setAttribute("max","59"),m.secondElement.setAttribute("maxlength","2"),m.timeContainer.appendChild(ce("span","flatpickr-time-separator",":")),m.timeContainer.appendChild(a)),m.config.time_24hr||(m.amPM=ce("span","flatpickr-am-pm",m.l10n.amPM[ie(11<(m.latestSelectedDateObj?m.hourElement.value:m.config.defaultHour))]),m.amPM.title=m.l10n.toggleTitle,m.amPM.tabIndex=-1,m.timeContainer.appendChild(m.amPM)),m.timeContainer}()),le(m.calendarContainer,"rangeMode","range"===m.config.mode),le(m.calendarContainer,"animate",!0===m.config.animate),le(m.calendarContainer,"multiMonth",1<m.config.showMonths),m.calendarContainer.appendChild(n);n=void 0!==m.config.appendTo&&void 0!==m.config.appendTo.nodeType;(m.config.inline||m.config.static)&&(m.calendarContainer.classList.add(m.config.inline?"inline":"static"),m.config.inline&&(!n&&m.element.parentNode?m.element.parentNode.insertBefore(m.calendarContainer,m._input.nextSibling):void 0!==m.config.appendTo&&m.config.appendTo.appendChild(m.calendarContainer)),m.config.static)&&(n=ce("div","flatpickr-wrapper"),m.element.parentNode&&m.element.parentNode.insertBefore(n,m.element),n.appendChild(m.element),m.altInput&&n.appendChild(m.altInput),n.appendChild(m.calendarContainer)),m.config.static||m.config.inline||(void 0!==m.config.appendTo?m.config.appendTo:window.document.body).appendChild(m.calendarContainer)}(),function(){if(m.config.wrap&&["open","close","toggle","clear"].forEach(function(t){Array.prototype.forEach.call(m.element.querySelectorAll("[data-"+t+"]"),function(e){return r(e,"click",m[t])})}),m.isMobile)return function(){var e=m.config.enableTime?m.config.noCalendar?"time":"datetime-local":"date";m.mobileInput=ce("input",m.input.className+" flatpickr-mobile"),m.mobileInput.tabIndex=1,m.mobileInput.type=e,m.mobileInput.disabled=m.input.disabled,m.mobileInput.required=m.input.required,m.mobileInput.placeholder=m.input.placeholder,m.mobileFormatStr="datetime-local"==e?"Y-m-d\\TH:i:S":"date"==e?"Y-m-d":"H:i:S",0<m.selectedDates.length&&(m.mobileInput.defaultValue=m.mobileInput.value=m.formatDate(m.selectedDates[0],m.mobileFormatStr)),m.config.minDate&&(m.mobileInput.min=m.formatDate(m.config.minDate,"Y-m-d")),m.config.maxDate&&(m.mobileInput.max=m.formatDate(m.config.maxDate,"Y-m-d")),m.input.getAttribute("step")&&(m.mobileInput.step=String(m.input.getAttribute("step"))),m.input.type="hidden",void 0!==m.altInput&&(m.altInput.type="hidden");try{m.input.parentNode&&m.input.parentNode.insertBefore(m.mobileInput,m.input.nextSibling)}catch(e){}r(m.mobileInput,"change",function(e){m.setDate(ue(e).value,!1,m.mobileFormatStr),U("onChange"),U("onClose")})}();var e=oe(A,50);m._debouncedChange=oe(i,300),m.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&r(m.daysContainer,"mouseover",function(e){"range"===m.config.mode&&P(ue(e))}),r(window.document.body,"keydown",O),m.config.inline||m.config.static||r(window,"resize",e),void 0!==window.ontouchstart?r(window.document,"touchstart",T):r(window.document,"mousedown",T),r(window.document,"focus",T,{capture:!0}),!0===m.config.clickOpens&&(r(m._input,"focus",m.open),r(m._input,"click",m.open)),void 0!==m.daysContainer&&(r(m.monthNav,"click",V),r(m.monthNav,["keyup","increment"],n),r(m.daysContainer,"click",R)),void 0!==m.timeContainer&&void 0!==m.minuteElement&&void 0!==m.hourElement&&(r(m.timeContainer,["increment"],f),r(m.timeContainer,"blur",f,{capture:!0}),r(m.timeContainer,"click",c),r([m.hourElement,m.minuteElement],["focus","click"],function(e){return ue(e).select()}),void 0!==m.secondElement&&r(m.secondElement,"focus",function(){return m.secondElement&&m.secondElement.select()}),void 0!==m.amPM&&r(m.amPM,"click",function(e){f(e),i()})),m.config.allowInput&&r(m._input,"blur",I)}(),(m.selectedDates.length||m.config.noCalendar)&&(m.config.enableTime&&a(m.config.noCalendar?m.latestSelectedDateObj:void 0),Q(!1)),t();var e=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!m.isMobile&&e&&H(),U("onReady")}(),m}function n(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),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=r(o,t||{}),a.push(o._flatpickr)}catch(e){console.error(e)}}return 1===a.length?a[0]:a}"function"!=typeof Object.assign&&(Object.assign=function(n){for(var e=[],t=1;t<arguments.length;t++)e[t-1]=arguments[t];if(!n)throw TypeError("Cannot convert undefined or null to object");for(var a=0,i=e;a<i.length;a++)!function(t){t&&Object.keys(t).forEach(function(e){return n[e]=t[e]})}(i[a]);return n}),"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return n(this,e)},HTMLElement.prototype.flatpickr=function(e){return n([this],e)});var we=function(e,t){return"string"==typeof e?n(window.document.querySelectorAll(e),t):e instanceof Node?n([e],t):n(e,t)};return we.defaultConfig={},we.l10ns={en:Z({},ne),default:Z({},ne)},we.localize=function(e){we.l10ns.default=Z(Z({}
1,we.l10ns.default),e)},we.setDefaults=function(e){we.defaultConfig=Z(Z({},we.defaultConfig),e)},we.parseDate=ge({}),we.formatDate=pe({}),we.compareDates=he,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return n(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=we),we}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).fr={})}(this,function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={firstDayOfWeek:1,weekdays:{shorthand:["dim","lun","mar","mer","jeu","ven","sam"],longhand:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},months:{shorthand:["janv","févr","mars","avr","mai","juin","juil","août","sept","oct","nov","déc"],longhand:["janvier","février","mars","avril","mai","juin","juillet","août","septembre","octobre","novembre","décembre"]},ordinal:function(e){return 1<e?"":"er"},rangeSeparator:" au ",weekAbbreviation:"Sem",scrollTitle:"Défiler pour augmenter la valeur",toggleTitle:"Cliquer pour basculer",time_24hr:!0};t.l10ns.fr=n;t=t.l10ns;e.French=n,e.default=t,Object.defineProperty(e,"__esModule",{value:!0})}),function(r){function l(e){return("0"+e).slice(-2)}FWP.logic=FWP.logic||{},r(".facetwp-facet").each(function(){this.addEventListener("click",function(){var e=r(".facetwp-facet-"+r(this).data("name"));1<e.length&&(e.addClass("facetwp-ignore"),r(this).removeClass("facetwp-ignore")),FWP.last_active_facet=r(this)},!0)}),FWP.hooks.addAction("facetwp/refresh/date_picker",function(e,t){var n=e.find(".facetwp-date-min").val()||"",e=e.find(".facetwp-date-max").val()||"";FWP.facets[t]=""!==n||""!==e?[n,e]:[]}),FWP.hooks.addFilter("facetwp/selections/date_picker",function(e,t){var n=t.selected_values,a=t.el,t="";return""!==n[0]&&(t+=" "+FWP_JSON.datepicker.fromText+" "+a.find(".facetwp-date-min").next().val()),""!==n[1]&&(t+=" "+FWP_JSON.datepicker.toText+" "+a.find(".facetwp-date-max").next().val()),t}),r(document).on("facetwp-loaded",function(){var o,e=r('.facetwp-type-date_picker .facetwp-date:not(".ready, .flatpickr-alt")');0!==e.length&&(o={dateFormat:"Ymd",altInput:!0,altInputClass:"flatpickr-alt",altFormat:"Ymd",disableMobile:!0,locale:FWP_JSON.datepicker.locale,static:!0,monthSelectorType:"static",nextArrow:"<i class='icon icon-arrow_long_right'></i>",prevArrow:"<i class='icon icon-arrow_long_right'></i>",inline:!0,onChange:function(){FWP.autoload()},onReady:function(e,t,n){var a='<div class="flatpickr-clear">'+FWP_JSON.datepicker.clearText+"</div>";r(a).on("click",function(){n.clear(),n.close()}).appendTo(r(n.calendarContainer))}},e.each(function(){var e,t=r(this),n=t.closest(".facetwp-facet").attr("data-name"),i=FWP.settings[n],a=o;a.dateFormat=i.format,a.altFormat=i.format,a.static=i.static||!0,a.onDayCreate=function(e,t,n,a){current_date=a.dateObj.getFullYear()+l(a.dateObj.getMonth()+1)+l(a.dateObj.getDate()),value=i.busy_days[current_date]||!1,value&&(
1a.innerHTML+="<span class='event busy'>.</span>")},"both"===i.fields?(e=t.hasClass("facetwp-date-min")?"min":"max",a.minDate=i.range[e].minDate,a.maxDate=i.range[e].maxDate):(a.minDate=i.range.minDate,a.maxDate=i.range.maxDate);n=FWP.hooks.applyFilters("facetwp/set_options/date_picker",a,{facet_name:n,element:t});new flatpickr(this,n),t.addClass("ready")}))})}(jQuery)

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.