@limetech/lime-elements 36.0.0-next.8 → 36.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/{dateFormatter-05d80b12.js → dateFormatter-d7a8d40d.js} +1 -1
- package/dist/cjs/lime-elements.cjs.js +1 -1
- package/dist/cjs/limel-button.cjs.entry.js +1 -1
- package/dist/cjs/limel-chip-set.cjs.entry.js +19 -11
- package/dist/cjs/limel-code-editor.cjs.entry.js +1596 -2
- package/dist/cjs/limel-collapsible-section.cjs.entry.js +1 -1
- package/dist/cjs/limel-date-picker.cjs.entry.js +3 -3
- package/dist/cjs/limel-dock-button.cjs.entry.js +32 -6
- package/dist/cjs/limel-dock.cjs.entry.js +6 -7
- package/dist/cjs/limel-flatpickr-adapter.cjs.entry.js +2 -2
- package/dist/cjs/limel-form.cjs.entry.js +1 -1
- package/dist/cjs/limel-input-field.cjs.entry.js +13 -6
- package/dist/cjs/limel-menu-list.cjs.entry.js +2 -3
- package/dist/cjs/limel-menu.cjs.entry.js +3 -14
- package/dist/cjs/limel-popover_4.cjs.entry.js +1 -1
- package/dist/cjs/limel-progress-flow-item.cjs.entry.js +1 -1
- package/dist/cjs/limel-select.cjs.entry.js +4 -5
- package/dist/cjs/limel-table.cjs.entry.js +17 -5
- package/dist/cjs/loader.cjs.js +1 -1
- package/dist/cjs/{moment-5cfac5cd.js → moment-d1e35cdc.js} +2 -2
- package/dist/collection/components/button/button.css +11 -7
- package/dist/collection/components/chip-set/chip-set.css +6 -2
- package/dist/collection/components/chip-set/chip-set.js +21 -13
- package/dist/collection/components/code-editor/code-editor.css +153 -1
- package/dist/collection/components/code-editor/code-editor.js +90 -2
- package/dist/collection/components/collapsible-section/collapsible-section.css +8 -7
- package/dist/collection/components/date-picker/date-picker.js +18 -1
- package/dist/collection/components/dock/dock-button/dock-button.css +15 -9
- package/dist/collection/components/dock/dock-button/dock-button.js +61 -24
- package/dist/collection/components/dock/dock.css +7 -3
- package/dist/collection/components/dock/dock.js +53 -7
- package/dist/collection/components/input-field/input-field.js +32 -7
- package/dist/collection/components/menu/menu.js +3 -14
- package/dist/collection/components/menu-list/menu-list.js +5 -25
- package/dist/collection/components/popover-surface/popover-surface.css +5 -4
- package/dist/collection/components/progress-flow/progress-flow-item/progress-flow-item.css +21 -8
- package/dist/collection/components/select/select.css +10 -11
- package/dist/collection/components/select/select.template.js +3 -4
- package/dist/collection/components/table/columns.js +1 -0
- package/dist/collection/components/table/layout.js +8 -0
- package/dist/collection/components/table/table.css +89 -61
- package/dist/collection/components/table/table.js +46 -15
- package/dist/collection/style/internal/codemirror-tooltip.scss +19 -0
- package/dist/collection/style/mixins.scss +11 -0
- package/dist/esm/{dateFormatter-2cad0292.js → dateFormatter-784c3334.js} +1 -1
- package/dist/esm/lime-elements.js +1 -1
- package/dist/esm/limel-button.entry.js +1 -1
- package/dist/esm/limel-chip-set.entry.js +19 -11
- package/dist/esm/limel-code-editor.entry.js +1596 -2
- package/dist/esm/limel-collapsible-section.entry.js +1 -1
- package/dist/esm/limel-date-picker.entry.js +3 -3
- package/dist/esm/limel-dock-button.entry.js +32 -6
- package/dist/esm/limel-dock.entry.js +6 -7
- package/dist/esm/limel-flatpickr-adapter.entry.js +2 -2
- package/dist/esm/limel-form.entry.js +1 -1
- package/dist/esm/limel-input-field.entry.js +13 -6
- package/dist/esm/limel-menu-list.entry.js +2 -3
- package/dist/esm/limel-menu.entry.js +3 -14
- package/dist/esm/limel-popover_4.entry.js +1 -1
- package/dist/esm/limel-progress-flow-item.entry.js +1 -1
- package/dist/esm/limel-select.entry.js +4 -5
- package/dist/esm/limel-table.entry.js +18 -6
- package/dist/esm/loader.js +1 -1
- package/dist/esm/{moment-367e51c5.js → moment-faa8a4a8.js} +2 -2
- package/dist/lime-elements/lime-elements.css +1 -1
- package/dist/lime-elements/lime-elements.esm.js +1 -1
- package/dist/lime-elements/{p-7e571ec6.entry.js → p-0ba0c38a.entry.js} +1 -1
- package/dist/lime-elements/p-104c89e8.entry.js +1 -0
- package/dist/lime-elements/p-1390fdcb.entry.js +126 -0
- package/dist/lime-elements/{p-1dfccbc5.entry.js → p-2fc4f4ff.entry.js} +1 -1
- package/dist/lime-elements/p-3cf4aae0.entry.js +1 -0
- package/dist/lime-elements/p-4dc07252.entry.js +82 -0
- package/dist/lime-elements/p-5ef52589.entry.js +1 -0
- package/dist/lime-elements/p-653faf47.entry.js +1 -0
- package/dist/lime-elements/{p-d76f896d.js → p-73df4d83.js} +1 -1
- package/dist/lime-elements/p-93f42a32.entry.js +1 -0
- package/dist/lime-elements/p-945afca2.js +3 -0
- package/dist/lime-elements/p-b0e54dc2.entry.js +1 -0
- package/dist/lime-elements/p-c15da26d.entry.js +1 -0
- package/dist/lime-elements/{p-af0ec482.entry.js → p-c544c05b.entry.js} +1 -1
- package/dist/lime-elements/p-c59cbd68.entry.js +1 -0
- package/dist/lime-elements/p-cb8db8c2.entry.js +37 -0
- package/dist/lime-elements/p-f41567a1.entry.js +1 -0
- package/dist/lime-elements/p-f5df4d4f.entry.js +1 -0
- package/dist/lime-elements/style/internal/codemirror-tooltip.scss +19 -0
- package/dist/lime-elements/style/mixins.scss +11 -0
- package/dist/types/components/chip-set/chip-set.d.ts +3 -2
- package/dist/types/components/code-editor/code-editor.d.ts +14 -0
- package/dist/types/components/date-picker/date-picker.d.ts +4 -0
- package/dist/types/components/dock/dock-button/dock-button.d.ts +21 -5
- package/dist/types/components/dock/dock.d.ts +15 -3
- package/dist/types/components/input-field/input-field.d.ts +6 -0
- package/dist/types/components/menu/menu.d.ts +1 -2
- package/dist/types/components/menu-list/menu-list.d.ts +2 -7
- package/dist/types/components/table/layout.d.ts +2 -0
- package/dist/types/components/table/table.d.ts +16 -1
- package/dist/types/components/table/table.types.d.ts +4 -0
- package/dist/types/components.d.ts +71 -15
- package/package.json +5 -4
- package/dist/lime-elements/p-1a2ffe75.entry.js +0 -82
- package/dist/lime-elements/p-1e59114e.entry.js +0 -1
- package/dist/lime-elements/p-3af5f9ad.js +0 -3
- package/dist/lime-elements/p-5ad60e14.entry.js +0 -126
- package/dist/lime-elements/p-64f068a8.entry.js +0 -1
- package/dist/lime-elements/p-6966b5df.entry.js +0 -1
- package/dist/lime-elements/p-722d32e0.entry.js +0 -1
- package/dist/lime-elements/p-75152d89.entry.js +0 -1
- package/dist/lime-elements/p-7ee4b825.entry.js +0 -1
- package/dist/lime-elements/p-97d6c4a6.entry.js +0 -1
- package/dist/lime-elements/p-b18cf477.entry.js +0 -1
- package/dist/lime-elements/p-b95e80c9.entry.js +0 -1
- package/dist/lime-elements/p-bd098a11.entry.js +0 -1
- package/dist/lime-elements/p-d1ee4501.entry.js +0 -37
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{r as e,c as r,h as t}from"./p-e9a95b8f.js";import{t as n}from"./p-3bf54a4c.js";import{c as a,a as i,g as o}from"./p-eab67c09.js";import{D as d}from"./p-d76f896d.js";import{m as l}from"./p-3af5f9ad.js";import{i as s,a as c}from"./p-cc9ebbef.js";import{e as h}from"./p-eda23c05.js";import{b as u,a as p}from"./p-9acf7b5d.js";import{i as f}from"./p-c93050d6.js";import{t as m}from"./p-365098fe.js";import"./p-d529bb7d.js";import"./p-858c6b82.js";function k(e){return e?1/0===(e=m(e))||-1/0===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}var g=Math.ceil,w=Math.max,b=function(e,r,t){return t&&"number"!=typeof t&&function(e,r,t){if(!f(t))return!1;var n=typeof r;return!!("number"==n?u(t)&&p(r,t.length):"string"==n&&r in t)&&h(t[r],e)}(e,r,t)&&(r=t=void 0),e=k(e),void 0===r?(r=e,e=0):r=k(r),function(e,r,t){for(var n=-1,a=w(g((r-e)/(t||1)),0),i=Array(a);a--;)i[++n]=e,e+=t;return i}(e,r,t=void 0===t?e<r?1:-1:k(t))},v=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],y={_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 r=new Date(e.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var t=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-t.getTime())/864e5-3+(t.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},x={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 r=e%100;if(r>3&&r<21)return"th";switch(r%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},M=function(e,r){return void 0===r&&(r=2),("000"+e).slice(-1*r)},D=function(e){return!0===e?1:0};function S(e,r){var t;return function(){var n=this,a=arguments;clearTimeout(t),t=setTimeout((function(){return e.apply(n,a)}),r)}}var A=function(e){return e instanceof Array?e:[e]};function T(e,r,t){if(!0===t)return e.classList.add(r);e.classList.remove(r)}function O(e,r,t){var n=window.document.createElement(e);return t=t||"",n.className=r=r||"",void 0!==t&&(n.textContent=t),n}function j(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function J(e,r){return r(e)?e:e.parentNode?J(e.parentNode,r):void 0}function C(e,r){var t=O("div","numInputWrapper"),n=O("input","numInput "+e),a=O("span","arrowUp"),i=O("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?n.type="number":(n.type="text",n.pattern="\\d*"),void 0!==r)for(var o in r)n.setAttribute(o,r[o]);return t.appendChild(n),t.appendChild(a),t.appendChild(i),t}function W(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(r){return e.target}}var P=function(){},z=function(e,r,t){return t.months[r?"shorthand":"longhand"][e]},R={D:P,F:function(e,r,t){e.setMonth(t.months.longhand.indexOf(r))},G:function(e,r){e.setHours((e.getHours()>=12?12:0)+parseFloat(r))},H:function(e,r){e.setHours(parseFloat(r))},J:function(e,r){e.setDate(parseFloat(r))},K:function(e,r,t){e.setHours(e.getHours()%12+12*D(new RegExp(t.amPM[1],"i").test(r)))},M:function(e,r,t){e.setMonth(t.months.shorthand.indexOf(r))},S:function(e,r){e.setSeconds(parseFloat(r))},U:function(e,r){return new Date(1e3*parseFloat(r))},W:function(e,r,t){var n=parseInt(r),a=new Date(e.getFullYear(),0,2+7*(n-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+t.firstDayOfWeek),a},Y:function(e,r){e.setFullYear(parseFloat(r))},Z:function(e,r){return new Date(r)},d:function(e,r){e.setDate(parseFloat(r))},h:function(e,r){e.setHours((e.getHours()>=12?12:0)+parseFloat(r))},i:function(e,r){e.setMinutes(parseFloat(r))},j:function(e,r){e.setDate(parseFloat(r))},l:P,m:function(e,r){e.setMonth(parseFloat(r)-1)},n:function(e,r){e.setMonth(parseFloat(r)-1)},s:function(e,r){e.setSeconds(parseFloat(r))},u:function(e,r){return new Date(parseFloat(r))},w:P,y:function(e,r){e.setFullYear(2e3+parseFloat(r))}},F={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},N={Z:function(e){return e.toISOString()},D:function(e,r,t){return r.weekdays.shorthand[N.w(e,r,t)]},F:function(e,r,t){return z(N.n(e,r,t)-1,!1,r)},G:function(e,r,t){return M(N.h(e,r,t))},H:function(e){return M(e.getHours())},J:function(e,r){return void 0!==r.ordinal?e.getDate()+r.ordinal(e.getDate()):e.getDate()},K:function(e,r){return r.amPM[D(e.getHours()>11)]},M:function(e,r){return z(e.getMonth(),!0,r)},S:function(e){return M(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,r,t){return t.getWeek(e)},Y:function(e){return M(e.getFullYear(),4)},d:function(e){return M(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return M(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,r){return r.weekdays.longhand[e.getDay()]},m:function(e){return M(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)}},L=function(e){var r=e.config,t=void 0===r?y:r,n=e.l10n,a=void 0===n?x:n,i=e.isMobile,o=void 0!==i&&i;return function(e,r,n){var i=n||a;return void 0===t.formatDate||o?r.split("").map((function(r,n,a){return N[r]&&"\\"!==a[n-1]?N[r](e,i,t):"\\"!==r?r:""})).join(""):t.formatDate(e,r,i)}},I=function(e){var r=e.config,t=void 0===r?y:r,n=e.l10n,a=void 0===n?x:n;return function(e,r,n,i){if(0===e||e){var o,d=i||a,l=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"==typeof e){var s=r||(t||y).dateFormat,c=String(e).trim();if("today"===c)o=new Date,n=!0;else if(t&&t.parseDate)o=t.parseDate(e,s);else if(/Z$/.test(c)||/GMT$/.test(c))o=new Date(e);else{for(var h=void 0,u=[],p=0,f=0,m="";p<s.length;p++){var k=s[p],g="\\"===k;if(F[k]&&"\\"!==s[p-1]&&!g){m+=F[k];var w=new RegExp(m).exec(e);w&&(h=!0)&&u["Y"!==k?"push":"unshift"]({fn:R[k],val:w[++f]})}else g||(m+=".")}o=t&&t.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),u.forEach((function(e){return o=(0,e.fn)(o,e.val,d)||o})),o=h?o:void 0}}if(o instanceof Date&&!isNaN(o.getTime()))return!0===n&&o.setHours(0,0,0,0),o;t.errorHandler(new Error("Invalid date provided: "+l))}}};function _(e,r,t){return void 0===t&&(t=!0),!1!==t?new Date(e.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):e.getTime()-r.getTime()}var Y=function(e,r,t){return 3600*e+60*r+t};function E(e){var r=e.defaultHour,t=e.defaultMinute,n=e.defaultSeconds;if(void 0!==e.minDate){var a=e.minDate.getHours(),i=e.minDate.getMinutes(),o=e.minDate.getSeconds();r<a&&(r=a),r===a&&t<i&&(t=i),r===a&&t===i&&n<o&&(n=e.minDate.getSeconds())}if(void 0!==e.maxDate){var d=e.maxDate.getHours(),l=e.maxDate.getMinutes();(r=Math.min(r,d))===d&&(t=Math.min(l,t)),r===d&&t===l&&(n=e.maxDate.getSeconds())}return{hours:r,minutes:t,seconds:n}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var n=function(r){r&&Object.keys(r).forEach((function(t){return e[t]=r[t]}))},a=0,i=r;a<i.length;a++){var o=i[a];n(o)}return e});var H=function(){return(H=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e}).apply(this,arguments)},K=function(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),a=0;for(r=0;r<t;r++)for(var i=arguments[r],o=0,d=i.length;o<d;o++,a++)n[a]=i[o];return n};function G(e,r){var t={config:H(H({},y),q.defaultConfig),l10n:x};function n(){var e;return(null===(e=t.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function a(e){return e.bind(t)}function i(){var e=t.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==t.calendarContainer&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),void 0!==t.daysContainer){var r=(t.days.offsetWidth+1)*e.showMonths;t.daysContainer.style.width=r+"px",t.calendarContainer.style.width=r+(void 0!==t.weekWrapper?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}}))}function o(e){if(0===t.selectedDates.length){var r=void 0===t.config.minDate||_(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),n=E(t.config);r.setHours(n.hours,n.minutes,n.seconds,r.getMilliseconds()),t.selectedDates=[r],t.latestSelectedDateObj=r}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var r="keydown"===e.type,n=W(e),a=n;void 0!==t.amPM&&n===t.amPM&&(t.amPM.textContent=t.l10n.amPM[D(t.amPM.textContent===t.l10n.amPM[0])]);var i=parseFloat(a.getAttribute("min")),o=parseFloat(a.getAttribute("max")),d=parseFloat(a.getAttribute("step")),l=parseInt(a.value,10),s=l+d*(e.delta||(r?38===e.which?1:-1:0));if(void 0!==a.value&&2===a.value.length){var c=a===t.hourElement,h=a===t.minuteElement;s<i?(s=o+s+D(!c)+(D(c)&&D(!t.amPM)),h&&m(void 0,-1,t.hourElement)):s>o&&(s=a===t.hourElement?s-o-D(!t.amPM):i,h&&m(void 0,1,t.hourElement)),t.amPM&&c&&(1===d?s+l===23:Math.abs(s-l)>d)&&(t.amPM.textContent=t.l10n.amPM[D(t.amPM.textContent===t.l10n.amPM[0])]),a.value=M(s)}}(e);var a=t._input.value;d(),xe(),t._input.value!==a&&t._debouncedChange()}function d(){if(void 0!==t.hourElement&&void 0!==t.minuteElement){var e=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(t.minuteElement.value,10)||0)%60,n=void 0!==t.secondElement?(parseInt(t.secondElement.value,10)||0)%60:0;void 0!==t.amPM&&(e=e%12+12*D(t.amPM.textContent===t.l10n.amPM[1]));var a=void 0!==t.config.minTime||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&0===_(t.latestSelectedDateObj,t.config.minDate,!0),i=void 0!==t.config.maxTime||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&0===_(t.latestSelectedDateObj,t.config.maxDate,!0);if(void 0!==t.config.maxTime&&void 0!==t.config.minTime&&t.config.minTime>t.config.maxTime){var o=Y(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),d=Y(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),l=Y(e,r,n);if(l>d&&l<o){var c=function(e){var r=Math.floor(e/3600),t=(e-3600*r)/60;return[r,t,e-3600*r-60*t]}(o);e=c[0],r=c[1],n=c[2]}}else{if(i){var h=void 0!==t.config.maxTime?t.config.maxTime:t.config.maxDate;(e=Math.min(e,h.getHours()))===h.getHours()&&(r=Math.min(r,h.getMinutes())),r===h.getMinutes()&&(n=Math.min(n,h.getSeconds()))}if(a){var u=void 0!==t.config.minTime?t.config.minTime:t.config.minDate;(e=Math.max(e,u.getHours()))===u.getHours()&&r<u.getMinutes()&&(r=u.getMinutes()),r===u.getMinutes()&&(n=Math.max(n,u.getSeconds()))}}s(e,r,n)}}function l(e){var r=e||t.latestSelectedDateObj;r&&r instanceof Date&&s(r.getHours(),r.getMinutes(),r.getSeconds())}function s(e,r,n){void 0!==t.latestSelectedDateObj&&t.latestSelectedDateObj.setHours(e%24,r,n||0,0),t.hourElement&&t.minuteElement&&!t.isMobile&&(t.hourElement.value=M(t.config.time_24hr?e:(12+e)%12+12*D(e%12==0)),t.minuteElement.value=M(r),void 0!==t.amPM&&(t.amPM.textContent=t.l10n.amPM[D(e>=12)]),void 0!==t.secondElement&&(t.secondElement.value=M(n)))}function c(e){var r=W(e),t=parseInt(r.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&X(t)}function h(e,r,n,a){return r instanceof Array?r.forEach((function(r){return h(e,r,n,a)})):e instanceof Array?e.forEach((function(e){return h(e,r,n,a)})):(e.addEventListener(r,n,a),void t._handlers.push({remove:function(){return e.removeEventListener(r,n,a)}}))}function u(){ge("onChange")}function p(e,r){var n=void 0!==e?t.parseDate(e):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),a=t.currentYear,i=t.currentMonth;try{void 0!==n&&(t.currentYear=n.getFullYear(),t.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,t.config.errorHandler(e)}r&&t.currentYear!==a&&(ge("onYearChange"),N()),!r||t.currentYear===a&&t.currentMonth===i||ge("onMonthChange"),t.redraw()}function f(e){var r=W(e);~r.className.indexOf("arrow")&&m(e,r.classList.contains("arrowUp")?1:-1)}function m(e,r,t){var n=e&&W(e),a=t||n&&n.parentNode&&n.parentNode.firstChild,i=we("increment");i.delta=r,a&&a.dispatchEvent(i)}function k(e,r,n,a){var i=ee(r,!0),o=O("span",e,r.getDate().toString());return o.dateObj=r,o.$i=a,o.setAttribute("aria-label",t.formatDate(r,t.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===_(r,t.now)&&(t.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,be(r)&&(o.classList.add("selected"),t.selectedDateElem=o,"range"===t.config.mode&&(T(o,"startRange",t.selectedDates[0]&&0===_(r,t.selectedDates[0],!0)),T(o,"endRange",t.selectedDates[1]&&0===_(r,t.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===t.config.mode&&function(e){return!("range"!==t.config.mode||t.selectedDates.length<2)&&_(e,t.selectedDates[0])>=0&&_(e,t.selectedDates[1])<=0}(r)&&!be(r)&&o.classList.add("inRange"),t.weekNumbers&&1===t.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(r)+"</span>"),ge("onDayCreate",o),o}function g(e){e.focus(),"range"===t.config.mode&&ae(e)}function w(e){for(var r=e>0?t.config.showMonths:-1,n=e>0?0:t.config.showMonths-1;n!=r;n+=e)for(var a=t.daysContainer.children[n],i=e>0?a.children.length:-1,o=e>0?0:a.children.length-1;o!=i;o+=e){var d=a.children[o];if(-1===d.className.indexOf("hidden")&&ee(d.dateObj))return d}}function b(e,r){var a=n(),i=re(a||document.body),o=void 0!==e?e:i?a:void 0!==t.selectedDateElem&&re(t.selectedDateElem)?t.selectedDateElem:void 0!==t.todayDateElem&&re(t.todayDateElem)?t.todayDateElem:w(r>0?1:-1);void 0===o?t._input.focus():i?function(e,r){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():t.currentMonth,a=r>0?t.config.showMonths:-1,i=r>0?1:-1,o=n-t.currentMonth;o!=a;o+=i)for(var d=t.daysContainer.children[o],l=d.children.length,s=n-t.currentMonth===o?e.$i+r:r<0?d.children.length-1:0;s>=0&&s<l&&s!=(r>0?l:-1);s+=i){var c=d.children[s];if(-1===c.className.indexOf("hidden")&&ee(c.dateObj)&&Math.abs(e.$i-s)>=Math.abs(r))return g(c)}t.changeMonth(i),b(w(i),0)}(o,r):g(o)}function P(e,r){for(var n=(new Date(e,r,1).getDay()-t.l10n.firstDayOfWeek+7)%7,a=t.utils.getDaysInMonth((r-1+12)%12,e),i=t.utils.getDaysInMonth(r,e),o=window.document.createDocumentFragment(),d=t.config.showMonths>1,l=d?"prevMonthDay hidden":"prevMonthDay",s=d?"nextMonthDay hidden":"nextMonthDay",c=a+1-n,h=0;c<=a;c++,h++)o.appendChild(k("flatpickr-day "+l,new Date(e,r-1,c),0,h));for(c=1;c<=i;c++,h++)o.appendChild(k("flatpickr-day",new Date(e,r,c),0,h));for(var u=i+1;u<=42-n&&(1===t.config.showMonths||h%7!=0);u++,h++)o.appendChild(k("flatpickr-day "+s,new Date(e,r+1,u%i),0,h));var p=O("div","dayContainer");return p.appendChild(o),p}function R(){if(void 0!==t.daysContainer){j(t.daysContainer),t.weekNumbers&&j(t.weekNumbers);for(var e=document.createDocumentFragment(),r=0;r<t.config.showMonths;r++){var n=new Date(t.currentYear,t.currentMonth,1);n.setMonth(t.currentMonth+r),e.appendChild(P(n.getFullYear(),n.getMonth()))}t.daysContainer.appendChild(e),t.days=t.daysContainer.firstChild,"range"===t.config.mode&&1===t.selectedDates.length&&ae()}}function N(){if(!(t.config.showMonths>1||"dropdown"!==t.config.monthSelectorType)){var e=function(e){return!(void 0!==t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&e<t.config.minDate.getMonth()||void 0!==t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()&&e>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var r=0;r<12;r++)if(e(r)){var n=O("option","flatpickr-monthDropdown-month");n.value=new Date(t.currentYear,r).getMonth().toString(),n.textContent=z(r,t.config.shorthandCurrentMonth,t.l10n),n.tabIndex=-1,t.currentMonth===r&&(n.selected=!0),t.monthsDropdownContainer.appendChild(n)}}}function G(){var e,r=O("div","flatpickr-month"),n=window.document.createDocumentFragment();t.config.showMonths>1||"static"===t.config.monthSelectorType?e=O("span","cur-month"):(t.monthsDropdownContainer=O("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),h(t.monthsDropdownContainer,"change",(function(e){var r=W(e),n=parseInt(r.value,10);t.changeMonth(n-t.currentMonth),ge("onMonthChange")})),N(),e=t.monthsDropdownContainer);var a=C("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&i.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(i.setAttribute("max",t.config.maxDate.getFullYear().toString()),i.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var o=O("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),n.appendChild(o),r.appendChild(n),{container:r,yearElement:i,monthElement:e}}function U(){j(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var e=t.config.showMonths;e--;){var r=G();t.yearElements.push(r.yearElement),t.monthElements.push(r.monthElement),t.monthNav.appendChild(r.container)}t.monthNav.appendChild(t.nextMonthNav)}function B(){t.weekdayContainer?j(t.weekdayContainer):t.weekdayContainer=O("div","flatpickr-weekdays");for(var e=t.config.showMonths;e--;){var r=O("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(r)}return V(),t.weekdayContainer}function V(){if(t.weekdayContainer){var e=t.l10n.firstDayOfWeek,r=K(t.l10n.weekdays.shorthand);e>0&&e<r.length&&(r=K(r.splice(e,r.length),r.splice(0,e)));for(var n=t.config.showMonths;n--;)t.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+r.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Q(e,r){void 0===r&&(r=!0);var n=r?e:e-t.currentMonth;n<0&&!0===t._hidePrevMonthArrow||n>0&&!0===t._hideNextMonthArrow||(t.currentMonth+=n,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,ge("onYearChange"),N()),R(),ge("onMonthChange"),ve())}function Z(e){return t.calendarContainer.contains(e)}function $(e){if(t.isOpen&&!t.config.inline){var r=W(e),n=Z(r),a=!(r===t.input||r===t.altInput||t.element.contains(r)||e.path&&e.path.indexOf&&(~e.path.indexOf(t.input)||~e.path.indexOf(t.altInput))||n||Z(e.relatedTarget)),i=!t.config.ignoredFocusElements.some((function(e){return e.contains(r)}));a&&i&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),void 0!==t.timeContainer&&void 0!==t.minuteElement&&void 0!==t.hourElement&&""!==t.input.value&&void 0!==t.input.value&&o(),t.close(),t.config&&"range"===t.config.mode&&1===t.selectedDates.length&&t.clear(!1))}}function X(e){if(!(!e||t.config.minDate&&e<t.config.minDate.getFullYear()||t.config.maxDate&&e>t.config.maxDate.getFullYear())){var r=t.currentYear!==e;t.currentYear=e||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),r&&(t.redraw(),ge("onYearChange"),N())}}function ee(e,r){var n;void 0===r&&(r=!0);var a=t.parseDate(e,void 0,r);if(t.config.minDate&&a&&_(a,t.config.minDate,void 0!==r?r:!t.minDateHasTime)<0||t.config.maxDate&&a&&_(a,t.config.maxDate,void 0!==r?r:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&0===t.config.disable.length)return!0;if(void 0===a)return!1;for(var i=!!t.config.enable,o=null!==(n=t.config.enable)&&void 0!==n?n:t.config.disable,d=0,l=void 0;d<o.length;d++){if("function"==typeof(l=o[d])&&l(a))return i;if(l instanceof Date&&void 0!==a&&l.getTime()===a.getTime())return i;if("string"==typeof l){var s=t.parseDate(l,void 0,!0);return s&&s.getTime()===a.getTime()?i:!i}if("object"==typeof l&&void 0!==a&&l.from&&l.to&&a.getTime()>=l.from.getTime()&&a.getTime()<=l.to.getTime())return i}return!i}function re(e){return void 0!==t.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&t.daysContainer.contains(e)}function te(e){var r=e.target===t._input,n=t._input.value.trimEnd()!==ye();!r||!n||e.relatedTarget&&Z(e.relatedTarget)||t.setDate(t._input.value,!0,e.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function ne(r){var a=W(r),i=t.config.wrap?e.contains(a):a===t._input,l=t.config.allowInput,s=t.isOpen&&(!l||!i),c=t.config.inline&&i&&!l;if(13===r.keyCode&&i){if(l)return t.setDate(t._input.value,!0,a===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),a.blur();t.open()}else if(Z(a)||s||c){var h=!!t.timeContainer&&t.timeContainer.contains(a);switch(r.keyCode){case 13:h?(r.preventDefault(),o(),he()):ue(r);break;case 27:r.preventDefault(),he();break;case 8:case 46:i&&!t.config.allowInput&&(r.preventDefault(),t.clear());break;case 37:case 39:if(h||i)t.hourElement&&t.hourElement.focus();else{r.preventDefault();var u=n();if(void 0!==t.daysContainer&&(!1===l||u&&re(u))){var p=39===r.keyCode?1:-1;r.ctrlKey?(r.stopPropagation(),Q(p),b(w(1),0)):b(void 0,p)}}break;case 38:case 40:r.preventDefault();var f=40===r.keyCode?1:-1;t.daysContainer&&void 0!==a.$i||a===t.input||a===t.altInput?r.ctrlKey?(r.stopPropagation(),X(t.currentYear-f),b(w(1),0)):h||b(void 0,7*f):a===t.currentYearElement?X(t.currentYear-f):t.config.enableTime&&(!h&&t.hourElement&&t.hourElement.focus(),o(r),t._debouncedChange());break;case 9:if(h){var m=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter((function(e){return e})),k=m.indexOf(a);if(-1!==k){var g=m[k+(r.shiftKey?-1:1)];r.preventDefault(),(g||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(a)&&r.shiftKey&&(r.preventDefault(),t._input.focus())}}if(void 0!==t.amPM&&a===t.amPM)switch(r.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],d(),xe();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],d(),xe()}(i||Z(a))&&ge("onKeyDown",r)}function ae(e,r){if(void 0===r&&(r="flatpickr-day"),1===t.selectedDates.length&&(!e||e.classList.contains(r)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),a=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),i=Math.min(n,t.selectedDates[0].getTime()),o=Math.max(n,t.selectedDates[0].getTime()),d=!1,l=0,s=0,c=i;c<o;c+=864e5)ee(new Date(c),!0)||(d=d||c>i&&c<o,c<a&&(!l||c>l)?l=c:c>a&&(!s||c<s)&&(s=c));Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+r)).forEach((function(r){var i,o,c,h=r.dateObj.getTime(),u=l>0&&h<l||s>0&&h>s;if(u)return r.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){r.classList.remove(e)}));d&&!u||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){r.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=t.selectedDates[0].getTime()?"startRange":"endRange"),a<n&&h===a?r.classList.add("startRange"):a>n&&h===a&&r.classList.add("endRange"),h>=l&&(0===s||h<=s)&&(o=a,c=n,(i=h)>Math.min(o,c)&&i<Math.max(o,c))&&r.classList.add("inRange")))}))}}function ie(){!t.isOpen||t.config.static||t.config.inline||se()}function oe(e){return function(r){var n=t.config["_"+e+"Date"]=t.parseDate(r,t.config.dateFormat),a=t.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(t["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter((function(e){return ee(e)})),t.selectedDates.length||"min"!==e||l(n),xe()),t.daysContainer&&(ce(),void 0!==n?t.currentYearElement[e]=n.getFullYear().toString():t.currentYearElement.removeAttribute(e),t.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function de(){return t.config.wrap?e.querySelector("[data-input]"):e}function le(){"object"!=typeof t.config.locale&&void 0===q.l10ns[t.config.locale]&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=H(H({},q.l10ns.default),"object"==typeof t.config.locale?t.config.locale:"default"!==t.config.locale?q.l10ns[t.config.locale]:void 0),F.D="("+t.l10n.weekdays.shorthand.join("|")+")",F.l="("+t.l10n.weekdays.longhand.join("|")+")",F.M="("+t.l10n.months.shorthand.join("|")+")",F.F="("+t.l10n.months.longhand.join("|")+")",F.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")",void 0===H(H({},r),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===q.defaultConfig.time_24hr&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=L(t),t.parseDate=I({config:t.config,l10n:t.l10n})}function se(e){if("function"!=typeof t.config.position){if(void 0!==t.calendarContainer){ge("onPreCalendarPosition");var r=e||t._positionElement,n=Array.prototype.reduce.call(t.calendarContainer.children,(function(e,r){return e+r.offsetHeight}),0),a=t.calendarContainer.offsetWidth,i=t.config.position.split(" "),o=i[0],d=i.length>1?i[1]:null,l=r.getBoundingClientRect(),s=window.innerHeight-l.bottom,c="above"===o||"below"!==o&&s<n&&l.top>n,h=window.pageYOffset+l.top+(c?-n-2:r.offsetHeight+2);if(T(t.calendarContainer,"arrowTop",!c),T(t.calendarContainer,"arrowBottom",c),!t.config.inline){var u=window.pageXOffset+l.left,p=!1,f=!1;"center"===d?(u-=(a-l.width)/2,p=!0):"right"===d&&(u-=a-l.width,f=!0),T(t.calendarContainer,"arrowLeft",!p&&!f),T(t.calendarContainer,"arrowCenter",p),T(t.calendarContainer,"arrowRight",f);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right),k=u+a>window.document.body.offsetWidth,g=m+a>window.document.body.offsetWidth;if(T(t.calendarContainer,"rightMost",k),!t.config.static)if(t.calendarContainer.style.top=h+"px",k)if(g){var w=function(){for(var e=null,r=0;r<document.styleSheets.length;r++){var t=document.styleSheets[r];if(t.cssRules){e=t;break}}return null!=e?e:(n=document.createElement("style"),document.head.appendChild(n),n.sheet);var n}();if(void 0===w)return;var b=window.document.body.offsetWidth,v=Math.max(0,b/2-a/2),y=w.cssRules.length,x="{left:"+l.left+"px;right:auto;}";T(t.calendarContainer,"rightMost",!1),T(t.calendarContainer,"centerMost",!0),w.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+x,y),t.calendarContainer.style.left=v+"px",t.calendarContainer.style.right="auto"}else t.calendarContainer.style.left="auto",t.calendarContainer.style.right=m+"px";else t.calendarContainer.style.left=u+"px",t.calendarContainer.style.right="auto"}}}else t.config.position(t,e)}function ce(){t.config.noCalendar||t.isMobile||(N(),ve(),R())}function he(){t._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(t.close,0):t.close()}function ue(e){e.preventDefault(),e.stopPropagation();var r=J(W(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==r){var n=r,a=t.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<t.currentMonth||a.getMonth()>t.currentMonth+t.config.showMonths-1)&&"range"!==t.config.mode;if(t.selectedDateElem=n,"single"===t.config.mode)t.selectedDates=[a];else if("multiple"===t.config.mode){var o=be(a);o?t.selectedDates.splice(parseInt(o),1):t.selectedDates.push(a)}else"range"===t.config.mode&&(2===t.selectedDates.length&&t.clear(!1,!1),t.latestSelectedDateObj=a,t.selectedDates.push(a),0!==_(a,t.selectedDates[0],!0)&&t.selectedDates.sort((function(e,r){return e.getTime()-r.getTime()})));if(d(),i){var l=t.currentYear!==a.getFullYear();t.currentYear=a.getFullYear(),t.currentMonth=a.getMonth(),l&&(ge("onYearChange"),N()),ge("onMonthChange")}ve(),R(),xe(),i||"range"===t.config.mode||1!==t.config.showMonths?void 0!==t.selectedDateElem&&void 0===t.hourElement&&t.selectedDateElem&&t.selectedDateElem.focus():g(n),void 0!==t.hourElement&&void 0!==t.hourElement&&t.hourElement.focus(),t.config.closeOnSelect&&("single"===t.config.mode&&!t.config.enableTime||"range"===t.config.mode&&2===t.selectedDates.length&&!t.config.enableTime)&&he(),u()}}t.parseDate=I({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=h,t._setHoursFromDate=l,t._positionCalendar=se,t.changeMonth=Q,t.changeYear=X,t.clear=function(e,r){if(void 0===e&&(e=!0),void 0===r&&(r=!0),t.input.value="",void 0!==t.altInput&&(t.altInput.value=""),void 0!==t.mobileInput&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,!0===r&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),!0===t.config.enableTime){var n=E(t.config);s(n.hours,n.minutes,n.seconds)}t.redraw(),e&&ge("onChange")},t.close=function(){t.isOpen=!1,t.isMobile||(void 0!==t.calendarContainer&&t.calendarContainer.classList.remove("open"),void 0!==t._input&&t._input.classList.remove("active")),ge("onClose")},t.onMouseOver=ae,t._createElement=O,t.createDay=k,t.destroy=function(){void 0!==t.config&&ge("onDestroy");for(var e=t._handlers.length;e--;)t._handlers[e].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var r=t.calendarContainer.parentNode;if(r.lastChild&&r.removeChild(r.lastChild),r.parentNode){for(;r.firstChild;)r.parentNode.insertBefore(r.firstChild,r);r.parentNode.removeChild(r)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.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 t[e]}catch(e){}}))},t.isEnabled=ee,t.jumpToDate=p,t.updateValue=xe,t.open=function(e,r){if(void 0===r&&(r=t._positionElement),!0===t.isMobile){if(e){e.preventDefault();var n=W(e);n&&n.blur()}return void 0!==t.mobileInput&&(t.mobileInput.focus(),t.mobileInput.click()),void ge("onOpen")}if(!t._input.disabled&&!t.config.inline){var a=t.isOpen;t.isOpen=!0,a||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),ge("onOpen"),se(r)),!0===t.config.enableTime&&!0===t.config.noCalendar&&(!1!==t.config.allowInput||void 0!==e&&t.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return t.hourElement.select()}),50))}},t.redraw=ce,t.set=function(e,r){if(null!==e&&"object"==typeof e)for(var n in Object.assign(t.config,e),e)void 0!==pe[n]&&pe[n].forEach((function(e){return e()}));else t.config[e]=r,void 0!==pe[e]?pe[e].forEach((function(e){return e()})):v.indexOf(e)>-1&&(t.config[e]=A(r));t.redraw(),xe(!0)},t.setDate=function(e,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=t.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return t.clear(r);fe(e,n),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),p(void 0,r),l(),0===t.selectedDates.length&&t.clear(!1),xe(r),r&&ge("onChange")},t.toggle=function(e){if(!0===t.isOpen)return t.close();t.open(e)};var pe={locale:[le,V],showMonths:[U,i,B],minDate:[p],maxDate:[p],positionElement:[ke],clickOpens:[function(){!0===t.config.clickOpens?(h(t._input,"focus",t.open),h(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function fe(e,r){var n=[];if(e instanceof Array)n=e.map((function(e){return t.parseDate(e,r)}));else if(e instanceof Date||"number"==typeof e)n=[t.parseDate(e,r)];else if("string"==typeof e)switch(t.config.mode){case"single":case"time":n=[t.parseDate(e,r)];break;case"multiple":n=e.split(t.config.conjunction).map((function(e){return t.parseDate(e,r)}));break;case"range":n=e.split(t.l10n.rangeSeparator).map((function(e){return t.parseDate(e,r)}))}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));t.selectedDates=t.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===t.config.mode&&t.selectedDates.sort((function(e,r){return e.getTime()-r.getTime()}))}function me(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?t.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:t.parseDate(e.from,void 0),to:t.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ke(){t._positionElement=t.config.positionElement||t._input}function ge(e,r){if(void 0!==t.config){var n=t.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](t.selectedDates,t.input.value,t,r);"onChange"===e&&(t.input.dispatchEvent(we("change")),t.input.dispatchEvent(we("input")))}}function we(e){var r=document.createEvent("Event");return r.initEvent(e,!0,!0),r}function be(e){for(var r=0;r<t.selectedDates.length;r++){var n=t.selectedDates[r];if(n instanceof Date&&0===_(n,e))return""+r}return!1}function ve(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach((function(e,r){var n=new Date(t.currentYear,t.currentMonth,1);n.setMonth(t.currentMonth+r),t.config.showMonths>1||"static"===t.config.monthSelectorType?t.monthElements[r].textContent=z(n.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),t._hidePrevMonthArrow=void 0!==t.config.minDate&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=void 0!==t.config.maxDate&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function ye(e){var r=e||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map((function(e){return t.formatDate(e,r)})).filter((function(e,r,n){return"range"!==t.config.mode||t.config.enableTime||n.indexOf(e)===r})).join("range"!==t.config.mode?t.config.conjunction:t.l10n.rangeSeparator)}function xe(e){void 0===e&&(e=!0),void 0!==t.mobileInput&&t.mobileFormatStr&&(t.mobileInput.value=void 0!==t.latestSelectedDateObj?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=ye(t.config.dateFormat),void 0!==t.altInput&&(t.altInput.value=ye(t.config.altFormat)),!1!==e&&ge("onValueUpdate")}function Me(e){var r=W(e),n=t.prevMonthNav.contains(r),a=t.nextMonthNav.contains(r);n||a?Q(n?-1:1):t.yearElements.indexOf(r)>=0?r.select():r.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):r.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}return function(){t.element=t.input=e,t.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=H(H({},JSON.parse(JSON.stringify(e.dataset||{}))),r),o={};t.config.parseDate=i.parseDate,t.config.formatDate=i.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(e){t.config._enable=me(e)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(e){t.config._disable=me(e)}});var d="time"===i.mode;i.dateFormat||!i.enableTime&&!d||(o.dateFormat=i.noCalendar||d?"H:i"+(i.enableSeconds?":S":""):(q.defaultConfig.dateFormat||y.dateFormat)+" H:i"+(i.enableSeconds?":S":"")),i.altInput&&(i.enableTime||d)&&!i.altFormat&&(o.altFormat=i.noCalendar||d?"h:i"+(i.enableSeconds?":S K":" K"):(q.defaultConfig.altFormat||y.altFormat)+" h:i"+(i.enableSeconds?":S":"")+" K"),Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:oe("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:oe("max")});var l=function(e){return function(r){t.config["min"===e?"_minTime":"_maxTime"]=t.parseDate(r,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:l("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:l("max")}),"time"===i.mode&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,o,i);for(var s=0;s<n.length;s++)t.config[n[s]]=!0===t.config[n[s]]||"true"===t.config[n[s]];for(v.filter((function(e){return void 0!==t.config[e]})).forEach((function(e){t.config[e]=A(t.config[e]||[]).map(a)})),t.isMobile=!t.config.disableMobile&&!t.config.inline&&"single"===t.config.mode&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),s=0;s<t.config.plugins.length;s++){var c=t.config.plugins[s](t)||{};for(var h in c)v.indexOf(h)>-1?t.config[h]=A(c[h]).map(a).concat(t.config[h]):void 0===i[h]&&(t.config[h]=c[h])}i.altInputClass||(t.config.altInputClass=de().className+" "+t.config.altInputClass),ge("onParseConfig")}(),le(),t.input=de(),t.input?(t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=O(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),ke()):t.config.errorHandler(new Error("Invalid input element specified")),function(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var e=t.config.defaultDate||("INPUT"!==t.input.nodeName&&"TEXTAREA"!==t.input.nodeName||!t.input.placeholder||t.input.value!==t.input.placeholder?t.input.value:null);e&&fe(e,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),void 0!==t.config.minTime&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),void 0!==t.config.maxTime&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}(),t.utils={getDaysInMonth:function(e,r){return void 0===e&&(e=t.currentMonth),void 0===r&&(r=t.currentYear),1===e&&(r%4==0&&r%100!=0||r%400==0)?29:t.l10n.daysInMonth[e]}},t.isMobile||function(){var e=window.document.createDocumentFragment();if(t.calendarContainer=O("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(e.appendChild((t.monthNav=O("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=O("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=O("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,U(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(e){t.__hidePrevMonthArrow!==e&&(T(t.prevMonthNav,"flatpickr-disabled",e),t.__hidePrevMonthArrow=e)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(e){t.__hideNextMonthArrow!==e&&(T(t.nextMonthNav,"flatpickr-disabled",e),t.__hideNextMonthArrow=e)}}),t.currentYearElement=t.yearElements[0],ve(),t.monthNav)),t.innerContainer=O("div","flatpickr-innerContainer"),t.config.weekNumbers){var r=function(){t.calendarContainer.classList.add("hasWeeks");var e=O("div","flatpickr-weekwrapper");e.appendChild(O("span","flatpickr-weekday",t.l10n.weekAbbreviation));var r=O("div","flatpickr-weeks");return e.appendChild(r),{weekWrapper:e,weekNumbers:r}}(),n=r.weekWrapper,a=r.weekNumbers;t.innerContainer.appendChild(n),t.weekNumbers=a,t.weekWrapper=n}t.rContainer=O("div","flatpickr-rContainer"),t.rContainer.appendChild(B()),t.daysContainer||(t.daysContainer=O("div","flatpickr-days"),t.daysContainer.tabIndex=-1),R(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),e.appendChild(t.innerContainer)}t.config.enableTime&&e.appendChild(function(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var e=E(t.config);t.timeContainer=O("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var r=O("span","flatpickr-time-separator",":"),n=C("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=n.getElementsByTagName("input")[0];var a=C("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=a.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),t.minuteElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():e.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(n),t.timeContainer.appendChild(r),t.timeContainer.appendChild(a),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var i=C("flatpickr-second");t.secondElement=i.getElementsByTagName("input")[0],t.secondElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():e.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(O("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(i)}return t.config.time_24hr||(t.amPM=O("span","flatpickr-am-pm",t.l10n.amPM[D((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}()),T(t.calendarContainer,"rangeMode","range"===t.config.mode),T(t.calendarContainer,"animate",!0===t.config.animate),T(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(e);var i=void 0!==t.config.appendTo&&void 0!==t.config.appendTo.nodeType;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!i&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):void 0!==t.config.appendTo&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var o=O("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(o,t.element),o.appendChild(t.element),t.altInput&&o.appendChild(t.altInput),o.appendChild(t.calendarContainer)}t.config.static||t.config.inline||(void 0!==t.config.appendTo?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}(),function(){if(t.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+e+"]"),(function(r){return h(r,"click",t[e])}))})),t.isMobile)!function(){var e=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=O("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=e,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",void 0!==t.altInput&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch(e){}h(t.mobileInput,"change",(function(e){t.setDate(W(e).value,!1,t.mobileFormatStr),ge("onChange"),ge("onClose")}))}();else{var e=S(ie,50);if(t._debouncedChange=S(u,300),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&h(t.daysContainer,"mouseover",(function(e){"range"===t.config.mode&&ae(W(e))})),h(t._input,"keydown",ne),void 0!==t.calendarContainer&&h(t.calendarContainer,"keydown",ne),t.config.inline||t.config.static||h(window,"resize",e),void 0!==window.ontouchstart?h(window.document,"touchstart",$):h(window.document,"mousedown",$),h(window.document,"focus",$,{capture:!0}),!0===t.config.clickOpens&&(h(t._input,"focus",t.open),h(t._input,"click",t.open)),void 0!==t.daysContainer&&(h(t.monthNav,"click",Me),h(t.monthNav,["keyup","increment"],c),h(t.daysContainer,"click",ue)),void 0!==t.timeContainer&&void 0!==t.minuteElement&&void 0!==t.hourElement){h(t.timeContainer,["increment"],o),h(t.timeContainer,"blur",o,{capture:!0}),h(t.timeContainer,"click",f),h([t.hourElement,t.minuteElement],["focus","click"],(function(e){return W(e).select()})),void 0!==t.secondElement&&h(t.secondElement,"focus",(function(){return t.secondElement&&t.secondElement.select()})),void 0!==t.amPM&&h(t.amPM,"click",(function(e){o(e)}))}t.config.allowInput&&h(t._input,"blur",te)}}(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&l(t.config.noCalendar?t.latestSelectedDateObj:void 0),xe(!1)),i();var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&n&&se(),ge("onReady")}(),t}function U(e,r){for(var t=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),n=[],a=0;a<t.length;a++){var i=t[a];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=G(i,r||{}),n.push(i._flatpickr)}catch(e){console.error(e)}}return 1===n.length?n[0]:n}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return U(this,e)},HTMLElement.prototype.flatpickr=function(e){return U([this],e)});var q=function(e,r){return"string"==typeof e?U(window.document.querySelectorAll(e),r):e instanceof Node?U([e],r):U(e,r)};q.defaultConfig={},q.l10ns={en:H({},x),default:H({},x)},q.localize=function(e){q.l10ns.default=H(H({},q.l10ns.default),e)},q.setDefaults=function(e){q.defaultConfig=H(H({},q.defaultConfig),e)},q.parseDate=I({}),q.formatDate=L({}),q.compareDates=_,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return U(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=q);const B=o(a((function(e,r){!function(e){
|
|
1
|
+
import{r as e,c as r,h as t}from"./p-e9a95b8f.js";import{t as n}from"./p-3bf54a4c.js";import{c as a,a as i,g as o}from"./p-eab67c09.js";import{D as d}from"./p-73df4d83.js";import{m as l}from"./p-945afca2.js";import{i as s,a as c}from"./p-cc9ebbef.js";import{e as h}from"./p-eda23c05.js";import{b as u,a as p}from"./p-9acf7b5d.js";import{i as f}from"./p-c93050d6.js";import{t as m}from"./p-365098fe.js";import"./p-d529bb7d.js";import"./p-858c6b82.js";function k(e){return e?1/0===(e=m(e))||-1/0===e?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}var g=Math.ceil,w=Math.max,b=function(e,r,t){return t&&"number"!=typeof t&&function(e,r,t){if(!f(t))return!1;var n=typeof r;return!!("number"==n?u(t)&&p(r,t.length):"string"==n&&r in t)&&h(t[r],e)}(e,r,t)&&(r=t=void 0),e=k(e),void 0===r?(r=e,e=0):r=k(r),function(e,r,t){for(var n=-1,a=w(g((r-e)/(t||1)),0),i=Array(a);a--;)i[++n]=e,e+=t;return i}(e,r,t=void 0===t?e<r?1:-1:k(t))},v=["onChange","onClose","onDayCreate","onDestroy","onKeyDown","onMonthChange","onOpen","onParseConfig","onReady","onValueUpdate","onYearChange","onPreCalendarPosition"],y={_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 r=new Date(e.getTime());r.setHours(0,0,0,0),r.setDate(r.getDate()+3-(r.getDay()+6)%7);var t=new Date(r.getFullYear(),0,4);return 1+Math.round(((r.getTime()-t.getTime())/864e5-3+(t.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},x={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 r=e%100;if(r>3&&r<21)return"th";switch(r%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},M=function(e,r){return void 0===r&&(r=2),("000"+e).slice(-1*r)},D=function(e){return!0===e?1:0};function S(e,r){var t;return function(){var n=this,a=arguments;clearTimeout(t),t=setTimeout((function(){return e.apply(n,a)}),r)}}var A=function(e){return e instanceof Array?e:[e]};function T(e,r,t){if(!0===t)return e.classList.add(r);e.classList.remove(r)}function O(e,r,t){var n=window.document.createElement(e);return t=t||"",n.className=r=r||"",void 0!==t&&(n.textContent=t),n}function j(e){for(;e.firstChild;)e.removeChild(e.firstChild)}function J(e,r){return r(e)?e:e.parentNode?J(e.parentNode,r):void 0}function C(e,r){var t=O("div","numInputWrapper"),n=O("input","numInput "+e),a=O("span","arrowUp"),i=O("span","arrowDown");if(-1===navigator.userAgent.indexOf("MSIE 9.0")?n.type="number":(n.type="text",n.pattern="\\d*"),void 0!==r)for(var o in r)n.setAttribute(o,r[o]);return t.appendChild(n),t.appendChild(a),t.appendChild(i),t}function W(e){try{return"function"==typeof e.composedPath?e.composedPath()[0]:e.target}catch(r){return e.target}}var P=function(){},z=function(e,r,t){return t.months[r?"shorthand":"longhand"][e]},R={D:P,F:function(e,r,t){e.setMonth(t.months.longhand.indexOf(r))},G:function(e,r){e.setHours((e.getHours()>=12?12:0)+parseFloat(r))},H:function(e,r){e.setHours(parseFloat(r))},J:function(e,r){e.setDate(parseFloat(r))},K:function(e,r,t){e.setHours(e.getHours()%12+12*D(new RegExp(t.amPM[1],"i").test(r)))},M:function(e,r,t){e.setMonth(t.months.shorthand.indexOf(r))},S:function(e,r){e.setSeconds(parseFloat(r))},U:function(e,r){return new Date(1e3*parseFloat(r))},W:function(e,r,t){var n=parseInt(r),a=new Date(e.getFullYear(),0,2+7*(n-1),0,0,0,0);return a.setDate(a.getDate()-a.getDay()+t.firstDayOfWeek),a},Y:function(e,r){e.setFullYear(parseFloat(r))},Z:function(e,r){return new Date(r)},d:function(e,r){e.setDate(parseFloat(r))},h:function(e,r){e.setHours((e.getHours()>=12?12:0)+parseFloat(r))},i:function(e,r){e.setMinutes(parseFloat(r))},j:function(e,r){e.setDate(parseFloat(r))},l:P,m:function(e,r){e.setMonth(parseFloat(r)-1)},n:function(e,r){e.setMonth(parseFloat(r)-1)},s:function(e,r){e.setSeconds(parseFloat(r))},u:function(e,r){return new Date(parseFloat(r))},w:P,y:function(e,r){e.setFullYear(2e3+parseFloat(r))}},F={D:"",F:"",G:"(\\d\\d|\\d)",H:"(\\d\\d|\\d)",J:"(\\d\\d|\\d)\\w+",K:"",M:"",S:"(\\d\\d|\\d)",U:"(.+)",W:"(\\d\\d|\\d)",Y:"(\\d{4})",Z:"(.+)",d:"(\\d\\d|\\d)",h:"(\\d\\d|\\d)",i:"(\\d\\d|\\d)",j:"(\\d\\d|\\d)",l:"",m:"(\\d\\d|\\d)",n:"(\\d\\d|\\d)",s:"(\\d\\d|\\d)",u:"(.+)",w:"(\\d\\d|\\d)",y:"(\\d{2})"},N={Z:function(e){return e.toISOString()},D:function(e,r,t){return r.weekdays.shorthand[N.w(e,r,t)]},F:function(e,r,t){return z(N.n(e,r,t)-1,!1,r)},G:function(e,r,t){return M(N.h(e,r,t))},H:function(e){return M(e.getHours())},J:function(e,r){return void 0!==r.ordinal?e.getDate()+r.ordinal(e.getDate()):e.getDate()},K:function(e,r){return r.amPM[D(e.getHours()>11)]},M:function(e,r){return z(e.getMonth(),!0,r)},S:function(e){return M(e.getSeconds())},U:function(e){return e.getTime()/1e3},W:function(e,r,t){return t.getWeek(e)},Y:function(e){return M(e.getFullYear(),4)},d:function(e){return M(e.getDate())},h:function(e){return e.getHours()%12?e.getHours()%12:12},i:function(e){return M(e.getMinutes())},j:function(e){return e.getDate()},l:function(e,r){return r.weekdays.longhand[e.getDay()]},m:function(e){return M(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)}},L=function(e){var r=e.config,t=void 0===r?y:r,n=e.l10n,a=void 0===n?x:n,i=e.isMobile,o=void 0!==i&&i;return function(e,r,n){var i=n||a;return void 0===t.formatDate||o?r.split("").map((function(r,n,a){return N[r]&&"\\"!==a[n-1]?N[r](e,i,t):"\\"!==r?r:""})).join(""):t.formatDate(e,r,i)}},I=function(e){var r=e.config,t=void 0===r?y:r,n=e.l10n,a=void 0===n?x:n;return function(e,r,n,i){if(0===e||e){var o,d=i||a,l=e;if(e instanceof Date)o=new Date(e.getTime());else if("string"!=typeof e&&void 0!==e.toFixed)o=new Date(e);else if("string"==typeof e){var s=r||(t||y).dateFormat,c=String(e).trim();if("today"===c)o=new Date,n=!0;else if(t&&t.parseDate)o=t.parseDate(e,s);else if(/Z$/.test(c)||/GMT$/.test(c))o=new Date(e);else{for(var h=void 0,u=[],p=0,f=0,m="";p<s.length;p++){var k=s[p],g="\\"===k;if(F[k]&&"\\"!==s[p-1]&&!g){m+=F[k];var w=new RegExp(m).exec(e);w&&(h=!0)&&u["Y"!==k?"push":"unshift"]({fn:R[k],val:w[++f]})}else g||(m+=".")}o=t&&t.noCalendar?new Date((new Date).setHours(0,0,0,0)):new Date((new Date).getFullYear(),0,1,0,0,0,0),u.forEach((function(e){return o=(0,e.fn)(o,e.val,d)||o})),o=h?o:void 0}}if(o instanceof Date&&!isNaN(o.getTime()))return!0===n&&o.setHours(0,0,0,0),o;t.errorHandler(new Error("Invalid date provided: "+l))}}};function _(e,r,t){return void 0===t&&(t=!0),!1!==t?new Date(e.getTime()).setHours(0,0,0,0)-new Date(r.getTime()).setHours(0,0,0,0):e.getTime()-r.getTime()}var Y=function(e,r,t){return 3600*e+60*r+t};function E(e){var r=e.defaultHour,t=e.defaultMinute,n=e.defaultSeconds;if(void 0!==e.minDate){var a=e.minDate.getHours(),i=e.minDate.getMinutes(),o=e.minDate.getSeconds();r<a&&(r=a),r===a&&t<i&&(t=i),r===a&&t===i&&n<o&&(n=e.minDate.getSeconds())}if(void 0!==e.maxDate){var d=e.maxDate.getHours(),l=e.maxDate.getMinutes();(r=Math.min(r,d))===d&&(t=Math.min(l,t)),r===d&&t===l&&(n=e.maxDate.getSeconds())}return{hours:r,minutes:t,seconds:n}}"function"!=typeof Object.assign&&(Object.assign=function(e){for(var r=[],t=1;t<arguments.length;t++)r[t-1]=arguments[t];if(!e)throw TypeError("Cannot convert undefined or null to object");for(var n=function(r){r&&Object.keys(r).forEach((function(t){return e[t]=r[t]}))},a=0,i=r;a<i.length;a++){var o=i[a];n(o)}return e});var H=function(){return(H=Object.assign||function(e){for(var r,t=1,n=arguments.length;t<n;t++)for(var a in r=arguments[t])Object.prototype.hasOwnProperty.call(r,a)&&(e[a]=r[a]);return e}).apply(this,arguments)},K=function(){for(var e=0,r=0,t=arguments.length;r<t;r++)e+=arguments[r].length;var n=Array(e),a=0;for(r=0;r<t;r++)for(var i=arguments[r],o=0,d=i.length;o<d;o++,a++)n[a]=i[o];return n};function G(e,r){var t={config:H(H({},y),q.defaultConfig),l10n:x};function n(){var e;return(null===(e=t.calendarContainer)||void 0===e?void 0:e.getRootNode()).activeElement||document.activeElement}function a(e){return e.bind(t)}function i(){var e=t.config;!1===e.weekNumbers&&1===e.showMonths||!0!==e.noCalendar&&window.requestAnimationFrame((function(){if(void 0!==t.calendarContainer&&(t.calendarContainer.style.visibility="hidden",t.calendarContainer.style.display="block"),void 0!==t.daysContainer){var r=(t.days.offsetWidth+1)*e.showMonths;t.daysContainer.style.width=r+"px",t.calendarContainer.style.width=r+(void 0!==t.weekWrapper?t.weekWrapper.offsetWidth:0)+"px",t.calendarContainer.style.removeProperty("visibility"),t.calendarContainer.style.removeProperty("display")}}))}function o(e){if(0===t.selectedDates.length){var r=void 0===t.config.minDate||_(new Date,t.config.minDate)>=0?new Date:new Date(t.config.minDate.getTime()),n=E(t.config);r.setHours(n.hours,n.minutes,n.seconds,r.getMilliseconds()),t.selectedDates=[r],t.latestSelectedDateObj=r}void 0!==e&&"blur"!==e.type&&function(e){e.preventDefault();var r="keydown"===e.type,n=W(e),a=n;void 0!==t.amPM&&n===t.amPM&&(t.amPM.textContent=t.l10n.amPM[D(t.amPM.textContent===t.l10n.amPM[0])]);var i=parseFloat(a.getAttribute("min")),o=parseFloat(a.getAttribute("max")),d=parseFloat(a.getAttribute("step")),l=parseInt(a.value,10),s=l+d*(e.delta||(r?38===e.which?1:-1:0));if(void 0!==a.value&&2===a.value.length){var c=a===t.hourElement,h=a===t.minuteElement;s<i?(s=o+s+D(!c)+(D(c)&&D(!t.amPM)),h&&m(void 0,-1,t.hourElement)):s>o&&(s=a===t.hourElement?s-o-D(!t.amPM):i,h&&m(void 0,1,t.hourElement)),t.amPM&&c&&(1===d?s+l===23:Math.abs(s-l)>d)&&(t.amPM.textContent=t.l10n.amPM[D(t.amPM.textContent===t.l10n.amPM[0])]),a.value=M(s)}}(e);var a=t._input.value;d(),xe(),t._input.value!==a&&t._debouncedChange()}function d(){if(void 0!==t.hourElement&&void 0!==t.minuteElement){var e=(parseInt(t.hourElement.value.slice(-2),10)||0)%24,r=(parseInt(t.minuteElement.value,10)||0)%60,n=void 0!==t.secondElement?(parseInt(t.secondElement.value,10)||0)%60:0;void 0!==t.amPM&&(e=e%12+12*D(t.amPM.textContent===t.l10n.amPM[1]));var a=void 0!==t.config.minTime||t.config.minDate&&t.minDateHasTime&&t.latestSelectedDateObj&&0===_(t.latestSelectedDateObj,t.config.minDate,!0),i=void 0!==t.config.maxTime||t.config.maxDate&&t.maxDateHasTime&&t.latestSelectedDateObj&&0===_(t.latestSelectedDateObj,t.config.maxDate,!0);if(void 0!==t.config.maxTime&&void 0!==t.config.minTime&&t.config.minTime>t.config.maxTime){var o=Y(t.config.minTime.getHours(),t.config.minTime.getMinutes(),t.config.minTime.getSeconds()),d=Y(t.config.maxTime.getHours(),t.config.maxTime.getMinutes(),t.config.maxTime.getSeconds()),l=Y(e,r,n);if(l>d&&l<o){var c=function(e){var r=Math.floor(e/3600),t=(e-3600*r)/60;return[r,t,e-3600*r-60*t]}(o);e=c[0],r=c[1],n=c[2]}}else{if(i){var h=void 0!==t.config.maxTime?t.config.maxTime:t.config.maxDate;(e=Math.min(e,h.getHours()))===h.getHours()&&(r=Math.min(r,h.getMinutes())),r===h.getMinutes()&&(n=Math.min(n,h.getSeconds()))}if(a){var u=void 0!==t.config.minTime?t.config.minTime:t.config.minDate;(e=Math.max(e,u.getHours()))===u.getHours()&&r<u.getMinutes()&&(r=u.getMinutes()),r===u.getMinutes()&&(n=Math.max(n,u.getSeconds()))}}s(e,r,n)}}function l(e){var r=e||t.latestSelectedDateObj;r&&r instanceof Date&&s(r.getHours(),r.getMinutes(),r.getSeconds())}function s(e,r,n){void 0!==t.latestSelectedDateObj&&t.latestSelectedDateObj.setHours(e%24,r,n||0,0),t.hourElement&&t.minuteElement&&!t.isMobile&&(t.hourElement.value=M(t.config.time_24hr?e:(12+e)%12+12*D(e%12==0)),t.minuteElement.value=M(r),void 0!==t.amPM&&(t.amPM.textContent=t.l10n.amPM[D(e>=12)]),void 0!==t.secondElement&&(t.secondElement.value=M(n)))}function c(e){var r=W(e),t=parseInt(r.value)+(e.delta||0);(t/1e3>1||"Enter"===e.key&&!/[^\d]/.test(t.toString()))&&X(t)}function h(e,r,n,a){return r instanceof Array?r.forEach((function(r){return h(e,r,n,a)})):e instanceof Array?e.forEach((function(e){return h(e,r,n,a)})):(e.addEventListener(r,n,a),void t._handlers.push({remove:function(){return e.removeEventListener(r,n,a)}}))}function u(){ge("onChange")}function p(e,r){var n=void 0!==e?t.parseDate(e):t.latestSelectedDateObj||(t.config.minDate&&t.config.minDate>t.now?t.config.minDate:t.config.maxDate&&t.config.maxDate<t.now?t.config.maxDate:t.now),a=t.currentYear,i=t.currentMonth;try{void 0!==n&&(t.currentYear=n.getFullYear(),t.currentMonth=n.getMonth())}catch(e){e.message="Invalid date supplied: "+n,t.config.errorHandler(e)}r&&t.currentYear!==a&&(ge("onYearChange"),N()),!r||t.currentYear===a&&t.currentMonth===i||ge("onMonthChange"),t.redraw()}function f(e){var r=W(e);~r.className.indexOf("arrow")&&m(e,r.classList.contains("arrowUp")?1:-1)}function m(e,r,t){var n=e&&W(e),a=t||n&&n.parentNode&&n.parentNode.firstChild,i=we("increment");i.delta=r,a&&a.dispatchEvent(i)}function k(e,r,n,a){var i=ee(r,!0),o=O("span",e,r.getDate().toString());return o.dateObj=r,o.$i=a,o.setAttribute("aria-label",t.formatDate(r,t.config.ariaDateFormat)),-1===e.indexOf("hidden")&&0===_(r,t.now)&&(t.todayDateElem=o,o.classList.add("today"),o.setAttribute("aria-current","date")),i?(o.tabIndex=-1,be(r)&&(o.classList.add("selected"),t.selectedDateElem=o,"range"===t.config.mode&&(T(o,"startRange",t.selectedDates[0]&&0===_(r,t.selectedDates[0],!0)),T(o,"endRange",t.selectedDates[1]&&0===_(r,t.selectedDates[1],!0)),"nextMonthDay"===e&&o.classList.add("inRange")))):o.classList.add("flatpickr-disabled"),"range"===t.config.mode&&function(e){return!("range"!==t.config.mode||t.selectedDates.length<2)&&_(e,t.selectedDates[0])>=0&&_(e,t.selectedDates[1])<=0}(r)&&!be(r)&&o.classList.add("inRange"),t.weekNumbers&&1===t.config.showMonths&&"prevMonthDay"!==e&&a%7==6&&t.weekNumbers.insertAdjacentHTML("beforeend","<span class='flatpickr-day'>"+t.config.getWeek(r)+"</span>"),ge("onDayCreate",o),o}function g(e){e.focus(),"range"===t.config.mode&&ae(e)}function w(e){for(var r=e>0?t.config.showMonths:-1,n=e>0?0:t.config.showMonths-1;n!=r;n+=e)for(var a=t.daysContainer.children[n],i=e>0?a.children.length:-1,o=e>0?0:a.children.length-1;o!=i;o+=e){var d=a.children[o];if(-1===d.className.indexOf("hidden")&&ee(d.dateObj))return d}}function b(e,r){var a=n(),i=re(a||document.body),o=void 0!==e?e:i?a:void 0!==t.selectedDateElem&&re(t.selectedDateElem)?t.selectedDateElem:void 0!==t.todayDateElem&&re(t.todayDateElem)?t.todayDateElem:w(r>0?1:-1);void 0===o?t._input.focus():i?function(e,r){for(var n=-1===e.className.indexOf("Month")?e.dateObj.getMonth():t.currentMonth,a=r>0?t.config.showMonths:-1,i=r>0?1:-1,o=n-t.currentMonth;o!=a;o+=i)for(var d=t.daysContainer.children[o],l=d.children.length,s=n-t.currentMonth===o?e.$i+r:r<0?d.children.length-1:0;s>=0&&s<l&&s!=(r>0?l:-1);s+=i){var c=d.children[s];if(-1===c.className.indexOf("hidden")&&ee(c.dateObj)&&Math.abs(e.$i-s)>=Math.abs(r))return g(c)}t.changeMonth(i),b(w(i),0)}(o,r):g(o)}function P(e,r){for(var n=(new Date(e,r,1).getDay()-t.l10n.firstDayOfWeek+7)%7,a=t.utils.getDaysInMonth((r-1+12)%12,e),i=t.utils.getDaysInMonth(r,e),o=window.document.createDocumentFragment(),d=t.config.showMonths>1,l=d?"prevMonthDay hidden":"prevMonthDay",s=d?"nextMonthDay hidden":"nextMonthDay",c=a+1-n,h=0;c<=a;c++,h++)o.appendChild(k("flatpickr-day "+l,new Date(e,r-1,c),0,h));for(c=1;c<=i;c++,h++)o.appendChild(k("flatpickr-day",new Date(e,r,c),0,h));for(var u=i+1;u<=42-n&&(1===t.config.showMonths||h%7!=0);u++,h++)o.appendChild(k("flatpickr-day "+s,new Date(e,r+1,u%i),0,h));var p=O("div","dayContainer");return p.appendChild(o),p}function R(){if(void 0!==t.daysContainer){j(t.daysContainer),t.weekNumbers&&j(t.weekNumbers);for(var e=document.createDocumentFragment(),r=0;r<t.config.showMonths;r++){var n=new Date(t.currentYear,t.currentMonth,1);n.setMonth(t.currentMonth+r),e.appendChild(P(n.getFullYear(),n.getMonth()))}t.daysContainer.appendChild(e),t.days=t.daysContainer.firstChild,"range"===t.config.mode&&1===t.selectedDates.length&&ae()}}function N(){if(!(t.config.showMonths>1||"dropdown"!==t.config.monthSelectorType)){var e=function(e){return!(void 0!==t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&e<t.config.minDate.getMonth()||void 0!==t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()&&e>t.config.maxDate.getMonth())};t.monthsDropdownContainer.tabIndex=-1,t.monthsDropdownContainer.innerHTML="";for(var r=0;r<12;r++)if(e(r)){var n=O("option","flatpickr-monthDropdown-month");n.value=new Date(t.currentYear,r).getMonth().toString(),n.textContent=z(r,t.config.shorthandCurrentMonth,t.l10n),n.tabIndex=-1,t.currentMonth===r&&(n.selected=!0),t.monthsDropdownContainer.appendChild(n)}}}function G(){var e,r=O("div","flatpickr-month"),n=window.document.createDocumentFragment();t.config.showMonths>1||"static"===t.config.monthSelectorType?e=O("span","cur-month"):(t.monthsDropdownContainer=O("select","flatpickr-monthDropdown-months"),t.monthsDropdownContainer.setAttribute("aria-label",t.l10n.monthAriaLabel),h(t.monthsDropdownContainer,"change",(function(e){var r=W(e),n=parseInt(r.value,10);t.changeMonth(n-t.currentMonth),ge("onMonthChange")})),N(),e=t.monthsDropdownContainer);var a=C("cur-year",{tabindex:"-1"}),i=a.getElementsByTagName("input")[0];i.setAttribute("aria-label",t.l10n.yearAriaLabel),t.config.minDate&&i.setAttribute("min",t.config.minDate.getFullYear().toString()),t.config.maxDate&&(i.setAttribute("max",t.config.maxDate.getFullYear().toString()),i.disabled=!!t.config.minDate&&t.config.minDate.getFullYear()===t.config.maxDate.getFullYear());var o=O("div","flatpickr-current-month");return o.appendChild(e),o.appendChild(a),n.appendChild(o),r.appendChild(n),{container:r,yearElement:i,monthElement:e}}function U(){j(t.monthNav),t.monthNav.appendChild(t.prevMonthNav),t.config.showMonths&&(t.yearElements=[],t.monthElements=[]);for(var e=t.config.showMonths;e--;){var r=G();t.yearElements.push(r.yearElement),t.monthElements.push(r.monthElement),t.monthNav.appendChild(r.container)}t.monthNav.appendChild(t.nextMonthNav)}function B(){t.weekdayContainer?j(t.weekdayContainer):t.weekdayContainer=O("div","flatpickr-weekdays");for(var e=t.config.showMonths;e--;){var r=O("div","flatpickr-weekdaycontainer");t.weekdayContainer.appendChild(r)}return V(),t.weekdayContainer}function V(){if(t.weekdayContainer){var e=t.l10n.firstDayOfWeek,r=K(t.l10n.weekdays.shorthand);e>0&&e<r.length&&(r=K(r.splice(e,r.length),r.splice(0,e)));for(var n=t.config.showMonths;n--;)t.weekdayContainer.children[n].innerHTML="\n <span class='flatpickr-weekday'>\n "+r.join("</span><span class='flatpickr-weekday'>")+"\n </span>\n "}}function Q(e,r){void 0===r&&(r=!0);var n=r?e:e-t.currentMonth;n<0&&!0===t._hidePrevMonthArrow||n>0&&!0===t._hideNextMonthArrow||(t.currentMonth+=n,(t.currentMonth<0||t.currentMonth>11)&&(t.currentYear+=t.currentMonth>11?1:-1,t.currentMonth=(t.currentMonth+12)%12,ge("onYearChange"),N()),R(),ge("onMonthChange"),ve())}function Z(e){return t.calendarContainer.contains(e)}function $(e){if(t.isOpen&&!t.config.inline){var r=W(e),n=Z(r),a=!(r===t.input||r===t.altInput||t.element.contains(r)||e.path&&e.path.indexOf&&(~e.path.indexOf(t.input)||~e.path.indexOf(t.altInput))||n||Z(e.relatedTarget)),i=!t.config.ignoredFocusElements.some((function(e){return e.contains(r)}));a&&i&&(t.config.allowInput&&t.setDate(t._input.value,!1,t.config.altInput?t.config.altFormat:t.config.dateFormat),void 0!==t.timeContainer&&void 0!==t.minuteElement&&void 0!==t.hourElement&&""!==t.input.value&&void 0!==t.input.value&&o(),t.close(),t.config&&"range"===t.config.mode&&1===t.selectedDates.length&&t.clear(!1))}}function X(e){if(!(!e||t.config.minDate&&e<t.config.minDate.getFullYear()||t.config.maxDate&&e>t.config.maxDate.getFullYear())){var r=t.currentYear!==e;t.currentYear=e||t.currentYear,t.config.maxDate&&t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth=Math.min(t.config.maxDate.getMonth(),t.currentMonth):t.config.minDate&&t.currentYear===t.config.minDate.getFullYear()&&(t.currentMonth=Math.max(t.config.minDate.getMonth(),t.currentMonth)),r&&(t.redraw(),ge("onYearChange"),N())}}function ee(e,r){var n;void 0===r&&(r=!0);var a=t.parseDate(e,void 0,r);if(t.config.minDate&&a&&_(a,t.config.minDate,void 0!==r?r:!t.minDateHasTime)<0||t.config.maxDate&&a&&_(a,t.config.maxDate,void 0!==r?r:!t.maxDateHasTime)>0)return!1;if(!t.config.enable&&0===t.config.disable.length)return!0;if(void 0===a)return!1;for(var i=!!t.config.enable,o=null!==(n=t.config.enable)&&void 0!==n?n:t.config.disable,d=0,l=void 0;d<o.length;d++){if("function"==typeof(l=o[d])&&l(a))return i;if(l instanceof Date&&void 0!==a&&l.getTime()===a.getTime())return i;if("string"==typeof l){var s=t.parseDate(l,void 0,!0);return s&&s.getTime()===a.getTime()?i:!i}if("object"==typeof l&&void 0!==a&&l.from&&l.to&&a.getTime()>=l.from.getTime()&&a.getTime()<=l.to.getTime())return i}return!i}function re(e){return void 0!==t.daysContainer&&-1===e.className.indexOf("hidden")&&-1===e.className.indexOf("flatpickr-disabled")&&t.daysContainer.contains(e)}function te(e){var r=e.target===t._input,n=t._input.value.trimEnd()!==ye();!r||!n||e.relatedTarget&&Z(e.relatedTarget)||t.setDate(t._input.value,!0,e.target===t.altInput?t.config.altFormat:t.config.dateFormat)}function ne(r){var a=W(r),i=t.config.wrap?e.contains(a):a===t._input,l=t.config.allowInput,s=t.isOpen&&(!l||!i),c=t.config.inline&&i&&!l;if(13===r.keyCode&&i){if(l)return t.setDate(t._input.value,!0,a===t.altInput?t.config.altFormat:t.config.dateFormat),t.close(),a.blur();t.open()}else if(Z(a)||s||c){var h=!!t.timeContainer&&t.timeContainer.contains(a);switch(r.keyCode){case 13:h?(r.preventDefault(),o(),he()):ue(r);break;case 27:r.preventDefault(),he();break;case 8:case 46:i&&!t.config.allowInput&&(r.preventDefault(),t.clear());break;case 37:case 39:if(h||i)t.hourElement&&t.hourElement.focus();else{r.preventDefault();var u=n();if(void 0!==t.daysContainer&&(!1===l||u&&re(u))){var p=39===r.keyCode?1:-1;r.ctrlKey?(r.stopPropagation(),Q(p),b(w(1),0)):b(void 0,p)}}break;case 38:case 40:r.preventDefault();var f=40===r.keyCode?1:-1;t.daysContainer&&void 0!==a.$i||a===t.input||a===t.altInput?r.ctrlKey?(r.stopPropagation(),X(t.currentYear-f),b(w(1),0)):h||b(void 0,7*f):a===t.currentYearElement?X(t.currentYear-f):t.config.enableTime&&(!h&&t.hourElement&&t.hourElement.focus(),o(r),t._debouncedChange());break;case 9:if(h){var m=[t.hourElement,t.minuteElement,t.secondElement,t.amPM].concat(t.pluginElements).filter((function(e){return e})),k=m.indexOf(a);if(-1!==k){var g=m[k+(r.shiftKey?-1:1)];r.preventDefault(),(g||t._input).focus()}}else!t.config.noCalendar&&t.daysContainer&&t.daysContainer.contains(a)&&r.shiftKey&&(r.preventDefault(),t._input.focus())}}if(void 0!==t.amPM&&a===t.amPM)switch(r.key){case t.l10n.amPM[0].charAt(0):case t.l10n.amPM[0].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[0],d(),xe();break;case t.l10n.amPM[1].charAt(0):case t.l10n.amPM[1].charAt(0).toLowerCase():t.amPM.textContent=t.l10n.amPM[1],d(),xe()}(i||Z(a))&&ge("onKeyDown",r)}function ae(e,r){if(void 0===r&&(r="flatpickr-day"),1===t.selectedDates.length&&(!e||e.classList.contains(r)&&!e.classList.contains("flatpickr-disabled"))){for(var n=e?e.dateObj.getTime():t.days.firstElementChild.dateObj.getTime(),a=t.parseDate(t.selectedDates[0],void 0,!0).getTime(),i=Math.min(n,t.selectedDates[0].getTime()),o=Math.max(n,t.selectedDates[0].getTime()),d=!1,l=0,s=0,c=i;c<o;c+=864e5)ee(new Date(c),!0)||(d=d||c>i&&c<o,c<a&&(!l||c>l)?l=c:c>a&&(!s||c<s)&&(s=c));Array.from(t.rContainer.querySelectorAll("*:nth-child(-n+"+t.config.showMonths+") > ."+r)).forEach((function(r){var i,o,c,h=r.dateObj.getTime(),u=l>0&&h<l||s>0&&h>s;if(u)return r.classList.add("notAllowed"),void["inRange","startRange","endRange"].forEach((function(e){r.classList.remove(e)}));d&&!u||(["startRange","inRange","endRange","notAllowed"].forEach((function(e){r.classList.remove(e)})),void 0!==e&&(e.classList.add(n<=t.selectedDates[0].getTime()?"startRange":"endRange"),a<n&&h===a?r.classList.add("startRange"):a>n&&h===a&&r.classList.add("endRange"),h>=l&&(0===s||h<=s)&&(o=a,c=n,(i=h)>Math.min(o,c)&&i<Math.max(o,c))&&r.classList.add("inRange")))}))}}function ie(){!t.isOpen||t.config.static||t.config.inline||se()}function oe(e){return function(r){var n=t.config["_"+e+"Date"]=t.parseDate(r,t.config.dateFormat),a=t.config["_"+("min"===e?"max":"min")+"Date"];void 0!==n&&(t["min"===e?"minDateHasTime":"maxDateHasTime"]=n.getHours()>0||n.getMinutes()>0||n.getSeconds()>0),t.selectedDates&&(t.selectedDates=t.selectedDates.filter((function(e){return ee(e)})),t.selectedDates.length||"min"!==e||l(n),xe()),t.daysContainer&&(ce(),void 0!==n?t.currentYearElement[e]=n.getFullYear().toString():t.currentYearElement.removeAttribute(e),t.currentYearElement.disabled=!!a&&void 0!==n&&a.getFullYear()===n.getFullYear())}}function de(){return t.config.wrap?e.querySelector("[data-input]"):e}function le(){"object"!=typeof t.config.locale&&void 0===q.l10ns[t.config.locale]&&t.config.errorHandler(new Error("flatpickr: invalid locale "+t.config.locale)),t.l10n=H(H({},q.l10ns.default),"object"==typeof t.config.locale?t.config.locale:"default"!==t.config.locale?q.l10ns[t.config.locale]:void 0),F.D="("+t.l10n.weekdays.shorthand.join("|")+")",F.l="("+t.l10n.weekdays.longhand.join("|")+")",F.M="("+t.l10n.months.shorthand.join("|")+")",F.F="("+t.l10n.months.longhand.join("|")+")",F.K="("+t.l10n.amPM[0]+"|"+t.l10n.amPM[1]+"|"+t.l10n.amPM[0].toLowerCase()+"|"+t.l10n.amPM[1].toLowerCase()+")",void 0===H(H({},r),JSON.parse(JSON.stringify(e.dataset||{}))).time_24hr&&void 0===q.defaultConfig.time_24hr&&(t.config.time_24hr=t.l10n.time_24hr),t.formatDate=L(t),t.parseDate=I({config:t.config,l10n:t.l10n})}function se(e){if("function"!=typeof t.config.position){if(void 0!==t.calendarContainer){ge("onPreCalendarPosition");var r=e||t._positionElement,n=Array.prototype.reduce.call(t.calendarContainer.children,(function(e,r){return e+r.offsetHeight}),0),a=t.calendarContainer.offsetWidth,i=t.config.position.split(" "),o=i[0],d=i.length>1?i[1]:null,l=r.getBoundingClientRect(),s=window.innerHeight-l.bottom,c="above"===o||"below"!==o&&s<n&&l.top>n,h=window.pageYOffset+l.top+(c?-n-2:r.offsetHeight+2);if(T(t.calendarContainer,"arrowTop",!c),T(t.calendarContainer,"arrowBottom",c),!t.config.inline){var u=window.pageXOffset+l.left,p=!1,f=!1;"center"===d?(u-=(a-l.width)/2,p=!0):"right"===d&&(u-=a-l.width,f=!0),T(t.calendarContainer,"arrowLeft",!p&&!f),T(t.calendarContainer,"arrowCenter",p),T(t.calendarContainer,"arrowRight",f);var m=window.document.body.offsetWidth-(window.pageXOffset+l.right),k=u+a>window.document.body.offsetWidth,g=m+a>window.document.body.offsetWidth;if(T(t.calendarContainer,"rightMost",k),!t.config.static)if(t.calendarContainer.style.top=h+"px",k)if(g){var w=function(){for(var e=null,r=0;r<document.styleSheets.length;r++){var t=document.styleSheets[r];if(t.cssRules){e=t;break}}return null!=e?e:(n=document.createElement("style"),document.head.appendChild(n),n.sheet);var n}();if(void 0===w)return;var b=window.document.body.offsetWidth,v=Math.max(0,b/2-a/2),y=w.cssRules.length,x="{left:"+l.left+"px;right:auto;}";T(t.calendarContainer,"rightMost",!1),T(t.calendarContainer,"centerMost",!0),w.insertRule(".flatpickr-calendar.centerMost:before,.flatpickr-calendar.centerMost:after"+x,y),t.calendarContainer.style.left=v+"px",t.calendarContainer.style.right="auto"}else t.calendarContainer.style.left="auto",t.calendarContainer.style.right=m+"px";else t.calendarContainer.style.left=u+"px",t.calendarContainer.style.right="auto"}}}else t.config.position(t,e)}function ce(){t.config.noCalendar||t.isMobile||(N(),ve(),R())}function he(){t._input.focus(),-1!==window.navigator.userAgent.indexOf("MSIE")||void 0!==navigator.msMaxTouchPoints?setTimeout(t.close,0):t.close()}function ue(e){e.preventDefault(),e.stopPropagation();var r=J(W(e),(function(e){return e.classList&&e.classList.contains("flatpickr-day")&&!e.classList.contains("flatpickr-disabled")&&!e.classList.contains("notAllowed")}));if(void 0!==r){var n=r,a=t.latestSelectedDateObj=new Date(n.dateObj.getTime()),i=(a.getMonth()<t.currentMonth||a.getMonth()>t.currentMonth+t.config.showMonths-1)&&"range"!==t.config.mode;if(t.selectedDateElem=n,"single"===t.config.mode)t.selectedDates=[a];else if("multiple"===t.config.mode){var o=be(a);o?t.selectedDates.splice(parseInt(o),1):t.selectedDates.push(a)}else"range"===t.config.mode&&(2===t.selectedDates.length&&t.clear(!1,!1),t.latestSelectedDateObj=a,t.selectedDates.push(a),0!==_(a,t.selectedDates[0],!0)&&t.selectedDates.sort((function(e,r){return e.getTime()-r.getTime()})));if(d(),i){var l=t.currentYear!==a.getFullYear();t.currentYear=a.getFullYear(),t.currentMonth=a.getMonth(),l&&(ge("onYearChange"),N()),ge("onMonthChange")}ve(),R(),xe(),i||"range"===t.config.mode||1!==t.config.showMonths?void 0!==t.selectedDateElem&&void 0===t.hourElement&&t.selectedDateElem&&t.selectedDateElem.focus():g(n),void 0!==t.hourElement&&void 0!==t.hourElement&&t.hourElement.focus(),t.config.closeOnSelect&&("single"===t.config.mode&&!t.config.enableTime||"range"===t.config.mode&&2===t.selectedDates.length&&!t.config.enableTime)&&he(),u()}}t.parseDate=I({config:t.config,l10n:t.l10n}),t._handlers=[],t.pluginElements=[],t.loadedPlugins=[],t._bind=h,t._setHoursFromDate=l,t._positionCalendar=se,t.changeMonth=Q,t.changeYear=X,t.clear=function(e,r){if(void 0===e&&(e=!0),void 0===r&&(r=!0),t.input.value="",void 0!==t.altInput&&(t.altInput.value=""),void 0!==t.mobileInput&&(t.mobileInput.value=""),t.selectedDates=[],t.latestSelectedDateObj=void 0,!0===r&&(t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth()),!0===t.config.enableTime){var n=E(t.config);s(n.hours,n.minutes,n.seconds)}t.redraw(),e&&ge("onChange")},t.close=function(){t.isOpen=!1,t.isMobile||(void 0!==t.calendarContainer&&t.calendarContainer.classList.remove("open"),void 0!==t._input&&t._input.classList.remove("active")),ge("onClose")},t.onMouseOver=ae,t._createElement=O,t.createDay=k,t.destroy=function(){void 0!==t.config&&ge("onDestroy");for(var e=t._handlers.length;e--;)t._handlers[e].remove();if(t._handlers=[],t.mobileInput)t.mobileInput.parentNode&&t.mobileInput.parentNode.removeChild(t.mobileInput),t.mobileInput=void 0;else if(t.calendarContainer&&t.calendarContainer.parentNode)if(t.config.static&&t.calendarContainer.parentNode){var r=t.calendarContainer.parentNode;if(r.lastChild&&r.removeChild(r.lastChild),r.parentNode){for(;r.firstChild;)r.parentNode.insertBefore(r.firstChild,r);r.parentNode.removeChild(r)}}else t.calendarContainer.parentNode.removeChild(t.calendarContainer);t.altInput&&(t.input.type="text",t.altInput.parentNode&&t.altInput.parentNode.removeChild(t.altInput),delete t.altInput),t.input&&(t.input.type=t.input._type,t.input.classList.remove("flatpickr-input"),t.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 t[e]}catch(e){}}))},t.isEnabled=ee,t.jumpToDate=p,t.updateValue=xe,t.open=function(e,r){if(void 0===r&&(r=t._positionElement),!0===t.isMobile){if(e){e.preventDefault();var n=W(e);n&&n.blur()}return void 0!==t.mobileInput&&(t.mobileInput.focus(),t.mobileInput.click()),void ge("onOpen")}if(!t._input.disabled&&!t.config.inline){var a=t.isOpen;t.isOpen=!0,a||(t.calendarContainer.classList.add("open"),t._input.classList.add("active"),ge("onOpen"),se(r)),!0===t.config.enableTime&&!0===t.config.noCalendar&&(!1!==t.config.allowInput||void 0!==e&&t.timeContainer.contains(e.relatedTarget)||setTimeout((function(){return t.hourElement.select()}),50))}},t.redraw=ce,t.set=function(e,r){if(null!==e&&"object"==typeof e)for(var n in Object.assign(t.config,e),e)void 0!==pe[n]&&pe[n].forEach((function(e){return e()}));else t.config[e]=r,void 0!==pe[e]?pe[e].forEach((function(e){return e()})):v.indexOf(e)>-1&&(t.config[e]=A(r));t.redraw(),xe(!0)},t.setDate=function(e,r,n){if(void 0===r&&(r=!1),void 0===n&&(n=t.config.dateFormat),0!==e&&!e||e instanceof Array&&0===e.length)return t.clear(r);fe(e,n),t.latestSelectedDateObj=t.selectedDates[t.selectedDates.length-1],t.redraw(),p(void 0,r),l(),0===t.selectedDates.length&&t.clear(!1),xe(r),r&&ge("onChange")},t.toggle=function(e){if(!0===t.isOpen)return t.close();t.open(e)};var pe={locale:[le,V],showMonths:[U,i,B],minDate:[p],maxDate:[p],positionElement:[ke],clickOpens:[function(){!0===t.config.clickOpens?(h(t._input,"focus",t.open),h(t._input,"click",t.open)):(t._input.removeEventListener("focus",t.open),t._input.removeEventListener("click",t.open))}]};function fe(e,r){var n=[];if(e instanceof Array)n=e.map((function(e){return t.parseDate(e,r)}));else if(e instanceof Date||"number"==typeof e)n=[t.parseDate(e,r)];else if("string"==typeof e)switch(t.config.mode){case"single":case"time":n=[t.parseDate(e,r)];break;case"multiple":n=e.split(t.config.conjunction).map((function(e){return t.parseDate(e,r)}));break;case"range":n=e.split(t.l10n.rangeSeparator).map((function(e){return t.parseDate(e,r)}))}else t.config.errorHandler(new Error("Invalid date supplied: "+JSON.stringify(e)));t.selectedDates=t.config.allowInvalidPreload?n:n.filter((function(e){return e instanceof Date&&ee(e,!1)})),"range"===t.config.mode&&t.selectedDates.sort((function(e,r){return e.getTime()-r.getTime()}))}function me(e){return e.slice().map((function(e){return"string"==typeof e||"number"==typeof e||e instanceof Date?t.parseDate(e,void 0,!0):e&&"object"==typeof e&&e.from&&e.to?{from:t.parseDate(e.from,void 0),to:t.parseDate(e.to,void 0)}:e})).filter((function(e){return e}))}function ke(){t._positionElement=t.config.positionElement||t._input}function ge(e,r){if(void 0!==t.config){var n=t.config[e];if(void 0!==n&&n.length>0)for(var a=0;n[a]&&a<n.length;a++)n[a](t.selectedDates,t.input.value,t,r);"onChange"===e&&(t.input.dispatchEvent(we("change")),t.input.dispatchEvent(we("input")))}}function we(e){var r=document.createEvent("Event");return r.initEvent(e,!0,!0),r}function be(e){for(var r=0;r<t.selectedDates.length;r++){var n=t.selectedDates[r];if(n instanceof Date&&0===_(n,e))return""+r}return!1}function ve(){t.config.noCalendar||t.isMobile||!t.monthNav||(t.yearElements.forEach((function(e,r){var n=new Date(t.currentYear,t.currentMonth,1);n.setMonth(t.currentMonth+r),t.config.showMonths>1||"static"===t.config.monthSelectorType?t.monthElements[r].textContent=z(n.getMonth(),t.config.shorthandCurrentMonth,t.l10n)+" ":t.monthsDropdownContainer.value=n.getMonth().toString(),e.value=n.getFullYear().toString()})),t._hidePrevMonthArrow=void 0!==t.config.minDate&&(t.currentYear===t.config.minDate.getFullYear()?t.currentMonth<=t.config.minDate.getMonth():t.currentYear<t.config.minDate.getFullYear()),t._hideNextMonthArrow=void 0!==t.config.maxDate&&(t.currentYear===t.config.maxDate.getFullYear()?t.currentMonth+1>t.config.maxDate.getMonth():t.currentYear>t.config.maxDate.getFullYear()))}function ye(e){var r=e||(t.config.altInput?t.config.altFormat:t.config.dateFormat);return t.selectedDates.map((function(e){return t.formatDate(e,r)})).filter((function(e,r,n){return"range"!==t.config.mode||t.config.enableTime||n.indexOf(e)===r})).join("range"!==t.config.mode?t.config.conjunction:t.l10n.rangeSeparator)}function xe(e){void 0===e&&(e=!0),void 0!==t.mobileInput&&t.mobileFormatStr&&(t.mobileInput.value=void 0!==t.latestSelectedDateObj?t.formatDate(t.latestSelectedDateObj,t.mobileFormatStr):""),t.input.value=ye(t.config.dateFormat),void 0!==t.altInput&&(t.altInput.value=ye(t.config.altFormat)),!1!==e&&ge("onValueUpdate")}function Me(e){var r=W(e),n=t.prevMonthNav.contains(r),a=t.nextMonthNav.contains(r);n||a?Q(n?-1:1):t.yearElements.indexOf(r)>=0?r.select():r.classList.contains("arrowUp")?t.changeYear(t.currentYear+1):r.classList.contains("arrowDown")&&t.changeYear(t.currentYear-1)}return function(){t.element=t.input=e,t.isOpen=!1,function(){var n=["wrap","weekNumbers","allowInput","allowInvalidPreload","clickOpens","time_24hr","enableTime","noCalendar","altInput","shorthandCurrentMonth","inline","static","enableSeconds","disableMobile"],i=H(H({},JSON.parse(JSON.stringify(e.dataset||{}))),r),o={};t.config.parseDate=i.parseDate,t.config.formatDate=i.formatDate,Object.defineProperty(t.config,"enable",{get:function(){return t.config._enable},set:function(e){t.config._enable=me(e)}}),Object.defineProperty(t.config,"disable",{get:function(){return t.config._disable},set:function(e){t.config._disable=me(e)}});var d="time"===i.mode;i.dateFormat||!i.enableTime&&!d||(o.dateFormat=i.noCalendar||d?"H:i"+(i.enableSeconds?":S":""):(q.defaultConfig.dateFormat||y.dateFormat)+" H:i"+(i.enableSeconds?":S":"")),i.altInput&&(i.enableTime||d)&&!i.altFormat&&(o.altFormat=i.noCalendar||d?"h:i"+(i.enableSeconds?":S K":" K"):(q.defaultConfig.altFormat||y.altFormat)+" h:i"+(i.enableSeconds?":S":"")+" K"),Object.defineProperty(t.config,"minDate",{get:function(){return t.config._minDate},set:oe("min")}),Object.defineProperty(t.config,"maxDate",{get:function(){return t.config._maxDate},set:oe("max")});var l=function(e){return function(r){t.config["min"===e?"_minTime":"_maxTime"]=t.parseDate(r,"H:i:S")}};Object.defineProperty(t.config,"minTime",{get:function(){return t.config._minTime},set:l("min")}),Object.defineProperty(t.config,"maxTime",{get:function(){return t.config._maxTime},set:l("max")}),"time"===i.mode&&(t.config.noCalendar=!0,t.config.enableTime=!0),Object.assign(t.config,o,i);for(var s=0;s<n.length;s++)t.config[n[s]]=!0===t.config[n[s]]||"true"===t.config[n[s]];for(v.filter((function(e){return void 0!==t.config[e]})).forEach((function(e){t.config[e]=A(t.config[e]||[]).map(a)})),t.isMobile=!t.config.disableMobile&&!t.config.inline&&"single"===t.config.mode&&!t.config.disable.length&&!t.config.enable&&!t.config.weekNumbers&&/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),s=0;s<t.config.plugins.length;s++){var c=t.config.plugins[s](t)||{};for(var h in c)v.indexOf(h)>-1?t.config[h]=A(c[h]).map(a).concat(t.config[h]):void 0===i[h]&&(t.config[h]=c[h])}i.altInputClass||(t.config.altInputClass=de().className+" "+t.config.altInputClass),ge("onParseConfig")}(),le(),t.input=de(),t.input?(t.input._type=t.input.type,t.input.type="text",t.input.classList.add("flatpickr-input"),t._input=t.input,t.config.altInput&&(t.altInput=O(t.input.nodeName,t.config.altInputClass),t._input=t.altInput,t.altInput.placeholder=t.input.placeholder,t.altInput.disabled=t.input.disabled,t.altInput.required=t.input.required,t.altInput.tabIndex=t.input.tabIndex,t.altInput.type="text",t.input.setAttribute("type","hidden"),!t.config.static&&t.input.parentNode&&t.input.parentNode.insertBefore(t.altInput,t.input.nextSibling)),t.config.allowInput||t._input.setAttribute("readonly","readonly"),ke()):t.config.errorHandler(new Error("Invalid input element specified")),function(){t.selectedDates=[],t.now=t.parseDate(t.config.now)||new Date;var e=t.config.defaultDate||("INPUT"!==t.input.nodeName&&"TEXTAREA"!==t.input.nodeName||!t.input.placeholder||t.input.value!==t.input.placeholder?t.input.value:null);e&&fe(e,t.config.dateFormat),t._initialDate=t.selectedDates.length>0?t.selectedDates[0]:t.config.minDate&&t.config.minDate.getTime()>t.now.getTime()?t.config.minDate:t.config.maxDate&&t.config.maxDate.getTime()<t.now.getTime()?t.config.maxDate:t.now,t.currentYear=t._initialDate.getFullYear(),t.currentMonth=t._initialDate.getMonth(),t.selectedDates.length>0&&(t.latestSelectedDateObj=t.selectedDates[0]),void 0!==t.config.minTime&&(t.config.minTime=t.parseDate(t.config.minTime,"H:i")),void 0!==t.config.maxTime&&(t.config.maxTime=t.parseDate(t.config.maxTime,"H:i")),t.minDateHasTime=!!t.config.minDate&&(t.config.minDate.getHours()>0||t.config.minDate.getMinutes()>0||t.config.minDate.getSeconds()>0),t.maxDateHasTime=!!t.config.maxDate&&(t.config.maxDate.getHours()>0||t.config.maxDate.getMinutes()>0||t.config.maxDate.getSeconds()>0)}(),t.utils={getDaysInMonth:function(e,r){return void 0===e&&(e=t.currentMonth),void 0===r&&(r=t.currentYear),1===e&&(r%4==0&&r%100!=0||r%400==0)?29:t.l10n.daysInMonth[e]}},t.isMobile||function(){var e=window.document.createDocumentFragment();if(t.calendarContainer=O("div","flatpickr-calendar"),t.calendarContainer.tabIndex=-1,!t.config.noCalendar){if(e.appendChild((t.monthNav=O("div","flatpickr-months"),t.yearElements=[],t.monthElements=[],t.prevMonthNav=O("span","flatpickr-prev-month"),t.prevMonthNav.innerHTML=t.config.prevArrow,t.nextMonthNav=O("span","flatpickr-next-month"),t.nextMonthNav.innerHTML=t.config.nextArrow,U(),Object.defineProperty(t,"_hidePrevMonthArrow",{get:function(){return t.__hidePrevMonthArrow},set:function(e){t.__hidePrevMonthArrow!==e&&(T(t.prevMonthNav,"flatpickr-disabled",e),t.__hidePrevMonthArrow=e)}}),Object.defineProperty(t,"_hideNextMonthArrow",{get:function(){return t.__hideNextMonthArrow},set:function(e){t.__hideNextMonthArrow!==e&&(T(t.nextMonthNav,"flatpickr-disabled",e),t.__hideNextMonthArrow=e)}}),t.currentYearElement=t.yearElements[0],ve(),t.monthNav)),t.innerContainer=O("div","flatpickr-innerContainer"),t.config.weekNumbers){var r=function(){t.calendarContainer.classList.add("hasWeeks");var e=O("div","flatpickr-weekwrapper");e.appendChild(O("span","flatpickr-weekday",t.l10n.weekAbbreviation));var r=O("div","flatpickr-weeks");return e.appendChild(r),{weekWrapper:e,weekNumbers:r}}(),n=r.weekWrapper,a=r.weekNumbers;t.innerContainer.appendChild(n),t.weekNumbers=a,t.weekWrapper=n}t.rContainer=O("div","flatpickr-rContainer"),t.rContainer.appendChild(B()),t.daysContainer||(t.daysContainer=O("div","flatpickr-days"),t.daysContainer.tabIndex=-1),R(),t.rContainer.appendChild(t.daysContainer),t.innerContainer.appendChild(t.rContainer),e.appendChild(t.innerContainer)}t.config.enableTime&&e.appendChild(function(){t.calendarContainer.classList.add("hasTime"),t.config.noCalendar&&t.calendarContainer.classList.add("noCalendar");var e=E(t.config);t.timeContainer=O("div","flatpickr-time"),t.timeContainer.tabIndex=-1;var r=O("span","flatpickr-time-separator",":"),n=C("flatpickr-hour",{"aria-label":t.l10n.hourAriaLabel});t.hourElement=n.getElementsByTagName("input")[0];var a=C("flatpickr-minute",{"aria-label":t.l10n.minuteAriaLabel});if(t.minuteElement=a.getElementsByTagName("input")[0],t.hourElement.tabIndex=t.minuteElement.tabIndex=-1,t.hourElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getHours():t.config.time_24hr?e.hours:function(e){switch(e%24){case 0:case 12:return 12;default:return e%12}}(e.hours)),t.minuteElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getMinutes():e.minutes),t.hourElement.setAttribute("step",t.config.hourIncrement.toString()),t.minuteElement.setAttribute("step",t.config.minuteIncrement.toString()),t.hourElement.setAttribute("min",t.config.time_24hr?"0":"1"),t.hourElement.setAttribute("max",t.config.time_24hr?"23":"12"),t.hourElement.setAttribute("maxlength","2"),t.minuteElement.setAttribute("min","0"),t.minuteElement.setAttribute("max","59"),t.minuteElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(n),t.timeContainer.appendChild(r),t.timeContainer.appendChild(a),t.config.time_24hr&&t.timeContainer.classList.add("time24hr"),t.config.enableSeconds){t.timeContainer.classList.add("hasSeconds");var i=C("flatpickr-second");t.secondElement=i.getElementsByTagName("input")[0],t.secondElement.value=M(t.latestSelectedDateObj?t.latestSelectedDateObj.getSeconds():e.seconds),t.secondElement.setAttribute("step",t.minuteElement.getAttribute("step")),t.secondElement.setAttribute("min","0"),t.secondElement.setAttribute("max","59"),t.secondElement.setAttribute("maxlength","2"),t.timeContainer.appendChild(O("span","flatpickr-time-separator",":")),t.timeContainer.appendChild(i)}return t.config.time_24hr||(t.amPM=O("span","flatpickr-am-pm",t.l10n.amPM[D((t.latestSelectedDateObj?t.hourElement.value:t.config.defaultHour)>11)]),t.amPM.title=t.l10n.toggleTitle,t.amPM.tabIndex=-1,t.timeContainer.appendChild(t.amPM)),t.timeContainer}()),T(t.calendarContainer,"rangeMode","range"===t.config.mode),T(t.calendarContainer,"animate",!0===t.config.animate),T(t.calendarContainer,"multiMonth",t.config.showMonths>1),t.calendarContainer.appendChild(e);var i=void 0!==t.config.appendTo&&void 0!==t.config.appendTo.nodeType;if((t.config.inline||t.config.static)&&(t.calendarContainer.classList.add(t.config.inline?"inline":"static"),t.config.inline&&(!i&&t.element.parentNode?t.element.parentNode.insertBefore(t.calendarContainer,t._input.nextSibling):void 0!==t.config.appendTo&&t.config.appendTo.appendChild(t.calendarContainer)),t.config.static)){var o=O("div","flatpickr-wrapper");t.element.parentNode&&t.element.parentNode.insertBefore(o,t.element),o.appendChild(t.element),t.altInput&&o.appendChild(t.altInput),o.appendChild(t.calendarContainer)}t.config.static||t.config.inline||(void 0!==t.config.appendTo?t.config.appendTo:window.document.body).appendChild(t.calendarContainer)}(),function(){if(t.config.wrap&&["open","close","toggle","clear"].forEach((function(e){Array.prototype.forEach.call(t.element.querySelectorAll("[data-"+e+"]"),(function(r){return h(r,"click",t[e])}))})),t.isMobile)!function(){var e=t.config.enableTime?t.config.noCalendar?"time":"datetime-local":"date";t.mobileInput=O("input",t.input.className+" flatpickr-mobile"),t.mobileInput.tabIndex=1,t.mobileInput.type=e,t.mobileInput.disabled=t.input.disabled,t.mobileInput.required=t.input.required,t.mobileInput.placeholder=t.input.placeholder,t.mobileFormatStr="datetime-local"===e?"Y-m-d\\TH:i:S":"date"===e?"Y-m-d":"H:i:S",t.selectedDates.length>0&&(t.mobileInput.defaultValue=t.mobileInput.value=t.formatDate(t.selectedDates[0],t.mobileFormatStr)),t.config.minDate&&(t.mobileInput.min=t.formatDate(t.config.minDate,"Y-m-d")),t.config.maxDate&&(t.mobileInput.max=t.formatDate(t.config.maxDate,"Y-m-d")),t.input.getAttribute("step")&&(t.mobileInput.step=String(t.input.getAttribute("step"))),t.input.type="hidden",void 0!==t.altInput&&(t.altInput.type="hidden");try{t.input.parentNode&&t.input.parentNode.insertBefore(t.mobileInput,t.input.nextSibling)}catch(e){}h(t.mobileInput,"change",(function(e){t.setDate(W(e).value,!1,t.mobileFormatStr),ge("onChange"),ge("onClose")}))}();else{var e=S(ie,50);if(t._debouncedChange=S(u,300),t.daysContainer&&!/iPhone|iPad|iPod/i.test(navigator.userAgent)&&h(t.daysContainer,"mouseover",(function(e){"range"===t.config.mode&&ae(W(e))})),h(t._input,"keydown",ne),void 0!==t.calendarContainer&&h(t.calendarContainer,"keydown",ne),t.config.inline||t.config.static||h(window,"resize",e),void 0!==window.ontouchstart?h(window.document,"touchstart",$):h(window.document,"mousedown",$),h(window.document,"focus",$,{capture:!0}),!0===t.config.clickOpens&&(h(t._input,"focus",t.open),h(t._input,"click",t.open)),void 0!==t.daysContainer&&(h(t.monthNav,"click",Me),h(t.monthNav,["keyup","increment"],c),h(t.daysContainer,"click",ue)),void 0!==t.timeContainer&&void 0!==t.minuteElement&&void 0!==t.hourElement){h(t.timeContainer,["increment"],o),h(t.timeContainer,"blur",o,{capture:!0}),h(t.timeContainer,"click",f),h([t.hourElement,t.minuteElement],["focus","click"],(function(e){return W(e).select()})),void 0!==t.secondElement&&h(t.secondElement,"focus",(function(){return t.secondElement&&t.secondElement.select()})),void 0!==t.amPM&&h(t.amPM,"click",(function(e){o(e)}))}t.config.allowInput&&h(t._input,"blur",te)}}(),(t.selectedDates.length||t.config.noCalendar)&&(t.config.enableTime&&l(t.config.noCalendar?t.latestSelectedDateObj:void 0),xe(!1)),i();var n=/^((?!chrome|android).)*safari/i.test(navigator.userAgent);!t.isMobile&&n&&se(),ge("onReady")}(),t}function U(e,r){for(var t=Array.prototype.slice.call(e).filter((function(e){return e instanceof HTMLElement})),n=[],a=0;a<t.length;a++){var i=t[a];try{if(null!==i.getAttribute("data-fp-omit"))continue;void 0!==i._flatpickr&&(i._flatpickr.destroy(),i._flatpickr=void 0),i._flatpickr=G(i,r||{}),n.push(i._flatpickr)}catch(e){console.error(e)}}return 1===n.length?n[0]:n}"undefined"!=typeof HTMLElement&&"undefined"!=typeof HTMLCollection&&"undefined"!=typeof NodeList&&(HTMLCollection.prototype.flatpickr=NodeList.prototype.flatpickr=function(e){return U(this,e)},HTMLElement.prototype.flatpickr=function(e){return U([this],e)});var q=function(e,r){return"string"==typeof e?U(window.document.querySelectorAll(e),r):e instanceof Node?U([e],r):U(e,r)};q.defaultConfig={},q.l10ns={en:H({},x),default:H({},x)},q.localize=function(e){q.l10ns.default=H(H({},q.l10ns.default),e)},q.setDefaults=function(e){q.defaultConfig=H(H({},q.defaultConfig),e)},q.parseDate=I({}),q.formatDate=L({}),q.compareDates=_,"undefined"!=typeof jQuery&&void 0!==jQuery.fn&&(jQuery.fn.flatpickr=function(e){return U(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=q);const B=o(a((function(e,r){!function(e){
|
|
2
2
|
/*! *****************************************************************************
|
|
3
3
|
Copyright (c) Microsoft Corporation.
|
|
4
4
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as s,h as i,g as e}from"./p-e9a95b8f.js";import{c as r}from"./p-6c094f3f.js";import{z as o}from"./p-7cda574b.js";import"./p-b28128d2.js";import"./p-5fdb83c9.js";import"./p-4c3358cb.js";import"./p-eda23c05.js";import"./p-c93050d6.js";const n=class{constructor(i){t(this,i),this.cancel=s(this,"cancel",7),this.select=s(this,"select",7),this.items=[],this.disabled=!1,this.openDirection="bottom-start",this.open=!1,this.badgeIcons=!1,this.gridLayout=!1,this.setTriggerAttributes=t=>{const s={"aria-haspopup":!0,"aria-expanded":this.open,disabled:this.disabled,role:"button"};for(const[i,e]of Object.entries(s))e?t.setAttribute(i,String(e)):t.removeAttribute(i)},this.onClose=()=>{this.cancel.emit(),this.open=!1},this.onTriggerClick=t=>{t.stopPropagation(),this.disabled||(this.open=!this.open)},this.handleSelect=t=>{t.stopPropagation(),this.select.emit(t.detail),this.open=!1},this.setListElement=t=>{this.list=t},this.focusMenuItem=()=>{var t;const s=this.list.shadowRoot.activeElement;null==s||s.blur();const i=this.items.filter(this.isMenuItem),e=Math.max(i.findIndex((t=>t.selected)),0);null===(t=Array.from(this.list.shadowRoot.querySelectorAll('[role="menuitem"]'))[e])||void 0===t||t.focus()},this.portalId=r()}openWatcher(){if(!this.open)return;const t=new IntersectionObserver((()=>{t.unobserve(this.list),this.focusMenuItem()}));t.observe(this.list)}render(){const t=this.getCssProperties(),s=getComputedStyle(this.host).getPropertyValue("--dropdown-z-index");return i("div",{class:"mdc-menu-surface--anchor",onClick:this.onTriggerClick},i("slot",{name:"trigger"}),i("limel-portal",{visible:this.open,containerId:this.portalId,openDirection:this.openDirection,position:"absolute",containerStyle:{"z-index":s}},i("limel-menu-surface",{open:this.open,onDismiss:this.onClose,style:t,class:{"has-grid-layout":this.gridLayout}},i("limel-menu-list",{class:{"has-grid-layout has-interactive-items":this.gridLayout},items:this.items,type:"menu",badgeIcons:this.badgeIcons,onSelect:this.handleSelect,ref:this.setListElement}))))}componentDidRender(){this.host.shadowRoot.querySelector("slot").assignedElements().forEach(this.setTriggerAttributes)}getCssProperties(){const t=["--menu-surface-width","--list-grid-item-max-width","--list-grid-item-min-width","--list-grid-gap"],s=getComputedStyle(this.host),i=t.map((t=>s.getPropertyValue(t)));return o(t,i)}isMenuItem(t){return!("separator"in t)}get host(){return e(this)}static get watchers(){return{open:["openWatcher"]}}};n.style=":host{display:inline-block}:host([hidden]){display:none}.menu__trigger{border-color:transparent;border-width:1px;border-style:solid;background:none;color:rgb(var(--contrast-800));height:2.25rem}.menu__trigger-enabled:hover{border-color:rgb(var(--contrast-800));color:rgb(var(--contrast-1100))}.mdc-menu-surface--anchor{position:relative}";export{n as limel_menu}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import{h as e,r as t,c,g as l}from"./p-e9a95b8f.js";import{b as i}from"./p-cc9ebbef.js";import{E as d,a as o,S as n,h as r}from"./p-216ffe20.js";import{i as a}from"./p-af8d4fe7.js";import{c as s}from"./p-6c094f3f.js";import{a as m}from"./p-d0a7de87.js";import{M as p,a as h}from"./p-48d4ef20.js";import"./p-0b1af919.js";import"./p-dcc97cc2.js";
|
|
2
|
+
/*! *****************************************************************************
|
|
3
|
+
Copyright (c) Microsoft Corporation.
|
|
4
|
+
|
|
5
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
6
|
+
purpose with or without fee is hereby granted.
|
|
7
|
+
|
|
8
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
9
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
10
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
11
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
12
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
13
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
14
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
15
|
+
***************************************************************************** */var g=function(e,t){return(g=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var c in t)Object.prototype.hasOwnProperty.call(t,c)&&(e[c]=t[c])})(e,t)};function f(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function c(){this.constructor=e}g(e,t),e.prototype=null===t?Object.create(t):(c.prototype=t.prototype,new c)}var _=function(){return(_=Object.assign||function(e){for(var t,c=1,l=arguments.length;c<l;c++)for(var i in t=arguments[c])Object.prototype.hasOwnProperty.call(t,i)&&(e[i]=t[i]);return e}).apply(this,arguments)},u={ARIA_HIDDEN:"aria-hidden",ROLE:"role"},b={HELPER_TEXT_VALIDATION_MSG:"mdc-select-helper-text--validation-msg",HELPER_TEXT_VALIDATION_MSG_PERSISTENT:"mdc-select-helper-text--validation-msg-persistent"},x=function(e){function t(c){return e.call(this,_(_({},t.defaultAdapter),c))||this}return f(t,e),Object.defineProperty(t,"cssClasses",{get:function(){return b},enumerable:!1,configurable:!0}),Object.defineProperty(t,"strings",{get:function(){return u},enumerable:!1,configurable:!0}),Object.defineProperty(t,"defaultAdapter",{get:function(){return{addClass:function(){},removeClass:function(){},hasClass:function(){return!1},setAttr:function(){},getAttr:function(){return null},removeAttr:function(){},setContent:function(){}}},enumerable:!1,configurable:!0}),t.prototype.getId=function(){return this.adapter.getAttr("id")},t.prototype.isVisible=function(){return"true"!==this.adapter.getAttr(u.ARIA_HIDDEN)},t.prototype.setContent=function(e){this.adapter.setContent(e)},t.prototype.setValidation=function(e){e?this.adapter.addClass(b.HELPER_TEXT_VALIDATION_MSG):this.adapter.removeClass(b.HELPER_TEXT_VALIDATION_MSG)},t.prototype.setValidationMsgPersistent=function(e){e?this.adapter.addClass(b.HELPER_TEXT_VALIDATION_MSG_PERSISTENT):this.adapter.removeClass(b.HELPER_TEXT_VALIDATION_MSG_PERSISTENT)},t.prototype.setValidity=function(e){if(this.adapter.hasClass(b.HELPER_TEXT_VALIDATION_MSG)){var t=this.adapter.hasClass(b.HELPER_TEXT_VALIDATION_MSG_PERSISTENT);if(!e||t)return this.showToScreenReader(),void(e?this.adapter.removeAttr(u.ROLE):this.adapter.setAttr(u.ROLE,"alert"));this.adapter.removeAttr(u.ROLE),this.hide()}},t.prototype.showToScreenReader=function(){this.adapter.removeAttr(u.ARIA_HIDDEN)},t.prototype.hide=function(){this.adapter.setAttr(u.ARIA_HIDDEN,"true")},t}(p),v=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return f(t,e),t.attachTo=function(e){return new t(e)},Object.defineProperty(t.prototype,"foundationForSelect",{get:function(){return this.foundation},enumerable:!1,configurable:!0}),t.prototype.getDefaultFoundation=function(){var e=this;return new x({addClass:function(t){return e.root.classList.add(t)},removeClass:function(t){return e.root.classList.remove(t)},hasClass:function(t){return e.root.classList.contains(t)},getAttr:function(t){return e.root.getAttribute(t)},setAttr:function(t,c){return e.root.setAttribute(t,c)},removeAttr:function(t){return e.root.removeAttribute(t)},setContent:function(t){e.root.textContent=t}})},t}(h);
|
|
16
|
+
/**
|
|
17
|
+
* @license
|
|
18
|
+
* Copyright 2018 Google Inc.
|
|
19
|
+
*
|
|
20
|
+
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
21
|
+
* of this software and associated documentation files (the "Software"), to deal
|
|
22
|
+
* in the Software without restriction, including without limitation the rights
|
|
23
|
+
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
24
|
+
* copies of the Software, and to permit persons to whom the Software is
|
|
25
|
+
* furnished to do so, subject to the following conditions:
|
|
26
|
+
*
|
|
27
|
+
* The above copyright notice and this permission notice shall be included in
|
|
28
|
+
* all copies or substantial portions of the Software.
|
|
29
|
+
*
|
|
30
|
+
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
31
|
+
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
32
|
+
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
33
|
+
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
34
|
+
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
35
|
+
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
36
|
+
* THE SOFTWARE.
|
|
37
|
+
*/const w=t=>{let c=!!t.value;a(t.value)?c=t.value.length>0:c&&(c=!!t.value.value);let l=!t.invalid;return t.checkValid&&t.required&&!c&&(l=!1),e("div",{class:{"limel-select":!0,"mdc-select":!0,"mdc-select--outlined":!0,"mdc-select--disabled":t.disabled,"limel-select--readonly":t.readonly,"limel-select--required":t.required,"limel-select--invalid":!l,"limel-select--empty":!c,"limel-select--with-helper-text":"string"==typeof t.helperText}},e(y,Object.assign({},t,{hasValue:c,isValid:l})),e(z,{text:t.helperText}),e(Y,Object.assign({},t)))},y=t=>{return e("div",{class:{"mdc-select__anchor":!0,"limel-select-trigger":!0,"limel-select--focused":t.isOpen},tabindex:"0",onClick:t.open,onKeyPress:t.onTriggerPress,role:"button","aria-haspopup":"listbox","aria-expanded":"false","aria-labelledby":"s-label s-selected-text","aria-required":t.required,"aria-disabled":t.disabled},e("span",{id:"s-label",class:{"mdc-floating-label":!0,"mdc-floating-label--float-above":t.hasValue||t.isOpen||t.readonly,"mdc-floating-label--active":t.isOpen}},t.label),e("span",{class:"mdc-select__selected-text-container limel-select__selected-option"},function(t){if(!t||!t.icon)return"";const c={};return t.iconColor&&(c.color=t.iconColor),e("limel-icon",{class:"limel-select__selected-option__icon",name:t.icon,size:"medium",style:c})}(t.value),e("span",{id:"s-selected-text",class:"mdc-select__selected-text limel-select__selected-option__text"},(l=t.readonly,!(c=t.value)&&l?"–":c?a(c)?c.map((e=>e.text)).join(", "):c.text:""))),e(k,Object.assign({},t,{isValid:t.isValid})),e("span",{class:"mdc-select__dropdown-icon"},e("svg",{class:"mdc-select__dropdown-icon-graphic",viewBox:"7 10 10 5",focusable:"false"},e("polygon",{stroke:"none","fill-rule":"evenodd",points:"7 10 12 15 17 10"}))));var c,l},k=t=>{if(!t.isValid)return e("limel-icon",{name:"high_importance",size:"medium",class:"invalid-icon"})},z=t=>{if("string"==typeof t.text)return e("div",{class:"mdc-select-helper-line"},e("p",{class:"mdc-select-helper-text mdc-select-helper-text--persistent","aria-hidden":"true"},t.text.trim()))},Y=t=>e(t.native?j:X,Object.assign({},t)),X=t=>{const c=(l=t.value,t.options.map((e=>{const t=C(e,l),{text:c,disabled:i}=e;return{text:c,selected:t,disabled:i,value:e,icon:e.icon,iconColor:e.iconColor}})));var l;return e("limel-portal",{containerId:t.id,visible:t.isOpen,inheritParentWidth:!0,containerStyle:{"z-index":t.dropdownZIndex}},e("limel-menu-surface",{open:t.isOpen,onDismiss:t.close,style:{"--mdc-menu-min-width":"100%","max-height":"inherit",display:"flex"}},e("limel-list",{items:c,type:t.multiple?"checkbox":"selectable",onChange:t.onMenuChange})))},j=t=>e("select",{required:t.required,"aria-disabled":t.disabled,"aria-required":t.required,onChange:t.onNativeChange,onFocus:t.open,onBlur:t.close,class:"limel-select__native-control",disabled:t.disabled,multiple:t.multiple},t.options.map((c=>e("option",{key:c.value,value:c.value,selected:C(c,t.value),disabled:c.disabled},c.text))));function C(e,t){return!!t&&(a(t)?t.some((t=>e.value===t.value)):e.value===t.value)}const T=class{constructor(e){t(this,e),this.change=c(this,"change",7),this.disabled=!1,this.readonly=!1,this.required=!1,this.options=[],this.multiple=!1,this.menuOpen=!1,this.hasChanged=!1,this.checkValid=!1,this.handleMenuChange=this.handleMenuChange.bind(this),this.handleNativeChange=this.handleNativeChange.bind(this),this.handleMenuTriggerKeyPress=this.handleMenuTriggerKeyPress.bind(this),this.openMenu=this.openMenu.bind(this),this.closeMenu=this.closeMenu.bind(this),this.portalId=s()}connectedCallback(){this.initialize()}componentWillLoad(){this.isMobileDevice=i(),this.host.hasAttribute("data-native")&&(this.isMobileDevice=!0)}componentDidLoad(){this.initialize()}initialize(){let e;e=this.host.shadowRoot.querySelector(".mdc-floating-label"),e&&(this.mdcFloatingLabel=new m(e),e=this.host.shadowRoot.querySelector(".mdc-select-helper-text"),e&&(this.mdcSelectHelperText=new v(e)))}disconnectedCallback(){this.mdcFloatingLabel&&this.mdcFloatingLabel.destroy(),this.mdcSelectHelperText&&this.mdcSelectHelperText.destroy()}componentDidUpdate(){this.menuOpen&&this.setMenuFocus()}render(){const t=getComputedStyle(this.host).getPropertyValue("--dropdown-z-index");return e(w,{id:this.portalId,disabled:this.disabled||this.readonly,readonly:this.readonly,required:this.required,invalid:this.invalid,label:this.label,helperText:this.helperText,value:this.value,options:this.options,onMenuChange:this.handleMenuChange,onNativeChange:this.handleNativeChange,onTriggerPress:this.handleMenuTriggerKeyPress,multiple:this.multiple,isOpen:this.menuOpen,open:this.openMenu,close:this.closeMenu,checkValid:this.checkValid,native:this.isMobileDevice,dropdownZIndex:t})}watchOpen(e,t){this.checkValid||!e&&t&&(this.checkValid=!0)}setMenuFocus(){this.isMobileDevice||setTimeout((()=>{var e;const t=document.querySelector(`#${this.portalId} limel-menu-surface limel-list`),c=null===(e=null==t?void 0:t.shadowRoot)||void 0===e?void 0:e.querySelector("[tabindex]");c&&c.focus()}))}setTriggerFocus(){this.host.shadowRoot.querySelector(".limel-select-trigger").focus()}handleMenuChange(e){if(e.stopPropagation(),a(e.detail)){const t=e.detail.map((e=>e.value));return void this.change.emit(t)}if(!e.detail.selected)return;const t=e.detail.value;t.disabled||(this.change.emit(t),this.menuOpen=!1,this.setTriggerFocus())}openMenu(){this.emitFirstChangeEvent()&&(this.hasChanged=!0,this.change.emit(this.options[0])),this.menuOpen=!0}emitFirstChangeEvent(){return!this.hasChanged&&this.isMobileDevice&&!this.value}closeMenu(){this.menuOpen=!1,this.setTriggerFocus()}handleMenuTriggerKeyPress(e){this.menuOpen||e.key!==n&&e.keyCode!==r&&e.key!==d&&e.keyCode!==o||(e.stopPropagation(),e.preventDefault(),this.menuOpen=!0)}handleNativeChange(e){e.stopPropagation();const t=this.host.shadowRoot.querySelector("select.limel-select__native-control"),c=Array.apply(null,t.options).filter((e=>!!e.selected)).map((e=>this.options.find((t=>t.value===e.value))));this.multiple?this.change.emit(c):(this.change.emit(c[0]),this.menuOpen=!1)}get host(){return l(this)}static get watchers(){return{menuOpen:["watchOpen"]}}};T.style='@charset "UTF-8";:host{--mdc-theme-primary:var(\n --lime-primary-color,\n rgb(var(--color-teal-default))\n );--mdc-theme-secondary:var(\n --lime-secondary-color,\n rgb(var(--contrast-1100))\n );--mdc-theme-on-primary:var(\n --lime-on-primary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-secondary:var(\n --lime-on-secondary-color,\n rgb(var(--contrast-100))\n );--mdc-theme-text-disabled-on-background:var(\n --lime-text-disabled-on-background-color,\n rgba(var(--contrast-1700), 0.38)\n );--mdc-theme-text-primary-on-background:var(\n --lime-text-primary-on-background-color,\n rgba(var(--contrast-1700), 0.87)\n );--mdc-theme-text-secondary-on-background:var(\n --lime-text-secondary-on-background-color,\n rgba(var(--contrast-1700), 0.54)\n );--lime-error-text-color:rgb(var(--color-red-darker));--mdc-theme-surface:var(\n --lime-surface-background-color,\n rgb(var(--contrast-100))\n );--mdc-theme-on-surface:var(\n --lime-on-surface-color,\n var(--lime-text-primary-on-background-color)\n )}.mdc-floating-label{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-subtitle1-font-size, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);position:absolute;left:0;-webkit-transform-origin:left top;transform-origin:left top;line-height:1.15rem;text-align:left;text-overflow:ellipsis;white-space:nowrap;cursor:text;overflow:hidden;will-change:transform;transition:transform 150ms cubic-bezier(0.4, 0, 0.2, 1), color 150ms cubic-bezier(0.4, 0, 0.2, 1)}[dir=rtl] .mdc-floating-label,.mdc-floating-label[dir=rtl]{right:0;left:auto;-webkit-transform-origin:right top;transform-origin:right top;text-align:right;}.mdc-floating-label--float-above{cursor:auto}.mdc-floating-label--required::after{margin-left:1px;margin-right:0px;content:"*"}[dir=rtl] .mdc-floating-label--required,.mdc-floating-label--required[dir=rtl]{}[dir=rtl] .mdc-floating-label--required::after,.mdc-floating-label--required[dir=rtl]::after{margin-left:0;margin-right:1px}.mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-standard 250ms 1}@keyframes mdc-floating-label-shake-float-above-standard{0%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-106%) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-106%) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-106%) scale(0.75)}}@keyframes mdc-ripple-fg-radius-in{from{animation-timing-function:cubic-bezier(0.4, 0, 0.2, 1);transform:translate(var(--mdc-ripple-fg-translate-start, 0)) scale(1)}to{transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}}@keyframes mdc-ripple-fg-opacity-in{from{animation-timing-function:linear;opacity:0}to{opacity:var(--mdc-ripple-fg-opacity, 0)}}@keyframes mdc-ripple-fg-opacity-out{from{animation-timing-function:linear;opacity:var(--mdc-ripple-fg-opacity, 0)}to{opacity:0}}.mdc-line-ripple::before,.mdc-line-ripple::after{position:absolute;bottom:0;left:0;width:100%;border-bottom-style:solid;content:""}.mdc-line-ripple::before{border-bottom-width:1px;z-index:1}.mdc-line-ripple::after{transform:scaleX(0);border-bottom-width:2px;opacity:0;z-index:2}.mdc-line-ripple::after{transition:transform 180ms cubic-bezier(0.4, 0, 0.2, 1), opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-line-ripple--active::after{transform:scaleX(1);opacity:1}.mdc-line-ripple--deactivating::after{opacity:0}.mdc-notched-outline{display:flex;position:absolute;top:0;right:0;left:0;box-sizing:border-box;width:100%;max-width:100%;height:100%;text-align:left;pointer-events:none}[dir=rtl] .mdc-notched-outline,.mdc-notched-outline[dir=rtl]{text-align:right;}.mdc-notched-outline__leading,.mdc-notched-outline__notch,.mdc-notched-outline__trailing{box-sizing:border-box;height:100%;border-top:1px solid;border-bottom:1px solid;pointer-events:none}.mdc-notched-outline__leading{border-left:1px solid;border-right:none;width:12px}[dir=rtl] .mdc-notched-outline__leading,.mdc-notched-outline__leading[dir=rtl]{border-left:none;border-right:1px solid;}.mdc-notched-outline__trailing{border-left:none;border-right:1px solid;flex-grow:1}[dir=rtl] .mdc-notched-outline__trailing,.mdc-notched-outline__trailing[dir=rtl]{border-left:1px solid;border-right:none;}.mdc-notched-outline__notch{flex:0 0 auto;width:auto;max-width:calc(100% - 12px * 2)}.mdc-notched-outline .mdc-floating-label{display:inline-block;position:relative;max-width:100%}.mdc-notched-outline .mdc-floating-label--float-above{text-overflow:clip}.mdc-notched-outline--upgraded .mdc-floating-label--float-above{max-width:133.3333333333%}.mdc-notched-outline--notched .mdc-notched-outline__notch{padding-left:0;padding-right:8px;border-top:none}[dir=rtl] .mdc-notched-outline--notched .mdc-notched-outline__notch,.mdc-notched-outline--notched .mdc-notched-outline__notch[dir=rtl]{padding-left:8px;padding-right:0;}.mdc-notched-outline--no-label .mdc-notched-outline__notch{display:none}.mdc-select{display:inline-flex;position:relative}.mdc-select:not(.mdc-select--disabled) .mdc-select__selected-text{color:rgba(0, 0, 0, 0.87)}.mdc-select.mdc-select--disabled .mdc-select__selected-text{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-floating-label{color:rgba(0, 0, 0, 0.6)}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:rgba(38, 166, 154, 0.87)}.mdc-select.mdc-select--disabled .mdc-floating-label{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.54)}.mdc-select:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon{fill:#26a69a;fill:var(--mdc-theme-primary, #26a69a)}.mdc-select.mdc-select--disabled .mdc-select__dropdown-icon{fill:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled)+.mdc-select-helper-text{color:rgba(0, 0, 0, 0.6)}.mdc-select.mdc-select--disabled+.mdc-select-helper-text{color:rgba(0, 0, 0, 0.38)}.mdc-select:not(.mdc-select--disabled) .mdc-select__icon{color:rgba(0, 0, 0, 0.54)}.mdc-select.mdc-select--disabled .mdc-select__icon{color:rgba(0, 0, 0, 0.38)}@media screen and (forced-colors: active), (-ms-high-contrast: active){.mdc-select.mdc-select--disabled .mdc-select__selected-text{color:GrayText}.mdc-select.mdc-select--disabled .mdc-select__dropdown-icon{fill:red}.mdc-select.mdc-select--disabled .mdc-floating-label{color:GrayText}.mdc-select.mdc-select--disabled .mdc-line-ripple::before{border-bottom-color:GrayText}.mdc-select.mdc-select--disabled .mdc-notched-outline__leading,.mdc-select.mdc-select--disabled .mdc-notched-outline__notch,.mdc-select.mdc-select--disabled .mdc-notched-outline__trailing{border-color:GrayText}.mdc-select.mdc-select--disabled .mdc-select__icon{color:GrayText}.mdc-select.mdc-select--disabled+.mdc-select-helper-text{color:GrayText}}.mdc-select .mdc-floating-label{top:50%;transform:translateY(-50%);pointer-events:none}.mdc-select .mdc-select__anchor{padding-left:16px;padding-right:0}[dir=rtl] .mdc-select .mdc-select__anchor,.mdc-select .mdc-select__anchor[dir=rtl]{padding-left:0;padding-right:16px;}.mdc-select.mdc-select--with-leading-icon .mdc-select__anchor{padding-left:0;padding-right:0}[dir=rtl] .mdc-select.mdc-select--with-leading-icon .mdc-select__anchor,.mdc-select.mdc-select--with-leading-icon .mdc-select__anchor[dir=rtl]{padding-left:0;padding-right:0;}.mdc-select .mdc-select__icon{width:24px;height:24px;font-size:24px}.mdc-select .mdc-select__dropdown-icon{width:24px;height:24px}.mdc-select .mdc-select__menu .mdc-deprecated-list-item{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-select .mdc-select__menu .mdc-deprecated-list-item,.mdc-select .mdc-select__menu .mdc-deprecated-list-item[dir=rtl]{padding-left:16px;padding-right:16px;}.mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic{margin-left:0;margin-right:12px}[dir=rtl] .mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic,.mdc-select .mdc-select__menu .mdc-deprecated-list-item__graphic[dir=rtl]{margin-left:12px;margin-right:0;}.mdc-select__dropdown-icon{margin-left:12px;margin-right:12px;display:inline-flex;position:relative;align-self:center;align-items:center;justify-content:center;flex-shrink:0;pointer-events:none}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-active,.mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{position:absolute;top:0;left:0}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-graphic{width:41.6666666667%;height:20.8333333333%}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{opacity:1;transition:opacity 75ms linear 75ms}.mdc-select__dropdown-icon .mdc-select__dropdown-icon-active{opacity:0;transition:opacity 75ms linear}[dir=rtl] .mdc-select__dropdown-icon,.mdc-select__dropdown-icon[dir=rtl]{margin-left:12px;margin-right:12px;}.mdc-select--activated .mdc-select__dropdown-icon .mdc-select__dropdown-icon-inactive{opacity:0;transition:opacity 49.5ms linear}.mdc-select--activated .mdc-select__dropdown-icon .mdc-select__dropdown-icon-active{opacity:1;transition:opacity 100.5ms linear 49.5ms}.mdc-select__anchor{width:200px;min-width:0;flex:1 1 auto;position:relative;box-sizing:border-box;overflow:hidden;outline:none;cursor:pointer}.mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-106%) scale(0.75)}.mdc-select__selected-text-container{display:flex;appearance:none;pointer-events:none;box-sizing:border-box;width:auto;min-width:0;flex-grow:1;height:28px;border:none;outline:none;padding:0;background-color:transparent;color:inherit}.mdc-select__selected-text{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-subtitle1-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.875rem;font-size:var(--mdc-typography-subtitle1-font-size, 0.875rem);line-height:1.125rem;line-height:var(--mdc-typography-subtitle1-line-height, 1.125rem);font-weight:400;font-weight:var(--mdc-typography-subtitle1-font-weight, 400);letter-spacing:0.009375em;letter-spacing:var(--mdc-typography-subtitle1-letter-spacing, 0.009375em);text-decoration:inherit;text-decoration:var(--mdc-typography-subtitle1-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-subtitle1-text-transform, inherit);text-overflow:ellipsis;white-space:nowrap;overflow:hidden;display:block;width:100%;text-align:left}[dir=rtl] .mdc-select__selected-text,.mdc-select__selected-text[dir=rtl]{text-align:right;}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-floating-label{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--invalid+.mdc-select-helper-text--validation-msg{color:#b00020;color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-select__dropdown-icon{fill:#b00020;fill:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-select__dropdown-icon{fill:#b00020;fill:var(--mdc-theme-error, #b00020)}.mdc-select--disabled{cursor:default;pointer-events:none}.mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item{padding-left:12px;padding-right:12px}[dir=rtl] .mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item,.mdc-select--with-leading-icon .mdc-select__menu .mdc-deprecated-list-item[dir=rtl]{padding-left:12px;padding-right:12px;}.mdc-select__menu .mdc-deprecated-list .mdc-select__icon,.mdc-select__menu .mdc-list .mdc-select__icon{margin-left:0;margin-right:0}[dir=rtl] .mdc-select__menu .mdc-deprecated-list .mdc-select__icon,[dir=rtl] .mdc-select__menu .mdc-list .mdc-select__icon,.mdc-select__menu .mdc-deprecated-list .mdc-select__icon[dir=rtl],.mdc-select__menu .mdc-list .mdc-select__icon[dir=rtl]{margin-left:0;margin-right:0;}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--activated,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--selected,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--activated{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__graphic,.mdc-select__menu .mdc-list .mdc-deprecated-list-item--activated .mdc-deprecated-list-item__graphic{color:#000;color:var(--mdc-theme-on-surface, #000)}.mdc-select__menu .mdc-list-item__start{display:inline-flex;align-items:center}.mdc-select__option{padding-left:16px;padding-right:16px}[dir=rtl] .mdc-select__option,.mdc-select__option[dir=rtl]{padding-left:16px;padding-right:16px;}.mdc-select__one-line-option.mdc-list-item--with-one-line{height:48px}.mdc-select__two-line-option.mdc-list-item--with-two-lines{height:64px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__start{margin-top:20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text{display:block;margin-top:0;line-height:normal;margin-bottom:-20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text::before{display:inline-block;width:0;height:28px;content:"";vertical-align:0}.mdc-select__two-line-option.mdc-list-item--with-two-lines .mdc-list-item__primary-text::after{display:inline-block;width:0;height:20px;content:"";vertical-align:-20px}.mdc-select__two-line-option.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end{display:block;margin-top:0;line-height:normal}.mdc-select__two-line-option.mdc-list-item--with-two-lines.mdc-list-item--with-trailing-meta .mdc-list-item__end::before{display:inline-block;width:0;height:36px;content:"";vertical-align:0}.mdc-select__option-with-leading-content{padding-left:0;padding-right:12px}.mdc-select__option-with-leading-content.mdc-list-item{padding-left:0;padding-right:auto}[dir=rtl] .mdc-select__option-with-leading-content.mdc-list-item,.mdc-select__option-with-leading-content.mdc-list-item[dir=rtl]{padding-left:auto;padding-right:0;}.mdc-select__option-with-leading-content .mdc-list-item__start{margin-left:12px;margin-right:0}[dir=rtl] .mdc-select__option-with-leading-content .mdc-list-item__start,.mdc-select__option-with-leading-content .mdc-list-item__start[dir=rtl]{margin-left:0;margin-right:12px;}.mdc-select__option-with-leading-content .mdc-list-item__start{width:36px;height:24px}[dir=rtl] .mdc-select__option-with-leading-content,.mdc-select__option-with-leading-content[dir=rtl]{padding-left:12px;padding-right:0;}.mdc-select__option-with-meta.mdc-list-item{padding-left:auto;padding-right:0}[dir=rtl] .mdc-select__option-with-meta.mdc-list-item,.mdc-select__option-with-meta.mdc-list-item[dir=rtl]{padding-left:0;padding-right:auto;}.mdc-select__option-with-meta .mdc-list-item__end{margin-left:12px;margin-right:12px}[dir=rtl] .mdc-select__option-with-meta .mdc-list-item__end,.mdc-select__option-with-meta .mdc-list-item__end[dir=rtl]{margin-left:12px;margin-right:12px;}.mdc-select--filled .mdc-select__anchor{height:56px;display:flex;align-items:baseline}.mdc-select--filled .mdc-select__anchor::before{display:inline-block;width:0;height:40px;content:"";vertical-align:0}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor .mdc-select__selected-text::before{content:""}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor .mdc-select__selected-text-container{height:100%;display:inline-flex;align-items:center}.mdc-select--filled.mdc-select--no-label .mdc-select__anchor::before{display:none}.mdc-select--filled .mdc-select__anchor{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:0;border-bottom-left-radius:0}.mdc-select--filled:not(.mdc-select--disabled) .mdc-select__anchor{background-color:whitesmoke}.mdc-select--filled.mdc-select--disabled .mdc-select__anchor{background-color:#fafafa}.mdc-select--filled:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.42)}.mdc-select--filled:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.87)}.mdc-select--filled:not(.mdc-select--disabled) .mdc-line-ripple::after{border-bottom-color:#26a69a;border-bottom-color:var(--mdc-theme-primary, #26a69a)}.mdc-select--filled.mdc-select--disabled .mdc-line-ripple::before{border-bottom-color:rgba(0, 0, 0, 0.06)}.mdc-select--filled .mdc-floating-label{max-width:calc(100% - 64px)}.mdc-select--filled .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 64px / 0.75)}.mdc-select--filled .mdc-menu-surface--is-open-below{border-top-left-radius:0px;border-top-right-radius:0px}.mdc-select--filled.mdc-select--focused.mdc-line-ripple::after{transform:scale(1, 2);opacity:1}.mdc-select--filled .mdc-floating-label{left:16px;right:initial}[dir=rtl] .mdc-select--filled .mdc-floating-label,.mdc-select--filled .mdc-floating-label[dir=rtl]{left:initial;right:16px;}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label{left:48px;right:initial}[dir=rtl] .mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label,.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl]{left:initial;right:48px;}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label{max-width:calc(100% - 96px)}.mdc-select--filled.mdc-select--with-leading-icon .mdc-floating-label--float-above{max-width:calc(100% / 0.75 - 96px / 0.75)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled):hover .mdc-line-ripple::before{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--invalid:not(.mdc-select--disabled) .mdc-line-ripple::after{border-bottom-color:#b00020;border-bottom-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined{border:none}.mdc-select--outlined .mdc-select__anchor{height:56px}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{font-size:0.75rem}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-56px{0%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 0%)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 0%)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 0%)) translateY(-34.75px) scale(0.75)}}.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px)}[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading[dir=rtl]{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0;}@supports (top: 0%){.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__leading{width:max(12px, var(--mdc-shape-small, 4px))}}@supports (top: 0%){.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__notch{max-width:calc(100% - max(12px, var(--mdc-shape-small, 4px)) * 2)}}.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing{border-top-left-radius:0;border-top-right-radius:4px;border-top-right-radius:var(--mdc-shape-small, 4px);border-bottom-right-radius:4px;border-bottom-right-radius:var(--mdc-shape-small, 4px);border-bottom-left-radius:0}[dir=rtl] .mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing,.mdc-select--outlined .mdc-notched-outline .mdc-notched-outline__trailing[dir=rtl]{border-top-left-radius:4px;border-top-left-radius:var(--mdc-shape-small, 4px);border-top-right-radius:0;border-bottom-right-radius:0;border-bottom-left-radius:4px;border-bottom-left-radius:var(--mdc-shape-small, 4px);}@supports (top: 0%){.mdc-select--outlined .mdc-select__anchor{padding-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-select--outlined .mdc-select__anchor,.mdc-select--outlined .mdc-select__anchor[dir=rtl]{padding-left:0;}@supports (top: 0%){[dir=rtl] .mdc-select--outlined .mdc-select__anchor,.mdc-select--outlined .mdc-select__anchor[dir=rtl]{padding-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}@supports (top: 0%){.mdc-select--outlined+.mdc-select-helper-text{margin-left:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}[dir=rtl] .mdc-select--outlined+.mdc-select-helper-text,.mdc-select--outlined+.mdc-select-helper-text[dir=rtl]{margin-left:0;}@supports (top: 0%){[dir=rtl] .mdc-select--outlined+.mdc-select-helper-text,.mdc-select--outlined+.mdc-select-helper-text[dir=rtl]{margin-right:max(16px, calc(var(--mdc-shape-small, 4px) + 4px))}}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-select__anchor{background-color:transparent}.mdc-select--outlined.mdc-select--disabled .mdc-select__anchor{background-color:transparent}.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.38)}.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.87)}.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:2px}.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#26a69a;border-color:var(--mdc-theme-primary, #26a69a)}.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--disabled .mdc-notched-outline__trailing{border-color:rgba(0, 0, 0, 0.06)}.mdc-select--outlined .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 60px)}.mdc-select--outlined .mdc-select__anchor{display:flex;align-items:baseline;overflow:visible}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined 250ms 1}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{transform:translateY(-37.25px) scale(1)}.mdc-select--outlined .mdc-select__anchor .mdc-floating-label--float-above{font-size:0.75rem}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) scale(0.75)}.mdc-select--outlined .mdc-select__anchor.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined .mdc-select__anchor .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:1px}.mdc-select--outlined .mdc-select__anchor .mdc-select__selected-text::before{content:""}.mdc-select--outlined .mdc-select__anchor .mdc-select__selected-text-container{height:100%;display:inline-flex;align-items:center}.mdc-select--outlined .mdc-select__anchor::before{display:none}.mdc-select--outlined .mdc-select__selected-text-container{display:flex;border:none;z-index:1;background-color:transparent}.mdc-select--outlined .mdc-select__icon{z-index:2}.mdc-select--outlined .mdc-floating-label{line-height:1.15rem;left:4px;right:initial}[dir=rtl] .mdc-select--outlined .mdc-floating-label,.mdc-select--outlined .mdc-floating-label[dir=rtl]{left:initial;right:4px;}.mdc-select--outlined.mdc-select--focused .mdc-notched-outline--notched .mdc-notched-outline__notch{padding-top:2px}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled) .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled):not(.mdc-select--focused) .mdc-select__anchor:hover .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-width:2px}.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__leading,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__notch,.mdc-select--outlined.mdc-select--invalid:not(.mdc-select--disabled).mdc-select--focused .mdc-notched-outline .mdc-notched-outline__trailing{border-color:#b00020;border-color:var(--mdc-theme-error, #b00020)}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label{left:36px;right:initial}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label[dir=rtl]{left:initial;right:36px;}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above{transform:translateY(-37.25px) translateX(-32px) scale(1)}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-37.25px) translateX(32px) scale(1);}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--float-above{font-size:0.75rem}.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above{transform:translateY(-34.75px) translateX(-32px) scale(0.75)}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl],.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above[dir=rtl]{transform:translateY(-34.75px) translateX(32px) scale(0.75);}.mdc-select--outlined.mdc-select--with-leading-icon.mdc-notched-outline--upgraded .mdc-floating-label--float-above,.mdc-select--outlined.mdc-select--with-leading-icon .mdc-notched-outline--upgraded .mdc-floating-label--float-above{font-size:1rem}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px{0%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - 32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - 32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - 32px)) translateY(-34.75px) scale(0.75)}}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon,.mdc-select--outlined.mdc-select--with-leading-icon[dir=rtl]{}[dir=rtl] .mdc-select--outlined.mdc-select--with-leading-icon .mdc-floating-label--shake,.mdc-select--outlined.mdc-select--with-leading-icon[dir=rtl] .mdc-floating-label--shake{animation:mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px 250ms 1}@keyframes mdc-floating-label-shake-float-above-select-outlined-leading-icon-56px-rtl{0%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}33%{animation-timing-function:cubic-bezier(0.5, 0, 0.701732, 0.495819);transform:translateX(calc(4% - -32px)) translateY(-34.75px) scale(0.75)}66%{animation-timing-function:cubic-bezier(0.302435, 0.381352, 0.55, 0.956352);transform:translateX(calc(-4% - -32px)) translateY(-34.75px) scale(0.75)}100%{transform:translateX(calc(0 - -32px)) translateY(-34.75px) scale(0.75)}}.mdc-select--outlined.mdc-select--with-leading-icon .mdc-select__anchor :not(.mdc-notched-outline--notched) .mdc-notched-outline__notch{max-width:calc(100% - 96px)}.mdc-select--outlined .mdc-menu-surface{margin-bottom:8px}.mdc-select--outlined.mdc-select--no-label .mdc-menu-surface,.mdc-select--outlined .mdc-menu-surface--is-open-below{margin-bottom:0}.mdc-select__anchor{--mdc-ripple-fg-size:0;--mdc-ripple-left:0;--mdc-ripple-top:0;--mdc-ripple-fg-scale:1;--mdc-ripple-fg-translate-end:0;--mdc-ripple-fg-translate-start:0;-webkit-tap-highlight-color:rgba(0, 0, 0, 0);will-change:transform, opacity}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{position:absolute;border-radius:50%;opacity:0;pointer-events:none;content:""}.mdc-select__anchor .mdc-select__ripple::before{transition:opacity 15ms linear, background-color 15ms linear;z-index:1;z-index:var(--mdc-ripple-z-index, 1)}.mdc-select__anchor .mdc-select__ripple::after{z-index:0;z-index:var(--mdc-ripple-z-index, 0)}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::before{transform:scale(var(--mdc-ripple-fg-scale, 1))}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::after{top:0;left:0;transform:scale(0);transform-origin:center center}.mdc-select__anchor.mdc-ripple-upgraded--unbounded .mdc-select__ripple::after{top:var(--mdc-ripple-top, 0);left:var(--mdc-ripple-left, 0)}.mdc-select__anchor.mdc-ripple-upgraded--foreground-activation .mdc-select__ripple::after{animation:mdc-ripple-fg-radius-in 225ms forwards, mdc-ripple-fg-opacity-in 75ms forwards}.mdc-select__anchor.mdc-ripple-upgraded--foreground-deactivation .mdc-select__ripple::after{animation:mdc-ripple-fg-opacity-out 150ms;transform:translate(var(--mdc-ripple-fg-translate-end, 0)) scale(var(--mdc-ripple-fg-scale, 1))}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{top:calc(50% - 100%);left:calc(50% - 100%);width:200%;height:200%}.mdc-select__anchor.mdc-ripple-upgraded .mdc-select__ripple::after{width:var(--mdc-ripple-fg-size, 100%);height:var(--mdc-ripple-fg-size, 100%)}.mdc-select__anchor .mdc-select__ripple::before,.mdc-select__anchor .mdc-select__ripple::after{background-color:rgba(0, 0, 0, 0.87);background-color:var(--mdc-ripple-color, rgba(0, 0, 0, 0.87))}.mdc-select__anchor:hover .mdc-select__ripple::before,.mdc-select__anchor.mdc-ripple-surface--hover .mdc-select__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__anchor.mdc-ripple-upgraded--background-focused .mdc-select__ripple::before,.mdc-select__anchor:not(.mdc-ripple-upgraded):focus .mdc-select__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__anchor .mdc-select__ripple{position:absolute;top:0;left:0;width:100%;height:100%;pointer-events:none}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-deprecated-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:hover .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-deprecated-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-deprecated-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-deprecated-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-deprecated-list-item__ripple::after{transition:opacity 150ms linear}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-deprecated-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected .mdc-list-item__ripple::after{background-color:#000;background-color:var(--mdc-ripple-color, var(--mdc-theme-on-surface, #000))}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:hover .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-surface--hover .mdc-list-item__ripple::before{opacity:0.04;opacity:var(--mdc-ripple-hover-opacity, 0.04)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded--background-focused .mdc-list-item__ripple::before,.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):focus .mdc-list-item__ripple::before{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-focus-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded) .mdc-list-item__ripple::after{transition:opacity 150ms linear}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected:not(.mdc-ripple-upgraded):active .mdc-list-item__ripple::after{transition-duration:75ms;opacity:0.12;opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select__menu .mdc-deprecated-list .mdc-deprecated-list-item--selected.mdc-ripple-upgraded{--mdc-ripple-fg-opacity:var(--mdc-ripple-press-opacity, 0.12)}.mdc-select-helper-text{margin:0;margin-left:16px;margin-right:16px;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-family:Roboto, sans-serif;font-family:var(--mdc-typography-caption-font-family, var(--mdc-typography-font-family, Roboto, sans-serif));font-size:0.6875rem;font-size:var(--mdc-typography-caption-font-size, 0.6875rem);line-height:0.875rem;line-height:var(--mdc-typography-caption-line-height, 0.875rem);font-weight:400;font-weight:var(--mdc-typography-caption-font-weight, 400);letter-spacing:0.0333333333em;letter-spacing:var(--mdc-typography-caption-letter-spacing, 0.0333333333em);text-decoration:inherit;text-decoration:var(--mdc-typography-caption-text-decoration, inherit);text-transform:inherit;text-transform:var(--mdc-typography-caption-text-transform, inherit);display:block;margin-top:0;line-height:normal}[dir=rtl] .mdc-select-helper-text,.mdc-select-helper-text[dir=rtl]{margin-left:16px;margin-right:16px;}.mdc-select-helper-text::before{display:inline-block;width:0;height:16px;content:"";vertical-align:0}.mdc-select-helper-text--validation-msg{opacity:0;transition:opacity 180ms cubic-bezier(0.4, 0, 0.2, 1)}.mdc-select--invalid+.mdc-select-helper-text--validation-msg,.mdc-select-helper-text--validation-msg-persistent{opacity:1}.mdc-select--with-leading-icon .mdc-select__icon{display:inline-block;box-sizing:border-box;border:none;text-decoration:none;cursor:pointer;user-select:none;flex-shrink:0;align-self:center;background-color:transparent;fill:currentColor}.mdc-select--with-leading-icon .mdc-select__icon{margin-left:12px;margin-right:12px}[dir=rtl] .mdc-select--with-leading-icon .mdc-select__icon,.mdc-select--with-leading-icon .mdc-select__icon[dir=rtl]{margin-left:12px;margin-right:12px;}.mdc-select__icon:not([tabindex]),.mdc-select__icon[tabindex="-1"]{cursor:default;pointer-events:none}:host{display:block;position:relative}:host([hidden]){display:none}.mdc-select--outlined .mdc-floating-label{left:1rem}.mdc-select__dropdown-icon-graphic{transition:transform 0.2s ease}.limel-select__selected-option{display:flex;align-items:center;box-sizing:border-box;outline:none;align-self:center;min-width:0}.limel-select__selected-option__icon{margin-right:0.5rem;flex-shrink:0}.limel-select__selected-option__text{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.mdc-select:not(.mdc-select--disabled) .limel-select__selected-option__text{font-family:Roboto, sans-serif;line-height:1.75rem;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:0.875rem;font-weight:400;letter-spacing:0.009375em;color:rgba(var(--contrast-1200), 1)}.limel-select{flex-wrap:wrap;width:100%}.limel-select:not(.limel-select--readonly) .limel-select-trigger{background-color:rgba(var(--contrast-100), 0.8)}.limel-select .limel-select-trigger{height:3.5rem;display:inline-flex;align-items:center;cursor:pointer;border-radius:0.3125rem}.limel-select .limel-select-trigger:focus{outline:none}.limel-select .limel-select-trigger:focus-visible{outline:none;box-shadow:var(--shadow-depth-8-focused)}.limel-select .limel-select-trigger .mdc-floating-label{color:rgba(var(--contrast-1200), 1);width:calc(\n 100% - 1rem\n )}.limel-select .limel-select-trigger .mdc-floating-label.mdc-floating-label--float-above{font-size:0.875rem;transform:translateY(-2.171875rem) scale(0.75)}.limel-select .limel-select-trigger,.limel-select .limel-select__selected-option{width:100%}.limel-select.mdc-select--disabled .limel-select-trigger{cursor:not-allowed;pointer-events:none;opacity:0.4}.limel-select:not(.mdc-select--disabled) .limel-select-trigger{transition:background-color 0.2s ease, box-shadow 0.2s ease, transform 0.1s ease-out;box-shadow:var(--button-shadow-normal)}.limel-select:not(.mdc-select--disabled) .limel-select-trigger:hover{box-shadow:var(--button-shadow-hovered)}.limel-select:not(.mdc-select--disabled) .limel-select-trigger:active{box-shadow:var(--button-shadow-pressed);transform:translate3d(0, 0.08rem, 0)}.limel-select:not(.mdc-select--disabled) .limel-select-trigger.limel-select--focused{background-color:rgba(var(--contrast-100), 0.8)}.limel-select:not(.mdc-select--disabled) .limel-select-trigger.limel-select--focused .mdc-floating-label{color:var(--mdc-theme-primary)}.limel-select:not(.mdc-select--disabled) .limel-select-trigger.limel-select--focused .mdc-select__dropdown-icon{fill:var(--mdc-theme-primary)}.limel-select:not(.mdc-select--disabled) .limel-select-trigger.limel-select--focused .mdc-select__dropdown-icon-graphic{transform:rotate(-180deg)}.limel-select.limel-select--required .mdc-floating-label::after{content:"*"}.limel-select.limel-select--invalid .mdc-floating-label,.limel-select.limel-select--invalid .limel-select__selected-option,.limel-select.limel-select--invalid .invalid-icon,.limel-select.limel-select--invalid+.mdc-select-helper-line .mdc-select-helper-text{color:var(--lime-error-text-color)}.limel-select.limel-select--invalid .mdc-floating-label:not(.mdc-floating-label--float-above){max-width:calc(\n 100% - 4rem\n )}.invalid-icon{flex-shrink:0}select.limel-select__native-control{position:absolute;top:0;left:0;width:100%;height:100%;opacity:0;border:0}:host(.is-narrow) .limel-select .mdc-select__anchor{height:2.25rem;padding-left:0rem}:host(.is-narrow) .mdc-floating-label.mdc-floating-label--float-above{top:1.75rem}:host(.is-narrow) .limel-select__selected-option{padding:0 1rem}:host(.is-narrow) .limel-select__selected-option__icon{margin-left:-0.5rem}.limel-select.mdc-select.limel-select--readonly .limel-select-trigger{cursor:default;opacity:1}.limel-select.mdc-select.limel-select--readonly .mdc-floating-label{color:rgba(var(--contrast-1200), 1)}.limel-select.mdc-select.limel-select--readonly .limel-select__selected-option__text{color:rgba(var(--contrast-1400), 1)}.limel-select.mdc-select.limel-select--readonly .mdc-select__dropdown-icon{display:none}:host(:focus) .mdc-select-helper-text,:host(:focus-visible) .mdc-select-helper-text,:host(:focus-within) .mdc-select-helper-text{opacity:1}.limel-select--focused+.mdc-select-helper-line .mdc-select-helper-text{opacity:1}.mdc-select-helper-line{padding-right:1rem;padding-left:1rem;flex-basis:100%;width:100%}.mdc-select-helper-text{margin-left:0;margin-right:0;font-family:Roboto, sans-serif;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;font-size:0.6875rem;font-weight:400;letter-spacing:0.0333333333em;text-decoration:inherit;text-transform:inherit;display:block;margin-top:0;line-height:normal;margin:0;transition:opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);opacity:0}.mdc-select-helper-text:before{height:0.75rem;display:inline-block;width:0;content:"";vertical-align:0}';export{T as limel_select}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{r as t,c as i,h as s,g as e}from"./p-e9a95b8f.js";import{c as h}from"./p-6c094f3f.js";import{i as a,a as n}from"./p-cc9ebbef.js";import{D as o}from"./p-73df4d83.js";import{M as l}from"./p-1c284626.js";import"./p-eab67c09.js";import"./p-945afca2.js";import"./p-48d4ef20.js";import"./p-cbc43682.js";import"./p-dcc97cc2.js";import"./p-d0a7de87.js";const r={date:"date",time:"time",week:a()?"date":"week",month:"month",quarter:"date",year:"date",datetime:"datetime-local",default:"datetime-local"},d={date:"Y-MM-DD",time:"HH:mm",week:"GGGG-[W]WW",month:"Y-MM","datetime-local":"Y-MM-DD[T]HH:mm"},m=class{constructor(s){t(this,s),this.change=i(this,"change",7),this.disabled=!1,this.readonly=!1,this.invalid=!1,this.required=!1,this.type="datetime",this.language="en",this.showPortal=!1,this.portalId=`date-picker-calendar-${h()}`,this.documentClickListener=t=>{"keydown"===t.type&&"Tab"!==t.key||document.querySelector(`#${this.portalId}`).contains(t.target)||this.hideCalendar()},this.handleCalendarChange=this.handleCalendarChange.bind(this),this.handleInputElementChange=this.handleInputElementChange.bind(this),this.showCalendar=this.showCalendar.bind(this),this.dateFormatter=new o(this.language),this.clearValue=this.clearValue.bind(this),this.hideCalendar=this.hideCalendar.bind(this),this.onInputClick=this.onInputClick.bind(this),this.nativeChangeHandler=this.nativeChangeHandler.bind(this),this.preventBlurFromCalendarContainer=this.preventBlurFromCalendarContainer.bind(this)}componentWillLoad(){this.useNative=!this.readonly&&(a()||n()),this.updateInternalFormatAndType(),this.formattedValue=this.dateFormatter.formatDate(this.value,this.internalFormat)}componentWillUpdate(){this.updateInternalFormatAndType()}render(){const t={onAction:this.clearValue};if(this.value&&!this.readonly&&(t.trailingIcon="clear_symbol"),this.useNative)return s("limel-input-field",{disabled:this.disabled,readonly:this.readonly,invalid:this.invalid,label:this.label,helperText:this.helperText,required:this.required,value:this.formattedValue,type:this.nativeType,onChange:this.nativeChangeHandler});const i=getComputedStyle(this.host).getPropertyValue("--dropdown-z-index");return[s("limel-input-field",Object.assign({disabled:this.disabled,readonly:this.readonly,invalid:this.invalid,label:this.label,placeholder:this.placeholder,helperText:this.helperText,required:this.required,value:this.formattedValue,onFocus:this.showCalendar,onBlur:this.hideCalendar,onClick:this.onInputClick,onChange:this.handleInputElementChange,ref:t=>this.textField=t},t)),s("limel-portal",{containerId:this.portalId,visible:this.showPortal,containerStyle:{"z-index":i}},s("limel-flatpickr-adapter",{format:this.internalFormat,language:this.language,type:this.type,value:this.value,ref:t=>this.datePickerCalendar=t,isOpen:this.showPortal,onChange:this.handleCalendarChange}))]}onValueChange(t,i){t!==i&&t!==this.formattedValue&&(this.formattedValue=this.dateFormatter.formatDate(this.value,this.internalFormat))}updateInternalFormatAndType(){this.nativeType=r[this.type||"default"],this.nativeFormat=d[this.nativeType],this.internalFormat=this.useNative?this.nativeFormat:this.format?this.format:this.dateFormatter.getDateFormat(this.type)}nativeChangeHandler(t){t.stopPropagation();const i=this.dateFormatter.parseDate(t.detail,this.internalFormat);this.formattedValue=t.detail,this.change.emit(i)}showCalendar(t){this.showPortal=!0;const i=this.textField.shadowRoot.querySelector("input");setTimeout((()=>{this.datePickerCalendar.inputElement=i})),t.stopPropagation(),document.addEventListener("mousedown",this.documentClickListener,{passive:!0}),document.addEventListener("keydown",this.documentClickListener,{passive:!0}),document.addEventListener("blur",this.preventBlurFromCalendarContainer,{capture:!0})}preventBlurFromCalendarContainer(t){t.relatedTarget===this.datePickerCalendar&&t.stopPropagation()}hideCalendar(){setTimeout((()=>{this.showPortal=!1})),document.removeEventListener("mousedown",this.documentClickListener),document.removeEventListener("keydown",this.documentClickListener),document.removeEventListener("blur",this.preventBlurFromCalendarContainer),this.pickerIsAutoClosing()||this.fixFlatpickrFocusBug()}fixFlatpickrFocusBug(){new l(this.textField.shadowRoot.querySelector(".mdc-text-field")).getDefaultFoundation().deactivateFocus()}handleCalendarChange(t){const i=t.detail;this.formattedValue=this.dateFormatter.formatDate(i,this.internalFormat),t.stopPropagation(),this.pickerIsAutoClosing()&&this.hideCalendar(),this.change.emit(i)}onInputClick(t){this.disabled||this.readonly||this.showPortal||this.showCalendar(t)}handleInputElementChange(t){""===t.detail&&this.clearValue(),t.stopPropagation()}pickerIsAutoClosing(){return"datetime"!==this.type&&"time"!==this.type}clearValue(){this.formattedValue="",this.change.emit(null)}get host(){return e(this)}static get watchers(){return{value:["onValueChange"]}}};m.style=":host(limel-date-picker){position:relative}limel-input-field[disabled],limel-input-field[readonly]{pointer-events:none}";export{m as limel_date_picker}
|