shards-ui
Version:
A free, modern and lightweight Bootstrap 4 UI toolkit for web makers.
1 lines • 55.9 kB
JavaScript
!function(t){var e={};function i(a){if(e[a])return e[a].exports;var s=e[a]={i:a,l:!1,exports:{}};return t[a].call(s.exports,s,s.exports,i),s.l=!0,s.exports}i.m=t,i.c=e,i.d=function(t,e,a){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:a})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="",i(i.s=0)}([function(t,e,i){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var a=i(1);i.n(a),i(3)},function(t,e,i){var a,s,n,r;r=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.datepicker.deprecated(a),this[i].apply(this,arguments)}}var r,o=(r={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(e){e&&(t.isArray(e)||(e=[e]),this.clear(),this.push.apply(this,e))},clear:function(){this.length=0},copy:function(){var t=new o;return t.replace(this),t}},function(){var e=[];return e.push.apply(e,arguments),t.extend(e,r),e}),l=function(e,i){t.data(e,"datepicker",this),this._process_options(i),this.dates=new o,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, .btn"),this.component&&0===this.component.length&&(this.component=!1),this.isInline=!this.component&&this.element.is("div"),this.picker=t(g.template),this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow),this._check_template(this.o.templates.rightArrow)&&this.picker.find(".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(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").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()};l.prototype={constructor:l,_resolveViewName:function(e){return t.each(g.viewModes,function(i,a){if(e===i||-1!==t.inArray(e,a.names))return e=i,!1}),e},_resolveDaysOfWeek:function(e){return t.isArray(e)||(e=e.split(/[,\s]*/)),t.map(e,Number)},_check_template:function(i){try{return i!==e&&""!==i&&((i.match(/[<>]/g)||[]).length<=0||t(i).length>0)}catch(t){return!1}},_process_options:function(e){this._o=t.extend({},this._o,e);var s=this.o=t.extend({},this._o),n=s.language;f[n]||(n=n.split("-")[0],f[n]||(n=c.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 r=g.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=g.parseDate(s.startDate,r,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=g.parseDate(s.endDate,r,s.language,s.assumeNearbyYear):s.endDate=1/0),s.daysOfWeekDisabled=this._resolveDaysOfWeek(s.daysOfWeekDisabled||[]),s.daysOfWeekHighlighted=this._resolveDaysOfWeek(s.daysOfWeekHighlighted||[]),s.datesDisabled=s.datesDisabled||[],t.isArray(s.datesDisabled)||(s.datesDisabled=s.datesDisabled.split(",")),s.datesDisabled=t.map(s.datesDisabled,function(t){return g.parseDate(t,r,s.language,s.assumeNearbyYear)});var o=String(s.orientation).toLowerCase().split(/\s+/g),l=s.orientation.toLowerCase();if(o=t.grep(o,function(t){return/^auto|left|right|top|bottom$/.test(t)}),s.orientation={x:"auto",y:"auto"},l&&"auto"!==l)if(1===o.length)switch(o[0]){case"top":case"bottom":s.orientation.y=o[0];break;case"left":case"right":s.orientation.x=o[0]}else l=t.grep(o,function(t){return/^left|right$/.test(t)}),s.orientation.x=l[0]||"auto",l=t.grep(o,function(t){return/^top|bottom$/.test(t)}),s.orientation.y=l[0]||"auto";else;if(s.defaultViewDate instanceof Date||"string"==typeof s.defaultViewDate)s.defaultViewDate=g.parseDate(s.defaultViewDate,r,s.language,s.assumeNearbyYear);else if(s.defaultViewDate){var h=s.defaultViewDate.year||(new Date).getFullYear(),u=s.defaultViewDate.month||0,d=s.defaultViewDate.day||1;s.defaultViewDate=i(h,u,d)}else s.defaultViewDate=a()},_events:[],_secondaryEvents:[],_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)}],[this.picker,".prev, .next",{click:t.proxy(this.navArrowsClick,this)}],[this.picker,".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 g.formatDate(i,e,this.o.language)},this)})},show:function(){if(!(this.inputField.prop("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},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(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.update(),this._trigger("changeDate"),this.o.autoclose&&this.hide()},setDates:function(){var e=t.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,e),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var e=t.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 g.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(),r=a.offset(),o=[0];this.element.parents().each(function(){var e=t(this).css("z-index");"auto"!==e&&0!==Number(e)&&o.push(Number(e))});var l=Math.max.apply(Math,o)+this.o.zIndexOffset,h=this.component?this.component.parent().offset():this.element.offset(),u=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),d=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),c=h.left-r.left,p=h.top-r.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&&(c-=e-d)):h.left<0?(this.picker.addClass("datepicker-orient-left"),c-=h.left-10):c+e>s?(this.picker.addClass("datepicker-orient-right"),c+=d-e):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left");var f=this.o.orientation.y;if("auto"===f&&(f=-n+p-i<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+f),"top"===f?p-=i+parseInt(this.picker.css("padding-top")):p+=u,this.o.rtl){var g=s-(c+d);this.picker.css({top:p,right:g,zIndex:l})}else this.picker.css({top:p,left:c,zIndex:l});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 g.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;)i+='<th class="dow',-1!==t.inArray(e,this.o.daysOfWeekDisabled)&&(i+=" disabled"),i+='">'+f[this.o.language].daysMin[e++%7]+"</th>";i+="</tr>",this.picker.find(".datepicker-days thead").append(i)}},fillMonths:function(){for(var t=this._utc_to_local(this.viewDate),e="",i=0;i<12;i++)e+='<span class="month'+(t&&t.getMonth()===i?" focused":"")+'">'+f[this.o.language].monthsShort[i]+"</span>";this.picker.find(".datepicker-months td").html(e)},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(),r=this.viewDate.getUTCMonth(),o=a();return e.getUTCFullYear()<n||e.getUTCFullYear()===n&&e.getUTCMonth()<r?i.push("old"):(e.getUTCFullYear()>n||e.getUTCFullYear()===n&&e.getUTCMonth()>r)&&i.push("new"),this.focusDate&&e.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&s(e,o)&&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,r,o,l){for(var h,u,d,c="",p=s/10,f=this.picker.find(i),g=Math.floor(n/s)*s,m=g+9*p,v=Math.floor(this.viewDate.getFullYear()/p)*p,y=t.map(this.dates,function(t){return Math.floor(t.getUTCFullYear()/p)*p}),w=g-p;w<=m+p;w+=p)h=[a],u=null,w===g-p?h.push("old"):w===m+p&&h.push("new"),-1!==t.inArray(w,y)&&h.push("active"),(w<r||w>o)&&h.push("disabled"),w===v&&h.push("focused"),l!==t.noop&&((d=l(new Date(w,0,1)))===e?d={}:"boolean"==typeof d?d={enabled:d}:"string"==typeof d&&(d={classes:d}),!1===d.enabled&&h.push("disabled"),d.classes&&(h=h.concat(d.classes.split(/\s+/))),d.tooltip&&(u=d.tooltip)),c+='<span class="'+h.join(" ")+'"'+(u?' title="'+u+'"':"")+">"+w+"</span>";f.find(".datepicker-switch").text(g+"-"+m),f.find("td").html(c)},fill:function(){var a,s,n=new Date(this.viewDate),r=n.getUTCFullYear(),o=n.getUTCMonth(),l=this.o.startDate!==-1/0?this.o.startDate.getUTCFullYear():-1/0,h=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,u=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,d=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,c=f[this.o.language].today||f.en.today||"",p=f[this.o.language].clear||f.en.clear||"",m=f[this.o.language].titleFormat||f.en.titleFormat;if(!isNaN(r)&&!isNaN(o)){this.picker.find(".datepicker-days .datepicker-switch").text(g.formatDate(n,m,this.o.language)),this.picker.find("tfoot .today").text(c).css("display",!0===this.o.todayBtn||"linked"===this.o.todayBtn?"table-cell":"none"),this.picker.find("tfoot .clear").text(p).css("display",!0===this.o.clearBtn?"table-cell":"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 v=i(r,o,0),y=v.getUTCDate();v.setUTCDate(y-(v.getUTCDay()-this.o.weekStart+7)%7);var w=new Date(v);v.getUTCFullYear()<100&&w.setUTCFullYear(v.getUTCFullYear()),w.setUTCDate(w.getUTCDate()+42),w=w.valueOf();for(var D,b,k=[];v.valueOf()<w;){if((D=v.getUTCDay())===this.o.weekStart&&(k.push("<tr>"),this.o.calendarWeeks)){var C=new Date(+v+(this.o.weekStart-D-7)%7*864e5),x=new Date(Number(C)+(11-C.getUTCDay())%7*864e5),S=new Date(Number(S=i(x.getUTCFullYear(),0,1))+(11-S.getUTCDay())%7*864e5),_=(x-S)/864e5/7+1;k.push('<td class="cw">'+_+"</td>")}(b=this.getClassNames(v)).push("day");var M=v.getUTCDate();this.o.beforeShowDay!==t.noop&&((s=this.o.beforeShowDay(this._utc_to_local(v)))===e?s={}:"boolean"==typeof s?s={enabled:s}:"string"==typeof s&&(s={classes:s}),!1===s.enabled&&b.push("disabled"),s.classes&&(b=b.concat(s.classes.split(/\s+/))),s.tooltip&&(a=s.tooltip),s.content&&(M=s.content)),b=t.isFunction(t.uniqueSort)?t.uniqueSort(b):t.unique(b),k.push('<td class="'+b.join(" ")+'"'+(a?' title="'+a+'"':"")+' data-date="'+v.getTime().toString()+'">'+M+"</td>"),a=null,D===this.o.weekEnd&&k.push("</tr>"),v.setUTCDate(v.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(k.join(""));var T=f[this.o.language].monthsTitle||f.en.monthsTitle||"Months",U=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?T:r).end().find("tbody span").removeClass("active");if(t.each(this.dates,function(t,e){e.getUTCFullYear()===r&&U.eq(e.getUTCMonth()).addClass("active")}),(r<l||r>u)&&U.addClass("disabled"),r===l&&U.slice(0,h).addClass("disabled"),r===u&&U.slice(d+1).addClass("disabled"),this.o.beforeShowMonth!==t.noop){var E=this;t.each(U,function(i,a){var s=new Date(r,i,1),n=E.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"),n.classes&&t(a).addClass(n.classes),n.tooltip&&t(a).prop("title",n.tooltip)})}this._fill_yearsView(".datepicker-years","year",10,r,l,u,this.o.beforeShowYear),this._fill_yearsView(".datepicker-decades","decade",100,r,l,u,this.o.beforeShowDecade),this._fill_yearsView(".datepicker-centuries","century",1e3,r,l,u,this.o.beforeShowCentury)}},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,r=this.o.startDate!==-1/0?this.o.startDate.getUTCMonth():-1/0,o=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,l=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,h=1;switch(this.viewMode){case 0:t=a<=n&&s<=r,e=a>=o&&s>=l;break;case 4:h*=10;case 3:h*=10;case 2:h*=10;case 1:t=Math.floor(a/h)*h<=n,e=Math.floor(a/h)*h+h>=o}this.picker.find(".prev").toggleClass("disabled",t),this.picker.find(".next").toggleClass("disabled",e)}},click:function(e){var s,n,r;e.preventDefault(),e.stopPropagation(),(s=t(e.target)).hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1),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.hasClass("month")||s.hasClass("year")||s.hasClass("decade")||s.hasClass("century"))&&(this.viewDate.setUTCDate(1),1,1===this.viewMode?(r=s.parent().find("span").index(s),n=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(r)):(r=0,n=Number(s.text()),this.viewDate.setUTCFullYear(n)),this._trigger(g.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(i(n,r,1)):(this.setViewMode(this.viewMode-1),this.fill())),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*g.viewModes[this.viewMode].navStep),this.viewDate=this.moveMonth(this.viewDate,i),this._trigger(g.viewModes[this.viewMode].e,this.viewDate),this.fill()},_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)):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;var i;if(!e)return t;var a,s,n=new Date(t.valueOf()),r=n.getUTCDate(),o=n.getUTCMonth(),l=Math.abs(e);if(e=e>0?1:-1,1===l)s=-1===e?function(){return n.getUTCMonth()===o}:function(){return n.getUTCMonth()!==a},a=o+e,n.setUTCMonth(a),a=(a+12)%12;else{for(var h=0;h<l;h++)n=this.moveMonth(n,e);a=n.getUTCMonth(),n.setUTCDate(r),s=function(){return a!==n.getUTCMonth()}}for(;s();)n.setUTCDate(--r),n.setUTCMonth(a);return n},moveYear:function(t,e){return this.moveMonth(t,12*e)},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(t){if(this.picker.is(":visible")){var e,i,a=!1,s=this.focusDate||this.viewDate;switch(t.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide(),t.preventDefault(),t.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;e=37===t.keyCode||38===t.keyCode?-1:1,0===this.viewMode?t.ctrlKey?(i=this.moveAvailableDate(s,e,"moveYear"))&&this._trigger("changeYear",this.viewDate):t.shiftKey?(i=this.moveAvailableDate(s,e,"moveMonth"))&&this._trigger("changeMonth",this.viewDate):37===t.keyCode||39===t.keyCode?i=this.moveAvailableDate(s,e,"moveDay"):this.weekOfDateIsDisabled(s)||(i=this.moveAvailableDate(s,e,"moveWeek")):1===this.viewMode?(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(s,e,"moveMonth")):2===this.viewMode&&(38!==t.keyCode&&40!==t.keyCode||(e*=4),i=this.moveAvailableDate(s,e,"moveYear")),i&&(this.focusDate=this.viewDate=i,this.setValue(),this.fill(),t.preventDefault());break;case 13:if(!this.o.forceParse)break;s=this.focusDate||this.dates.get(-1)||this.viewDate,this.o.keyboardNavigation&&(this._toggle_multidate(s),a=!0),this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.setValue(),this.fill(),this.picker.is(":visible")&&(t.preventDefault(),t.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill(),this.hide()}a&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))}else 40!==t.keyCode&&27!==t.keyCode||(this.show(),t.stopPropagation())},setViewMode:function(t){this.viewMode=t,this.picker.children("div").hide().filter(".datepicker-"+g.viewModes[this.viewMode].clsName).show(),this.updateNavArrows(),this._trigger("changeViewMode",new Date(this.viewDate))}};var h=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,d.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()};h.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)})},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,r=t.inArray(i.target,this.inputs),o=r-1,l=r+1,h=this.inputs.length;if(-1!==r){if(t.each(this.pickers,function(t,e){e.getUTCDate()||e!==a&&n||e.setUTCDate(s)}),s<this.dates[o])for(;o>=0&&s<this.dates[o];)this.pickers[o--].setUTCDate(s);else if(s>this.dates[l])for(;l<h&&s>this.dates[l];)this.pickers[l++].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 u=t.fn.datepicker,d=function(i){var a,s=Array.apply(null,arguments);if(s.shift(),this.each(function(){var e=t(this),n=e.data("datepicker"),r="object"==typeof i&&i;if(!n){var o=function(e,i){var a=t(e).data(),s={},n=new RegExp("^"+i.toLowerCase()+"([A-Z])");function r(t,e){return e.toLowerCase()}for(var o in i=new RegExp("^"+i.toLowerCase()),a)i.test(o)&&(s[o.replace(n,r)]=a[o]);return s}(this,"date"),u=function(e){var i={};if(f[e]||(e=e.split("-")[0],f[e])){var a=f[e];return t.each(p,function(t,e){e in a&&(i[e]=a[e])}),i}}(t.extend({},c,o,r).language),d=t.extend({},c,u,o,r);e.hasClass("input-daterange")||d.inputs?(t.extend(d,{inputs:d.inputs||e.find("input").toArray()}),n=new h(this,d)):n=new l(this,d),e.data("datepicker",n)}"string"==typeof i&&"function"==typeof n[i]&&(a=n[i].apply(n,s))}),a===e||a instanceof l||a instanceof h)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return a};t.fn.datepicker=d;var c=t.fn.datepicker.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",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},p=t.fn.datepicker.locale_opts=["format","rtl","weekStart"];t.fn.datepicker.Constructor=l;var f=t.fn.datepicker.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"}},g={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 new Error("Invalid date format.");return{separators:e,parts:i}},parseDate:function(i,s,n,r){if(!i)return e;if(i instanceof Date)return i;if("string"==typeof s&&(s=g.parseFormat(s)),s.toValue)return s.toValue(i,s,n);var o,h,u,d,c,p={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},m={yesterday:"-1d",today:"+0d",tomorrow:"+1d"};if(i in m&&(i=m[i]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(i)){for(o=i.match(/([\-+]\d+)([dmwy])/gi),i=new Date,d=0;d<o.length;d++)h=o[d].match(/([\-+]\d+)([dmwy])/i),u=Number(h[1]),c=p[h[2].toLowerCase()],i=l.prototype[c](i,u);return l.prototype._zero_utc_time(i)}o=i&&i.match(this.nonpunctuation)||[];var v,y,w={},D=["yyyy","yy","M","MM","m","mm","d","dd"],b={yyyy:function(t,e){return t.setUTCFullYear(r?(!0===(a=r)&&(a=10),(i=e)<100&&(i+=2e3)>(new Date).getFullYear()+a&&(i-=100),i):e);var i,a},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)}};b.yy=b.yyyy,b.M=b.MM=b.mm=b.m,b.dd=b.d,i=a();var k=s.parts.slice();function C(){var t=this.slice(0,o[d].length),e=o[d].slice(0,t.length);return t.toLowerCase()===e.toLowerCase()}if(o.length!==k.length&&(k=t(k).filter(function(e,i){return-1!==t.inArray(i,D)}).toArray()),o.length===k.length){var x,S,_;for(d=0,x=k.length;d<x;d++){if(v=parseInt(o[d],10),h=k[d],isNaN(v))switch(h){case"MM":y=t(f[n].months).filter(C),v=t.inArray(y[0],f[n].months)+1;break;case"M":y=t(f[n].monthsShort).filter(C),v=t.inArray(y[0],f[n].monthsShort)+1}w[h]=v}for(d=0;d<D.length;d++)(_=D[d])in w&&!isNaN(w[_])&&(S=new Date(i),b[_](S,w[_]),isNaN(S)||(i=S))}return i},formatDate:function(e,i,a){if(!e)return"";if("string"==typeof i&&(i=g.parseFormat(i)),i.toDisplay)return i.toDisplay(e,i,a);var s={d:e.getUTCDate(),D:f[a].daysShort[e.getUTCDay()],DD:f[a].days[e.getUTCDay()],m:e.getUTCMonth()+1,M:f[a].monthsShort[e.getUTCMonth()],MM:f[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),r=0,o=i.parts.length;r<=o;r++)n.length&&e.push(n.shift()),e.push(s[i.parts[r]]);return e.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"></th></tr><tr><th class="prev">'+c.templates.leftArrow+'</th><th colspan="5" class="datepicker-switch"></th><th class="next">'+c.templates.rightArrow+"</th></tr></thead>",contTemplate:'<tbody><tr><td colspan="7"></td></tr></tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"></th></tr><tr><th colspan="7" class="clear"></th></tr></tfoot>'};g.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+g.headTemplate+"<tbody></tbody>"+g.footTemplate+'</table></div><div class="datepicker-months"><table class="table-condensed">'+g.headTemplate+g.contTemplate+g.footTemplate+'</table></div><div class="datepicker-years"><table class="table-condensed">'+g.headTemplate+g.contTemplate+g.footTemplate+'</table></div><div class="datepicker-decades"><table class="table-condensed">'+g.headTemplate+g.contTemplate+g.footTemplate+'</table></div><div class="datepicker-centuries"><table class="table-condensed">'+g.headTemplate+g.contTemplate+g.footTemplate+"</table></div></div>",t.fn.datepicker.DPGlobal=g,t.fn.datepicker.noConflict=function(){return t.fn.datepicker=u,this},t.fn.datepicker.version="1.7.1",t.fn.datepicker.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(),d.call(i,"show"))}),t(function(){d.call(t('[data-provide="datepicker-inline"]'))})},s=[i(2)],void 0===(n="function"==typeof(a=r)?a.apply(e,s):a)||(t.exports=n)},function(t,e){t.exports=jQuery},function(t,e,i){"use strict";var a=i(4),s=i.n(a);jQuery&&"undefined"!=typeof jQuery&&(jQuery.fn.customSlider=function(t){var e=" Please consult the documentation for more information: https://designrevision.com/docs/shards";if(void 0===t)throw new Error("Shards's custom slider component requires a configuration object."+e);if([{prop:"start",example:"start: [25, 70]"},{prop:"range",example:"range: { 'min': 0, 'max': 100 }"}].map(function(i){if(void 0===t[i.prop])throw new Error("Shards's custom slider component requires a `"+i.prop+"` property passed in the configuration object. For example: `"+i.example+"`"+e)}),this.length&&void 0!==this[0])for(var i=0;i<this.length;i++){s.a.create(this[i],t);var a=jQuery(this[i]).find(".custom-slider-input");if(!a.length||a.length<t.start.length)throw new Error("You need to provide a .custom-slider-input for each start value.");var n=this;jQuery.each(a,function(e,s){e!==t.start.length&&n[i].noUiSlider.on("update",function(t,i){a[e].value=t[e]})})}return this})},function(t,e,i){var a,s,n;s=[],void 0===(n="function"==typeof(a=function(){"use strict";var t="10.1.0";function e(t){t.preventDefault()}function i(t){return"number"==typeof t&&!isNaN(t)&&isFinite(t)}function a(t,e,i){i>0&&(r(t,e),setTimeout(function(){o(t,e)},i))}function s(t){return Array.isArray(t)?t:[t]}function n(t){var e=(t=String(t)).split(".");return e.length>1?e[1].length:0}function r(t,e){t.classList?t.classList.add(e):t.className+=" "+e}function o(t,e){t.classList?t.classList.remove(e):t.className=t.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")}function l(t){var e=void 0!==window.pageXOffset,i="CSS1Compat"===(t.compatMode||"");return{x:e?window.pageXOffset:i?t.documentElement.scrollLeft:t.body.scrollLeft,y:e?window.pageYOffset:i?t.documentElement.scrollTop:t.body.scrollTop}}function h(t,e){return 100/(e-t)}function u(t,e){return 100*e/(t[1]-t[0])}function d(t,e){for(var i=1;t>=e[i];)i+=1;return i}function c(t,e,i){if(i>=t.slice(-1)[0])return 100;var a,s,n,r,o,l,c=d(i,t);return a=t[c-1],s=t[c],n=e[c-1],r=e[c],n+(l=i,u(o=[a,s],o[0]<0?l+Math.abs(o[0]):l-o[0])/h(n,r))}function p(t,e,i,a){if(100===a)return a;var s,n,r,o,l=d(a,t);return i?a-(s=t[l-1])>((n=t[l])-s)/2?n:s:e[l-1]?t[l-1]+(r=a-t[l-1],o=e[l-1],Math.round(r/o)*o):a}function f(e,a,s){var n;if("number"==typeof a&&(a=[a]),"[object Array]"!==Object.prototype.toString.call(a))throw new Error("noUiSlider ("+t+"): 'range' contains invalid value.");if(!i(n="min"===e?0:"max"===e?100:parseFloat(e))||!i(a[0]))throw new Error("noUiSlider ("+t+"): 'range' value isn't numeric.");s.xPct.push(n),s.xVal.push(a[0]),n?s.xSteps.push(!isNaN(a[1])&&a[1]):isNaN(a[1])||(s.xSteps[0]=a[1]),s.xHighestCompleteStep.push(0)}function g(t,e,i){if(!e)return!0;i.xSteps[t]=u([i.xVal[t],i.xVal[t+1]],e)/h(i.xPct[t],i.xPct[t+1]);var a=(i.xVal[t+1]-i.xVal[t])/i.xNumSteps[t],s=Math.ceil(Number(a.toFixed(3))-1),n=i.xVal[t]+i.xNumSteps[t]*s;i.xHighestCompleteStep[t]=n}function m(t,e,i){this.xPct=[],this.xVal=[],this.xSteps=[i||!1],this.xNumSteps=[!1],this.xHighestCompleteStep=[],this.snap=e;var a,s=[];for(a in t)t.hasOwnProperty(a)&&s.push([t[a],a]);for(s.length&&"object"==typeof s[0][0]?s.sort(function(t,e){return t[0][0]-e[0][0]}):s.sort(function(t,e){return t[0]-e[0]}),a=0;a<s.length;a++)f(s[a][1],s[a][0],this);for(this.xNumSteps=this.xSteps.slice(0),a=0;a<this.xNumSteps.length;a++)g(a,this.xNumSteps[a],this)}m.prototype.getMargin=function(e){var i=this.xNumSteps[0];if(i&&e/i%1!=0)throw new Error("noUiSlider ("+t+"): 'limit', 'margin' and 'padding' must be divisible by step.");return 2===this.xPct.length&&u(this.xVal,e)},m.prototype.toStepping=function(t){return t=c(this.xVal,this.xPct,t)},m.prototype.fromStepping=function(t){return function(t,e,i){if(i>=100)return t.slice(-1)[0];var a,s,n,r,o,l=d(i,e);return a=t[l-1],s=t[l],n=e[l-1],r=e[l],o=[a,s],(i-n)*h(n,r)*(o[1]-o[0])/100+o[0]}(this.xVal,this.xPct,t)},m.prototype.getStep=function(t){return t=p(this.xPct,this.xSteps,this.snap,t)},m.prototype.getNearbySteps=function(t){var e=d(t,this.xPct);return{stepBefore:{startValue:this.xVal[e-2],step:this.xNumSteps[e-2],highestStep:this.xHighestCompleteStep[e-2]},thisStep:{startValue:this.xVal[e-1],step:this.xNumSteps[e-1],highestStep:this.xHighestCompleteStep[e-1]},stepAfter:{startValue:this.xVal[e-0],step:this.xNumSteps[e-0],highestStep:this.xHighestCompleteStep[e-0]}}},m.prototype.countStepDecimals=function(){var t=this.xNumSteps.map(n);return Math.max.apply(null,t)},m.prototype.convert=function(t){return this.getStep(this.toStepping(t))};var v={to:function(t){return void 0!==t&&t.toFixed(2)},from:Number};function y(e){if("object"==typeof(i=e)&&"function"==typeof i.to&&"function"==typeof i.from)return!0;var i;throw new Error("noUiSlider ("+t+"): 'format' requires 'to' and 'from' methods.")}function w(e,a){if(!i(a))throw new Error("noUiSlider ("+t+"): 'step' is not numeric.");e.singleStep=a}function D(e,i){if("object"!=typeof i||Array.isArray(i))throw new Error("noUiSlider ("+t+"): 'range' is not an object.");if(void 0===i.min||void 0===i.max)throw new Error("noUiSlider ("+t+"): Missing 'min' or 'max' in 'range'.");if(i.min===i.max)throw new Error("noUiSlider ("+t+"): 'range' 'min' and 'max' cannot be equal.");e.spectrum=new m(i,e.snap,e.singleStep)}function b(e,i){if(i=s(i),!Array.isArray(i)||!i.length)throw new Error("noUiSlider ("+t+"): 'start' option is incorrect.");e.handles=i.length,e.start=i}function k(e,i){if(e.snap=i,"boolean"!=typeof i)throw new Error("noUiSlider ("+t+"): 'snap' option must be a boolean.")}function C(e,i){if(e.animate=i,"boolean"!=typeof i)throw new Error("noUiSlider ("+t+"): 'animate' option must be a boolean.")}function x(e,i){if(e.animationDuration=i,"number"!=typeof i)throw new Error("noUiSlider ("+t+"): 'animationDuration' option must be a number.")}function S(e,i){var a,s=[!1];if("lower"===i?i=[!0,!1]:"upper"===i&&(i=[!1,!0]),!0===i||!1===i){for(a=1;a<e.handles;a++)s.push(i);s.push(!1)}else{if(!Array.isArray(i)||!i.length||i.length!==e.handles+1)throw new Error("noUiSlider ("+t+"): 'connect' option doesn't match handle count.");s=i}e.connect=s}function _(e,i){switch(i){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider ("+t+"): 'orientation' option is invalid.")}}function M(e,a){if(!i(a))throw new Error("noUiSlider ("+t+"): 'margin' option must be numeric.");if(0!==a&&(e.margin=e.spectrum.getMargin(a),!e.margin))throw new Error("noUiSlider ("+t+"): 'margin' option is only supported on linear sliders.")}function T(e,a){if(!i(a))throw new Error("noUiSlider ("+t+"): 'limit' option must be numeric.");if(e.limit=e.spectrum.getMargin(a),!e.limit||e.handles<2)throw new Error("noUiSlider ("+t+"): 'limit' option is only supported on linear sliders with 2 or more handles.")}function U(e,a){if(!i(a))throw new Error("noUiSlider ("+t+"): 'padding' option must be numeric.");if(0!==a){if(e.padding=e.spectrum.getMargin(a),!e.padding)throw new Error("noUiSlider ("+t+"): 'padding' option is only supported on linear sliders.");if(e.padding<0)throw new Error("noUiSlider ("+t+"): 'padding' option must be a positive number.");if(e.padding>=50)throw new Error("noUiSlider ("+t+"): 'padding' option must be less than half the range.")}}function E(e,i){switch(i){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider ("+t+"): 'direction' option was not recognized.")}}function N(e,i){if("string"!=typeof i)throw new Error("noUiSlider ("+t+"): 'behaviour' must be a string containing options.");var a=i.indexOf("tap")>=0,s=i.indexOf("drag")>=0,n=i.indexOf("fixed")>=0,r=i.indexOf("snap")>=0,o=i.indexOf("hover")>=0;if(n){if(2!==e.handles)throw new Error("noUiSlider ("+t+"): 'fixed' behaviour must be used with 2 handles");M(e,e.start[1]-e.start[0])}e.events={tap:a||r,drag:s,fixed:n,snap:r,hover:o}}function V(e,i){if(e.multitouch=i,"boolean"!=typeof i)throw new Error("noUiSlider ("+t+"): 'multitouch' option must be a boolean.")}function F(e,i){if(!1!==i)if(!0===i){e.tooltips=[];for(var a=0;a<e.handles;a++)e.tooltips.push(!0)}else{if(e.tooltips=s(i),e.tooltips.length!==e.handles)throw new Error("noUiSlider ("+t+"): must pass a formatter for all handles.");e.tooltips.forEach(function(e){if("boolean"!=typeof e&&("object"!=typeof e||"function"!=typeof e.to))throw new Error("noUiSlider ("+t+"): 'tooltips' must be passed a formatter or 'false'.")})}}function O(t,e){t.ariaFormat=e,y(e)}function A(t,e){t.format=e,y(e)}function Y(e,i){if(void 0!==i&&"string"!=typeof i&&!1!==i)throw new Error("noUiSlider ("+t+"): 'cssPrefix' must be a string or `false`.");e.cssPrefix=i}function P(e,i){if(void 0!==i&&"object"!=typeof i)throw new Error("noUiSlider ("+t+"): 'cssClasses' must be an object.");if("string"==typeof e.cssPrefix)for(var a in e.cssClasses={},i)i.hasOwnProperty(a)&&(e.cssClasses[a]=e.cssPrefix+i[a]);else e.cssClasses=i}function W(e,i){if(!0!==i&&!1!==i)throw new Error("noUiSlider ("+t+"): 'useRequestAnimationFrame' option should be true (default) or false.");e.useRequestAnimationFrame=i}function z(e){var i={margin:0,limit:0,padding:0,animate:!0,animationDuration:300,ariaFormat:v,format:v},a={step:{r:!1,t:w},start:{r:!0,t:b},connect:{r:!0,t:S},direction:{r:!0,t:E},snap:{r:!1,t:k},animate:{r:!1,t:C},animationDuration:{r:!1,t:x},range:{r:!0,t:D},orientation:{r:!1,t:_},margin:{r:!1,t:M},limit:{r:!1,t:T},padding:{r:!1,t:U},behaviour:{r:!0,t:N},multitouch:{r:!0,t:V},ariaFormat:{r:!1,t:O},format:{r:!1,t:A},tooltips:{r:!1,t:F},cssPrefix:{r:!1,t:Y},cssClasses:{r:!1,t:P},useRequestAnimationFrame:{r:!1,t:W}},s={connect:!1,direction:"ltr",behaviour:"tap",multitouch:!1,orientation:"horizontal",cssPrefix:"noUi-",cssClasses:{target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",ltr:"ltr",rtl:"rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},useRequestAnimationFrame:!0};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(a).forEach(function(n){if(void 0===e[n]&&void 0===s[n]){if(a[n].r)throw new Error("noUiSlider ("+t+"): '"+n+"' is required.");return!0}a[n].t(i,void 0===e[n]?s[n]:e[n])}),i.pips=e.pips;var n=[["left","top"],["right","bottom"]];return i.style=n[i.dir][i.ort],i.styleOposite=n[i.dir?0:1][i.ort],i}function j(i,n,h){var u,d,c,p,f,g,m,v,y=window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"},w=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var t=!1;try{var e=Object.defineProperty({},"passive",{get:function(){t=!0}});window.addEventListener("test",null,e)}catch(t){}return t}(),D=i,b=[],k=[],C=0,x=n.spectrum,S=[],_={},M=i.ownerDocument,T=M.documentElement,U=M.body;function E(t,e){var i=M.createElement("div");return e&&r(i,e),t.appendChild(i),i}function N(t,e){return!!e&&E(t,n.cssClasses.connect)}function V(t,e){return!!n.tooltips[e]&&E(t.firstChild,n.cssClasses.tooltip)}function F(t,e,i){var a=M.createElement("div"),s=[n.cssClasses.valueNormal,n.cssClasses.valueLarge,n.cssClasses.valueSub],o=[n.cssClasses.markerNormal,n.cssClasses.markerLarge,n.cssClasses.markerSub],l=[n.cssClasses.valueHorizontal,n.cssClasses.valueVertical],h=[n.cssClasses.markerHorizontal,n.cssClasses.markerVertical];function u(t,e){var i=e===n.cssClasses.value,a=i?s:o;return e+" "+(i?l:h)[n.ort]+" "+a[t]}return r(a,n.cssClasses.pips),r(a,0===n.ort?n.cssClasses.pipsHorizontal:n.cssClasses.pipsVertical),Object.keys(t).forEach(function(s){!function(t,s){s[1]=s[1]&&e?e(s[0],s[1]):s[1];var r=E(a,!1);r.className=u(s[1],n.cssClasses.marker),r.style[n.style]=t+"%",s[1]&&((r=E(a,!1)).className=u(s[1],n.cssClasses.value),r.style[n.style]=t+"%",r.innerText=i.to(s[0]))}(s,t[s])}),a}function O(){var t;f&&((t=f).parentElement.removeChild(t),f=null)}function A(e){O();var i,a,s,n,r,o,l,h,u,d,c=e.mode,p=e.density||1,g=e.filter||!1,m=function(e,i,a){if("range"===e||"steps"===e)return x.xVal;if("count"===e){if(!i)throw new Error("noUiSlider ("+t+"): 'values' required for mode 'count'.");var s,n=100/(i-1),r=0;for(i=[];(s=r++*n)<=100;)i.push(s);e="positions"}return"positions"===e?i.map(function(t){return x.fromStepping(a?x.getStep(t):t)}):"values"===e?a?i.map(function(t){return x.fromStepping(x.getStep(x.toStepping(t)))}):i:void 0}(c,e.values||!1,e.stepped||!1),v=(i=p,a=c,s=m,r={},o=x.xVal[0],l=x.xVal[x.xVal.length-1],h=!1,u=!1,d=0,n=s.slice().sort(function(t,e){return t-e}),(s=n.filter(function(t){return!this[t]&&(this[t]=!0)},{}))[0]!==o&&(s.unshift(o),h=!0),s[s.length-1]!==l&&(s.push(l),u=!0),s.forEach(function(t,e){var n,o,l,c,p,f,g,m,v,y=t,w=s[e+1];if("steps"===a&&(n=x.xNumSteps[e]),n||(n=w-y),!1!==y&&void 0!==w)for(n=Math.max(n,1e-7),o=y;o<=w;o=(o+n).toFixed(7)/1){for(g=(p=(c=x.toStepping(o))-d)/i,v=p/(m=Math.round(g)),l=1;l<=m;l+=1)r[(d+l*v).toFixed(5)]=["x",0];f=s.indexOf(o)>-1?1:"steps"===a?2:0,!e&&h&&(f=0),o===w&&u||(r[c.toFixed(5)]=[o,f]),d=c}}),r),y=e.format||{to:Math.round};return f=D.appendChild(F(v,g,y))}function Y(){var t=u.getBoundingClientRect(),e="offset"+["Width","Height"][n.ort];return 0===n.ort?t.width||u[e]:t.height||u[e]}function P(t,e,i,a){var s=function(s){return!D.hasAttribute("disabled")&&(r=D,o=n.cssClasses.tap,(r.classList?!r.classList.contains(o):!new RegExp("\\b"+o+"\\b").test(r.className))&&(!!(s=function(t,e,i){var a,s,r=0===t.type.indexOf("touch"),o=0===t.type.indexOf("mouse"),h=0===t.type.indexOf("pointer");0===t.type.indexOf("MSPointer")&&(h=!0);if(r&&n.multitouch){var u=function(t){return t.target===i||i.contains(t.target)};if("touchstart"===t.type){var d=Array.prototype.filter.call(t.touches,u);if(d.length>1)return!1;a=d[0].pageX,s=d[0].pageY}else{var c=Array.prototype.find.call(t.changedTouches,u);if(!c)return!1;a=c.pageX,s=c.pageY}}else if(r){if(t.touches.length>1)return!1;a=t.changedTouches[0].pageX,s=t.changedTouches[0].pageY}e=e||l(M),(o||h)&&(a=t.clientX+e.x,s=t.clientY+e.y);return t.pageOffset=e,t.points=[a,s],t.cursor=o||h,t}(s,a.pageOffset,a.target||e))&&(!(t===y.start&&void 0!==s.buttons&&s.buttons>1)&&((!a.hover||!s.buttons)&&(w||s.preventDefault(),s.calcPoint=s.points[n.ort],void i(s,a))))));var r,o},r=[];return t.split(" ").forEach(function(t){e.addEventListener(t,s,!!w&&{passive:!0}),r.push([t,s])}),r}function W(t){var e,i,a,s,r,o,h=100*(t-(e=u,i=n.ort,a=e.getBoundingClientRect(),s=e.ownerDocument,r=s.documentElement,o=l(s),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(o.x=0),i?a.top+o.y-r.clientTop:a.left+o.x-r.clientLeft))/Y();return n.dir?100-h:h}function j(t,e,i,a){var s=i.slice(),n=[!t,t],r=[t,!t];a=a.slice(),t&&a.reverse(),a.length>1?a.forEach(function(t,i){var a=Q(s,t,s[t]+e,n[i],r[i],!1);!1===a?e=0:(e=a-s[t],s[t]=a)}):n=r=[!0];var o=!1;a.forEach(function(t,a){o=K(t,i[t]+e,n[a],r[a])||o}),o&&a.forEach(function(t){L("update",t),L("slide",t)})}function L(t,e,i){Object.keys(_).forEach(function(a){var s=a.split(".")[0];t===s&&_[a].forEach(function(t){t.call(p,S.map(n.format.to),e,S.slice(),i||!1,b.slice())})})}function H(t,e){"mouseout"===t.type&&"HTML"===t.target.nodeName&&null===t.relatedTarget&&R(t,e)}function I(t,e){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===t.buttons&&0!==e.buttonsProperty)return R(t,e);var i=(n.dir?-1:1)*(t.calcPoint-e.startCalcPoint);j(i>0,100*i/e.baseSize,e.locations,e.handleNumbers)}function R(t,i){i.handle&&(o(i.handle,n.cssClasses.active),C-=1),i.listeners.forEach(function(t){T.removeEventListener(t[0],t[1])}),0===C&&(o(D,n.cssClasses.drag),$(),t.cursor&&(U.style.cursor="",U.removeEventListener("selectstart",e))),i.handleNumbers.forEach(function(t){L("change",t),L("set