PageSourceSearch

https://www.fma-li.li/static/default/844.84cb1428.js

js fma-li.li collected 2026-10-02 04:12:49 UTC 34,037 bytes, 1 lines download raw bytes

vendor: 5,704 bytes, line 1
1"use strict";(self.webpackChunk=self.webpackChunk||[]).push([[844],{4014:(e,t,i)=>{function n(e,t){var i;return function(){var n=this,s=arguments;clearTimeout(i),i=setTimeout((function(){i=null,e.apply(n,s)}),t)}}i.d(t,{D:()=>n})},2736:(e,t,i)=>{i.d(t,{Z:()=>n});const n={de:{days:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"],daysShort:["So","Mo","Di","Mi","Do","Fr","Sa"],daysMin:["So","Mo","Di","Mi","Do","Fr","Sa"],months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],monthsShort:["Jan","Feb","Mär","Apr","Mai","Jun","Jul","Aug","Sep","Okt","Nov","Dez"],today:"Heute",monthsTitle:"Monate",clear:"Löschen",weekStart:1,format:"dd.mm.yyyy"}}},5724:(e,t,i)=>{function n(e){return e[e.length-1]}function s(e,...t){return t.forEach((t=>{e.includes(t)||e.push(t)})),e}function a(e,t){return e?e.split(t):[]}function r(e,t,i){return(void 0===t||e>=t)&&(void 0===i||e<=i)}function o(e,t,i){return e<t?t:e>i?i:e}function d(e,t,i={},n=0,s=""){s+=`<${Object.keys(i).reduce(((e,t)=>{let s=i[t];return"function"==typeof s&&(s=s(n)),`${e} ${t}="${s}"`}),e)}></${e}>`;const a=n+1;return a<t?d(e,t,i,a,s):s}function c(e){return e.replace(/>\s+/g,">").replace(/\s+</,"<")}function l(e){return new Date(e).setHours(0,0,0,0)}function h(){return(new Date).setHours(0,0,0,0)}function u(...e){switch(e.length){case 0:return h();case 1:return l(e[0])}const t=new Date(0);return t.setFullYear(...e),t.setHours(0,0,0,0)}function f(e,t){const i=new Date(e);return i.setDate(i.getDate()+t)}function p(e,t){const i=new Date(e),n=i.getMonth()+t;let s=n%12;s<0&&(s+=12);const a=i.setMonth(n);return i.getMonth()!==s?i.setDate(0):a}function m(e,t){const i=new Date(e),n=i.getMonth(),s=i.setFullYear(i.getFullYear()+t);return 1===n&&2===i.getMonth()?i.setDate(0):s}function w(e,t){return(e-t+7)%7}function g(e,t,i=0){const n=new Date(e).getDay();return f(e,w(t,i)-w(n,i))}function y(e,t){return Math.round((e-t)/6048e5)+1}function D(e){const t=g(e,4,1);return y(t,g(new Date(t).setMonth(0,4),4,1))}function k(e,t){const i=g(new Date(e).setMonth(0,1),t,t),n=g(e,t,t),s=y(n,i);if(s<53)return s;return n===g(new Date(e).setDate(32),t,t)?1:s}function b(e){return k(e,0)}function v(e){return k(e,6)}function M(e,t){const i=new Date(e).getFullYear();return Math.floor(i/t)*t}function x(e,t,i){if(1!==t&&2!==t)return e;const n=new Date(e);return 1===t?i?n.setMonth(n.getMonth()+1,0):n.setDate(1):i?n.setFullYear(n.getFullYear()+1,0,0):n.setMonth(0,1),n.setHours(0,0,0,0)}i.d(t,{a:()=>qe});const S=/dd?|DD?|mm?|MM?|yy?(?:yy)?/,N=/[\s!-/:-@[-`{-~年月日]+/;let O={};const C={y:(e,t)=>new Date(e).setFullYear(parseInt(t,10)),m(e,t,i){const n=new Date(e);let s=parseInt(t,10)-1;if(isNaN(s)){if(!t)return NaN;const e=t.toLowerCase(),n=t=>t.toLowerCase().startsWith(e);if(s=i.monthsShort.findIndex(n),s<0&&(s=i.months.findIndex(n)),s<0)return NaN}return n.setMonth(s),n.getMonth()!==V(s)?n.setDate(0):n.getTime()},d:(e,t)=>new Date(e).setDate(parseInt(t,10))},F={d:e=>e.getDate(),dd:e=>B(e.getDate(),2),D:(e,t)=>t.daysShort[e.getDay()],DD:(e,t)=>t.days[e.getDay()],m:e=>e.getMonth()+1,mm:e=>B(e.getMonth()+1,2),M:(e,t)=>t.monthsShort[e.getMonth()],MM:(e,t)=>t.months[e.getMonth()],y:e=>e.getFullYear(),yy:e=>B(e.getFullYear(),2).slice(-2),yyyy:e=>B(e.getFullYear(),4)};function V(e){return e>-1?e%12:V(e+12)}function B(e,t){return e.toString().padStart(t,"0")}function E(e){if("string"!=typeof e)throw new Error("Invalid date format.");if(e in O)return O[e];const t=e.split(S),i=e.match(new RegExp(S,"g"));if(0===t.length||!i)throw new Error("Invalid date format.");const s=i.map((e=>F[e])),a=Object.keys(C).reduce(((e,t)=>(i.find((e=>"D"!==e[0]&&e[0].toLowerCase()===t))&&e.push(t),e)),[]);return O[e]={parser(e,t){const n=e.split(N).reduce(((e,t,n)=>{if(t.length>0&&i[n]){const s=i[n][0];"M"===s?e.m=t:"D"!==s&&(e[s]=t)}return e}),{});return a.reduce(((e,i)=>{const s=C[i](e,n[i],t);return isNaN(s)?e:s}),h())},formatter:(e,i)=>s.reduce(((n,s,a)=>n+`${t[a]}${s(e,i)}`),"")+n(t)}}function A(e,t,i){if(e instanceof Date||"number"==typeof e){const t=l(e);return isNaN(t)?void 0:t}if(e){if("today"===e)return h();if(t&&t.toValue){const n=t.toValue(e,t,i);return isNaN(n)?void 0:l(n)}return E(t).parser(e,i)}}function L(e,t,i){if(isNaN(e)||!e&&0!==e)return"";const n="number"==typeof e?new Date(e):e;return t.toDisplay?t.toDisplay(n,t,i):E(t).formatter(n,i)}const Y=document.createRange();function W(e){return Y.createContextualFragment(e)}function K(e){return e.parentElement||(e.parentNode instanceof ShadowRoot?e.parentNode.host:void 0)}function T(e){return e.getRootNode().activeElement===e}function _(e){"none"!==e.style.display&&(e.style.display&&(e.dataset.styleDisplay=e.style.display),e.style.display="none")}function H(e){"none"===e.style.display&&(e.dataset.styleDisplay?(e.style.display=e.dataset.styleDisplay,delete e.dataset.styleDisplay):e.style.display="")}function j(e){e.firstChild&&(e.removeChild(e.firstChild),j(e))}const R=new WeakMap,{addEventListener:$,removeEventListener:I}=EventTarget.prototype;function J(e,t){let i=R.get(e);i||(i=[],R.set(e,i)),t.forEach((e=>{$.call(...e),i.push(e)}))}if(!Event.prototype.composedPath){const e=(t,i=[])=>{let n;return i.push(t),t.parentNode?n=t.parentNode:t.host?n=t.host:t.defaultView&&(n=t.defaultView),n?e(n,i):i};Event.prototype.composedPath=function(){return e(this.target)}}function P(e,t,i){const[n,...s]=e;return t(n)?n:n!==i&&"HTML"!==n.tagName&&0!==s.length?P(s,t,i):void 0}function z(e,t){const i="function"==typeof t?t:e=>e instanceof Element&&e.matches(t);return P(e.composedPath(),i,e.currentTarget)}const U={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Frid
1ay","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM y"}},q={autohide:!1,beforeShowDay:null,beforeShowDecade:null,beforeShowMonth:null,beforeShowYear:null,clearButton:!1,dateDelimiter:",",datesDisabled:[],daysOfWeekDisabled:[],daysOfWeekHighlighted:[],defaultViewDate:void 0,disableTouchKeyboard:!1,enableOnReadonly:!0,format:"mm/dd/yyyy",language:"en",maxDate:null,maxNumberOfDates:1,maxView:3,minDate:null,nextArrow:"»",orientation:"auto",pickLevel:0,prevArrow:"«",showDaysOfWeek:!0,showOnClick:!0,showOnFocus:!0,startView:0,title:"",todayButton:!1,todayButtonMode:0,todayHighlight:!1,updateOnBlur:!0,weekNumbers:0,weekStart:0},{language:X,format:Z,weekStart:G}=q;function Q(e,t){return e.length<6&&t>=0&&t<7?s(e,t):e}function ee(e,t){switch(4===e?6===t?3:!t+1:e){case 1:return D;case 2:return b;case 3:return v}}function te(e,t,i){return t.weekStart=e,t.weekEnd=(e+6)%7,4===i&&(t.getWeekNumber=ee(4,e)),e}function ie(e,t,i,n){const s=A(e,t,i);return void 0!==s?s:n}function ne(e,t,i=3){const n=parseInt(e,10);return n>=0&&n<=i?n:t}function se(e,t,i,n=void 0){t in e&&(i in e||(e[i]=n?n(e[t]):e[t]),delete e[t])}function ae(e,t){const i=Object.assign({},e),n={},a=t.constructor.locales,r=!!t.rangeSideIndex;let{datesDisabled:o,format:d,language:c,locale:l,maxDate:h,maxView:f,minDate:p,pickLevel:m,startView:w,weekNumbers:g,weekStart:y}=t.config||{};if(se(i,"calendarWeeks","weekNumbers",(e=>e?1:0)),se(i,"clearBtn","clearButton"),se(i,"todayBtn","todayButton"),se(i,"todayBtnMode","todayButtonMode"),i.language){let e;if(i.language!==c&&(a[i.language]?e=i.language:(e=i.language.split("-")[0],a[e]||(e=!1))),delete i.language,e){c=n.language=e;const t=l||a[X];l=Object.assign({format:Z,weekStart:G},a[X]),c!==X&&Object.assign(l,a[c]),n.locale=l,d===t.format&&(d=n.format=l.format),y===t.weekStart&&(y=te(l.weekStart,n,g))}}if(i.format){const e="function"==typeof i.format.toDisplay,t="function"==typeof i.format.toValue,s=S.test(i.format);(e&&t||s)&&(d=n.format=i.format),delete i.format}let D=m;"pickLevel"in i&&(D=ne(i.pickLevel,m,2),delete i.pickLevel),D!==m&&(D>m&&("minDate"in i||(i.minDate=p),"maxDate"in i||(i.maxDate=h)),o&&!i.datesDisabled&&(i.datesDisabled=[]),m=n.pickLevel=D);let k=p,b=h;if("minDate"in i){const e=u(0,0,1);k=null===i.minDate?e:ie(i.minDate,d,l,k),k!==e&&(k=x(k,m,!1)),delete i.minDate}if("maxDate"in i&&(b=null===i.maxDate?void 0:ie(i.maxDate,d,l,b),void 0!==b&&(b=x(b,m,!0)),delete i.maxDate),b<k?(p=n.minDate=b,h=n.maxDate=k):(p!==k&&(p=n.minDate=k),h!==b&&(h=n.maxDate=b)),i.datesDisabled){const e=i.datesDisabled;if("function"==typeof e)n.datesDisabled=null,n.checkDisabled=(t,i)=>e(new Date(t),i,r);else{const t=n.datesDisabled=e.reduce(((e,t)=>{const i=A(t,d,l);return void 0!==i?s(e,x(i,m,r)):e}),[]);n.checkDisabled=e=>t.includes(e)}delete i.datesDisabled}if("defaultViewDate"in i){const e=A(i.defaultViewDate,d,l);void 0!==e&&(n.defaultViewDate=e),delete i.defaultViewDate}if("weekStart"in i){const e=Number(i.weekStart)%7;isNaN(e)||(y=te(e,n,g)),delete i.weekStart}if(i.daysOfWeekDisabled&&(n.daysOfWeekDisabled=i.daysOfWeekDisabled.reduce(Q,[]),delete i.daysOfWeekDisabled),i.daysOfWeekHighlighted&&(n.daysOfWeekHighlighted=i.daysOfWeekHighlighted.reduce(Q,[]),delete i.daysOfWeekHighlighted),"weekNumbers"in i){let e=i.weekNumbers;if(e){const t="function"==typeof e?(t,i)=>e(new Date(t),i):ee(e=parseInt(e,10),y);t&&(g=n.weekNumbers=e,n.getWeekNumber=t)}else g=n.weekNumbers=0,n.getWeekNumber=null;delete i.weekNumbers}if("maxNumberOfDates"in i){const e=parseInt(i.maxNumberOfDates,10);e>=0&&(n.maxNumberOfDates=e,n.multidate=1!==e),delete i.maxNumberOfDates}i.dateDelimiter&&(n.dateDelimiter=String(i.dateDelimiter),delete i.dateDelimiter);let v=f;"maxView"in i&&(v=ne(i.maxView,f),delete i.maxView),v=m>v?m:v,v!==f&&(f=n.maxView=v);let M=w;if("startView"in i&&(M=ne(i.startView,M),delete i.startView),M<m?M=m:M>f&&(M=f),M!==w&&(n.startView=M),i.prevArrow){const e=W(i.prevArrow);e.childNodes.length>0&&(n.prevArrow=e.childNodes),delete i.prevArrow}if(i.nextArrow){const e=W(i.nextArrow);e.childNodes.length>0&&(n.nextArrow=e.childNodes),delete i.nextArrow}if("disableTouchKeyboard"in i&&(n.disableTouchKeyboard="ontouchstart"in document&&!!i.disableTouchKeyboard,delete i.disableTouchKeyboard),i.orientation){const e=i.orientation.toLowerCase().split(/\s+/g);n.orientation={x:e.find((e=>
vendor: 19,406 bytes, line 1
1"left"===e||"right"===e))||"auto",y:e.find((e=>"top"===e||"bottom"===e))||"auto"},delete i.orientation}if("todayButtonMode"in i){switch(i.todayButtonMode){case 0:case 1:n.todayButtonMode=i.todayButtonMode}delete i.todayButtonMode}return Object.entries(i).forEach((([e,t])=>{void 0!==t&&e in q&&(n[e]=t)})),n}const re={show:{key:"ArrowDown"},hide:null,toggle:{key:"Escape"},prevButton:{key:"ArrowLeft",ctrlOrMetaKey:!0},nextButton:{key:"ArrowRight",ctrlOrMetaKey:!0},viewSwitch:{key:"ArrowUp",ctrlOrMetaKey:!0},clearButton:{key:"Backspace",ctrlOrMetaKey:!0},todayButton:{key:".",ctrlOrMetaKey:!0},exitEditMode:{key:"ArrowDown",ctrlOrMetaKey:!0}};const oe=e=>e.map((e=>`<button type="button" class="%buttonClass% ${e}" tabindex="-1"></button>`)).join(""),de=c(`<div class="datepicker">\n  <div class="datepicker-picker">\n    <div class="datepicker-header">\n      <div class="datepicker-title"></div>\n      <div class="datepicker-controls">\n        ${oe(["prev-button prev-btn","view-switch","next-button next-btn"])}\n      </div>\n    </div>\n    <div class="datepicker-main"></div>\n    <div class="datepicker-footer">\n      <div class="datepicker-controls">\n        ${oe(["today-button today-btn","clear-button clear-btn"])}\n      </div>\n    </div>\n  </div>\n</div>`),ce=c(`<div class="days">\n  <div class="days-of-week">${d("span",7,{class:"dow"})}</div>\n  <div class="datepicker-grid">${d("span",42)}</div>\n</div>`),le=c(`<div class="week-numbers calendar-weeks">\n  <div class="days-of-week"><span class="dow"></span></div>\n  <div class="weeks">${d("span",6,{class:"week"})}</div>\n</div>`);class he{constructor(e,t){Object.assign(this,t,{picker:e,element:W('<div class="datepicker-view"></div>').firstChild,selected:[],isRangeEnd:!!e.datepicker.rangeSideIndex}),this.init(this.picker.datepicker.config)}init(e){"pickLevel"in e&&(this.isMinView=this.id===e.pickLevel),this.setOptions(e),this.updateFocus(),this.updateSelection()}prepareForRender(e,t,i){this.disabled=[];const n=this.picker;n.setViewSwitchLabel(e),n.setPrevButtonDisabled(t),n.setNextButtonDisabled(i)}setDisabled(e,t){t.add("disabled"),s(this.disabled,e)}performBeforeHook(e,t){let i=this.beforeShow(new Date(t));switch(typeof i){case"boolean":i={enabled:i};break;case"string":i={classes:i}}if(i){const n=e.classList;if(!1===i.enabled&&this.setDisabled(t,n),i.classes){const e=i.classes.split(/\s+/);n.add(...e),e.includes("disabled")&&this.setDisabled(t,n)}i.content&&function(e,t){j(e),t instanceof DocumentFragment?e.appendChild(t):"string"==typeof t?e.appendChild(W(t)):"function"==typeof t.forEach&&t.forEach((t=>{e.appendChild(t)}))}(e,i.content)}}renderCell(e,t,i,n,{selected:s,range:a},r,o=[]){e.textContent=t,this.isMinView&&(e.dataset.date=n);const d=e.classList;if(e.className=`datepicker-cell ${this.cellClass}`,i<this.first?d.add("prev"):i>this.last&&d.add("next"),d.add(...o),(r||this.checkDisabled(n,this.id))&&this.setDisabled(n,d),a){const[e,t]=a;i>e&&i<t&&d.add("range"),i===e&&d.add("range-start"),i===t&&d.add("range-end")}s.includes(i)&&d.add("selected"),i===this.focused&&d.add("focused"),this.beforeShow&&this.performBeforeHook(e,n)}refreshCell(e,t,i,[n,s]){const a=e.classList;a.remove("range","range-start","range-end","selected","focused"),t>n&&t<s&&a.add("range"),t===n&&a.add("range-start"),t===s&&a.add("range-end"),i.includes(t)&&a.add("selected"),t===this.focused&&a.add("focused")}changeFocusedCell(e){this.grid.querySelectorAll(".focused").forEach((e=>{e.classList.remove("focused")})),this.grid.children[e].classList.add("focused")}}class ue extends he{constructor(e){super(e,{id:0,name:"days",cellClass:"day"})}init(e,t=!0){if(t){const e=W(ce).firstChild;this.dow=e.firstChild,this.grid=e.lastChild,this.element.appendChild(e)}super.init(e)}setOptions(e){let t;if("minDate"in e&&(this.minDate=e.minDate),"maxDate"in e&&(this.maxDate=e.maxDate),e.checkDisabled&&(this.checkDisabled=e.checkDisabled),e.daysOfWeekDisabled&&(this.daysOfWeekDisabled=e.daysOfWeekDisabled,t=!0),e.daysOfWeekHighlighted&&(this.daysOfWeekHighlighted=e.daysOfWeekHighlighted),"todayHighlight"in e&&(this.todayHighlight=e.todayHighlight),"weekStart"in e&&(this.weekStart=e.weekStart,this.weekEnd=e.weekEnd,t=!0),e.locale){const i=this.locale=e.locale;this.dayNames=i.daysMin,this.switchLabelFormat=i.titleFormat,t=!0}if("beforeShowDay"in e&&(this.beforeShow="function"==typeof e.beforeShowDay?e.beforeShowDay:void 0),"weekNumbers"in e)if(e.weekNumbers&&!this.weekNumbers){const e=W(le).firstChild;this.weekNumbers={element:e,dow:e.firstChild,weeks:e.lastChild},this.element.insertBefore(e,this.element.firstChild)}else this.weekNumbers&&!e.weekNumbers&&(this.element.removeChild(this.weekNumbers.element),this.weekNumbers=null);"getWeekNumber"in e&&(this.getWeekNumber=e.getWeekNumber),"showDaysOfWeek"in e&&(e.showDaysOfWeek?(H(this.dow),this.weekNumbers&&H(this.weekNumbers.dow)):(_(this.dow),this.weekNumbers&&_(this.weekNumbers.dow))),t&&Array.from(this.dow.children).forEach(((e,t)=>{const i=(this.weekStart+t)%7;e.textContent=this.dayNames[i],e.className=this.daysOfWeekDisabled.includes(i)?"dow disabled":"dow"}))}updateFocus(){const e=new Date(this.picker.viewDate),t=e.getFullYear(),i=e.getMonth(),n=u(t,i,1),s=g(n,this.weekStart,this.weekStart);this.first=n,this.last=u(t,i+1,0),this.start=s,this.focused=this.picker.viewDate}updateSelection(){const{dates:e,rangepicker:t}=this.picker.datepicker;this.selected=e,t&&(this.range=t.dates)}render(){if(this.today=this.todayHighlight?h():void 0,this.prepareForRender(L(this.focused,this.switchLabelFormat,this.locale),this.first<=this.minDate,this.last>=this.maxDate),this.weekNumbers){const e=this.weekStart,t=g(this.first,e,e);Array.from(this.weekNumbers.weeks.children).forEach(((i,n)=>{const s=f(t,7*n);i.textContent=this.getWeekNumber(s,e),n>3&&i.classList[s>this.last?"add":"remove"]("next")}))}Array.from(this.grid.children).forEach(((e,t)=>{const i=f(this.start,t),n=new Date(i),s=n.getDay(),a=[];this.today===i&&a.push("today"),this.daysOfWeekHighlighted.includes(s)&&a.push("highlighted"),this.renderCell(e,n.getDate(),i,i,this,i<this.minDate||i>this.maxDate||this.daysOfWeekDisabled.includes(s),a)}))}refresh(){const e=this.range||[];Array.from(this.grid.children).forEach((t=>{this.refreshCell(t,Number(t.dataset.date),this.selected,e)}))}refreshFocus(){this.changeFocusedCell(Math.round((this.focused-this.start)/864e5))}}function fe(e,t){if(!e||!e[0]||!e[1])return;const[[i,n],[s,a]]=e;return i>t||s<t?void 0:[i===t?n:-1,s===t?a:12]}class pe extends he{constructor(e){super(e,{id:1,name:"months",cellClass:"month"})}init(e,t=!0){t&&(this.grid=this.element,this.element.classList.add("months","datepicker-grid"),this.grid.appendChild(W(d("span",12,{"data-month":e=>e}))),this.first=0,this.last=11),super.init(e)}setOptions(e){if(e.locale&&(this.monthNames=e.locale.monthsShort),"minDate"in e)if(void 0===e.minDate)this.minYear=this.minMonth=this.minDate=void 0;else{const t=new Date(e.minDate);this.minYear=t.getFullYear(),this.minMonth=t.getMonth(),this.minDate=t.setDate(1)}if("maxDate"in e)if(void 0===e.maxDate)this.maxYear=this.maxMonth=this.maxDate=void 0;else{const t=new Date(e.maxDate);this.maxYear=t.getFullYear(),this.maxMonth=t.getMonth(),this.maxDate=u(this.maxYear,this.maxMonth+1,0)}e.checkDisabled&&(this.checkDisabled=this.isMinView||null===e.datesDisabled?e.checkDisabled:()=>!1),"beforeShowMonth"in e&&(this.beforeShow="function"==typeof e.beforeShowMonth?e.beforeShowMonth:void 0)}updateFocus(){const e=new Date(this.picker.viewDate);this.year=e.getFullYear(),this.focused=e.getMonth()}updateSelection(){const{dates:e,rangepicker:t}=this.picker.datepicker;this.selected=e.reduce(((e,t)=>{const i=new Date(t),n=i.getFullYear(),a=i.getMonth();return void 0===e[n]?e[n]=[a]:s(e[n],a),e}),{}),t&&t.dates&&(this.range=t.dates.map((e=>{const t=new Date(e);return isNaN(t)?void 0:[t.getFullYear(),t.getMonth()]})))}render(){this.prepareForRender(this.year,this.year<=this.minYear,this.year>=this.maxYear);const e=this.selected[this.year]||[],t=this.year<this.minYear||this.year>this.maxYear,i=this.year===this.minYear,n=this.year===this.maxYear,s=fe(this.range,this.year);Array.from(this.grid.children).forEach(((a,r)=>{const o=x(new Date(this.year,r,1),1,this.isRangeEnd);this.renderCell(a,this.monthNames[r],r,o,{selected:e,range:s},t||i&&r<this.minMonth||n&&r>this.maxMonth)}))}refresh(){const e=this.selected[this.year]||[],t=fe(this.range,this.year)||[];Array.from(this.grid.children).forEach(((i,n)=>{this.refreshCell(i,n,e,t)}))}refreshFocus(){this.changeFocusedCell(this.focused)}}class me extends he{constructor(e,t){super(e,t)}init(e,t=!0){var i;t&&(this.navStep=10*this.step,this.beforeShowOption=`beforeShow${i=this.cellClass,[...i].reduce(((e,t,i)=>e+(i?t:t.toUpperCase())),"")}`,this.grid=this.element,this.element.classList.add(this.name,"datepicker-grid"),this.grid.appendChild(W(d("span",12)))),super.init(e)}setOptions(e){if("minDate"in e&&(void 0===e.minDate?this.minYear=this.minDate=void 0:(this.minYear=M(e.minDate,this.step),this.minDate=u(this.minYear,0,1))),"maxDate"in e&&(void 0===e.maxDate?this.maxYear=this.maxDate=void 0:(this.maxYear=M(e.maxDate,this.step),this.maxDate=u(this.maxYear,11,31))),e.checkDisabled&&(this.checkDisabled=this.isMinView||null===e.datesDisabled?e.checkDisabled:()=>!1),this.beforeShowOption in e){const t=e[this.beforeShowOption];this.beforeShow="function"==typeof t?t:void 0}}updateFocus(){const e=new Date(this.picker.viewDate),t=M(e,this.navStep),i=t+9*this.step;this.first=t,this.last=i,this.start=t-this.step,this.focused=M(e,this.step)}updateSelection(){const{dates:e,rangepicker:t}=this.picker.datepicker;this.selected=e.reduce(((e,t)=>s(e,M(t,this.step))),[]),t&&t.dates&&(this.range=t.dates.map((e=>{if(void 0!==e)return M(e,this.step)})))}render(){this.prepareForRender(`${this.first}-${this.last}`,this.first<=this.minYear,this.last>=this.maxYear),Array.from(this.grid.children).forEach(((e,t)=>{const i=this.start+t*this.step,n=x(new Date(i,0,1),2,this.isRangeEnd);e.dataset.year=i,this.renderCell(e,i,i,n,this,i<this.minYear||i>this.maxYear)}))}refresh(){const e=this.range||[];Array.from(this.grid.children).forEach((t=>{this.refreshCell(t,Number(t.textContent),this.selected,e)}))}refreshFocus(){this.changeFocusedCell(Math.round((this.focused-this.start)/this.step))}}function we(e,t){const i={bubbles:!0,cancelable:!0,detail:{date:e.getDate(),viewDate:new Date(e.picker.viewDate),viewId:e.picker.currentView.id,datepicker:e}};e.element.dispatchEvent(new CustomEvent(t,i))}function ge(e,t){const{config:i,picker:n}=e,{currentView:s,viewDate:a}=n;let r;switch(s.id){case 0:r=p(a,t);break;case 1:r=m(a,t);break;default:r=m(a,t*s.navStep)}r=o(r,i.minDate,i.maxDate),n.changeFocus(r).render()}function ye(e){const t=e.picker.currentView.id;t!==e.config.maxView&&e.picker.changeView(t+1).render()}function De(e){e.setDate({clear:!0})}function ke(e){const t=h();1===e.config.todayButtonMode?e.setDate(t,{forceRefresh:!0,viewDate:t}):e.setFocusedDate(t,!0)}function be(e){const t=()=>{e.config.updateOnBlur?e.update({revert:!0}):e.refresh("input"),e.hide()},i=e.element;T(i)?i.addEventListener("blur",t,{once:!0}):t()}function ve(e,t){const i=e.picker,n=new Date(i.viewDate),s=i.currentView.id,a=1===s?p(n,t-n.getMonth()):m(n,t-n.getFullYear());i.changeFocus(a).changeView(s-1).render()}function Me(e){ye(e)}function xe(e){ge(e,-1)}function Se(e){ge(e,1)}function Ne(e,t){const i=z(t,".datepicker-cell");if(!i||i.classList.contains("disabled"))return;const{id:n,isMinView:s}=e.picker.currentView,a=i.dataset;s?e.setDate(Number(a.date)):ve(e,Number(1===n?a.month:a.year))}function Oe(e){e.preventDefault()}const Ce=["left","top","right","bottom"].reduce(((e,t)=>(e[t]=`datepicker-orient-${t}`,e)),{}),Fe=e=>e?`${e}px`:e;function Ve(e,t){if("title"in t&&(t.title?(e.controls.title.textContent=t.title,H(e.controls.title)):(e.controls.title.textContent="",_(e.controls.title))),t.prevArrow){const i=e.controls.prevButton;j(i),t.prevArrow.forEach((e=>{i.appendChild(e.cloneNode(!0))}))}if(t.nextArrow){const i=e.controls.nextButton;j(i),t.nextArrow.forEach((e=>{i.appendChild(e.cloneNode(!0))}))}if(t.locale&&(e.controls.todayButton.textContent=t.locale.today,e.controls.clearButton.textContent=t.locale.clear),"todayButton"in t&&(t.todayButton?H(e.controls.todayButton):_(e.controls.todayButton)),"minDate"in t||"maxDate"in t){const{minDate:t,maxDate:i}=e.datepicker.config;e.controls.todayButton.disabled=!r(h(),t,i)}"clearButton"in t&&(t.clearButton?H(e.controls.clearButton):_(e.controls.clearButton))}function Be(e){const{dates:t,config:i,rangeSideIndex:s}=e;return o(t.length>0?n(t):x(i.defaultViewDate,i.pickLevel,s),i.minDate,i.maxDate)}function Ee(e,t){"_oldViewDate"in e||t===e.viewDate||(e._oldViewDate=e.viewDate),e.viewDate=t;const{id:i,year:n,first:s,last:a}=e.currentView,r=new Date(t).getFullYear();switch(i){case 0:return t<s||t>a;case 1:return r!==n;default:return r<s||r>a}}function Ae(e){return window.getComputedStyle(e).direction}function Le(e){const t=K(e);if(t!==document.body&&t)return"visible"!==window.getComputedStyle(t).overflow?t:Le(t)}class Ye{constructor(e){const{config:t,inputField:i}=this.datepicker=e,n=de.replace(/%buttonClass%/g,t.buttonClass),s=this.element=W(n).firstChild,[a,r,o]=s.firstChild.children,d=a.firstElementChild,[c,l,h]=a.lastElementChild.children,[u,f]=o.firstChild.children,p={title:d,prevButton:c,viewSwitch:l,nextButton:h,todayButton:u,clearButton:f};this.main=r,this.controls=p;const m=i?"dropdown":"inline";s.classList.add(`datepicker-${m}`),Ve(this,t),this.viewDate=Be(e),J(e,[[s,"mousedown",Oe],[r,"click",Ne.bind(null,e)],[p.viewSwitch,"click",Me.bind(null,e)],[p.prevButton,"click",xe.bind(null,e)],[p.nextButton,"click",Se.bind(null,e)],[p.todayButton,"click",ke.bind(null,e)],[p.clearButton,"click",De.bind(null,e)]]),this.views=[new ue(this),new pe(this),new me(this,{id:2,name:"years",cellClass:"year",step:1}),new me(this,{id:3,name:"decades",cellClass:"decade",step:10})],this.currentView=this.views[t.startView],this.currentView.render(),this.main.appendChild(this.currentView.element),t.container?t.container.appendChild(this.element):i.after(this.element)}setOptions(e){Ve(this,e),this.views.forEach((t=>{t.init(e,!1)})),this.currentView.render()}detach(){this.element.remove()}show(){if(this.active)return;const{datepicker:e,element:t}=this,i=e.inputField;if(i){const n=Ae(i);n!==Ae(K(t))?t.dir=n:t.dir&&t.removeAttribute("dir"),this.place(),t.classList.add("active"),e.config.disableTouchKeyboard&&i.blur()}else t.classList.add("active");this.active=!0,we(e,"show")}hide(){this.active&&(this.datepicker.exitEditMode(),this.element.classList.remove("active"),this.active=!1,we(this.datepicker,"hide"))}place(){const{classList:e,style:t}=this.element;t.display="block";const{width:i,height:n}=this.element.getBoundingClientRect(),s=this.element.offsetParent;t.display="";const{config:a,inputField:r}=this.datepicker,{left:o,top:d,right:c,bottom:l,width:h,height:u}=r.getBoundingClientRect();let{x:f,y:p}=a.orientation,m=o,w=d;if(s!==document.body&&s){const e=s.getBoundingClientRect();m-=e.left-s.scrollLeft,w-=e.top-s.scrollTop}else m+=window.scrollX,w+=window.scrollY;const g=Le(r);let y=0,D=0,{clientWidth:k,clientHeight:b}=document.documentElement;if(g){const e=g.getBoundingClientRect();e.top>0&&(D=e.top),e.left>0&&(y=e.left),e.right<k&&(k=e.right),e.bottom<b&&(b=e.bottom)}let v=0;"auto"===f&&(o<y?(f="left",v=y-o):o+i>k?(f="right",k<c&&(v=k-c)):f="rtl"===Ae(r)?c-i<y?"left":"right":"left"),"right"===f&&(m+=h-i),m+=v,"auto"===p&&(p=d-n>D&&l+n>b?"top":"bottom"),"top"===p?w-=n:w+=u,e.remove(...Object.values(Ce)),e.add(Ce[f],Ce[p]),t.left=Fe(m),t.top=Fe(w)}setViewSwitchLabel(e){this.controls.viewSwitch.textContent=e}setPrevButtonDisabled(e){this.controls.prevButton.disabled=e}setNextButtonDisabled(e){this.controls.nextButton.disabled=e}changeView(e){const t=this.currentView;return e!==t.id&&(this._oldView||(this._oldView=t),this.currentView=this.views[e],this._renderMethod="render"),this}changeFocus(e){return this._renderMethod=Ee(this,e)?"render":"refreshFocus",this.views.forEach((e=>{e.updateFocus()})),this}update(e=void 0){const t=void 0===e?Be(this.datepicker):e;return this._renderMethod=Ee(this,t)?"render":"refresh",this.views.forEach((e=>{e.updateFocus(),e.updateSelection()})),this}render(e=!0){const{currentView:t,datepicker:i,_oldView:n}=this,s=new Date(this._oldViewDate),a=e&&this._renderMethod||"render";if(delete this._oldView,delete this._oldViewDate,delete this._renderMethod,t[a](),n&&(this.main.replaceChild(t.element,n.element),we(i,"changeView")),!isNaN(s)){const e=new Date(this.viewDate);e.getFullYear()!==s.getFullYear()&&we(i,"changeYear"),e.getMonth()!==s.getMonth()&&we(i,"changeMonth")}}}function We(e,t,i,n,s,a){if(r(e,s,a)){if(n(e)){return We(t(e,i),t,i,n,s,a)}return e}}function Ke(e,t,i){const n=e.picker,s=n.currentView,a=s.step||1;let r,o=n.viewDate;switch(s.id){case 0:o=f(o,i?7*t:t),r=f;break;case 1:o=p(o,i?4*t:t),r=p;break;default:o=m(o,t*(i?4:1)*a),r=m}o=We(o,r,t<0?-a:a,(e=>s.disabled.includes(e)),s.minDate,s.maxDate),void 0!==o&&n.changeFocus(o).render()}function Te(e,t){const{config:i,picker:n,editMode:s}=e,a=n.active,{key:r,altKey:o,shiftKey:d}=t,c=t.ctrlKey||t.metaKey,l=()=>{t.preventDefault(),t.stopPropagation()};if("Tab"===r)return void be(e);if("Enter"===r){if(a)if(s)e.exitEditMode({update:!0,autohide:i.autohide});else{const t=n.currentView;t.isMinView?e.setDate(n.viewDate):(n.changeView(t.id-1).render(),l())}else e.update();return}const h=i.shortcutKeys,u={key:r,ctrlOrMetaKey:c,altKey:o,shiftKey:d},f=Object.keys(h).find((e=>{const t=h[e];return!Object.keys(t).find((e=>t[e]!==u[e]))}));if(f){let t;if("toggle"===f?t=f:s?"exitEditMode"===f&&(t=f):a?"hide"===f?t=f:"prevButton"===f?t=[ge,[e,-1]]:"nextButton"===f?t=[ge,[e,1]]:"viewSwitch"===f?t=[ye,[e]]:i.clearButton&&"clearButton"===f?t=[De,[e]]:i.todayButton&&"todayButton"===f&&(t=[ke,[e]]):"show"===f&&(t=f),t)return Array.isArray(t)?t[0].apply(null,t[1]):e[t](),void l()}if(!a||s)return;const p=(i,n)=>{d||c||o?e.enterEditMode():(Ke(e,i,n),t.preventDefault())};"ArrowLeft"===r?p(-1,!1):"ArrowRight"===r?p(1,!1):"ArrowUp"===r?p(-1,!0):"ArrowDown"===r?p(1,!0):("Backspace"===r||"Delete"===r||r&&1===r.length&&!c)&&e.enterEditMode()}function _e(e){e.config.showOnFocus&&!e._showing&&e.show()}function He(e,t){const i=t.target;(e.picker.active||e.config.showOnClick)&&(i._active=T(i),i._clicking=setTimeout((()=>{delete i._active,delete i._clicking}),2e3))}function je(e,t){const i=t.target;i._clicking&&(clearTimeout(i._clicking),delete i._clicking,i._active&&e.enterEditMode(),delete i._active,e.config.showOnClick&&e.show())}function Re(e,t){t.clipboardData.types.includes("text/plain")&&e.enterEditMode()}function $e(e,t){const{element:i,picker:n}=e;if(!n.active&&!T(i))return;const s=n.element;z(t,(e=>e===i||e===s))||be(e)}function Ie(e,t){return e.map((e=>L(e,t.format,t.locale))).join(t.dateDelimiter)}function Je(e,t,i=!1){if(0===t.length)return i?[]:void 0;const{config:n,dates:s,rangeSideIndex:a}=e,{pickLevel:o,maxNumberOfDates:d}=n;let c=t.reduce(((e,t)=>{let i=A(t,n.format,n.locale);return void 0===i||(i=x(i,o,a),!r(i,n.minDate,n.maxDate)||e.includes(i)||n.checkDisabled(i,o)||!(o>0)&&n.daysOfWeekDisabled.includes(new Date(i).getDay())||e.push(i)),e}),[]);return 0!==c.length?(n.multidate&&!i&&(c=c.reduce(((e,t)=>(s.includes(t)||e.push(t),e)),s.filter((e=>
vendor: 4,281 bytes, line 1
1!c.includes(e))))),d&&c.length>d?c.slice(-1*d):c):void 0}function Pe(e,t=3,i=!0,n=void 0){const{config:s,picker:a,inputField:r}=e;if(2&t){const e=a.active?s.pickLevel:s.startView;a.update(n).changeView(e).render(i)}1&t&&r&&(r.value=Ie(e.dates,s))}function ze(e,t,i){const n=e.config;let{clear:s,render:a,autohide:r,revert:o,forceRefresh:d,viewDate:c}=i;void 0===a&&(a=!0),a?void 0===r&&(r=n.autohide):r=d=!1,c=A(c,n.format,n.locale);const l=Je(e,t,s);(l||o)&&(l&&l.toString()!==e.dates.toString()?(e.dates=l,Pe(e,a?3:1,!0,c),we(e,"changeDate")):Pe(e,d?3:1,!0,c),r&&e.hide())}function Ue(e,t){return t?i=>L(i,t,e.config.locale):e=>new Date(e)}class qe{constructor(e,t={},i=void 0){e.datepicker=this,this.element=e,this.dates=[];const n=this.config=Object.assign({buttonClass:t.buttonClass&&String(t.buttonClass)||"button",container:null,defaultViewDate:h(),maxDate:void 0,minDate:void 0},ae(q,this));let s;if("INPUT"===e.tagName?(s=this.inputField=e,s.classList.add("datepicker-input"),t.container&&(n.container=t.container instanceof HTMLElement?t.container:document.querySelector(t.container))):n.container=e,i){const e=i.inputs.indexOf(s),t=i.datepickers;if(e<0||e>1||!Array.isArray(t))throw Error("Invalid rangepicker object.");t[e]=this,this.rangepicker=i,this.rangeSideIndex=e}this._options=t,Object.assign(n,ae(t,this)),n.shortcutKeys=function(e){return Object.keys(re).reduce(((t,i)=>{const n=void 0===e[i]?re[i]:e[i],s=n&&n.key;if(!s||"string"!=typeof s)return t;const a={key:s,ctrlOrMetaKey:!!(n.ctrlOrMetaKey||n.ctrlKey||n.metaKey)};return s.length>1&&(a.altKey=!!n.altKey,a.shiftKey=!!n.shiftKey),t[i]=a,t}),{})}(t.shortcutKeys||{});const r=a(e.value||e.dataset.date,n.dateDelimiter);delete e.dataset.date;const o=Je(this,r);o&&o.length>0&&(this.dates=o),s&&(s.value=Ie(this.dates,n));const d=this.picker=new Ye(this),c=[e,"keydown",Te.bind(null,this)];s?J(this,[c,[s,"focus",_e.bind(null,this)],[s,"mousedown",He.bind(null,this)],[s,"click",je.bind(null,this)],[s,"paste",Re.bind(null,this)],[document,"mousedown",$e.bind(null,this)],[window,"resize",d.place.bind(d)]]):(J(this,[c]),this.show())}static formatDate(e,t,i){return L(e,t,i&&U[i]||U.en)}static parseDate(e,t,i){return A(e,t,i&&U[i]||U.en)}static get locales(){return U}get active(){return!(!this.picker||!this.picker.active)}get pickerElement(){return this.picker?this.picker.element:void 0}setOptions(e){const t=ae(e,this);Object.assign(this._options,e),Object.assign(this.config,t),this.picker.setOptions(t),Pe(this,3)}show(){if(this.inputField){const{config:e,inputField:t}=this;if(t.disabled||t.readOnly&&!e.enableOnReadonly)return;T(t)||e.disableTouchKeyboard||(this._showing=!0,t.focus(),delete this._showing)}this.picker.show()}hide(){this.inputField&&(this.picker.hide(),this.picker.update().changeView(this.config.startView).render())}toggle(){this.picker.active?this.inputField&&this.picker.hide():this.show()}destroy(){this.hide(),function(e){let t=R.get(e);t&&(t.forEach((e=>{I.call(...e)})),R.delete(e))}(this),this.picker.detach();const e=this.element;return e.classList.remove("datepicker-input"),delete e.datepicker,this}getDate(e=void 0){const t=Ue(this,e);return this.config.multidate?this.dates.map(t):this.dates.length>0?t(this.dates[0]):void 0}setDate(...e){const t=[...e],i={},s=n(e);!s||"object"!=typeof s||Array.isArray(s)||s instanceof Date||Object.assign(i,t.pop());ze(this,Array.isArray(t[0])?t[0]:t,i)}update(e=void 0){if(!this.inputField)return;const t=Object.assign(e||{},{clear:!0,render:!0,viewDate:void 0});ze(this,a(this.inputField.value,this.config.dateDelimiter),t)}getFocusedDate(e=void 0){return Ue(this,e)(this.picker.viewDate)}setFocusedDate(e,t=!1){const{config:i,picker:n,active:s,rangeSideIndex:a}=this,r=i.pickLevel,o=A(e,i.format,i.locale);void 0!==o&&(n.changeFocus(x(o,r,a)),s&&t&&n.changeView(r),n.render())}refresh(e=void 0,t=!1){let i;e&&"string"!=typeof e&&(t=e,e=void 0),i="picker"===e?2:"input"===e?1:3,Pe(this,i,!t)}enterEditMode(){const e=this.inputField;e&&!e.readOnly&&this.picker.active&&!this.editMode&&(this.editMode=!0,e.classList.add("in-edit"))}exitEditMode(e=void 0){if(!this.inputField||!this.editMode)return;const t=Object.assign({update:!1},e);delete this.editMode,this.inputField.classList.remove("in-edit"),t.update&&this.update(t)}}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.