vendor: 15,573 bytes, lines 1-5
1/*! 2 * Datepicker for Bootstrap v1.10.0 (https://github.com/uxsolutions/bootstrap-datepicker) 3 * 4 * Licensed under the Apache License v2.0 (https://www.apache.org/licenses/LICENSE-2.0) 5 */ !function(t){"function"==typeof define&&define.amd?define(["jquery"],t):t("object"==typeof exports?require("jquery"):jQuery)}(function(t,e){function i(){return new Date(Date.UTC.apply(Date,arguments))}function a(){var t=new Date;return i(t.getFullYear(),t.getMonth(),t.getDate())}function s(t,e){return t.getUTCFullYear()===e.getUTCFullYear()&&t.getUTCMonth()===e.getUTCMonth()&&t.getUTCDate()===e.getUTCDate()}function n(i,a){return function(){return a!==e&&t.fn.bootstrapDatepicker.deprecated(a),this[i].apply(this,arguments)}}function o(){return document.documentElement.lang||document.lang||"en"}function r(t,e){var i=o(),a=new Date(e,t,1);try{return new Intl.DateTimeFormat(i,{month:"long",year:"numeric"}).format(a)}catch(s){return new Intl.DateTimeFormat("en",{month:"long",year:"numeric"}).format(a)}}function h(t,e){return"year"===e?String(t):"decade"===e?t+" - "+(t+9):"century"===e?t+" - "+(t+99):String(t)}function l(t){var e=o(),i=new Date(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate());try{return new Intl.DateTimeFormat(e,{weekday:"long",year:"numeric",month:"long",day:"numeric"}).format(i)}catch(a){return new Intl.DateTimeFormat("en",{weekday:"long",year:"numeric",month:"long",day:"numeric"}).format(i)}}var d,c=(d={get:function(t){return this.slice(t)[0]},contains:function(t){for(var e=t&&t.valueOf(),i=0,a=this.length;i<a;i++)if(0<=this[i].valueOf()-e&&this[i].valueOf()-e<864e5)return i;return -1},remove:function(t){this.splice(t,1)},replace:function(t){t&&(Array.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var t=new c;return t.replace(this),t}},function(){var e=[];return e.push.apply(e,arguments),t.extend(e,d),e}),u=function(e,i){t.data(e,"datepicker",this),this._events=[],this._secondaryEvents=[],this._process_options(i),this.dates=new c,this.viewDate=this.o.defaultViewDate,this.focusDate=null,this.element=t(e),this.isInput=this.element.is("input"),this.inputField=this.isInput?this.element:this.element.find("input"),this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .input-group-append, .input-group-prepend, .btn"),this.component&&0===this.component.length&&(this.component=!1),null===this.o.isInline?this.isInline=!this.component&&!this.isInput:this.isInline=this.o.isInline,this.picker=t(D.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find("button.prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find("button.next").html(this.o.templates.rightArrow),this._buildEvents(),this._attachEvents(),this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu"),this.o.rtl&&this.picker.addClass("datepicker-rtl"),this.o.calendarWeeks&&(this.picker.find("thead .datepicker-title").attr("colspan",function(t,e){return Number(e)+1}),this.picker.find(".datepicker-days button.datepicker-switch").parent().attr("colspan",function(t,e){return Number(e)+1}),this.picker.find("tfoot button.today, tfoot button.clear").parent().attr("colspan",function(t,e){return Number(e)+1})),this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled}),this._allow_update=!1,this.setViewMode(this.o.startView),this._allow_update=!0,this.fillDow(),this.fillMonths(),this.update(),this.isInline&&this.show()};u.prototype={constructor:u,_resolveViewName:function(e){return t.each(D.viewModes,function(i,a){if(e===i||-1!==t.inArray(e,a.names))return e=i,!1}),e},_resolveDaysOfWeek:function(e){return Array.isArray(e)||(e=e.split(/[,\s]*/)),t.map(e,Number)},_check_template:function(i){try{if(i===e||""===i)return!1;if((i.match(/[<>]/g)||[]).length<=0)return!0;return t(i).length>0}catch(a){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var s=this.o=t.extend({},this._o),n=s.language;y[n]||y[n=n.split("-")[0]]||(n=v.language),s.language=n,s.startView=this._resolveViewName(s.startView),s.minViewMode=this._resolveViewName(s.minViewMode),s.maxViewMode=this._resolveViewName(s.maxViewMode),s.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,s.startView)),!0!==s.multidate&&(s.multidate=Number(s.multidate)||!1,!1!==s.multidate&&(s.multidate=Math.max(0,s.multidate))),s.multidateSeparator=String(s.multidateSeparator),s.weekStart%=7,s.weekEnd=(s.weekStart+6)%7;var o=D.parseFormat(s.format);s.startDate!==-1/0&&(s.startDate?s.startDate instanceof Date?s.startDate=this._local_to_utc(this._zero_time(s.startDate)):s.startDate=D.parseDate(s.startDate,o,s.language,s.assumeNearbyYear):s.startDate=-1/0),s.endDate!==1/0&&(s.endDate?s.endDate instanceof Date?s.endDate=this._local_to_utc(this._zero_time(s.endDate)):s.endDate=D.parseDate(s.endDate,o,s.language,s.assumeNearbyYear):s.endDate=1/0),s.daysOfWeekDisabled=this._resolveDaysOfWeek(s.daysOfWeekDisabled||[]),s.daysOfWeekHighlighted=this._resolveDaysOfWeek(s.daysOfWeekHighlighted||[]),s.datesDisabled=s.datesDisabled||[],Array.isArray(s.datesDisabled)||(s.datesDisabled=s.datesDisabled.split(",")),s.datesDisabled=t.map(s.datesDisabled,function(t){return D.parseDate(t,o,s.language,s.assumeNearbyYear)});var r=String(s.orientation).toLowerCase().split(/\s+/g),h=s.orientation.toLowerCase();if(r=t.grep(r,function(t){return/^auto|left|right|top|bottom$/.test(t)}),s.orientation={x:"auto",y:"auto"},h&&"auto"!==h){if(1===r.length)switch(r[0]){case"top":case"bottom":s.orientation.y=r[0];break;case"left":case"right":s.orientation.x=r[0]}else h=t.grep(r,function(t){return/^left|right$/.test(t)}),s.orientation.x=h[0]||"auto",h=t.grep(r,function(t){return/^top|bottom$/.test(t)}),s.orientation.y=h[0]||"auto"}if(s.defaultViewDate instanceof Date||"string"==typeof s.defaultViewDate)s.defaultViewDate=D.parseDate(s.defaultViewDate,o,s.language,s.assumeNearbyYear);else if(s.defaultViewDate){var l=s.defaultViewDate.year||new Date().getFullYear(),d=s.defaultViewDate.month||0,c=s.defaultViewDate.day||1;s.defaultViewDate=i(l,d,c)}else s.defaultViewDate=a()},_applyEvents:function(t){for(var i,a,s,n=0;n<t.length;n++)i=t[n][0],2===t[n].length?(a=e,s=t[n][1]):3===t[n].length&&(a=t[n][1],s=t[n][2]),i.on(s,a)},_unapplyEvents:function(t){for(var i,a,s,n=0;n<t.length;n++)i=t[n][0],2===t[n].length?(s=e,a=t[n][1]):3===t[n].length&&(s=t[n][1],a=t[n][2]),i.off(a,s)},_buildEvents:function(){var e={keyup:t.proxy(function(e){-1===t.inArray(e.keyCode,[27,37,39,38,40,32,13,9])&&this.update()},this),keydown:t.proxy(this.keydown,this),paste:t.proxy(this.paste,this)};!0===this.o.showOnFocus&&(e.focus=t.proxy(this.show,this)),this.isInput?this._events=[[this.element,e]]:this.component&&this.inputField.length?this._events=[[this.inputField,e],[this.component,{click:t.proxy(this.show,this)}]]:this._events=[[this.element,{click:t.proxy(this.show,this),keydown:t.proxy(this.keydown,this)}]],this._events.push([this.element,"*",{blur:t.proxy(function(t){this._focused_from=t.target},this)}],[this.element,{blur:t.proxy(function(t){this._focused_from=t.target},this)}]),this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":t.proxy(function(t){this.update(t.date)},this)}]),this._secondaryEvents=[[this.picker,{click:t.proxy(this.click,this),keydown:t.proxy(this.pickerKeydown,this)}],[this.picker,"button.day:not([disabled])",{click:t.proxy(this.dayCellClick,this)}],[t(window),{resize:t.proxy(this.place,this)}],[t(document),{"mousedown touchstart":t.proxy(function(t){this.element.is(t.target)||this.element.find(t.target).length||this.picker.is(t.target)||this.picker.find(t.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents(),this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents(),this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(e,i){var a=i||this.dates.get(-1),s=this._utc_to_local(a);this.element.trigger({type:e,date:s,viewMode:this.viewMode,dates:t.map(this.dates,this._utc_to_local),format:t.proxy(function(t,e){0===arguments.length?(t=this.dates.length-1,e=this.o.format):"string"==typeof t&&(e=t,t=this.dates.length-1),e=e||this.o.format;var i=this.dates.get(t);return D.formatDate(i,e,this.o.language)},this)})},show:function(){if(!(this.inputField.is(":disabled")||this.inputField.prop("readonly")&&!1===this.o.enableOnReadonly))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&t(this.element).blur(),this._triggerElement=this.element[0],this._focusActiveElement(),this},hide:function(){return this.isInline||!this.picker.is(":visible")||(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide")),this},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(e){var i;if(e.originalEvent.clipboardData&&e.originalEvent.clipboardData.types&&-1!==t.inArray("text/plain",e.originalEvent.clipboardData.types))i=e.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i),this.update(),e.preventDefault()},_utc_to_local:function(t){if(!t)return t;var e=new Date(t.getTime()+6e4*t.getTimezoneOffset());return e.getTimezoneOffset()!==t.getTimezoneOffset()&&(e=new Date(t.getTime()+6e4*e.getTimezoneOffset())),e},_local_to_utc:function(t){return t&&new Date(t.getTime()-6e4*t.getTimezoneOffset())},_zero_time:function(t){return t&&new Date(t.getFullYear(),t.getMonth(),t.getDate())},_zero_utc_time:function(t){return t&&i(t.getUTCFullYear(),t.getUTCMonth(),t.getUTCDate())},getDates:function(){return t.map(this.dates,this._utc_to_local)},getUTCDates:function(){return t.map(this.dates,function(t){return new Date(t)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var t=this.dates.get(-1);return t!==e?new Date(t):null},clearDates:function(){this.inputField.val(""),this._trigger("changeDate"),this.update(),this.o.autoclose&&this.hide()},setDates:function(){var t=Array.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var e=Array.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,t.map(e,this._utc_to_local)),this},setDate:n("setDates"),setUTCDate:n("setUTCDates"),remove:n("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var t=this.getFormattedDate();return this.inputField.val(t),this},getFormattedDate:function(i){i===e&&(i=this.o.format);var a=this.o.language;return t.map(this.dates,function(t){return D.formatDate(t,i,a)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(t){return this._process_options({startDate:t}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(t){return this._process_options({endDate:t}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(t){return this._process_options({daysOfWeekDisabled:t}),this.update(),this},setDaysOfWeekHighlighted:function(t){return this._process_options({daysOfWeekHighlighted:t}),this.update(),this},setDatesDisabled:function(t){return this._process_options({datesDisabled:t}),this.update(),this},place:function(){if(this.isInline)return this;var e=this.picker.outerWidth(),i=this.picker.outerHeight(),a=t(this.o.container),s=a.width(),n="body"===this.o.container?t(document).scrollTop():a.scrollTop(),o=a.offset(),r=[0];this.element.parents().each(function(){var e=t(this).css("z-index");"auto"!==e&&0!==Number(e)&&r.push(Number(e))});var h=Math.max.apply(Math,r)+this.o.zIndexOffset,l=this.component?this.component.parent().offset():this.element.offset(),d=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),c=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),u=l.left-o.left,p=l.top-o.top;"body"!==this.o.container&&(p+=n),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(u-=e-c)):l.left<0?(this.picker.addClass("datepicker-orient-left"),u-=l.left-10):u+e>s?(this.picker.addClass("datepicker-orient-right"),u+=c-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var f,g=this.o.orientation.y;if("auto"===g&&(g=(f=-n+p-i)<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+g),"top"===g?p-=i+parseInt(this.picker.css("padding-top")):p+=d,this.o.rtl){var v=s-(u+c);this.picker.css({top:p,right:v,zIndex:h})}else this.picker.css({top:p,left:u,zIndex:h});return this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var e=this.dates.copy(),i=[],a=!1;return arguments.length?(t.each(arguments,t.proxy(function(t,e){e instanceof Date&&(e=this._local_to_utc(e)),i.push(e)},this)),a=!0):(i=(i=this.isInput?this.element.val():this.element.data("date")||this.inputField.val())&&this.o.multidate?i.split(this.o.multidateSeparator):[i],delete this.element.data().date),i=t.map(i,t.proxy(function(t){return D.parseDate(t,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),i=t.grep(i,t.proxy(function(t){return!this.dateWithinRange(t)||!t},this),!0),this.dates.replace(i),this.o.updateViewDate&&(this.dates.length?this.viewDate=new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?this.viewDate=new Date(this.o.startDate):this.viewDate>this.o.endDate?this.viewDate=new Date(this.o.endDate):this.viewDate=this.o.defaultViewDate),a?(this.setValue(),this.element.change()):this.dates.length&&String(e)!==String(this.dates)&&a&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&e.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var e=this.o.weekStart,i="<tr>";for(this.o.calendarWeeks&&(i+='<th class="cw"> </th>');e<this.o.weekStart+7;){var a=e%7,s=y[this.o.language].days[a],n=y[this.o.language].daysMin[a];i+='<th class="dow',-1!==t.inArray(e,this.o.daysOfWeekDisabled)&&(i+=" disabled"),i+='" scope="col" aria-label="'+s+'" title="'+s+'">',i+='<abbr title="'+s+'">'+n+"</abbr></th>",e++}i+="</tr>",this.picker.find(".datepicker-days thead").append(i)}},fillMonths:function(){for(var t,e,i=this._utc_to_local(this.viewDate),a=this.viewDate.getUTCFullYear(),s='<div class="datepicker-grid">',n=0;n<12;n++)t=i&&i.getMonth()===n?" focused":"",e=r(n,a),s+='<button type="button" class="month'+t+'" aria-label="'+e+'">'+y[this.o.language].monthsShort[n]+"</button>";
5s+="</div>",this.picker.find(".datepicker-months td").html(s)},setRange:function(e){e&&e.length?this.range=t.map(e,function(t){return t.valueOf()}):delete this.range,this.fill()},getClassNames:function(e){var i=[],n=this.viewDate.getUTCFullYear(),o=this.viewDate.getUTCMonth(),r=a();return e.getUTCFullYear()<n||e.getUTCFullYear()===n&&e.getUTCMonth()<o?i.push("old"):(e.getUTCFullYear()>n||e.getUTCFullYear()===n&&e.getUTCMonth()>o)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&s(e,r)&&i.push("today"),-1!==this.dates.contains(e)&&i.push("active"),this.dateWithinRange(e)||i.push("disabled"),this.dateIsDisabled(e)&&i.push("disabled","disabled-date"),-1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekHighlighted)&&i.push("highlighted"),this.range&&(e>this.range[0]&&e<this.range[this.range.length-1]&&i.push("range"),-1!==t.inArray(e.valueOf(),this.range)&&i.push("selected"),e.valueOf()===this.range[0]&&i.push("range-start"),e.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,a,s,n,o,r,l){for(var d,c,u,p,f='<div class="datepicker-grid">',g=s/10,v=this.picker.find(i),m=Math.floor(n/s)*s,y=m+9*g,D=Math.floor(this.viewDate.getFullYear()/g)*g,w=t.map(this.dates,function(t){return Math.floor(t.getUTCFullYear()/g)*g}),b=m-g;b<=y+g;b+=g){d=[a],c=null,b===m-g?d.push("old"):b===y+g&&d.push("new"),-1!==t.inArray(b,w)&&d.push("active"),(b<o||b>r)&&d.push("disabled"),b===D&&d.push("focused"),l!==t.noop&&(e===(u=l(new Date(b,0,1)))?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u}),!1===u.enabled&&d.push("disabled"),u.classes&&(d=d.concat(u.classes.split(/\s+/))),u.tooltip&&(c=u.tooltip)),p=h(b,a);var k=-1!==t.inArray("disabled",d),$=['type="button"','class="'+d.join(" ")+'"','aria-label="'+p+'"'];k&&$.push("disabled"),c&&$.push('title="'+c+'"'),f+="<button "+$.join(" ")+">"+b+"</button>"}f+="</div>",v.find("button.datepicker-switch").text(m+"-"+y),v.find("td").html(f)},fill:function(){var s,n,o,r,h=new Date(this.viewDate),d=h.getUTCFullYear(),c=h.getUTCMonth(),u=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,p=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,f=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,g=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,v=y[this.o.language].today||y.en.today||"",m=y[this.o.language].clear||y.en.clear||"",w=y[this.o.language].titleFormat||y.en.titleFormat,b=a(),k=(!0===this.o.todayBtn||"linked"===this.o.todayBtn)&&b>=this.o.startDate&&b<=this.o.endDate&&!this.weekOfDateIsDisabled(b);if(!(isNaN(d)||isNaN(c))){this.picker.find(".datepicker-days button.datepicker-switch").text(D.formatDate(h,w,this.o.language)),this.picker.find("tfoot button.today").text(v).closest("tr").css("display",k?"":"none"),this.picker.find("tfoot button.clear").text(m).closest("tr").css("display",!0===this.o.clearBtn?"":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths();var $=i(d,c,0),C=$.getUTCDate();$.setUTCDate(C-($.getUTCDay()-this.o.weekStart+7)%7);var _=new Date($);100>$.getUTCFullYear()&&_.setUTCFullYear($.getUTCFullYear()),_.setUTCDate(_.getUTCDate()+42),_=_.valueOf();for(var T=[];$.valueOf()<_;){if((s=$.getUTCDay())===this.o.weekStart&&(T.push("<tr>"),this.o.calendarWeeks)){var M=new Date(+$+(this.o.weekStart-s-7)%7*864e5),U=new Date(Number(M)+(11-M.getUTCDay())%7*864e5),x=new Date(Number(x=i(U.getUTCFullYear(),0,1))+(11-x.getUTCDay())%7*864e5),F=(U-x)/864e5/7+1;T.push('<td class="cw">'+F+"</td>")}(n=this.getClassNames($)).push("day");var V=$.getUTCDate();this.o.beforeShowDay!==t.noop&&(e===(r=this.o.beforeShowDay(this._utc_to_local($)))?r={}:"boolean"==typeof r?r={enabled:r}:"string"==typeof r&&(r={classes:r}),!1===r.enabled&&n.push("disabled"),r.classes&&(n=n.concat(r.classes.split(/\s+/))),r.tooltip&&(o=r.tooltip),r.content&&(V=r.content)),n="function"==typeof t.uniqueSort?t.uniqueSort(n):t.unique(n);var A=-1!==t.inArray("disabled",n),S=-1!==t.inArray("active",n),E=-1!==t.inArray("today",n),O=l($),Y=['type="button"','class="'+n.join(" ")+'"','data-date="'+$.getTime().toString()+'"','aria-label="'+O+'"'];A&&Y.push("disabled"),S&&Y.push('aria-selected="true"'),E&&Y.push('aria-current="date"'),o&&Y.push('title="'+o+'"'),T.push("<td><button "+Y.join(" ")+">"+V+"</button></td>"),o=null,s===this.o.weekEnd&&T.push("</tr>"),$.setUTCDate($.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(T.join(""));var W=y[this.o.language].monthsTitle||y.en.monthsTitle||"Months",N=this.picker.find(".datepicker-months").find("button.datepicker-switch").text(this.o.maxViewMode<2?W:d).end().find("tbody .month").removeClass("active");if(t.each(this.dates,function(t,e){e.getUTCFullYear()===d&&N.eq(e.getUTCMonth()).addClass("active")}),(d<u||d>f)&&N.addClass("disabled").prop("disabled",!0),d===u&&N.slice(0,p).addClass("disabled").prop("disabled",!0),d===f&&N.slice(g+1).addClass("disabled").prop("disabled",!0),this.o.beforeShowMonth!==t.noop){var I=this;t.each(N,function(i,a){var s=new Date(d,i,1),n=I.o.beforeShowMonth(s);n===e?n={}:"boolean"==typeof n?n={enabled:n}:"string"==typeof n&&(n={classes:n}),!1!==n.enabled||t(a).hasClass("disabled")||t(a).addClass("disabled").prop("disabled",!0),n.classes&&t(a).addClass(n.classes),n.tooltip&&t(a).prop("title",n.tooltip)})}if(this._fill_yearsView(".datepicker-years","year",10,d,u,f,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,d,u,f,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,d,u,f,this.o.beforeShowCentury),this.picker.is(":visible")){var z=D.formatDate(h,w,this.o.language);this._announce(z)}}},updateNavArrows:function(){if(this._allow_update){var t,e,i=new Date(this.viewDate),a=i.getUTCFullYear(),s=i.getUTCMonth(),n=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,o=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,r=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,l=1;switch(this.viewMode){case 4:l*=10;case 3:l*=10;case 2:l*=10;case 1:t=Math.floor(a/l)*l<=n,e=Math.floor(a/l)*l+l>r;break;case 0:t=a<=n&&s<=o,e=a>=r&&s>=h}this.picker.find("button.prev").toggleClass("disabled",t).prop("disabled",t),this.picker.find("button.next").toggleClass("disabled",e).prop("disabled",e)}},click:function(e){var s,n,o,r,h;if(e.preventDefault(),e.stopPropagation(),(s=t(e.target)).is("button")&&(s.hasClass("prev")||s.hasClass("next"))){s.hasClass("disabled")||s.prop("disabled")||(n=s.hasClass("prev")?-1:1,0!==this.viewMode&&(n*=12*D.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,n),this._trigger(D.viewModes[this.viewMode].e,this.viewDate),this.fill(),this._focusNavButton(s.hasClass("prev")?"prev":"next"));return}s.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&(this.setViewMode(this.viewMode+1),this._focusActiveElement()),s.hasClass("today")&&!s.hasClass("day")&&(this.setViewMode(0),this._setDate(a(),"linked"===this.o.todayBtn?null:"view")),s.hasClass("clear")&&this.clearDates(),!s.hasClass("disabled")&&!s.prop("disabled")&&(s.hasClass("month")||s.hasClass("year")||s.hasClass("decade")||s.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,1===this.viewMode?(h=s.parent().find(".month").index(s),r=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(h)):(h=0,r=Number(s.text()),this.viewDate.setUTCFullYear(r)),this._trigger(D.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(i(r,h,o)):(this.setViewMode(this.viewMode-1),this.fill(),this._focusActiveElement())),this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus(),delete this._focused_from},dayCellClick:function(e){var i=t(e.currentTarget).data("date"),a=new Date(i);this.o.updateViewDate&&(a.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),a.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate)),this._setDate(a)},navArrowsClick:function(e){var i=t(e.currentTarget).hasClass("prev")?-1:1;0!==this.viewMode&&(i*=12*D.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,i),this._trigger(D.viewModes[this.viewMode].e,this.viewDate),this.fill(),this._focusNavButton(-1===i?"prev":"next")},_toggle_multidate:function(t){var e=this.dates.contains(t);if(t||this.dates.clear(),-1!==e?(!0===this.o.multidate||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(e):(!1===this.o.multidate&&this.dates.clear(),this.dates.push(t)),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(t,e){e&&"date"!==e||this._toggle_multidate(t&&new Date(t)),(!e&&this.o.updateViewDate||"view"===e)&&(this.viewDate=t&&new Date(t)),this.fill(),this.setValue(),e&&"view"===e||this._trigger("changeDate"),this.inputField.trigger("change"),this.o.autoclose&&(!e||"date"===e)&&this.hide()},moveDay:function(t,e){var i=new Date(t);return i.setUTCDate(t.getUTCDate()+e),i},moveWeek:function(t,e){return this.moveDay(t,7*e)},moveMonth:function(t,e){if(!(i=t)||isNaN(i.getTime()))return this.o.defaultViewDate;if(!e)return t;var i,a,s,n=new Date(t.valueOf()),o=n.getUTCDate(),r=n.getUTCMonth(),h=Math.abs(e);if(e=e>0?1:-1,1===h)s=-1===e?function(){return n.getUTCMonth()===r}:function(){return n.getUTCMonth()!==a},a=r+e,n.setUTCMonth(a),a=(a+12)%12;else{for(var l=0;l<h;l++)n=this.moveMonth(n,e);a=n.getUTCMonth(),n.setUTCDate(o),s=function(){return a!==n.getUTCMonth()}}for(;s();)n.setUTCDate(--o),n.setUTCMonth(a);return n},moveYear:function(t,e){return this.moveMonth(t,12*e)}
5,moveAvailableDate:function(t,e,i){do{if(t=this[i](t,e),!this.dateWithinRange(t))return!1;i="moveDay"}while(this.dateIsDisabled(t));return t},weekOfDateIsDisabled:function(e){return -1!==t.inArray(e.getUTCDay(),this.o.daysOfWeekDisabled)},dateIsDisabled:function(e){return this.weekOfDateIsDisabled(e)||t.grep(this.o.datesDisabled,function(t){return s(e,t)}).length>0},dateWithinRange:function(t){return t>=this.o.startDate&&t<=this.o.endDate},keydown:function(e){if(!this.picker.is(":visible")){(40===e.keyCode||27===e.keyCode)&&(this.show(),e.stopPropagation());return}var i,a,s=!1,n=this.focusDate||this.viewDate;switch(e.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):(this.hide(),this._triggerElement&&t(this._triggerElement).trigger("focus")),e.preventDefault(),e.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;i=37===e.keyCode||38===e.keyCode?-1:1,0===this.viewMode?e.ctrlKey?(a=this.moveAvailableDate(n,i,"moveYear"))&&this._trigger("changeYear",this.viewDate):e.shiftKey?(a=this.moveAvailableDate(n,i,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===e.keyCode||39===e.keyCode?a=this.moveAvailableDate(n,i,"moveDay"):this.weekOfDateIsDisabled(n)||(a=this.moveAvailableDate(n,i,"moveWeek")):1===this.viewMode?((38===e.keyCode||40===e.keyCode)&&(i*=4),a=this.moveAvailableDate(n,i,"moveMonth")):2===this.viewMode&&((38===e.keyCode||40===e.keyCode)&&(i*=4),a=this.moveAvailableDate(n,i,"moveYear")),a&&(this.focusDate=this.viewDate=a,this.setValue(),this.fill(),this._focusActiveElement(),e.preventDefault());break;case 13:if(!this.o.forceParse)break;n=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(n),s=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(e.preventDefault(),e.stopPropagation(),this.o.autoclose&&this.hide())}s&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+D.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))},pickerKeydown:function(e){var i=e.key||e.keyCode,a=t(e.target);if(a.is("button")&&("Enter"===i||13===i||" "===i||"Space"===i||32===i)){e.preventDefault(),a.trigger("click");return}if("Escape"===i||27===i){e.preventDefault(),e.stopPropagation(),this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):(this.hide(),this._triggerElement&&t(this._triggerElement).trigger("focus"));return}(a.hasClass("day")||a.hasClass("month")||a.hasClass("year")||a.hasClass("decade")||a.hasClass("century"))&&this._handleGridArrowKeys(e,a)},_handleGridArrowKeys:function(e,i){var a,s=e.keyCode;if(-1!==t.inArray(s,[37,38,39,40])){e.preventDefault();var n=i.closest("td").parent().parent().find("button:not([disabled])").filter(":visible"),o=n.index(i),r=i.hasClass("day")?7:4;switch(s){case 37:a=o-1;break;case 38:a=o-r;break;case 39:a=o+1;break;case 40:a=o+r}if(a>=0&&a<n.length&&(n.eq(a).trigger("focus"),i.hasClass("day"))){var h=n.eq(a).data("date");h&&(this.focusDate=new Date(h))}}},_focusActiveElement:function(){var t=this;setTimeout(function(){if(t.picker.is(":visible")){var e,i=t.picker.find(".datepicker-"+D.viewModes[t.viewMode].clsName);(e=i.find("button.focused:not([disabled])").first()).length||(e=i.find("button.active:not([disabled])").first()),e.length||(e=i.find("button.day:not([disabled]), button.month:not([disabled]), button.year:not([disabled])").first()),e.length&&e.trigger("focus")}},0)},_focusNavButton:function(t){var e=this;setTimeout(function(){var i=e.picker.find(".datepicker-"+D.viewModes[e.viewMode].clsName).find("button."+t);!i.length||i.hasClass("disabled")||i.prop("disabled")||i.trigger("focus")},0)},_announce:function(t){var e=this.picker.find(".datepicker-live-region");e.length&&e.text(t)}};var p=function(e,i){t.data(e,"datepicker",this),this.element=t(e),this.inputs=t.map(i.inputs,function(t){return t.jquery?t[0]:t}),delete i.inputs,this.keepEmptyValues=i.keepEmptyValues,delete i.keepEmptyValues,g.call(t(this.inputs),i).on("changeDate",t.proxy(this.dateUpdated,this)),this.pickers=t.map(this.inputs,function(e){return t.data(e,"datepicker")}),this.updateDates()};p.prototype={updateDates:function(){this.dates=t.map(this.pickers,function(t){return t.getUTCDate()}),this.updateRanges()},updateRanges:function(){var e=t.map(this.dates,function(t){return t.valueOf()});t.each(this.pickers,function(t,i){i.setRange(e)}
5)},clearDates:function(){t.each(this.pickers,function(t,e){e.clearDates()})},dateUpdated:function(i){if(!this.updating){this.updating=!0;var a=t.data(i.target,"datepicker");if(a!==e){var s=a.getUTCDate(),n=this.keepEmptyValues,o=t.inArray(i.target,this.inputs),r=o-1,h=o+1,l=this.inputs.length;if(-1!==o){if(t.each(this.pickers,function(t,e){e.getUTCDate()||e!==a&&n||e.setUTCDate(s)}),s<this.dates[r])for(;r>=0&&s<this.dates[r]&&(this.pickers[r].element.val()||"").length>0;)this.pickers[r--].setUTCDate(s);else if(s>this.dates[h])for(;h<l&&s>this.dates[h]&&(this.pickers[h].element.val()||"").length>0;)this.pickers[h++].setUTCDate(s);this.updateDates(),delete this.updating}}}},destroy:function(){t.map(this.pickers,function(t){t.destroy()}),t(this.inputs).off("changeDate",this.dateUpdated),delete this.element.data().datepicker},remove:n("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};var f=t.fn.bootstrapDatepicker,g=function(i){var a,s=Array.apply(null,arguments);if(s.shift(),this.each(function(){var e=t(this),n=e.data("datepicker"),o="object"==typeof i&&i;if(!n){var r=function e(i,a){var s,n=t(i).data(),o={},r=RegExp("^"+a.toLowerCase()+"([A-Z])");function h(t,e){return e.toLowerCase()}for(var l in a=RegExp("^"+a.toLowerCase()),n)if(a.test(l)){if("templates"===(s=l.replace(r,h)))continue;o[s]=n[l]}return o}(this,"date"),h=function e(i){var a={};if(y[i]||y[i=i.split("-")[0]]){var s=y[i];return t.each(m,function(t,e){e in s&&(a[e]=s[e])}),a}}(t.extend({},v,r,o).language),l=t.extend({},v,h,r,o);e.hasClass("input-daterange")||l.inputs?(t.extend(l,{inputs:l.inputs||e.find("input").toArray()}),n=new p(this,l)):n=new u(this,l),e.data("datepicker",n)}"string"==typeof i&&"function"==typeof n[i]&&(a=n[i].apply(n,s))}),a===e||a instanceof u||a instanceof p)return this;if(!(this.length>1))return a;throw Error("Using only allowed for the collection of a single element ("+i+" function)")};t.fn.bootstrapDatepicker=g;var v=t.fn.bootstrapDatepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:t.noop,beforeShowMonth:t.noop,beforeShowYear:t.noop,beforeShowDecade:t.noop,beforeShowCentury:t.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",isInline:null,keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-1/0,startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"«",rightArrow:"»"},showWeekDays:!0},m=t.fn.bootstrapDatepicker.locale_opts=["format","rtl","weekStart"];t.fn.bootstrapDatepicker.Constructor=u;var y=t.fn.bootstrapDatepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","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 yyyy"}},D={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(t){if("function"==typeof t.toValue&&"function"==typeof t.toDisplay)return t;var e=t.replace(this.validParts,"\0").split("\0"),i=t.match(this.validParts);if(!e||!e.length||!i||0===i.length)throw Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(e,i,s,n){if(e){if(e instanceof Date)return e;if("string"==typeof i&&(i=D.parseFormat(i)),i.toValue)return i.toValue(e,i,s);var o,r,h,l,d,c,p,f,g={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},v={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};
vendor: 3,879 bytes, line 5
5if(e in v&&(e=v[e]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(e)){for(p=0,l=e.match(/([\-+]\d+)([dmwy])/gi),e=new Date;p<l.length;p++)c=Number((d=l[p].match(/([\-+]\d+)([dmwy])/i))[1]),f=g[d[2].toLowerCase()],e=u.prototype[f](e,c);return u.prototype._zero_utc_time(e)}l=e&&e.match(this.nonpunctuation)||[];var m,w,b={},k=["yyyy","yy","M","MM","m","mm","d","dd"],$={yyyy:function(t,e){var i,a;return t.setUTCFullYear(n?(i=e,a=n,!0===a&&(a=10),i<100&&(i+=2e3)>new Date().getFullYear()+a&&(i-=100),i):e)},m:function(t,e){if(isNaN(t))return t;for(e-=1;e<0;)e+=12;for(e%=12,t.setUTCMonth(e);t.getUTCMonth()!==e;)t.setUTCDate(t.getUTCDate()-1);return t},d:function(t,e){return t.setUTCDate(e)}};$.yy=$.yyyy,$.M=$.MM=$.mm=$.m,$.dd=$.d,e=a();var C=i.parts.slice();if(l.length!==C.length&&(C=t(C).filter(function(e,i){return -1!==t.inArray(i,k)}).toArray()),l.length===C.length){for(p=0,o=C.length;p<o;p++){if(m=parseInt(l[p],10),d=C[p],isNaN(m))switch(d){case"MM":w=t(y[s].months).filter(_),m=t.inArray(w[0],y[s].months)+1;break;case"M":w=t(y[s].monthsShort).filter(_),m=t.inArray(w[0],y[s].monthsShort)+1}b[d]=m}for(p=0;p<k.length;p++)(h=k[p])in b&&!isNaN(b[h])&&(r=new Date(e),$[h](r,b[h]),isNaN(r)||(e=r))}return e}function _(){var t=this.slice(0,l[p].length),e=l[p].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}},formatDate:function(e,i,a){if(!e)return"";if("string"==typeof i&&(i=D.parseFormat(i)),i.toDisplay)return i.toDisplay(e,i,a);var s={d:e.getUTCDate(),D:y[a].daysShort[e.getUTCDay()],DD:y[a].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:y[a].monthsShort[e.getUTCMonth()],MM:y[a].months[e.getUTCMonth()],yy:e.getUTCFullYear().toString().substring(2),yyyy:e.getUTCFullYear()};s.dd=(s.d<10?"0":"")+s.d,s.mm=(s.m<10?"0":"")+s.m,e=[];for(var n=t.extend([],i.separators),o=0,r=i.parts.length;o<=r;o++)n.length&&e.push(n.shift()),e.push(s[i.parts[o]]);return e.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th><button type="button" class="prev" aria-label="Previous">'+v.templates.leftArrow+'</button></th><th colspan="5"><button type="button" class="datepicker-switch"></button></th><th><button type="button" class="next" aria-label="Next">'+v.templates.rightArrow+"</button></th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7"><button type="button" class="today"></button></th></tr><tr><th colspan="7"><button type="button" class="clear"></button></th></tr></tfoot>'};D.template='<div class="datepicker" role="application" aria-label="Calendar"><div class="sr-only datepicker-live-region" aria-live="polite" aria-atomic="true"></div><div class="datepicker-days"><table class="table-condensed" role="grid">'+D.headTemplate+"<tbody></tbody>"+D.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed" role="grid">'+D.headTemplate+D.contTemplate+D.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed" role="grid">'+D.headTemplate+D.contTemplate+D.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed" role="grid">'+D.headTemplate+D.contTemplate+D.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed" role="grid">'+D.headTemplate+D.contTemplate+D.footTemplate+"</table></div></div>",t.fn.bootstrapDatepicker.DPGlobal=D,t.fn.bootstrapDatepicker.noConflict=function(){return t.fn.bootstrapDatepicker=f,this},t.fn.bootstrapDatepicker.version="1.7.0",t.fn.bootstrapDatepicker.deprecated=function(t){var e=window.console;e&&e.warn&&e.warn("DEPRECATED: "+t)},t(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(e){var i=t(this);i.data("datepicker")||(e.preventDefault(),g.call(i,"show"))}),t(function(){g.call(t('[data-provide="datepicker-inline"]'))})});
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.