vendor: 5,573 bytes, line 1
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 e=function(){return(e=Object.assign||function(e){for(var t,n=1,i=arguments.length;n<i;n++)for(var r in t=arguments[n])Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r]);return e}).apply(this,arguments)};function t(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,r++)i[r]=a[o];return i}var n=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],i={_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:"<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},r={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},a=function(e,t){return void 0===t&&(t=2),("000"+e).slice(-1*t)},o=function(e){return!0===e?1:0};function s(e,t){var n;return function(){var i=this,r=arguments;clearTimeout(n),n=setTimeout(function(){return e.apply(i,r)},t)}}var c=function(e){return e instanceof Array?e:[e]};function l(e,t,n){if(!0===n)return e.classList.add(t);e.classList.remove(t)}function u(e,t,n){var i=window.document.createElement(e);return t=t||"",n=n||"",i.className=t,void 0!==n&&(i.textContent=n),i}function d(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function f(e,t){var n=u("div","numInputWrapper"),i=u("input","numInput "+e),r=u("span","arrowUp"),a=u("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?i.type="number":(i.type="text",i.pattern="\\d*"),void 0!==t)for(var o in t)i.setAttribute(o,t[o]);return n.appendChild(i),n.appendChild(r),n.appendChild(a),n}function h(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(t){return e.target}}var g=function(){},p=function(e,t,n){return n.months[t?"shorthand":"longhand"][e]},m={D:g,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*o(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 i=parseInt(t),r=new Date(e.getFullYear(),0,2+7*(i-1),0,0,0,0);return r.setDate(r.getDate()-r.getDay()+n.firstDayOfWeek),r},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:g,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:g,y:function(e,t){e.setFullYear(2e3+parseFloat(t))}},v={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",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:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},y={Z:function(e){return e.toISOString()},D:function(e,t,n){return t.weekdays.shorthand[y.w(e,t,n)]},F:function(e,t,n){return p(y.n(e,t,n)-1,!1,t)},G:function(e,t,n){return a(y.h(e,t,n))},H:function(e){return a(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[o(e.getHours()>11)]},M:function(e,t){return p(e.getMonth(),!0,t)},S:function(e){return a(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,t,n){return n.getWeek(e)},Y:function(e){return a(e.getFullYear(),4)},d:function(e){return a(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return a(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,t){return t.weekdays.longhand[e.getDay()]},m:function(e){return a(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)}},b=function(e){var t=e.config,n=void 0===t?i:t,a=e.l10n,o=void 0===a?r:a,s=e.isMobile,c=void 0!==s&&s;return function(e,t,i){var r=i||o;return void 0===n.formatDate||c?t.split("").map(function(t,i,a){return y[t]&&"\\"!==a[i-1]?y[t](e,r,n):"\\"!==t?t:""}).join(""):n.formatDate(e,t,r)}},D=function(e){var t=e.config,n=void 0===t?i:t,a=e.l10n,o=void 0===a?r:a;return function(e,t,r,a){if(0===e||e){var s,c=a||o,l=e;if(e instanceof Date)s=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)s=new Date(e);else if("string"==typeof e){var u=t||(n||i).dateFormat,d=String(e).trim();if("today"===d)s=new Date,r=!0;else if(n&&n.parseDate)s=n.parseDate(e,u);else if(/Z$/.test(d)||/GMT$/.test(d))s=new Date(e);else{for(var f=void 0,h=[],g=0,p=0,y="";g<u.length;g++){var b=u[g],D="\\"===b,C="\\"===u[g-1]||D;if(v[b]&&!C){y+=v[b];var w=new RegExp(y).exec(e);w&&(f=!0)&&h["Y"!==b?"push":"unshift"]({fn:m[b],val:w[++p]})}else D||(y+=".")}s=n&&n.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),h.forEach(function(e){var t=e.fn,n=e.val;return s=t(s,n,c)||s}),s=f?s:void 0}}if(s instanceof Date&&!isNaN(s.getTime()))return!0===r&&s.setHours(0,0,0,0),s;n.errorHandler(new Error("Invalid date provided: "+l))}}};function C(e,t,n){return void 0===n&&(n=!0),!1!==n?new Date(e.getTime()).setHours(0,0,0,0)-new Date(t.getTime()).setHours(0,0,0,0):e.getTime()-t.getTime()}var w=function(e,t,n){return e>Math.min(t,n)&&e<Math.max(t,n)},E=function(e,t,n){return 3600*e+60*t+n},F=function(e){var t=Math.floor(e/3600),n=(e-3600*t)/60;return[t,n,e-3600*t-60*n]},x={DAY:864e5};function M(e){var t=e.defaultHour,n=e.defaultMinute,i=e.defaultSeconds;if(void 0!==e.minDate){var r=e.minDate.getHours(),a=e.minDate.getMinutes(),o=e.minDate.getSeconds();t<r&&(t=r),t===r&&n<a&&(n=a),t===r&&n===a&&i<o&&(i=e.minDate.getSeconds())}if(void 0!==e.maxDate){var s=e.maxDate.getHours(),c=e.maxDate.getMinutes();(t=Math.min(t,s))===s&&(n=Math.min(c,n)),t===s&&n===c&&(i=e.maxDate.getSeconds())}return{hours:t,minutes:n,seconds:i}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var i=function(t){t&&Object.keys(t).forEach(function(n){return e[n]=t[n]})},r=0,a=t;r<a.length;r++){i(a[r])}return e});var S=300;function T(g,m){var y={config:e(e({},i),A.defaultConfig),l10n:r};function T(){var e;return(null===(e=y.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function k(e){return e.bind(y)}function O(){var e=y.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame(function(){if(void 0!==y.calendarContainer&&(y.calendarContainer.style.visibility="hidden",y.calendarContainer.style.display="block"),void 0!==y.daysContainer){var t=(y.days.offsetWidth+1)*e.showMonths;y.daysContainer.style.width=t+"px",y.calendarContainer.style.width=t+(void 0!==y.weekWrapper?y.weekWrapper.offsetWidth:0)+"px",y.calendarContainer.style.removeProperty("visibility"),y.calendarContainer.style.removeProperty("display")}})}function L(e){if(0===y.selectedDates.length){var t=void 0===y.config.minDate||C(new Date,y.config.minDate)>=0?new Date:new Date(y.config.minDate.getTime()),n=M(y.config);t.setHours(n.hours,n.minutes,n.seconds,t.getMilliseconds()),y.selectedDates=[t],y.latestSelectedDateObj=t}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var t="keydown"===e.type,n=h(e),i=n;void 0!==y.amPM&&n===y.amPM&&(y.amPM.textContent=y.l10n.amPM[o(y.amPM.textContent===y.l10n.amPM[0])]);var r=parseFloat(i.getAttribute("min")),s=parseFloat(i.getAttribute("max")),c=p
vendor: 14,241 bytes, line 1
1arseFloat(i.getAttribute("step")),l=parseInt(i.value,10),u=e.delta||(t?38===e.which?1:-1:0),d=l+c*u;if(void 0!==i.value&&2===i.value.length){var f=i===y.hourElement,g=i===y.minuteElement;d<r?(d=s+d+o(!f)+(o(f)&&o(!y.amPM)),g&&Y(void 0,-1,y.hourElement)):d>s&&(d=i===y.hourElement?d-s-o(!y.amPM):r,g&&Y(void 0,1,y.hourElement)),y.amPM&&f&&(1===c?d+l===23:Math.abs(d-l)>c)&&(y.amPM.textContent=y.l10n.amPM[o(y.amPM.textContent===y.l10n.amPM[0])]),i.value=a(d)}}(e);var i=y._input.value;N(),xe(),y._input.value!==i&&y._debouncedChange()}function N(){if(void 0!==y.hourElement&&void 0!==y.minuteElement){var e,t,n=(parseInt(y.hourElement.value.slice(-2),10)||0)%24,i=(parseInt(y.minuteElement.value,10)||0)%60,r=void 0!==y.secondElement?(parseInt(y.secondElement.value,10)||0)%60:0;void 0!==y.amPM&&(e=n,t=y.amPM.textContent,n=e%12+12*o(t===y.l10n.amPM[1]));var a=void 0!==y.config.minTime||y.config.minDate&&y.minDateHasTime&&y.latestSelectedDateObj&&0===C(y.latestSelectedDateObj,y.config.minDate,!0),s=void 0!==y.config.maxTime||y.config.maxDate&&y.maxDateHasTime&&y.latestSelectedDateObj&&0===C(y.latestSelectedDateObj,y.config.maxDate,!0);if(void 0!==y.config.maxTime&&void 0!==y.config.minTime&&y.config.minTime>y.config.maxTime){var c=E(y.config.minTime.getHours(),y.config.minTime.getMinutes(),y.config.minTime.getSeconds()),l=E(y.config.maxTime.getHours(),y.config.maxTime.getMinutes(),y.config.maxTime.getSeconds()),u=E(n,i,r);if(u>l&&u<c){var d=F(c);n=d[0],i=d[1],r=d[2]}}else{if(s){var f=void 0!==y.config.maxTime?y.config.maxTime:y.config.maxDate;(n=Math.min(n,f.getHours()))===f.getHours()&&(i=Math.min(i,f.getMinutes())),i===f.getMinutes()&&(r=Math.min(r,f.getSeconds()))}if(a){var h=void 0!==y.config.minTime?y.config.minTime:y.config.minDate;(n=Math.max(n,h.getHours()))===h.getHours()&&i<h.getMinutes()&&(i=h.getMinutes()),i===h.getMinutes()&&(r=Math.max(r,h.getSeconds()))}}I(n,i,r)}}function _(e){var t=e||y.latestSelectedDateObj;t&&t instanceof Date&&I(t.getHours(),t.getMinutes(),t.getSeconds())}function I(e,t,n){void 0!==y.latestSelectedDateObj&&y.latestSelectedDateObj.setHours(e%24,t,n||0,0),y.hourElement&&y.minuteElement&&!y.isMobile&&(y.hourElement.value=a(y.config.time_24hr?e:(12+e)%12+12*o(e%12==0)),y.minuteElement.value=a(t),void 0!==y.amPM&&(y.amPM.textContent=y.l10n.amPM[o(e>=12)]),void 0!==y.secondElement&&(y.secondElement.value=a(n)))}function j(e){var t=h(e),n=parseInt(t.value)+(e.delta||0);(n/1e3>1||"Enter"===e.key&&!/[^\d]/.test(n.toString()))&&ne(n)}function P(e,t,n,i){return t instanceof Array?t.forEach(function(t){return P(e,t,n,i)}):e instanceof Array?e.forEach(function(e){return P(e,t,n,i)}):(e.addEventListener(t,n,i),void y._handlers.push({remove:function(){return e.removeEventListener(t,n,i)}}))}function V(){De("onChange")}function R(e,t){var n=void 0!==e?y.parseDate(e):y.latestSelectedDateObj||(y.config.minDate&&y.config.minDate>y.now?y.config.minDate:y.config.maxDate&&y.config.maxDate<y.now?y.config.maxDate:y.now),i=y.currentYear,r=y.currentMonth;try{void 0!==n&&(y.currentYear=n.getFullYear(),y.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,y.config.errorHandler(e)}t&&y.currentYear!==i&&(De("onYearChange"),$()),!t||y.currentYear===i&&y.currentMonth===r||De("onMonthChange"),y.redraw()}function H(e){var t=h(e);~t.className.indexOf("arrow")&&Y(e,t.classList.contains("arrowUp")?1:-1)}function Y(e,t,n){var i=e&&h(e),r=n||i&&i.parentNode&&i.parentNode.firstChild,a=Ce("increment");a.delta=t,r&&r.dispatchEvent(a)}function q(e,t,n,i){var r=ie(t,!0),a=u("span",e,t.getDate().toString());return a.dateObj=t,a.$i=i,a.setAttribute("aria-label",y.formatDate(t,y.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===C(t,y.now)&&(y.todayDateElem=a,a.classList.add("today"),a.setAttribute("aria-current","date")),r?(a.tabIndex=-1,we(t)&&(a.classList.add("selected"),y.selectedDateElem=a,"range"===y.config.mode&&(l(a,"startRange",y.selectedDates[0]&&0===C(t,y.selectedDates[0],!0)),l(a,"endRange",y.selectedDates[1]&&0===C(t,y.selectedDates[1],!0)),"nextMonthDay"===e&&a.classList.add("inRange")))):a.classList.add("flatpickr-disabled"),"range"===y.config.mode&&function(e){return!("range"!==y.config.mode||y.selectedDates.length<2)&&C(e,y.selectedDates[0])>=0&&C(e,y.selectedDates[1])<=0}(t)&&!we(t)&&a.classList.add("inRange"),y.weekNumbers&&1===y.config.showMonths&&"prevMonthDay"!==e&&i%7==6&&y.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+y.config.getWeek(t)+"</span>"),De("onDayCreate",a),a}function B(e){e.focus(),"range"===y.config.mode&&se(e)}function U(e){for(var t=e>0?0:y.config.showMonths-1,n=e>0?y.config.showMonths:-1,i=t;i!=n;i+=e)for(var r=y.daysContainer.children[i],a=e>0?0:r.children.length-1,o=e>0?r.children.length:-1,s=a;s!=o;s+=e){var c=r.children[s];if(-1===c.className.indexOf("hidden")&&ie(c.dateObj))return c}}function W(e,t){var n=T(),i=re(n||document.body),r=void 0!==e?e:i?n:void 0!==y.selectedDateElem&&re(y.selectedDateElem)?y.selectedDateElem:void 0!==y.todayDateElem&&re(y.todayDateElem)?y.todayDateElem:U(t>0?1:-1);void 0===r?y._input.focus():i?function(e,t){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():y.currentMonth,i=t>0?y.config.showMonths:-1,r=t>0?1:-1,a=n-y.currentMonth;a!=i;a+=r)for(var o=y.daysContainer.children[a],s=n-y.currentMonth===a?e.$i+t:t<0?o.children.length-1:0,c=o.children.length,l=s;l>=0&&l<c&&l!=(t>0?c:-1);l+=r){var u=o.children[l];if(-1===u.className.indexOf("hidden")&&ie(u.dateObj)&&Math.abs(e.$i-l)>=Math.abs(t))return B(u)}y.changeMonth(r),W(U(r),0)}(r,t):B(r)}function z(e,t){for(var n=(new Date(e,t,1).getDay()-y.l10n.firstDayOfWeek+7)%7,i=y.utils.getDaysInMonth((t-1+12)%12,e),r=y.utils.getDaysInMonth(t,e),a=window.document.createDocumentFragment(),o=y.config.showMonths>1,s=o?"prevMonthDay hidden":"prevMonthDay",c=o?"nextMonthDay hidden":"nextMonthDay",l=i+1-n,d=0;l<=i;l++,d++)a.appendChild(q("flatpickr-day "+s,new Date(e,t-1,l),0,d));for(l=1;l<=r;l++,d++)a.appendChild(q("flatpickr-day",new Date(e,t,l),0,d));for(var f=r+1;f<=42-n&&(1===y.config.showMonths||d%7!=0);f++,d++)a.appendChild(q("flatpickr-day "+c,new Date(e,t+1,f%r),0,d));var h=u("div","dayContainer");return h.appendChild(a),h}function J(){if(void 0!==y.daysContainer){d(y.daysContainer),y.weekNumbers&&d(y.weekNumbers);for(var e=document.createDocumentFragment(),t=0;t<y.config.showMonths;t++){var n=new Date(y.currentYear,y.currentMonth,1);n.setMonth(y.currentMonth+t),e.appendChild(z(n.getFullYear(),n.getMonth()))}y.daysContainer.appendChild(e),y.days=y.daysContainer.firstChild,"range"===y.config.mode&&1===y.selectedDates.length&&se()}}function $(){if(!(y.config.showMonths>1||"dropdown"!==y.config.monthSelectorType)){var e=function(e){return!(void 0!==y.config.minDate&&y.currentYear===y.config.minDate.getFullYear()&&e<y.config.minDate.getMonth())&&!(void 0!==y.config.maxDate&&y.currentYear===y.config.maxDate.getFullYear()&&e>y.config.maxDate.getMonth())};y.monthsDropdownContainer.tabIndex=-1,y.monthsDropdownContainer.innerHTML="";for(var t=0;t<12;t++)if(e(t)){var n=u("option","flatpickr-monthDropdown-month");n.value=new Date(y.currentYear,t).getMonth().toString(),n.textContent=p(t,y.config.shorthandCurrentMonth,y.l10n),n.tabIndex=-1,y.currentMonth===t&&(n.selected=!0),y.monthsDropdownContainer.appendChild(n)}}}function G(){var e,t=u("div","flatpickr-month"),n=window.document.createDocumentFragment();y.config.showMonths>1||"static"===y.config.monthSelectorType?e=u("span","cur-month"):(y.monthsDropdownContainer=u("select","flatpickr-monthDropdown-months"),y.monthsDropdownContainer.setAttribute("aria-label",y.l10n.monthAriaLabel),P(y.monthsDropdownContainer,"change",function(e){var t=h(e),n=parseInt(t.value,10);y.changeMonth(n-y.currentMonth),De("onMonthChange")}),$(),e=y.monthsDropdownContainer);var i=f("cur-year",{tabindex:"-1"}),r=i.getElementsByTagName("input")[0];r.setAttribute("aria-label",y.l10n.yearAriaLabel),y.config.minDate&&r.setAttribute("min",y.config.minDate.getFullYear().toString()),y.config.maxDate&&(r.setAttribute("max",y.config.maxDate.getFullYear().toString()),r.disabled=!!y.config.minDate&&y.config.minDate.getFullYear()===y.config.maxDate.getFullYear());var a=u("div","flatpickr-current-month");return a.appendChild(e),a.appendChild(i),n.appendChild(a),t.appendChild(n),{container:t,yearElement:r,monthElement:e}}function K(){d(y.monthNav),y.monthNav.appendChild(y.prevMonthNav),y.config.showMonths&&(y.yearElements=[],y.monthElements=[]);for(var e=y.config.showMonths;e--;){var t=G();y.yearElements.push(t.yearElement),y.monthElements.push(t.monthElement),y.monthNav.appendChild(t.container)}y.monthNav.appendChild(y.nextMonthNav)}function X(){y.weekdayContainer?d(y.weekdayContainer):y.weekdayContainer=u("div","flatpickr-weekdays");for(var e=y.config.showMonths;e--;){var t=u("div","flatpickr-weekdaycontainer");y.weekdayContainer.appendChild(t)}return Z(),y.weekdayContainer}function Z(){if(y.weekdayContainer){var e=y.l10n.firstDayOfWeek,n=t(y.l10n.weekdays.shorthand);e>0&&e<n.length&&(n=t(n.splice(e,n.length),n.splice(0,e)));for(var i=y.config.showMonths;i--;)y.weekdayContainer.children[i].innerHTML="\n <span class='flatpickr-weekday'>\n "+n.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Q(e,t){void 0===t&&(t=!0);var n=t?e:e-y.currentMonth;n<0&&!0===y._hidePrevMonthArrow||n>0&&!0===y._hideNextMonthArrow||(y.currentMonth+=n,(y.currentMonth<0||y.currentMonth>11)&&(y.currentYear+=y.currentMonth>11?1:-1,y.currentMonth=(y.currentMonth+12)%12,De("onYearChange"),$()),J(),De("onMonthChange"),Ee())}function ee(e){return y.calendarContainer.contains(e)}function te(e){if(y.isOpen&&!y.config.inline){var t=h(e),n=ee(t),i=!(t===y.input||t===y.altInput||y.element.contains(t)||e.path&&e.path.indexOf&&(~e.path.indexOf(y.input)||~e.path.indexOf(y.altInput)))&&!n&&!ee(e.relatedTarget),r=!y.config.ignoredFocusElements.some(function(e){return e.contains(t)});i&&r&&(y.config.allowInput&&y.setDate(y._input.value,!1,y.config.altInput?y.config.altFormat:y.config.dateFormat),void 0!==y.timeContainer&&void 0!==y.minuteElement&&void 0!==y.hourElement&&""!==y.input.value&&void 0!==y.input.value&&L(),y.close(),y.config&&"range"===y.config.mode&&1===y.selectedDates.length&&y.clear(!1))}}function ne(e){if(!(!e||y.config.minDate&&e<y.config.minDate.getFullYear()||y.config.maxDate&&e>y.config.maxDate.getFullYear())){var t=e,n=y.currentYear!==t;y.currentYear=t||y.currentYear,y.config.maxDate&&y.currentYear===y.config.maxDate.getFullYear()?y.currentMonth=Math.min(y.config.maxDate.getMonth(),y.currentMonth):y.config.minDate&&y.currentYear===y.config.minDate.getFullYear()&&(y.currentMonth=Math.max(y.config.minDate.getMonth(),y.currentMonth)),n&&(y.redraw(),De("onYearChange"),$())}}function ie(e,t){var n;void 0===t&&(t=!0);var i=y.parseDate(e,void 0,t);if(y.config.minDate&&i&&C(i,y.config.minDate,void 0!==t?t:!y.minDateHasTime)<0||y.config.maxDate&&i&&C(i,y.config.maxDate,void 0!==t?t:!y.maxDateHasTime)>0)return!1;if(!y.config.enable&&0===y.config.disable.length)return!0;if(void 0===i)return!1;for(var r=!!y.config.enable,a=null!==(n=y.config.enable)&&void 0!==n?n:y.config.disable,o=0,s=void 0;o<a.length;o++){if("function"==typeof(s=a[o])&&s(i))return r;if(s instanceof Date&&void 0!==i&&s.getTime()===i.getTime())return r;if("string"==typeof s){var c=y.parseDate(s,void 0,!0);return c&&c.getTime()===i.getTime()?r:!r}if("object"==typeof s&&void 0!==i&&s.from&&s.to&&i.getTime()>=s.from.getTime()&&i.getTime()<=s.to.getTime())return r}return!r}function re(e){return void 0!==y.daysContainer&&(-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&y.daysContainer.contains(e))}function ae(e){var t=e.target===y._input,n=y._input.value.trimEnd()!==Fe();!t||!n||e.relatedTarget&&ee(e.relatedTarget)||y.setDate(y._input.value,!0,e.target===y.altInput?y.config.altFormat:y.config.dateFormat)}function oe(e){var t=h(e),n=y.config.wrap?g.contains(t):t===y._input,i=y.config.allowInput,r=y.isOpen&&(!i||!n),a=y.config.inline&&n&&!i;if(13===e.keyCode&&n){if(i)return y.setDate(y._input.value,!0,t===y.altInput?y.config.altFormat:y.config.dateFormat),y.close(),t.blur();y.open()}else if(ee(t)||r||a){var o=!!y.timeContainer&&y.timeContainer.contains(t);switch(e.keyCode){case 13:o?(e.preventDefault(),L(),ge()):pe(e);break;case 27:e.preventDefault(),ge();break;case 8:case 46:n&&!y.config.allowInput&&(e.preventDefault(),y.clear());break;case 37:case 39:if(o||n)y.hourElement&&y.hourElement.focus();else{e.preventDefault();var s=T();if(void 0!==y.daysContainer&&(!1===i||s&&re(s))){var c=39===e.keyCode?1:-1;e.ctrlKey?(e.stopPropagation(),Q(c),W(U(1),0)):W(void 0,c)}}break;case 38:case 40:e.preventDefault();var l=40===e.keyCode?1:-1;y.daysContainer&&void 0!==t.$i||t===y.input||t===y.altInput?e.ctrlKey?(e.stopPropagation(),ne(y.currentYear-l),W(U(1),0)):o||W(void 0,7*l):t===y.currentYearElement?ne(y.currentYear-l):y.config.enableTime&&(!o&&y.hourElement&&y.hourElement.focus(),L(e),y._debouncedChange());break;case 9:if(o){var u=[y.hourElement,y.minuteElement,y.secondElement,y.amPM].concat(y.pluginElements).filter(function(e){return e}),d=u.indexOf(t);if(-1!==d){var f=u[d+(e.shiftKey?-1:1)];e.preventDefault(),(f||y._input).focus()}}else!y.config.noCalendar&&y.daysContainer&&y.daysContainer.contains(t)&&e.shiftKey&&(e.preventDefault(),y._input.focus())}}if(void 0!==y.amPM&&t===y.amPM)switch(e.key){case y.l10n.amPM[0].charAt(0):case y.l10n.amPM[0].charAt(0).toLowerCase():y.amPM.textContent=y.l10n.amPM[0],N(),xe();break;case y.l10n.amPM[1].charAt(0):case y.l10n.amPM[1].charAt(0).toLowerCase():y.amPM.textContent=y.l10n.amPM[1],N(),xe()}(n||ee(t))&&De("onKeyDown",e)}function se(e,t){if(void 0===t&&(t="flatpickr-day"),1===y.selectedDates.length&&(!e||e.classList.contains(t)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():y.days.firstElementChild.dateObj.getTime(),i=y.parseDate(y.selectedDates[0],void 0,!0).getTime(),r=Math.min(n,y.selectedDates[0].getTime()),a=Math.max(n,y.selectedDates[0].getTime()),o=!1,s=0,c=0,l=r;l<a;l+=x.DAY)ie(new Date(l),!0)||(o=o||l>r&&l<a,l<i&&(!s||l>s)?s=l:l>i&&(!c||l<c)&&(c=l));Array.from(y.rContainer.querySelectorAll("*:nth-child(-n+"+y.config.showMonths+") >
1 ."+t)).forEach(function(t){var r=t.dateObj.getTime(),a=s>0&&r<s||c>0&&r>c;if(a)return t.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach(function(e){t.classList.remove(e)});o&&!a||(["startRange","inRange","endRange","notAllowed"].forEach(function(e){t.classList.remove(e)}),void 0!==e&&(e.classList.add(n<=y.selectedDates[0].getTime()?"startRange":"endRange"),i<n&&r===i?t.classList.add("startRange"):i>n&&r===i&&t.classList.add("endRange"),r>=s&&(0===c||r<=c)&&w(r,i,n)&&t.classList.add("inRange")))})}}function ce(){!y.isOpen||y.config.static||y.config.inline||fe()}function le(e){return function(t){var n=y.config["_"+e+"Date"]=y.parseDate(t,y.config.dateFormat),i=y.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(y["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),y.selectedDates&&(y.selectedDates=y.selectedDates.filter(function(e){return ie(e)}),y.selectedDates.length||"min"!==e||_(n),xe()),y.daysContainer&&(he(),void 0!==n?y.currentYearElement[e]=n.getFullYear().toString():y.currentYearElement.removeAttribute(e),y.currentYearElement.disabled=!!i&&void 0!==n&&i.getFullYear()===n.getFullYear())}}function ue(){return y.config.wrap?g.querySelector("[data-input]"):g}function de(){"object"!=typeof y.config.locale&&void 0===A.l10ns[y.config.locale]&&y.config.errorHandler(new Error("flatpickr: invalid locale "+y.config.locale)),y.l10n=e(e({},A.l10ns.default),"object"==typeof y.config.locale?y.config.locale:"default"!==y.config.locale?A.l10ns[y.config.locale]:void 0),v.D="("+y.l10n.weekdays.shorthand.join("|")+")",v.l="("+y.l10n.weekdays.longhand.join("|")+")",v.M="("+y.l10n.months.shorthand.join("|")+")",v.F="("+y.l10n.months.longhand.join("|")+")",v.K="("+y.l10n.amPM[0]+"|"+y.l10n.amPM[1]+"|"+y.l10n.amPM[0].toLowerCase()+"|"+y.l10n.amPM[1].toLowerCase()+")",void 0===e(e({},m),JSON.parse(JSON.stringify(g.dataset||{}))).time_24hr&&void 0===A.defaultConfig.time_24hr&&(y.config.time_24hr=y.l10n.time_24hr),y.formatDate=b(y),y.parseDate=D({config:y.config,l10n:y.l10n})}function fe(e){if("function"!=typeof y.config.position){if(void 0!==y.calendarContainer){De("onPreCalendarPosition");var t=e||y._positionElement,n=Array.prototype.reduce.call(y.calendarContainer.children,function(e,t){return e+t.offsetHeight},0),i=y.calendarContainer.offsetWidth,r=y.config.position.split(" "),a=r[0],o=r.length>1?r[1]:null,s=t.getBoundingClientRect(),c=window.innerHeight-s.bottom,u="above"===a||"below"!==a&&c<n&&s.top>n,d=window.pageYOffset+s.top+(u?-n-2:t.offsetHeight+2);if(l(y.calendarContainer,"arrowTop",!u),l(y.calendarContainer,"arrowBottom",u),!y.config.inline){var f=window.pageXOffset+s.left,h=!1,g=!1;"center"===o?(f-=(i-s.width)/2,h=!0):"right"===o&&(f-=i-s.width,g=!0),l(y.calendarContainer,"arrowLeft",!h&&!g),l(y.calendarContainer,"arrowCenter",h),l(y.calendarContainer,"arrowRight",g);var p=window.document.body.offsetWidth-(window.pageXOffset+s.right),m=f+i>window.document.body.offsetWidth,v=p+i>window.document.body.offsetWidth;if(l(y.calendarContainer,"rightMost",m),!y.config.static)if(y.calendarContainer.style.top=d+"px",m)if(v){var b=function(){for(var e=null,t=0;t<document.styleSheets.length;t++){var n=document.styleSheets[t];if(n.cssRules){try{n.cssRules}catch(e){continue}e=n;break}}return null!=e?e:(i=document.createElement("style"),document.head.appendChild(i),i.sheet);var i}();if(void 0===b)return;var D=window.document.body.offsetWidth,C=Math.max(0,D/2-i/2),w=b.cssRules.length,E="{left:"+s.left+"px;right:auto;}";l(y.calendarContainer,"rightMost",!1),l(y.calendarContainer,"centerMost",!0),b.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+E,w),y.calendarContainer.style.left=C+"px",y.calendarContainer.style.right="auto"}else y.calendarContainer.style.left="auto",y.calendarContainer.style.right=p+"px";else y.calendarContainer.style.left=f+"px",y.calendarContainer.style.right="auto"}}}else y.config.position(y,e)}function he(){y.config.noCalendar||y.isMobile||($(),Ee(),J())}function ge(){y._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(y.close,0):y.close()}function pe(e){e.preventDefault(),e.stopPropagation();var t=function e(t,n){return n(t)?t:t.parentNode?e(t.parentNode,n):void 0}(h(e),function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")});if(void 0!==t){var n=t,i=y.latestSelectedDateObj=new Date(n.dateObj.getTime()),r=(i.getMonth()<y.currentMonth||i.getMonth()>y.currentMonth+y.config.showMonths-1)&&"range"!==y.config.mode;if(y.selectedDateElem=n,"single"===y.config.mode)y.selectedDates=[i];else if("multiple"===y.config.mode){var a=we(i);a?y.selectedDates.splice(parseInt(a),1):y.selectedDates.push(i)}else"range"===y.config.mode&&(2===y.selectedDates.length&&y.clear(!1,!1),y.latestSelectedDateObj=i,y.selectedDates.push(i),0!==C(i,y.selectedDates[0],!0)&&y.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()}));if(N(),r){var o=y.currentYear!==i.getFullYear();y.currentYear=i.getFullYear(),y.currentMonth=i.getMonth(),o&&(De("onYearChange"),$()),De("onMonthChange")}
vendor: 3,307 bytes, line 1
1if(Ee(),J(),xe(),r||"range"===y.config.mode||1!==y.config.showMonths?void 0!==y.selectedDateElem&&void 0===y.hourElement&&y.selectedDateElem&&y.selectedDateElem.focus():B(n),void 0!==y.hourElement&&void 0!==y.hourElement&&y.hourElement.focus(),y.config.closeOnSelect){var s="single"===y.config.mode&&!y.config.enableTime,c="range"===y.config.mode&&2===y.selectedDates.length&&!y.config.enableTime;(s||c)&&ge()}V()}}y.parseDate=D({config:y.config,l10n:y.l10n}),y._handlers=[],y.pluginElements=[],y.loadedPlugins=[],y._bind=P,y._setHoursFromDate=_,y._positionCalendar=fe,y.changeMonth=Q,y.changeYear=ne,y.clear=function(e,t){void 0===e&&(e=!0);void 0===t&&(t=!0);y.input.value="",void 0!==y.altInput&&(y.altInput.value="");void 0!==y.mobileInput&&(y.mobileInput.value="");y.selectedDates=[],y.latestSelectedDateObj=void 0,!0===t&&(y.currentYear=y._initialDate.getFullYear(),y.currentMonth=y._initialDate.getMonth());if(!0===y.config.enableTime){var n=M(y.config),i=n.hours,r=n.minutes,a=n.seconds;I(i,r,a)}y.redraw(),e&&De("onChange")},y.close=function(){y.isOpen=!1,y.isMobile||(void 0!==y.calendarContainer&&y.calendarContainer.classList.remove("open"),void 0!==y._input&&y._input.classList.remove("active"));De("onClose")},y.onMouseOver=se,y._createElement=u,y.createDay=q,y.destroy=function(){void 0!==y.config&&De("onDestroy");for(var e=y._handlers.length;e--;)y._handlers[e].remove();if(y._handlers=[],y.mobileInput)y.mobileInput.parentNode&&y.mobileInput.parentNode.removeChild(y.mobileInput),y.mobileInput=void 0;else if(y.calendarContainer&&y.calendarContainer.parentNode)if(y.config.static&&y.calendarContainer.parentNode){var t=y.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 y.calendarContainer.parentNode.removeChild(y.calendarContainer);y.altInput&&(y.input.type="text",y.altInput.parentNode&&y.altInput.parentNode.removeChild(y.altInput),delete y.altInput);y.input&&(y.input.type=y.input._type,y.input.classList.remove("flatpickr-input"),y.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 y[e]}catch(e){}})},y.isEnabled=ie,y.jumpToDate=R,y.updateValue=xe,y.open=function(e,t){void 0===t&&(t=y._positionElement);if(!0===y.isMobile){if(e){e.preventDefault();var n=h(e);n&&n.blur()}return void 0!==y.mobileInput&&(y.mobileInput.focus(),y.mobileInput.click()),void De("onOpen")}if(y._input.disabled||y.config.inline)return;var i=y.isOpen;y.isOpen=!0,i||(y.calendarContainer.classList.add("open"),y._input.classList.add("active"),De("onOpen"),fe(t));!0===y.config.enableTime&&!0===y.config.noCalendar&&(!1!==y.config.allowInput||void 0!==e&&y.timeContainer.contains(e.relatedTarget)||setTimeout(function(){return y.hourElement.select()},50))}
vendor: 5,699 bytes, line 1
1,y.redraw=he,y.set=function(e,t){if(null!==e&&"object"==typeof e)for(var i in Object.assign(y.config,e),e)void 0!==me[i]&&me[i].forEach(function(e){return e()});else y.config[e]=t,void 0!==me[e]?me[e].forEach(function(e){return e()}):n.indexOf(e)>-1&&(y.config[e]=c(t));y.redraw(),xe(!0)},y.setDate=function(e,t,n){void 0===t&&(t=!1);void 0===n&&(n=y.config.dateFormat);if(0!==e&&!e||e instanceof Array&&0===e.length)return y.clear(t);ve(e,n),y.latestSelectedDateObj=y.selectedDates[y.selectedDates.length-1],y.redraw(),R(void 0,t),_(),0===y.selectedDates.length&&y.clear(!1);xe(t),t&&De("onChange")},y.toggle=function(e){if(!0===y.isOpen)return y.close();y.open(e)};var me={locale:[de,Z],showMonths:[K,O,X],minDate:[R],maxDate:[R],positionElement:[be],clickOpens:[function(){!0===y.config.clickOpens?(P(y._input,"focus",y.open),P(y._input,"click",y.open)):(y._input.removeEventListener("focus",y.open),y._input.removeEventListener("click",y.open))}]};function ve(e,t){var n=[];if(e instanceof Array)n=e.map(function(e){return y.parseDate(e,t)});else if(e instanceof Date||"number"==typeof e)n=[y.parseDate(e,t)];else if("string"==typeof e)switch(y.config.mode){case"single":case"time":n=[y.parseDate(e,t)];break;case"multiple":n=e.split(y.config.conjunction).map(function(e){return y.parseDate(e,t)});break;case"range":n=e.split(y.l10n.rangeSeparator).map(function(e){return y.parseDate(e,t)})}else y.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));y.selectedDates=y.config.allowInvalidPreload?n:n.filter(function(e){return e instanceof Date&&ie(e,!1)}),"range"===y.config.mode&&y.selectedDates.sort(function(e,t){return e.getTime()-t.getTime()})}function ye(e){return e.slice().map(function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?y.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:y.parseDate(e.from,void 0),to:y.parseDate(e.to,void 0)}:e}).filter(function(e){return e})}function be(){y._positionElement=y.config.positionElement||y._input}function De(e,t){if(void 0!==y.config){var n=y.config[e];if(void 0!==n&&n.length>0)for(var i=0;n[i]&&i<n.length;i++)n[i](y.selectedDates,y.input.value,y,t);"onChange"===e&&(y.input.dispatchEvent(Ce("change")),y.input.dispatchEvent(Ce("input")))}}function Ce(e){var t=document.createEvent("Event");return t.initEvent(e,!0,!0),t}function we(e){for(var t=0;t<y.selectedDates.length;t++){var n=y.selectedDates[t];if(n instanceof Date&&0===C(n,e))return""+t}return!1}function Ee(){y.config.noCalendar||y.isMobile||!y.monthNav||(y.yearElements.forEach(function(e,t){var n=new Date(y.currentYear,y.currentMonth,1);n.setMonth(y.currentMonth+t),y.config.showMonths>1||"static"===y.config.monthSelectorType?y.monthElements[t].textContent=p(n.getMonth(),y.config.shorthandCurrentMonth,y.l10n)+" ":y.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()}),y._hidePrevMonthArrow=void 0!==y.config.minDate&&(y.currentYear===y.config.minDate.getFullYear()?y.currentMonth<=y.config.minDate.getMonth():y.currentYear<y.config.minDate.getFullYear()),y._hideNextMonthArrow=void 0!==y.config.maxDate&&(y.currentYear===y.config.maxDate.getFullYear()?y.currentMonth+1>y.config.maxDate.getMonth():y.currentYear>y.config.maxDate.getFullYear()))}function Fe(e){var t=e||(y.config.altInput?y.config.altFormat:y.config.dateFormat);return y.selectedDates.map(function(e){return y.formatDate(e,t)}).filter(function(e,t,n){return"range"!==y.config.mode||y.config.enableTime||n.indexOf(e)===t}).join("range"!==y.config.mode?y.config.conjunction:y.l10n.rangeSeparator)}function xe(e){void 0===e&&(e=!0),void 0!==y.mobileInput&&y.mobileFormatStr&&(y.mobileInput.value=void 0!==y.latestSelectedDateObj?y.formatDate(y.latestSelectedDateObj,y.mobileFormatStr):""),y.input.value=Fe(y.config.dateFormat),void 0!==y.altInput&&(y.altInput.value=Fe(y.config.altFormat)),!1!==e&&De("onValueUpdate")}function Me(e){var t=h(e),n=y.prevMonthNav.contains(t),i=y.nextMonthNav.contains(t);n||i?Q(n?-1:1):y.yearElements.indexOf(t)>=0?t.select():t.classList.contains("arrowUp")?y.changeYear(y.currentYear+1):t.classList.contains("arrowDown")&&y.changeYear(y.currentYear-1)}return function(){y.element=y.input=g,y.isOpen=!1,function(){var t=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],r=e(e({},JSON.parse(JSON.stringify(g.dataset||{}))),m),a={};y.config.parseDate=r.parseDate,y.config.formatDate=r.formatDate,Object.defineProperty(y.config,"enable",{get:function(){return y.config._enable},set:function(e){y.config._enable=ye(e)}}),Object.defineProperty(y.config,"disable",{get:function(){return y.config._disable},set:function(e){y.config._disable=ye(e)}});var o="time"===r.mode;if(!r.dateFormat&&(r.enableTime||o)){var s=A.defaultConfig.dateFormat||i.dateFormat;a.dateFormat=r.noCalendar||o?"H:i"+(r.enableSeconds?":S":""):s+" H:i"+(r.enableSeconds?":S":"")}if(r.altInput&&(r.enableTime||o)&&!r.altFormat){var l=A.defaultConfig.altFormat||i.altFormat;a.altFormat=r.noCalendar||o?"h:i"+(r.enableSeconds?":S K":" K"):l+" h:i"+(r.enableSeconds?":S":"")+" K"}Object.defineProperty(y.config,"minDate",{get:function(){return y.config._minDate},set:le("min")}),Object.defineProperty(y.config,"maxDate",{get:function(){return y.config._maxDate},set:le("max")});var u=function(e){return function(t){y.config["min"===e?"_minTime":"_maxTime"]=y.parseDate(t,"H:i:S")}};Object.defineProperty(y.config,"minTime",{get:function(){return y.config._minTime},set:u("min")}),Object.defineProperty(y.config,"maxTime",{get:function(){return y.config._maxTime},set:u("max")}
vendor: 4,568 bytes, line 1
1),"time"===r.mode&&(y.config.noCalendar=!0,y.config.enableTime=!0),Object.assign(y.config,a,r);for(var d=0;d<t.length;d++)y.config[t[d]]=!0===y.config[t[d]]||"true"===y.config[t[d]];n.filter(function(e){return void 0!==y.config[e]}).forEach(function(e){y.config[e]=c(y.config[e]||[]).map(k)}),y.isMobile=!y.config.disableMobile&&!y.config.inline&&"single"===y.config.mode&&!y.config.disable.length&&!y.config.enable&&!y.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent);for(var d=0;d<y.config.plugins.length;d++){var f=y.config.plugins[d](y)||{};for(var h in f)n.indexOf(h)>-1?y.config[h]=c(f[h]).map(k).concat(y.config[h]):void 0===r[h]&&(y.config[h]=f[h])}r.altInputClass||(y.config.altInputClass=ue().className+" "+y.config.altInputClass),De("onParseConfig")}(),de(),y.input=ue(),y.input?(y.input._type=y.input.type,y.input.type="text",y.input.classList.add("flatpickr-input"),y._input=y.input,y.config.altInput&&(y.altInput=u(y.input.nodeName,y.config.altInputClass),y._input=y.altInput,y.altInput.placeholder=y.input.placeholder,y.altInput.disabled=y.input.disabled,y.altInput.required=y.input.required,y.altInput.tabIndex=y.input.tabIndex,y.altInput.type="text",y.input.setAttribute("type","hidden"),!y.config.static&&y.input.parentNode&&y.input.parentNode.insertBefore(y.altInput,y.input.nextSibling)),y.config.allowInput||y._input.setAttribute("readonly","readonly"),be()):y.config.errorHandler(new Error("Invalid input element specified")),function(){y.selectedDates=[],y.now=y.parseDate(y.config.now)||new Date;var e=y.config.defaultDate||("INPUT"!==y.input.nodeName&&"TEXTAREA"!==y.input.nodeName||!y.input.placeholder||y.input.value!==y.input.placeholder?y.input.value:null);e&&ve(e,y.config.dateFormat),y._initialDate=y.selectedDates.length>0?y.selectedDates[0]:y.config.minDate&&y.config.minDate.getTime()>y.now.getTime()?y.config.minDate:y.config.maxDate&&y.config.maxDate.getTime()<y.now.getTime()?y.config.maxDate:y.now,y.currentYear=y._initialDate.getFullYear(),y.currentMonth=y._initialDate.getMonth(),y.selectedDates.length>0&&(y.latestSelectedDateObj=y.selectedDates[0]),void 0!==y.config.minTime&&(y.config.minTime=y.parseDate(y.config.minTime,"H:i")),void 0!==y.config.maxTime&&(y.config.maxTime=y.parseDate(y.config.maxTime,"H:i")),y.minDateHasTime=!!y.config.minDate&&(y.config.minDate.getHours()>0||y.config.minDate.getMinutes()>0||y.config.minDate.getSeconds()>0),y.maxDateHasTime=!!y.config.maxDate&&(y.config.maxDate.getHours()>0||y.config.maxDate.getMinutes()>0||y.config.maxDate.getSeconds()>0)}(),y.utils={getDaysInMonth:function(e,t){return void 0===e&&(e=y.currentMonth),void 0===t&&(t=y.currentYear),1===e&&(t%4==0&&t%100!=0||t%400==0)?29:y.l10n.daysInMonth[e]}},y.isMobile||function(){var e=window.document.createDocumentFragment();if(y.calendarContainer=u("div","flatpickr-calendar"),y.calendarContainer.tabIndex=-1,!y.config.noCalendar){if(e.appendChild((y.monthNav=u("div","flatpickr-months"),y.yearElements=[],y.monthElements=[],y.prevMonthNav=u("span","flatpickr-prev-month"),y.prevMonthNav.innerHTML=y.config.prevArrow,y.nextMonthNav=u("span","flatpickr-next-month"),y.nextMonthNav.innerHTML=y.config.nextArrow,K(),Object.defineProperty(y,"_hidePrevMonthArrow",{get:function(){return y.__hidePrevMonthArrow},set:function(e){y.__hidePrevMonthArrow!==e&&(l(y.prevMonthNav,"flatpickr-disabled",e),y.__hidePrevMonthArrow=e)}}),Object.defineProperty(y,"_hideNextMonthArrow",{get:function(){return y.__hideNextMonthArrow},set:function(e){y.__hideNextMonthArrow!==e&&(l(y.nextMonthNav,"flatpickr-disabled",e),y.__hideNextMonthArrow=e)}}),y.currentYearElement=y.yearElements[0],Ee(),y.monthNav)),y.innerContainer=u("div","flatpickr-innerContainer"),y.config.weekNumbers){var t=function(){y.calendarContainer.classList.add("hasWeeks");var e=u("div","flatpickr-weekwrapper");e.appendChild(u("span","flatpickr-weekday",y.l10n.weekAbbreviation));var t=u("div","flatpickr-weeks");return e.appendChild(t),{weekWrapper:e,weekNumbers:t}}(),n=t.weekWrapper,i=t.weekNumbers;y.innerContainer.appendChild(n),y.weekNumbers=i,y.weekWrapper=n}y.rContainer=u("div","flatpickr-rContainer"),y.rContainer.appendChild(X()),y.daysContainer||(y.daysContainer=u("div","flatpickr-days"),y.daysContainer.tabIndex=-1),J(),y.rContainer.appendChild(y.daysContainer),y.innerContainer.appendChild(y.rContainer),e.appendChild(y.innerContainer)}y.config.enableTime&&e.appendChild(function(){y.calendarContainer.classList.add("hasTime"),y.config.noCalendar&&y.calendarContainer.classList.add("noCalendar");
1var e=M(y.config);y.timeContainer=u("div","flatpickr-time"),y.timeContainer.tabIndex=-1;var t=u("span","flatpickr-time-separator",":"),n=f("flatpickr-hour",{"aria-label":y.l10n.hourAriaLabel});y.hourElement=n.getElementsByTagName("input")[0];var i=f("flatpickr-minute",{"aria-label":y.l10n.minuteAriaLabel});if(y.minuteElement=i.getElementsByTagName("input")[0],y.hourElement.tabIndex=y.minuteElement.tabIndex=-1,y.hourElement.value=a(y.latestSelectedDateObj?y.latestSelectedDateObj.getHours():y.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),y.minuteElement.value=a(y.latestSelectedDateObj?y.latestSelectedDateObj.getMinutes():e.minutes),y.hourElement.setAttribute("step",y.config.hourIncrement.toString()),y.minuteElement.setAttribute("step",y.config.minuteIncrement.toString()),y.hourElement.setAttribute("min",y.config.time_24hr?"0":"1"),y.hourElement.setAttribute("max",y.config.time_24hr?"23":"12"),y.hourElement.setAttribute("maxlength","2"),y.minuteElement.setAttribute("min","0"),y.minuteElement.setAttribute("max","59"),y.minuteElement.setAttribute("maxlength","2"),y.timeContainer.appendChild(n),y.timeContainer.appendChild(t),y.timeContainer.appendChild(i),y.config.time_24hr&&y.timeContainer.classList.add("time24hr"),y.config.enableSeconds){y.timeContainer.classList.add("hasSeconds");var r=f("flatpickr-second");y.secondElement=r.getElementsByTagName("input")[0],y.secondElement.value=a(y.latestSelectedDateObj?y.latestSelectedDateObj.getSeconds():e.seconds),y.secondElement.setAttribute("step",y.minuteElement.getAttribute("step")),y.secondElement.setAttribute("min","0"),y.secondElement.setAttribute("max","59"),y.secondElement.setAttribute("maxlength","2"),y.timeContainer.appendChild(u("span","flatpickr-time-separator",":")),y.timeContainer.appendChild(r)}return y.config.time_24hr||(y.amPM=u("span","flatpickr-am-pm",y.l10n.amPM[o((y.latestSelectedDateObj?y.hourElement.value:y.config.defaultHour)>11)]),y.amPM.title=y.l10n.toggleTitle,y.amPM.tabIndex=-1,y.timeContainer.appendChild(y.amPM)),y.timeContainer}()),l(y.calendarContainer,"rangeMode","range"===y.config.mode),l(y.calendarContainer,"animate",!0===y.config.animate),l(y.calendarContainer,"multiMonth",y.config.showMonths>1),y.calendarContainer.appendChild(e);var r=void 0!==y.config.appendTo&&void 0!==y.config.appendTo.nodeType;if((y.config.inline||y.config.static)&&(y.calendarContainer.classList.add(y.config.inline?"inline":"static"),y.config.inline&&(!r&&y.element.parentNode?y.element.parentNode.insertBefore(y.calendarContainer,y._input.nextSibling):void 0!==y.config.appendTo&&y.config.appendTo.appendChild(y.calendarContainer)),y.config.static)){var s=u("div","flatpickr-wrapper");y.element.parentNode&&y.element.parentNode.insertBefore(s,y.element),s.appendChild(y.element),y.altInput&&s.appendChild(y.altInput),s.appendChild(y.calendarContainer)}y.config.static||y.config.inline||(void 0!==y.config.appendTo?y.config.appendTo:window.document.body).appendChild(y.calendarContainer)}(),function(){if(y.config.wrap&&["open","close","toggle","clear"].forEach(function(e){Array.prototype.forEach.call(y.element.querySelectorAll("[data-"+e+"]"),function(t){return P(t,"click",y[e])})}),y.isMobile)!function(){var e=y.config.enableTime?y.config.noCalendar?"time":"datetime-local":"date";y.mobileInput=u("input",y.input.className+" flatpickr-mobile"),y.mobileInput.tabIndex=1,y.mobileInput.type=e,y.mobileInput.disabled=y.input.disabled,y.mobileInput.required=y.input.required,y.mobileInput.placeholder=y.input.placeholder,y.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",y.selectedDates.length>0&&(y.mobileInput.defaultValue=y.mobileInput.value=y.formatDate(y.selectedDates[0],y.mobileFormatStr)),y.config.minDate&&(y.mobileInput.min=y.formatDate(y.config.minDate,"Y-m-d")),y.config.maxDate&&(y.mobileInput.max=y.formatDate(y.config.maxDate,"Y-m-d")),y.input.getAttribute("step")&&(y.mobileInput.step=String(y.input.getAttribute("step"))),y.input.type="hidden",void 0!==y.altInput&&(y.altInput.type="hidden");try{y.input.parentNode&&y.input.parentNode.insertBefore(y.mobileInput,y.input.nextSibling)}catch(e){}P(y.mobileInput,"change",function(e){y.setDate(h(e).value,!1,y.mobileFormatStr),De("onChange"),De("onClose")})}();else{var e=s(ce,50);y._debouncedChange=s(V,S),y.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&P(y.daysContainer,"mouseover",function(e){"range"===y.config.mode&&se(h(e))}),P(y._input,"keydown",oe),void 0!==y.calendarContainer&&P(y.calendarContainer,"keydown",oe),y.config.inline||y.config.static||P(window,"resize",e),void 0!==window.ontouchstart?P(window.document,"touchstart",te):P(window.document,"mousedown",te),P(window.document,"focus",te,{capture:!0}),!0===y.config.clickOpens&&(P(y._input,"focus",y.open),P(y._input,"click",y.open)),void 0!==y.daysContainer&&(P(y.monthNav,"click",Me),P(y.monthNav,["keyup","increment"],j),P(y.daysContainer,"click",pe)),void 0!==y.timeContainer&&void 0!==y.minuteElement&&void 0!==y.hourElement&&(P(y.timeContainer,["increment"],L),P(y.timeContainer,"blur",L,{capture:!0}),P(y.timeContainer,"click",H),P([y.hourElement,y.minuteElement],["focus","click"],function(e){return h(e).select()}),void 0!==y.secondElement&&P(y.secondElement,"focus",function(){return y.secondElement&&y.secondElement.select()}),void 0!==y.amPM&&P(y.amPM,"click",function(e){L(e)})),y.config.allowInput&&P(y._input,"blur",ae)}}(),(y.selectedDates.length||y.config.noCalendar)&&(y.config.enableTime&&_(y.config.noCalendar?y.latestSelectedDateObj:void 0),xe(!1)),O();var t=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!y.isMobile&&t&&fe(),De("onReady")}(),y}function k(e,t){for(var n=Array.prototype.slice.call(e).filter(function(e){return e instanceof HTMLElement}),i=[],r=0;r<n.length;r++){var a=n[r];try{if(null!==a.getAttribute("data-fp-omit"))continue;void 0!==a._flatpickr&&(a._flatpickr.destroy(),a._flatpickr=void 0),a._flatpickr=T(a,t||{}),i.push(a._flatpickr)}catch(e){console.error(e)}}return 1===i.length?i[0]:i}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return k(this,e)},HTMLElement.prototype.flatpickr=function(e){return k([this],e)});var A=function(e,t){return"string"==typeof e?k(window.document.querySelectorAll(e),t):e instanceof Node?k([e],t):k(e,t)};return A.defaultConfig={},A.l10ns={en:e({},r),default:e({},r)},A.localize=function(t){A.l10ns.default=e(e({},A.l10ns.default),t)},A.setDefaults=function(t){A.defaultConfig=e(e({},A.defaultConfig),t)},A.parseDate=D({}),A.formatDate=b({}),A.compareDates=C,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return k(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=A),A}),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).rangePlugin=t()}(this,function(){"use strict";function e(){for(var e=0,t=0,n=arguments.length;t<n;t++)e+=arguments[t].length;var i=Array(e),r=0;for(t=0;t<n;t++)for(var a=arguments[t],o=0,s=a.length;o<s;o++,r++)i[r]=a[o];return i}return function(t){return void 0===t&&(t={}),function(n){var i,r,a,o="",s={onParseConfig:function(){n.config.mode="range",o=n.config.altInput?n.config.altFormat:n.config.dateFormat},onReady:function(){!function(){if(t.input){if(!(i=t.input instanceof Element?t.input:window.document.querySelector(t.input)))return void n.config.errorHandler(new Error("Invalid input element specified"));n.config.wrap&&(i=i.querySelector("[data-input]"))}else(i=n._input.cloneNode()).removeAttribute("id"),i._flatpickr=void 0;if(i.value){var e=n.parseDate(i.value);e&&n.selectedDates.push(e)}i.setAttribute("data-fp-omit",""),n.config.clickOpens&&(n._bind(i,["focus","click"],function(){n.selectedDates[1]&&(n.latestSelectedDateObj=n.selectedDates[1],n._setHoursFromDate(n.selectedDates[1]),n.jumpToDate(n.selectedDates[1])),r=!0,n.isOpen=!1,n.open(void 0,"left"===t.position?n._input:i)}),n._bind(n._input,["focus","click"],function(e){e.preventDefault(),n.isOpen=!1,n.open()})),n.config.allowInput&&n._bind(i,"keydown",function(e){"Enter"===e.key&&(n.setDate([n.selectedDates[0],i.value],!0,o),i.click())}),t.input||n._input.parentNode&&n._input.parentNode.insertBefore(i,n._input.nextSibling)}(),n.config.ignoredFocusElements.push(i),n.config.allowInput?(n._input.removeAttribute("readonly"),i.removeAttribute("readonly")):i.setAttribute("readonly","readonly"),n._bind(n._input,"focus",function(){n.latestSelectedDateObj=n.selectedDates[0],n._setHoursFromDate(n.selectedDates[0]),r=!1,n.jumpToDate(n.selectedDates[0])}),n.config.allowInput&&n._bind(n._input,"keydown",function(e){"Enter"===e.key&&n.setDate([n._input.value,n.selectedDates[1]],!0,o)}),n.setDate(n.selectedDates,!1),s.onValueUpdate(n.selectedDates),n.loadedPlugins.push("range")},onPreCalendarPosition:function(){r&&(n._positionElement=i,setTimeout(function(){n._positionElement=n._input},0))},onChange:function(){n.selectedDates.length||setTimeout(function(){n.selectedDates.length||(i.value="",a=[])},10),r&&setTimeout(function(){i.focus()},0)},onDestroy:function(){t.input||i.parentNode&&i.parentNode.removeChild(i)},onValueUpdate:function(t){var s,c,l;if(i){if((a=!a||t.length>=a.length?e(t):a).length>t.length){var u=t[0],d=r?[a[0],u]:[u,a[1]];d[0].getTime()>d[1].getTime()&&(r?d[0]=d[1]:d[1]=d[0]),n.setDate(d,!1),a=e(d)}c=(s=n.selectedDates.map(function(e){return n.formatDate(e,o)}))[0],n._input.value=void 0===c?"":c,l=s[1],i.value=void 0===l?"":l}}};return s}}}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.de={})}(this,function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["So","Mo","Di","Mi","Do","Fr","Sa"],longhand:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},months:{shorthand:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],longhand:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"]},firstDayOfWeek:1,weekAbbreviation:"KW",rangeSeparator:" bis ",scrollTitle:"Zum Ãndern scrollen",toggleTitle:"Zum Umschalten klicken",dateFormat:"d-y-M"};t.l10ns.de=n;var i=t.l10ns;
1e.German=n,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.it={})}(this,function(e){"use strict";var t="undefined"!=typeof window&&void 0!==window.flatpickr?window.flatpickr:{l10ns:{}},n={weekdays:{shorthand:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],longhand:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},months:{shorthand:["Gen","Feb","Mar","Apr","Mag","Giu","Lug","Ago","Set","Ott","Nov","Dic"],longhand:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"]},firstDayOfWeek:1,ordinal:function(){return"°"},weekAbbreviation:"Se",scrollTitle:"Scrolla per aumentare",toggleTitle:"Clicca per cambiare"};t.l10ns.it=n;var i=t.l10ns;e.Italian=n,e.default=i,Object.defineProperty(e,"__esModule",{value:!0})}),function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t(e.default={})}(this,function(e){"use strict";var t={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"]};e.english=t,e.default=t,Object.defineProperty(e,"__esModule",{value:!0})});var VVChecks=function(){function e(){if(!(this instanceof e))throw new TypeError("Cannot call a class as a function")}return e.prototype.isNotEmpty=function(e){return!(""===e||e.length<1)},e.prototype.isEmail=function(e){return new RegExp(/^((([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+(\.([a-z]|\d|[!#\$%&'\*\+\-\/=\?\^_`{\|}~]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])+)*)|((\x22)((((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(([\x01-\x08\x0b\x0c\x0e-\x1f\x7f]|\x21|[\x23-\x5b]|[\x5d-\x7e]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(\\([\x01-\x09\x0b\x0c\x0d-\x7f]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF]))))*(((\x20|\x09)*(\x0d\x0a))?(\x20|\x09)+)?(\x22)))@((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?$/i).test(e)||!this.isNotEmpty(e)},e.prototype.isInteger=function(e){return/^[0-9]+$/.test(e)||!this.isNotEmpty(e)},e.prototype.isDigit=function(e){return/^[a-zA-Z0-9]+$/.test(e)||!this.isNotEmpty(e)},e.prototype.isUrl=function(e){return new RegExp(/^(https?|s?ftp):\/\/(((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:)*@)?(((\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5])\.(\d|[1-9]\d|1\d\d|2[0-4]\d|25[0-5]))|((([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|\d|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.)+(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])*([a-z]|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])))\.?)(:\d*)?)(\/((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)+(\/(([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)*)*)?)?(\?((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|[\uE000-\uF8FF]|\/|\?)*)?(#((([a-z]|\d|-|\.|_|~|[\u00A0-\uD7FF\uF900-\uFDCF\uFDF0-\uFFEF])|(%[\da-f]{2})|[!\$&'\(\)\*\+,;=]|:|@)|\/|\?)*)?$/i).test(e)||!this.isNotEmpty(e)},e.prototype.maxLength=function(e,t){return e.length<=t||!this.isNotEmpty(e)},e.prototype.minLength=function(e,t){return e.length>=t||!this.isNotEmpty(e)},e.prototype.rangeLength=function(e,t){return e.length<=t[1]&&e.length>=t[0]||!this.isNotEmpty(e)},e.prototype.sameLength=function(e,t){return e.length==t||!this.isNotEmpty(e)},e.prototype.isMin=function(e,t){return e>=t||!this.isNotEmpty(e)},e.prototype.isMax=function(e,t){return e<=t||!this.isNotEmpty(e)},e.prototype.isRange=function(e,t){return e<=t[1]&&e>=t[0]||!this.isNotEmpty(e)},e.prototype.equalTo=function(e,t){return e.toString()===t.toString()||!this.isNotEmpty(e)},e.prototype.isCpf=function(e){var t,n,i,r,a;
1if(a=1,11!=(e=(e=(e=e.replace(".","")).replace(".","")).replace("-","")).length)return!this.isNotEmpty(e);for(r=0;r<e.length-1;r++)if(e.charAt(r)!=e.charAt(r+1)){a=0;break}if(a)return!this.isNotEmpty(e);for(t=e.substring(0,9),n=e.substring(9),i=0,r=10;r>1;r--)i+=t.charAt(10-r)*r;if((i%11<2?0:11-i%11)!=n.charAt(0))return!this.isNotEmpty(e);for(t=e.substring(0,10),i=0,r=11;r>1;r--)i+=t.charAt(11-r)*r;return(i%11<2?0:11-i%11)==n.charAt(1)||!this.isNotEmpty(e)},e.prototype.isCnpj=function(e){var t,n,i,r,a,o,s,c;if(s=1,(c=e.replace(".","").replace(".","").replace(".","").replace("-","").replace("/","")).length<14&&c.length<15)return!this.isNotEmpty(e);for(r=0;r<c.length-1;r++)if(c.charAt(r)!=c.charAt(r+1)){s=0;break}if(!s){for(o=c.length-2,t=c.substring(0,o),n=c.substring(o),i=0,a=o-7,r=o;r>=1;r--)i+=t.charAt(o-r)*a--,a<2&&(a=9);if((i%11<2?0:11-i%11)!=n.charAt(0))return!this.isNotEmpty(e);for(o+=1,t=c.substring(0,o),i=0,a=o-7,r=o;r>=1;r--)i+=t.charAt(o-r)*a--,a<2&&(a=9);return(i%11<2?0:11-i%11)==n.charAt(1)||!this.isNotEmpty(e)}return!this.isNotEmpty(e)},e.prototype.isCnh=function(e){var t,n,i,r=e,a=r.charAt(0);if(11!==r.replace(/[^\d]/g,"").length||a.repeat(11)===r)return!this.isNotEmpty(e);for(t=0,n=9,i=0;t<9;++t,--n)i+=+r.charAt(t)*n;var o=0,s=i%11;for(s>=10&&(s=0,o=2),t=0,n=1,i=0;t<9;++t,++n)i+=+r.charAt(t)*n;var c=i%11;return""+s+(c>=10?0:c-o)===r.substr(-2)||!this.isNotEmpty(e)},e.prototype.isCreditCard=function(e){if(/[^0-9 -]+/.test(e))return!this.isNotEmpty(e);var t,n,i=0,r=0,a=!1,o=e.replace(/\D/g,"");if(o.length<13||o.length>19)return!this.isNotEmpty(e);for(t=o.length-1;t>=0;t--)n=o.charAt(t),r=parseInt(n,10),a&&(r*=2)>9&&(r-=9),i+=r,a=!a;return i%10==0||!this.isNotEmpty(e)},e.prototype.isCep=function(e){return/^\d{2}.\d{3}-\d{3}?$|^\d{5}-?\d{3}?$/.test(e)||!this.isNotEmpty(e)},e.prototype.isPhone=function(e){var t=e.replace(/[()\-_ +]/g,"");return/^([0-9]{8,14})$/.test(t)||!this.isNotEmpty(e)},e.prototype.isDate=function(e){var t,n,i,r,a,o=!1;return/^\d{1,2}\/\d{1,2}\/\d{4}$/.test(e)?(t=e.split("/"),n=parseInt(t[0],10),i=parseInt(t[1],10),r=parseInt(t[2],10),o=(a=new Date(r,i-1,n,12,0,0,0)).getUTCFullYear()===r&&a.getUTCMonth()===i-1&&a.getUTCDate()===n):o=!1,o||!this.isNotEmpty(e)},e.prototype.hasExtension=function(e,t){return new RegExp("("+t.join("|").replace(/\./g,"\\.")+")$").test(e)||!this.isNotEmpty(e)},e.prototype.isCurrency=function(e){return/^(R\$ )?(\d{1,3}.)?(\d{1,3}.)?(\d{1,3}.)?\d{1,3},\d{2}$/.test(e)||!this.isNotEmpty(e)},e.prototype.isNumeric=function(e){return!isNaN(e)||!this.isNotEmpty(e)},e.prototype.isPattern=function(e,t,n){return new RegExp(t,n).test(e)||!this.isNotEmpty(e)},e.prototype.isObject=function(e){return 0!=e&&"object"==typeof e&&e instanceof Object&&"function"!=typeof e},e.prototype.isFunction=function(e){return"[object Function]"==Object.prototype.toString.call(e)},e.prototype.isArray=function(e){return"[object Array]"===Object.prototype.toString.call(e)},e.prototype.isHTMLElement=function(e){return e instanceof Element||e instanceof HTMLDocument},e.prototype.isHTMLForm=function(e){return this.isHTMLElement(e)&&e.tagName&&"FORM"===e.tagName},e.prototype.includes=function(e,t){var n=Object(e),i=parseInt(n.length)||0;if(0===i)return!1;var r,a,o=parseInt(arguments[1])||0;for(o>=0?r=o:(r=i+o)<0&&(r=0);r<i;){if(t===(a=n[r])||t!=t&&a!=a)return!0;r++}return!1},e}(),VVElements=function(){function e(){}return e.prototype.getElements=function(e){if(e){var t=document.querySelectorAll(e);return t.length?t:null}return null},e.prototype.getElement=function(e){return e&&document.querySelector(e)||null},e.prototype.getChild=function(e,t){return e&&t&&(t instanceof Element||t instanceof HTMLDocument)&&t.querySelector(e)||null},e.prototype.getChildren=function(e,t){if(e&&t&&(t instanceof Element||t instanceof HTMLDocument)){var n=t.querySelectorAll(e);return n.length?n:null}return null},e.prototype.getButtonSubmit=function(e){return this.getChild("button",e)?this.getChild("button",e):this.getChild('input[type="submit"]',e)},e.prototype.getRadiosByName=function(e,t,n,i){if(e&&t){var r=n?"."+n:"",a=i?":checked":"";return this.getChildren("input"+r+'[type=radio][name="'+e+'"]'+a,t)}return null},e.prototype.getCheckboxesByName=function(e,t,n,i){if(e&&t){var r=n?"."+n:"",a=i?":checked":"";return this.getChildren("input"+r+'[type=checkbox][name="'+e+'"]'+a,t)}return null},e.prototype.addClass=function(e,t){if(e&&t)if("[object Array]"===Object.prototype.toString.call(t)){var n,i=t.length;for(n=0;n<i;n++)e.classList.add(t[n])}else e.classList.add(t)},e.prototype.removeClass=function(e,t){if(e&&t)if("[object Array]"===Object.prototype.toString.call(t)){var n,i=t.length;for(n=0;n<i;n++)e.classList.remove(t[n])}else e.classList.remove(t)},e.prototype.inner=function(e,t){e&&(e.innerHTML=void 0!==t?t:"")},e}(),VanillaValidator=function(){"use strict";var e=new VVElements;!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(n,VVChecks);var t=function(t){this.config={container:"form",button:null,validationBy:"onsubmit",novalidateHTML5:!0,validateOnFieldChanges:!0,showListOfValidations:!0,selectors:{control:"vv-control",required:"required",email:"email",integer:"integer",digit:"digit",numeric:"numeric",pattern:"pattern",phone:"phone",url:"url",date:"date",currency:"currency",cep:"cep",maxLength:"max-length",minLength:"min-length",rangeLength:"range-length",sameLength:"same-length",max:"max",min:"min",range:"range",equalTo:"equal-to",cpf:"cpf",cnpj:"cnpj",cnh:"cnh",credit
1Card:"credit-card",hasExtension:"has-extension",customValidate:"custom-validate",async:"async",asyncWaiting:"vv-async-waiting",error:"error",formError:"form-error",messageError:"msg-error",wrapErrors:"wrap-errors"},messages:{required:"Required field",email:"Invalid email",integer:"Needs to be a integer",digit:"Only letters and numbers",numeric:"Only numbers",pattern:"Needs to matchs pattern",phone:"Invalid phone number",url:"Invalid url",date:"Invalid date",currency:"Invalid currency",cep:"Invalid cep",maxLength:"The amount of characters is greater than allowed",minLength:"The amount of characters is less than allowed",rangeLength:"The number of characters must be between 3 and 5",sameLength:"The value needs to have 5 characters",max:"The value needs to be less or equals to 5",min:"The value needs to be greater or equals to 3",range:"The value needs to be between 3 and 5",equalTo:"The value needs to be 10",cpf:"Invalid cpf",cnpj:"Invalid cnpj",cnh:"Invalid cnh",creditCard:"Invalid credit card number",hasExtension:"Invalid extension detected"},customValidationsConfig:{pattern:"[0-9]",flags:"g",maxLength:5,minLength:5,sameLength:5,rangeLength:{min:3,max:5},max:5,min:3,range:{max:5,min:3},equalTo:10,extensions:["jpg","png"]},callbacks:{eachFieldError:null,eachFieldSuccess:null,requiredError:null,requiredSuccess:null,emailError:null,emailSuccess:null,integerError:null,integerSuccess:null,digitError:null,digitSuccess:null,numericError:null,numericSuccess:null,phoneError:null,phoneSuccess:null,urlError:null,urlSuccess:null,dateError:null,dateSuccess:null,currencyError:null,currencySuccess:null,cepError:null,cepSuccess:null,maxLengthError:null,maxLengthSuccess:null,minLengthError:null,minLengthSuccess:null,rangeLengthError:null,rangeLengthSuccess:null,sameLengthError:null,sameLengthSuccess:null,maxError:null,maxSuccess:null,minError:null,minSuccess:null,rangeError:null,rangeSuccess:null,equalToError:null,equalToSuccess:null,cpfError:null,cpfSuccess:null,cnpjError:null,cnpjSuccess:null,cnhError:null,cnhSuccess:null,creditCardSuccess:null,creditCardError:null,hasExtensionSuccess:null,hasExtensionError:null,patternError:null,patternSuccess:null,beforeValidate:null,afterValidate:null,error:null,success:null},customValidates:{"equal-anchored-field":{message:"The value needs to be equal",fn:function(t,n){var i=t.getAttribute("data-anchored-field");if(i){var r=e.getChild(i,n);if(r&&t.value!==r.value)return!1}return!0}},"different-anchored-field":{message:"The value needs to be different",fn:function(t,n){var i=t.getAttribute("data-anchored-field");if(i){var r=e.getChild(i,n);if(r&&t.value===r.value)return!1}return!0}}},asyncValidates:{"async-validation-example":{message:"The async validation message",fn:function(e,t,n){var i=this;this.asyncValidationStart(e,"validando",n),setTimeout(function(){if(e){var r="foo"===e.value;i.asyncValidationFinish(e,t,n,r)}},2e3)}}},customViewErrors:{add:null,remove:null},customListErrors:{add:null,remove:null},onContainerSuccess:null,onFormSubmit:null},this.config=this.mergeObjectsDeeply({},this.config,t)};function n(e){if(this.userConfig=e,!(this instanceof n))throw new TypeError("Cannot call a class as a function");VVChecks.apply(this,arguments),t.apply(this,[e]),this.init()}return n.prototype.loopThroughContainers=function(){if(this.containers&&this.containers.length){var e,t,n=this.containers.length;for(e=0;e<n;e++)t=this.containers[e],this.defineSubmitionType(t),this.setHTML5NoValidate(t),this.addControlClassesOnFields(t)}},n.prototype.defineSubmitionType=function(e){"onclick"===this.config.validationBy?this.addButtonClickEvent(e):this.addFormSubmitEvent(e)},n.prototype.addFormSubmitEvent=function(e){var t=this;this.isHTMLForm(e)&&e.addEventListener("submit",function(n){n.preventDefault(),t.onSuccessFormValidate(e)})},n.prototype.addButtonClickEvent=function(t){var n,i=this;(n=this.config.button&&e.getChild(this.config.button,t)?e.getChild(this.config.button,t):e.getButtonSubmit(t))&&n.addEventListener("click",function(e){e.preventDefault(),i.onSuccessFormValidate(t)})},n.prototype.onSuccessFormValidate=function(e){e&&this.formValidateFinal(e)&&(this.isHTMLForm(e)?this.config.onFormSubmit&&this.isFunction(this.config.onFormSubmit)?this.config.onFormSubmit.call(this,e):e.submit():this.config.onContainerSuccess&&this.isFunction(this.config.onContainerSuccess)&&this.config.onContainerSuccess.call(this,e))},n.prototype.formValidateFinal=function(e){var t;return this.callCallbackFunction(this.config.callbacks.beforeValidate,this,e),t=this.validateContainer(e),this.callCallbackFunction(this.config.callbacks.afterValidate,this,e),t?this.callCallbackFunction(this.config.callbacks.success,this,e):this.callCallbackFunction(this.config.callbacks.error,this,e),t},n.prototype.validateContainer=function(t){var n=!0;if(t){e.removeClass(t,this.config.selectors.formError),this.config.showListOfValidations&&this.removeListOfValidations(t);var i=e.getChildren("."+this.config.selectors.control,t);if(i){var r,a,o=i.length;for(r=0;r<o;r++)a=i[r],this.validateAsync(a,t,!0),this.validateFields(a,t,!0)||(e.addClass(t,this.config.selectors.formError),n=!1)}}return t.getAttribute("data-validation-status")&&"valid"!==t.getAttribute("data-validation-status")&&(e.addClass(t,this.config.selectors.formError),n=!1),n},n.prototype.addControlClassesOnFields=function(t){var n,i,r=["vv-control","error","formError","messageError","wrapErrors","asyncWaiting"];for(i in this.config.selectors)this.config.selectors.hasOwnProperty(i)&&!this.includes(r,i)&&i!=this.config.selectors.control&&(n=e.getChildren("."+this.config.selectors[i]+":not(."+this.config.selectors.control+")",t),this.loopThroughFieldsToAddControl
1s(n,t))},n.prototype.loopThroughFieldsToAddControls=function(e,t){if(e){var n,i,r=e.length;for(n=0;n<r;n++)(i=e[n]).classList.add(this.config.selectors.control),this.addCustomValidations(i),this.addAsyncValidations(i),this.config.validateOnFieldChanges&&this.addValidationsOnFieldsEvent(i,t)}},n.prototype.addValidationsOnFieldsEvent=function(e,t){if(e){var n=this;e.addEventListener("change",function(i){i.preventDefault(),n.validateAsync(e,t,!1),n.validateFields(e,t,!1)}),e.addEventListener("keyup",function(i){i.preventDefault(),n.validateFields(e,t,!1)})}},n.prototype.validateFields=function(e,t,n){var i,r,a,o,s,c=!0;return e&&t&&(e.classList.contains(this.config.selectors.async)||(this.removeValidationView(e),e.classList.contains(this.config.selectors.email)&&(this.factoryValidate(e,this.isEmail,this.config.messages.email,this.config.callbacks.emailError,this.config.callbacks.emailSuccess,null,t,n)||(c=!1)),e.classList.contains(this.config.selectors.phone)&&(this.factoryValidate(e,this.isPhone,this.config.messages.phone,this.config.callbacks.phoneError,this.config.callbacks.phoneSuccess,null,t,n)||(c=!1)),e.classList.contains(this.config.selectors.url)&&(this.factoryValidate(e,this.isUrl,this.config.messages.url,this.config.callbacks.urlError,this.config.callbacks.urlSuccess,null,t,n)||(c=!1)),e.classList.contains(this.config.selectors.date)&&(this.factoryValidate(e,this.isDate,this.config.messages.date,this.config.callbacks.dateError,this.config.callbacks.dateSuccess,null,t,n)||(c=!1)),e.classList.contains(this.config.selectors.currency)&&(this.factoryValidate(e,this.isCurrency,this.config.messages.currency,this.config.callbacks.currencyError,this.config.callbacks.currencySuccess,null,t,n)||(c=!1)),e.classList.contains(this.config.selectors.cep)&&(this.factoryValidate(e,this.isCep,this.config.messages.cep,this.config.callbacks.cepError,this.config.callbacks.cepSuccess,null,t,n)||(c=!1)),e.classList.contains(this.config.selectors.integer)&&(this.factoryValidate(e,this.isInteger,this.config.messages.integer,this.config.callbacks.integerError,this.config.callbacks.integerSuccess,null,t,n)||(c=!1)),e.classList.contains(this.config.selectors.digit)&&(this.factoryValidate(e,this.isDigit,this.config.messages.digit,this.config.callbacks.digitError,this.config.callbacks.digitSuccess,null,t,n)||(c=!1)),e.classList.contains(this.config.selectors.numeric)&&(this.factoryValidate(e,this.isNumeric,this.config.messages.numeric,this.config.callbacks.numericError,this.config.callbacks.numericSuccess,null,t,n)||(c=!1)),e.classList.contains(this.config.selectors.maxLength)&&(r=e.getAttribute("data-max-length")?parseInt(e.getAttribute("data-max-length")):this.config.customValidationsConfig.maxLength,this.factoryValidate(e,this.maxLength,this.config.messages.maxLength,this.config.callbacks.maxLengthError,this.config.callbacks.maxLengthSuccess,r,t,n)||(c=!1)),e.classList.contains(this.config.selectors.minLength)&&(i=e.getAttribute("data-min-length")?parseInt(e.getAttribute("data-min-length")):this.config.customValidationsConfig.minLength,this.factoryValidate(e,this.minLength,this.config.messages.minLength,this.config.callbacks.minLengthError,this.config.callbacks.minLengthSuccess,i,t,n)||(c=!1)),e.classList.contains(this.config.selectors.rangeLength)&&(a=[i=e.getAttribute("data-min-length")?parseInt(e.getAttribute("data-min-length")):this.config.customValidationsConfig.rangeLength.min,r=e.getAttribute("data-max-length")?parseInt(e.getAttribute("data-max-length")):this.config.customValidationsConfig.rangeLength.max],this.factoryValidate(e,this.rangeLength,this.config.messages.rangeLength,this.config.callbacks.rangeLengthError,this.config.callbacks.rangeLengthSuccess,a,t,n)||(c=!1)),e.classList.contains(this.config.selectors.sameLength)&&(o=e.getAttribute("data-same-length")?parseInt(e.getAttribute("data-same-length")):this.config.customValidationsConfig.sameLength,this.factoryValidate(e,this.sameLength,this.config.messages.sameLength,this.config.callbacks.sameLengthError,this.config.callbacks.sameLengthSuccess,o,t,n)||(c=!1)),e.classList.contains(this.config.selectors.max)&&(r=e.getAttribute("data-max")?parseInt(e.getAttribute("data-max")):this.config.customValidationsConfig.max,this.factoryValidate(e,this.isMax,this.config.messages.max,this.config.callbacks.maxError,this.config.callbacks.maxSuccess,r,t,n)||(c=!1)),e.classList.contains(this.config.selectors.min)&&(i=e.getAttribute("data-min")?parseInt(e.getAttribute("data-min")):this.config.customValidationsConfig.min,this.factoryValidate(e,this.isMin,this.config.messages.min,this.config.callbacks.minError,this.config.callbacks.minSuccess,i,t,n)||(c=!1)),e.classList.contains(this.config.selectors.range)&&(a=[i=e.getAttribute("data-min")?parseInt(e.getAttribute("data-min")):this.config.customValidationsConfig.range.min,r=e.getAttribute("data-max")?parseInt(e.getAttribute("data-max")):this.config.customValidationsConfig.range.max],this.factoryValidate(e,this.isRange,this.config.messages.range,this.config.callbacks.rangeError,this.config.callbacks.rangeSuccess,a,t,n)||(c=!1)),e.classList.contains(this.config.selectors.equalTo)&&(o=e.getAttribute("data-equal-to")?parseInt(e.getAttribute("data-equal-to")):this.config.customValidationsConfig.equalTo,this.factoryValidate(e,this.equalTo,this.config.messages.equalTo,this.config.callbacks.equalToError,this.config.callbacks.equalToSuccess,o,t,n)||(c=!1)),e.classList.contains(this.config.selectors.cpf)&&(this.factoryValidate(e,this.isCpf,this.config.messages.cpf,this.config.callbacks.cpfError,this.config.callbacks.cpfSuccess,null,t,n)||(c=!1)),e.classList.contains(this.config.selectors.cnpj)&&(this.factoryValidate(e,this.isCnpj,this.config.messages.cnpj,this.config.callbacks.cnpjError,this.config.callbacks.cnpjSuccess,null,t,n)||(c=!1)),e.classList.contains(this.config.selectors.cnh)&&(this.factoryValidate(e,this.isCnh,this.config.messages.cnh,this.config.callbacks.cnhError,this.config.callbacks.cnhSuccess,null,t,n)||(c=!1)),e.classList.contains(this.config.selectors.creditCard)&&(this.factoryValidate(e,this.isCreditCard,this.config.messages.creditCard,this.config.callbacks.creditCardError,this.config.callbacks.creditCardSuccess,null,t,n)||(c=!1)),e.classList.contains(this.config.selectors.hasExtension)&&(s=e.getAttribute("data-extensions")?e.getAttribute("data-extensions").split(","):this.config.customValidationsConfig.extensions,this.factoryValidate(e,this.hasExtension,this.config.messages.hasExtension,this.config.callbacks.hasExtension,this.config.callbacks.hasExtension,s,t,n)||(c=!1)),e.classList.contains(this.config.selectors.pattern)&&(this.validatePattern(e,t,n)||(c=!1)),e.classList.contains(this.config.selectors.customValidate)&&(this.validateCustom(e,t,n)||(c=!1)),e.classList.contains(this.config.selectors.required)&&("checkbox"===e.type||"radio"===e.type?this.validateRequiredCR(e,t)||(c=!1):this.factoryValidate(e,this.isNotEmpty,this.config.messages.required,this.config.callbacks.requiredError,this.config.callbacks.requiredSuccess,null,t,n)||(c=!1)))),c?this.callCallbackFunction(this.config.callbacks.eachFieldSuccess,this,e):this.callCallbackFunction(this.config.callbacks.eachFieldError,this,e),c},n.prototype.factoryValidate=function(e,t,n,i,r,a,o,s){return e&&!t.call(this,e.value,a)?(this.addValidationView(e,n),s&&this.config.showListOfValidations&&this.addListOfValidations(e,n,o),this.callCallbackFunction(i,this,e),!1):(this.callCallbackFunction(r,this,e),!0)},n.prototype.validateRequiredCR=function(t,n,i){if(t&&n&&t.name){var r=e.getChildren("."+this.config.selectors.required+"[name="+t.name+"]",n);if(r){var a=e.getChildren("."+this.config.selectors.required+"[name="+t.name+"]:checked",n),o=r[r.length-1];if(!a)return this.addValidationView(o,this.config.messages.required),i&&this.config.showListOfValidations&&this.addListOfValidations(t,this.config.messages.required,n),this.callCallbackFunction(this.config.callbacks.requiredError,this,t),!1;this.removeValidationView(o)}}return this.callCallbackFunction(this.config.callbacks.requiredSuccess,this,t),!0},n.prototype.validatePattern=function(e,t,n){if(e){var i=e.getAttribute("data-pattern")?e.getAttribute("data-pattern"):this.config.customValidationsConfig.pattern,r=e.getAttribute("data-flags")?e.getAttribute("data-flags"):this.config.customValidationsConfig.flags;return this.isPattern(e.value,i,r)?(this.callCallbackFunction(this.config.callbacks.patternSuccess,this,e),!0):(this.addValidationView(e,this.config.messages.pattern),n&&this.config.showListOfValidations&&this.addListOfValidations(e,this.config.messages.pattern,t),this.callCallbackFunction(this.config.callbacks.patternError,this,e),!1)}},n.prototype.validateCustom=function(e,t,n){var i=!0;if(e){var r=e.getAttribute("data-validate-key");if(r){var a=this.config.customValidates[r];if(!(a&&a.message&&a.fn))throw new TypeError("Check if your custom validation is correctly configured");if(!this.isFunction(a.fn))throw new TypeError("The fn of custom validation must be a function");a.fn.call(this,e,t,n)||(this.addValidationView(e,a.message),n&&this.config.showListOfValidations&&this.addListOfValidations(e,a.message,t),i=!1)}}return i},n.prototype.validateAsync=function(e,t,n){if(e&&e.classList.contains(this.config.selectors.async)&&t){var i=e.getAttribute("data-async-key");if(i){var r=this.config.asyncValidates[i];if(!(r&&r.message&&r.fn))throw new TypeError("Check if your custom async validation is correctly configured");if(!this.isFunction(r.fn))throw new TypeError("The fn of custom async validation must be a function");e.getAttribute("data-validation-status")&&n&&!0===this.config.validateOnFieldChanges||r.fn.call(this,e,r.message,t,n),n&&this.config.showListOfValidations&&e.classList.contains(this.config.selectors.error)&&this.addListOfValidations(e,r.message,t)}}},n.prototype.addListOfValidations=function(t,n,i){if(t&&i)if(n=t.getAttribute("data-message-error")?t.getAttribute("data-message-error"):n,this.config.customListErrors&&this.isFunction(this.config.customListErrors.add))this.config.customListErrors.add.call(this,t,n,i);else{var r=e.getChild("."+this.config.selectors.wrapErrors,i);if(r){var a=this.getListOfValidationsContainer(r),o=document.createElement("LI");e.inner(o,n),a.appendChild(o)}}},n.prototype.getListOfValidationsContainer=function(t){if(t&&"UL"!==t.tagName){var n=e.getChild("ul",t);if(!n){var i=document.createElement("UL");t.appendChild(i),n=e.getChild("ul",t)}return n}return t},n.prototype.removeListOfValidations=function(t){if(t)if(this.config.customListErrors&&this.isFunction(this.config.customListErrors.remove))this.config.customListErrors.remove.call(this,t);else{var n=e.getChild("."+this.config.selectors.wrapErrors,t);e.inner(n)}},n.prototype.addValidationView=function(t,n,i,r){if(t){r||(n=t.getAttribute("data-message-error")?t.getAttribute("data-message-error"):n);var a=i||this.config.selectors.messageError;if(this.config.customViewErrors&&this.isFunction(this.config.customViewErrors.add))this.config.customViewErrors.add.call(this,t,n,a);else{var o=this.isArray(t)?t[t.length-1].parentElement:t.parentElement;if(o){var s=document.createElement("SPAN"),c=document.createAttribute("class");if(e.inner(s,n),c.value=a,s.setAttributeNode(c),this.isArray(t)){var l,u=t.length;for(l=1;l<u;l++)t[l].classList.add(this.config.selectors.error)}else t.classList.add(this.config.selectors.error);var d=e.getChild("."+this.config.selectors.messageError,o);d&&d.remove(),o.append(s)}}}},n.prototype.removeValidationView=function(t,n){if(t){var i=n||this.config.selectors.messageError;if(this.config.customViewErrors&&this.isFunction(this.config.customViewErrors.remove))this.config.customViewErrors.remove.call(this,t,i);else{var r=this.isArray(t)?t[t.length-1].parentElement:t.parentElement;if(r){if(this.isArray(t)){var a,o=t.length;for(a=1;a<o;a++)t[a].classList.remove(this.config.selectors.error)}else t.classList.remove(this.config.selectors.error);var s=i,c=e.getChild("."+s,r);c&&c.remove()}}}},n.prototype.addCustomValidations=function(e){if(e){var t=e.getAttribute("data-validate-key");t&&(this.config.customValidates[t]||(this.config.customValidates[t]=this.userConfig.customValidates[t]))}},n.prototype.addAsyncValidations=function(e){if(e){var t=e.getAttribute("data-async-key");t&&(this.config.asyncValidates[t]||(this.config.asyncValidates[t]=this.userConfig.asyncValidates[t]))}},n.prototype.asyncValidationStart=function(e,t,n){e&&n&&(n.setAttribute("data-validation-status","waiting"),e.setAttribute("data-validation-status","waiting"),this.removeValidationView(e,this.config.selectors.asyncWaiting),this.addValidationView(e,t,this.config.selectors.asyncWaiting,!0))},n.prototype.asyncValidationFinish=function(e,t,n,i){if(e){var r=i?"valid":"invalid";e.setAttribute("data-validation-status",r),this.removeValidationView(e,this.config.selectors.asyncWaiting),i||this.addValidationView(e,t),this.asyncContainerHasErrors(n)?n.setAttribute("data-validation-status","invali
1d"):n.setAttribute("data-validation-status","valid")}},n.prototype.asyncContainerHasErrors=function(t){if(t){var n=e.getChildren("."+this.config.selectors.async+"."+this.config.selectors.error,t);if(n&&n.length>0)return!0}return!1},n.prototype.callCallbackFunction=function(e,t,n,i){this.isFunction(e)&&e.call(t,n,i)},n.prototype.setHTML5NoValidate=function(e){this.config.novalidateHTML5&&e&&this.isHTMLForm(e)&&e.setAttribute("novalidate",!0)},n.prototype.mergeObjectsDeeply=function(e,t,n){var i;if(this.isObject(t)&&this.isObject(n)&&this.isObject(e))for(i in t)t.hasOwnProperty(i)&&(this.isObject(t[i])&&this.isObject(t[i])?(e[i]=t[i],this.mergeObjectsDeeply(e[i],t[i],n[i])):void 0!==n[i]?e[i]=n[i]:e[i]=t[i]);return e},n.prototype.init=function(){this.containers=e.getElements(this.config.container),this.loopThroughContainers()},n}();!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.axios=t():e.axios=t()}(this,function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var r=t[i]={i:i,l:!1,exports:{}};return e[i].call(r.exports,r,r.exports,n),r.l=!0,r.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)n.d(i,r,function(t){return e[t]}.bind(null,r));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=13)}([function(e,t,n){"use strict";var i,r=n(4),a=Object.prototype.toString,o=(i=Object.create(null),function(e){var t=a.call(e);return i[t]||(i[t]=t.slice(8,-1).toLowerCase())});function s(e){return e=e.toLowerCase(),function(t){return o(t)===e}}function c(e){return Array.isArray(e)}function l(e){return void 0===e}var u=s("ArrayBuffer");function d(e){return null!==e&&"object"==typeof e}function f(e){if("object"!==o(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}var h=s("Date"),g=s("File"),p=s("Blob"),m=s("FileList");function v(e){return"[object Function]"===a.call(e)}var y=s("URLSearchParams");function b(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),c(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}var D,C=(D="undefined"!=typeof Uint8Array&&Object.getPrototypeOf(Uint8Array),function(e){return D&&e instanceof D});e.exports={isArray:c,isArrayBuffer:u,isBuffer:function(e){return null!==e&&!l(e)&&null!==e.constructor&&!l(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return e&&("function"==typeof FormData&&e instanceof FormData||"[object FormData]"===a.call(e)||v(e.toString)&&"[object FormData]"===e.toString())},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&u(e.buffer)},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:d,isPlainObject:f,isUndefined:l,isDate:h,isFile:g,isBlob:p,isFunction:v,isStream:function(e){return d(e)&&v(e.pipe)},isURLSearchParams:y,isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:b,merge:function e(){var t={};function n(n,i){f(t[i])&&f(n)?t[i]=e(t[i],n):f(n)?t[i]=e({},n):c(n)?t[i]=n.slice():t[i]=n}for(var i=0,r=arguments.length;i<r;i++)b(arguments[i],n);return t},extend:function(e,t,n){return b(t,function(t,i){e[i]=n&&"function"==typeof t?r(t,n):t}),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e},inherits:function(e,t,n,i){e.prototype=Object.create(t.prototype,i
vendor: 3,594 bytes, line 1
1),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)},toFlatObject:function(e,t,n){var i,r,a,o={};t=t||{};do{for(r=(i=Object.getOwnPropertyNames(e)).length;r-- >0;)o[a=i[r]]||(t[a]=e[a],o[a]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},kindOf:o,kindOfTest:s,endsWith:function(e,t,n){e=String(e),(void 0===n||n>e.length)&&(n=e.length),n-=t.length;var i=e.indexOf(t,n);return-1!==i&&i===n},toArray:function(e){if(!e)return null;var t=e.length;if(l(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n},isTypedArray:C,isFileList:m}},function(e,t,n){"use strict";var i=n(0);function r(e,t,n,i,r){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),i&&(this.request=i),r&&(this.response=r)}i.inherits(r,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}}});var a=r.prototype,o={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){o[e]={value:e}}),Object.defineProperties(r,o),Object.defineProperty(a,"isAxiosError",{value:!0}),r.from=function(e,t,n,o,s,c){var l=Object.create(a);return i.toFlatObject(e,l,function(e){return e!==Error.prototype}),r.call(l,e.message,t,n,o,s),l.name=e.name,c&&Object.assign(l,c),l},e.exports=r},function(e,t,n){"use strict";var i=n(1);function r(e){i.call(this,null==e?"canceled":e,i.ERR_CANCELED),this.name="CanceledError"}n(0).inherits(r,i,{__CANCEL__:!0}),e.exports=r},function(e,t,n){"use strict";var i=n(0),r=n(19),a=n(1),o=n(6),s=n(7),c={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!i.isUndefined(e)&&i.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var u,d={transitional:o,adapter:(("undefined"!=typeof XMLHttpRequest||"undefined"!=typeof process&&"[object process]"===Object.prototype.toString.call(process))&&(u=n(8)),u),transformRequest:[function(e,t){if(r(t,"Accept"),r(t,"Content-Type"),i.isFormData(e)||i.isArrayBuffer(e)||i.isBuffer(e)||i.isStream(e)||i.isFile(e)||i.isBlob(e))return e;if(i.isArrayBufferView(e))return e.buffer;if(i.isURLSearchParams(e))return l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString();var n,a=i.isObject(e),o=t&&t["Content-Type"];if((n=i.isFileList(e))||a&&"multipart/form-data"===o){var c=this.env&&this.env.FormData;return s(n?{"files[]":e}:e,c&&new c)}return a||"application/json"===o?(l(t,"application/json"),function(e,t,n){if(i.isString(e))try{return(0,JSON.parse)(e),i.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(0,JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional||d.transitional,n=t&&t.silentJSONParsing,r=t&&t.forcedJSONParsing,o=!n&&"json"===this.responseType;if(o||r&&i.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(o){if("SyntaxError"===e.name)throw a.from(e,a.ERR_BAD_RESPONSE,this,null,this.response);throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:n(27)},validateStatus:function(e){return e>=200&&e<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};i.forEach(["delete","get","head"],function(e){d.headers[e]={}}),i.forEach(["post","put","patch"],function(e){d.headers[e]=i.merge
1(c)}),e.exports=d},function(e,t,n){"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},function(e,t,n){"use strict";var i=n(0);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(i.isURLSearchParams(t))a=t.toString();else{var o=[];i.forEach(t,function(e,t){null!=e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),o.push(r(t)+"="+r(e))}))}),a=o.join("&")}if(a){var s=e.indexOf("#");-1!==s&&(e=e.slice(0,s)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},function(e,t,n){"use strict";e.exports={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1}},function(e,t,n){"use strict";var i=n(0);e.exports=function(e,t){t=t||new FormData;var n=[];function r(e){return null===e?"":i.isDate(e)?e.toISOString():i.isArrayBuffer(e)||i.isTypedArray(e)?"function"==typeof Blob?new Blob([e]):Buffer.from(e):e}return function e(a,o){if(i.isPlainObject(a)||i.isArray(a)){if(-1!==n.indexOf(a))throw Error("Circular reference detected in "+o);
vendor: 12,908 bytes, line 1
1n.push(a),i.forEach(a,function(n,a){if(!i.isUndefined(n)){var s,c=o?o+"."+a:a;if(n&&!o&&"object"==typeof n)if(i.endsWith(a,"{}"))n=JSON.stringify(n);else if(i.endsWith(a,"[]")&&(s=i.toArray(n)))return void s.forEach(function(e){!i.isUndefined(e)&&t.append(c,r(e))});e(n,c)}}),n.pop()}else t.append(o,r(a))}(e),t}},function(e,t,n){"use strict";var i=n(0),r=n(20),a=n(21),o=n(5),s=n(9),c=n(24),l=n(25),u=n(6),d=n(1),f=n(2),h=n(26);e.exports=function(e){return new Promise(function(t,n){var g,p=e.data,m=e.headers,v=e.responseType;function y(){e.cancelToken&&e.cancelToken.unsubscribe(g),e.signal&&e.signal.removeEventListener("abort",g)}i.isFormData(p)&&i.isStandardBrowserEnv()&&delete m["Content-Type"];var b=new XMLHttpRequest;if(e.auth){var D=e.auth.username||"",C=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";m.Authorization="Basic "+btoa(D+":"+C)}var w=s(e.baseURL,e.url);function E(){if(b){var i="getAllResponseHeaders"in b?c(b.getAllResponseHeaders()):null,a={data:v&&"text"!==v&&"json"!==v?b.response:b.responseText,status:b.status,statusText:b.statusText,headers:i,config:e,request:b};r(function(e){t(e),y()},function(e){n(e),y()},a),b=null}}if(b.open(e.method.toUpperCase(),o(w,e.params,e.paramsSerializer),!0),b.timeout=e.timeout,"onloadend"in b?b.onloadend=E:b.onreadystatechange=function(){b&&4===b.readyState&&(0!==b.status||b.responseURL&&0===b.responseURL.indexOf("file:"))&&setTimeout(E)},b.onabort=function(){b&&(n(new d("Request aborted",d.ECONNABORTED,e,b)),b=null)},b.onerror=function(){n(new d("Network Error",d.ERR_NETWORK,e,b,b)),b=null},b.ontimeout=function(){var t=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded",i=e.transitional||u;e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(new d(t,i.clarifyTimeoutError?d.ETIMEDOUT:d.ECONNABORTED,e,b)),b=null},i.isStandardBrowserEnv()){var F=(e.withCredentials||l(w))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;F&&(m[e.xsrfHeaderName]=F)}"setRequestHeader"in b&&i.forEach(m,function(e,t){void 0===p&&"content-type"===t.toLowerCase()?delete m[t]:b.setRequestHeader(t,e)}),i.isUndefined(e.withCredentials)||(b.withCredentials=!!e.withCredentials),v&&"json"!==v&&(b.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&b.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&b.upload&&b.upload.addEventListener("progress",e.onUploadProgress),(e.cancelToken||e.signal)&&(g=function(e){b&&(n(!e||e&&e.type?new f:e),b.abort(),b=null)},e.cancelToken&&e.cancelToken.subscribe(g),e.signal&&(e.signal.aborted?g():e.signal.addEventListener("abort",g))),p||(p=null);var x=h(w);x&&-1===["http","https","file"].indexOf(x)?n(new d("Unsupported protocol "+x+":",d.ERR_BAD_REQUEST,e)):b.send(p)})}},function(e,t,n){"use strict";var i=n(22),r=n(23);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},function(e,t,n){"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},function(e,t,n){"use strict";var i=n(0);e.exports=function(e,t){t=t||{};var n={};function r(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function a(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(e[n],t[n])}function o(e){if(!i.isUndefined(t[e]))return r(void 0,t[e])}function s(n){return i.isUndefined(t[n])?i.isUndefined(e[n])?void 0:r(void 0,e[n]):r(void 0,t[n])}function c(n){return n in t?r(e[n],t[n]):n in e?r(void 0,e[n]):void 0}var l={url:o,method:o,data:o,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:c};return i.forEach(Object.keys(e).concat(Object.keys(t)),function(e){var t=l[e]||a,r=t(e);i.isUndefined(r)&&t!==c||(n[e]=r)}),n}},function(e,t){e.exports={version:"0.27.2"}},function(e,t,n){e.exports=n(14)},function(e,t,n){"use strict";var i=n(0),r=n(4),a=n(15),o=n(11),s=function e(t){var n=new a(t),s=r(a.prototype.request,n);return i.extend(s,a.prototype,n),i.extend(s,n),s.create=function(n){return e(o(t,n))},s}(n(3));s.Axios=a,s.CanceledError=n(2),s.CancelToken=n(29),s.isCancel=n(10),s.VERSION=n(12).version,s.toFormData=n(7),s.AxiosError=n(1),s.Cancel=s.CanceledError,s.all=function(e){return Promise.all(e)},s.spread=n(30),s.isAxiosError=n(31),e.exports=s,e.exports.default=s},function(e,t,n){"use strict";var i=n(0),r=n(5),a=n(16),o=n(17),s=n(11),c=n(9),l=n(28),u=l.validators;function d(e){this.defaults=e,this.interceptors={request:new a,response:new a}}d.prototype.request=function(e,t){"string"==typeof e?(t=t||{}).url=e:t=e||{},(t=s(this.defaults,t)).method?t.method=t.method.toLowerCase():this.defaults.method?t.method=this.defaults.method.toLowerCase():t.method="get";var n=t.transitional;void 0!==n&&l.assertOptions(n,{silentJSONParsing:u.transitional(u.boolean),forcedJSONParsing:u.transitional(u.boolean),clarifyTimeoutError:u.transitional(u.boolean)},!1);var i=[],r=!0;this.interceptors.request.forEach(function(e){"function"==typeof e.runWhen&&!1===e.runWhen(t)||(r=r&&e.synchronous,i.unshift(e.fulfilled,e.rejected))});var a,c=[];if(this.interceptors.response.forEach(function(e){c.push(e.fulfilled,e.rejected)}),!r){var d=[o,void 0];for(Array.prototype.unshift.apply(d,i),d=d.concat(c),a=Promise.resolve(t);d.length;)a=a.then(d.shift(),d.shift());return a}for(var f=t;i.length;){var h=i.shift(),g=i.shift();try{f=h(f)}catch(e){g(e);break}}try{a=o(f)}catch(e){return Promise.reject(e)}for(;c.length;)a=a.then(c.shift(),c.shift());return a},d.prototype.getUri=function(e){e=s(this.defaults,e);var t=c(e.baseURL,e.url);return r(t,e.params,e.paramsSerializer)},i.forEach(["delete","get","head","options"],function(e){d.prototype[e]=function(t,n){return this.request(s(n||{},{method:e,url:t,data:(n||{}).data}))}}),i.forEach(["post","put","patch"],function(e){function t(t){return function(n,i,r){return this.request(s(r||{},{method:e,headers:t?{"Content-Type":"multipart/form-data"}:{},url:n,data:i}))}}d.prototype[e]=t(),d.prototype[e+"Form"]=t(!0)}),e.exports=d},function(e,t,n){"use strict";var i=n(0);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,function(t){null!==t&&e(t)})},e.exports=r},function(e,t,n){"use strict";var i=n(0),r=n(18),a=n(10),o=n(3),s=n(2);function c(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new s}e.exports=function(e){return c(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||o.adapter)(e).then(function(t){return c(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t},function(t){return a(t)||(c(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(e,t,n){"use strict";var i=n(0),r=n(3);e.exports=function(e,t,n){var a=this||r;return i.forEach(n,function(n){e=n.call(a,e,t)}),e}},function(e,t,n){"use strict";var i=n(0);e.exports=function(e,t){i.forEach(e,function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])})}},function(e,t,n){"use strict";var i=n(1);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(new i("Request failed with status code "+n.status,[i.ERR_BAD_REQUEST,i.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n)):e(n)}},function(e,t,n){"use strict";var i=n(0);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,r,a,o){var s=[];s.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),i.isString(r)&&s.push("path="+r),i.isString(a)&&s.push("domain="+a),!0===o&&s.push("secure"),document.cookie=s.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(e,t,n){"use strict";e.exports=function(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}},function(e,t,n){"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},function(e,t,n){"use strict";var i=n(0),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,o={};return e?(i.forEach(e.split("\n"),function(e){if(a=e.indexOf(":"),t=i.trim(e.substr(0,a)).toLowerCase(),n=i.trim(e.substr(a+1)),t){if(o[t]&&r.indexOf(t)>=0)return;o[t]="set-cookie"===t?(o[t]?o[t]:[]).concat([n]):o[t]?o[t]+", "+n:n}}),o):o}},function(e,t,n){"use strict";var i=n(0);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},function(e,t,n){"use strict";e.exports=function(e){var t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}},function(e,t){e.exports=null},function(e,t,n){"use strict";var i=n(12).version,r=n(1),a={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){a[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}});var o={};a.transitional=function(e,t,n){function a(e,t){return"[Axios v"+i+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,s){if(!1===e)throw new r(a(i," has been removed"+(t?" in "+t:"")),r.ERR_DEPRECATED);return t&&!o[i]&&(o[i]=!0,console.warn(a(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,s)}},e.exports={assertOptions:function(e,t,n){if("object"!=typeof e)throw new r("options must be an object",r.ERR_BAD_OPTION_VALUE);for(var i=Object.keys(e),a=i.length;a-- >0;){var o=i[a],s=t[o];if(s){var c=e[o],l=void 0===c||s(c,o,e);if(!0!==l)throw new r("option "+o+" must be "+l,r.ERR_BAD_OPTION_VALUE)}else if(!0!==n)throw new r("Unknown option "+o,r.ERR_BAD_OPTION)}},validators:a}},function(e,t,n){"use strict";var i=n(2);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(e){t=e});var n=this;this.promise.then(function(e){if(n._listeners){var t,i=n._listeners.length;for(t=0;t<i;t++)n._listeners[t](e);n._listeners=null}}),this.promise.then=function(e){var t,i=new Promise(function(e){n.subscribe(e),t=e}).then(e);return i.cancel=function(){n.unsubscribe(t)},i},e(function(e){n.reason||(n.reason=new i(e),t(n.reason))})}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.prototype.subscribe=function(e){this.reason?e(this.reason):this._listeners?this._listeners.push(e):this._listeners=[e]},r.prototype.unsubscribe=function(e){if(this._listeners){var t=this._listeners.indexOf(e);-1!==t&&this._listeners.splice(t,1)}},r.source=function(){var e;return{token:new r(function(t){e=t}),cancel:e}},e.exports=r},function(e,t,n){"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},function(e,t,n){"use strict";var i=n(0);e.exports=function(e){return i.isObject(e)&&!0===e.isAxiosError}}])});var errormessages={required:"Required field",email:"Invalid email",integer:"Needs to be a integer",digit:"Only letters and numbers",numeric:"Only numbers",pattern:"Needs to matchs pattern",phone:"Invalid phone number",url:"Invalid url",date:"Invalid date",currency:"Invalid currency",cep:"Invalid cep",maxLength:"The amount of characters is greater than allowed",minLength:"The amount of characters is less than allowed",rangeLength:"The number of characters must be between 3 and 5",sameLength:"The value needs to have 5 characters",max:"The value needs to be less or equals to 5",min:"The value needs to be greater or equals to 3",range:"The value needs to be between 3 and 5",equalTo:"The value needs to be 10",credit
1Card:"Invalid credit card number",hasExtension:"Invalid extension detected"};"de"==website.language&&(errormessages={required:"Dieses Feld ist ein Pflichtfeld",email:"Geben Sie bitte eine gültige E-Mail Adresse ein",integer:"Geben Sie bitte eine Nummer ein",digit:"Geben Sie bitte nur Ziffern ein",numeric:"Only numbers",pattern:"Geben Sie bitte eine Nummer ein",phone:"Invalid phone number",url:"Geben Sie bitte eine gültige URL ein",date:"Bitte geben Sie ein gültiges Datum ein",currency:"Invalid currency",cep:"Invalid cep",maxLength:"The amount of characters is greater than allowed",minLength:"The amount of characters is less than allowed",rangeLength:"The number of characters must be between 3 and 5",sameLength:"The value needs to have 5 characters",max:"Geben Sie bitte einen Wert kleiner oder gleich {0} ein",min:"Geben Sie bitte einen Wert gröÃer oder gleich {0} ein",range:"Geben Sie bitte einen Wert zwischen {0} und {1} ein",equalTo:"Bitte denselben Wert wiederholen",creditCard:"Geben Sie bitte eine gültige Kreditkarten-Nummer ein",hasExtension:"Invalid extension detected"}),"it"==website.language&&(errormessages={required:"Campo obbligatorio",email:"Inserisci un indirizzo email valido",integer:"Inserisci un numero valido",digit:"Only letters and numbers",numeric:"Inserisci solo numeri",pattern:"Needs to matchs pattern",phone:"Invalid phone number",url:"Inserisci un indirizzo web valido",date:"Inserisci una data valida",currency:"Invalid currency",cep:"Invalid cep",maxLength:"The amount of characters is greater than allowed",minLength:"The amount of characters is less than allowed",rangeLength:"The number of characters must be between 3 and 5",sameLength:"The value needs to have 5 characters",max:"The value needs to be less or equals to {0}",min:"The value needs to be greater or equals to {0}",range:"The value needs to be between 3 and 5",equalTo:"Il valore non corrisponde",creditCard:"Inserisci un numero di carta di credito valido",hasExtension:"Invalid extension detected"});
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.