(function (root, factory){
if(typeof define==='function'&&define.amd){
define(['moment', 'jquery'], function (moment, jquery){
if(!jquery.fn) jquery.fn={};
if(typeof moment!=='function'&&moment.hasOwnProperty('default')) moment=moment['default']
return factory(moment, jquery);
});
}else if(typeof module==='object'&&module.exports){
var jQuery=(typeof window!='undefined') ? window.jQuery:undefined;
if(!jQuery){
jQuery=require('jquery');
if(!jQuery.fn) jQuery.fn={};}
var moment=(typeof window!='undefined'&&typeof window.moment!='undefined') ? window.moment:require('moment');
module.exports=factory(moment, jQuery);
}else{
root.daterangepicker=factory(root.moment, root.jQuery);
}}(this, function(moment, $){
var DateRangePicker=function(element, options, cb){
this.parentEl='body';
this.element=$(element);
this.startDate=moment().startOf('day');
this.endDate=moment().endOf('day');
this.minDate=false;
this.maxDate=false;
this.maxSpan=false;
this.autoApply=false;
this.singleDatePicker=false;
this.showDropdowns=false;
this.minYear=moment().subtract(100, 'year').format('YYYY');
this.maxYear=moment().add(100, 'year').format('YYYY');
this.showWeekNumbers=false;
this.showISOWeekNumbers=false;
this.showCustomRangeLabel=true;
this.timePicker=false;
this.timePicker24Hour=false;
this.timePickerIncrement=1;
this.timePickerSeconds=false;
this.linkedCalendars=true;
this.autoUpdateInput=true;
this.alwaysShowCalendars=false;
this.ranges={};
this.opens='right';
if(this.element.hasClass('pull-right'))
this.opens='left';
this.drops='down';
if(this.element.hasClass('dropup'))
this.drops='up';
this.buttonClasses='btn btn-sm';
this.applyButtonClasses='btn-primary';
this.cancelButtonClasses='btn-default';
this.locale={
direction: 'ltr',
format: moment.localeData().longDateFormat('L'),
separator: ' - ',
applyLabel: 'Apply',
cancelLabel: 'Cancel',
weekLabel: 'W',
customRangeLabel: 'Custom Range',
daysOfWeek: moment.weekdaysMin(),
monthNames: moment.monthsShort(),
firstDay: moment.localeData().firstDayOfWeek()
};
this.callback=function(){ };
this.isShowing=false;
this.leftCalendar={};
this.rightCalendar={};
if(typeof options!=='object'||options===null)
options={};
options=$.extend(this.element.data(), options);
if(typeof options.template!=='string'&&!(options.template instanceof $))
options.template =
'<div class="daterangepicker">' +
'<div class="ranges"></div>' +
'<div class="drp-calendar left">' +
'<div class="calendar-table"></div>' +
'<div class="calendar-time"></div>' +
'</div>' +
'<div class="drp-calendar right">' +
'<div class="calendar-table"></div>' +
'<div class="calendar-time"></div>' +
'</div>' +
'<div class="drp-buttons">' +
'<span class="drp-selected"></span>' +
'<button class="cancelBtn" type="button"></button>' +
'<button class="applyBtn" disabled="disabled" type="button"></button> ' +
'</div>' +
'</div>';
this.parentEl=(options.parentEl&&$(options.parentEl).length) ? $(options.parentEl):$(this.parentEl);
this.container=$(options.template).appendTo(this.parentEl);
if(typeof options.locale==='object'){
if(typeof options.locale.direction==='string')
this.locale.direction=options.locale.direction;
if(typeof options.locale.format==='string')
this.locale.format=options.locale.format;
if(typeof options.locale.separator==='string')
this.locale.separator=options.locale.separator;
if(typeof options.locale.daysOfWeek==='object')
this.locale.daysOfWeek=options.locale.daysOfWeek.slice();
if(typeof options.locale.monthNames==='object')
this.locale.monthNames=options.locale.monthNames.slice();
if(typeof options.locale.firstDay==='number')
this.locale.firstDay=options.locale.firstDay;
if(typeof options.locale.applyLabel==='string')
this.locale.applyLabel=options.locale.applyLabel;
if(typeof options.locale.cancelLabel==='string')
this.locale.cancelLabel=options.locale.cancelLabel;
if(typeof options.locale.weekLabel==='string')
this.locale.weekLabel=options.locale.weekLabel;
if(typeof options.locale.customRangeLabel==='string'){
var elem=document.createElement('textarea');
elem.innerHTML=options.locale.customRangeLabel;
var rangeHtml=elem.value;
this.locale.customRangeLabel=rangeHtml;
}}
this.container.addClass(this.locale.direction);
if(typeof options.startDate==='string')
this.startDate=moment(options.startDate, this.locale.format);
if(typeof options.endDate==='string')
this.endDate=moment(options.endDate, this.locale.format);
if(typeof options.minDate==='string')
this.minDate=moment(options.minDate, this.locale.format);
if(typeof options.maxDate==='string')
this.maxDate=moment(options.maxDate, this.locale.format);
if(typeof options.startDate==='object')
this.startDate=moment(options.startDate);
if(typeof options.endDate==='object')
this.endDate=moment(options.endDate);
if(typeof options.minDate==='object')
this.minDate=moment(options.minDate);
if(typeof options.maxDate==='object')
this.maxDate=moment(options.maxDate);
if(this.minDate&&this.startDate.isBefore(this.minDate))
this.startDate=this.minDate.clone();
if(this.maxDate&&this.endDate.isAfter(this.maxDate))
this.endDate=this.maxDate.clone();
if(typeof options.applyButtonClasses==='string')
this.applyButtonClasses=options.applyButtonClasses;
if(typeof options.applyClass==='string')
this.applyButtonClasses=options.applyClass;
if(typeof options.cancelButtonClasses==='string')
this.cancelButtonClasses=options.cancelButtonClasses;
if(typeof options.cancelClass==='string')
this.cancelButtonClasses=options.cancelClass;
if(typeof options.maxSpan==='object')
this.maxSpan=options.maxSpan;
if(typeof options.dateLimit==='object')
this.maxSpan=options.dateLimit;
if(typeof options.opens==='string')
this.opens=options.opens;
if(typeof options.drops==='string')
this.drops=options.drops;
if(typeof options.showWeekNumbers==='boolean')
this.showWeekNumbers=options.showWeekNumbers;
if(typeof options.showISOWeekNumbers==='boolean')
this.showISOWeekNumbers=options.showISOWeekNumbers;
if(typeof options.buttonClasses==='string')
this.buttonClasses=options.buttonClasses;
if(typeof options.buttonClasses==='object')
this.buttonClasses=options.buttonClasses.join(' ');
if(typeof options.showDropdowns==='boolean')
this.showDropdowns=options.showDropdowns;
if(typeof options.minYear==='number')
this.minYear=options.minYear;
if(typeof options.maxYear==='number')
this.maxYear=options.maxYear;
if(typeof options.showCustomRangeLabel==='boolean')
this.showCustomRangeLabel=options.showCustomRangeLabel;
if(typeof options.singleDatePicker==='boolean'){
this.singleDatePicker=options.singleDatePicker;
if(this.singleDatePicker)
this.endDate=this.startDate.clone();
}
if(typeof options.timePicker==='boolean')
this.timePicker=options.timePicker;
if(typeof options.timePickerSeconds==='boolean')
this.timePickerSeconds=options.timePickerSeconds;
if(typeof options.timePickerIncrement==='number')
this.timePickerIncrement=options.timePickerIncrement;
if(typeof options.timePicker24Hour==='boolean')
this.timePicker24Hour=options.timePicker24Hour;
if(typeof options.autoApply==='boolean')
this.autoApply=options.autoApply;
if(typeof options.autoUpdateInput==='boolean')
this.autoUpdateInput=options.autoUpdateInput;
if(typeof options.linkedCalendars==='boolean')
this.linkedCalendars=options.linkedCalendars;
if(typeof options.isInvalidDate==='function')
this.isInvalidDate=options.isInvalidDate;
if(typeof options.isCustomDate==='function')
this.isCustomDate=options.isCustomDate;
if(typeof options.alwaysShowCalendars==='boolean')
this.alwaysShowCalendars=options.alwaysShowCalendars;
if(this.locale.firstDay!=0){
var iterator=this.locale.firstDay;
while (iterator > 0){
this.locale.daysOfWeek.push(this.locale.daysOfWeek.shift());
iterator--;
}}
var start, end, range;
if(typeof options.startDate==='undefined'&&typeof options.endDate==='undefined'){
if($(this.element).is(':text')){
var val=$(this.element).val(),
split=val.split(this.locale.separator);
start=end=null;
if(split.length==2){
start=moment(split[0], this.locale.format);
end=moment(split[1], this.locale.format);
}else if(this.singleDatePicker&&val!==""){
start=moment(val, this.locale.format);
end=moment(val, this.locale.format);
}
if(start!==null&&end!==null){
this.setStartDate(start);
this.setEndDate(end);
}}
}
if(typeof options.ranges==='object'){
for (range in options.ranges){
if(typeof options.ranges[range][0]==='string')
start=moment(options.ranges[range][0], this.locale.format);
else
start=moment(options.ranges[range][0]);
if(typeof options.ranges[range][1]==='string')
end=moment(options.ranges[range][1], this.locale.format);
else
end=moment(options.ranges[range][1]);
if(this.minDate&&start.isBefore(this.minDate))
start=this.minDate.clone();
var maxDate=this.maxDate;
if(this.maxSpan&&maxDate&&start.clone().add(this.maxSpan).isAfter(maxDate))
maxDate=start.clone().add(this.maxSpan);
if(maxDate&&end.isAfter(maxDate))
end=maxDate.clone();
if((this.minDate&&end.isBefore(this.minDate, this.timepicker ? 'minute':'day'))
|| (maxDate&&start.isAfter(maxDate, this.timepicker ? 'minute':'day')))
continue;
var elem=document.createElement('textarea');
elem.innerHTML=range;
var rangeHtml=elem.value;
this.ranges[rangeHtml]=[start, end];
}
var list='<ul>';
for (range in this.ranges){
list +='<li data-range-key="' + range + '">' + range + '</li>';
}
if(this.showCustomRangeLabel){
list +='<li data-range-key="' + this.locale.customRangeLabel + '">' + this.locale.customRangeLabel + '</li>';
}
list +='</ul>';
this.container.find('.ranges').prepend(list);
}
if(typeof cb==='function'){
this.callback=cb;
}
if(!this.timePicker){
this.startDate=this.startDate.startOf('day');
this.endDate=this.endDate.endOf('day');
this.container.find('.calendar-time').hide();
}
if(this.timePicker&&this.autoApply)
this.autoApply=false;
if(this.autoApply){
this.container.addClass('auto-apply');
}
if(typeof options.ranges==='object')
this.container.addClass('show-ranges');
if(this.singleDatePicker){
this.container.addClass('single');
this.container.find('.drp-calendar.left').addClass('single');
this.container.find('.drp-calendar.left').show();
this.container.find('.drp-calendar.right').hide();
if(!this.timePicker&&this.autoApply){
this.container.addClass('auto-apply');
}}
if((typeof options.ranges==='undefined'&&!this.singleDatePicker)||this.alwaysShowCalendars){
this.container.addClass('show-calendar');
}
this.container.addClass('opens' + this.opens);
this.container.find('.applyBtn, .cancelBtn').addClass(this.buttonClasses);
if(this.applyButtonClasses.length)
this.container.find('.applyBtn').addClass(this.applyButtonClasses);
if(this.cancelButtonClasses.length)
this.container.find('.cancelBtn').addClass(this.cancelButtonClasses);
this.container.find('.applyBtn').html(this.locale.applyLabel);
this.container.find('.cancelBtn').html(this.locale.cancelLabel);
this.container.find('.drp-calendar')
.on('click.daterangepicker', '.prev', $.proxy(this.clickPrev, this))
.on('click.daterangepicker', '.next', $.proxy(this.clickNext, this))
.on('mousedown.daterangepicker', 'td.available', $.proxy(this.clickDate, this))
.on('mouseenter.daterangepicker', 'td.available', $.proxy(this.hoverDate, this))
.on('change.daterangepicker', 'select.yearselect', $.proxy(this.monthOrYearChanged, this))
.on('change.daterangepicker', 'select.monthselect', $.proxy(this.monthOrYearChanged, this))
.on('change.daterangepicker', 'select.hourselect,select.minuteselect,select.secondselect,select.ampmselect', $.proxy(this.timeChanged, this));
this.container.find('.ranges')
.on('click.daterangepicker', 'li', $.proxy(this.clickRange, this));
this.container.find('.drp-buttons')
.on('click.daterangepicker', 'button.applyBtn', $.proxy(this.clickApply, this))
.on('click.daterangepicker', 'button.cancelBtn', $.proxy(this.clickCancel, this));
if(this.element.is('input')||this.element.is('button')){
this.element.on({
'click.daterangepicker': $.proxy(this.show, this),
'focus.daterangepicker': $.proxy(this.show, this),
'keyup.daterangepicker': $.proxy(this.elementChanged, this),
'keydown.daterangepicker': $.proxy(this.keydown, this)
});
}else{
this.element.on('click.daterangepicker', $.proxy(this.toggle, this));
this.element.on('keydown.daterangepicker', $.proxy(this.toggle, this));
}
this.updateElement();
};
DateRangePicker.prototype={
constructor: DateRangePicker,
setStartDate: function(startDate){
if(typeof startDate==='string')
this.startDate=moment(startDate, this.locale.format);
if(typeof startDate==='object')
this.startDate=moment(startDate);
if(!this.timePicker)
this.startDate=this.startDate.startOf('day');
if(this.timePicker&&this.timePickerIncrement)
this.startDate.minute(Math.round(this.startDate.minute() / this.timePickerIncrement) * this.timePickerIncrement);
if(this.minDate&&this.startDate.isBefore(this.minDate)){
this.startDate=this.minDate.clone();
if(this.timePicker&&this.timePickerIncrement)
this.startDate.minute(Math.round(this.startDate.minute() / this.timePickerIncrement) * this.timePickerIncrement);
}
if(this.maxDate&&this.startDate.isAfter(this.maxDate)){
this.startDate=this.maxDate.clone();
if(this.timePicker&&this.timePickerIncrement)
this.startDate.minute(Math.floor(this.startDate.minute() / this.timePickerIncrement) * this.timePickerIncrement);
}
if(!this.isShowing)
this.updateElement();
this.updateMonthsInView();
},
setEndDate: function(endDate){
if(typeof endDate==='string')
this.endDate=moment(endDate, this.locale.format);
if(typeof endDate==='object')
this.endDate=moment(endDate);
if(!this.timePicker)
this.endDate=this.endDate.endOf('day');
if(this.timePicker&&this.timePickerIncrement)
this.endDate.minute(Math.round(this.endDate.minute() / this.timePickerIncrement) * this.timePickerIncrement);
if(this.endDate.isBefore(this.startDate))
this.endDate=this.startDate.clone();
if(this.maxDate&&this.endDate.isAfter(this.maxDate))
this.endDate=this.maxDate.clone();
if(this.maxSpan&&this.startDate.clone().add(this.maxSpan).isBefore(this.endDate))
this.endDate=this.startDate.clone().add(this.maxSpan);
this.previousRightTime=this.endDate.clone();
this.container.find('.drp-selected').html(this.startDate.format(this.locale.format) + this.locale.separator + this.endDate.format(this.locale.format));
if(!this.isShowing)
this.updateElement();
this.updateMonthsInView();
},
isInvalidDate: function(){
return false;
},
isCustomDate: function(){
return false;
},
updateView: function(){
if(this.timePicker){
this.renderTimePicker('left');
this.renderTimePicker('right');
if(!this.endDate){
this.container.find('.right .calendar-time select').prop('disabled', true).addClass('disabled');
}else{
this.container.find('.right .calendar-time select').prop('disabled', false).removeClass('disabled');
}}
if(this.endDate)
this.container.find('.drp-selected').html(this.startDate.format(this.locale.format) + this.locale.separator + this.endDate.format(this.locale.format));
this.updateMonthsInView();
this.updateCalendars();
this.updateFormInputs();
},
updateMonthsInView: function(){
if(this.endDate){
if(!this.singleDatePicker&&this.leftCalendar.month&&this.rightCalendar.month &&
(this.startDate.format('YYYY-MM')==this.leftCalendar.month.format('YYYY-MM')||this.startDate.format('YYYY-MM')==this.rightCalendar.month.format('YYYY-MM'))
&&
(this.endDate.format('YYYY-MM')==this.leftCalendar.month.format('YYYY-MM')||this.endDate.format('YYYY-MM')==this.rightCalendar.month.format('YYYY-MM'))
){
return;
}
this.leftCalendar.month=this.startDate.clone().date(2);
if(!this.linkedCalendars&&(this.endDate.month()!=this.startDate.month()||this.endDate.year()!=this.startDate.year())){
this.rightCalendar.month=this.endDate.clone().date(2);
}else{
this.rightCalendar.month=this.startDate.clone().date(2).add(1, 'month');
}}else{
if(this.leftCalendar.month.format('YYYY-MM')!=this.startDate.format('YYYY-MM')&&this.rightCalendar.month.format('YYYY-MM')!=this.startDate.format('YYYY-MM')){
this.leftCalendar.month=this.startDate.clone().date(2);
this.rightCalendar.month=this.startDate.clone().date(2).add(1, 'month');
}}
if(this.maxDate&&this.linkedCalendars&&!this.singleDatePicker&&this.rightCalendar.month > this.maxDate){
this.rightCalendar.month=this.maxDate.clone().date(2);
this.leftCalendar.month=this.maxDate.clone().date(2).subtract(1, 'month');
}},
updateCalendars: function(){
if(this.timePicker){
var hour, minute, second;
if(this.endDate){
hour=parseInt(this.container.find('.left .hourselect').val(), 10);
minute=parseInt(this.container.find('.left .minuteselect').val(), 10);
if(isNaN(minute)){
minute=parseInt(this.container.find('.left .minuteselect option:last').val(), 10);
}
second=this.timePickerSeconds ? parseInt(this.container.find('.left .secondselect').val(), 10):0;
if(!this.timePicker24Hour){
var ampm=this.container.find('.left .ampmselect').val();
if(ampm==='PM'&&hour < 12)
hour +=12;
if(ampm==='AM'&&hour===12)
hour=0;
}}else{
hour=parseInt(this.container.find('.right .hourselect').val(), 10);
minute=parseInt(this.container.find('.right .minuteselect').val(), 10);
if(isNaN(minute)){
minute=parseInt(this.container.find('.right .minuteselect option:last').val(), 10);
}
second=this.timePickerSeconds ? parseInt(this.container.find('.right .secondselect').val(), 10):0;
if(!this.timePicker24Hour){
var ampm=this.container.find('.right .ampmselect').val();
if(ampm==='PM'&&hour < 12)
hour +=12;
if(ampm==='AM'&&hour===12)
hour=0;
}}
this.leftCalendar.month.hour(hour).minute(minute).second(second);
this.rightCalendar.month.hour(hour).minute(minute).second(second);
}
this.renderCalendar('left');
this.renderCalendar('right');
this.container.find('.ranges li').removeClass('active');
if(this.endDate==null) return;
this.calculateChosenLabel();
},
renderCalendar: function(side){
var calendar=side=='left' ? this.leftCalendar:this.rightCalendar;
var month=calendar.month.month();
var year=calendar.month.year();
var hour=calendar.month.hour();
var minute=calendar.month.minute();
var second=calendar.month.second();
var daysInMonth=moment([year, month]).daysInMonth();
var firstDay=moment([year, month, 1]);
var lastDay=moment([year, month, daysInMonth]);
var lastMonth=moment(firstDay).subtract(1, 'month').month();
var lastYear=moment(firstDay).subtract(1, 'month').year();
var daysInLastMonth=moment([lastYear, lastMonth]).daysInMonth();
var dayOfWeek=firstDay.day();
var calendar=[];
calendar.firstDay=firstDay;
calendar.lastDay=lastDay;
for (var i=0; i < 6; i++){
calendar[i]=[];
}
var startDay=daysInLastMonth - dayOfWeek + this.locale.firstDay + 1;
if(startDay > daysInLastMonth)
startDay -=7;
if(dayOfWeek==this.locale.firstDay)
startDay=daysInLastMonth - 6;
var curDate=moment([lastYear, lastMonth, startDay, 12, minute, second]);
var col, row;
for (var i=0, col=0, row=0; i < 42; i++, col++, curDate=moment(curDate).add(24, 'hour')){
if(i > 0&&col % 7===0){
col=0;
row++;
}
calendar[row][col]=curDate.clone().hour(hour).minute(minute).second(second);
curDate.hour(12);
if(this.minDate&&calendar[row][col].format('YYYY-MM-DD')==this.minDate.format('YYYY-MM-DD')&&calendar[row][col].isBefore(this.minDate)&&side=='left'){
calendar[row][col]=this.minDate.clone();
}
if(this.maxDate&&calendar[row][col].format('YYYY-MM-DD')==this.maxDate.format('YYYY-MM-DD')&&calendar[row][col].isAfter(this.maxDate)&&side=='right'){
calendar[row][col]=this.maxDate.clone();
}}
if(side=='left'){
this.leftCalendar.calendar=calendar;
}else{
this.rightCalendar.calendar=calendar;
}
var minDate=side=='left' ? this.minDate:this.startDate;
var maxDate=this.maxDate;
var selected=side=='left' ? this.startDate:this.endDate;
var arrow=this.locale.direction=='ltr' ? {left: 'chevron-left', right: 'chevron-right'}:{left: 'chevron-right', right: 'chevron-left'};
var html='<table class="table-condensed">';
html +='<thead>';
html +='<tr>';
if(this.showWeekNumbers||this.showISOWeekNumbers)
html +='<th></th>';
if((!minDate||minDate.isBefore(calendar.firstDay))&&(!this.linkedCalendars||side=='left')){
html +='<th class="prev available"><span></span></th>';
}else{
html +='<th></th>';
}
var dateHtml=this.locale.monthNames[calendar[1][1].month()] + calendar[1][1].format(" YYYY");
if(this.showDropdowns){
var currentMonth=calendar[1][1].month();
var currentYear=calendar[1][1].year();
var maxYear=(maxDate&&maxDate.year())||(this.maxYear);
var minYear=(minDate&&minDate.year())||(this.minYear);
var inMinYear=currentYear==minYear;
var inMaxYear=currentYear==maxYear;
var monthHtml='<select class="monthselect">';
for (var m=0; m < 12; m++){
if((!inMinYear||(minDate&&m >=minDate.month()))&&(!inMaxYear||(maxDate&&m <=maxDate.month()))){
monthHtml +="<option value='" + m + "'" +
(m===currentMonth ? " selected='selected'":"") +
">" + this.locale.monthNames[m] + "</option>";
}else{
monthHtml +="<option value='" + m + "'" +
(m===currentMonth ? " selected='selected'":"") +
" disabled='disabled'>" + this.locale.monthNames[m] + "</option>";
}}
monthHtml +="</select>";
var yearHtml='<select class="yearselect">';
for (var y=minYear; y <=maxYear; y++){
yearHtml +='<option value="' + y + '"' +
(y===currentYear ? ' selected="selected"':'') +
'>' + y + '</option>';
}
yearHtml +='</select>';
dateHtml=monthHtml + yearHtml;
}
html +='<th colspan="5" class="month">' + dateHtml + '</th>';
if((!maxDate||maxDate.isAfter(calendar.lastDay))&&(!this.linkedCalendars||side=='right'||this.singleDatePicker)){
html +='<th class="next available"><span></span></th>';
}else{
html +='<th></th>';
}
html +='</tr>';
html +='<tr>';
if(this.showWeekNumbers||this.showISOWeekNumbers)
html +='<th class="week">' + this.locale.weekLabel + '</th>';
$.each(this.locale.daysOfWeek, function(index, dayOfWeek){
html +='<th>' + dayOfWeek + '</th>';
});
html +='</tr>';
html +='</thead>';
html +='<tbody>';
if(this.endDate==null&&this.maxSpan){
var maxLimit=this.startDate.clone().add(this.maxSpan).endOf('day');
if(!maxDate||maxLimit.isBefore(maxDate)){
maxDate=maxLimit;
}}
for (var row=0; row < 6; row++){
html +='<tr>';
if(this.showWeekNumbers)
html +='<td class="week">' + calendar[row][0].week() + '</td>';
else if(this.showISOWeekNumbers)
html +='<td class="week">' + calendar[row][0].isoWeek() + '</td>';
for (var col=0; col < 7; col++){
var classes=[];
if(calendar[row][col].isSame(new Date(), "day"))
classes.push('today');
if(calendar[row][col].isoWeekday() > 5)
classes.push('weekend');
if(calendar[row][col].month()!=calendar[1][1].month())
classes.push('off', 'ends');
if(this.minDate&&calendar[row][col].isBefore(this.minDate, 'day'))
classes.push('off', 'disabled');
if(maxDate&&calendar[row][col].isAfter(maxDate, 'day'))
classes.push('off', 'disabled');
if(this.isInvalidDate(calendar[row][col]))
classes.push('off', 'disabled');
if(calendar[row][col].format('YYYY-MM-DD')==this.startDate.format('YYYY-MM-DD'))
classes.push('active', 'start-date');
if(this.endDate!=null&&calendar[row][col].format('YYYY-MM-DD')==this.endDate.format('YYYY-MM-DD'))
classes.push('active', 'end-date');
if(this.endDate!=null&&calendar[row][col] > this.startDate&&calendar[row][col] < this.endDate)
classes.push('in-range');
var isCustom=this.isCustomDate(calendar[row][col]);
if(isCustom!==false){
if(typeof isCustom==='string')
classes.push(isCustom);
else
Array.prototype.push.apply(classes, isCustom);
}
var cname='', disabled=false;
for (var i=0; i < classes.length; i++){
cname +=classes[i] + ' ';
if(classes[i]=='disabled')
disabled=true;
}
if(!disabled)
cname +='available';
html +='<td class="' + cname.replace(/^\s+|\s+$/g, '') + '" data-title="' + 'r' + row + 'c' + col + '">' + calendar[row][col].date() + '</td>';
}
html +='</tr>';
}
html +='</tbody>';
html +='</table>';
this.container.find('.drp-calendar.' + side + ' .calendar-table').html(html);
},
renderTimePicker: function(side){
if(side=='right'&&!this.endDate) return;
var html, selected, minDate, maxDate=this.maxDate;
if(this.maxSpan&&(!this.maxDate||this.startDate.clone().add(this.maxSpan).isBefore(this.maxDate)))
maxDate=this.startDate.clone().add(this.maxSpan);
if(side=='left'){
selected=this.startDate.clone();
minDate=this.minDate;
}else if(side=='right'){
selected=this.endDate.clone();
minDate=this.startDate;
var timeSelector=this.container.find('.drp-calendar.right .calendar-time');
if(timeSelector.html()!=''){
selected.hour(!isNaN(selected.hour()) ? selected.hour():timeSelector.find('.hourselect option:selected').val());
selected.minute(!isNaN(selected.minute()) ? selected.minute():timeSelector.find('.minuteselect option:selected').val());
selected.second(!isNaN(selected.second()) ? selected.second():timeSelector.find('.secondselect option:selected').val());
if(!this.timePicker24Hour){
var ampm=timeSelector.find('.ampmselect option:selected').val();
if(ampm==='PM'&&selected.hour() < 12)
selected.hour(selected.hour() + 12);
if(ampm==='AM'&&selected.hour()===12)
selected.hour(0);
}}
if(selected.isBefore(this.startDate))
selected=this.startDate.clone();
if(maxDate&&selected.isAfter(maxDate))
selected=maxDate.clone();
}
html='<select class="hourselect">';
var start=this.timePicker24Hour ? 0:1;
var end=this.timePicker24Hour ? 23:12;
for (var i=start; i <=end; i++){
var i_in_24=i;
if(!this.timePicker24Hour)
i_in_24=selected.hour() >=12 ? (i==12 ? 12:i + 12):(i==12 ? 0:i);
var time=selected.clone().hour(i_in_24);
var disabled=false;
if(minDate&&time.minute(59).isBefore(minDate))
disabled=true;
if(maxDate&&time.minute(0).isAfter(maxDate))
disabled=true;
if(i_in_24==selected.hour()&&!disabled){
html +='<option value="' + i + '" selected="selected">' + i + '</option>';
}else if(disabled){
html +='<option value="' + i + '" disabled="disabled" class="disabled">' + i + '</option>';
}else{
html +='<option value="' + i + '">' + i + '</option>';
}}
html +='</select> ';
html +=': <select class="minuteselect">';
for (var i=0; i < 60; i +=this.timePickerIncrement){
var padded=i < 10 ? '0' + i:i;
var time=selected.clone().minute(i);
var disabled=false;
if(minDate&&time.second(59).isBefore(minDate))
disabled=true;
if(maxDate&&time.second(0).isAfter(maxDate))
disabled=true;
if(selected.minute()==i&&!disabled){
html +='<option value="' + i + '" selected="selected">' + padded + '</option>';
}else if(disabled){
html +='<option value="' + i + '" disabled="disabled" class="disabled">' + padded + '</option>';
}else{
html +='<option value="' + i + '">' + padded + '</option>';
}}
html +='</select> ';
if(this.timePickerSeconds){
html +=': <select class="secondselect">';
for (var i=0; i < 60; i++){
var padded=i < 10 ? '0' + i:i;
var time=selected.clone().second(i);
var disabled=false;
if(minDate&&time.isBefore(minDate))
disabled=true;
if(maxDate&&time.isAfter(maxDate))
disabled=true;
if(selected.second()==i&&!disabled){
html +='<option value="' + i + '" selected="selected">' + padded + '</option>';
}else if(disabled){
html +='<option value="' + i + '" disabled="disabled" class="disabled">' + padded + '</option>';
}else{
html +='<option value="' + i + '">' + padded + '</option>';
}}
html +='</select> ';
}
if(!this.timePicker24Hour){
html +='<select class="ampmselect">';
var am_html='';
var pm_html='';
if(minDate&&selected.clone().hour(12).minute(0).second(0).isBefore(minDate))
am_html=' disabled="disabled" class="disabled"';
if(maxDate&&selected.clone().hour(0).minute(0).second(0).isAfter(maxDate))
pm_html=' disabled="disabled" class="disabled"';
if(selected.hour() >=12){
html +='<option value="AM"' + am_html + '>AM</option><option value="PM" selected="selected"' + pm_html + '>PM</option>';
}else{
html +='<option value="AM" selected="selected"' + am_html + '>AM</option><option value="PM"' + pm_html + '>PM</option>';
}
html +='</select>';
}
this.container.find('.drp-calendar.' + side + ' .calendar-time').html(html);
},
updateFormInputs: function(){
if(this.singleDatePicker||(this.endDate&&(this.startDate.isBefore(this.endDate)||this.startDate.isSame(this.endDate)))){
this.container.find('button.applyBtn').prop('disabled', false);
}else{
this.container.find('button.applyBtn').prop('disabled', true);
}},
move: function(){
var parentOffset={ top: 0, left: 0 },
containerTop,
drops=this.drops;
var parentRightEdge=$(window).width();
if(!this.parentEl.is('body')){
parentOffset={
top: this.parentEl.offset().top - this.parentEl.scrollTop(),
left: this.parentEl.offset().left - this.parentEl.scrollLeft()
};
parentRightEdge=this.parentEl[0].clientWidth + this.parentEl.offset().left;
}
switch (drops){
case 'auto':
containerTop=this.element.offset().top + this.element.outerHeight() - parentOffset.top;
if(containerTop + this.container.outerHeight() >=this.parentEl[0].scrollHeight){
containerTop=this.element.offset().top - this.container.outerHeight() - parentOffset.top;
drops='up';
}
break;
case 'up':
containerTop=this.element.offset().top - this.container.outerHeight() - parentOffset.top;
break;
default:
containerTop=this.element.offset().top + this.element.outerHeight() - parentOffset.top;
break;
}
this.container.css({
top: 0,
left: 0,
right: 'auto'
});
var containerWidth=this.container.outerWidth();
this.container.toggleClass('drop-up', drops=='up');
if(this.opens=='left'){
var containerRight=parentRightEdge - this.element.offset().left - this.element.outerWidth();
if(containerWidth + containerRight > $(window).width()){
this.container.css({
top: containerTop,
right: 'auto',
left: 9
});
}else{
this.container.css({
top: containerTop,
right: containerRight,
left: 'auto'
});
}}else if(this.opens=='center'){
var containerLeft=this.element.offset().left - parentOffset.left + this.element.outerWidth() / 2
- containerWidth / 2;
if(containerLeft < 0){
this.container.css({
top: containerTop,
right: 'auto',
left: 9
});
}else if(containerLeft + containerWidth > $(window).width()){
this.container.css({
top: containerTop,
left: 'auto',
right: 0
});
}else{
this.container.css({
top: containerTop,
left: containerLeft,
right: 'auto'
});
}}else{
var containerLeft=this.element.offset().left - parentOffset.left;
if(containerLeft + containerWidth > $(window).width()){
this.container.css({
top: containerTop,
left: 'auto',
right: 0
});
}else{
this.container.css({
top: containerTop,
left: containerLeft,
right: 'auto'
});
}}
},
show: function(e){
if(this.isShowing) return;
this._outsideClickProxy=$.proxy(function(e){ this.outsideClick(e); }, this);
$(document)
.on('mousedown.daterangepicker', this._outsideClickProxy)
.on('touchend.daterangepicker', this._outsideClickProxy)
.on('click.daterangepicker', '[data-toggle=dropdown]', this._outsideClickProxy)
.on('focusin.daterangepicker', this._outsideClickProxy);
$(window).on('resize.daterangepicker', $.proxy(function(e){ this.move(e); }, this));
this.oldStartDate=this.startDate.clone();
this.oldEndDate=this.endDate.clone();
this.previousRightTime=this.endDate.clone();
this.updateView();
this.container.show();
this.move();
this.element.trigger('show.daterangepicker', this);
this.isShowing=true;
},
hide: function(e){
if(!this.isShowing) return;
if(!this.endDate){
this.startDate=this.oldStartDate.clone();
this.endDate=this.oldEndDate.clone();
}
if(!this.startDate.isSame(this.oldStartDate)||!this.endDate.isSame(this.oldEndDate))
this.callback(this.startDate.clone(), this.endDate.clone(), this.chosenLabel);
this.updateElement();
$(document).off('.daterangepicker');
$(window).off('.daterangepicker');
this.container.hide();
this.element.trigger('hide.daterangepicker', this);
this.isShowing=false;
},
toggle: function(e){
if(this.isShowing){
this.hide();
}else{
this.show();
}},
outsideClick: function(e){
var target=$(e.target);
if(e.type=="focusin" ||
target.closest(this.element).length ||
target.closest(this.container).length ||
target.closest('.calendar-table').length
) return;
this.hide();
this.element.trigger('outsideClick.daterangepicker', this);
},
showCalendars: function(){
this.container.addClass('show-calendar');
this.move();
this.element.trigger('showCalendar.daterangepicker', this);
},
hideCalendars: function(){
this.container.removeClass('show-calendar');
this.element.trigger('hideCalendar.daterangepicker', this);
},
clickRange: function(e){
var label=e.target.getAttribute('data-range-key');
this.chosenLabel=label;
if(label==this.locale.customRangeLabel){
this.showCalendars();
}else{
var dates=this.ranges[label];
this.startDate=dates[0];
this.endDate=dates[1];
if(!this.timePicker){
this.startDate.startOf('day');
this.endDate.endOf('day');
}
if(!this.alwaysShowCalendars)
this.hideCalendars();
this.clickApply();
}},
clickPrev: function(e){
var cal=$(e.target).parents('.drp-calendar');
if(cal.hasClass('left')){
this.leftCalendar.month.subtract(1, 'month');
if(this.linkedCalendars)
this.rightCalendar.month.subtract(1, 'month');
}else{
this.rightCalendar.month.subtract(1, 'month');
}
this.updateCalendars();
},
clickNext: function(e){
var cal=$(e.target).parents('.drp-calendar');
if(cal.hasClass('left')){
this.leftCalendar.month.add(1, 'month');
}else{
this.rightCalendar.month.add(1, 'month');
if(this.linkedCalendars)
this.leftCalendar.month.add(1, 'month');
}
this.updateCalendars();
},
hoverDate: function(e){
if(!$(e.target).hasClass('available')) return;
var title=$(e.target).attr('data-title');
var row=title.substr(1, 1);
var col=title.substr(3, 1);
var cal=$(e.target).parents('.drp-calendar');
var date=cal.hasClass('left') ? this.leftCalendar.calendar[row][col]:this.rightCalendar.calendar[row][col];
var leftCalendar=this.leftCalendar;
var rightCalendar=this.rightCalendar;
var startDate=this.startDate;
if(!this.endDate){
this.container.find('.drp-calendar tbody td').each(function(index, el){
if($(el).hasClass('week')) return;
var title=$(el).attr('data-title');
var row=title.substr(1, 1);
var col=title.substr(3, 1);
var cal=$(el).parents('.drp-calendar');
var dt=cal.hasClass('left') ? leftCalendar.calendar[row][col]:rightCalendar.calendar[row][col];
if((dt.isAfter(startDate)&&dt.isBefore(date))||dt.isSame(date, 'day')){
$(el).addClass('in-range');
}else{
$(el).removeClass('in-range');
}});
}},
clickDate: function(e){
if(!$(e.target).hasClass('available')) return;
var title=$(e.target).attr('data-title');
var row=title.substr(1, 1);
var col=title.substr(3, 1);
var cal=$(e.target).parents('.drp-calendar');
var date=cal.hasClass('left') ? this.leftCalendar.calendar[row][col]:this.rightCalendar.calendar[row][col];
if(this.endDate||date.isBefore(this.startDate, 'day')){
if(this.timePicker){
var hour=parseInt(this.container.find('.left .hourselect').val(), 10);
if(!this.timePicker24Hour){
var ampm=this.container.find('.left .ampmselect').val();
if(ampm==='PM'&&hour < 12)
hour +=12;
if(ampm==='AM'&&hour===12)
hour=0;
}
var minute=parseInt(this.container.find('.left .minuteselect').val(), 10);
if(isNaN(minute)){
minute=parseInt(this.container.find('.left .minuteselect option:last').val(), 10);
}
var second=this.timePickerSeconds ? parseInt(this.container.find('.left .secondselect').val(), 10):0;
date=date.clone().hour(hour).minute(minute).second(second);
}
this.endDate=null;
this.setStartDate(date.clone());
}else if(!this.endDate&&date.isBefore(this.startDate)){
this.setEndDate(this.startDate.clone());
}else{
if(this.timePicker){
var hour=parseInt(this.container.find('.right .hourselect').val(), 10);
if(!this.timePicker24Hour){
var ampm=this.container.find('.right .ampmselect').val();
if(ampm==='PM'&&hour < 12)
hour +=12;
if(ampm==='AM'&&hour===12)
hour=0;
}
var minute=parseInt(this.container.find('.right .minuteselect').val(), 10);
if(isNaN(minute)){
minute=parseInt(this.container.find('.right .minuteselect option:last').val(), 10);
}
var second=this.timePickerSeconds ? parseInt(this.container.find('.right .secondselect').val(), 10):0;
date=date.clone().hour(hour).minute(minute).second(second);
}
this.setEndDate(date.clone());
if(this.autoApply){
this.calculateChosenLabel();
this.clickApply();
}}
if(this.singleDatePicker){
this.setEndDate(this.startDate);
if(!this.timePicker&&this.autoApply)
this.clickApply();
}
this.updateView();
e.stopPropagation();
},
calculateChosenLabel: function (){
var customRange=true;
var i=0;
for (var range in this.ranges){
if(this.timePicker){
var format=this.timePickerSeconds ? "YYYY-MM-DD HH:mm:ss":"YYYY-MM-DD HH:mm";
if(this.startDate.format(format)==this.ranges[range][0].format(format)&&this.endDate.format(format)==this.ranges[range][1].format(format)){
customRange=false;
this.chosenLabel=this.container.find('.ranges li:eq(' + i + ')').addClass('active').attr('data-range-key');
break;
}}else{
if(this.startDate.format('YYYY-MM-DD')==this.ranges[range][0].format('YYYY-MM-DD')&&this.endDate.format('YYYY-MM-DD')==this.ranges[range][1].format('YYYY-MM-DD')){
customRange=false;
this.chosenLabel=this.container.find('.ranges li:eq(' + i + ')').addClass('active').attr('data-range-key');
break;
}}
i++;
}
if(customRange){
if(this.showCustomRangeLabel){
this.chosenLabel=this.container.find('.ranges li:last').addClass('active').attr('data-range-key');
}else{
this.chosenLabel=null;
}
this.showCalendars();
}},
clickApply: function(e){
this.hide();
this.element.trigger('apply.daterangepicker', this);
},
clickCancel: function(e){
this.startDate=this.oldStartDate;
this.endDate=this.oldEndDate;
this.hide();
this.element.trigger('cancel.daterangepicker', this);
},
monthOrYearChanged: function(e){
var isLeft=$(e.target).closest('.drp-calendar').hasClass('left'),
leftOrRight=isLeft ? 'left':'right',
cal=this.container.find('.drp-calendar.'+leftOrRight);
var month=parseInt(cal.find('.monthselect').val(), 10);
var year=cal.find('.yearselect').val();
if(!isLeft){
if(year < this.startDate.year()||(year==this.startDate.year()&&month < this.startDate.month())){
month=this.startDate.month();
year=this.startDate.year();
}}
if(this.minDate){
if(year < this.minDate.year()||(year==this.minDate.year()&&month < this.minDate.month())){
month=this.minDate.month();
year=this.minDate.year();
}}
if(this.maxDate){
if(year > this.maxDate.year()||(year==this.maxDate.year()&&month > this.maxDate.month())){
month=this.maxDate.month();
year=this.maxDate.year();
}}
if(isLeft){
this.leftCalendar.month.month(month).year(year);
if(this.linkedCalendars)
this.rightCalendar.month=this.leftCalendar.month.clone().add(1, 'month');
}else{
this.rightCalendar.month.month(month).year(year);
if(this.linkedCalendars)
this.leftCalendar.month=this.rightCalendar.month.clone().subtract(1, 'month');
}
this.updateCalendars();
},
timeChanged: function(e){
var cal=$(e.target).closest('.drp-calendar'),
isLeft=cal.hasClass('left');
var hour=parseInt(cal.find('.hourselect').val(), 10);
var minute=parseInt(cal.find('.minuteselect').val(), 10);
if(isNaN(minute)){
minute=parseInt(cal.find('.minuteselect option:last').val(), 10);
}
var second=this.timePickerSeconds ? parseInt(cal.find('.secondselect').val(), 10):0;
if(!this.timePicker24Hour){
var ampm=cal.find('.ampmselect').val();
if(ampm==='PM'&&hour < 12)
hour +=12;
if(ampm==='AM'&&hour===12)
hour=0;
}
if(isLeft){
var start=this.startDate.clone();
start.hour(hour);
start.minute(minute);
start.second(second);
this.setStartDate(start);
if(this.singleDatePicker){
this.endDate=this.startDate.clone();
}else if(this.endDate&&this.endDate.format('YYYY-MM-DD')==start.format('YYYY-MM-DD')&&this.endDate.isBefore(start)){
this.setEndDate(start.clone());
}}else if(this.endDate){
var end=this.endDate.clone();
end.hour(hour);
end.minute(minute);
end.second(second);
this.setEndDate(end);
}
this.updateCalendars();
this.updateFormInputs();
this.renderTimePicker('left');
this.renderTimePicker('right');
},
elementChanged: function(){
if(!this.element.is('input')) return;
if(!this.element.val().length) return;
var dateString=this.element.val().split(this.locale.separator),
start=null,
end=null;
if(dateString.length===2){
start=moment(dateString[0], this.locale.format);
end=moment(dateString[1], this.locale.format);
}
if(this.singleDatePicker||start===null||end===null){
start=moment(this.element.val(), this.locale.format);
end=start;
}
if(!start.isValid()||!end.isValid()) return;
this.setStartDate(start);
this.setEndDate(end);
this.updateView();
},
keydown: function(e){
if((e.keyCode===9)||(e.keyCode===13)){
this.hide();
}
if(e.keyCode===27){
e.preventDefault();
e.stopPropagation();
this.hide();
}},
updateElement: function(){
if(this.element.is('input')&&this.autoUpdateInput){
var newValue=this.startDate.format(this.locale.format);
if(!this.singleDatePicker){
newValue +=this.locale.separator + this.endDate.format(this.locale.format);
}
if(newValue!==this.element.val()){
this.element.val(newValue).trigger('change');
}}
},
remove: function(){
this.container.remove();
this.element.off('.daterangepicker');
this.element.removeData();
}};
$.fn.daterangepicker=function(options, callback){
var implementOptions=$.extend(true, {}, $.fn.daterangepicker.defaultOptions, options);
this.each(function(){
var el=$(this);
if(el.data('daterangepicker'))
el.data('daterangepicker').remove();
el.data('daterangepicker', new DateRangePicker(el, implementOptions, callback));
});
return this;
};
return DateRangePicker;
}));
(()=>{var e={4692:function(e,t){var n;
!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(r,i){"use strict";var o=[],s=Object.getPrototypeOf,a=o.slice,l=o.flat?function(e){return o.flat.call(e)}:function(e){return o.concat.apply([],e)},u=o.push,c=o.indexOf,f={},d=f.toString,p=f.hasOwnProperty,h=p.toString,m=h.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=r.document,x={type:!0,src:!0,nonce:!0,noModule:!0};function w(e,t,n){var r,i,o=(n=n||b).createElement("script");if(o.text=e,t)for(r in x)(i=t[r]||t.getAttribute&&t.getAttribute(r))&&o.setAttribute(r,i);n.head.appendChild(o).parentNode.removeChild(o)}function S(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?f[d.call(e)]||"object":typeof e}var C="3.7.1",E=/HTML$/i,T=function(e,t){return new T.fn.init(e,t)};function k(e){var t=!!e&&"length"in e&&e.length,n=S(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function A(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}T.fn=T.prototype={jquery:C,constructor:T,length:0,toArray:function(){return a.call(this)},get:function(e){return null==e?a.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=T.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return T.each(this,e)},map:function(e){return this.pushStack(T.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(a.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:u,sort:o.sort,splice:o.splice},T.extend=T.fn.extend=function(){var e,t,n,r,i,o,s=arguments[0]||{},a=1,l=arguments.length,u=!1;for("boolean"==typeof s&&(u=s,s=arguments[a]||{},a++),"object"==typeof s||v(s)||(s={}),a===l&&(s=this,a--);a<l;a++)if(null!=(e=arguments[a]))for(t in e)r=e[t],"__proto__"!==t&&s!==r&&(u&&r&&(T.isPlainObject(r)||(i=Array.isArray(r)))?(n=s[t],o=i&&!Array.isArray(n)?[]:i||T.isPlainObject(n)?n:{},i=!1,s[t]=T.extend(u,o,r)):void 0!==r&&(s[t]=r));return s},T.extend({expando:"jQuery"+(C+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;return!(!e||"[object Object]"!==d.call(e))&&(!(t=s(e))||"function"==typeof(n=p.call(t,"constructor")&&t.constructor)&&h.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){w(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,r=0;if(k(e))for(n=e.length;r<n&&!1!==t.call(e[r],r,e[r]);r++);else for(r in e)if(!1===t.call(e[r],r,e[r]))break;return e},text:function(e){var t,n="",r=0,i=e.nodeType;if(!i)for(;t=e[r++];)n+=T.text(t);return 1===i||11===i?e.textContent:9===i?e.documentElement.textContent:3===i||4===i?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(k(Object(e))?T.merge(n,"string"==typeof e?[e]:e):u.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:c.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!E.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,r=0,i=e.length;r<n;r++)e[i++]=t[r];return e.length=i,e},grep:function(e,t,n){for(var r=[],i=0,o=e.length,s=!n;i<o;i++)!t(e[i],i)!==s&&r.push(e[i]);return r},map:function(e,t,n){var r,i,o=0,s=[];if(k(e))for(r=e.length;o<r;o++)null!=(i=t(e[o],o,n))&&s.push(i);else for(o in e)null!=(i=t(e[o],o,n))&&s.push(i);return l(s)},guid:1,support:g}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=o[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){f["[object "+t+"]"]=t.toLowerCase()}));var D=o.pop,N=o.sort,j=o.splice,P="[\\x20\\t\\r\\n\\f]",O=new RegExp("^"+P+"+|((?:^|[^\\\\])(?:\\\\.)*)"+P+"+$","g");T.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var L=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function M(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}T.escapeSelector=function(e){return(e+"").replace(L,M)};var H=b,q=u;!function(){var e,t,n,i,s,l,u,f,d,h,m=q,v=T.expando,y=0,b=0,x=ee(),w=ee(),S=ee(),C=ee(),E=function(e,t){return e===t&&(s=!0),0},k="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",L="(?:\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",M="\\["+P+"*("+L+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+L+"))|)"+P+"*\\]",R=":("+L+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+M+")*)|.*)\\)|)",V=new RegExp(P+"+","g"),F=new RegExp("^"+P+"*,"+P+"*"),U=new RegExp("^"+P+"*([>+~]|"+P+")"+P+"*"),_=new RegExp(P+"|>"),I=new RegExp(R),W=new RegExp("^"+L+"$"),B={ID:new RegExp("^#("+L+")"),CLASS:new RegExp("^\\.("+L+")"),TAG:new RegExp("^("+L+"|[*])"),ATTR:new RegExp("^"+M),PSEUDO:new RegExp("^"+R),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+P+"*(even|odd|(([+-]|)(\\d*)n|)"+P+"*(?:([+-]|)"+P+"*(\\d+)|))"+P+"*\\)|)","i"),bool:new RegExp("^(?:"+k+")$","i"),needsContext:new RegExp("^"+P+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+P+"*((?:-\\d)?\\d*)"+P+"*\\)|)(?=[^-]|$)","i")},$=/^(?:input|select|textarea|button)$/i,z=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,Y=/[+~]/,G=new RegExp("\\\\[\\da-fA-F]{1,6}"+P+"?|\\\\([^\\r\\n\\f])","g"),Q=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},J=function(){le()},K=de((function(e){return!0===e.disabled&&A(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(o=a.call(H.childNodes),H.childNodes),o[H.childNodes.length].nodeType}catch(e){m={apply:function(e,t){q.apply(e,a.call(t))},call:function(e){q.apply(e,a.call(arguments,1))}}}function Z(e,t,n,r){var i,o,s,a,u,c,p,h=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!r&&(le(t),t=t||l,f)){if(11!==y&&(u=X.exec(e)))if(i=u[1]){if(9===y){if(!(s=t.getElementById(i)))return n;if(s.id===i)return m.call(n,s),n}else if(h&&(s=h.getElementById(i))&&Z.contains(t,s)&&s.id===i)return m.call(n,s),n}else{if(u[2])return m.apply(n,t.getElementsByTagName(e)),n;if((i=u[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(i)),n}if(!(C[e+" "]||d&&d.test(e))){if(p=e,h=t,1===y&&(_.test(e)||U.test(e))){for((h=Y.test(e)&&ae(t.parentNode)||t)==t&&g.scope||((a=t.getAttribute("id"))?a=T.escapeSelector(a):t.setAttribute("id",a=v)),o=(c=ce(e)).length;o--;)c[o]=(a?"#"+a:":scope")+" "+fe(c[o]);p=c.join(",")}try{return m.apply(n,h.querySelectorAll(p)),n}catch(t){C(e,!0)}finally{a===v&&t.removeAttribute("id")}}}return ye(e.replace(O,"$1"),t,n,r)}function ee(){var e=[];return function n(r,i){return e.push(r+" ")>t.cacheLength&&delete n[e.shift()],n[r+" "]=i}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function re(e){return function(t){return A(t,"input")&&t.type===e}}function ie(e){return function(t){return(A(t,"input")||A(t,"button"))&&t.type===e}}function oe(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&K(t)===e:t.disabled===e:"label"in t&&t.disabled===e}}function se(e){return te((function(t){return t=+t,te((function(n,r){for(var i,o=e([],n.length,t),s=o.length;s--;)n[i=o[s]]&&(n[i]=!(r[i]=n[i]))}))}))}function ae(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,r=e?e.ownerDocument||e:H;return r!=l&&9===r.nodeType&&r.documentElement?(u=(l=r).documentElement,f=!T.isXMLDoc(l),h=u.matches||u.webkitMatchesSelector||u.msMatchesSelector,u.msMatchesSelector&&H!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",J),g.getById=ne((function(e){return u.appendChild(e).id=T.expando,!l.getElementsByName||!l.getElementsByName(T.expando).length})),g.disconnectedMatch=ne((function(e){return h.call(e,"*")})),g.scope=ne((function(){return l.querySelectorAll(":scope")})),g.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),g.getById?(t.filter.ID=function(e){var t=e.replace(G,Q);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(G,Q);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&f){var n,r,i,o=t.getElementById(e);if(o){if((n=o.getAttributeNode("id"))&&n.value===e)return[o];for(i=t.getElementsByName(e),r=0;o=i[r++];)if((n=o.getAttributeNode("id"))&&n.value===e)return[o]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&f)return t.getElementsByClassName(e)},d=[],ne((function(e){var t;u.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||d.push("\\["+P+"*(?:value|"+k+")"),e.querySelectorAll("[id~="+v+"-]").length||d.push("~="),e.querySelectorAll("a#"+v+"+*").length||d.push(".#.+[+~]"),e.querySelectorAll(":checked").length||d.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),u.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&d.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||d.push("\\["+P+"*name"+P+"*="+P+"*(?:''|\"\")")})),g.cssHas||d.push(":has"),d=d.length&&new RegExp(d.join("|")),E=function(e,t){if(e===t)return s=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==H&&Z.contains(H,e)?-1:t===l||t.ownerDocument==H&&Z.contains(H,t)?1:i?c.call(i,e)-c.call(i,t):0:4&n?-1:1)},l):l}for(e in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(le(e),f&&!C[t+" "]&&(!d||!d.test(t)))try{var n=h.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){C(t,!0)}return Z(t,l,null,[e]).length>0},Z.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),T.contains(e,t)},Z.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var r=t.attrHandle[n.toLowerCase()],i=r&&p.call(t.attrHandle,n.toLowerCase())?r(e,n,!f):void 0;return void 0!==i?i:e.getAttribute(n)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},T.uniqueSort=function(e){var t,n=[],r=0,o=0;if(s=!g.sortStable,i=!g.sortStable&&a.call(e,0),N.call(e,E),s){for(;t=e[o++];)t===e[o]&&(r=n.push(o));for(;r--;)j.call(e,n[r],1)}return i=null,e},T.fn.uniqueSort=function(){return this.pushStack(T.uniqueSort(a.apply(this)))},t=T.expr={cacheLength:50,createPseudo:te,match:B,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(G,Q),e[3]=(e[3]||e[4]||e[5]||"").replace(G,Q),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return B.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&I.test(n)&&(t=ce(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(G,Q).toLowerCase();return"*"===e?function(){return!0}:function(e){return A(e,t)}},CLASS:function(e){var t=x[e+" "];return t||(t=new RegExp("(^|"+P+")"+e+"("+P+"|$)"))&&x(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(r){var i=Z.attr(r,e);return null==i?"!="===t:!t||(i+="","="===t?i===n:"!="===t?i!==n:"^="===t?n&&0===i.indexOf(n):"*="===t?n&&i.indexOf(n)>-1:"$="===t?n&&i.slice(-n.length)===n:"~="===t?(" "+i.replace(V," ")+" ").indexOf(n)>-1:"|="===t&&(i===n||i.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,r,i){var o="nth"!==e.slice(0,3),s="last"!==e.slice(-4),a="of-type"===t;return 1===r&&0===i?function(e){return!!e.parentNode}:function(t,n,l){var u,c,f,d,p,h=o!==s?"nextSibling":"previousSibling",m=t.parentNode,g=a&&t.nodeName.toLowerCase(),b=!l&&!a,x=!1;if(m){if(o){for(;h;){for(f=t;f=f[h];)if(a?A(f,g):1===f.nodeType)return!1;p=h="only"===e&&!p&&"nextSibling"}return!0}if(p=[s?m.firstChild:m.lastChild],s&&b){for(x=(d=(u=(c=m[v]||(m[v]={}))[e]||[])[0]===y&&u[1])&&u[2],f=d&&m.childNodes[d];f=++d&&f&&f[h]||(x=d=0)||p.pop();)if(1===f.nodeType&&++x&&f===t){c[e]=[y,d,x];break}}else if(b&&(x=d=(u=(c=t[v]||(t[v]={}))[e]||[])[0]===y&&u[1]),!1===x)for(;(f=++d&&f&&f[h]||(x=d=0)||p.pop())&&(!(a?A(f,g):1===f.nodeType)||!++x||(b&&((c=f[v]||(f[v]={}))[e]=[y,x]),f!==t)););return(x-=i)===r||x%r==0&&x/r>=0}}},PSEUDO:function(e,n){var r,i=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return i[v]?i(n):i.length>1?(r=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var r,o=i(e,n),s=o.length;s--;)e[r=c.call(e,o[s])]=!(t[r]=o[s])})):function(e){return i(e,0,r)}):i}},pseudos:{not:te((function(e){var t=[],n=[],r=ve(e.replace(O,"$1"));return r[v]?te((function(e,t,n,i){for(var o,s=r(e,null,i,[]),a=e.length;a--;)(o=s[a])&&(e[a]=!(t[a]=o))})):function(e,i,o){return t[0]=e,r(t,null,o,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Z(e,t).length>0}})),contains:te((function(e){return e=e.replace(G,Q),function(t){return(t.textContent||T.text(t)).indexOf(e)>-1}})),lang:te((function(e){return W.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(G,Q).toLowerCase(),function(t){var n;do{if(n=f?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=r.location&&r.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===u},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:oe(!1),disabled:oe(!0),checked:function(e){return A(e,"input")&&!!e.checked||A(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return z.test(e.nodeName)},input:function(e){return $.test(e.nodeName)},button:function(e){return A(e,"input")&&"button"===e.type||A(e,"button")},text:function(e){var t;return A(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:se((function(){return[0]})),last:se((function(e,t){return[t-1]})),eq:se((function(e,t,n){return[n<0?n+t:n]})),even:se((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:se((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:se((function(e,t,n){var r;for(r=n<0?n+t:n>t?t:n;--r>=0;)e.push(r);return e})),gt:se((function(e,t,n){for(var r=n<0?n+t:n;++r<t;)e.push(r);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=re(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=ie(e);function ue(){}function ce(e,n){var r,i,o,s,a,l,u,c=w[e+" "];if(c)return n?0:c.slice(0);for(a=e,l=[],u=t.preFilter;a;){for(s in r&&!(i=F.exec(a))||(i&&(a=a.slice(i[0].length)||a),l.push(o=[])),r=!1,(i=U.exec(a))&&(r=i.shift(),o.push({value:r,type:i[0].replace(O," ")}),a=a.slice(r.length)),t.filter)!(i=B[s].exec(a))||u[s]&&!(i=u[s](i))||(r=i.shift(),o.push({value:r,type:s,matches:i}),a=a.slice(r.length));if(!r)break}return n?a.length:a?Z.error(e):w(e,l).slice(0)}function fe(e){for(var t=0,n=e.length,r="";t<n;t++)r+=e[t].value;return r}function de(e,t,n){var r=t.dir,i=t.next,o=i||r,s=n&&"parentNode"===o,a=b++;return t.first?function(t,n,i){for(;t=t[r];)if(1===t.nodeType||s)return e(t,n,i);return!1}:function(t,n,l){var u,c,f=[y,a];if(l){for(;t=t[r];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[r];)if(1===t.nodeType||s)if(c=t[v]||(t[v]={}),i&&A(t,i))t=t[r]||t;else{if((u=c[o])&&u[0]===y&&u[1]===a)return f[2]=u[2];if(c[o]=f,f[2]=e(t,n,l))return!0}return!1}}function pe(e){return e.length>1?function(t,n,r){for(var i=e.length;i--;)if(!e[i](t,n,r))return!1;return!0}:e[0]}function he(e,t,n,r,i){for(var o,s=[],a=0,l=e.length,u=null!=t;a<l;a++)(o=e[a])&&(n&&!n(o,r,i)||(s.push(o),u&&t.push(a)));return s}function me(e,t,n,r,i,o){return r&&!r[v]&&(r=me(r)),i&&!i[v]&&(i=me(i,o)),te((function(o,s,a,l){var u,f,d,p,h=[],g=[],v=s.length,y=o||function(e,t,n){for(var r=0,i=t.length;r<i;r++)Z(e,t[r],n);return n}(t||"*",a.nodeType?[a]:a,[]),b=!e||!o&&t?y:he(y,h,e,a,l);if(n?n(b,p=i||(o?e:v||r)?[]:s,a,l):p=b,r)for(u=he(p,g),r(u,[],a,l),f=u.length;f--;)(d=u[f])&&(p[g[f]]=!(b[g[f]]=d));if(o){if(i||e){if(i){for(u=[],f=p.length;f--;)(d=p[f])&&u.push(b[f]=d);i(null,p=[],u,l)}for(f=p.length;f--;)(d=p[f])&&(u=i?c.call(o,d):h[f])>-1&&(o[u]=!(s[u]=d))}}else p=he(p===s?p.splice(v,p.length):p),i?i(null,s,p,l):m.apply(s,p)}))}function ge(e){for(var r,i,o,s=e.length,a=t.relative[e[0].type],l=a||t.relative[" "],u=a?1:0,f=de((function(e){return e===r}),l,!0),d=de((function(e){return c.call(r,e)>-1}),l,!0),p=[function(e,t,i){var o=!a&&(i||t!=n)||((r=t).nodeType?f(e,t,i):d(e,t,i));return r=null,o}];u<s;u++)if(i=t.relative[e[u].type])p=[de(pe(p),i)];else{if((i=t.filter[e[u].type].apply(null,e[u].matches))[v]){for(o=++u;o<s&&!t.relative[e[o].type];o++);return me(u>1&&pe(p),u>1&&fe(e.slice(0,u-1).concat({value:" "===e[u-2].type?"*":""})).replace(O,"$1"),i,u<o&&ge(e.slice(u,o)),o<s&&ge(e=e.slice(o)),o<s&&fe(e))}p.push(i)}return pe(p)}function ve(e,r){var i,o=[],s=[],a=S[e+" "];if(!a){for(r||(r=ce(e)),i=r.length;i--;)(a=ge(r[i]))[v]?o.push(a):s.push(a);a=S(e,function(e,r){var i=r.length>0,o=e.length>0,s=function(s,a,u,c,d){var p,h,g,v=0,b="0",x=s&&[],w=[],S=n,C=s||o&&t.find.TAG("*",d),E=y+=null==S?1:Math.random()||.1,k=C.length;for(d&&(n=a==l||a||d);b!==k&&null!=(p=C[b]);b++){if(o&&p){for(h=0,a||p.ownerDocument==l||(le(p),u=!f);g=e[h++];)if(g(p,a||l,u)){m.call(c,p);break}d&&(y=E)}i&&((p=!g&&p)&&v--,s&&x.push(p))}if(v+=b,i&&b!==v){for(h=0;g=r[h++];)g(x,w,a,u);if(s){if(v>0)for(;b--;)x[b]||w[b]||(w[b]=D.call(c));w=he(w)}m.apply(c,w),d&&!s&&w.length>0&&v+r.length>1&&T.uniqueSort(c)}return d&&(y=E,n=S),x};return i?te(s):s}(s,o)),a.selector=e}return a}function ye(e,n,r,i){var o,s,a,l,u,c="function"==typeof e&&e,d=!i&&ce(e=c.selector||e);if(r=r||[],1===d.length){if((s=d[0]=d[0].slice(0)).length>2&&"ID"===(a=s[0]).type&&9===n.nodeType&&f&&t.relative[s[1].type]){if(!(n=(t.find.ID(a.matches[0].replace(G,Q),n)||[])[0]))return r;c&&(n=n.parentNode),e=e.slice(s.shift().value.length)}for(o=B.needsContext.test(e)?0:s.length;o--&&(a=s[o],!t.relative[l=a.type]);)if((u=t.find[l])&&(i=u(a.matches[0].replace(G,Q),Y.test(s[0].type)&&ae(n.parentNode)||n))){if(s.splice(o,1),!(e=i.length&&fe(s)))return m.apply(r,i),r;break}}return(c||ve(e,d))(i,n,!f,r,!n||Y.test(e)&&ae(n.parentNode)||n),r}ue.prototype=t.filters=t.pseudos,t.setFilters=new ue,g.sortStable=v.split("").sort(E).join("")===v,le(),g.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),T.find=Z,T.expr[":"]=T.expr.pseudos,T.unique=T.uniqueSort,Z.compile=ve,Z.select=ye,Z.setDocument=le,Z.tokenize=ce,Z.escape=T.escapeSelector,Z.getText=T.text,Z.isXML=T.isXMLDoc,Z.selectors=T.expr,Z.support=T.support,Z.uniqueSort=T.uniqueSort}();var R=function(e,t,n){for(var r=[],i=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(i&&T(e).is(n))break;r.push(e)}return r},V=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},F=T.expr.match.needsContext,U=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function _(e,t,n){return v(t)?T.grep(e,(function(e,r){return!!t.call(e,r,e)!==n})):t.nodeType?T.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?T.grep(e,(function(e){return c.call(t,e)>-1!==n})):T.filter(t,e,n)}T.filter=function(e,t,n){var r=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===r.nodeType?T.find.matchesSelector(r,e)?[r]:[]:T.find.matches(e,T.grep(t,(function(e){return 1===e.nodeType})))},T.fn.extend({find:function(e){var t,n,r=this.length,i=this;if("string"!=typeof e)return this.pushStack(T(e).filter((function(){for(t=0;t<r;t++)if(T.contains(i[t],this))return!0})));for(n=this.pushStack([]),t=0;t<r;t++)T.find(e,i[t],n);return r>1?T.uniqueSort(n):n},filter:function(e){return this.pushStack(_(this,e||[],!1))},not:function(e){return this.pushStack(_(this,e||[],!0))},is:function(e){return!!_(this,"string"==typeof e&&F.test(e)?T(e):e||[],!1).length}});var I,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(e,t,n){var r,i;if(!e)return this;if(n=n||I,"string"==typeof e){if(!(r="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:W.exec(e))||!r[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(r[1]){if(t=t instanceof T?t[0]:t,T.merge(this,T.parseHTML(r[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),U.test(r[1])&&T.isPlainObject(t))for(r in t)v(this[r])?this[r](t[r]):this.attr(r,t[r]);return this}return(i=b.getElementById(r[2]))&&(this[0]=i,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(T):T.makeArray(e,this)}).prototype=T.fn,I=T(b);var B=/^(?:parents|prev(?:Until|All))/,$={children:!0,contents:!0,next:!0,prev:!0};function z(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}T.fn.extend({has:function(e){var t=T(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(T.contains(this,t[e]))return!0}))},closest:function(e,t){var n,r=0,i=this.length,o=[],s="string"!=typeof e&&T(e);if(!F.test(e))for(;r<i;r++)for(n=this[r];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&T.find.matchesSelector(n,e))){o.push(n);break}return this.pushStack(o.length>1?T.uniqueSort(o):o)},index:function(e){return e?"string"==typeof e?c.call(T(e),this[0]):c.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),T.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return R(e,"parentNode")},parentsUntil:function(e,t,n){return R(e,"parentNode",n)},next:function(e){return z(e,"nextSibling")},prev:function(e){return z(e,"previousSibling")},nextAll:function(e){return R(e,"nextSibling")},prevAll:function(e){return R(e,"previousSibling")},nextUntil:function(e,t,n){return R(e,"nextSibling",n)},prevUntil:function(e,t,n){return R(e,"previousSibling",n)},siblings:function(e){return V((e.parentNode||{}).firstChild,e)},children:function(e){return V(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(A(e,"template")&&(e=e.content||e),T.merge([],e.childNodes))}},(function(e,t){T.fn[e]=function(n,r){var i=T.map(this,t,n);return"Until"!==e.slice(-5)&&(r=n),r&&"string"==typeof r&&(i=T.filter(r,i)),this.length>1&&($[e]||T.uniqueSort(i),B.test(e)&&i.reverse()),this.pushStack(i)}}));var X=/[^\x20\t\r\n\f]+/g;function Y(e){return e}function G(e){throw e}function Q(e,t,n,r){var i;try{e&&v(i=e.promise)?i.call(e).done(t).fail(n):e&&v(i=e.then)?i.call(e,t,n):t.apply(void 0,[e].slice(r))}catch(e){n.apply(void 0,[e])}}T.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return T.each(e.match(X)||[],(function(e,n){t[n]=!0})),t}(e):T.extend({},e);var t,n,r,i,o=[],s=[],a=-1,l=function(){for(i=i||e.once,r=t=!0;s.length;a=-1)for(n=s.shift();++a<o.length;)!1===o[a].apply(n[0],n[1])&&e.stopOnFalse&&(a=o.length,n=!1);e.memory||(n=!1),t=!1,i&&(o=n?[]:"")},u={add:function(){return o&&(n&&!t&&(a=o.length-1,s.push(n)),function t(n){T.each(n,(function(n,r){v(r)?e.unique&&u.has(r)||o.push(r):r&&r.length&&"string"!==S(r)&&t(r)}))}(arguments),n&&!t&&l()),this},remove:function(){return T.each(arguments,(function(e,t){for(var n;(n=T.inArray(t,o,n))>-1;)o.splice(n,1),n<=a&&a--})),this},has:function(e){return e?T.inArray(e,o)>-1:o.length>0},empty:function(){return o&&(o=[]),this},disable:function(){return i=s=[],o=n="",this},disabled:function(){return!o},lock:function(){return i=s=[],n||t||(o=n=""),this},locked:function(){return!!i},fireWith:function(e,n){return i||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},T.extend({Deferred:function(e){var t=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",i={state:function(){return n},always:function(){return o.done(arguments).fail(arguments),this},catch:function(e){return i.then(null,e)},pipe:function(){var e=arguments;return T.Deferred((function(n){T.each(t,(function(t,r){var i=v(e[r[4]])&&e[r[4]];o[r[1]]((function(){var e=i&&i.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[r[0]+"With"](this,i?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,i){var o=0;function s(e,t,n,i){return function(){var a=this,l=arguments,u=function(){var r,u;if(!(e<o)){if((r=n.apply(a,l))===t.promise())throw new TypeError("Thenable self-resolution");u=r&&("object"==typeof r||"function"==typeof r)&&r.then,v(u)?i?u.call(r,s(o,t,Y,i),s(o,t,G,i)):(o++,u.call(r,s(o,t,Y,i),s(o,t,G,i),s(o,t,Y,t.notifyWith))):(n!==Y&&(a=void 0,l=[r]),(i||t.resolveWith)(a,l))}},c=i?u:function(){try{u()}catch(r){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(r,c.error),e+1>=o&&(n!==G&&(a=void 0,l=[r]),t.rejectWith(a,l))}};e?c():(T.Deferred.getErrorHook?c.error=T.Deferred.getErrorHook():T.Deferred.getStackHook&&(c.error=T.Deferred.getStackHook()),r.setTimeout(c))}}return T.Deferred((function(r){t[0][3].add(s(0,r,v(i)?i:Y,r.notifyWith)),t[1][3].add(s(0,r,v(e)?e:Y)),t[2][3].add(s(0,r,v(n)?n:G))})).promise()},promise:function(e){return null!=e?T.extend(e,i):i}},o={};return T.each(t,(function(e,r){var s=r[2],a=r[5];i[r[1]]=s.add,a&&s.add((function(){n=a}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(r[3].fire),o[r[0]]=function(){return o[r[0]+"With"](this===o?void 0:this,arguments),this},o[r[0]+"With"]=s.fireWith})),i.promise(o),e&&e.call(o,o),o},when:function(e){var t=arguments.length,n=t,r=Array(n),i=a.call(arguments),o=T.Deferred(),s=function(e){return function(n){r[e]=this,i[e]=arguments.length>1?a.call(arguments):n,--t||o.resolveWith(r,i)}};if(t<=1&&(Q(e,o.done(s(n)).resolve,o.reject,!t),"pending"===o.state()||v(i[n]&&i[n].then)))return o.then();for(;n--;)Q(i[n],s(n),o.reject);return o.promise()}});var J=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,t){r.console&&r.console.warn&&e&&J.test(e.name)&&r.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},T.readyException=function(e){r.setTimeout((function(){throw e}))};var K=T.Deferred();function Z(){b.removeEventListener("DOMContentLoaded",Z),r.removeEventListener("load",Z),T.ready()}T.fn.ready=function(e){return K.then(e).catch((function(e){T.readyException(e)})),this},T.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--T.readyWait:T.isReady)||(T.isReady=!0,!0!==e&&--T.readyWait>0||K.resolveWith(b,[T]))}}),T.ready.then=K.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?r.setTimeout(T.ready):(b.addEventListener("DOMContentLoaded",Z),r.addEventListener("load",Z));var ee=function(e,t,n,r,i,o,s){var a=0,l=e.length,u=null==n;if("object"===S(n))for(a in i=!0,n)ee(e,t,a,n[a],!0,o,s);else if(void 0!==r&&(i=!0,v(r)||(s=!0),u&&(s?(t.call(e,r),t=null):(u=t,t=function(e,t,n){return u.call(T(e),n)})),t))for(;a<l;a++)t(e[a],n,s?r:r.call(e[a],a,t(e[a],n)));return i?e:u?t.call(e):l?t(e[0],n):o},te=/^-ms-/,ne=/-([a-z])/g;function re(e,t){return t.toUpperCase()}function ie(e){return e.replace(te,"ms-").replace(ne,re)}var oe=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function se(){this.expando=T.expando+se.uid++}se.uid=1,se.prototype={cache:function(e){var t=e[this.expando];return t||(t={},oe(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var r,i=this.cache(e);if("string"==typeof t)i[ie(t)]=n;else for(r in t)i[ie(r)]=t[r];return i},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][ie(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,r=e[this.expando];if(void 0!==r){if(void 0!==t){n=(t=Array.isArray(t)?t.map(ie):(t=ie(t))in r?[t]:t.match(X)||[]).length;for(;n--;)delete r[t[n]]}(void 0===t||T.isEmptyObject(r))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!T.isEmptyObject(t)}};var ae=new se,le=new se,ue=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ce=/[A-Z]/g;function fe(e,t,n){var r;if(void 0===n&&1===e.nodeType)if(r="data-"+t.replace(ce,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(r))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ue.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}T.extend({hasData:function(e){return le.hasData(e)||ae.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return ae.access(e,t,n)},_removeData:function(e,t){ae.remove(e,t)}}),T.fn.extend({data:function(e,t){var n,r,i,o=this[0],s=o&&o.attributes;if(void 0===e){if(this.length&&(i=le.get(o),1===o.nodeType&&!ae.get(o,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(r=s[n].name).indexOf("data-")&&(r=ie(r.slice(5)),fe(o,r,i[r]));ae.set(o,"hasDataAttrs",!0)}return i}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(o&&void 0===t)return void 0!==(n=le.get(o,e))||void 0!==(n=fe(o,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),T.extend({queue:function(e,t,n){var r;if(e)return t=(t||"fx")+"queue",r=ae.get(e,t),n&&(!r||Array.isArray(n)?r=ae.access(e,t,T.makeArray(n)):r.push(n)),r||[]},dequeue:function(e,t){t=t||"fx";var n=T.queue(e,t),r=n.length,i=n.shift(),o=T._queueHooks(e,t);"inprogress"===i&&(i=n.shift(),r--),i&&("fx"===t&&n.unshift("inprogress"),delete o.stop,i.call(e,(function(){T.dequeue(e,t)}),o)),!r&&o&&o.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return ae.get(e,n)||ae.access(e,n,{empty:T.Callbacks("once memory").add((function(){ae.remove(e,[t+"queue",n])}))})}}),T.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?T.queue(this[0],e):void 0===t?this:this.each((function(){var n=T.queue(this,e,t);T._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&T.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){T.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,r=1,i=T.Deferred(),o=this,s=this.length,a=function(){--r||i.resolveWith(o,[o])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=ae.get(o[s],e+"queueHooks"))&&n.empty&&(r++,n.empty.add(a));return a(),i.promise(t)}});var de=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,pe=new RegExp("^(?:([+-])=|)("+de+")([a-z%]*)$","i"),he=["Top","Right","Bottom","Left"],me=b.documentElement,ge=function(e){return T.contains(e.ownerDocument,e)},ve={composed:!0};me.getRootNode&&(ge=function(e){return T.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ge(e)&&"none"===T.css(e,"display")};function be(e,t,n,r){var i,o,s=20,a=r?function(){return r.cur()}:function(){return T.css(e,t,"")},l=a(),u=n&&n[3]||(T.cssNumber[t]?"":"px"),c=e.nodeType&&(T.cssNumber[t]||"px"!==u&&+l)&&pe.exec(T.css(e,t));if(c&&c[3]!==u){for(l/=2,u=u||c[3],c=+l||1;s--;)T.style(e,t,c+u),(1-o)*(1-(o=a()/l||.5))<=0&&(s=0),c/=o;c*=2,T.style(e,t,c+u),n=n||[]}return n&&(c=+c||+l||0,i=n[1]?c+(n[1]+1)*n[2]:+n[2],r&&(r.unit=u,r.start=c,r.end=i)),i}var xe={};function we(e){var t,n=e.ownerDocument,r=e.nodeName,i=xe[r];return i||(t=n.body.appendChild(n.createElement(r)),i=T.css(t,"display"),t.parentNode.removeChild(t),"none"===i&&(i="block"),xe[r]=i,i)}function Se(e,t){for(var n,r,i=[],o=0,s=e.length;o<s;o++)(r=e[o]).style&&(n=r.style.display,t?("none"===n&&(i[o]=ae.get(r,"display")||null,i[o]||(r.style.display="")),""===r.style.display&&ye(r)&&(i[o]=we(r))):"none"!==n&&(i[o]="none",ae.set(r,"display",n)));for(o=0;o<s;o++)null!=i[o]&&(e[o].style.display=i[o]);return e}T.fn.extend({show:function(){return Se(this,!0)},hide:function(){return Se(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?T(this).show():T(this).hide()}))}});var Ce,Ee,Te=/^(?:checkbox|radio)$/i,ke=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ae=/^$|^module$|\/(?:java|ecma)script/i;Ce=b.createDocumentFragment().appendChild(b.createElement("div")),(Ee=b.createElement("input")).setAttribute("type","radio"),Ee.setAttribute("checked","checked"),Ee.setAttribute("name","t"),Ce.appendChild(Ee),g.checkClone=Ce.cloneNode(!0).cloneNode(!0).lastChild.checked,Ce.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!Ce.cloneNode(!0).lastChild.defaultValue,Ce.innerHTML="<option></option>",g.option=!!Ce.lastChild;var De={thead:[1,"<table>","</table>"],col:[2,"<table><colgroup>","</colgroup></table>"],tr:[2,"<table><tbody>","</tbody></table>"],td:[3,"<table><tbody><tr>","</tr></tbody></table>"],_default:[0,"",""]};function Ne(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&A(e,t)?T.merge([e],n):n}function je(e,t){for(var n=0,r=e.length;n<r;n++)ae.set(e[n],"globalEval",!t||ae.get(t[n],"globalEval"))}De.tbody=De.tfoot=De.colgroup=De.caption=De.thead,De.th=De.td,g.option||(De.optgroup=De.option=[1,"<select multiple='multiple'>","</select>"]);var Pe=/<|&#?\w+;/;function Oe(e,t,n,r,i){for(var o,s,a,l,u,c,f=t.createDocumentFragment(),d=[],p=0,h=e.length;p<h;p++)if((o=e[p])||0===o)if("object"===S(o))T.merge(d,o.nodeType?[o]:o);else if(Pe.test(o)){for(s=s||f.appendChild(t.createElement("div")),a=(ke.exec(o)||["",""])[1].toLowerCase(),l=De[a]||De._default,s.innerHTML=l[1]+T.htmlPrefilter(o)+l[2],c=l[0];c--;)s=s.lastChild;T.merge(d,s.childNodes),(s=f.firstChild).textContent=""}else d.push(t.createTextNode(o));for(f.textContent="",p=0;o=d[p++];)if(r&&T.inArray(o,r)>-1)i&&i.push(o);else if(u=ge(o),s=Ne(f.appendChild(o),"script"),u&&je(s),n)for(c=0;o=s[c++];)Ae.test(o.type||"")&&n.push(o);return f}var Le=/^([^.]*)(?:\.(.+)|)/;function Me(){return!0}function He(){return!1}function qe(e,t,n,r,i,o){var s,a;if("object"==typeof t){for(a in"string"!=typeof n&&(r=r||n,n=void 0),t)qe(e,a,n,r,t[a],o);return e}if(null==r&&null==i?(i=n,r=n=void 0):null==i&&("string"==typeof n?(i=r,r=void 0):(i=r,r=n,n=void 0)),!1===i)i=He;else if(!i)return e;return 1===o&&(s=i,i=function(e){return T().off(e),s.apply(this,arguments)},i.guid=s.guid||(s.guid=T.guid++)),e.each((function(){T.event.add(this,t,i,r,n)}))}function Re(e,t,n){n?(ae.set(e,t,!1),T.event.add(e,t,{namespace:!1,handler:function(e){var n,r=ae.get(this,t);if(1&e.isTrigger&&this[t]){if(r)(T.event.special[t]||{}).delegateType&&e.stopPropagation();else if(r=a.call(arguments),ae.set(this,t,r),this[t](),n=ae.get(this,t),ae.set(this,t,!1),r!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else r&&(ae.set(this,t,T.event.trigger(r[0],r.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Me)}})):void 0===ae.get(e,t)&&T.event.add(e,t,Me)}T.event={global:{},add:function(e,t,n,r,i){var o,s,a,l,u,c,f,d,p,h,m,g=ae.get(e);if(oe(e))for(n.handler&&(n=(o=n).handler,i=o.selector),i&&T.find.matchesSelector(me,i),n.guid||(n.guid=T.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(t){return void 0!==T&&T.event.triggered!==t.type?T.event.dispatch.apply(e,arguments):void 0}),u=(t=(t||"").match(X)||[""]).length;u--;)p=m=(a=Le.exec(t[u])||[])[1],h=(a[2]||"").split(".").sort(),p&&(f=T.event.special[p]||{},p=(i?f.delegateType:f.bindType)||p,f=T.event.special[p]||{},c=T.extend({type:p,origType:m,data:r,handler:n,guid:n.guid,selector:i,needsContext:i&&T.expr.match.needsContext.test(i),namespace:h.join(".")},o),(d=l[p])||((d=l[p]=[]).delegateCount=0,f.setup&&!1!==f.setup.call(e,r,h,s)||e.addEventListener&&e.addEventListener(p,s)),f.add&&(f.add.call(e,c),c.handler.guid||(c.handler.guid=n.guid)),i?d.splice(d.delegateCount++,0,c):d.push(c),T.event.global[p]=!0)},remove:function(e,t,n,r,i){var o,s,a,l,u,c,f,d,p,h,m,g=ae.hasData(e)&&ae.get(e);if(g&&(l=g.events)){for(u=(t=(t||"").match(X)||[""]).length;u--;)if(p=m=(a=Le.exec(t[u])||[])[1],h=(a[2]||"").split(".").sort(),p){for(f=T.event.special[p]||{},d=l[p=(r?f.delegateType:f.bindType)||p]||[],a=a[2]&&new RegExp("(^|\\.)"+h.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=o=d.length;o--;)c=d[o],!i&&m!==c.origType||n&&n.guid!==c.guid||a&&!a.test(c.namespace)||r&&r!==c.selector&&("**"!==r||!c.selector)||(d.splice(o,1),c.selector&&d.delegateCount--,f.remove&&f.remove.call(e,c));s&&!d.length&&(f.teardown&&!1!==f.teardown.call(e,h,g.handle)||T.removeEvent(e,p,g.handle),delete l[p])}else for(p in l)T.event.remove(e,p+t[u],n,r,!0);T.isEmptyObject(l)&&ae.remove(e,"handle events")}},dispatch:function(e){var t,n,r,i,o,s,a=new Array(arguments.length),l=T.event.fix(e),u=(ae.get(this,"events")||Object.create(null))[l.type]||[],c=T.event.special[l.type]||{};for(a[0]=l,t=1;t<arguments.length;t++)a[t]=arguments[t];if(l.delegateTarget=this,!c.preDispatch||!1!==c.preDispatch.call(this,l)){for(s=T.event.handlers.call(this,l,u),t=0;(i=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=i.elem,n=0;(o=i.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==o.namespace&&!l.rnamespace.test(o.namespace)||(l.handleObj=o,l.data=o.data,void 0!==(r=((T.event.special[o.origType]||{}).handle||o.handler).apply(i.elem,a))&&!1===(l.result=r)&&(l.preventDefault(),l.stopPropagation()));return c.postDispatch&&c.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,r,i,o,s,a=[],l=t.delegateCount,u=e.target;if(l&&u.nodeType&&!("click"===e.type&&e.button>=1))for(;u!==this;u=u.parentNode||this)if(1===u.nodeType&&("click"!==e.type||!0!==u.disabled)){for(o=[],s={},n=0;n<l;n++)void 0===s[i=(r=t[n]).selector+" "]&&(s[i]=r.needsContext?T(i,this).index(u)>-1:T.find(i,this,null,[u]).length),s[i]&&o.push(r);o.length&&a.push({elem:u,handlers:o})}return u=this,l<t.length&&a.push({elem:u,handlers:t.slice(l)}),a},addProp:function(e,t){Object.defineProperty(T.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[T.expando]?e:new T.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return Te.test(t.type)&&t.click&&A(t,"input")&&Re(t,"click",!0),!1},trigger:function(e){var t=this||e;return Te.test(t.type)&&t.click&&A(t,"input")&&Re(t,"click"),!0},_default:function(e){var t=e.target;return Te.test(t.type)&&t.click&&A(t,"input")&&ae.get(t,"click")||A(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},T.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},T.Event=function(e,t){if(!(this instanceof T.Event))return new T.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Me:He,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&T.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:He,isPropagationStopped:He,isImmediatePropagationStopped:He,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Me,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Me,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Me,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},T.each({altKey:!0,bubbles:!0,cancelable:!0,changedTouches:!0,ctrlKey:!0,detail:!0,eventPhase:!0,metaKey:!0,pageX:!0,pageY:!0,shiftKey:!0,view:!0,char:!0,code:!0,charCode:!0,key:!0,keyCode:!0,button:!0,buttons:!0,clientX:!0,clientY:!0,offsetX:!0,offsetY:!0,pointerId:!0,pointerType:!0,screenX:!0,screenY:!0,targetTouches:!0,toElement:!0,touches:!0,which:!0},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=ae.get(this,"handle"),r=T.event.fix(e);r.type="focusin"===e.type?"focus":"blur",r.isSimulated=!0,n(e),r.target===r.currentTarget&&n(r)}else T.event.simulate(t,e.target,T.event.fix(e))}T.event.special[e]={setup:function(){var r;if(Re(this,e,!0),!b.documentMode)return!1;(r=ae.get(this,t))||this.addEventListener(t,n),ae.set(this,t,(r||0)+1)},trigger:function(){return Re(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=ae.get(this,t)-1)?ae.set(this,t,e):(this.removeEventListener(t,n),ae.remove(this,t))},_default:function(t){return ae.get(t.target,e)},delegateType:t},T.event.special[t]={setup:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=ae.get(i,t);o||(b.documentMode?this.addEventListener(t,n):r.addEventListener(e,n,!0)),ae.set(i,t,(o||0)+1)},teardown:function(){var r=this.ownerDocument||this.document||this,i=b.documentMode?this:r,o=ae.get(i,t)-1;o?ae.set(i,t,o):(b.documentMode?this.removeEventListener(t,n):r.removeEventListener(e,n,!0),ae.remove(i,t))}}})),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){T.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,r=e.relatedTarget,i=e.handleObj;return r&&(r===this||T.contains(this,r))||(e.type=i.origType,n=i.handler.apply(this,arguments),e.type=t),n}}})),T.fn.extend({on:function(e,t,n,r){return qe(this,e,t,n,r)},one:function(e,t,n,r){return qe(this,e,t,n,r,1)},off:function(e,t,n){var r,i;if(e&&e.preventDefault&&e.handleObj)return r=e.handleObj,T(e.delegateTarget).off(r.namespace?r.origType+"."+r.namespace:r.origType,r.selector,r.handler),this;if("object"==typeof e){for(i in e)this.off(i,t,e[i]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=He),this.each((function(){T.event.remove(this,e,n,t)}))}});var Ve=/<script|<style|<link/i,Fe=/checked\s*(?:[^=]|=\s*.checked.)/i,Ue=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function _e(e,t){return A(e,"table")&&A(11!==t.nodeType?t:t.firstChild,"tr")&&T(e).children("tbody")[0]||e}function Ie(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function Be(e,t){var n,r,i,o,s,a;if(1===t.nodeType){if(ae.hasData(e)&&(a=ae.get(e).events))for(i in ae.remove(t,"handle events"),a)for(n=0,r=a[i].length;n<r;n++)T.event.add(t,i,a[i][n]);le.hasData(e)&&(o=le.access(e),s=T.extend({},o),le.set(t,s))}}function $e(e,t){var n=t.nodeName.toLowerCase();"input"===n&&Te.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function ze(e,t,n,r){t=l(t);var i,o,s,a,u,c,f=0,d=e.length,p=d-1,h=t[0],m=v(h);if(m||d>1&&"string"==typeof h&&!g.checkClone&&Fe.test(h))return e.each((function(i){var o=e.eq(i);m&&(t[0]=h.call(this,i,o.html())),ze(o,t,n,r)}));if(d&&(o=(i=Oe(t,e[0].ownerDocument,!1,e,r)).firstChild,1===i.childNodes.length&&(i=o),o||r)){for(a=(s=T.map(Ne(i,"script"),Ie)).length;f<d;f++)u=i,f!==p&&(u=T.clone(u,!0,!0),a&&T.merge(s,Ne(u,"script"))),n.call(e[f],u,f);if(a)for(c=s[s.length-1].ownerDocument,T.map(s,We),f=0;f<a;f++)u=s[f],Ae.test(u.type||"")&&!ae.access(u,"globalEval")&&T.contains(c,u)&&(u.src&&"module"!==(u.type||"").toLowerCase()?T._evalUrl&&!u.noModule&&T._evalUrl(u.src,{nonce:u.nonce||u.getAttribute("nonce")},c):w(u.textContent.replace(Ue,""),u,c))}return e}function Xe(e,t,n){for(var r,i=t?T.filter(t,e):e,o=0;null!=(r=i[o]);o++)n||1!==r.nodeType||T.cleanData(Ne(r)),r.parentNode&&(n&&ge(r)&&je(Ne(r,"script")),r.parentNode.removeChild(r));return e}T.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var r,i,o,s,a=e.cloneNode(!0),l=ge(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||T.isXMLDoc(e)))for(s=Ne(a),r=0,i=(o=Ne(e)).length;r<i;r++)$e(o[r],s[r]);if(t)if(n)for(o=o||Ne(e),s=s||Ne(a),r=0,i=o.length;r<i;r++)Be(o[r],s[r]);else Be(e,a);return(s=Ne(a,"script")).length>0&&je(s,!l&&Ne(e,"script")),a},cleanData:function(e){for(var t,n,r,i=T.event.special,o=0;void 0!==(n=e[o]);o++)if(oe(n)){if(t=n[ae.expando]){if(t.events)for(r in t.events)i[r]?T.event.remove(n,r):T.removeEvent(n,r,t.handle);n[ae.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),T.fn.extend({detach:function(e){return Xe(this,e,!0)},remove:function(e){return Xe(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return ze(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||_e(this,e).appendChild(e)}))},prepend:function(){return ze(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=_e(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return ze(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(T.cleanData(Ne(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return T.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,r=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ve.test(e)&&!De[(ke.exec(e)||["",""])[1].toLowerCase()]){e=T.htmlPrefilter(e);try{for(;n<r;n++)1===(t=this[n]||{}).nodeType&&(T.cleanData(Ne(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return ze(this,arguments,(function(t){var n=this.parentNode;T.inArray(this,e)<0&&(T.cleanData(Ne(this)),n&&n.replaceChild(t,this))}),e)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){T.fn[e]=function(e){for(var n,r=[],i=T(e),o=i.length-1,s=0;s<=o;s++)n=s===o?this:this.clone(!0),T(i[s])[t](n),u.apply(r,n.get());return this.pushStack(r)}}));var Ye=new RegExp("^("+de+")(?!px)[a-z%]+$","i"),Ge=/^--/,Qe=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=r),t.getComputedStyle(e)},Je=function(e,t,n){var r,i,o={};for(i in t)o[i]=e.style[i],e.style[i]=t[i];for(i in r=n.call(e),t)e.style[i]=o[i];return r},Ke=new RegExp(he.join("|"),"i");function Ze(e,t,n){var r,i,o,s,a=Ge.test(t),l=e.style;return(n=n||Qe(e))&&(s=n.getPropertyValue(t)||n[t],a&&s&&(s=s.replace(O,"$1")||void 0),""!==s||ge(e)||(s=T.style(e,t)),!g.pixelBoxStyles()&&Ye.test(s)&&Ke.test(t)&&(r=l.width,i=l.minWidth,o=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=r,l.minWidth=i,l.maxWidth=o)),void 0!==s?s+"":s}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(c){u.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",c.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",me.appendChild(u).appendChild(c);var e=r.getComputedStyle(c);n="1%"!==e.top,l=12===t(e.marginLeft),c.style.right="60%",s=36===t(e.right),i=36===t(e.width),c.style.position="absolute",o=12===t(c.offsetWidth/3),me.removeChild(u),c=null}}function t(e){return Math.round(parseFloat(e))}var n,i,o,s,a,l,u=b.createElement("div"),c=b.createElement("div");c.style&&(c.style.backgroundClip="content-box",c.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===c.style.backgroundClip,T.extend(g,{boxSizingReliable:function(){return e(),i},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),o},reliableTrDimensions:function(){var e,t,n,i;return null==a&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",me.appendChild(e).appendChild(t).appendChild(n),i=r.getComputedStyle(t),a=parseInt(i.height,10)+parseInt(i.borderTopWidth,10)+parseInt(i.borderBottomWidth,10)===t.offsetHeight,me.removeChild(e)),a}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,rt={};function it(e){var t=T.cssProps[e]||rt[e];return t||(e in nt?e:rt[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var ot=/^(none|table(?!-c[ea]).+)/,st={position:"absolute",visibility:"hidden",display:"block"},at={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var r=pe.exec(t);return r?Math.max(0,r[2]-(n||0))+(r[3]||"px"):t}function ut(e,t,n,r,i,o){var s="width"===t?1:0,a=0,l=0,u=0;if(n===(r?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(u+=T.css(e,n+he[s],!0,i)),r?("content"===n&&(l-=T.css(e,"padding"+he[s],!0,i)),"margin"!==n&&(l-=T.css(e,"border"+he[s]+"Width",!0,i))):(l+=T.css(e,"padding"+he[s],!0,i),"padding"!==n?l+=T.css(e,"border"+he[s]+"Width",!0,i):a+=T.css(e,"border"+he[s]+"Width",!0,i));return!r&&o>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-o-l-a-.5))||0),l+u}function ct(e,t,n){var r=Qe(e),i=(!g.boxSizingReliable()||n)&&"border-box"===T.css(e,"boxSizing",!1,r),o=i,s=Ze(e,t,r),a="offset"+t[0].toUpperCase()+t.slice(1);if(Ye.test(s)){if(!n)return s;s="auto"}return(!g.boxSizingReliable()&&i||!g.reliableTrDimensions()&&A(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===T.css(e,"display",!1,r))&&e.getClientRects().length&&(i="border-box"===T.css(e,"boxSizing",!1,r),(o=a in e)&&(s=e[a])),(s=parseFloat(s)||0)+ut(e,t,n||(i?"border":"content"),o,r,s)+"px"}function ft(e,t,n,r,i){return new ft.prototype.init(e,t,n,r,i)}T.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!0,flexGrow:!0,flexShrink:!0,fontWeight:!0,gridArea:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnStart:!0,gridRow:!0,gridRowEnd:!0,gridRowStart:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,r){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var i,o,s,a=ie(t),l=Ge.test(t),u=e.style;if(l||(t=it(a)),s=T.cssHooks[t]||T.cssHooks[a],void 0===n)return s&&"get"in s&&void 0!==(i=s.get(e,!1,r))?i:u[t];"string"===(o=typeof n)&&(i=pe.exec(n))&&i[1]&&(n=be(e,t,i),o="number"),null!=n&&n==n&&("number"!==o||l||(n+=i&&i[3]||(T.cssNumber[a]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(u[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,r))||(l?u.setProperty(t,n):u[t]=n))}},css:function(e,t,n,r){var i,o,s,a=ie(t);return Ge.test(t)||(t=it(a)),(s=T.cssHooks[t]||T.cssHooks[a])&&"get"in s&&(i=s.get(e,!0,n)),void 0===i&&(i=Ze(e,t,r)),"normal"===i&&t in at&&(i=at[t]),""===n||n?(o=parseFloat(i),!0===n||isFinite(o)?o||0:i):i}}),T.each(["height","width"],(function(e,t){T.cssHooks[t]={get:function(e,n,r){if(n)return!ot.test(T.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ct(e,t,r):Je(e,st,(function(){return ct(e,t,r)}))},set:function(e,n,r){var i,o=Qe(e),s=!g.scrollboxSize()&&"absolute"===o.position,a=(s||r)&&"border-box"===T.css(e,"boxSizing",!1,o),l=r?ut(e,t,r,a,o):0;return a&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(o[t])-ut(e,t,"border",!1,o)-.5)),l&&(i=pe.exec(n))&&"px"!==(i[3]||"px")&&(e.style[t]=n,n=T.css(e,t)),lt(0,n,l)}}})),T.cssHooks.marginLeft=et(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ze(e,"marginLeft"))||e.getBoundingClientRect().left-Je(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(e,t){T.cssHooks[e+t]={expand:function(n){for(var r=0,i={},o="string"==typeof n?n.split(" "):[n];r<4;r++)i[e+he[r]+t]=o[r]||o[r-2]||o[0];return i}},"margin"!==e&&(T.cssHooks[e+t].set=lt)})),T.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var r,i,o={},s=0;if(Array.isArray(t)){for(r=Qe(e),i=t.length;s<i;s++)o[t[s]]=T.css(e,t[s],!1,r);return o}return void 0!==n?T.style(e,t,n):T.css(e,t)}),e,t,arguments.length>1)}}),T.Tween=ft,ft.prototype={constructor:ft,init:function(e,t,n,r,i,o){this.elem=e,this.prop=n,this.easing=i||T.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=r,this.unit=o||(T.cssNumber[n]?"":"px")},cur:function(){var e=ft.propHooks[this.prop];return e&&e.get?e.get(this):ft.propHooks._default.get(this)},run:function(e){var t,n=ft.propHooks[this.prop];return this.options.duration?this.pos=t=T.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):ft.propHooks._default.set(this),this}},ft.prototype.init.prototype=ft.prototype,ft.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=T.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){T.fx.step[e.prop]?T.fx.step[e.prop](e):1!==e.elem.nodeType||!T.cssHooks[e.prop]&&null==e.elem.style[it(e.prop)]?e.elem[e.prop]=e.now:T.style(e.elem,e.prop,e.now+e.unit)}}},ft.propHooks.scrollTop=ft.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},T.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},T.fx=ft.prototype.init,T.fx.step={};var dt,pt,ht=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function gt(){pt&&(!1===b.hidden&&r.requestAnimationFrame?r.requestAnimationFrame(gt):r.setTimeout(gt,T.fx.interval),T.fx.tick())}function vt(){return r.setTimeout((function(){dt=void 0})),dt=Date.now()}function yt(e,t){var n,r=0,i={height:e};for(t=t?1:0;r<4;r+=2-t)i["margin"+(n=he[r])]=i["padding"+n]=e;return t&&(i.opacity=i.width=e),i}function bt(e,t,n){for(var r,i=(xt.tweeners[t]||[]).concat(xt.tweeners["*"]),o=0,s=i.length;o<s;o++)if(r=i[o].call(n,t,e))return r}function xt(e,t,n){var r,i,o=0,s=xt.prefilters.length,a=T.Deferred().always((function(){delete l.elem})),l=function(){if(i)return!1;for(var t=dt||vt(),n=Math.max(0,u.startTime+u.duration-t),r=1-(n/u.duration||0),o=0,s=u.tweens.length;o<s;o++)u.tweens[o].run(r);return a.notifyWith(e,[u,r,n]),r<1&&s?n:(s||a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u]),!1)},u=a.promise({elem:e,props:T.extend({},t),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},n),originalProperties:t,originalOptions:n,startTime:dt||vt(),duration:n.duration,tweens:[],createTween:function(t,n){var r=T.Tween(e,u.opts,t,n,u.opts.specialEasing[t]||u.opts.easing);return u.tweens.push(r),r},stop:function(t){var n=0,r=t?u.tweens.length:0;if(i)return this;for(i=!0;n<r;n++)u.tweens[n].run(1);return t?(a.notifyWith(e,[u,1,0]),a.resolveWith(e,[u,t])):a.rejectWith(e,[u,t]),this}}),c=u.props;for(!function(e,t){var n,r,i,o,s;for(n in e)if(i=t[r=ie(n)],o=e[n],Array.isArray(o)&&(i=o[1],o=e[n]=o[0]),n!==r&&(e[r]=o,delete e[n]),(s=T.cssHooks[r])&&"expand"in s)for(n in o=s.expand (o),delete e[r],o)n in e||(e[n]=o[n],t[n]=i);else t[r]=i}(c,u.opts.specialEasing);o<s;o++)if(r=xt.prefilters[o].call(u,e,c,u.opts))return v(r.stop)&&(T._queueHooks(u.elem,u.opts.queue).stop=r.stop.bind(r)),r;return T.map(c,bt,u),v(u.opts.start)&&u.opts.start.call(e,u),u.progress(u.opts.progress).done(u.opts.done,u.opts.complete).fail(u.opts.fail).always(u.opts.always),T.fx.timer(T.extend(l,{elem:e,anim:u,queue:u.opts.queue})),u}T.Animation=T.extend(xt,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,pe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(X);for(var n,r=0,i=e.length;r<i;r++)n=e[r],xt.tweeners[n]=xt.tweeners[n]||[],xt.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var r,i,o,s,a,l,u,c,f="width"in t||"height"in t,d=this,p={},h=e.style,m=e.nodeType&&ye(e),g=ae.get(e,"fxshow");for(r in n.queue||(null==(s=T._queueHooks(e,"fx")).unqueued&&(s.unqueued=0,a=s.empty.fire,s.empty.fire=function(){s.unqueued||a()}),s.unqueued++,d.always((function(){d.always((function(){s.unqueued--,T.queue(e,"fx").length||s.empty.fire()}))}))),t)if(i=t[r],ht.test(i)){if(delete t[r],o=o||"toggle"===i,i===(m?"hide":"show")){if("show"!==i||!g||void 0===g[r])continue;m=!0}p[r]=g&&g[r]||T.style(e,r)}if((l=!T.isEmptyObject(t))||!T.isEmptyObject(p))for(r in f&&1===e.nodeType&&(n.overflow=[h.overflow,h.overflowX,h.overflowY],null==(u=g&&g.display)&&(u=ae.get(e,"display")),"none"===(c=T.css(e,"display"))&&(u?c=u:(Se([e],!0),u=e.style.display||u,c=T.css(e,"display"),Se([e]))),("inline"===c||"inline-block"===c&&null!=u)&&"none"===T.css(e,"float")&&(l||(d.done((function(){h.display=u})),null==u&&(c=h.display,u="none"===c?"":c)),h.display="inline-block")),n.overflow&&(h.overflow="hidden",d.always((function(){h.overflow=n.overflow[0],h.overflowX=n.overflow[1],h.overflowY=n.overflow[2]}))),l=!1,p)l||(g?"hidden"in g&&(m=g.hidden):g=ae.access(e,"fxshow",{display:u}),o&&(g.hidden=!m),m&&Se([e],!0),d.done((function(){for(r in m||Se([e]),ae.remove(e,"fxshow"),p)T.style(e,r,p[r])}))),l=bt(m?g[r]:0,r,d),r in g||(g[r]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?xt.prefilters.unshift(e):xt.prefilters.push(e)}}),T.speed=function(e,t,n){var r=e&&"object"==typeof e?T.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return T.fx.off?r.duration=0:"number"!=typeof r.duration&&(r.duration in T.fx.speeds?r.duration=T.fx.speeds[r.duration]:r.duration=T.fx.speeds._default),null!=r.queue&&!0!==r.queue||(r.queue="fx"),r.old=r.complete,r.complete=function(){v(r.old)&&r.old.call(this),r.queue&&T.dequeue(this,r.queue)},r},T.fn.extend({fadeTo:function(e,t,n,r){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,r)},animate:function(e,t,n,r){var i=T.isEmptyObject(e),o=T.speed(t,n,r),s=function(){var t=xt(this,T.extend({},e),o);(i||ae.get(this,"finish"))&&t.stop(!0)};return s.finish=s,i||!1===o.queue?this.each(s):this.queue(o.queue,s)},stop:function(e,t,n){var r=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,i=null!=e&&e+"queueHooks",o=T.timers,s=ae.get(this);if(i)s[i]&&s[i].stop&&r(s[i]);else for(i in s)s[i]&&s[i].stop&&mt.test(i)&&r(s[i]);for(i=o.length;i--;)o[i].elem!==this||null!=e&&o[i].queue!==e||(o[i].anim.stop(n),t=!1,o.splice(i,1));!t&&n||T.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=ae.get(this),r=n[e+"queue"],i=n[e+"queueHooks"],o=T.timers,s=r?r.length:0;for(n.finish=!0,T.queue(this,e,[]),i&&i.stop&&i.stop.call(this,!0),t=o.length;t--;)o[t].elem===this&&o[t].queue===e&&(o[t].anim.stop(!0),o.splice(t,1));for(t=0;t<s;t++)r[t]&&r[t].finish&&r[t].finish.call(this);delete n.finish}))}}),T.each(["toggle","show","hide"],(function(e,t){var n=T.fn[t];T.fn[t]=function(e,r,i){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,r,i)}})),T.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){T.fn[e]=function(e,n,r){return this.animate(t,e,n,r)}})),T.timers=[],T.fx.tick=function(){var e,t=0,n=T.timers;for(dt=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||T.fx.stop(),dt=void 0},T.fx.timer=function(e){T.timers.push(e),T.fx.start()},T.fx.interval=13,T.fx.start=function(){pt||(pt=!0,gt())},T.fx.stop=function(){pt=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,t){return e=T.fx&&T.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var i=r.setTimeout(t,e);n.stop=function(){r.clearTimeout(i)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var wt,St=T.expr.attrHandle;T.fn.extend({attr:function(e,t){return ee(this,T.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){T.removeAttr(this,e)}))}}),T.extend({attr:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return void 0===e.getAttribute?T.prop(e,t,n):(1===o&&T.isXMLDoc(e)||(i=T.attrHooks[t.toLowerCase()]||(T.expr.match.bool.test(t)?wt:void 0)),void 0!==n?null===n?void T.removeAttr(e,t):i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:(e.setAttribute(t,n+""),n):i&&"get"in i&&null!==(r=i.get(e,t))?r:null==(r=T.find.attr(e,t))?void 0:r)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&A(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,r=0,i=t&&t.match(X);if(i&&1===e.nodeType)for(;n=i[r++];)e.removeAttribute(n)}}),wt={set:function(e,t,n){return!1===t?T.removeAttr(e,n):e.setAttribute(n,n),n}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=St[t]||T.find.attr;St[t]=function(e,t,r){var i,o,s=t.toLowerCase();return r||(o=St[s],St[s]=i,i=null!=n(e,t,r)?s:null,St[s]=o),i}}));var Ct=/^(?:input|select|textarea|button)$/i,Et=/^(?:a|area)$/i;function Tt(e){return(e.match(X)||[]).join(" ")}function kt(e){return e.getAttribute&&e.getAttribute("class")||""}function At(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(X)||[]}T.fn.extend({prop:function(e,t){return ee(this,T.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[T.propFix[e]||e]}))}}),T.extend({prop:function(e,t,n){var r,i,o=e.nodeType;if(3!==o&&8!==o&&2!==o)return 1===o&&T.isXMLDoc(e)||(t=T.propFix[t]||t,i=T.propHooks[t]),void 0!==n?i&&"set"in i&&void 0!==(r=i.set(e,n,t))?r:e[t]=n:i&&"get"in i&&null!==(r=i.get(e,t))?r:e[t]},propHooks:{tabIndex:{get:function(e){var t=T.find.attr(e,"tabindex");return t?parseInt(t,10):Ct.test(e.nodeName)||Et.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(T.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(e){var t,n,r,i,o,s;return v(e)?this.each((function(t){T(this).addClass(e.call(this,t,kt(this)))})):(t=At(e)).length?this.each((function(){if(r=kt(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<t.length;o++)i=t[o],n.indexOf(" "+i+" ")<0&&(n+=i+" ");s=Tt(n),r!==s&&this.setAttribute("class",s)}})):this},removeClass:function(e){var t,n,r,i,o,s;return v(e)?this.each((function(t){T(this).removeClass(e.call(this,t,kt(this)))})):arguments.length?(t=At(e)).length?this.each((function(){if(r=kt(this),n=1===this.nodeType&&" "+Tt(r)+" "){for(o=0;o<t.length;o++)for(i=t[o];n.indexOf(" "+i+" ")>-1;)n=n.replace(" "+i+" "," ");s=Tt(n),r!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,r,i,o,s=typeof e,a="string"===s||Array.isArray(e);return v(e)?this.each((function(n){T(this).toggleClass(e.call(this,n,kt(this),t),t)})):"boolean"==typeof t&&a?t?this.addClass(e):this.removeClass(e):(n=At(e),this.each((function(){if(a)for(o=T(this),i=0;i<n.length;i++)r=n[i],o.hasClass(r)?o.removeClass(r):o.addClass(r);else void 0!==e&&"boolean"!==s||((r=kt(this))&&ae.set(this,"__className__",r),this.setAttribute&&this.setAttribute("class",r||!1===e?"":ae.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,r=0;for(t=" "+e+" ";n=this[r++];)if(1===n.nodeType&&(" "+Tt(kt(n))+" ").indexOf(t)>-1)return!0;return!1}});var Dt=/\r/g;T.fn.extend({val:function(e){var t,n,r,i=this[0];return arguments.length?(r=v(e),this.each((function(n){var i;1===this.nodeType&&(null==(i=r?e.call(this,n,T(this).val()):e)?i="":"number"==typeof i?i+="":Array.isArray(i)&&(i=T.map(i,(function(e){return null==e?"":e+""}))),(t=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,i,"value")||(this.value=i))}))):i?(t=T.valHooks[i.type]||T.valHooks[i.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(i,"value"))?n:"string"==typeof(n=i.value)?n.replace(Dt,""):null==n?"":n:void 0}}),T.extend({valHooks:{option:{get:function(e){var t=T.find.attr(e,"value");return null!=t?t:Tt(T.text(e))}},select:{get:function(e){var t,n,r,i=e.options,o=e.selectedIndex,s="select-one"===e.type,a=s?null:[],l=s?o+1:i.length;for(r=o<0?l:s?o:0;r<l;r++)if(((n=i[r]).selected||r===o)&&!n.disabled&&(!n.parentNode.disabled||!A(n.parentNode,"optgroup"))){if(t=T(n).val(),s)return t;a.push(t)}return a},set:function(e,t){for(var n,r,i=e.options,o=T.makeArray(t),s=i.length;s--;)((r=i[s]).selected=T.inArray(T.valHooks.option.get(r),o)>-1)&&(n=!0);return n||(e.selectedIndex=-1),o}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=T.inArray(T(e).val(),t)>-1}},g.checkOn||(T.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Nt=r.location,jt={guid:Date.now()},Pt=/\?/;T.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new r.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Ot=/^(?:focusinfocus|focusoutblur)$/,Lt=function(e){e.stopPropagation()};T.extend(T.event,{trigger:function(e,t,n,i){var o,s,a,l,u,c,f,d,h=[n||b],m=p.call(e,"type")?e.type:e,g=p.call(e,"namespace")?e.namespace.split("."):[];if(s=d=a=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Ot.test(m+T.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),u=m.indexOf(":")<0&&"on"+m,(e=e[T.expando]?e:new T.Event(m,"object"==typeof e&&e)).isTrigger=i?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:T.makeArray(t,[e]),f=T.event.special[m]||{},i||!f.trigger||!1!==f.trigger.apply(n,t))){if(!i&&!f.noBubble&&!y(n)){for(l=f.delegateType||m,Ot.test(l+m)||(s=s.parentNode);s;s=s.parentNode)h.push(s),a=s;a===(n.ownerDocument||b)&&h.push(a.defaultView||a.parentWindow||r)}for(o=0;(s=h[o++])&&!e.isPropagationStopped();)d=s,e.type=o>1?l:f.bindType||m,(c=(ae.get(s,"events")||Object.create(null))[e.type]&&ae.get(s,"handle"))&&c.apply(s,t),(c=u&&s[u])&&c.apply&&oe(s)&&(e.result=c.apply(s,t),!1===e.result&&e.preventDefault());return e.type=m,i||e.isDefaultPrevented()||f._default&&!1!==f._default.apply(h.pop(),t)||!oe(n)||u&&v(n[m])&&!y(n)&&((a=n[u])&&(n[u]=null),T.event.triggered=m,e.isPropagationStopped()&&d.addEventListener(m,Lt),n[m](),e.isPropagationStopped()&&d.removeEventListener(m,Lt),T.event.triggered=void 0,a&&(n[u]=a)),e.result}},simulate:function(e,t,n){var r=T.extend(new T.Event,n,{type:e,isSimulated:!0});T.event.trigger(r,null,t)}}),T.fn.extend({trigger:function(e,t){return this.each((function(){T.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return T.event.trigger(e,t,n,!0)}});var Mt=/\[\]$/,Ht=/\r?\n/g,qt=/^(?:submit|button|image|reset|file)$/i,Rt=/^(?:input|select|textarea|keygen)/i;function Vt(e,t,n,r){var i;if(Array.isArray(t))T.each(t,(function(t,i){n||Mt.test(e)?r(e,i):Vt(e+"["+("object"==typeof i&&null!=i?t:"")+"]",i,n,r)}));else if(n||"object"!==S(t))r(e,t);else for(i in t)Vt(e+"["+i+"]",t[i],n,r)}T.param=function(e,t){var n,r=[],i=function(e,t){var n=v(t)?t():t;r[r.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!T.isPlainObject(e))T.each(e,(function(){i(this.name,this.value)}));else for(n in e)Vt(n,e[n],t,i);return r.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=T.prop(this,"elements");return e?T.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!T(this).is(":disabled")&&Rt.test(this.nodeName)&&!qt.test(e)&&(this.checked||!Te.test(e))})).map((function(e,t){var n=T(this).val();return null==n?null:Array.isArray(n)?T.map(n,(function(e){return{name:t.name,value:e.replace(Ht,"\r\n")}})):{name:t.name,value:n.replace(Ht,"\r\n")}})).get()}});var Ft=/%20/g,Ut=/#.*$/,_t=/([?&])_=[^&]*/,It=/^(.*?):[ \t]*([^\r\n]*)$/gm,Wt=/^(?:GET|HEAD)$/,Bt=/^\/\//,$t={},zt={},Xt="*/".concat("*"),Yt=b.createElement("a");function Gt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var r,i=0,o=t.toLowerCase().match(X)||[];if(v(n))for(;r=o[i++];)"+"===r[0]?(r=r.slice(1)||"*",(e[r]=e[r]||[]).unshift(n)):(e[r]=e[r]||[]).push(n)}}function Qt(e,t,n,r){var i={},o=e===zt;function s(a){var l;return i[a]=!0,T.each(e[a]||[],(function(e,a){var u=a(t,n,r);return"string"!=typeof u||o||i[u]?o?!(l=u):void 0:(t.dataTypes.unshift(u),s(u),!1)})),l}return s(t.dataTypes[0])||!i["*"]&&s("*")}function Jt(e,t){var n,r,i=T.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((i[n]?e:r||(r={}))[n]=t[n]);return r&&T.extend(!0,e,r),e}Yt.href=Nt.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Nt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Nt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xt,text:"text/plain",html:"text/html",xml:"application/xml, text/xml",json:"application/json, text/javascript"},contents:{xml:/\bxml\b/,html:/\bhtml/,json:/\bjson\b/},responseFields:{xml:"responseXML",text:"responseText",json:"responseJSON"},converters:{"* text":String,"text html":!0,"text json":JSON.parse,"text xml":T.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Jt(Jt(e,T.ajaxSettings),t):Jt(T.ajaxSettings,e)},ajaxPrefilter:Gt($t),ajaxTransport:Gt(zt),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,i,o,s,a,l,u,c,f,d,p=T.ajaxSetup({},t),h=p.context||p,m=p.context&&(h.nodeType||h.jquery)?T(h):T.event,g=T.Deferred(),v=T.Callbacks("once memory"),y=p.statusCode||{},x={},w={},S="canceled",C={readyState:0,getResponseHeader:function(e){var t;if(u){if(!s)for(s={};t=It.exec(o);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return u?o:null},setRequestHeader:function(e,t){return null==u&&(e=w[e.toLowerCase()]=w[e.toLowerCase()]||e,x[e]=t),this},overrideMimeType:function(e){return null==u&&(p.mimeType=e),this},statusCode:function(e){var t;if(e)if(u)C.always(e[C.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||S;return n&&n.abort(t),E(0,t),this}};if(g.promise(C),p.url=((e||p.url||Nt.href)+"").replace(Bt,Nt.protocol+"//"),p.type=t.method||t.type||p.method||p.type,p.dataTypes=(p.dataType||"*").toLowerCase().match(X)||[""],null==p.crossDomain){l=b.createElement("a");try{l.href=p.url,l.href=l.href,p.crossDomain=Yt.protocol+"//"+Yt.host!=l.protocol+"//"+l.host}catch(e){p.crossDomain=!0}}if(p.data&&p.processData&&"string"!=typeof p.data&&(p.data=T.param(p.data,p.traditional)),Qt($t,p,t,C),u)return C;for(f in(c=T.event&&p.global)&&0==T.active++&&T.event.trigger("ajaxStart"),p.type=p.type.toUpperCase(),p.hasContent=!Wt.test(p.type),i=p.url.replace(Ut,""),p.hasContent?p.data&&p.processData&&0===(p.contentType||"").indexOf("application/x-www-form-urlencoded")&&(p.data=p.data.replace(Ft,"+")):(d=p.url.slice(i.length),p.data&&(p.processData||"string"==typeof p.data)&&(i+=(Pt.test(i)?"&":"?")+p.data,delete p.data),!1===p.cache&&(i=i.replace(_t,"$1"),d=(Pt.test(i)?"&":"?")+"_="+jt.guid+++d),p.url=i+d),p.ifModified&&(T.lastModified[i]&&C.setRequestHeader("If-Modified-Since",T.lastModified[i]),T.etag[i]&&C.setRequestHeader("If-None-Match",T.etag[i])),(p.data&&p.hasContent&&!1!==p.contentType||t.contentType)&&C.setRequestHeader("Content-Type",p.contentType),C.setRequestHeader("Accept",p.dataTypes[0]&&p.accepts[p.dataTypes[0]]?p.accepts[p.dataTypes[0]]+("*"!==p.dataTypes[0]?", "+Xt+"; q=0.01":""):p.accepts["*"]),p.headers)C.setRequestHeader(f,p.headers[f]);if(p.beforeSend&&(!1===p.beforeSend.call(h,C,p)||u))return C.abort();if(S="abort",v.add(p.complete),C.done(p.success),C.fail(p.error),n=Qt(zt,p,t,C)){if(C.readyState=1,c&&m.trigger("ajaxSend",[C,p]),u)return C;p.async&&p.timeout>0&&(a=r.setTimeout((function(){C.abort("timeout")}),p.timeout));try{u=!1,n.send(x,E)}catch(e){if(u)throw e;E(-1,e)}}else E(-1,"No Transport");function E(e,t,s,l){var f,d,b,x,w,S=t;u||(u=!0,a&&r.clearTimeout(a),n=void 0,o=l||"",C.readyState=e>0?4:0,f=e>=200&&e<300||304===e,s&&(x=function(e,t,n){for(var r,i,o,s,a=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===r&&(r=e.mimeType||t.getResponseHeader("Content-Type"));if(r)for(i in a)if(a[i]&&a[i].test(r)){l.unshift(i);break}if(l[0]in n)o=l[0];else{for(i in n){if(!l[0]||e.converters[i+" "+l[0]]){o=i;break}s||(s=i)}o=o||s}if(o)return o!==l[0]&&l.unshift(o),n[o]}(p,C,s)),!f&&T.inArray("script",p.dataTypes)>-1&&T.inArray("json",p.dataTypes)<0&&(p.converters["text script"]=function(){}),x=function(e,t,n,r){var i,o,s,a,l,u={},c=e.dataTypes.slice();if(c[1])for(s in e.converters)u[s.toLowerCase()]=e.converters[s];for(o=c.shift();o;)if(e.responseFields[o]&&(n[e.responseFields[o]]=t),!l&&r&&e.dataFilter&&(t=e.dataFilter(t,e.dataType)),l=o,o=c.shift())if("*"===o)o=l;else if("*"!==l&&l!==o){if(!(s=u[l+" "+o]||u["* "+o]))for(i in u)if((a=i.split(" "))[1]===o&&(s=u[l+" "+a[0]]||u["* "+a[0]])){!0===s?s=u[i]:!0!==u[i]&&(o=a[0],c.unshift(a[1]));break}if(!0!==s)if(s&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+o}}}return{state:"success",data:t}}(p,x,C,f),f?(p.ifModified&&((w=C.getResponseHeader("Last-Modified"))&&(T.lastModified[i]=w),(w=C.getResponseHeader("etag"))&&(T.etag[i]=w)),204===e||"HEAD"===p.type?S="nocontent":304===e?S="notmodified":(S=x.state,d=x.data,f=!(b=x.error))):(b=S,!e&&S||(S="error",e<0&&(e=0))),C.status=e,C.statusText=(t||S)+"",f?g.resolveWith(h,[d,S,C]):g.rejectWith(h,[C,S,b]),C.statusCode(y),y=void 0,c&&m.trigger(f?"ajaxSuccess":"ajaxError",[C,p,f?d:b]),v.fireWith(h,[C,S]),c&&(m.trigger("ajaxComplete",[C,p]),--T.active||T.event.trigger("ajaxStop")))}return C},getJSON:function(e,t,n){return T.get(e,t,n,"json")},getScript:function(e,t){return T.get(e,void 0,t,"script")}}),T.each(["get","post"],(function(e,t){T[t]=function(e,n,r,i){return v(n)&&(i=i||r,r=n,n=void 0),T.ajax(T.extend({url:e,type:t,dataType:i,data:n,success:r},T.isPlainObject(e)&&e))}})),T.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),T._evalUrl=function(e,t,n){return T.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){T.globalEval(e,t,n)}})},T.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=T(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){T(this).wrapInner(e.call(this,t))})):this.each((function(){var t=T(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){T(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(e){return!T.expr.pseudos.visible(e)},T.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new r.XMLHttpRequest}catch(e){}};var Kt={0:200,1223:204},Zt=T.ajaxSettings.xhr();g.cors=!!Zt&&"withCredentials"in Zt,g.ajax=Zt=!!Zt,T.ajaxTransport((function(e){var t,n;if(g.cors||Zt&&!e.crossDomain)return{send:function(i,o){var s,a=e.xhr();if(a.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)a[s]=e.xhrFields[s];for(s in e.mimeType&&a.overrideMimeType&&a.overrideMimeType(e.mimeType),e.crossDomain||i["X-Requested-With"]||(i["X-Requested-With"]="XMLHttpRequest"),i)a.setRequestHeader(s,i[s]);t=function(e){return function(){t&&(t=n=a.onload=a.onerror=a.onabort=a.ontimeout=a.onreadystatechange=null,"abort"===e?a.abort():"error"===e?"number"!=typeof a.status?o(0,"error"):o(a.status,a.statusText):o(Kt[a.status]||a.status,a.statusText,"text"!==(a.responseType||"text")||"string"!=typeof a.responseText?{binary:a.response}:{text:a.responseText},a.getAllResponseHeaders()))}},a.onload=t(),n=a.onerror=a.ontimeout=t("error"),void 0!==a.onabort?a.onabort=n:a.onreadystatechange=function(){4===a.readyState&&r.setTimeout((function(){t&&n()}))},t=t("abort");try{a.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),T.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return T.globalEval(e),e}}}),T.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),T.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(r,i){t=T("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&i("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||T.expando+"_"+jt.guid++;return this[e]=!0,e}}),T.ajaxPrefilter("json jsonp",(function(e,t,n){var i,o,s,a=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(a||"jsonp"===e.dataTypes[0])return i=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,a?e[a]=e[a].replace(nn,"$1"+i):!1!==e.jsonp&&(e.url+=(Pt.test(e.url)?"&":"?")+e.jsonp+"="+i),e.converters["script json"]=function(){return s||T.error(i+" was not called"),s[0]},e.dataTypes[0]="json",o=r[i],r[i]=function(){s=arguments},n.always((function(){void 0===o?T(r).removeProp(i):r[i]=o,e[i]&&(e.jsonpCallback=t.jsonpCallback,tn.push(i)),s&&v(o)&&o(s[0]),s=o=void 0})),"script"})),g.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),T.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((r=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(r)):t=b),o=!n&&[],(i=U.exec(e))?[t.createElement(i[1])]:(i=Oe([e],t,o),o&&o.length&&T(o).remove(),T.merge([],i.childNodes)));var r,i,o},T.fn.load=function(e,t,n){var r,i,o,s=this,a=e.indexOf(" ");return a>-1&&(r=Tt(e.slice(a)),e=e.slice(0,a)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(i="POST"),s.length>0&&T.ajax({url:e,type:i||"GET",dataType:"html",data:t}).done((function(e){o=arguments,s.html(r?T("<div>").append(T.parseHTML(e)).find(r):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,o||[e.responseText,t,e])}))}),this},T.expr.pseudos.animated=function(e){return T.grep(T.timers,(function(t){return e===t.elem})).length},T.offset={setOffset:function(e,t,n){var r,i,o,s,a,l,u=T.css(e,"position"),c=T(e),f={};"static"===u&&(e.style.position="relative"),a=c.offset(),o=T.css(e,"top"),l=T.css(e,"left"),("absolute"===u||"fixed"===u)&&(o+l).indexOf("auto")>-1?(s=(r=c.position()).top,i=r.left):(s=parseFloat(o)||0,i=parseFloat(l)||0),v(t)&&(t=t.call(e,n,T.extend({},a))),null!=t.top&&(f.top=t.top-a.top+s),null!=t.left&&(f.left=t.left-a.left+i),"using"in t?t.using.call(e,f):c.css(f)}},T.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){T.offset.setOffset(this,e,t)}));var t,n,r=this[0];return r?r.getClientRects().length?(t=r.getBoundingClientRect(),n=r.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,r=this[0],i={top:0,left:0};if("fixed"===T.css(r,"position"))t=r.getBoundingClientRect();else{for(t=this.offset(),n=r.ownerDocument,e=r.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===T.css(e,"position");)e=e.parentNode;e&&e!==r&&1===e.nodeType&&((i=T(e).offset()).top+=T.css(e,"borderTopWidth",!0),i.left+=T.css(e,"borderLeftWidth",!0))}return{top:t.top-i.top-T.css(r,"marginTop",!0),left:t.left-i.left-T.css(r,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===T.css(e,"position");)e=e.offsetParent;return e||me}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;T.fn[e]=function(r){return ee(this,(function(e,r,i){var o;if(y(e)?o=e:9===e.nodeType&&(o=e.defaultView),void 0===i)return o?o[t]:e[r];o?o.scrollTo(n?o.pageXOffset:i,n?i:o.pageYOffset):e[r]=i}),e,r,arguments.length)}})),T.each(["top","left"],(function(e,t){T.cssHooks[t]=et(g.pixelPosition,(function(e,n){if(n)return n=Ze(e,t),Ye.test(n)?T(e).position()[t]+"px":n}))})),T.each({Height:"height",Width:"width"},(function(e,t){T.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,r){T.fn[r]=function(i,o){var s=arguments.length&&(n||"boolean"!=typeof i),a=n||(!0===i||!0===o?"margin":"border");return ee(this,(function(t,n,i){var o;return y(t)?0===r.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(o=t.documentElement,Math.max(t.body["scroll"+e],o["scroll"+e],t.body["offset"+e],o["offset"+e],o["client"+e])):void 0===i?T.css(t,n,a):T.style(t,n,i,a)}),t,s?i:void 0,s)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){T.fn[t]=function(e){return this.on(t,e)}})),T.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,r){return this.on(t,e,n,r)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),T.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){T.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;T.proxy=function(e,t){var n,r,i;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return r=a.call(arguments,2),i=function(){return e.apply(t||this,r.concat(a.call(arguments)))},i.guid=e.guid=e.guid||T.guid++,i},T.holdReady=function(e){e?T.readyWait++:T.ready(!0)},T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=A,T.isFunction=v,T.isWindow=y,T.camelCase=ie,T.type=S,T.now=Date.now,T.isNumeric=function(e){var t=T.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},T.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return T}.apply(t,[]))||(e.exports=n);var on=r.jQuery,sn=r.$;return T.noConflict=function(e){return r.$===T&&(r.$=sn),e&&r.jQuery===T&&(r.jQuery=on),T},void 0===i&&(r.jQuery=r.$=T),T}))},7959:(e,t,n)=>{var r,i;n.amdD,r=[n(4692)],void 0===(i=function(e){return function(){var t,n,r,i=0,o="error",s="info",a="success",l="warning",u={clear:function(n,r){var i=h();t||c(i),f(n,i,r)||function(n){for(var r=t.children(),i=r.length-1;i>=0;i--)f(e(r[i]),n)}(i)},remove:function(n){var r=h();t||c(r),n&&0===e(":focus",n).length?m(n):t.children().length&&t.remove()},error:function(e,t,n){return p({type:o,iconClass:h().iconClasses.error,message:e,optionsOverride:n,title:t})},getContainer:c,info:function(e,t,n){return p({type:s,iconClass:h().iconClasses.info,message:e,optionsOverride:n,title:t})},options:{},subscribe:function(e){n=e},success:function(e,t,n){return p({type:a,iconClass:h().iconClasses.success,message:e,optionsOverride:n,title:t})},version:"2.1.4",warning:function(e,t,n){return p({type:l,iconClass:h().iconClasses.warning,message:e,optionsOverride:n,title:t})}};return u;function c(n,r){return n||(n=h()),(t=e("#"+n.containerId)).length||r&&(t=function(n){return(t=e("<div/>").attr("id",n.containerId).addClass(n.positionClass)).appendTo(e(n.target)),t}(n)),t}function f(t,n,r){var i=!(!r||!r.force)&&r.force;return!(!t||!i&&0!==e(":focus",t).length||(t[n.hideMethod]({duration:n.hideDuration,easing:n.hideEasing,complete:function(){m(t)}}),0))}function d(e){n&&n(e)}function p(n){var o=h(),s=n.iconClass||o.iconClass;if(void 0!==n.optionsOverride&&(o=e.extend(o,n.optionsOverride),s=n.optionsOverride.iconClass||s),!function(e,t){if(e.preventDuplicates){if(t.message===r)return!0;r=t.message}return!1}(o,n)){i++,t=c(o,!0);var a=null,l=e("<div/>"),u=e("<div/>"),f=e("<div/>"),p=e("<div/>"),g=e(o.closeHtml),v={intervalId:null,hideEta:null,maxHideTime:null},y={toastId:i,state:"visible",startTime:new Date,options:o,map:n};return n.iconClass&&l.addClass(o.toastClass).addClass(s),function(){if(n.title){var e=n.title;o.escapeHtml&&(e=b(n.title)),u.append(e).addClass(o.titleClass),l.append(u)}}(),function(){if(n.message){var e=n.message;o.escapeHtml&&(e=b(n.message)),f.append(e).addClass(o.messageClass),l.append(f)}}(),o.closeButton&&(g.addClass(o.closeClass).attr("role","button"),l.prepend(g)),o.progressBar&&(p.addClass(o.progressClass),l.prepend(p)),o.rtl&&l.addClass("rtl"),o.newestOnTop?t.prepend(l):t.append(l),function(){var e="";switch(n.iconClass){case"toast-success":case"toast-info":e="polite";break;default:e="assertive"}l.attr("aria-live",e)}(),l.hide(),l[o.showMethod]({duration:o.showDuration,easing:o.showEasing,complete:o.onShown}),o.timeOut>0&&(a=setTimeout(x,o.timeOut),v.maxHideTime=parseFloat(o.timeOut),v.hideEta=(new Date).getTime()+v.maxHideTime,o.progressBar&&(v.intervalId=setInterval(C,10))),o.closeOnHover&&l.hover(S,w),!o.onclick&&o.tapToDismiss&&l.click(x),o.closeButton&&g&&g.click((function(e){e.stopPropagation?e.stopPropagation():void 0!==e.cancelBubble&&!0!==e.cancelBubble&&(e.cancelBubble=!0),o.onCloseClick&&o.onCloseClick(e),x(!0)})),o.onclick&&l.click((function(e){o.onclick(e),x()})),d(y),o.debug&&console&&console.log(y),l}function b(e){return null==e&&(e=""),e.replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function x(t){var n=t&&!1!==o.closeMethod?o.closeMethod:o.hideMethod,r=t&&!1!==o.closeDuration?o.closeDuration:o.hideDuration,i=t&&!1!==o.closeEasing?o.closeEasing:o.hideEasing;if(!e(":focus",l).length||t)return clearTimeout(v.intervalId),l[n]({duration:r,easing:i,complete:function(){m(l),clearTimeout(a),o.onHidden&&"hidden"!==y.state&&o.onHidden(),y.state="hidden",y.endTime=new Date,d(y)}})}function w(){(o.timeOut>0||o.extendedTimeOut>0)&&(a=setTimeout(x,o.extendedTimeOut),v.maxHideTime=parseFloat(o.extendedTimeOut),v.hideEta=(new Date).getTime()+v.maxHideTime)}function S(){clearTimeout(a),v.hideEta=0,l.stop(!0,!0)[o.showMethod]({duration:o.showDuration,easing:o.showEasing})}function C(){var e=(v.hideEta-(new Date).getTime())/v.maxHideTime*100;p.width(e+"%")}}function h(){return e.extend({},{tapToDismiss:!0,toastClass:"toast",containerId:"toast-container",debug:!1,showMethod:"fadeIn",showDuration:300,showEasing:"swing",onShown:void 0,hideMethod:"fadeOut",hideDuration:1e3,hideEasing:"swing",onHidden:void 0,closeMethod:!1,closeDuration:!1,closeEasing:!1,closeOnHover:!0,extendedTimeOut:1e3,iconClasses:{error:"toast-error",info:"toast-info",success:"toast-success",warning:"toast-warning"},iconClass:"toast-info",positionClass:"toast-top-right",timeOut:5e3,titleClass:"toast-title",messageClass:"toast-message",escapeHtml:!1,target:"body",closeHtml:'<button type="button">&times;</button>',closeClass:"toast-close-button",newestOnTop:!0,preventDuplicates:!1,progressBar:!1,progressClass:"toast-progress",rtl:!1},u.options)}function m(e){t||(t=c()),e.is(":visible")||(e.remove(),e=null,0===t.children().length&&(t.remove(),r=void 0))}}()}.apply(t,r))||(e.exports=i)},9476:(e,t,n)=>{"use strict";var r,i;function o(e){return"object"==typeof e&&"function"==typeof e.to}function s(e){e.parentElement.removeChild(e)}function a(e){return null!=e}function l(e){e.preventDefault()}function u(e){return"number"==typeof e&&!isNaN(e)&&isFinite(e)}function c(e,t,n){n>0&&(h(e,t),setTimeout((function(){m(e,t)}),n))}function f(e){return Math.max(Math.min(e,100),0)}function d(e){return Array.isArray(e)?e:[e]}function p(e){var t=(e=String(e)).split(".");return t.length>1?t[1].length:0}function h(e,t){e.classList&&!/\s/.test(t)?e.classList.add(t):e.className+=" "+t}function m(e,t){e.classList&&!/\s/.test(t)?e.classList.remove(t):e.className=e.className.replace(new RegExp("(^|\\b)"+t.split(" ").join("|")+"(\\b|$)","gi")," ")}function g(e){var t=void 0!==window.pageXOffset,n="CSS1Compat"===(e.compatMode||"");return{x:t?window.pageXOffset:n?e.documentElement.scrollLeft:e.body.scrollLeft,y:t?window.pageYOffset:n?e.documentElement.scrollTop:e.body.scrollTop}}function v(e,t){return 100/(t-e)}function y(e,t,n){return 100*t/(e[n+1]-e[n])}function b(e,t){for(var n=1;e>=t[n];)n+=1;return n}function x(e,t,n){if(n>=e.slice(-1)[0])return 100;var r=b(n,e),i=e[r-1],o=e[r],s=t[r-1],a=t[r];return s+function(e,t){return y(e,e[0]<0?t+Math.abs(e[0]):t-e[0],0)}([i,o],n)/v(s,a)}function w(e,t,n,r){if(100===r)return r;var i=b(r,e),o=e[i-1],s=e[i];return n?r-o>(s-o)/2?s:o:t[i-1]?e[i-1]+function(e,t){return Math.round(e/t)*t}(r-e[i-1],t[i-1]):r}n.r(t),n.d(t,{PipsMode:()=>r,PipsType:()=>i,create:()=>K,cssClasses:()=>E,default:()=>Z}),function(e){e.Range="range",e.Steps="steps",e.Positions="positions",e.Count="count",e.Values="values"}(r||(r={})),function(e){e[e.None=-1]="None",e[e.NoValue=0]="NoValue",e[e.LargeValue=1]="LargeValue",e[e.SmallValue=2]="SmallValue"}(i||(i={}));var S=function(){function e(e,t,n){var r;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[n||!1],this.xNumSteps=[!1],this.snap=t;var i=[];for(Object.keys(e).forEach((function(t){i.push([d(e[t]),t])})),i.sort((function(e,t){return e[0][0]-t[0][0]})),r=0;r<i.length;r++)this.handleEntryPoint(i[r][1],i[r][0]);for(this.xNumSteps=this.xSteps.slice(0),r=0;r<this.xNumSteps.length;r++)this.handleStepPoint(r,this.xNumSteps[r])}return e.prototype.getDistance=function(e){for(var t=[],n=0;n<this.xNumSteps.length-1;n++)t[n]=y(this.xVal,e,n);return t},e.prototype.getAbsoluteDistance=function(e,t,n){var r,i=0;if(e<this.xPct[this.xPct.length-1])for(;e>this.xPct[i+1];)i++;else e===this.xPct[this.xPct.length-1]&&(i=this.xPct.length-2);n||e!==this.xPct[i+1]||i++,null===t&&(t=[]);var o=1,s=t[i],a=0,l=0,u=0,c=0;for(r=n?(e-this.xPct[i])/(this.xPct[i+1]-this.xPct[i]):(this.xPct[i+1]-e)/(this.xPct[i+1]-this.xPct[i]);s>0;)a=this.xPct[i+1+c]-this.xPct[i+c],t[i+c]*o+100-100*r>100?(l=a*r,o=(s-100*r)/t[i+c],r=1):(l=t[i+c]*a/100*o,o=0),n?(u-=l,this.xPct.length+c>=1&&c--):(u+=l,this.xPct.length-c>=1&&c++),s=t[i+c]*o;return e+u},e.prototype.toStepping=function(e){return e=x(this.xVal,this.xPct,e)},e.prototype.fromStepping=function(e){return function(e,t,n){if(n>=100)return e.slice(-1)[0];var r=b(n,t),i=e[r-1],o=e[r],s=t[r-1];return function(e,t){return t*(e[1]-e[0])/100+e[0]}([i,o],(n-s)*v(s,t[r]))}(this.xVal,this.xPct,e)},e.prototype.getStep=function(e){return e=w(this.xPct,this.xSteps,this.snap,e)},e.prototype.getDefaultStep=function(e,t,n){var r=b(e,this.xPct);return(100===e||t&&e===this.xPct[r-1])&&(r=Math.max(r-1,1)),(this.xVal[r]-this.xVal[r-1])/n},e.prototype.getNearbySteps=function(e){var t=b(e,this.xPct);return{stepBefore:{startValue:this.xVal[t-2],step:this.xNumSteps[t-2],highestStep:this.xHighestCompleteStep[t-2]},thisStep:{startValue:this.xVal[t-1],step:this.xNumSteps[t-1],highestStep:this.xHighestCompleteStep[t-1]},stepAfter:{startValue:this.xVal[t],step:this.xNumSteps[t],highestStep:this.xHighestCompleteStep[t]}}},e.prototype.countStepDecimals=function(){var e=this.xNumSteps.map(p);return Math.max.apply(null,e)},e.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},e.prototype.convert=function(e){return this.getStep(this.toStepping(e))},e.prototype.handleEntryPoint=function(e,t){var n;if(!u(n="min"===e?0:"max"===e?100:parseFloat(e))||!u(t[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(n),this.xVal.push(t[0]);var r=Number(t[1]);n?this.xSteps.push(!isNaN(r)&&r):isNaN(r)||(this.xSteps[0]=r),this.xHighestCompleteStep.push(0)},e.prototype.handleStepPoint=function(e,t){if(t)if(this.xVal[e]!==this.xVal[e+1]){this.xSteps[e]=y([this.xVal[e],this.xVal[e+1]],t,0)/v(this.xPct[e],this.xPct[e+1]);var n=(this.xVal[e+1]-this.xVal[e])/this.xNumSteps[e],r=Math.ceil(Number(n.toFixed(3))-1),i=this.xVal[e]+this.xNumSteps[e]*r;this.xHighestCompleteStep[e]=i}else this.xSteps[e]=this.xHighestCompleteStep[e]=this.xVal[e]},e}(),C={to:function(e){return void 0===e?"":e.toFixed(2)},from:Number},E={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-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"},T={tooltips:".__tooltips",aria:".__aria"};function k(e,t){if(!u(t))throw new Error("noUiSlider: 'step' is not numeric.");e.singleStep=t}function A(e,t){if(!u(t))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");e.keyboardPageMultiplier=t}function D(e,t){if(!u(t))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");e.keyboardMultiplier=t}function N(e,t){if(!u(t))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");e.keyboardDefaultStep=t}function j(e,t){if("object"!=typeof t||Array.isArray(t))throw new Error("noUiSlider: 'range' is not an object.");if(void 0===t.min||void 0===t.max)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");e.spectrum=new S(t,e.snap||!1,e.singleStep)}function P(e,t){if(t=d(t),!Array.isArray(t)||!t.length)throw new Error("noUiSlider: 'start' option is incorrect.");e.handles=t.length,e.start=t}function O(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'snap' option must be a boolean.");e.snap=t}function L(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'animate' option must be a boolean.");e.animate=t}function M(e,t){if("number"!=typeof t)throw new Error("noUiSlider: 'animationDuration' option must be a number.");e.animationDuration=t}function H(e,t){var n,r=[!1];if("lower"===t?t=[!0,!1]:"upper"===t&&(t=[!1,!0]),!0===t||!1===t){for(n=1;n<e.handles;n++)r.push(t);r.push(!1)}else{if(!Array.isArray(t)||!t.length||t.length!==e.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");r=t}e.connect=r}function q(e,t){switch(t){case"horizontal":e.ort=0;break;case"vertical":e.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function R(e,t){if(!u(t))throw new Error("noUiSlider: 'margin' option must be numeric.");0!==t&&(e.margin=e.spectrum.getDistance(t))}function V(e,t){if(!u(t))throw new Error("noUiSlider: 'limit' option must be numeric.");if(e.limit=e.spectrum.getDistance(t),!e.limit||e.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function F(e,t){var n;if(!u(t)&&!Array.isArray(t))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(t)&&2!==t.length&&!u(t[0])&&!u(t[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(0!==t){for(Array.isArray(t)||(t=[t,t]),e.padding=[e.spectrum.getDistance(t[0]),e.spectrum.getDistance(t[1])],n=0;n<e.spectrum.xNumSteps.length-1;n++)if(e.padding[0][n]<0||e.padding[1][n]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var r=t[0]+t[1],i=e.spectrum.xVal[0];if(r/(e.spectrum.xVal[e.spectrum.xVal.length-1]-i)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function U(e,t){switch(t){case"ltr":e.dir=0;break;case"rtl":e.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function _(e,t){if("string"!=typeof t)throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var n=t.indexOf("tap")>=0,r=t.indexOf("drag")>=0,i=t.indexOf("fixed")>=0,o=t.indexOf("snap")>=0,s=t.indexOf("hover")>=0,a=t.indexOf("unconstrained")>=0,l=t.indexOf("invert-connects")>=0,u=t.indexOf("drag-all")>=0,c=t.indexOf("smooth-steps")>=0;if(i){if(2!==e.handles)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");R(e,e.start[1]-e.start[0])}if(l&&2!==e.handles)throw new Error("noUiSlider: 'invert-connects' behaviour must be used with 2 handles");if(a&&(e.margin||e.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");e.events={tap:n||o,drag:r,dragAll:u,smoothSteps:c,fixed:i,snap:o,hover:s,unconstrained:a,invertConnects:l}}function I(e,t){if(!1!==t)if(!0===t||o(t)){e.tooltips=[];for(var n=0;n<e.handles;n++)e.tooltips.push(t)}else{if((t=d(t)).length!==e.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");t.forEach((function(e){if("boolean"!=typeof e&&!o(e))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")})),e.tooltips=t}}function W(e,t){if(t.length!==e.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");e.handleAttributes=t}function B(e,t){if(!o(t))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");e.ariaFormat=t}function $(e,t){if(!function(e){return o(e)&&"function"==typeof e.from}(t))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");e.format=t}function z(e,t){if("boolean"!=typeof t)throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");e.keyboardSupport=t}function X(e,t){e.documentElement=t}function Y(e,t){if("string"!=typeof t&&!1!==t)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");e.cssPrefix=t}function G(e,t){if("object"!=typeof t)throw new Error("noUiSlider: 'cssClasses' must be an object.");"string"==typeof e.cssPrefix?(e.cssClasses={},Object.keys(t).forEach((function(n){e.cssClasses[n]=e.cssPrefix+t[n]}))):e.cssClasses=t}function Q(e){var t={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:C,format:C},n={step:{r:!1,t:k},keyboardPageMultiplier:{r:!1,t:A},keyboardMultiplier:{r:!1,t:D},keyboardDefaultStep:{r:!1,t:N},start:{r:!0,t:P},connect:{r:!0,t:H},direction:{r:!0,t:U},snap:{r:!1,t:O},animate:{r:!1,t:L},animationDuration:{r:!1,t:M},range:{r:!0,t:j},orientation:{r:!1,t:q},margin:{r:!1,t:R},limit:{r:!1,t:V},padding:{r:!1,t:F},behaviour:{r:!0,t:_},ariaFormat:{r:!1,t:B},format:{r:!1,t:$},tooltips:{r:!1,t:I},keyboardSupport:{r:!0,t:z},documentElement:{r:!1,t:X},cssPrefix:{r:!0,t:Y},cssClasses:{r:!0,t:G},handleAttributes:{r:!1,t:W}},r={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:E,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};e.format&&!e.ariaFormat&&(e.ariaFormat=e.format),Object.keys(n).forEach((function(i){if(a(e[i])||void 0!==r[i])n[i].t(t,a(e[i])?e[i]:r[i]);else if(n[i].r)throw new Error("noUiSlider: '"+i+"' is required.")})),t.pips=e.pips;var i=document.createElement("div"),o=void 0!==i.style.msTransform,s=void 0!==i.style.transform;t.transformRule=s?"transform":o?"msTransform":"webkitTransform";return t.style=[["left","top"],["right","bottom"]][t.dir][t.ort],t}function J(e,t,n){var o,u,p,v,y,b,x,w=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"},S=window.CSS&&CSS.supports&&CSS.supports("touch-action","none")&&function(){var e=!1;try{var t=Object.defineProperty({},"passive",{get:function(){e=!0}});window.addEventListener("test",null,t)}catch(e){}return e}(),C=e,E=t.spectrum,k=[],A=[],D=[],N=0,j={},P=!1,O=e.ownerDocument,L=t.documentElement||O.documentElement,M=O.body,q="rtl"===O.dir||1===t.ort?0:100;function R(e,t){var n=O.createElement("div");return t&&h(n,t),e.appendChild(n),n}function V(e,n){var r=R(e,t.cssClasses.origin),i=R(r,t.cssClasses.handle);if(R(i,t.cssClasses.touchArea),i.setAttribute("data-handle",String(n)),t.keyboardSupport&&(i.setAttribute("tabindex","0"),i.addEventListener("keydown",(function(e){return function(e,n){if(_()||I(n))return!1;var r=["Left","Right"],i=["Down","Up"],o=["PageDown","PageUp"],s=["Home","End"];t.dir&&!t.ort?r.reverse():t.ort&&!t.dir&&(i.reverse(),o.reverse());var a,l=e.key.replace("Arrow",""),u=l===o[0],c=l===o[1],f=l===i[0]||l===r[0]||u,d=l===i[1]||l===r[1]||c,p=l===s[0],h=l===s[1];if(!(f||d||p||h))return!0;if(e.preventDefault(),d||f){var m=f?0:1,g=we(n)[m];if(null===g)return!1;!1===g&&(g=E.getDefaultStep(A[n],f,t.keyboardDefaultStep)),g*=c||u?t.keyboardPageMultiplier:t.keyboardMultiplier,g=Math.max(g,1e-7),g*=f?-1:1,a=k[n]+g}else a=h?t.spectrum.xVal[t.spectrum.xVal.length-1]:t.spectrum.xVal[0];return ge(n,E.toStepping(a),!0,!0),ue("slide",n),ue("update",n),ue("change",n),ue("set",n),!1}(e,n)}))),void 0!==t.handleAttributes){var o=t.handleAttributes[n];Object.keys(o).forEach((function(e){i.setAttribute(e,o[e])}))}return i.setAttribute("role","slider"),i.setAttribute("aria-orientation",t.ort?"vertical":"horizontal"),0===n?h(i,t.cssClasses.handleLower):n===t.handles-1&&h(i,t.cssClasses.handleUpper),r.handle=i,r}function F(e,n){return!!n&&R(e,t.cssClasses.connect)}function U(e,n){return!(!t.tooltips||!t.tooltips[n])&&R(e.firstChild,t.cssClasses.tooltip)}function _(){return C.hasAttribute("disabled")}function I(e){return p[e].hasAttribute("disabled")}function W(){b&&(le("update"+T.tooltips),b.forEach((function(e){e&&s(e)})),b=null)}function B(){W(),b=p.map(U),ae("update"+T.tooltips,(function(e,n,r){if(b&&t.tooltips&&!1!==b[n]){var i=e[n];!0!==t.tooltips[n]&&(i=t.tooltips[n].to(r[n])),b[n].innerHTML=i}}))}function $(e,t){return e.map((function(e){return E.fromStepping(t?E.getStep(e):e)}))}function z(e){var t,n=function(e){if(e.mode===r.Range||e.mode===r.Steps)return E.xVal;if(e.mode===r.Count){if(e.values<2)throw new Error("noUiSlider: 'values' (>=2) required for mode 'count'.");for(var t=e.values-1,n=100/t,i=[];t--;)i[t]=t*n;return i.push(100),$(i,e.stepped)}return e.mode===r.Positions?$(e.values,e.stepped):e.mode===r.Values?e.stepped?e.values.map((function(e){return E.fromStepping(E.getStep(E.toStepping(e)))})):e.values:[]}(e),o={},s=E.xVal[0],a=E.xVal[E.xVal.length-1],l=!1,u=!1,c=0;return t=n.slice().sort((function(e,t){return e-t})),(n=t.filter((function(e){return!this[e]&&(this[e]=!0)}),{}))[0]!==s&&(n.unshift(s),l=!0),n[n.length-1]!==a&&(n.push(a),u=!0),n.forEach((function(t,s){var a,f,d,p,h,m,g,v,y,b,x=t,w=n[s+1],S=e.mode===r.Steps;for(S&&(a=E.xNumSteps[s]),a||(a=w-x),void 0===w&&(w=x),a=Math.max(a,1e-7),f=x;f<=w;f=Number((f+a).toFixed(7))){for(v=(h=(p=E.toStepping(f))-c)/(e.density||1),b=h/(y=Math.round(v)),d=1;d<=y;d+=1)o[(m=c+d*b).toFixed(5)]=[E.fromStepping(m),0];g=n.indexOf(f)>-1?i.LargeValue:S?i.SmallValue:i.NoValue,!s&&l&&f!==w&&(g=0),f===w&&u||(o[p.toFixed(5)]=[f,g]),c=p}})),o}function X(e,n,r){var o,s,a=O.createElement("div"),l=((o={})[i.None]="",o[i.NoValue]=t.cssClasses.valueNormal,o[i.LargeValue]=t.cssClasses.valueLarge,o[i.SmallValue]=t.cssClasses.valueSub,o),u=((s={})[i.None]="",s[i.NoValue]=t.cssClasses.markerNormal,s[i.LargeValue]=t.cssClasses.markerLarge,s[i.SmallValue]=t.cssClasses.markerSub,s),c=[t.cssClasses.valueHorizontal,t.cssClasses.valueVertical],f=[t.cssClasses.markerHorizontal,t.cssClasses.markerVertical];function d(e,n){var r=n===t.cssClasses.value,i=r?l:u;return n+" "+(r?c:f)[t.ort]+" "+i[e]}return h(a,t.cssClasses.pips),h(a,0===t.ort?t.cssClasses.pipsHorizontal:t.cssClasses.pipsVertical),Object.keys(e).forEach((function(o){!function(e,o,s){if((s=n?n(o,s):s)!==i.None){var l=R(a,!1);l.className=d(s,t.cssClasses.marker),l.style[t.style]=e+"%",s>i.NoValue&&((l=R(a,!1)).className=d(s,t.cssClasses.value),l.setAttribute("data-value",String(o)),l.style[t.style]=e+"%",l.innerHTML=String(r.to(o)))}}(o,e[o][0],e[o][1])})),a}function Y(){y&&(s(y),y=null)}function G(e){Y();var t=z(e),n=e.filter,r=e.format||{to:function(e){return String(Math.round(e))}};return y=C.appendChild(X(t,n,r))}function J(){var e=o.getBoundingClientRect(),n="offset"+["Width","Height"][t.ort];return 0===t.ort?e.width||o[n]:e.height||o[n]}function K(e,n,r,i){var o=function(o){var s,a,l=function(e,t,n){var r=0===e.type.indexOf("touch"),i=0===e.type.indexOf("mouse"),o=0===e.type.indexOf("pointer"),s=0,a=0;0===e.type.indexOf("MSPointer")&&(o=!0);if("mousedown"===e.type&&!e.buttons&&!e.touches)return!1;if(r){var l=function(t){var r=t.target;return r===n||n.contains(r)||e.composed&&e.composedPath().shift()===n};if("touchstart"===e.type){var u=Array.prototype.filter.call(e.touches,l);if(u.length>1)return!1;s=u[0].pageX,a=u[0].pageY}else{var c=Array.prototype.find.call(e.changedTouches,l);if(!c)return!1;s=c.pageX,a=c.pageY}}t=t||g(O),(i||o)&&(s=e.clientX+t.x,a=e.clientY+t.y);return e.pageOffset=t,e.points=[s,a],e.cursor=i||o,e}(o,i.pageOffset,i.target||n);return!!l&&(!(_()&&!i.doNotReject)&&(s=C,a=t.cssClasses.tap,!((s.classList?s.classList.contains(a):new RegExp("\\b"+a+"\\b").test(s.className))&&!i.doNotReject)&&(!(e===w.start&&void 0!==l.buttons&&l.buttons>1)&&((!i.hover||!l.buttons)&&(S||l.preventDefault(),l.calcPoint=l.points[t.ort],void r(l,i))))))},s=[];return e.split(" ").forEach((function(e){n.addEventListener(e,o,!!S&&{passive:!0}),s.push([e,o])})),s}function Z(e){var n,r,i,s,a,l,u=100*(e-(n=o,r=t.ort,i=n.getBoundingClientRect(),s=n.ownerDocument,a=s.documentElement,l=g(s),/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(l.x=0),r?i.top+l.y-a.clientTop:i.left+l.x-a.clientLeft))/J();return u=f(u),t.dir?100-u:u}function ee(e,t){"mouseout"===e.type&&"HTML"===e.target.nodeName&&null===e.relatedTarget&&ne(e,t)}function te(e,n){if(-1===navigator.appVersion.indexOf("MSIE 9")&&0===e.buttons&&0!==n.buttonsProperty)return ne(e,n);var r=(t.dir?-1:1)*(e.calcPoint-n.startCalcPoint);de(r>0,100*r/n.baseSize,n.locations,n.handleNumbers,n.connect)}function ne(e,n){n.handle&&(m(n.handle,t.cssClasses.active),N-=1),n.listeners.forEach((function(e){L.removeEventListener(e[0],e[1])})),0===N&&(m(C,t.cssClasses.drag),me(),e.cursor&&(M.style.cursor="",M.removeEventListener("selectstart",l))),t.events.smoothSteps&&(n.handleNumbers.forEach((function(e){ge(e,A[e],!0,!0,!1,!1)})),n.handleNumbers.forEach((function(e){ue("update",e)}))),n.handleNumbers.forEach((function(e){ue("change",e),ue("set",e),ue("end",e)}))}function re(e,n){if(!n.handleNumbers.some(I)){var r;if(1===n.handleNumbers.length)r=p[n.handleNumbers[0]].children[0],N+=1,h(r,t.cssClasses.active);e.stopPropagation();var i=[],o=K(w.move,L,te,{target:e.target,handle:r,connect:n.connect,listeners:i,startCalcPoint:e.calcPoint,baseSize:J(),pageOffset:e.pageOffset,handleNumbers:n.handleNumbers,buttonsProperty:e.buttons,locations:A.slice()}),s=K(w.end,L,ne,{target:e.target,handle:r,listeners:i,doNotReject:!0,handleNumbers:n.handleNumbers}),a=K("mouseout",L,ee,{target:e.target,handle:r,listeners:i,doNotReject:!0,handleNumbers:n.handleNumbers});i.push.apply(i,o.concat(s,a)),e.cursor&&(M.style.cursor=getComputedStyle(e.target).cursor,p.length>1&&h(C,t.cssClasses.drag),M.addEventListener("selectstart",l,!1)),n.handleNumbers.forEach((function(e){ue("start",e)}))}}function ie(e){e.stopPropagation();var n=Z(e.calcPoint),r=function(e){var t=100,n=!1;return p.forEach((function(r,i){if(!I(i)){var o=A[i],s=Math.abs(o-e);(s<t||s<=t&&e>o||100===s&&100===t)&&(n=i,t=s)}})),n}(n);!1!==r&&(t.events.snap||c(C,t.cssClasses.tap,t.animationDuration),ge(r,n,!0,!0),me(),ue("slide",r,!0),ue("update",r,!0),t.events.snap?re(e,{handleNumbers:[r]}):(ue("change",r,!0),ue("set",r,!0)))}function oe(e){var t=Z(e.calcPoint),n=E.getStep(t),r=E.fromStepping(n);Object.keys(j).forEach((function(e){"hover"===e.split(".")[0]&&j[e].forEach((function(e){e.call(Ce,r)}))}))}function se(e){e.fixed||p.forEach((function(e,t){K(w.start,e.children[0],re,{handleNumbers:[t]})})),e.tap&&K(w.start,o,ie,{}),e.hover&&K(w.move,o,oe,{hover:!0}),e.drag&&v.forEach((function(n,r){if(!1!==n&&0!==r&&r!==v.length-1){var i=p[r-1],o=p[r],s=[n],a=[i,o],l=[r-1,r];h(n,t.cssClasses.draggable),e.fixed&&(s.push(i.children[0]),s.push(o.children[0])),e.dragAll&&(a=p,l=D),s.forEach((function(e){K(w.start,e,re,{handles:a,handleNumbers:l,connect:n})}))}}))}function ae(e,t){j[e]=j[e]||[],j[e].push(t),"update"===e.split(".")[0]&&p.forEach((function(e,t){ue("update",t)}))}function le(e){var t=e&&e.split(".")[0],n=t?e.substring(t.length):e;Object.keys(j).forEach((function(e){var r=e.split(".")[0],i=e.substring(r.length);t&&t!==r||n&&n!==i||function(e){return e===T.aria||e===T.tooltips}(i)&&n!==i||delete j[e]}))}function ue(e,n,r){Object.keys(j).forEach((function(i){var o=i.split(".")[0];e===o&&j[i].forEach((function(e){e.call(Ce,k.map(t.format.to),n,k.slice(),r||!1,A.slice(),Ce)}))}))}function ce(e,n,r,i,o,s,a){var l;return p.length>1&&!t.events.unconstrained&&(i&&n>0&&(l=E.getAbsoluteDistance(e[n-1],t.margin,!1),r=Math.max(r,l)),o&&n<p.length-1&&(l=E.getAbsoluteDistance(e[n+1],t.margin,!0),r=Math.min(r,l))),p.length>1&&t.limit&&(i&&n>0&&(l=E.getAbsoluteDistance(e[n-1],t.limit,!1),r=Math.min(r,l)),o&&n<p.length-1&&(l=E.getAbsoluteDistance(e[n+1],t.limit,!0),r=Math.max(r,l))),t.padding&&(0===n&&(l=E.getAbsoluteDistance(0,t.padding[0],!1),r=Math.max(r,l)),n===p.length-1&&(l=E.getAbsoluteDistance(100,t.padding[1],!0),r=Math.min(r,l))),a||(r=E.getStep(r)),!((r=f(r))===e[n]&&!s)&&r}function fe(e,n){var r=t.ort;return(r?n:e)+", "+(r?e:n)}function de(e,n,r,i,o){var s=r.slice(),a=i[0],l=t.events.smoothSteps,u=[!e,e],c=[e,!e];i=i.slice(),e&&i.reverse(),i.length>1?i.forEach((function(e,t){var r=ce(s,e,s[e]+n,u[t],c[t],!1,l);!1===r?n=0:(n=r-s[e],s[e]=r)})):u=c=[!0];var f=!1;i.forEach((function(e,t){f=ge(e,r[e]+n,u[t],c[t],!1,l)||f})),f&&(i.forEach((function(e){ue("update",e),ue("slide",e)})),null!=o&&ue("drag",a))}function pe(e,n){return t.dir?100-e-n:e}function he(e,n){A[e]=n,k[e]=E.fromStepping(n);var r="translate("+fe(pe(n,0)-q+"%","0")+")";if(p[e].style[t.transformRule]=r,t.events.invertConnects&&A.length>1){var i=A.every((function(e,t,n){return 0===t||e>=n[t-1]}));if(P!==!i)return P=!P,H(t,t.connect.map((function(e){return!e}))),void Se()}ve(e),ve(e+1),P&&(ve(e-1),ve(e+2))}function me(){D.forEach((function(e){var t=A[e]>50?-1:1,n=3+(p.length+t*e);p[e].style.zIndex=String(n)}))}function ge(e,t,n,r,i,o){return i||(t=ce(A,e,t,n,r,!1,o)),!1!==t&&(he(e,t),!0)}function ve(e){if(v[e]){var n=A.slice();P&&n.sort((function(e,t){return e-t}));var r=0,i=100;0!==e&&(r=n[e-1]),e!==v.length-1&&(i=n[e]);var o=i-r,s="translate("+fe(pe(r,o)+"%","0")+")",a="scale("+fe(o/100,"1")+")";v[e].style[t.transformRule]=s+" "+a}}function ye(e,n){return null===e||!1===e||void 0===e?A[n]:("number"==typeof e&&(e=String(e)),!1!==(e=t.format.from(e))&&(e=E.toStepping(e)),!1===e||isNaN(e)?A[n]:e)}function be(e,n,r){var i=d(e),o=void 0===A[0];n=void 0===n||n,t.animate&&!o&&c(C,t.cssClasses.tap,t.animationDuration),D.forEach((function(e){ge(e,ye(i[e],e),!0,!1,r)}));var s=1===D.length?0:1;if(o&&E.hasNoSize()&&(r=!0,A[0]=0,D.length>1)){var a=100/(D.length-1);D.forEach((function(e){A[e]=e*a}))}for(;s<D.length;++s)D.forEach((function(e){ge(e,A[e],!0,!0,r)}));me(),D.forEach((function(e){ue("update",e),null!==i[e]&&n&&ue("set",e)}))}function xe(e){if(void 0===e&&(e=!1),e)return 1===k.length?k[0]:k.slice(0);var n=k.map(t.format.to);return 1===n.length?n[0]:n}function we(e){var n=A[e],r=E.getNearbySteps(n),i=k[e],o=r.thisStep.step,s=null;if(t.snap)return[i-r.stepBefore.startValue||null,r.stepAfter.startValue-i||null];!1!==o&&i+o>r.stepAfter.startValue&&(o=r.stepAfter.startValue-i),s=i>r.thisStep.startValue?r.thisStep.step:!1!==r.stepBefore.step&&i-r.stepBefore.highestStep,100===n?o=null:0===n&&(s=null);var a=E.countStepDecimals();return null!==o&&!1!==o&&(o=Number(o.toFixed(a))),null!==s&&!1!==s&&(s=Number(s.toFixed(a))),[s,o]}function Se(){for(;u.firstChild;)u.removeChild(u.firstChild);for(var e=0;e<=t.handles;e++)v[e]=F(u,t.connect[e]),ve(e);se({drag:t.events.drag,fixed:!0})}h(x=C,t.cssClasses.target),0===t.dir?h(x,t.cssClasses.ltr):h(x,t.cssClasses.rtl),0===t.ort?h(x,t.cssClasses.horizontal):h(x,t.cssClasses.vertical),h(x,"rtl"===getComputedStyle(x).direction?t.cssClasses.textDirectionRtl:t.cssClasses.textDirectionLtr),o=R(x,t.cssClasses.base),function(e,n){u=R(n,t.cssClasses.connects),p=[],(v=[]).push(F(u,e[0]));for(var r=0;r<t.handles;r++)p.push(V(n,r)),D[r]=r,v.push(F(u,e[r+1]))}(t.connect,o),se(t.events),be(t.start),t.pips&&G(t.pips),t.tooltips&&B(),le("update"+T.aria),ae("update"+T.aria,(function(e,n,r,i,o){D.forEach((function(e){var n=p[e],i=ce(A,e,0,!0,!0,!0),s=ce(A,e,100,!0,!0,!0),a=o[e],l=String(t.ariaFormat.to(r[e]));i=E.fromStepping(i).toFixed(1),s=E.fromStepping(s).toFixed(1),a=E.fromStepping(a).toFixed(1),n.children[0].setAttribute("aria-valuemin",i),n.children[0].setAttribute("aria-valuemax",s),n.children[0].setAttribute("aria-valuenow",a),n.children[0].setAttribute("aria-valuetext",l)}))}));var Ce={destroy:function(){for(le(T.aria),le(T.tooltips),Object.keys(t.cssClasses).forEach((function(e){m(C,t.cssClasses[e])}));C.firstChild;)C.removeChild(C.firstChild);delete C.noUiSlider},steps:function(){return D.map(we)},on:ae,off:le,get:xe,set:be,setHandle:function(e,t,n,r){if(!((e=Number(e))>=0&&e<D.length))throw new Error("noUiSlider: invalid handle number, got: "+e);ge(e,ye(t,e),!0,!0,r),ue("update",e),n&&ue("set",e)},reset:function(e){be(t.start,e)},disable:function(e){null!=e?(p[e].setAttribute("disabled",""),p[e].handle.removeAttribute("tabindex")):(C.setAttribute("disabled",""),p.forEach((function(e){e.handle.removeAttribute("tabindex")})))},enable:function(e){null!=e?(p[e].removeAttribute("disabled"),p[e].handle.setAttribute("tabindex","0")):(C.removeAttribute("disabled"),p.forEach((function(e){e.removeAttribute("disabled"),e.handle.setAttribute("tabindex","0")})))},__moveHandles:function(e,t,n){de(e,t,A,n)},options:n,updateOptions:function(e,r){var i=xe(),o=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips","connect"];o.forEach((function(t){void 0!==e[t]&&(n[t]=e[t])}));var s=Q(n);o.forEach((function(n){void 0!==e[n]&&(t[n]=s[n])})),E=s.spectrum,t.margin=s.margin,t.limit=s.limit,t.padding=s.padding,t.pips?G(t.pips):Y(),t.tooltips?B():W(),A=[],be(a(e.start)?e.start:i,r),e.connect&&Se()},target:C,removePips:Y,removeTooltips:W,getPositions:function(){return A.slice()},getTooltips:function(){return b},getOrigins:function(){return p},pips:G};return Ce}function K(e,t){if(!e||!e.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+e);if(e.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var n=J(e,Q(t),t);return e.noUiSlider=n,n}const Z={__spectrum:S,cssClasses:E,create:K}}},t={};function n(r){var i=t[r];if(void 0!==i)return i.exports;var o=t[r]={exports:{}};return e[r].call(o.exports,o,o.exports,n),o.exports}n.amdD=function(){throw new Error("define cannot be used indirect")},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},window.toastr=n(7959),window.noUiSlider=n(9476),toastr.options.closeButton=!0,function(e,t){"use strict";e.fn.rtclBlock=function(t){var n={overlayCSS:{zIndex:1e3,border:"none",margin:0,padding:0,width:"100%",height:"100%",top:0,left:0,background:"rgb(255, 255, 255)",opacity:.6,cursor:"wait",position:"absolute",color:"#556b2f",backgroundColor:"white"}},r=e.extend({},n,t||{}),i=e.extend({},n.overlayCSS,r.overlayCSS||{});return this.each((function(){var t=e(this);"static"===t.css("position")&&(this.style.position="relative",t.data("rtcl-block.static",!0)),this.style.zoom=1;var n=e('<div class="rtcl-loading-overlay" />').css(i);t.find("> .rtcl-loading-overlay").remove(),t.addClass("rtcl-loading").append(n)}))},e.fn.rtclUnblock=function(){return this.each((function(){var t=e(this);t.data("rtcl-block","static")&&t.css("position","static"),t.removeClass("rtcl-loading").find("> .rtcl-loading-overlay").remove()}))},t.RtclModal=function(t){this.settings=e.extend({wrapClass:"",footer:!0,header:!0,maxWidth:500},t),this.modal_wrapper_element=e("<div class='rtcl-ui-modal'><div class='rtcl-modal-wrapper'><div class='rtcl-modal-content'><div class='rtcl-modal-header'><div class='rtcl-modal-title'></div> <button class='rtcl-modal-close'><i class='rtcl-icon rtcl-icon-cancel' aria-hidden='true'></i></button></div><div class='rtcl-modal-body'></div><div class='rtcl-modal-footer'></div></div></div><div class='rtcl-mask-wrapper'></div></div>"),this.show=function(){e(document).trigger("rtcl.RtclModal.show"),this.addModal()},this.addModal=function(){var t=this;return e("body").append(this.modal_wrapper_element),this.wrapper=e(".rtcl-modal-wrapper",this.modal_wrapper_element),this.container=e(".rtcl-modal-content",this.modal_wrapper_element),this.header=e(".rtcl-modal-header",this.modal_wrapper_element),this.header_title=e(".rtcl-modal-title",this.header),this.body=e(".rtcl-modal-body",this.modal_wrapper_element),this.footer=e(".rtcl-modal-footer",this.modal_wrapper_element),this.settings.wrapClass&&this.wrapper.addClass(this.settings.wrapClass),!1===this.settings.header&&this.header.remove(),!1===this.settings.footer&&this.footer.remove(),500!==this.settings.maxWidth&&this.wrapper.css({maxWidth:parseInt(this.settings.maxWidth,10)+"px"}),e("body").addClass("rtcl-modal-open"),e(".rtcl-mask-wrapper, .rtcl-modal-close",this.modal_wrapper_element).on("click",(function(){t.removeModel()})),e(document).trigger("rtcl.RtclModal.addedModal",this.modal_wrapper_element),this},this.addLoading=function(){return this.body.rtclBlock(),this},this.addTitle=function(e){return this.header_title.html(e),this},this.removeLoading=function(){return this.body.rtclUnblock(),this},this.removeModel=function(){return e(document).trigger("rtcl.RtclModal.close",this.modal_wrapper_element),e("body > .rtcl-ui-modal").remove(),e("body").removeClass("rtcl-modal-open"),this},this.close=function(){return this.removeModel(),this},this.content=function(t){return this.body.html(t),e(document).trigger("rtcl.RtclModal.contentAdded",this.modal_wrapper_element),this},this.appendContent=function(e){return this.body.append(e),this},this.prependContent=function(e){return this.body.prepend(e),this},this.addFooterContent=function(e){return this.footer.html(e),this}},t.rtclCipher=function(e,t){var n=e,r=function(e){return e.split("").map((function(e){return e.charCodeAt(0)}))},i=function(e){return("0"+Number(e).toString(16)).substr(-2)},o=function(e){return r(n).reduce((function(e,t){return e^t}),e)};return t?function(e){return e.match(/.{1,2}/g).map((function(e){return parseInt(e,16)})).map(o).map((function(e){return String.fromCharCode(e)})).join("")}:function(e){return e.split("").map(r).map(o).map(i).join("")}},t.rtclFilter={filters:{},add:function(e,t){(this.filters[e]||(this.filters[e]=[])).push(t)},remove:function(e){this.filters[e]&&delete this.filters[e]},apply:function(e,t){if(this.filters[e])for(var n=this.filters[e],r=0;r<n.length;r++)t=n[r](t);return t}}}(jQuery,window)})();
!function(e){"use strict";e(document).on("click","#rtcl-compare-panel-btn",(function(){e("#rtcl-compare-wrap").toggleClass("open")})).on("click",".rtcl-compare",(function(t){t.preventDefault();var r=this,c=e(r).data("listing_id"),a=e("#rtcl-compare-panel");c&&e.ajax({url:rtcl_compare.ajaxurl,type:"POST",data:{action:"rtcl_add_to_compare",listing_id:c},beforeSend:function(){},success:function(t){if(t.target=r,t.html){var c=e(t.html);a.find("#rtcl-compare-wrap").hasClass("open")?(c.find("#rtcl-compare-wrap").addClass("open"),a.remove(),e(document.body).append(c)):(a.remove(),e(document.body).append(c),c.find("#rtcl-compare-wrap").addClass("open")),"add"===t.type&&e(".rtcl-compare[data-listing_id="+t.listing_id+"]").addClass("selected"),"remove"===t.type&&(e(".rtcl-compare[data-listing_id="+t.listing_id+"]").removeClass("selected"),e(".rtcl-compare-table th[data-listing_id="+t.listing_id+"], .rtcl-compare-table td[data-listing_id="+t.listing_id+"]").remove())}else a.remove(),e("#rtcl-compare-content").replaceWith("<p class='rtcl-no-item-found'>"+t.no_item_selected_message+"</p>");t.limit_alert_message&&toastr.warning(t.limit_alert_message),e(document).trigger("rtcl.compare.added",t)}})})).on("click",".rtcl-compare-remove",(function(t){t.preventDefault();var r=this,c=e(r).data("listing_id"),a=e("#rtcl-compare-panel"),l=a.find("#rtcl-compare-wrap"),o=e("#rtcl-compare-content");c&&e.ajax({url:rtcl_compare.ajaxurl,type:"POST",data:{action:"rtcl_remove_from_compare",listing_id:c},beforeSend:function(){l.rtclBlock(),o.rtclBlock()},success:function(t){if(t.target=r,l.rtclUnblock(),o.rtclUnblock(),t.html){var c=e(t.html);a.find("#rtcl-compare-wrap").hasClass("open")&&c.find("#rtcl-compare-wrap").addClass("open"),a.remove(),e(document.body).append(c),e(".rtcl-compare[data-listing_id="+t.listing_id+"]").removeClass("selected"),e(".rtcl-compare-table th[data-listing_id="+t.listing_id+"], .rtcl-compare-table td[data-listing_id="+t.listing_id+"]").remove()}else a.remove(),e(".rtcl-compare[data-listing_id]").removeClass("selected"),e("#rtcl-compare-content").replaceWith("<p class='rtcl-no-item-found'>"+t.no_item_selected_message+"</p>");e(document).trigger("rtcl.compare.removed",t)},error:function(){l.rtclUnblock(),o.rtclUnblock(),toastr.error(rtcl_compare.server_error)}})})).on("click",".rtcl-compare-btn-clear",(function(t){t.preventDefault();var r=e("#rtcl-compare-panel").find("#rtcl-compare-wrap");e.ajax({url:rtcl_compare.ajaxurl,type:"POST",data:{action:"rtcl_clear_from_compare"},beforeSend:function(){r.rtclBlock(),e("#rtcl-compare-content").rtclBlock()},success:function(t){e("#rtcl-compare-panel").remove(),e(".rtcl-compare[data-listing_id]").removeClass("selected"),e("#rtcl-compare-content").replaceWith("<p class='rtcl-no-item-found'>"+t.data.no_item_selected_message+"</p>"),e(document).trigger("rtcl.compare.clear",t)},error:function(){r.rtclUnblock(),toastr.error(rtcl_compare.server_error)}})}))}(jQuery);
!function(i){"use strict";i(document).on("click",rtcl_quick_view.selector||".rtcl-quick-view",(function(t){var r=i(this).data("listing_id");if(r){var e=new RtclModal({footer:!1,wrapClass:rtcl_quick_view.wrap_class||"rtcl-qvw no-heading",maxWidth:rtcl_quick_view.max_width||1e3});return i.ajax({url:rtcl_quick_view.ajaxurl,type:"POST",data:{listing_id:r,action:"rtcl_get_ajax_quick_view_data"},beforeSend:function(){e.addModal().addLoading()},success:function(t){e.removeLoading(),e.content(t.html),i(document).trigger("rtcl.quick-view-displayed")},error:function(t){e.removeLoading(),e.content(rtcl_quick_view.server_error),i(document).trigger("rtcl.quick-view-has-error")}}),!1}return!0})).on("rtcl.quick-view-displayed",(function(t){i.fn.rtcl_listing_gallery&&i(".rtcl-slider-wrapper").each((function(){i(this).rtcl_listing_gallery()}))}))}(jQuery);