function dean_addEvent(n,t,i){if(n.addEventListener)n.addEventListener(t,i,!1);else{i.$$guid||(i.$$guid=dean_addEvent.guid++);n.events||(n.events={});var r=n.events[t];r||(r=n.events[t]={},n["on"+t]&&(r[0]=n["on"+t]));r[i.$$guid]=i;n["on"+t]=handleEvent}}function removeEvent(n,t,i){n.removeEventListener?n.removeEventListener(t,i,!1):n.events&&n.events[t]&&delete n.events[t][i.$$guid]}function handleEvent(n){var i=!0,t,r;n=n||fixEvent(((this.ownerDocument||this.document||this).parentWindow||window).event);t=this.events[n.type];for(r in t)this.$$handleEvent=t[r],this.$$handleEvent(n)===!1&&(i=!1);return i}function fixEvent(n){return n.preventDefault=fixEvent.preventDefault,n.stopPropagation=fixEvent.stopPropagation,n}function customCheckbox(n){var t=$('input[name="'+n+'"]:even');$(t).each(function(){$(this).wrap("<span class='custom-checkbox'><\/span>");$(this).is(":checked")&&$(this).parent().addClass("selected")});$(t).click(function(){$(this).parent().toggleClass("selected")})}function customGreyCheckbox(n){var t=$('input[name="'+n+'"]');$(t).each(function(){$(this).wrap("<span class='custom-grey-checkbox'><\/span>");$(this).is(":checked")&&$(this).parent().addClass("selected")});$(t).click(function(){$(this).is(":checked")&&$(t).each(function(){$(this).parent().removeClass("selected")});$(this).parent().toggleClass("selected")})}function customBlackRoundedCheckbox(n){var t=$('input[name="'+n+'"]:even');$(t).each(function(){$(this).wrap("<span class='custom-rounded-checkbox checkbox-black'><\/span>");$(this).is(":checked")&&$(this).parent().addClass("selected")});$(t).click(function(){$(this).parent().toggleClass("selected")})}function customBlackRoundedCheckboxForClass(n){var t=$("input[type=checkbox]."+n);$(t).each(function(){$(this).wrap("<span class='custom-rounded-checkbox checkbox-black'><\/span>");$(this).is(":checked")&&$(this).parent().addClass("selected")});$(t).click(function(){$(this).parent().toggleClass("selected")})}function customWhiteRoundedCheckbox(n){var t=$('input[name="'+n+'"]:even');$(t).each(function(){$(this).wrap("<span class='custom-rounded-checkbox checkbox-white'><\/span>");$(this).is(":checked")&&$(this).parent().addClass("selected")});$(t).click(function(){$(this).parent().toggleClass("selected")})}function customRadioButton(n){var t=$('input[name="'+n+'"]');$(t).each(function(){$(this).wrap("<span class='custom-radio'><\/span>");$(this).is(":checked")&&$(this).parent().addClass("selected")});$(t).click(function(){$(this).is(":checked")&&$(t).each(function(){$(this).parent().removeClass("selected")});$(this).parent().toggleClass("selected")})}function customRadioButtonForClass(n){var t=$("input[type=radio]."+n);$(t).each(function(){$(this).wrap("<span class='custom-radio'><\/span>");$(this).is(":checked")&&$(this).parent().addClass("selected")});$(t).click(function(){$(this).is(":checked")&&$(t).each(function(){$(this).parent().removeClass("selected")});$(this).parent().toggleClass("selected")})}function toggleCodes(n){var t=document.getElementById("icons");n?t.className+=" codesOn":t.className=t.className.replace(" codesOn","")}function loadMoreToInfiniteScrollTable(n){page>-1&&!inCallback&&(inCallback=!0,page++,$("div#loading").show(),$.ajax({type:"GET",url:n,data:"pageNum="+page+"&mobile="+isMobileProductView,success:function(n){n!=""?isMobileProductView==!0?$("div.panel-group.infinite-scroll").append(n):($("table.infinite-scroll > tbody").append(n),$("table.infinite-scroll > tbody > tr:even").addClass("alt-row-class"),$("table.infinite-scroll > tbody > tr:odd").removeClass("alt-row-class")):page=-1;inCallback=!1;$("div#loading").hide()},error:function(){}}))}function showNoMoreRecords(){hasReachedEndOfInfiniteScroll=!0}var stIsIE=/*@cc_on!@*/!1,_timer,forEach;sorttable={init:function(){arguments.callee.done||(arguments.callee.done=!0,_timer&&clearInterval(_timer),document.createElement&&document.getElementsByTagName)&&(sorttable.DATE_RE=/^(\d\d?)[\/\.-](\d\d?)[\/\.-]((\d\d)?\d\d)$/,forEach(document.getElementsByTagName("table"),function(n){n.className.search(/\bsortable\b/)!=-1&&sorttable.makeSortable(n)}))},makeSortable:function(n){var t;if(n.getElementsByTagName("thead").length==0&&(the=document.createElement("thead"),the.appendChild(n.rows[0]),n.insertBefore(the,n.firstChild)),n.tHead==null&&(n.tHead=n.getElementsByTagName("thead")[0]),n.tHead.rows.length==1){for(sortbottomrows=[],t=0;t<n.rows.length;t++)n.rows[t].className.search(/\bsortbottom\b/)!=-1&&(sortbottomrows[sortbottomrows.length]=n.rows[t]);if(sortbottomrows){for(n.tFoot==null&&(tfo=document.createElement("tfoot"),n.appendChild(tfo)),t=0;t<sortbottomrows.length;t++)tfo.appendChild(sortbottomrows[t]);delete sortbottomrows}for(headrow=n.tHead.rows[0].cells,t=0;t<headrow.length;t++)headrow[t].className.match(/\bsorttable_nosort\b/)||(mtch=headrow[t].className.match(/\bsorttable_([a-z0-9]+)\b/),mtch&&(override=mtch[1]),headrow[t].sorttable_sortfunction=mtch&&typeof sorttable["sort_"+override]=="function"?sorttable["sort_"+override]:sorttable.guessType(n,t),headrow[t].sorttable_columnindex=t,headrow[t].sorttable_tbody=n.tBodies[0],dean_addEvent(headrow[t],"click",sorttable.innerSortFunction=function(){var n;if(this.className.search(/\bsorttable_sorted\b/)!=-1){sorttable.reverse(this.sorttable_tbody);this.className=this.className.replace("sorttable_sorted","sorttable_sorted_reverse");this.removeChild(document.getElementById("sorttable_sortfwdind"));sortrevind=document.createElement("span");sortrevind.id="sorttable_sortrevind";sortrevind.innerHTML=stIsIE?'&nbsp<font face="webdings">5<\/font>':"&nbsp;&#x25B4;";this.appendChild(sortrevind);return}if(this.className.search(/\bsorttable_sorted_reverse\b/)!=-1){sorttable.reverse(this.sorttable_tbody);this.className=this.className.replace("sorttable_sorted_reverse","sorttable_sorted");this.removeChild(document.getElementById("sorttable_sortrevind"));sortfwdind=document.createElement("span");sortfwdind.id="sorttable_sortfwdind";sortfwdind.innerHTML=stIsIE?'&nbsp<font face="webdings">6<\/font>':"&nbsp;&#x25BE;";this.appendChild(sortfwdind);return}for(theadrow=this.parentNode,forEach(theadrow.childNodes,function(n){n.nodeType==1&&(n.className=n.className.replace("sorttable_sorted_reverse",""),n.className=n.className.replace("sorttable_sorted",""))}),sortfwdind=document.getElementById("sorttable_sortfwdind"),sortfwdind&&sortfwdind.parentNode.removeChild(sortfwdind),sortrevind=document.getElementById("sorttable_sortrevind"),sortrevind&&sortrevind.parentNode.removeChild(sortrevind),this.className+=" sorttable_sorted",sortfwdind=document.createElement("span"),sortfwdind.id="sorttable_sortfwdind",sortfwdind.innerHTML=stIsIE?'&nbsp<font face="webdings">6<\/font>':"&nbsp;&#x25BE;",this.appendChild(sortfwdind),row_array=[],col=this.sorttable_columnindex,rows=this.sorttable_tbody.rows,n=0;n<rows.length;n++)row_array[row_array.length]=[sorttable.getInnerText(rows[n].cells[col]),rows[n]];for(row_array.sort(this.sorttable_sortfunction),tb=this.sorttable_tbody,n=0;n<row_array.length;n++)tb.appendChild(row_array[n][1]);delete row_array}))}},guessType:function(n,t){sortfn=sorttable.sort_alpha;for(var i=0;i<n.tBodies[0].rows.length;i++)if(text=sorttable.getInnerText(n.tBodies[0].rows[i].cells[t]),text!=""){if(text.match(/^-?[�$�]?[\d,.]+%?$/))return sorttable.sort_numeric;if(possdate=text.match(sorttable.DATE_RE),possdate){if(first=parseInt(possdate[1]),second=parseInt(possdate[2]),first>12)return sorttable.sort_ddmm;if(second>12)return sorttable.sort_mmdd;sortfn=sorttable.sort_ddmm}}return sortfn},getInnerText:function(n){var i,t;if(!n)return"";if(hasInputs=typeof n.getElementsByTagName=="function"&&n.getElementsByTagName("input").length,n.getAttribute("sorttable_customkey")!=null)return n.getAttribute("sorttable_customkey");if(typeof n.textContent=="undefined"||hasInputs)if(typeof n.innerText=="undefined"||hasInputs)if(typeof n.text=="undefined"||hasInputs)switch(n.nodeType){case 3:if(n.nodeName.toLowerCase()=="input")return n.value.replace(/^\s+|\s+$/g,"");case 4:return n.nodeValue.replace(/^\s+|\s+$/g,"");case 1:case 11:for(i="",t=0;t<n.childNodes.length;t++)i+=sorttable.getInnerText(n.childNodes[t]);return i.replace(/^\s+|\s+$/g,"");default:return""}else return n.text.replace(/^\s+|\s+$/g,"");else return n.innerText.replace(/^\s+|\s+$/g,"");else return n.textContent.replace(/^\s+|\s+$/g,"")},reverse:function(n){var t;for(newrows=[],t=0;t<n.rows.length;t++)newrows[newrows.length]=n.rows[t];for(t=newrows.length-1;t>=0;t--)n.appendChild(newrows[t]);delete newrows},sort_numeric:function(n,t){return aa=parseFloat(n[0].replace(/[^0-9.-]/g,"")),isNaN(aa)&&(aa=0),bb=parseFloat(t[0].replace(/[^0-9.-]/g,"")),isNaN(bb)&&(bb=0),aa-bb},sort_alpha:function(n,t){return n[0]==t[0]?0:n[0]<t[0]?-1:1},sort_ddmm:function(n,t){return(mtch=n[0].match(sorttable.DATE_RE),y=mtch[3],m=mtch[2],d=mtch[1],m.length==1&&(m="0"+m),d.length==1&&(d="0"+d),dt1=y+m+d,mtch=t[0].match(sorttable.DATE_RE),y=mtch[3],m=mtch[2],d=mtch[1],m.length==1&&(m="0"+m),d.length==1&&(d="0"+d),dt2=y+m+d,dt1==dt2)?0:dt1<dt2?-1:1},sort_mmdd:function(n,t){return(mtch=n[0].match(sorttable.DATE_RE),y=mtch[3],d=mtch[2],m=mtch[1],m.length==1&&(m="0"+m),d.length==1&&(d="0"+d),dt1=y+m+d,mtch=t[0].match(sorttable.DATE_RE),y=mtch[3],d=mtch[2],m=mtch[1],m.length==1&&(m="0"+m),d.length==1&&(d="0"+d),dt2=y+m+d,dt1==dt2)?0:dt1<dt2?-1:1},shaker_sort:function(n,t){for(var f=0,e=n.length-1,r=!0,i,u;r;){for(r=!1,i=f;i<e;++i)t(n[i],n[i+1])>0&&(u=n[i],n[i]=n[i+1],n[i+1]=u,r=!0);if(e--,!r)break;for(i=e;i>f;--i)t(n[i],n[i-1])<0&&(u=n[i],n[i]=n[i-1],n[i-1]=u,r=!0);f++}}};document.addEventListener&&document.addEventListener("DOMContentLoaded",sorttable.init,!1);/*@if(@_win32)document.write("<script id=__ie_onload defer src=javascript:void(0)><\/script>");var script=document.getElementById("__ie_onload");script.onreadystatechange=function(){this.readyState=="complete"&&sorttable.init()};@end@*//WebKit/i.test(navigator.userAgent)&&(_timer=setInterval(function(){/loaded|complete/.test(document.readyState)&&sorttable.init()},10));window.onload=sorttable.init;dean_addEvent.guid=1;fixEvent.preventDefault=function(){this.returnValue=!1};fixEvent.stopPropagation=function(){this.cancelBubble=!0};Array.forEach||(Array.forEach=function(n,t,i){for(var r=0;r<n.length;r++)t.call(i,n[r],r,n)});Function.prototype.forEach=function(n,t,i){for(var r in n)typeof this.prototype[r]=="undefined"&&t.call(i,n[r],r,n)};String.forEach=function(n,t,i){Array.forEach(n.split(""),function(r,u){t.call(i,r,u,n)})};forEach=function(n,t,i){if(n){var r=Object;if(n instanceof Function)r=Function;else{if(n.forEach instanceof Function){n.forEach(t,i);return}typeof n=="string"?r=String:typeof n.length=="number"&&(r=Array)}r.forEach(n,t,i)}};!function(n){"function"==typeof define&&define.amd?define(["jquery"],n):n("object"==typeof exports?require("jquery"):jQuery)}(function(n,t){function f(){return new Date(Date.UTC.apply(Date,arguments))}function s(){var n=new Date;return f(n.getFullYear(),n.getMonth(),n.getDate())}function l(n,t){return n.getUTCFullYear()===t.getUTCFullYear()&&n.getUTCMonth()===t.getUTCMonth()&&n.getUTCDate()===t.getUTCDate()}function h(i,r){return function(){return r!==t&&n.fn.datepicker.deprecated(r),this[i].apply(this,arguments)}}function p(n){return n&&!isNaN(n.getTime())}function w(t,i){function o(n,t){return t.toLowerCase()}var u,f=n(t).data(),e={},s=new RegExp("^"+i.toLowerCase()+"([A-Z])"),r;i=new RegExp("^"+i.toLowerCase());for(r in f)i.test(r)&&(u=r.replace(s,o),e[u]=f[r]);return e}function b(t){var u={},i;if(r[t]||(t=t.split("-")[0],r[t]))return i=r[t],n.each(y,function(n,t){t in i&&(u[t]=i[t])}),u}var a=function(){var t={get:function(n){return this.slice(n)[0]},contains:function(n){for(var i=n&&n.valueOf(),t=0,r=this.length;t<r;t++)if(0<=this[t].valueOf()-i&&this[t].valueOf()-i<864e5)return t;return-1},remove:function(n){this.splice(n,1)},replace:function(t){t&&(n.isArray(t)||(t=[t]),this.clear(),this.push.apply(this,t))},clear:function(){this.length=0},copy:function(){var n=new a;return n.replace(this),n}};return function(){var i=[];return i.push.apply(i,arguments),n.extend(i,t),i}}(),u=function(t,r){n.data(t,"datepicker",this);this._process_options(r);this.dates=new a;this.viewDate=this.o.defaultViewDate;this.focusDate=null;this.element=n(t);this.isInput=this.element.is("input");this.inputField=this.isInput?this.element:this.element.find("input");this.component=!!this.element.hasClass("date")&&this.element.find(".add-on, .input-group-addon, .btn");this.component&&0===this.component.length&&(this.component=!1);this.isInline=!this.component&&this.element.is("div");this.picker=n(i.template);this._check_template(this.o.templates.leftArrow)&&this.picker.find(".prev").html(this.o.templates.leftArrow);this._check_template(this.o.templates.rightArrow)&&this.picker.find(".next").html(this.o.templates.rightArrow);this._buildEvents();this._attachEvents();this.isInline?this.picker.addClass("datepicker-inline").appendTo(this.element):this.picker.addClass("datepicker-dropdown dropdown-menu");this.o.rtl&&this.picker.addClass("datepicker-rtl");this.o.calendarWeeks&&this.picker.find(".datepicker-days .datepicker-switch, thead .datepicker-title, tfoot .today, tfoot .clear").attr("colspan",function(n,t){return Number(t)+1});this._process_options({startDate:this._o.startDate,endDate:this._o.endDate,daysOfWeekDisabled:this.o.daysOfWeekDisabled,daysOfWeekHighlighted:this.o.daysOfWeekHighlighted,datesDisabled:this.o.datesDisabled});this._allow_update=!1;this.setViewMode(this.o.startView);this._allow_update=!0;this.fillDow();this.fillMonths();this.update();this.isInline&&this.show()},c,v,o,e,y,r,i;u.prototype={constructor:u,_resolveViewName:function(t){return n.each(i.viewModes,function(i,r){if(t===i||n.inArray(t,r.names)!==-1)return t=i,!1}),t},_resolveDaysOfWeek:function(t){return n.isArray(t)||(t=t.split(/[,\s]*/)),n.map(t,Number)},_check_template:function(i){try{if(i===t||""===i)return!1;if((i.match(/[<>]/g)||[]).length<=0)return!0;var r=n(i);return r.length>0}catch(n){return!1}},_process_options:function(t){var u,h,l,o,c;if(this._o=n.extend({},this._o,t),u=this.o=n.extend({},this._o),h=u.language,r[h]||(h=h.split("-")[0],r[h]||(h=e.language)),u.language=h,u.startView=this._resolveViewName(u.startView),u.minViewMode=this._resolveViewName(u.minViewMode),u.maxViewMode=this._resolveViewName(u.maxViewMode),u.startView=Math.max(this.o.minViewMode,Math.min(this.o.maxViewMode,u.startView)),u.multidate!==!0&&(u.multidate=Number(u.multidate)||!1,u.multidate!==!1&&(u.multidate=Math.max(0,u.multidate))),u.multidateSeparator=String(u.multidateSeparator),u.weekStart%=7,u.weekEnd=(u.weekStart+6)%7,l=i.parseFormat(u.format),u.startDate!==-(1/0)&&(u.startDate=u.startDate?u.startDate instanceof Date?this._local_to_utc(this._zero_time(u.startDate)):i.parseDate(u.startDate,l,u.language,u.assumeNearbyYear):-(1/0)),u.endDate!==1/0&&(u.endDate=u.endDate?u.endDate instanceof Date?this._local_to_utc(this._zero_time(u.endDate)):i.parseDate(u.endDate,l,u.language,u.assumeNearbyYear):1/0),u.daysOfWeekDisabled=this._resolveDaysOfWeek(u.daysOfWeekDisabled||[]),u.daysOfWeekHighlighted=this._resolveDaysOfWeek(u.daysOfWeekHighlighted||[]),u.datesDisabled=u.datesDisabled||[],n.isArray(u.datesDisabled)||(u.datesDisabled=u.datesDisabled.split(",")),u.datesDisabled=n.map(u.datesDisabled,function(n){return i.parseDate(n,l,u.language,u.assumeNearbyYear)}),o=String(u.orientation).toLowerCase().split(/\s+/g),c=u.orientation.toLowerCase(),o=n.grep(o,function(n){return/^auto|left|right|top|bottom$/.test(n)}),u.orientation={x:"auto",y:"auto"},c&&"auto"!==c)if(1===o.length)switch(o[0]){case"top":case"bottom":u.orientation.y=o[0];break;case"left":case"right":u.orientation.x=o[0]}else c=n.grep(o,function(n){return/^left|right$/.test(n)}),u.orientation.x=c[0]||"auto",c=n.grep(o,function(n){return/^top|bottom$/.test(n)}),u.orientation.y=c[0]||"auto";if(u.defaultViewDate instanceof Date||"string"==typeof u.defaultViewDate)u.defaultViewDate=i.parseDate(u.defaultViewDate,l,u.language,u.assumeNearbyYear);else if(u.defaultViewDate){var a=u.defaultViewDate.year||(new Date).getFullYear(),v=u.defaultViewDate.month||0,y=u.defaultViewDate.day||1;u.defaultViewDate=f(a,v,y)}else u.defaultViewDate=s()},_events:[],_secondaryEvents:[],_applyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(r=t,u=n[i][1]):3===n[i].length&&(r=n[i][1],u=n[i][2]),f.on(u,r)},_unapplyEvents:function(n){for(var f,r,u,i=0;i<n.length;i++)f=n[i][0],2===n[i].length?(u=t,r=n[i][1]):3===n[i].length&&(u=n[i][1],r=n[i][2]),f.off(r,u)},_buildEvents:function(){var t={keyup:n.proxy(function(t){n.inArray(t.keyCode,[27,37,39,38,40,32,13,9])===-1&&this.update()},this),keydown:n.proxy(this.keydown,this),paste:n.proxy(this.paste,this)};this.o.showOnFocus===!0&&(t.focus=n.proxy(this.show,this));this._events=this.isInput?[[this.element,t]]:this.component&&this.inputField.length?[[this.inputField,t],[this.component,{click:n.proxy(this.show,this)}]]:[[this.element,{click:n.proxy(this.show,this),keydown:n.proxy(this.keydown,this)}]];this._events.push([this.element,"*",{blur:n.proxy(function(n){this._focused_from=n.target},this)}],[this.element,{blur:n.proxy(function(n){this._focused_from=n.target},this)}]);this.o.immediateUpdates&&this._events.push([this.element,{"changeYear changeMonth":n.proxy(function(n){this.update(n.date)},this)}]);this._secondaryEvents=[[this.picker,{click:n.proxy(this.click,this)}],[this.picker,".prev, .next",{click:n.proxy(this.navArrowsClick,this)}],[this.picker,".day:not(.disabled)",{click:n.proxy(this.dayCellClick,this)}],[n(window),{resize:n.proxy(this.place,this)}],[n(document),{"mousedown touchstart":n.proxy(function(n){this.element.is(n.target)||this.element.find(n.target).length||this.picker.is(n.target)||this.picker.find(n.target).length||this.isInline||this.hide()},this)}]]},_attachEvents:function(){this._detachEvents();this._applyEvents(this._events)},_detachEvents:function(){this._unapplyEvents(this._events)},_attachSecondaryEvents:function(){this._detachSecondaryEvents();this._applyEvents(this._secondaryEvents)},_detachSecondaryEvents:function(){this._unapplyEvents(this._secondaryEvents)},_trigger:function(t,r){var u=r||this.dates.get(-1),f=this._utc_to_local(u);this.element.trigger({type:t,date:f,viewMode:this.viewMode,dates:n.map(this.dates,this._utc_to_local),format:n.proxy(function(n,t){0===arguments.length?(n=this.dates.length-1,t=this.o.format):"string"==typeof n&&(t=n,n=this.dates.length-1);t=t||this.o.format;var r=this.dates.get(n);return i.formatDate(r,t,this.o.language)},this)})},show:function(){if(!(this.inputField.prop("disabled")||this.inputField.prop("readonly")&&this.o.enableOnReadonly===!1))return this.isInline||this.picker.appendTo(this.o.container),this.place(),this.picker.show(),this._attachSecondaryEvents(),this._trigger("show"),(window.navigator.msMaxTouchPoints||"ontouchstart"in document)&&this.o.disableTouchKeyboard&&n(this.element).blur(),this},hide:function(){return this.isInline||!this.picker.is(":visible")?this:(this.focusDate=null,this.picker.hide().detach(),this._detachSecondaryEvents(),this.setViewMode(this.o.startView),this.o.forceParse&&this.inputField.val()&&this.setValue(),this._trigger("hide"),this)},destroy:function(){return this.hide(),this._detachEvents(),this._detachSecondaryEvents(),this.picker.remove(),delete this.element.data().datepicker,this.isInput||delete this.element.data().date,this},paste:function(t){var i;if(t.originalEvent.clipboardData&&t.originalEvent.clipboardData.types&&n.inArray("text/plain",t.originalEvent.clipboardData.types)!==-1)i=t.originalEvent.clipboardData.getData("text/plain");else{if(!window.clipboardData)return;i=window.clipboardData.getData("Text")}this.setDate(i);this.update();t.preventDefault()},_utc_to_local:function(n){if(!n)return n;var t=new Date(n.getTime()+6e4*n.getTimezoneOffset());return t.getTimezoneOffset()!==n.getTimezoneOffset()&&(t=new Date(n.getTime()+6e4*t.getTimezoneOffset())),t},_local_to_utc:function(n){return n&&new Date(n.getTime()-6e4*n.getTimezoneOffset())},_zero_time:function(n){return n&&new Date(n.getFullYear(),n.getMonth(),n.getDate())},_zero_utc_time:function(n){return n&&f(n.getUTCFullYear(),n.getUTCMonth(),n.getUTCDate())},getDates:function(){return n.map(this.dates,this._utc_to_local)},getUTCDates:function(){return n.map(this.dates,function(n){return new Date(n)})},getDate:function(){return this._utc_to_local(this.getUTCDate())},getUTCDate:function(){var n=this.dates.get(-1);return n!==t?new Date(n):null},clearDates:function(){this.inputField.val("");this.update();this._trigger("changeDate");this.o.autoclose&&this.hide()},setDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.update.apply(this,t),this._trigger("changeDate"),this.setValue(),this},setUTCDates:function(){var t=n.isArray(arguments[0])?arguments[0]:arguments;return this.setDates.apply(this,n.map(t,this._utc_to_local)),this},setDate:h("setDates"),setUTCDate:h("setUTCDates"),remove:h("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead"),setValue:function(){var n=this.getFormattedDate();return this.inputField.val(n),this},getFormattedDate:function(r){r===t&&(r=this.o.format);var u=this.o.language;return n.map(this.dates,function(n){return i.formatDate(n,r,u)}).join(this.o.multidateSeparator)},getStartDate:function(){return this.o.startDate},setStartDate:function(n){return this._process_options({startDate:n}),this.update(),this.updateNavArrows(),this},getEndDate:function(){return this.o.endDate},setEndDate:function(n){return this._process_options({endDate:n}),this.update(),this.updateNavArrows(),this},setDaysOfWeekDisabled:function(n){return this._process_options({daysOfWeekDisabled:n}),this.update(),this},setDaysOfWeekHighlighted:function(n){return this._process_options({daysOfWeekHighlighted:n}),this.update(),this},setDatesDisabled:function(n){return this._process_options({datesDisabled:n}),this.update(),this},place:function(){var y,r,p;if(this.isInline)return this;var f=this.picker.outerWidth(),s=this.picker.outerHeight(),e=n(this.o.container),h=e.width(),c="body"===this.o.container?n(document).scrollTop():e.scrollTop(),l=e.offset(),a=[0];this.element.parents().each(function(){var t=n(this).css("z-index");"auto"!==t&&0!==Number(t)&&a.push(Number(t))});var v=Math.max.apply(Math,a)+this.o.zIndexOffset,u=this.component?this.component.parent().offset():this.element.offset(),w=this.component?this.component.outerHeight(!0):this.element.outerHeight(!1),o=this.component?this.component.outerWidth(!0):this.element.outerWidth(!1),t=u.left-l.left,i=u.top-l.top;return"body"!==this.o.container&&(i+=c),this.picker.removeClass("datepicker-orient-top datepicker-orient-bottom datepicker-orient-right datepicker-orient-left"),"auto"!==this.o.orientation.x?(this.picker.addClass("datepicker-orient-"+this.o.orientation.x),"right"===this.o.orientation.x&&(t-=f-o)):u.left<0?(this.picker.addClass("datepicker-orient-left"),t-=u.left-10):t+f>h?(this.picker.addClass("datepicker-orient-right"),t+=o-f):this.o.rtl?this.picker.addClass("datepicker-orient-right"):this.picker.addClass("datepicker-orient-left"),r=this.o.orientation.y,("auto"===r&&(y=-c+i-s,r=y<0?"bottom":"top"),this.picker.addClass("datepicker-orient-"+r),"top"===r?i-=s+parseInt(this.picker.css("padding-top")):i+=w,this.o.rtl)?(p=h-(t+o),this.picker.css({top:i,right:p,zIndex:v})):this.picker.css({top:i,left:t,zIndex:v}),this},_allow_update:!0,update:function(){if(!this._allow_update)return this;var u=this.dates.copy(),t=[],r=!1;return arguments.length?(n.each(arguments,n.proxy(function(n,i){i instanceof Date&&(i=this._local_to_utc(i));t.push(i)},this)),r=!0):(t=this.isInput?this.element.val():this.element.data("date")||this.inputField.val(),t=t&&this.o.multidate?t.split(this.o.multidateSeparator):[t],delete this.element.data().date),t=n.map(t,n.proxy(function(n){return i.parseDate(n,this.o.format,this.o.language,this.o.assumeNearbyYear)},this)),t=n.grep(t,n.proxy(function(n){return!this.dateWithinRange(n)||!n},this),!0),this.dates.replace(t),this.o.updateViewDate&&(this.viewDate=this.dates.length?new Date(this.dates.get(-1)):this.viewDate<this.o.startDate?new Date(this.o.startDate):this.viewDate>this.o.endDate?new Date(this.o.endDate):this.o.defaultViewDate),r?(this.setValue(),this.element.change()):this.dates.length&&String(u)!==String(this.dates)&&r&&(this._trigger("changeDate"),this.element.change()),!this.dates.length&&u.length&&(this._trigger("clearDate"),this.element.change()),this.fill(),this},fillDow:function(){if(this.o.showWeekDays){var i=this.o.weekStart,t="<tr>";for(this.o.calendarWeeks&&(t+='<th class="cw">&#160;<\/th>');i<this.o.weekStart+7;)t+='<th class="dow',n.inArray(i,this.o.daysOfWeekDisabled)!==-1&&(t+=" disabled"),t+='">'+r[this.o.language].daysMin[i++%7]+"<\/th>";t+="<\/tr>";this.picker.find(".datepicker-days thead").append(t)}},fillMonths:function(){for(var t,i=this._utc_to_local(this.viewDate),u="",n=0;n<12;n++)t=i&&i.getMonth()===n?" focused":"",u+='<span class="month'+t+'">'+r[this.o.language].monthsShort[n]+"<\/span>";this.picker.find(".datepicker-months td").html(u)},setRange:function(t){t&&t.length?this.range=n.map(t,function(n){return n.valueOf()}):delete this.range;this.fill()},getClassNames:function(t){var i=[],r=this.viewDate.getUTCFullYear(),u=this.viewDate.getUTCMonth(),f=s();return t.getUTCFullYear()<r||t.getUTCFullYear()===r&&t.getUTCMonth()<u?i.push("old"):(t.getUTCFullYear()>r||t.getUTCFullYear()===r&&t.getUTCMonth()>u)&&i.push("new"),this.focusDate&&t.valueOf()===this.focusDate.valueOf()&&i.push("focused"),this.o.todayHighlight&&l(t,f)&&i.push("today"),this.dates.contains(t)!==-1&&i.push("active"),this.dateWithinRange(t)||i.push("disabled"),this.dateIsDisabled(t)&&i.push("disabled","disabled-date"),n.inArray(t.getUTCDay(),this.o.daysOfWeekHighlighted)!==-1&&i.push("highlighted"),this.range&&(t>this.range[0]&&t<this.range[this.range.length-1]&&i.push("range"),n.inArray(t.valueOf(),this.range)!==-1&&i.push("selected"),t.valueOf()===this.range[0]&&i.push("range-start"),t.valueOf()===this.range[this.range.length-1]&&i.push("range-end")),i},_fill_yearsView:function(i,r,u,f,e,o,s){for(var c,v,h,w="",l=u/10,b=this.picker.find(i),y=Math.floor(f/u)*u,p=y+9*l,k=Math.floor(this.viewDate.getFullYear()/l)*l,d=n.map(this.dates,function(n){return Math.floor(n.getUTCFullYear()/l)*l}),a=y-l;a<=p+l;a+=l)c=[r],v=null,a===y-l?c.push("old"):a===p+l&&c.push("new"),n.inArray(a,d)!==-1&&c.push("active"),(a<e||a>o)&&c.push("disabled"),a===k&&c.push("focused"),s!==n.noop&&(h=s(new Date(a,0,1)),h===t?h={}:"boolean"==typeof h?h={enabled:h}:"string"==typeof h&&(h={classes:h}),h.enabled===!1&&c.push("disabled"),h.classes&&(c=c.concat(h.classes.split(/\s+/))),h.tooltip&&(v=h.tooltip)),w+='<span class="'+c.join(" ")+'"'+(v?' title="'+v+'"':"")+">"+a+"<\/span>";b.find(".datepicker-switch").text(y+"-"+p);b.find("td").html(w)},fill:function(){var y,u,w=new Date(this.viewDate),o=w.getUTCFullYear(),d=w.getUTCMonth(),a=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),ut=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),v=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,ft=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,et=r[this.o.language].today||r.en.today||"",ot=r[this.o.language].clear||r.en.clear||"",st=r[this.o.language].titleFormat||r.en.titleFormat,e,g,h,p,s,c,k,it,l,rt;if(!isNaN(o)&&!isNaN(d)){for(this.picker.find(".datepicker-days .datepicker-switch").text(i.formatDate(w,st,this.o.language)),this.picker.find("tfoot .today").text(et).css("display",this.o.todayBtn===!0||"linked"===this.o.todayBtn?"table-cell":"none"),this.picker.find("tfoot .clear").text(ot).css("display",this.o.clearBtn===!0?"table-cell":"none"),this.picker.find("thead .datepicker-title").text(this.o.title).css("display","string"==typeof this.o.title&&""!==this.o.title?"table-cell":"none"),this.updateNavArrows(),this.fillMonths(),e=f(o,d,0),g=e.getUTCDate(),e.setUTCDate(g-(e.getUTCDay()-this.o.weekStart+7)%7),h=new Date(e),e.getUTCFullYear()<100&&h.setUTCFullYear(e.getUTCFullYear()),h.setUTCDate(h.getUTCDate()+42),h=h.valueOf(),c=[];e.valueOf()<h;){if(p=e.getUTCDay(),p===this.o.weekStart&&(c.push("<tr>"),this.o.calendarWeeks)){var nt=new Date(+e+(this.o.weekStart-p-7)%7*864e5),tt=new Date(Number(nt)+(11-nt.getUTCDay())%7*864e5),b=new Date(Number(b=f(tt.getUTCFullYear(),0,1))+(11-b.getUTCDay())%7*864e5),ht=(tt-b)/6048e5+1;c.push('<td class="cw">'+ht+"<\/td>")}s=this.getClassNames(e);s.push("day");k=e.getUTCDate();this.o.beforeShowDay!==n.noop&&(u=this.o.beforeShowDay(this._utc_to_local(e)),u===t?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u}),u.enabled===!1&&s.push("disabled"),u.classes&&(s=s.concat(u.classes.split(/\s+/))),u.tooltip&&(y=u.tooltip),u.content&&(k=u.content));s=n.isFunction(n.uniqueSort)?n.uniqueSort(s):n.unique(s);c.push('<td class="'+s.join(" ")+'"'+(y?' title="'+y+'"':"")+' data-date="'+e.getTime().toString()+'">'+k+"<\/td>");y=null;p===this.o.weekEnd&&c.push("<\/tr>");e.setUTCDate(e.getUTCDate()+1)}this.picker.find(".datepicker-days tbody").html(c.join(""));it=r[this.o.language].monthsTitle||r.en.monthsTitle||"Months";l=this.picker.find(".datepicker-months").find(".datepicker-switch").text(this.o.maxViewMode<2?it:o).end().find("tbody span").removeClass("active");(n.each(this.dates,function(n,t){t.getUTCFullYear()===o&&l.eq(t.getUTCMonth()).addClass("active")}),(o<a||o>v)&&l.addClass("disabled"),o===a&&l.slice(0,ut).addClass("disabled"),o===v&&l.slice(ft+1).addClass("disabled"),this.o.beforeShowMonth!==n.noop)&&(rt=this,n.each(l,function(i,r){var f=new Date(o,i,1),u=rt.o.beforeShowMonth(f);u===t?u={}:"boolean"==typeof u?u={enabled:u}:"string"==typeof u&&(u={classes:u});u.enabled!==!1||n(r).hasClass("disabled")||n(r).addClass("disabled");u.classes&&n(r).addClass(u.classes);u.tooltip&&n(r).prop("title",u.tooltip)}));this._fill_yearsView(".datepicker-years","year",10,o,a,v,this.o.beforeShowYear);this._fill_yearsView(".datepicker-decades","decade",100,o,a,v,this.o.beforeShowDecade);this._fill_yearsView(".datepicker-centuries","century",1e3,o,a,v,this.o.beforeShowCentury)}},updateNavArrows:function(){if(this._allow_update){var i,r,u=new Date(this.viewDate),t=u.getUTCFullYear(),f=u.getUTCMonth(),e=this.o.startDate!==-(1/0)?this.o.startDate.getUTCFullYear():-(1/0),s=this.o.startDate!==-(1/0)?this.o.startDate.getUTCMonth():-(1/0),o=this.o.endDate!==1/0?this.o.endDate.getUTCFullYear():1/0,h=this.o.endDate!==1/0?this.o.endDate.getUTCMonth():1/0,n=1;switch(this.viewMode){case 0:i=t<=e&&f<=s;r=t>=o&&f>=h;break;case 4:n*=10;case 3:n*=10;case 2:n*=10;case 1:i=Math.floor(t/n)*n<=e;r=Math.floor(t/n)*n+n>=o}this.picker.find(".prev").toggleClass("disabled",i);this.picker.find(".next").toggleClass("disabled",r)}},click:function(t){t.preventDefault();t.stopPropagation();var r,o,u,e;r=n(t.target);r.hasClass("datepicker-switch")&&this.viewMode!==this.o.maxViewMode&&this.setViewMode(this.viewMode+1);r.hasClass("today")&&!r.hasClass("day")&&(this.setViewMode(0),this._setDate(s(),"linked"===this.o.todayBtn?null:"view"));r.hasClass("clear")&&this.clearDates();r.hasClass("disabled")||(r.hasClass("month")||r.hasClass("year")||r.hasClass("decade")||r.hasClass("century"))&&(this.viewDate.setUTCDate(1),o=1,1===this.viewMode?(e=r.parent().find("span").index(r),u=this.viewDate.getUTCFullYear(),this.viewDate.setUTCMonth(e)):(e=0,u=Number(r.text()),this.viewDate.setUTCFullYear(u)),this._trigger(i.viewModes[this.viewMode-1].e,this.viewDate),this.viewMode===this.o.minViewMode?this._setDate(f(u,e,o)):(this.setViewMode(this.viewMode-1),this.fill()));this.picker.is(":visible")&&this._focused_from&&this._focused_from.focus();delete this._focused_from},dayCellClick:function(t){var r=n(t.currentTarget),u=r.data("date"),i=new Date(u);this.o.updateViewDate&&(i.getUTCFullYear()!==this.viewDate.getUTCFullYear()&&this._trigger("changeYear",this.viewDate),i.getUTCMonth()!==this.viewDate.getUTCMonth()&&this._trigger("changeMonth",this.viewDate));this._setDate(i)},navArrowsClick:function(t){var u=n(t.currentTarget),r=u.hasClass("prev")?-1:1;0!==this.viewMode&&(r*=12*i.viewModes[this.viewMode].navStep);this.viewDate=this.moveMonth(this.viewDate,r);this._trigger(i.viewModes[this.viewMode].e,this.viewDate);this.fill()},_toggle_multidate:function(n){var t=this.dates.contains(n);if(n||this.dates.clear(),t!==-1?(this.o.multidate===!0||this.o.multidate>1||this.o.toggleActive)&&this.dates.remove(t):this.o.multidate===!1?(this.dates.clear(),this.dates.push(n)):this.dates.push(n),"number"==typeof this.o.multidate)for(;this.dates.length>this.o.multidate;)this.dates.remove(0)},_setDate:function(n,t){t&&"date"!==t||this._toggle_multidate(n&&new Date(n));(!t&&this.o.updateViewDate||"view"===t)&&(this.viewDate=n&&new Date(n));this.fill();this.setValue();t&&"view"===t||this._trigger("changeDate");this.inputField.trigger("change");!this.o.autoclose||t&&"date"!==t||this.hide()},moveDay:function(n,t){var i=new Date(n);return i.setUTCDate(n.getUTCDate()+t),i},moveWeek:function(n,t){return this.moveDay(n,7*t)},moveMonth:function(n,t){var f;if(!p(n))return this.o.defaultViewDate;if(!t)return n;var r,u,i=new Date(n.valueOf()),e=i.getUTCDate(),o=i.getUTCMonth(),s=Math.abs(t);if(t=t>0?1:-1,1===s)u=t===-1?function(){return i.getUTCMonth()===o}:function(){return i.getUTCMonth()!==r},r=o+t,i.setUTCMonth(r),r=(r+12)%12;else{for(f=0;f<s;f++)i=this.moveMonth(i,t);r=i.getUTCMonth();i.setUTCDate(e);u=function(){return r!==i.getUTCMonth()}}for(;u();)i.setUTCDate(--e),i.setUTCMonth(r);return i},moveYear:function(n,t){return this.moveMonth(n,12*t)},moveAvailableDate:function(n,t,i){do{if(n=this[i](n,t),!this.dateWithinRange(n))return!1;i="moveDay"}while(this.dateIsDisabled(n));return n},weekOfDateIsDisabled:function(t){return n.inArray(t.getUTCDay(),this.o.daysOfWeekDisabled)!==-1},dateIsDisabled:function(t){return this.weekOfDateIsDisabled(t)||n.grep(this.o.datesDisabled,function(n){return l(t,n)}).length>0},dateWithinRange:function(n){return n>=this.o.startDate&&n<=this.o.endDate},keydown:function(n){if(!this.picker.is(":visible"))return void(40!==n.keyCode&&27!==n.keyCode||(this.show(),n.stopPropagation()));var i,t,u=!1,r=this.focusDate||this.viewDate;switch(n.keyCode){case 27:this.focusDate?(this.focusDate=null,this.viewDate=this.dates.get(-1)||this.viewDate,this.fill()):this.hide();n.preventDefault();n.stopPropagation();break;case 37:case 38:case 39:case 40:if(!this.o.keyboardNavigation||7===this.o.daysOfWeekDisabled.length)break;i=37===n.keyCode||38===n.keyCode?-1:1;0===this.viewMode?n.ctrlKey?(t=this.moveAvailableDate(r,i,"moveYear"),t&&this._trigger("changeYear",this.viewDate)):n.shiftKey?(t=this.moveAvailableDate(r,i,"moveMonth"),t&&this._trigger("changeMonth",this.viewDate)):37===n.keyCode||39===n.keyCode?t=this.moveAvailableDate(r,i,"moveDay"):this.weekOfDateIsDisabled(r)||(t=this.moveAvailableDate(r,i,"moveWeek")):1===this.viewMode?(38!==n.keyCode&&40!==n.keyCode||(i*=4),t=this.moveAvailableDate(r,i,"moveMonth")):2===this.viewMode&&(38!==n.keyCode&&40!==n.keyCode||(i*=4),t=this.moveAvailableDate(r,i,"moveYear"));t&&(this.focusDate=this.viewDate=t,this.setValue(),this.fill(),n.preventDefault());break;case 13:if(!this.o.forceParse)break;r=this.focusDate||this.dates.get(-1)||this.viewDate;this.o.keyboardNavigation&&(this._toggle_multidate(r),u=!0);this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.setValue();this.fill();this.picker.is(":visible")&&(n.preventDefault(),n.stopPropagation(),this.o.autoclose&&this.hide());break;case 9:this.focusDate=null;this.viewDate=this.dates.get(-1)||this.viewDate;this.fill();this.hide()}u&&(this.dates.length?this._trigger("changeDate"):this._trigger("clearDate"),this.inputField.trigger("change"))},setViewMode:function(n){this.viewMode=n;this.picker.children("div").hide().filter(".datepicker-"+i.viewModes[this.viewMode].clsName).show();this.updateNavArrows();this._trigger("changeViewMode",new Date(this.viewDate))}};c=function(t,i){n.data(t,"datepicker",this);this.element=n(t);this.inputs=n.map(i.inputs,function(n){return n.jquery?n[0]:n});delete i.inputs;this.keepEmptyValues=i.keepEmptyValues;delete i.keepEmptyValues;o.call(n(this.inputs),i).on("changeDate",n.proxy(this.dateUpdated,this));this.pickers=n.map(this.inputs,function(t){return n.data(t,"datepicker")});this.updateDates()};c.prototype={updateDates:function(){this.dates=n.map(this.pickers,function(n){return n.getUTCDate()});this.updateRanges()},updateRanges:function(){var t=n.map(this.dates,function(n){return n.valueOf()});n.each(this.pickers,function(n,i){i.setRange(t)})},dateUpdated:function(i){var u;if(!this.updating&&(this.updating=!0,u=n.data(i.target,"datepicker"),u!==t)){var r=u.getUTCDate(),s=this.keepEmptyValues,o=n.inArray(i.target,this.inputs),f=o-1,e=o+1,h=this.inputs.length;if(o!==-1){if(n.each(this.pickers,function(n,t){t.getUTCDate()||t!==u&&s||t.setUTCDate(r)}),r<this.dates[f])for(;f>=0&&r<this.dates[f];)this.pickers[f--].setUTCDate(r);else if(r>this.dates[e])for(;e<h&&r>this.dates[e];)this.pickers[e++].setUTCDate(r);this.updateDates();delete this.updating}}},destroy:function(){n.map(this.pickers,function(n){n.destroy()});n(this.inputs).off("changeDate",this.dateUpdated);delete this.element.data().datepicker},remove:h("destroy","Method `remove` is deprecated and will be removed in version 2.0. Use `destroy` instead")};v=n.fn.datepicker;o=function(i){var f=Array.apply(null,arguments),r;if(f.shift(),this.each(function(){var s=n(this),t=s.data("datepicker"),h="object"==typeof i&&i;if(!t){var l=w(this,"date"),a=n.extend({},e,l,h),v=b(a.language),o=n.extend({},e,v,l,h);s.hasClass("input-daterange")||o.inputs?(n.extend(o,{inputs:o.inputs||s.find("input").toArray()}),t=new c(this,o)):t=new u(this,o);s.data("datepicker",t)}"string"==typeof i&&"function"==typeof t[i]&&(r=t[i].apply(t,f))}),r===t||r instanceof u||r instanceof c)return this;if(this.length>1)throw new Error("Using only allowed for the collection of a single element ("+i+" function)");return r};n.fn.datepicker=o;e=n.fn.datepicker.defaults={assumeNearbyYear:!1,autoclose:!1,beforeShowDay:n.noop,beforeShowMonth:n.noop,beforeShowYear:n.noop,beforeShowDecade:n.noop,beforeShowCentury:n.noop,calendarWeeks:!1,clearBtn:!1,toggleActive:!1,daysOfWeekDisabled:[],daysOfWeekHighlighted:[],datesDisabled:[],endDate:1/0,forceParse:!0,format:"mm/dd/yyyy",keepEmptyValues:!1,keyboardNavigation:!0,language:"en",minViewMode:0,maxViewMode:4,multidate:!1,multidateSeparator:",",orientation:"auto",rtl:!1,startDate:-(1/0),startView:0,todayBtn:!1,todayHighlight:!1,updateViewDate:!0,weekStart:0,disableTouchKeyboard:!1,enableOnReadonly:!0,showOnFocus:!0,zIndexOffset:10,container:"body",immediateUpdates:!1,title:"",templates:{leftArrow:"&#x00AB;",rightArrow:"&#x00BB;"},showWeekDays:!0};y=n.fn.datepicker.locale_opts=["format","rtl","weekStart"];n.fn.datepicker.Constructor=u;r=n.fn.datepicker.dates={en:{days:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],daysShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],daysMin:["Su","Mo","Tu","We","Th","Fr","Sa"],months:["January","February","March","April","May","June","July","August","September","October","November","December"],monthsShort:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],today:"Today",clear:"Clear",titleFormat:"MM yyyy"}};i={viewModes:[{names:["days","month"],clsName:"days",e:"changeMonth"},{names:["months","year"],clsName:"months",e:"changeYear",navStep:1},{names:["years","decade"],clsName:"years",e:"changeDecade",navStep:10},{names:["decades","century"],clsName:"decades",e:"changeCentury",navStep:100},{names:["centuries","millennium"],clsName:"centuries",e:"changeMillennium",navStep:1e3}],validParts:/dd?|DD?|mm?|MM?|yy(?:yy)?/g,nonpunctuation:/[^ -\/:-@\u5e74\u6708\u65e5\[-`{-~\t\n\r]+/g,parseFormat:function(n){if("function"==typeof n.toValue&&"function"==typeof n.toDisplay)return n;var t=n.replace(this.validParts,"\0").split("\0"),i=n.match(this.validParts);if(!t||!t.length||!i||0===i.length)throw new Error("Invalid date format.");return{separators:t,parts:i}},parseDate:function(f,e,o,h){function et(n,t){return t===!0&&(t=10),n<100&&(n+=2e3,n>(new Date).getFullYear()+t&&(n-=100)),n}function tt(){var n=this.slice(0,l[c].length),t=l[c].slice(0,n.length);return n.toLowerCase()===t.toLowerCase()}var l,y,it,c,rt,ut,g,v,ft,d,w;if(!f)return t;if(f instanceof Date)return f;if("string"==typeof e&&(e=i.parseFormat(e)),e.toValue)return e.toValue(f,e,o);if(ut={d:"moveDay",m:"moveMonth",w:"moveWeek",y:"moveYear"},g={yesterday:"-1d",today:"+0d",tomorrow:"+1d"},f in g&&(f=g[f]),/^[\-+]\d+[dmwy]([\s,]+[\-+]\d+[dmwy])*$/i.test(f)){for(l=f.match(/([\-+]\d+)([dmwy])/gi),f=new Date,c=0;c<l.length;c++)y=l[c].match(/([\-+]\d+)([dmwy])/i),it=Number(y[1]),rt=ut[y[2].toLowerCase()],f=u.prototype[rt](f,it);return u.prototype._zero_utc_time(f)}l=f&&f.match(this.nonpunctuation)||[];var p,b,k={},nt=["yyyy","yy","M","MM","m","mm","d","dd"],a={yyyy:function(n,t){return n.setUTCFullYear(h?et(t,h):t)},m:function(n,t){if(isNaN(n))return n;for(t-=1;t<0;)t+=12;for(t%=12,n.setUTCMonth(t);n.getUTCMonth()!==t;)n.setUTCDate(n.getUTCDate()-1);return n},d:function(n,t){return n.setUTCDate(t)}};if(a.yy=a.yyyy,a.M=a.MM=a.mm=a.m,a.dd=a.d,f=s(),v=e.parts.slice(),l.length!==v.length&&(v=n(v).filter(function(t,i){return n.inArray(i,nt)!==-1}).toArray()),l.length===v.length){for(c=0,ft=v.length;c<ft;c++){if(p=parseInt(l[c],10),y=v[c],isNaN(p))switch(y){case"MM":b=n(r[o].months).filter(tt);p=n.inArray(b[0],r[o].months)+1;break;case"M":b=n(r[o].monthsShort).filter(tt);p=n.inArray(b[0],r[o].monthsShort)+1}k[y]=p}for(c=0;c<nt.length;c++)w=nt[c],w in k&&!isNaN(k[w])&&(d=new Date(f),a[w](d,k[w]),isNaN(d)||(f=d))}return f},formatDate:function(t,u,f){var e;if(!t)return"";if("string"==typeof u&&(u=i.parseFormat(u)),u.toDisplay)return u.toDisplay(t,u,f);e={d:t.getUTCDate(),D:r[f].daysShort[t.getUTCDay()],DD:r[f].days[t.getUTCDay()],m:t.getUTCMonth()+1,M:r[f].monthsShort[t.getUTCMonth()],MM:r[f].months[t.getUTCMonth()],yy:t.getUTCFullYear().toString().substring(2),yyyy:t.getUTCFullYear()};e.dd=(e.d<10?"0":"")+e.d;e.mm=(e.m<10?"0":"")+e.m;t=[];for(var s=n.extend([],u.separators),o=0,h=u.parts.length;o<=h;o++)s.length&&t.push(s.shift()),t.push(e[u.parts[o]]);return t.join("")},headTemplate:'<thead><tr><th colspan="7" class="datepicker-title"><\/th><\/tr><tr><th class="prev">'+e.templates.leftArrow+'<\/th><th colspan="5" class="datepicker-switch"><\/th><th class="next">'+e.templates.rightArrow+"<\/th><\/tr><\/thead>",contTemplate:'<tbody><tr><td colspan="7"><\/td><\/tr><\/tbody>',footTemplate:'<tfoot><tr><th colspan="7" class="today"><\/th><\/tr><tr><th colspan="7" class="clear"><\/th><\/tr><\/tfoot>'};i.template='<div class="datepicker"><div class="datepicker-days"><table class="table-condensed">'+i.headTemplate+"<tbody><\/tbody>"+i.footTemplate+'<\/table><\/div><div class="datepicker-months"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-years"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-decades"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+'<\/table><\/div><div class="datepicker-centuries"><table class="table-condensed">'+i.headTemplate+i.contTemplate+i.footTemplate+"<\/table><\/div><\/div>";n.fn.datepicker.DPGlobal=i;n.fn.datepicker.noConflict=function(){return n.fn.datepicker=v,this};n.fn.datepicker.version="1.7.1";n.fn.datepicker.deprecated=function(n){var t=window.console;t&&t.warn&&t.warn("DEPRECATED: "+n)};n(document).on("focus.datepicker.data-api click.datepicker.data-api",'[data-provide="datepicker"]',function(t){var i=n(this);i.data("datepicker")||(t.preventDefault(),o.call(i,"show"))});n(function(){o.call(n('[data-provide="datepicker-inline"]'))})});!function(n,t){"function"==typeof define&&define.amd?define(["jquery"],function(n){return t(n)}):"object"==typeof exports?module.exports=t(require("jquery")):t(jQuery)}(this,function(n){!function(n){"use strict";function i(t){return n.each([{re:/[\xC0-\xC6]/g,ch:"A"},{re:/[\xE0-\xE6]/g,ch:"a"},{re:/[\xC8-\xCB]/g,ch:"E"},{re:/[\xE8-\xEB]/g,ch:"e"},{re:/[\xCC-\xCF]/g,ch:"I"},{re:/[\xEC-\xEF]/g,ch:"i"},{re:/[\xD2-\xD6]/g,ch:"O"},{re:/[\xF2-\xF6]/g,ch:"o"},{re:/[\xD9-\xDC]/g,ch:"U"},{re:/[\xF9-\xFC]/g,ch:"u"},{re:/[\xC7-\xE7]/g,ch:"c"},{re:/[\xD1]/g,ch:"N"},{re:/[\xF1]/g,ch:"n"}],function(){t=t.replace(this.re,this.ch)}),t}function r(n){var i={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#x27;","`":"&#x60;"},r="(?:"+Object.keys(i).join("|")+")",u=new RegExp(r),f=new RegExp(r,"g"),t=null==n?"":""+n;return u.test(t)?t.replace(f,function(n){return i[n]}):t}function u(i,r){var e=arguments,u=i,s=r,f,o;return[].shift.apply(e),o=this.each(function(){var o=n(this),i,r,h,c;if(o.is("select")){if(i=o.data("selectpicker"),r="object"==typeof u&&u,i){if(r)for(h in r)r.hasOwnProperty(h)&&(i.options[h]=r[h])}else c=n.extend({},t.DEFAULTS,n.fn.selectpicker.defaults||{},o.data(),r),c.template=n.extend({},t.DEFAULTS.template,n.fn.selectpicker.defaults?n.fn.selectpicker.defaults.template:{},o.data().template,r.template),o.data("selectpicker",i=new t(this,c,s));"string"==typeof u&&(f=i[u]instanceof Function?i[u].apply(i,e):i.options[u])}}),"undefined"!=typeof f?f:o}var t,f;String.prototype.includes||!function(){var i={}.toString,n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),r="".indexOf,t=function(n){var u,s;if(null==this)throw new TypeError;if(u=String(this),n&&"[object RegExp]"==i.call(n))throw new TypeError;var f=u.length,e=String(n),h=e.length,o=arguments.length>1?arguments[1]:void 0,t=o?Number(o):0;return t!=t&&(t=0),s=Math.min(Math.max(t,0),f),h+s>f?!1:-1!=r.call(u,e,t)};n?n(String.prototype,"includes",{value:t,configurable:!0,writable:!0}):String.prototype.includes=t}();String.prototype.startsWith||!function(){var n=function(){try{var n={},t=Object.defineProperty,i=t(n,n,n)&&t}catch(r){}return i}(),i={}.toString,t=function(n){var u,f,r;if(null==this)throw new TypeError;if(u=String(this),n&&"[object RegExp]"==i.call(n))throw new TypeError;var e=u.length,o=String(n),s=o.length,h=arguments.length>1?arguments[1]:void 0,t=h?Number(h):0;if(t!=t&&(t=0),f=Math.min(Math.max(t,0),e),s+f>e)return!1;for(r=-1;++r<s;)if(u.charCodeAt(f+r)!=o.charCodeAt(r))return!1;return!0};n?n(String.prototype,"startsWith",{value:t,configurable:!0,writable:!0}):String.prototype.startsWith=t}();Object.keys||(Object.keys=function(n,t,i){i=[];for(t in n)i.hasOwnProperty.call(n,t)&&i.push(t);return i});n.fn.triggerNative=function(n){var t,i=this[0];i.dispatchEvent?("function"==typeof Event?t=new Event(n,{bubbles:!0}):(t=document.createEvent("Event"),t.initEvent(n,!0,!1)),i.dispatchEvent(t)):(i.fireEvent&&(t=document.createEventObject(),t.eventType=n,i.fireEvent("on"+n,t)),this.trigger(n))};n.expr[":"].icontains=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.text()).toUpperCase();return f.includes(r[3].toUpperCase())};n.expr[":"].ibegins=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.text()).toUpperCase();return f.startsWith(r[3].toUpperCase())};n.expr[":"].aicontains=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.data("normalizedText")||u.text()).toUpperCase();return f.includes(r[3].toUpperCase())};n.expr[":"].aibegins=function(t,i,r){var u=n(t),f=(u.data("tokens")||u.data("normalizedText")||u.text()).toUpperCase();return f.startsWith(r[3].toUpperCase())};t=function(i,r,u){u&&(u.stopPropagation(),u.preventDefault());this.$element=n(i);this.$newElement=null;this.$button=null;this.$menu=null;this.$lis=null;this.options=r;null===this.options.title&&(this.options.title=this.$element.attr("title"));this.val=t.prototype.val;this.render=t.prototype.render;this.refresh=t.prototype.refresh;this.setStyle=t.prototype.setStyle;this.selectAll=t.prototype.selectAll;this.deselectAll=t.prototype.deselectAll;this.destroy=t.prototype.destroy;this.remove=t.prototype.remove;this.show=t.prototype.show;this.hide=t.prototype.hide;this.init()};t.VERSION="1.10.0";t.DEFAULTS={noneSelectedText:"Nothing selected",noneResultsText:"No results matched {0}",countSelectedText:function(n){return 1==n?"{0} item selected":"{0} items selected"},maxOptionsText:function(n,t){return[1==n?"Limit reached ({n} item max)":"Limit reached ({n} items max)",1==t?"Group limit reached ({n} item max)":"Group limit reached ({n} items max)"]},selectAllText:"Select All",deselectAllText:"Deselect All",doneButton:!1,doneButtonText:"Close",multipleSeparator:", ",styleBase:"btn",style:"btn-default",size:"auto",title:null,selectedTextFormat:"values",width:!1,container:!1,hideDisabled:!1,showSubtext:!1,showIcon:!0,showContent:!0,dropupAuto:!0,header:!1,liveSearch:!1,liveSearchPlaceholder:null,liveSearchNormalize:!1,liveSearchStyle:"contains",actionsBox:!1,iconBase:"glyphicon",tickIcon:"glyphicon-ok",showTick:!1,template:{caret:'<span class="caret"><\/span>'},maxOptions:!1,mobile:!1,selectOnTab:!1,dropdownAlignRight:!1};t.prototype={constructor:t,init:function(){var t=this,i=this.$element.attr("id");this.$element.addClass("bs-select-hidden");this.liObj={};this.multiple=this.$element.prop("multiple");this.autofocus=this.$element.prop("autofocus");this.$newElement=this.createView();this.$element.after(this.$newElement).appendTo(this.$newElement);this.$button=this.$newElement.children("button");this.$menu=this.$newElement.children(".dropdown-menu");this.$menuInner=this.$menu.children(".inner");this.$searchbox=this.$menu.find("input");this.$element.removeClass("bs-select-hidden");this.options.dropdownAlignRight&&this.$menu.addClass("dropdown-menu-right");"undefined"!=typeof i&&(this.$button.attr("data-id",i),n('label[for="'+i+'"]').click(function(n){n.preventDefault();t.$button.focus()}));this.checkDisabled();this.clickListener();this.options.liveSearch&&this.liveSearchListener();this.render();this.setStyle();this.setWidth();this.options.container&&this.selectPosition();this.$menu.data("this",this);this.$newElement.data("this",this);this.options.mobile&&this.mobile();this.$newElement.on({"hide.bs.dropdown":function(n){t.$element.trigger("hide.bs.select",n)},"hidden.bs.dropdown":function(n){t.$element.trigger("hidden.bs.select",n)},"show.bs.dropdown":function(n){t.$element.trigger("show.bs.select",n)},"shown.bs.dropdown":function(n){t.$element.trigger("shown.bs.select",n)}});t.$element[0].hasAttribute("required")&&this.$element.on("invalid",function(){t.$button.addClass("bs-invalid").focus();t.$element.on({"focus.bs.select":function(){t.$button.focus();t.$element.off("focus.bs.select")},"shown.bs.select":function(){t.$element.val(t.$element.val()).off("shown.bs.select")},"rendered.bs.select":function(){this.validity.valid&&t.$button.removeClass("bs-invalid");t.$element.off("rendered.bs.select")}})});setTimeout(function(){t.$element.trigger("loaded.bs.select")})},createDropdown:function(){var t=this.multiple||this.options.showTick?" show-tick":"",i=this.$element.parent().hasClass("input-group")?" input-group-btn":"",u=this.autofocus?" autofocus":"",f=this.options.header?'<div class="popover-title"><button type="button" class="close" aria-hidden="true">&times;<\/button>'+this.options.header+"<\/div>":"",e=this.options.liveSearch?'<div class="bs-searchbox"><input type="text" class="form-control" autocomplete="off"'+(null===this.options.liveSearchPlaceholder?"":' placeholder="'+r(this.options.liveSearchPlaceholder)+'"')+"><\/div>":"",o=this.multiple&&this.options.actionsBox?'<div class="bs-actionsbox"><div class="btn-group btn-group-sm btn-block"><button type="button" class="actions-btn bs-select-all btn btn-default">'+this.options.selectAllText+'<\/button><button type="button" class="actions-btn bs-deselect-all btn btn-default">'+this.options.deselectAllText+"<\/button><\/div><\/div>":"",s=this.multiple&&this.options.doneButton?'<div class="bs-donebutton"><div class="btn-group btn-block"><button type="button" class="btn btn-sm btn-default">'+this.options.doneButtonText+"<\/button><\/div><\/div>":"",h='<div class="btn-group bootstrap-select'+t+i+'"><button type="button" class="'+this.options.styleBase+' dropdown-toggle" data-toggle="dropdown"'+u+'><span class="filter-option pull-left"><\/span>&nbsp;<span class="bs-caret">'+this.options.template.caret+'<\/span><\/button><div class="dropdown-menu open">'+f+e+o+'<ul class="dropdown-menu inner" role="menu"><\/ul>'+s+"<\/div><\/div>";return n(h)},createView:function(){var n=this.createDropdown(),t=this.createLi();return n.find("ul")[0].innerHTML=t,n},reloadLi:function(){this.destroyLi();var n=this.createLi();this.$menuInner[0].innerHTML=n},destroyLi:function(){this.$menu.find("li").remove()},createLi:function(){var u=this,t=[],o=0,s=document.createElement("option"),f=-1,e=function(n,t,i,r){return"<li"+("undefined"!=typeof i&""!==i?' class="'+i+'"':"")+("undefined"!=typeof t&null!==t?' data-original-index="'+t+'"':"")+("undefined"!=typeof r&null!==r?'data-optgroup="'+r+'"':"")+">"+n+"<\/li>"},c=function(n,t,f,e){return'<a tabindex="0"'+("undefined"!=typeof t?' class="'+t+'"':"")+("undefined"!=typeof f?' style="'+f+'"':"")+(u.options.liveSearchNormalize?' data-normalized-text="'+i(r(n))+'"':"")+("undefined"!=typeof e||null!==e?' data-tokens="'+e+'"':"")+">"+n+'<span class="'+u.options.iconBase+" "+u.options.tickIcon+' check-mark"><\/span><\/a>'},h;return!this.options.title||this.multiple||(f--,this.$element.find(".bs-title-option").length)||(h=this.$element[0],s.className="bs-title-option",s.appendChild(document.createTextNode(this.options.title)),s.value="",h.insertBefore(s,h.firstChild),void 0===n(h.options[h.selectedIndex]).attr("selected")&&(s.selected=!0)),this.$element.find("option").each(function(i){var r=n(this),w;if(f++,!r.hasClass("bs-title-option")){var l=this.className||"",a=this.style.cssText,s=r.data("content")?r.data("content"):r.html(),v=r.data("tokens")?r.data("tokens"):null,k="undefined"!=typeof r.data("subtext")?'<small class="text-muted">'+r.data("subtext")+"<\/small>":"",h="undefined"!=typeof r.data("icon")?'<span class="'+u.options.iconBase+" "+r.data("icon")+'"><\/span> ':"",y="OPTGROUP"===this.parentNode.tagName,p=this.disabled||y&&this.parentNode.disabled;if(""!==h&&p&&(h="<span>"+h+"<\/span>"),u.options.hideDisabled&&p&&!y)return void f--;if(r.data("content")||(s=h+'<span class="text">'+s+k+"<\/span>"),y&&r.data("divider")!==!0){if(w=" "+this.parentNode.className||"",0===r.index()){o+=1;var b=this.parentNode.label,d="undefined"!=typeof r.parent().data("subtext")?'<small class="text-muted">'+r.parent().data("subtext")+"<\/small>":"",g=r.parent().data("icon")?'<span class="'+u.options.iconBase+" "+r.parent().data("icon")+'"><\/span> ':"";b=g+'<span class="text">'+b+d+"<\/span>";0!==i&&t.length>0&&(f++,t.push(e("",null,"divider",o+"div")));f++;t.push(e(b,null,"dropdown-header"+w,o))}if(u.options.hideDisabled&&p)return void f--;t.push(e(c(s,"opt "+l+w,a,v),i,"",o))}else r.data("divider")===!0?t.push(e("",i,"divider")):r.data("hidden")===!0?t.push(e(c(s,l,a,v),i,"hidden is-hidden")):(this.previousElementSibling&&"OPTGROUP"===this.previousElementSibling.tagName&&(f++,t.push(e("",null,"divider",o+"div"))),t.push(e(c(s,l,a,v),i)));u.liObj[i]=f}}),this.multiple||0!==this.$element.find("option:selected").length||this.options.title||this.$element.find("option").eq(0).prop("selected",!0).attr("selected","selected"),t.join("")},findLis:function(){return null==this.$lis&&(this.$lis=this.$menu.find("li")),this.$lis},render:function(t){var o,i=this,r,u,f,e,s;t!==!1&&this.$element.find("option").each(function(n){var t=i.findLis().eq(i.liObj[n]);i.setDisabled(n,this.disabled||"OPTGROUP"===this.parentNode.tagName&&this.parentNode.disabled,t);i.setSelected(n,this.selected,t)});this.tabIndex();r=this.$element.find("option").map(function(){if(this.selected){if(i.options.hideDisabled&&(this.disabled||"OPTGROUP"===this.parentNode.tagName&&this.parentNode.disabled))return;var r,t=n(this),u=t.data("icon")&&i.options.showIcon?'<i class="'+i.options.iconBase+" "+t.data("icon")+'"><\/i> ':"";return r=i.options.showSubtext&&t.data("subtext")&&!i.multiple?' <small class="text-muted">'+t.data("subtext")+"<\/small>":"","undefined"!=typeof t.attr("title")?t.attr("title"):t.data("content")&&i.options.showContent?t.data("content"):u+t.html()+r}}).toArray();u=this.multiple?r.join(this.options.multipleSeparator):r[0];this.multiple&&this.options.selectedTextFormat.indexOf("count")>-1&&(f=this.options.selectedTextFormat.split(">"),(f.length>1&&r.length>f[1]||1==f.length&&r.length>=2)&&(o=this.options.hideDisabled?", [disabled]":"",e=this.$element.find("option").not('[data-divider="true"], [data-hidden="true"]'+o).length,s="function"==typeof this.options.countSelectedText?this.options.countSelectedText(r.length,e):this.options.countSelectedText,u=s.replace("{0}",r.length.toString()).replace("{1}",e.toString())));void 0==this.options.title&&(this.options.title=this.$element.attr("title"));"static"==this.options.selectedTextFormat&&(u=this.options.title);u||(u="undefined"!=typeof this.options.title?this.options.title:this.options.noneSelectedText);this.$button.attr("title",n.trim(u.replace(/<[^>]*>?/g,"")));this.$button.children(".filter-option").html(u);this.$element.trigger("rendered.bs.select")},setStyle:function(n,t){this.$element.attr("class")&&this.$newElement.addClass(this.$element.attr("class").replace(/selectpicker|mobile-device|bs-select-hidden|validate\[.*\]/gi,""));var i=n?n:this.options.style;"add"==t?this.$button.addClass(i):"remove"==t?this.$button.removeClass(i):(this.$button.removeClass(this.options.style),this.$button.addClass(i))},liHeight:function(t){var y;if(t||this.options.size!==!1&&!this.sizeInfo){var e=document.createElement("div"),r=document.createElement("div"),o=document.createElement("ul"),l=document.createElement("li"),p=document.createElement("li"),a=document.createElement("a"),v=document.createElement("span"),s=this.options.header&&this.$menu.find(".popover-title").length>0?this.$menu.find(".popover-title")[0].cloneNode(!0):null,u=this.options.liveSearch?document.createElement("div"):null,h=this.options.actionsBox&&this.multiple&&this.$menu.find(".bs-actionsbox").length>0?this.$menu.find(".bs-actionsbox")[0].cloneNode(!0):null,c=this.options.doneButton&&this.multiple&&this.$menu.find(".bs-donebutton").length>0?this.$menu.find(".bs-donebutton")[0].cloneNode(!0):null;(v.className="text",e.className=this.$menu[0].parentNode.className+" open",r.className="dropdown-menu open",o.className="dropdown-menu inner",l.className="divider",v.appendChild(document.createTextNode("Inner text")),a.appendChild(v),p.appendChild(a),o.appendChild(p),o.appendChild(l),s&&r.appendChild(s),u)&&(y=document.createElement("span"),u.className="bs-searchbox",y.className="form-control",u.appendChild(y),r.appendChild(u));h&&r.appendChild(h);r.appendChild(o);c&&r.appendChild(c);e.appendChild(r);document.body.appendChild(e);var b=a.offsetHeight,k=s?s.offsetHeight:0,d=u?u.offsetHeight:0,g=h?h.offsetHeight:0,nt=c?c.offsetHeight:0,tt=n(l).outerHeight(!0),i="function"==typeof getComputedStyle?getComputedStyle(r):!1,f=i?null:n(r),w=parseInt(i?i.paddingTop:f.css("paddingTop"))+parseInt(i?i.paddingBottom:f.css("paddingBottom"))+parseInt(i?i.borderTopWidth:f.css("borderTopWidth"))+parseInt(i?i.borderBottomWidth:f.css("borderBottomWidth")),it=w+parseInt(i?i.marginTop:f.css("marginTop"))+parseInt(i?i.marginBottom:f.css("marginBottom"))+2;document.body.removeChild(e);this.sizeInfo={liHeight:b,headerHeight:k,searchHeight:d,actionsHeight:g,doneButtonHeight:nt,dividerHeight:tt,menuPadding:w,menuExtras:it}}},setSize:function(){var h,d,g;if(this.findLis(),this.liHeight(),this.options.header&&this.$menu.css("padding-top",0),this.options.size!==!1){var i,u,f,o,r=this,t=this.$menu,p=this.$menuInner,c=n(window),nt=this.$newElement[0].offsetHeight,w=this.sizeInfo.liHeight,l=this.sizeInfo.headerHeight,a=this.sizeInfo.searchHeight,v=this.sizeInfo.actionsHeight,y=this.sizeInfo.doneButtonHeight,tt=this.sizeInfo.dividerHeight,s=this.sizeInfo.menuPadding,e=this.sizeInfo.menuExtras,b=this.options.hideDisabled?".disabled":"",k=function(){f=r.$newElement.offset().top-c.scrollTop();o=c.height()-f-nt};(k(),"auto"===this.options.size)?(h=function(){var h,b=function(t,i){return function(r){return i?r.classList?r.classList.contains(t):n(r).hasClass(t):!(r.classList?r.classList.contains(t):n(r).hasClass(t))}},d=r.$menuInner[0].getElementsByTagName("li"),c=Array.prototype.filter?Array.prototype.filter.call(d,b("hidden",!1)):r.$lis.not(".hidden"),g=Array.prototype.filter?Array.prototype.filter.call(c,b("dropdown-header",!0)):c.filter(".dropdown-header");k();i=o-e;r.options.container?(t.data("height")||t.data("height",t.height()),u=t.data("height")):u=t.height();r.options.dropupAuto&&r.$newElement.toggleClass("dropup",f>o&&u>i-e);r.$newElement.hasClass("dropup")&&(i=f-e);h=c.length+g.length>3?3*w+e-2:0;t.css({"max-height":i+"px",overflow:"hidden","min-height":h+l+a+v+y+"px"});p.css({"max-height":i-l-a-v-y-s+"px","overflow-y":"auto","min-height":Math.max(h-s,0)+"px"})},h(),this.$searchbox.off("input.getSize propertychange.getSize").on("input.getSize propertychange.getSize",h),c.off("resize.getSize scroll.getSize").on("resize.getSize scroll.getSize",h)):this.options.size&&"auto"!=this.options.size&&this.$lis.not(b).length>this.options.size&&(d=this.$lis.not(".divider").not(b).children().slice(0,this.options.size).last().parent().index(),g=this.$lis.slice(0,d+1).filter(".divider").length,i=w*this.options.size+g*tt+s,r.options.container?(t.data("height")||t.data("height",t.height()),u=t.data("height")):u=t.height(),r.options.dropupAuto&&this.$newElement.toggleClass("dropup",f>o&&u>i-e),t.css({"max-height":i+l+a+v+y+"px",overflow:"hidden","min-height":""}),p.css({"max-height":i-s+"px","overflow-y":"auto","min-height":""}))}},setWidth:function(){if("auto"===this.options.width){this.$menu.css("min-width","0");var n=this.$menu.parent().clone().appendTo("body"),t=this.options.container?this.$newElement.clone().appendTo("body"):n,i=n.children(".dropdown-menu").outerWidth(),r=t.css("width","auto").children("button").outerWidth();n.remove();t.remove();this.$newElement.css("width",Math.max(i,r)+"px")}else"fit"===this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width","").addClass("fit-width")):this.options.width?(this.$menu.css("min-width",""),this.$newElement.css("width",this.options.width)):(this.$menu.css("min-width",""),this.$newElement.css("width",""));this.$newElement.hasClass("fit-width")&&"fit"!==this.options.width&&this.$newElement.removeClass("fit-width")},selectPosition:function(){this.$bsContainer=n('<div class="bs-container" />');var i,r,t=this,u=function(n){t.$bsContainer.addClass(n.attr("class").replace(/form-control|fit-width/gi,"")).toggleClass("dropup",n.hasClass("dropup"));i=n.offset();r=n.hasClass("dropup")?0:n[0].offsetHeight;t.$bsContainer.css({top:i.top+r,left:i.left,width:n[0].offsetWidth})};this.$button.on("click",function(){var i=n(this);t.isDisabled()||(u(t.$newElement),t.$bsContainer.appendTo(t.options.container).toggleClass("open",!i.hasClass("open")).append(t.$menu))});n(window).on("resize scroll",function(){u(t.$newElement)});this.$element.on("hide.bs.select",function(){t.$menu.data("height",t.$menu.height());t.$bsContainer.detach()})},setSelected:function(n,t,i){i||(i=this.findLis().eq(this.liObj[n]));i.toggleClass("selected",t)},setDisabled:function(n,t,i){i||(i=this.findLis().eq(this.liObj[n]));t?i.addClass("disabled").children("a").attr("href","#").attr("tabindex",-1):i.removeClass("disabled").children("a").removeAttr("href").attr("tabindex",0)},isDisabled:function(){return this.$element[0].disabled},checkDisabled:function(){var n=this;this.isDisabled()?(this.$newElement.addClass("disabled"),this.$button.addClass("disabled").attr("tabindex",-1)):(this.$button.hasClass("disabled")&&(this.$newElement.removeClass("disabled"),this.$button.removeClass("disabled")),-1!=this.$button.attr("tabindex")||this.$element.data("tabindex")||this.$button.removeAttr("tabindex"));this.$button.click(function(){return!n.isDisabled()})},tabIndex:function(){this.$element.data("tabindex")!==this.$element.attr("tabindex")&&-98!==this.$element.attr("tabindex")&&"-98"!==this.$element.attr("tabindex")&&(this.$element.data("tabindex",this.$element.attr("tabindex")),this.$button.attr("tabindex",this.$element.data("tabindex")));this.$element.attr("tabindex",-98)},clickListener:function(){var t=this,i=n(document);this.$newElement.on("touchstart.dropdown",".dropdown-menu",function(n){n.stopPropagation()});i.data("spaceSelect",!1);this.$button.on("keyup",function(n){/(32)/.test(n.keyCode.toString(10))&&i.data("spaceSelect")&&(n.preventDefault(),i.data("spaceSelect",!1))});this.$button.on("click",function(){t.setSize()});this.$element.on("shown.bs.select",function(){var i,n;if(t.options.liveSearch||t.multiple){if(!t.multiple){if(i=t.liObj[t.$element[0].selectedIndex],"number"!=typeof i||t.options.size===!1)return;n=t.$lis.eq(i)[0].offsetTop-t.$menuInner[0].offsetTop;n=n-t.$menuInner[0].offsetHeight/2+t.sizeInfo.liHeight/2;t.$menuInner[0].scrollTop=n}}else t.$menuInner.find(".selected a").focus()});this.$menuInner.on("click","li a",function(i){var s=n(this),e=s.parent().data("originalIndex"),k=t.$element.val(),d=t.$element.prop("selectedIndex"),v,y,b;if(t.multiple&&i.stopPropagation(),i.preventDefault(),!t.isDisabled()&&!s.parent().hasClass("disabled")){var h=t.$element.find("option"),f=h.eq(e),l=f.prop("selected"),a=f.parent("optgroup"),r=t.options.maxOptions,u=a.data("maxOptions")||!1;if(t.multiple){if((f.prop("selected",!l),t.setSelected(e,!l),s.blur(),r!==!1||u!==!1)&&(v=r<h.filter(":selected").length,y=u<a.find("option:selected").length,r&&v||u&&y))if(r&&1==r)h.prop("selected",!1),f.prop("selected",!0),t.$menuInner.find(".selected").removeClass("selected"),t.setSelected(e,!0);else if(u&&1==u)a.find("option:selected").prop("selected",!1),f.prop("selected",!0),b=s.parent().data("optgroup"),t.$menuInner.find('[data-optgroup="'+b+'"]').removeClass("selected"),t.setSelected(e,!0);else{var o="function"==typeof t.options.maxOptionsText?t.options.maxOptionsText(r,u):t.options.maxOptionsText,p=o[0].replace("{n}",r),w=o[1].replace("{n}",u),c=n('<div class="notify"><\/div>');o[2]&&(p=p.replace("{var}",o[2][r>1?0:1]),w=w.replace("{var}",o[2][u>1?0:1]));f.prop("selected",!1);t.$menu.append(c);r&&v&&(c.append(n("<div>"+p+"<\/div>")),t.$element.trigger("maxReached.bs.select"));u&&y&&(c.append(n("<div>"+w+"<\/div>")),t.$element.trigger("maxReachedGrp.bs.select"));setTimeout(function(){t.setSelected(e,!1)},10);c.delay(750).fadeOut(300,function(){n(this).remove()})}}else h.prop("selected",!1),f.prop("selected",!0),t.$menuInner.find(".selected").removeClass("selected"),t.setSelected(e,!0);t.multiple?t.options.liveSearch&&t.$searchbox.focus():t.$button.focus();(k!=t.$element.val()&&t.multiple||d!=t.$element.prop("selectedIndex")&&!t.multiple)&&t.$element.trigger("changed.bs.select",[e,f.prop("selected"),l]).triggerNative("change")}});this.$menu.on("click","li.disabled a, .popover-title, .popover-title :not(.close)",function(i){i.currentTarget==this&&(i.preventDefault(),i.stopPropagation(),t.options.liveSearch&&!n(i.target).hasClass("close")?t.$searchbox.focus():t.$button.focus())});this.$menuInner.on("click",".divider, .dropdown-header",function(n){n.preventDefault();n.stopPropagation();t.options.liveSearch?t.$searchbox.focus():t.$button.focus()});this.$menu.on("click",".popover-title .close",function(){t.$button.click()});this.$searchbox.on("click",function(n){n.stopPropagation()});this.$menu.on("click",".actions-btn",function(i){t.options.liveSearch?t.$searchbox.focus():t.$button.focus();i.preventDefault();i.stopPropagation();n(this).hasClass("bs-select-all")?t.selectAll():t.deselectAll()});this.$element.change(function(){t.render(!1)})},liveSearchListener:function(){var t=this,u=n('<li class="no-results"><\/li>');this.$button.on("click.dropdown.data-api touchstart.dropdown.data-api",function(){t.$menuInner.find(".active").removeClass("active");t.$searchbox.val()&&(t.$searchbox.val(""),t.$lis.not(".is-hidden").removeClass("hidden"),u.parent().length&&u.remove());t.multiple||t.$menuInner.find(".selected").addClass("active");setTimeout(function(){t.$searchbox.focus()},10)});this.$searchbox.on("click.dropdown.data-api focus.dropdown.data-api touchend.dropdown.data-api",function(n){n.stopPropagation()});this.$searchbox.on("input propertychange",function(){var f,e;t.$searchbox.val()?(f=t.$lis.not(".is-hidden").removeClass("hidden").children("a"),f=t.options.liveSearchNormalize?f.not(":a"+t._searchStyle()+'("'+i(t.$searchbox.val())+'")'):f.not(":"+t._searchStyle()+'("'+t.$searchbox.val()+'")'),f.parent().addClass("hidden"),t.$lis.filter(".dropdown-header").each(function(){var i=n(this),r=i.data("optgroup");0===t.$lis.filter("[data-optgroup="+r+"]").not(i).not(".hidden").length&&(i.addClass("hidden"),t.$lis.filter("[data-optgroup="+r+"div]").addClass("hidden"))}),e=t.$lis.not(".hidden"),e.each(function(t){var i=n(this);i.hasClass("divider")&&(i.index()===e.first().index()||i.index()===e.last().index()||e.eq(t+1).hasClass("divider"))&&i.addClass("hidden")}),t.$lis.not(".hidden, .no-results").length?u.parent().length&&u.remove():(u.parent().length&&u.remove(),u.html(t.options.noneResultsText.replace("{0}",'"'+r(t.$searchbox.val())+'"')).show(),t.$menuInner.append(u))):(t.$lis.not(".is-hidden").removeClass("hidden"),u.parent().length&&u.remove());t.$lis.filter(".active").removeClass("active");t.$searchbox.val()&&t.$lis.not(".hidden, .divider, .dropdown-header").eq(0).addClass("active").children("a").focus();n(this).focus()})},_searchStyle:function(){return{begins:"ibegins",startsWith:"ibegins"}[this.options.liveSearchStyle]||"icontains"},val:function(n){return"undefined"!=typeof n?(this.$element.val(n),this.render(),this.$element):this.$element.val()},changeAll:function(t){var f;"undefined"==typeof t&&(t=!0);this.findLis();for(var e=this.$element.find("option"),u=this.$lis.not(".divider, .dropdown-header, .disabled, .hidden").toggleClass("selected",t),o=u.length,i=[],r=0;o>r;r++)f=u[r].getAttribute("data-original-index"),i[i.length]=e.eq(f)[0];n(i).prop("selected",t);this.render(!1);this.$element.trigger("changed.bs.select").triggerNative("change")},selectAll:function(){return this.changeAll(!0)},deselectAll:function(){return this.changeAll(!1)},toggle:function(n){n=n||window.event;n&&n.stopPropagation();this.$button.trigger("click")},keydown:function(t){var u,f,h,l,a,p,w,k,s,e=n(this),v=e.is("input")?e.parent().parent():e.parent(),r=v.data("this"),c=":not(.disabled, .hidden, .dropdown-header, .divider)",b={32:" ",48:"0",49:"1",50:"2",51:"3",52:"4",53:"5",54:"6",55:"7",56:"8",57:"9",59:";",65:"a",66:"b",67:"c",68:"d",69:"e",70:"f",71:"g",72:"h",73:"i",74:"j",75:"k",76:"l",77:"m",78:"n",79:"o",80:"p",81:"q",82:"r",83:"s",84:"t",85:"u",86:"v",87:"w",88:"x",89:"y",90:"z",96:"0",97:"1",98:"2",99:"3",100:"4",101:"5",102:"6",103:"7",104:"8",105:"9"},o,g,y,d;(r.options.liveSearch&&(v=e.parent().parent()),r.options.container&&(v=r.$menu),u=n("[role=menu] li",v),s=r.$newElement.hasClass("open"),!s&&(t.keyCode>=48&&t.keyCode<=57||t.keyCode>=96&&t.keyCode<=105||t.keyCode>=65&&t.keyCode<=90)&&(r.options.container?r.$button.trigger("click"):(r.setSize(),r.$menu.parent().addClass("open"),s=!0),r.$searchbox.focus()),r.options.liveSearch&&(/(^9$|27)/.test(t.keyCode.toString(10))&&s&&0===r.$menu.find(".active").length&&(t.preventDefault(),r.$menu.parent().removeClass("open"),r.options.container&&r.$newElement.removeClass("open"),r.$button.focus()),u=n("[role=menu] li"+c,v),e.val()||/(38|40)/.test(t.keyCode.toString(10))||0===u.filter(".active").length&&(u=r.$menuInner.find("li"),u=r.options.liveSearchNormalize?u.filter(":a"+r._searchStyle()+"("+i(b[t.keyCode])+")"):u.filter(":"+r._searchStyle()+"("+b[t.keyCode]+")"))),u.length)&&(/(38|40)/.test(t.keyCode.toString(10))?(f=u.index(u.find("a").filter(":focus").parent()),l=u.filter(c).first().index(),a=u.filter(c).last().index(),h=u.eq(f).nextAll(c).eq(0).index(),p=u.eq(f).prevAll(c).eq(0).index(),w=u.eq(h).prevAll(c).eq(0).index(),r.options.liveSearch&&(u.each(function(t){n(this).hasClass("disabled")||n(this).data("index",t)}),f=u.index(u.filter(".active")),l=u.first().data("index"),a=u.last().data("index"),h=u.eq(f).nextAll().eq(0).data("index"),p=u.eq(f).prevAll().eq(0).data("index"),w=u.eq(h).prevAll().eq(0).data("index")),k=e.data("prevIndex"),38==t.keyCode?(r.options.liveSearch&&f--,f!=w&&f>p&&(f=p),l>f&&(f=l),f==k&&(f=a)):40==t.keyCode&&(r.options.liveSearch&&f++,-1==f&&(f=0),f!=w&&h>f&&(f=h),f>a&&(f=a),f==k&&(f=l)),e.data("prevIndex",f),r.options.liveSearch?(t.preventDefault(),e.hasClass("dropdown-toggle")||(u.removeClass("active").eq(f).addClass("active").children("a").focus(),e.focus())):u.eq(f).children("a").focus()):e.is("input")||(y=[],u.each(function(){n(this).hasClass("disabled")||n.trim(n(this).children("a").text().toLowerCase()).substring(0,1)==b[t.keyCode]&&y.push(n(this).index())}),o=n(document).data("keycount"),o++,n(document).data("keycount",o),g=n.trim(n(":focus").text().toLowerCase()).substring(0,1),g!=b[t.keyCode]?(o=1,n(document).data("keycount",o)):o>=y.length&&(n(document).data("keycount",0),o>y.length&&(o=1)),u.eq(y[o-1]).children("a").focus()),(/(13|32)/.test(t.keyCode.toString(10))||/(^9$)/.test(t.keyCode.toString(10))&&r.options.selectOnTab)&&s&&((/(32)/.test(t.keyCode.toString(10))||t.preventDefault(),r.options.liveSearch)?/(32)/.test(t.keyCode.toString(10))||(r.$menuInner.find(".active a").click(),e.focus()):(d=n(":focus"),d.click(),d.focus(),t.preventDefault(),n(document).data("spaceSelect",!0)),n(document).data("keycount",0)),(/(^9$|27)/.test(t.keyCode.toString(10))&&s&&(r.multiple||r.options.liveSearch)||/(27)/.test(t.keyCode.toString(10))&&!s)&&(r.$menu.parent().removeClass("open"),r.options.container&&r.$newElement.removeClass("open"),r.$button.focus()))},mobile:function(){this.$element.addClass("mobile-device")},refresh:function(){this.$lis=null;this.liObj={};this.reloadLi();this.render();this.checkDisabled();this.liHeight(!0);this.setStyle();this.setWidth();this.$lis&&this.$searchbox.trigger("propertychange");this.$element.trigger("refreshed.bs.select")},hide:function(){this.$newElement.hide()},show:function(){this.$newElement.show()},remove:function(){this.$newElement.remove();this.$element.remove()},destroy:function(){this.$newElement.before(this.$element).remove();this.$bsContainer?this.$bsContainer.remove():this.$menu.remove();this.$element.off(".bs.select").removeData("selectpicker").removeClass("bs-select-hidden selectpicker")}};f=n.fn.selectpicker;n.fn.selectpicker=u;n.fn.selectpicker.Constructor=t;n.fn.selectpicker.noConflict=function(){return n.fn.selectpicker=f,this};n(document).data("keycount",0).on("keydown.bs.select",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',t.prototype.keydown).on("focusin.modal",'.bootstrap-select [data-toggle=dropdown], .bootstrap-select [role="menu"], .bs-searchbox input',function(n){n.stopPropagation()});n(window).on("load.bs.select.data-api",function(){n(".selectpicker").each(function(){var t=n(this);u.call(t,t.data())})})}(n)});!function(n){return"function"==typeof define&&define.amd?define(["jquery"],function(t){return n(t,window,document)}):"object"==typeof exports?module.exports=n(require("jquery"),window,document):n(jQuery,window,document)}(function(n,t,i){"use strict";var a,u,o,s,v,y,ct,lt,p,w,b,k,f,d,it,h,r,at,g,e,rt,c,ut,ft,et,ot,nt,tt,st,ht,l;ut={paneClass:"nano-pane",sliderClass:"nano-slider",contentClass:"nano-content",enabledClass:"has-scrollbar",flashedClass:"flashed",activeClass:"active",iOSNativeScrolling:!1,preventPageScrolling:!1,disableResize:!1,alwaysVisible:!1,flashDelay:1500,sliderMinHeight:20,sliderMaxHeight:null,documentContext:null,windowContext:null};at="scrollbar";r="scroll";p="mousedown";w="mouseenter";b="mousemove";f="mousewheel";k="mouseup";h="resize";v="drag";y="enter";e="up";it="panedown";o="DOMMouseScroll";s="down";rt="wheel";ct="keydown";lt="keyup";g="touchmove";a="Microsoft Internet Explorer"===t.navigator.appName&&/msie 7./i.test(t.navigator.appVersion)&&t.ActiveXObject;u=null;nt=t.requestAnimationFrame;c=t.cancelAnimationFrame;st=i.createElement("div").style;l=function(){var n,r,f,t,i,u;for(t=["t","webkitT","MozT","msT","OT"],n=i=0,u=t.length;u>i;n=++i)if(f=t[n],r=t[n]+"ransform",r in st)return t[n].substr(0,t[n].length-1);return!1}();ht=function(n){return l===!1?!1:""===l?n:l+n.charAt(0).toUpperCase()+n.substr(1)};tt=ht("transform");et=tt!==!1;ft=function(){var n,t,u;return n=i.createElement("div"),t=n.style,t.position="absolute",t.width="100px",t.height="100px",t.overflow=r,t.top="-9999px",i.body.appendChild(n),u=n.offsetWidth-n.clientWidth,i.body.removeChild(n),u};ot=function(){var r,i,n;return i=t.navigator.userAgent,(r=/(?=.+Mac OS X)(?=.+Firefox)/.test(i))?(n=/Firefox\/\d{2}\./.exec(i),n&&(n=n[0].replace(/\D+/g,"")),r&&+n>23):!1};d=function(){function l(r,f){this.el=r;this.options=f;u||(u=ft());this.$el=n(this.el);this.doc=n(this.options.documentContext||i);this.win=n(this.options.windowContext||t);this.body=this.doc.find("body");this.$content=this.$el.children("."+this.options.contentClass);this.$content.attr("tabindex",this.options.tabIndex||0);this.content=this.$content[0];this.previousPosition=0;this.options.iOSNativeScrolling&&null!=this.el.style.WebkitOverflowScrolling?this.nativeScrolling():this.generate();this.createEvents();this.addEvents();this.reset()}return l.prototype.preventScrolling=function(n,t){if(this.isActive)if(n.type===o)(t===s&&n.originalEvent.detail>0||t===e&&n.originalEvent.detail<0)&&n.preventDefault();else if(n.type===f){if(!n.originalEvent||!n.originalEvent.wheelDelta)return;(t===s&&n.originalEvent.wheelDelta<0||t===e&&n.originalEvent.wheelDelta>0)&&n.preventDefault()}},l.prototype.nativeScrolling=function(){this.$content.css({WebkitOverflowScrolling:"touch"});this.iOSNativeScrolling=!0;this.isActive=!0},l.prototype.updateScrollValues=function(){var n,t;n=this.content;this.maxScrollTop=n.scrollHeight-n.clientHeight;this.prevScrollTop=this.contentScrollTop||0;this.contentScrollTop=n.scrollTop;t=this.contentScrollTop>this.previousPosition?"down":this.contentScrollTop<this.previousPosition?"up":"same";this.previousPosition=this.contentScrollTop;"same"!==t&&this.$el.trigger("update",{position:this.contentScrollTop,maximum:this.maxScrollTop,direction:t});this.iOSNativeScrolling||(this.maxSliderTop=this.paneHeight-this.sliderHeight,this.sliderTop=0===this.maxScrollTop?0:this.contentScrollTop*this.maxSliderTop/this.maxScrollTop)},l.prototype.setOnScrollStyles=function(){var n;et?(n={},n[tt]="translate(0, "+this.sliderTop+"px)"):n={top:this.sliderTop};nt?(c&&this.scrollRAF&&c(this.scrollRAF),this.scrollRAF=nt(function(t){return function(){return t.scrollRAF=null,t.slider.css(n)}}(this))):this.slider.css(n)},l.prototype.createEvents=function(){this.events={down:function(n){return function(t){return n.isBeingDragged=!0,n.offsetY=t.pageY-n.slider.offset().top,n.slider.is(t.target)||(n.offsetY=0),n.pane.addClass(n.options.activeClass),n.doc.bind(b,n.events[v]).bind(k,n.events[e]),n.body.bind(w,n.events[y]),!1}}(this),drag:function(n){return function(t){return n.sliderY=t.pageY-n.$el.offset().top-n.paneTop-(n.offsetY||.5*n.sliderHeight),n.scroll(),n.contentScrollTop>=n.maxScrollTop&&n.prevScrollTop!==n.maxScrollTop?n.$el.trigger("scrollend"):0===n.contentScrollTop&&0!==n.prevScrollTop&&n.$el.trigger("scrolltop"),!1}}(this),up:function(n){return function(){return n.isBeingDragged=!1,n.pane.removeClass(n.options.activeClass),n.doc.unbind(b,n.events[v]).unbind(k,n.events[e]),n.body.unbind(w,n.events[y]),!1}}(this),resize:function(n){return function(){n.reset()}}(this),panedown:function(n){return function(t){return n.sliderY=(t.offsetY||t.originalEvent.layerY)-.5*n.sliderHeight,n.scroll(),n.events.down(t),!1}}(this),scroll:function(n){return function(t){n.updateScrollValues();n.isBeingDragged||(n.iOSNativeScrolling||(n.sliderY=n.sliderTop,n.setOnScrollStyles()),null!=t&&(n.contentScrollTop>=n.maxScrollTop?(n.options.preventPageScrolling&&n.preventScrolling(t,s),n.prevScrollTop!==n.maxScrollTop&&n.$el.trigger("scrollend")):0===n.contentScrollTop&&(n.options.preventPageScrolling&&n.preventScrolling(t,e),0!==n.prevScrollTop&&n.$el.trigger("scrolltop"))))}}(this),wheel:function(n){return function(t){var i;if(null!=t)return i=t.delta||t.wheelDelta||t.originalEvent&&t.originalEvent.wheelDelta||-t.detail||t.originalEvent&&-t.originalEvent.detail,i&&(n.sliderY+=-i/3),n.scroll(),!1}}(this),enter:function(n){return function(t){var i;if(n.isBeingDragged)return 1!==(t.buttons||t.which)?(i=n.events)[e].apply(i,arguments):void 0}}(this)}},l.prototype.addEvents=function(){var n;this.removeEvents();n=this.events;this.options.disableResize||this.win.bind(h,n[h]);this.iOSNativeScrolling||(this.slider.bind(p,n[s]),this.pane.bind(p,n[it]).bind(""+f+" "+o,n[rt]));this.$content.bind(""+r+" "+f+" "+o+" "+g,n[r])},l.prototype.removeEvents=function(){var n;n=this.events;this.win.unbind(h,n[h]);this.iOSNativeScrolling||(this.slider.unbind(),this.pane.unbind());this.$content.unbind(""+r+" "+f+" "+o+" "+g,n[r])},l.prototype.generate=function(){var s,i,e,n,o,r,f;return n=this.options,r=n.paneClass,f=n.sliderClass,s=n.contentClass,(o=this.$el.children("."+r)).length||o.children("."+f).length||this.$el.append('<div class="'+r+'"><div class="'+f+'" /><\/div>'),this.pane=this.$el.children("."+r),this.slider=this.pane.find("."+f),0===u&&ot()?(e=t.getComputedStyle(this.content,null).getPropertyValue("padding-right").replace(/[^0-9.]+/g,""),i={right:-14,paddingRight:+e+14}):u&&(i={right:-u},this.$el.addClass(n.enabledClass)),null!=i&&this.$content.css(i),this},l.prototype.restore=function(){this.stopped=!1;this.iOSNativeScrolling||this.pane.show();this.addEvents()},l.prototype.reset=function(){var n,s,h,c,i,y,f,e,l,o,v,t;return this.iOSNativeScrolling?void(this.contentHeight=this.content.scrollHeight):(this.$el.find("."+this.options.paneClass).length||this.generate().stop(),this.stopped&&this.restore(),n=this.content,c=n.style,i=c.overflowY,a&&this.$content.css({height:this.$content.height()}),s=n.scrollHeight+u,o=parseInt(this.$el.css("max-height"),10),o>0&&(this.$el.height(""),this.$el.height(n.scrollHeight>o?o:n.scrollHeight)),f=this.pane.outerHeight(!1),l=parseInt(this.pane.css("top"),10),y=parseInt(this.pane.css("bottom"),10),e=f+l+y,t=Math.round(e/s*f),t<this.options.sliderMinHeight?t=this.options.sliderMinHeight:null!=this.options.sliderMaxHeight&&t>this.options.sliderMaxHeight&&(t=this.options.sliderMaxHeight),i===r&&c.overflowX!==r&&(t+=u),this.maxSliderTop=e-t,this.contentHeight=s,this.paneHeight=f,this.paneOuterHeight=e,this.sliderHeight=t,this.paneTop=l,this.slider.height(t),this.events.scroll(),this.pane.show(),this.isActive=!0,n.scrollHeight===n.clientHeight||this.pane.outerHeight(!0)>=n.scrollHeight&&i!==r?(this.pane.hide(),this.isActive=!1):this.el.clientHeight===n.scrollHeight&&i===r?this.slider.hide():this.slider.show(),this.pane.css({opacity:this.options.alwaysVisible?1:"",visibility:this.options.alwaysVisible?"visible":""}),h=this.$content.css("position"),("static"===h||"relative"===h)&&(v=parseInt(this.$content.css("right"),10),v&&this.$content.css({right:"",marginRight:v})),this)},l.prototype.scroll=function(){if(this.isActive)return(this.sliderY=Math.max(0,this.sliderY),this.sliderY=Math.min(this.maxSliderTop,this.sliderY),this.$content.scrollTop(this.maxScrollTop*this.sliderY/this.maxSliderTop),this.iOSNativeScrolling||(this.updateScrollValues(),this.setOnScrollStyles()),this)},l.prototype.scrollBottom=function(n){if(this.isActive)return(this.$content.scrollTop(this.contentHeight-this.$content.height()-n).trigger(f),this.stop().restore(),this)},l.prototype.scrollTop=function(n){if(this.isActive)return(this.$content.scrollTop(+n).trigger(f),this.stop().restore(),this)},l.prototype.scrollTo=function(n){if(this.isActive)return(this.scrollTop(this.$el.find(n).get(0).offsetTop),this)},l.prototype.stop=function(){return c&&this.scrollRAF&&(c(this.scrollRAF),this.scrollRAF=null),this.stopped=!0,this.removeEvents(),this.iOSNativeScrolling||this.pane.hide(),this},l.prototype.destroy=function(){return this.stopped||this.stop(),!this.iOSNativeScrolling&&this.pane.length&&this.pane.remove(),a&&this.$content.height(""),this.$content.removeAttr("tabindex"),this.$el.hasClass(this.options.enabledClass)&&(this.$el.removeClass(this.options.enabledClass),this.$content.css({right:""})),this},l.prototype.flash=function(){if(!this.iOSNativeScrolling&&this.isActive)return(this.reset(),this.pane.addClass(this.options.flashedClass),setTimeout(function(n){return function(){n.pane.removeClass(n.options.flashedClass)}}(this),this.options.flashDelay),this)},l}();n.fn.nanoScroller=function(t){return this.each(function(){var r,i;if((i=this.nanoscroller)||(r=n.extend({},ut,t),this.nanoscroller=i=new d(this,r)),t&&"object"==typeof t){if(n.extend(i.options,t),null!=t.scrollBottom)return i.scrollBottom(t.scrollBottom);if(null!=t.scrollTop)return i.scrollTop(t.scrollTop);if(t.scrollTo)return i.scrollTo(t.scrollTo);if("bottom"===t.scroll)return i.scrollBottom(0);if("top"===t.scroll)return i.scrollTop(0);if(t.scroll&&t.scroll instanceof n)return i.scrollTo(t.scroll);if(t.stop)return i.stop();if(t.destroy)return i.destroy();if(t.flash)return i.flash()}return i.reset()})};n.fn.nanoScroller.Constructor=d}),function(n){n.fn.tipr=function(t){var i=n.extend({speed:200,mode:"bottom"},t);return this.each(function(){var t=".tipr_container_"+i.mode;n(this).hover(function(){var r=i.mode,u;n(this).attr("data-mode")&&(r=n(this).attr("data-mode"),t=".tipr_container_"+r);u='<div class="tipr_container_'+r+'"><div class="tipr_point_'+r+'"><div class="tipr_content">'+n(this).attr("data-tip")+"<\/div><\/div><\/div>";n(this).append(u);var f=n(t).outerWidth(),e=n(this).width(),o=e/2-f/2;n(t).css("margin-left",o+"px");n(this).removeAttr("title alt");n(t).fadeIn(i.speed)},function(){n(t).remove()})})}}(jQuery);$(document).ready(function(){customCheckbox("keeplogin[]");customGreyCheckbox("period");customGreyCheckbox("display");customCheckbox("RememberMe");customBlackRoundedCheckbox("OutOfStockOnly");customWhiteRoundedCheckbox("RequestCallBack");customWhiteRoundedCheckbox("RequestCallBackMobile");customBlackRoundedCheckbox("IsActive");customBlackRoundedCheckboxForClass("custom-round-checkbox");customRadioButtonForClass("custom-radio");$(".nano").nanoScroller();$(".tip").tipr();$(".datepicker").datepicker({format:"dd/mm/yyyy"})});$(function(){$(window).bind("resize load",function(){$(this).width()<=757?$(".support-faqs .panel-collapse").removeClass("in"):$(".support-faqs .panel-collapse").addClass("in")})});$(function(){function n(){$(this).css("display","block");var n=$(this).find(".modal-dialog"),t=($(window).height()-n.height())/2,i=parseInt(n.css("marginBottom"),10);t<i&&(t=i);n.css("margin-top",t)}$(window).bind("load resize",function(){_winHeight=$(window).height();$(".nano").css({height:_winHeight/1.4})});$(document).on("show.bs.modal",".modal",n);$(window).on("resize",function(){$(".modal:visible").each(n)})});jQuery(document).ready(function(n){n(".clickable-row").click(function(){window.document.location=n(this).data("href")})});var page=0,inCallback=!1,hasReachedEndOfInfiniteScroll=!1,isMobileProductView=!1,scrollHandler=function(){hasReachedEndOfInfiniteScroll==!1&&$(window).scrollTop()>=($(document).height()-$(window).height())*.7&&loadMoreToInfiniteScrollTable(moreRowsUrl)};(function(){var a,w,b,i,h,r,u,c,n,f,l,e,o,v,y,p,s={}.hasOwnProperty,t=function(n,t){function r(){this.constructor=n}for(var i in t)s.call(t,i)&&(n[i]=t[i]);return r.prototype=t.prototype,n.prototype=new r,n.__super__=t.prototype,n};!function(){var i,r,n,f,e,t,u;for(u=["ms","moz","webkit","o"],n=0,e=u.length;e>n&&(t=u[n],!window.requestAnimationFrame);n++)window.requestAnimationFrame=window[t+"RequestAnimationFrame"],window.cancelAnimationFrame=window[t+"CancelAnimationFrame"]||window[t+"CancelRequestAnimationFrame"];return i=null,f=0,r={},requestAnimationFrame?window.cancelAnimationFrame?void 0:(i=window.requestAnimationFrame,window.requestAnimationFrame=function(n,t){var u;return u=++f,i(function(){if(!r[u])return n()},t),u},window.cancelAnimationFrame=function(n){return r[n]=!0}):(window.requestAnimationFrame=function(n){var t,r,u,i;return t=(new Date).getTime(),i=Math.max(0,16-(t-u)),r=window.setTimeout(function(){return n(t+i)},i),u=t+i,r},window.cancelAnimationFrame=function(n){return clearTimeout(n)})}();String.prototype.hashCode=function(){var u,n,r,t,i;if(n=0,0===this.length)return n;for(r=t=0,i=this.length;i>=0?i>t:t>i;r=i>=0?++t:--t)u=this.charCodeAt(r),n=(n<<5)-n+u,n&=n;return n};y=function(n){var t,i;for(t=Math.floor(n/3600),i=Math.floor((n-3600*t)/60),n-=3600*t+60*i,n+="",i+="";i.length<2;)i="0"+i;for(;n.length<2;)n="0"+n;return t=t?t+":":"",t+i+":"+n};o=function(n){return l(n.toFixed(0))};p=function(n,t){var i,r;for(i in t)s.call(t,i)&&(r=t[i],n[i]=r);return n};v=function(n,t){var i,r,u;r={};for(i in n)s.call(n,i)&&(u=n[i],r[i]=u);for(i in t)s.call(t,i)&&(u=t[i],r[i]=u);return r};l=function(n){var r,i,t,u;for(n+="",i=n.split("."),t=i[0],u="",i.length>1&&(u="."+i[1]),r=/(\d+)(\d{3})/;r.test(t);)t=t.replace(r,"$1,$2");return t+u};e=function(n){return"#"===n.charAt(0)?n.substring(1,7):n};f=function(){function n(n,t){null==n&&(n=!0);this.clear=null!=t?t:!0;n&&AnimationUpdater.add(this)}return n.prototype.animationSpeed=32,n.prototype.update=function(n){var t;return null==n&&(n=!1),n||this.displayedValue!==this.value?(this.ctx&&this.clear&&this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),t=this.value-this.displayedValue,this.displayedValue=Math.abs(t/this.animationSpeed)<=.001?this.value:this.displayedValue+t/this.animationSpeed,this.render(),!0):!1},n}();h=function(i){function r(){return r.__super__.constructor.apply(this,arguments)}return t(r,i),r.prototype.displayScale=1,r.prototype.setTextField=function(t){return this.textField=t instanceof n?t:new n(t)},r.prototype.setMinValue=function(n,t){var f,i,e,r,u;if(this.minValue=n,null==t&&(t=!0),t){for(this.displayedValue=this.minValue,r=this.gp||[],u=[],i=0,e=r.length;e>i;i++)f=r[i],u.push(f.displayedValue=this.minValue);return u}},r.prototype.setOptions=function(n){return null==n&&(n=null),this.options=v(this.options,n),this.textField&&(this.textField.el.style.fontSize=n.fontSize+"px"),this.options.angle>.5&&(this.gauge.options.angle=.5),this.configDisplayScale(),this},r.prototype.configDisplayScale=function(){var i,r,n,u,t;return u=this.displayScale,this.options.highDpiSupport===!1?delete this.displayScale:(r=window.devicePixelRatio||1,i=this.ctx.webkitBackingStorePixelRatio||this.ctx.mozBackingStorePixelRatio||this.ctx.msBackingStorePixelRatio||this.ctx.oBackingStorePixelRatio||this.ctx.backingStorePixelRatio||1,this.displayScale=r/i),this.displayScale!==u&&(t=this.canvas.G__width||this.canvas.width,n=this.canvas.G__height||this.canvas.height,this.canvas.width=t*this.displayScale,this.canvas.height=n*this.displayScale,this.canvas.style.width=t+"px",this.canvas.style.height=n+"px",this.canvas.G__width=t,this.canvas.G__height=n),this},r}(f);n=function(){function n(n){this.el=n}return n.prototype.render=function(n){return this.el.innerHTML=o(n.displayedValue)},n}();a=function(n){function i(n,t){this.elem=n;this.text=null!=t?t:!1;this.value=1*this.elem.innerHTML;this.text&&(this.value=0)}return t(i,n),i.prototype.displayedValue=0,i.prototype.value=0,i.prototype.setVal=function(n){return this.value=1*n},i.prototype.render=function(){var n;return n=this.text?y(this.displayedValue.toFixed(0)):l(o(this.displayedValue)),this.elem.innerHTML=n},i}(f);w={create:function(n){var r,t,u,i;for(i=[],t=0,u=n.length;u>t;t++)r=n[t],i.push(new a(r));return i}};c=function(n){function i(n){this.gauge=n;this.ctx=this.gauge.ctx;this.canvas=this.gauge.canvas;i.__super__.constructor.call(this,!1,!1);this.setOptions()}return t(i,n),i.prototype.displayedValue=0,i.prototype.value=0,i.prototype.options={strokeWidth:.035,length:.1,color:"#000000"},i.prototype.setOptions=function(n){return null==n&&(n=null),p(this.options,n),this.length=this.canvas.height*this.options.length,this.strokeWidth=this.canvas.height*this.options.strokeWidth,this.maxValue=this.gauge.maxValue,this.minValue=this.gauge.minValue,this.displayedValue=this.gauge.minValue,this.animationSpeed=this.gauge.animationSpeed,this.options.angle=this.gauge.options.angle},i.prototype.render=function(){var n,t,i,r,u,f,e,o,s;return n=this.gauge.getAngle.call(this,this.displayedValue),t=this.canvas.width/2,i=.9*this.canvas.height,o=Math.round(t+this.length*Math.cos(n)),s=Math.round(i+this.length*Math.sin(n)),f=Math.round(t+this.strokeWidth*Math.cos(n-Math.PI/2)),e=Math.round(i+this.strokeWidth*Math.sin(n-Math.PI/2)),r=Math.round(t+this.strokeWidth*Math.cos(n+Math.PI/2)),u=Math.round(i+this.strokeWidth*Math.sin(n+Math.PI/2)),this.ctx.fillStyle=this.options.color,this.ctx.beginPath(),this.ctx.arc(t,i,this.strokeWidth,0,2*Math.PI,!0),this.ctx.fill(),this.ctx.beginPath(),this.ctx.moveTo(f,e),this.ctx.lineTo(o,s),this.ctx.lineTo(r,u),this.ctx.fill()},i}(f);b=function(){function n(n){this.elem=n}return n.prototype.updateValues=function(n){return this.value=n[0],this.maxValue=n[1],this.avgValue=n[2],this.render()},n.prototype.render=function(){var n,t;return this.textField&&this.textField.text(o(this.value)),0===this.maxValue&&(this.maxValue=2*this.avgValue),t=this.value/this.maxValue*100,n=this.avgValue/this.maxValue*100,$(".bar-value",this.elem).css({width:t+"%"}),$(".typical-value",this.elem).css({width:n+"%"})},n}();u=function(n){function i(n){this.canvas=n;i.__super__.constructor.call(this);this.percentColors=null;"undefined"!=typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas));this.ctx=this.canvas.getContext("2d");this.gp=[new c(this)];this.setOptions();this.render()}return t(i,n),i.prototype.elem=null,i.prototype.value=[20],i.prototype.maxValue=80,i.prototype.minValue=0,i.prototype.displayedAngle=0,i.prototype.displayedValue=0,i.prototype.lineWidth=40,i.prototype.paddingBottom=.1,i.prototype.percentColors=null,i.prototype.options={colorStart:"#6fadcf",colorStop:void 0,gradientType:0,strokeColor:"#e0e0e0",pointer:{length:.8,strokeWidth:.035},angle:.15,lineWidth:.44,fontSize:40,limitMax:!1},i.prototype.setOptions=function(n){var r,t,f,u;for(null==n&&(n=null),i.__super__.setOptions.call(this,n),this.configPercentColors(),this.lineWidth=this.canvas.height*(1-this.paddingBottom)*this.options.lineWidth,this.radius=this.canvas.height*(1-this.paddingBottom)-this.lineWidth,this.ctx.clearRect(0,0,this.canvas.width,this.canvas.height),this.render(),u=this.gp,t=0,f=u.length;f>t;t++)r=u[t],r.setOptions(this.options.pointer),r.render();return this},i.prototype.configPercentColors=function(){var u,f,n,t,i,r,o;if(this.percentColors=null,void 0!==this.options.percentColors){for(this.percentColors=[],r=[],n=t=0,i=this.options.percentColors.length-1;i>=0?i>=t:t>=i;n=i>=0?++t:--t)o=parseInt(e(this.options.percentColors[n][1]).substring(0,2),16),f=parseInt(e(this.options.percentColors[n][1]).substring(2,4),16),u=parseInt(e(this.options.percentColors[n][1]).substring(4,6),16),r.push(this.percentColors[n]={pct:this.options.percentColors[n][0],color:{r:o,g:f,b:u}});return r}},i.prototype.set=function(n){var t,i,u,o,f,r,e;if(this.displayedValue=this.minValue,n instanceof Array||(n=[n]),n.length>this.gp.length)for(t=i=0,r=n.length-this.gp.length;r>=0?r>i:i>r;t=r>=0?++i:--i)this.gp.push(new c(this));for(t=0,f=!1,u=0,o=n.length;o>u;u++)e=n[u],e>this.maxValue&&(this.maxValue=1.1*this.value,f=!0),this.gp[t].value=e,this.gp[t++].setOptions({maxValue:this.maxValue,angle:this.options.angle});return this.value=n[n.length-1],f&&this.options.limitMax?void 0:AnimationUpdater.run()},i.prototype.getAngle=function(n){return(1+this.options.angle)*Math.PI+(n-this.minValue)/(this.maxValue-this.minValue)*(1-2*this.options.angle)*Math.PI},i.prototype.getColorForPercentage=function(n,t){var i,e,u,o,r,s,f;if(0===n)i=this.percentColors[0].color;else for(i=this.percentColors[this.percentColors.length-1].color,u=o=0,s=this.percentColors.length-1;s>=0?s>=o:o>=s;u=s>=0?++o:--o)if(n<=this.percentColors[u].pct){t===!0?(f=this.percentColors[u-1],e=this.percentColors[u],r=(n-f.pct)/(e.pct-f.pct),i={r:Math.floor(f.color.r*(1-r)+e.color.r*r),g:Math.floor(f.color.g*(1-r)+e.color.g*r),b:Math.floor(f.color.b*(1-r)+e.color.b*r)}):i=this.percentColors[u].color;break}return"rgb("+[i.r,i.g,i.b].join(",")+")"},i.prototype.getColorForValue=function(n,t){var i;return i=(n-this.minValue)/(this.maxValue-this.minValue),this.getColorForPercentage(i,t)},i.prototype.render=function(){var u,n,o,i,r,s,f,e,t;if(void 0===this.options.fixedPercentage){for(t=this.canvas.width/2,i=this.canvas.height*(1-this.paddingBottom),u=this.getAngle(this.displayedValue),this.textField&&this.textField.render(this),this.ctx.lineCap="butt",void 0!==this.options.customFillStyle?n=this.options.customFillStyle(this):null!==this.percentColors?n=this.getColorForValue(this.displayedValue,!0):void 0!==this.options.colorStop?(n=0===this.options.gradientType?this.ctx.createRadialGradient(t,i,9,t,i,70):this.ctx.createLinearGradient(0,0,t,0),n.addColorStop(0,this.options.colorStart),n.addColorStop(1,this.options.colorStop)):n=this.options.colorStart,this.ctx.strokeStyle=n,this.ctx.beginPath(),this.ctx.arc(t,i,this.radius,(1+this.options.angle)*Math.PI,u,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.stroke(),this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(t,i,this.radius,u,(2-this.options.angle)*Math.PI,!1),this.ctx.stroke(),f=this.gp,e=[],r=0,s=f.length;s>r;r++)o=f[r],e.push(o.update(!0));return e}for(t=this.canvas.width/2,i=this.canvas.height*(1-this.paddingBottom),u=this.getAngle(this.options.fixedPercentageValue),this.textField&&this.textField.render(this),this.ctx.lineCap="butt",void 0!==this.options.customFillStyle?n=this.options.customFillStyle(this):null!==this.percentColors?n=this.getColorForValue(this.displayedValue,!0):void 0!==this.options.colorStop?(n=0===this.options.gradientType?this.ctx.createRadialGradient(t,i,9,t,i,70):this.ctx.createLinearGradient(0,0,t,0),n.addColorStop(0,this.options.colorStart),n.addColorStop(1,this.options.colorStop)):n=this.options.colorStart,this.ctx.strokeStyle=n,this.ctx.beginPath(),this.ctx.arc(t,i,this.radius,(1+this.options.angle)*Math.PI,u,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.stroke(),this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(t,i,this.radius,u,(2-this.options.angle)*Math.PI,!1),this.ctx.stroke(),f=this.gp,e=[],r=0,s=f.length;s>r;r++)o=f[r],e.push(o.update(!0));return e},i}(h);i=function(n){function i(n){this.canvas=n;i.__super__.constructor.call(this);"undefined"!=typeof G_vmlCanvasManager&&(this.canvas=window.G_vmlCanvasManager.initElement(this.canvas));this.ctx=this.canvas.getContext("2d");this.setOptions();this.render()}return t(i,n),i.prototype.lineWidth=15,i.prototype.displayedValue=0,i.prototype.value=33,i.prototype.maxValue=80,i.prototype.minValue=0,i.prototype.options={lineWidth:.1,colorStart:"#6f6ea0",colorStop:"#c0c0db",strokeColor:"#eeeeee",shadowColor:"#d5d5d5",angle:.35},i.prototype.getAngle=function(n){return(1-this.options.angle)*Math.PI+(n-this.minValue)/(this.maxValue-this.minValue)*(2+this.options.angle-(1-this.options.angle))*Math.PI},i.prototype.setOptions=function(n){return null==n&&(n=null),i.__super__.setOptions.call(this,n),this.lineWidth=this.canvas.height*this.options.lineWidth,this.radius=this.canvas.height/2-this.lineWidth/2,this},i.prototype.set=function(n){return this.value=n,this.value>this.maxValue&&(this.maxValue=1.1*this.value),AnimationUpdater.run()},i.prototype.render=function(){var r,i,n,u,f,t;return r=this.getAngle(this.displayedValue),t=this.canvas.width/2,n=this.canvas.height/2,this.textField&&this.textField.render(this),i=this.ctx.createRadialGradient(t,n,39,t,n,70),i.addColorStop(0,this.options.colorStart),i.addColorStop(1,this.options.colorStop),u=this.radius-this.lineWidth/2,f=this.radius+this.lineWidth/2,this.ctx.strokeStyle=this.options.strokeColor,this.ctx.beginPath(),this.ctx.arc(t,n,this.radius,(1-this.options.angle)*Math.PI,(2+this.options.angle)*Math.PI,!1),this.ctx.lineWidth=this.lineWidth,this.ctx.lineCap="round",this.ctx.stroke(),this.ctx.strokeStyle=i,this.ctx.beginPath(),this.ctx.arc(t,n,this.radius,(1-this.options.angle)*Math.PI,r,!1),this.ctx.stroke()},i}(h);r=function(n){function i(){return i.__super__.constructor.apply(this,arguments)}return t(i,n),i.prototype.strokeGradient=function(n,t,i,r){var u;return u=this.ctx.createRadialGradient(n,t,i,n,t,r),u.addColorStop(0,this.options.shadowColor),u.addColorStop(.12,this.options._orgStrokeColor),u.addColorStop(.88,this.options._orgStrokeColor),u.addColorStop(1,this.options.shadowColor),u},i.prototype.setOptions=function(n){var t,r,u,f;return null==n&&(n=null),i.__super__.setOptions.call(this,n),f=this.canvas.width/2,t=this.canvas.height/2,r=this.radius-this.lineWidth/2,u=this.radius+this.lineWidth/2,this.options._orgStrokeColor=this.options.strokeColor,this.options.strokeColor=this.strokeGradient(f,t,r,u),this},i}(i);window.AnimationUpdater={elements:[],animId:null,addAll:function(n){var r,t,u,i;for(i=[],t=0,u=n.length;u>t;t++)r=n[t],i.push(AnimationUpdater.elements.push(r));return i},add:function(n){return AnimationUpdater.elements.push(n)},run:function(){var t,r,n,u,i;for(t=!0,i=AnimationUpdater.elements,n=0,u=i.length;u>n;n++)r=i[n],r.update()&&(t=!1);return t?cancelAnimationFrame(AnimationUpdater.animId):AnimationUpdater.animId=requestAnimationFrame(AnimationUpdater.run)}};"function"==typeof define&&null!=window.define.amd?define(function(){return{Gauge:u,Donut:r,BaseDonut:i,TextRenderer:n}}):"undefined"!=typeof module&&null!=module.exports?module.exports={Gauge:u,Donut:r,BaseDonut:i,TextRenderer:n}:(window.Gauge=u,window.Donut=r,window.BaseDonut=i,window.TextRenderer=n)}).call(this),function(n){"use strict";function t(n){return(n||"").toLowerCase()}var i="2.1.6";n.fn.cycle=function(i){var r;return this.length===0&&!n.isReady?(r={s:this.selector,c:this.context},n.fn.cycle.log("requeuing slideshow (dom not ready)"),n(function(){n(r.s,r.c).cycle(i)}),this):this.each(function(){var f,r,h,o,u=n(this),s=n.fn.cycle.log,e;if(!u.data("cycle.opts")){(u.data("cycle-log")===!1||i&&i.log===!1||r&&r.log===!1)&&(s=n.noop);s("--c2 init--");f=u.data();for(e in f)f.hasOwnProperty(e)&&/^cycle[A-Z]+/.test(e)&&(o=f[e],h=e.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),s(h+":",o,"("+typeof o+")"),f[h]=o);r=n.extend({},n.fn.cycle.defaults,f,i||{});r.timeoutId=0;r.paused=r.paused||!1;r.container=u;r._maxZ=r.maxZ;r.API=n.extend({_container:u},n.fn.cycle.API);r.API.log=s;r.API.trigger=function(n,t){return r.container.trigger(n,t),r.API};u.data("cycle.opts",r);u.data("cycle.API",r.API);r.API.trigger("cycle-bootstrap",[r,r.API]);r.API.addInitialSlides();r.API.preInitSlideshow();r.slides.length&&r.API.initSlideshow()}})};n.fn.cycle.API={opts:function(){return this._container.data("cycle.opts")},addInitialSlides:function(){var t=this.opts(),i=t.slides;t.slideCount=0;t.slides=n();i=i.jquery?i:t.container.find(i);t.random&&i.sort(function(){return Math.random()-.5});t.API.add(i)},preInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-pre-initialize",[t]);i=n.fn.cycle.transitions[t.fx];i&&n.isFunction(i.preInit)&&i.preInit(t);t._preInitialized=!0},postInitSlideshow:function(){var t=this.opts(),i;t.API.trigger("cycle-post-initialize",[t]);i=n.fn.cycle.transitions[t.fx];i&&n.isFunction(i.postInit)&&i.postInit(t)},initSlideshow:function(){var t=this.opts(),r=t.container,i;t.API.calcFirstSlide();t.container.css("position")=="static"&&t.container.css("position","relative");n(t.slides[t.currSlide]).css({opacity:1,display:"block",visibility:"visible"});t.API.stackSlides(t.slides[t.currSlide],t.slides[t.nextSlide],!t.reverse);t.pauseOnHover&&(t.pauseOnHover!==!0&&(r=n(t.pauseOnHover)),r.hover(function(){t.API.pause(!0)},function(){t.API.resume(!0)}));t.timeout&&(i=t.API.getSlideOpts(t.currSlide),t.API.queueTransition(i,i.timeout+t.delay));t._initialized=!0;t.API.updateView(!0);t.API.trigger("cycle-initialized",[t]);t.API.postInitSlideshow()},pause:function(t){var i=this.opts(),r=i.API.getSlideOpts(),u=i.hoverPaused||i.paused;t?i.hoverPaused=!0:i.paused=!0;u||(i.container.addClass("cycle-paused"),i.API.trigger("cycle-paused",[i]).log("cycle-paused"),r.timeout&&(clearTimeout(i.timeoutId),i.timeoutId=0,i._remainingTimeout-=n.now()-i._lastQueue,(i._remainingTimeout<0||isNaN(i._remainingTimeout))&&(i._remainingTimeout=undefined)))},resume:function(n){var t=this.opts(),i=!t.hoverPaused&&!t.paused;n?t.hoverPaused=!1:t.paused=!1;i||(t.container.removeClass("cycle-paused"),t.slides.filter(":animated").length===0&&t.API.queueTransition(t.API.getSlideOpts(),t._remainingTimeout),t.API.trigger("cycle-resumed",[t,t._remainingTimeout]).log("cycle-resumed"))},add:function(t,i){var r=this.opts(),e=r.slideCount,u=!1,f;n.type(t)=="string"&&(t=n.trim(t));n(t).each(function(){var u,t=n(this);i?r.container.prepend(t):r.container.append(t);r.slideCount++;u=r.API.buildSlideOpts(t);r.slides=i?n(t).add(r.slides):r.slides.add(t);r.API.initSlide(u,t,--r._maxZ);t.data("cycle.opts",u);r.API.trigger("cycle-slide-added",[r,u,t])});r.API.updateView(!0);u=r._preInitialized&&e<2&&r.slideCount>=1;u&&(r._initialized?r.timeout&&(f=r.slides.length,r.nextSlide=r.reverse?f-1:1,r.timeoutId||r.API.queueTransition(r)):r.API.initSlideshow())},calcFirstSlide:function(){var n=this.opts(),t;t=parseInt(n.startingSlide||0,10);(t>=n.slides.length||t<0)&&(t=0);n.currSlide=t;n.reverse?(n.nextSlide=t-1,n.nextSlide<0&&(n.nextSlide=n.slides.length-1)):(n.nextSlide=t+1,n.nextSlide==n.slides.length&&(n.nextSlide=0))},calcNextSlide:function(){var n=this.opts(),t;n.reverse?(t=n.nextSlide-1<0,n.nextSlide=t?n.slideCount-1:n.nextSlide-1,n.currSlide=t?0:n.nextSlide+1):(t=n.nextSlide+1==n.slides.length,n.nextSlide=t?0:n.nextSlide+1,n.currSlide=t?n.slides.length-1:n.nextSlide-1)},calcTx:function(t,i){var r=t,u;return r._tempFx?u=n.fn.cycle.transitions[r._tempFx]:i&&r.manualFx&&(u=n.fn.cycle.transitions[r.manualFx]),u||(u=n.fn.cycle.transitions[r.fx]),r._tempFx=null,this.opts()._tempFx=null,u||(u=n.fn.cycle.transitions.fade,r.API.log('Transition "'+r.fx+'" not found.  Using fade.')),u},prepareTx:function(n,t){var i=this.opts(),o,f,e,r,u;if(i.slideCount<2){i.timeoutId=0;return}(n&&(!i.busy||i.manualTrump)&&(i.API.stopTransition(),i.busy=!1,clearTimeout(i.timeoutId),i.timeoutId=0),i.busy)||(i.timeoutId!==0||n)&&(f=i.slides[i.currSlide],e=i.slides[i.nextSlide],r=i.API.getSlideOpts(i.nextSlide),u=i.API.calcTx(r,n),i._tx=u,n&&r.manualSpeed!==undefined&&(r.speed=r.manualSpeed),i.nextSlide!=i.currSlide&&(n||!i.paused&&!i.hoverPaused&&i.timeout)?(i.API.trigger("cycle-before",[r,f,e,t]),u.before&&u.before(r,f,e,t),o=function(){(i.busy=!1,i.container.data("cycle.opts"))&&(u.after&&u.after(r,f,e,t),i.API.trigger("cycle-after",[r,f,e,t]),i.API.queueTransition(r),i.API.updateView(!0))},i.busy=!0,u.transition?u.transition(r,f,e,t,o):i.API.doTransition(r,f,e,t,o),i.API.calcNextSlide(),i.API.updateView()):i.API.queueTransition(r))},doTransition:function(t,i,r,u,f){var e=t,o=n(i),s=n(r),h=function(){s.animate(e.animIn||{opacity:1},e.speed,e.easeIn||e.easing,f)};s.css(e.cssBefore||{});o.animate(e.animOut||{},e.speed,e.easeOut||e.easing,function(){o.css(e.cssAfter||{});e.sync||h()});e.sync&&h()},queueTransition:function(t,i){var r=this.opts(),u=i!==undefined?i:t.timeout;if(r.nextSlide===0&&--r.loop==0){r.API.log("terminating; loop=0");r.timeout=0;u?setTimeout(function(){r.API.trigger("cycle-finished",[r])},u):r.API.trigger("cycle-finished",[r]);r.nextSlide=r.currSlide;return}if(r.continueAuto!==undefined&&(r.continueAuto===!1||n.isFunction(r.continueAuto)&&r.continueAuto()===!1)){r.API.log("terminating automatic transitions");r.timeout=0;r.timeoutId&&clearTimeout(r.timeoutId);return}u&&(r._lastQueue=n.now(),i===undefined&&(r._remainingTimeout=t.timeout),r.paused||r.hoverPaused||(r.timeoutId=setTimeout(function(){r.API.prepareTx(!1,!r.reverse)},u)))},stopTransition:function(){var n=this.opts();n.slides.filter(":animated").length&&(n.slides.stop(!1,!0),n.API.trigger("cycle-transition-stopped",[n]));n._tx&&n._tx.stopTransition&&n._tx.stopTransition(n)},advanceSlide:function(n){var t=this.opts();return clearTimeout(t.timeoutId),t.timeoutId=0,t.nextSlide=t.currSlide+n,t.nextSlide<0?t.nextSlide=t.slides.length-1:t.nextSlide>=t.slides.length&&(t.nextSlide=0),t.API.prepareTx(!0,n>=0),!1},buildSlideOpts:function(i){var u=this.opts(),f,o,r=i.data()||{};for(var e in r)r.hasOwnProperty(e)&&/^cycle[A-Z]+/.test(e)&&(f=r[e],o=e.match(/^cycle(.*)/)[1].replace(/^[A-Z]/,t),u.API.log("["+(u.slideCount-1)+"]",o+":",f,"("+typeof f+")"),r[o]=f);r=n.extend({},n.fn.cycle.defaults,u,r);r.slideNum=u.slideCount;try{delete r.API;delete r.slideCount;delete r.currSlide;delete r.nextSlide;delete r.slides}catch(s){}return r},getSlideOpts:function(t){var i=this.opts(),r,u;return t===undefined&&(t=i.currSlide),r=i.slides[t],u=n(r).data("cycle.opts"),n.extend({},i,u)},initSlide:function(t,i,r){var u=this.opts();i.css(t.slideCss||{});r>0&&i.css("zIndex",r);isNaN(t.speed)&&(t.speed=n.fx.speeds[t.speed]||n.fx.speeds._default);t.sync||(t.speed=t.speed/2);i.addClass(u.slideClass)},updateView:function(n,t){var i=this.opts(),r,u;i._initialized&&((r=i.API.getSlideOpts(),u=i.slides[i.currSlide],!n&&t!==!0&&(i.API.trigger("cycle-update-view-before",[i,r,u]),i.updateView<0))||(i.slideActiveClass&&i.slides.removeClass(i.slideActiveClass).eq(i.currSlide).addClass(i.slideActiveClass),n&&i.hideNonActive&&i.slides.filter(":not(."+i.slideActiveClass+")").css("visibility","hidden"),i.updateView===0&&setTimeout(function(){i.API.trigger("cycle-update-view",[i,r,u,n])},r.speed/(i.sync?2:1)),i.updateView!==0&&i.API.trigger("cycle-update-view",[i,r,u,n]),n&&i.API.trigger("cycle-update-view-after",[i,r,u])))},getComponent:function(t){var r=this.opts(),i=r[t];return typeof i=="string"?/^\s*[\>|\+|~]/.test(i)?r.container.find(i):n(i):i.jquery?i:n(i)},stackSlides:function(t,i,r){var u=this.opts(),f,e,o;if(t||(t=u.slides[u.currSlide],i=u.slides[u.nextSlide],r=!u.reverse),n(t).css("zIndex",u.maxZ),e=u.maxZ-2,o=u.slideCount,r){for(f=u.currSlide+1;f<o;f++)n(u.slides[f]).css("zIndex",e--);for(f=0;f<u.currSlide;f++)n(u.slides[f]).css("zIndex",e--)}else{for(f=u.currSlide-1;f>=0;f--)n(u.slides[f]).css("zIndex",e--);for(f=o-1;f>u.currSlide;f--)n(u.slides[f]).css("zIndex",e--)}n(i).css("zIndex",u.maxZ-1)},getSlideIndex:function(n){return this.opts().slides.index(n)}};n.fn.cycle.log=function(){};n.fn.cycle.version=function(){return"Cycle2: "+i};n.fn.cycle.transitions={custom:{},none:{before:function(n,t,i,r){n.API.stackSlides(i,t,r);n.cssBefore={opacity:1,visibility:"visible",display:"block"}}},fade:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u);t.cssBefore=n.extend(f,{opacity:0,visibility:"visible",display:"block"});t.animIn={opacity:1};t.animOut={opacity:0}}},fadeout:{before:function(t,i,r,u){var f=t.API.getSlideOpts(t.nextSlide).slideCss||{};t.API.stackSlides(i,r,u);t.cssBefore=n.extend(f,{opacity:1,visibility:"visible",display:"block"});t.animOut={opacity:0}}},scrollHorz:{before:function(n,t,i,r){n.API.stackSlides(t,i,r);var u=n.container.css("overflow","hidden").width();n.cssBefore={left:r?u:-u,top:0,opacity:1,visibility:"visible",display:"block"};n.cssAfter={zIndex:n._maxZ-2,left:0};n.animIn={left:0};n.animOut={left:r?-u:u}}}};n.fn.cycle.defaults={allowWrap:!0,autoSelector:".cycle-slideshow[data-cycle-auto-init!=false]",delay:0,easing:null,fx:"fade",hideNonActive:!0,loop:0,manualFx:undefined,manualSpeed:undefined,manualTrump:!0,maxZ:100,pauseOnHover:!1,reverse:!1,slideActiveClass:"cycle-slide-active",slideClass:"cycle-slide",slideCss:{position:"absolute",top:0,left:0},slides:".slideBlock",speed:500,startingSlide:0,sync:!0,timeout:4e3,updateView:0};n(document).ready(function(){n(n.fn.cycle.defaults.autoSelector).cycle()})}(jQuery),function(n){"use strict";function t(t,i){var f,o,e,r=i.autoHeight;if(r=="container")o=n(i.slides[i.currSlide]).outerHeight(),i.container.height(o);else if(i._autoHeightRatio)i.container.height(i.container.width()/i._autoHeightRatio);else if(r==="calc"||n.type(r)=="number"&&r>=0){if(e=r==="calc"?u(t,i):r>=i.slides.length?0:r,e==i._sentinelIndex)return;i._sentinelIndex=e;i._sentinel&&i._sentinel.remove();f=n(i.slides[e].cloneNode(!0));f.removeAttr("id name rel").find("[id],[name],[rel]").removeAttr("id name rel");f.css({position:"static",visibility:"hidden",display:"block"}).prependTo(i.container).addClass("cycle-sentinel cycle-slide").removeClass("cycle-slide-active");f.find("*").css("visibility","hidden");i._sentinel=f}}function u(t,i){var r=0,u=-1;return i.slides.each(function(t){var i=n(this).height();i>u&&(u=i,r=t)}),r}function i(t,i,r,u){var f=n(u).outerHeight();i.container.animate({height:f},i.autoHeightSpeed,i.autoHeightEasing)}function r(u,f){f._autoHeightOnResize&&(n(window).off("resize orientationchange",f._autoHeightOnResize),f._autoHeightOnResize=null);f.container.off("cycle-slide-added cycle-slide-removed",t);f.container.off("cycle-destroyed",r);f.container.off("cycle-before",i);f._sentinel&&(f._sentinel.remove(),f._sentinel=null)}n.extend(n.fn.cycle.defaults,{autoHeight:0,autoHeightSpeed:250,autoHeightEasing:null});n(document).on("cycle-initialized",function(u,f){function c(){t(u,f)}var o=f.autoHeight,s=n.type(o),h=null,e;if(s==="string"||s==="number"){f.container.on("cycle-slide-added cycle-slide-removed",t);f.container.on("cycle-destroyed",r);if(o=="container")f.container.on("cycle-before",i);else s==="string"&&/\d+\:\d+/.test(o)&&(e=o.match(/(\d+)\:(\d+)/),e=e[1]/e[2],f._autoHeightRatio=e);if(s!=="number"){f._autoHeightOnResize=function(){clearTimeout(h);h=setTimeout(c,50)};n(window).on("resize orientationchange",f._autoHeightOnResize)}setTimeout(c,30)}})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{caption:"> .cycle-caption",captionTemplate:"{{slideNum}} / {{slideCount}}",overlay:"> .cycle-overlay",overlayTemplate:"<div>{{title}}<\/div><div>{{desc}}<\/div>",captionModule:"caption"});n(document).on("cycle-update-view",function(t,i,r,u){if(i.captionModule==="caption")n.each(["caption","overlay"],function(){var t=this,f=r[t+"Template"],n=i.API.getComponent(t);n.length&&f?(n.html(i.API.tmpl(f,r,i,u)),n.show()):n.hide()})});n(document).on("cycle-destroyed",function(t,i){var r;n.each(["caption","overlay"],function(){var n=this,t=i[n+"Template"];i[n]&&t&&(r=i.API.getComponent("caption"),r.empty())})})}(jQuery),function(n){"use strict";var t=n.fn.cycle;n.fn.cycle=function(i){var r,f,u,e=n.makeArray(arguments);return n.type(i)=="number"?this.cycle("goto",i):n.type(i)=="string"?this.each(function(){var o;if(r=i,u=n(this).data("cycle.opts"),u===undefined){t.log('slideshow must be initialized before sending commands; "'+r+'" ignored');return}if(r=r=="goto"?"jump":r,f=u.API[r],n.isFunction(f))return o=n.makeArray(e),o.shift(),f.apply(u.API,o);t.log("unknown command: ",r)}):t.apply(this,arguments)};n.extend(n.fn.cycle,t);n.extend(t.API,{next:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&((t=n.reverse?-1:1,n.allowWrap===!1&&n.currSlide+t>=n.slideCount)||(n.API.advanceSlide(t),n.API.trigger("cycle-next",[n]).log("cycle-next")))},prev:function(){var n=this.opts(),t;(!n.busy||n.manualTrump)&&((t=n.reverse?1:-1,n.allowWrap===!1&&n.currSlide+t<0)||(n.API.advanceSlide(t),n.API.trigger("cycle-prev",[n]).log("cycle-prev")))},destroy:function(){this.stop();var t=this.opts(),i=n.isFunction(n._data)?n._data:n.noop;clearTimeout(t.timeoutId);t.timeoutId=0;t.API.stop();t.API.trigger("cycle-destroyed",[t]).log("cycle-destroyed");t.container.removeData();i(t.container[0],"parsedAttrs",!1);t.retainStylesOnDestroy||(t.container.removeAttr("style"),t.slides.removeAttr("style"),t.slides.removeClass(t.slideActiveClass));t.slides.each(function(){var r=n(this);r.removeData();r.removeClass(t.slideClass);i(this,"parsedAttrs",!1)})},jump:function(n,t){var u,i=this.opts(),r;if(!i.busy||i.manualTrump){if(r=parseInt(n,10),isNaN(r)||r<0||r>=i.slides.length){i.API.log("goto: invalid slide index: "+r);return}if(r==i.currSlide){i.API.log("goto: skipping, already on slide",r);return}i.nextSlide=r;clearTimeout(i.timeoutId);i.timeoutId=0;i.API.log("goto: ",r," (zero-index)");u=i.currSlide<i.nextSlide;i._tempFx=t;i.API.prepareTx(!0,u)}},stop:function(){var t=this.opts(),i=t.container;clearTimeout(t.timeoutId);t.timeoutId=0;t.API.stopTransition();t.pauseOnHover&&(t.pauseOnHover!==!0&&(i=n(t.pauseOnHover)),i.off("mouseenter mouseleave"));t.API.trigger("cycle-stopped",[t]).log("cycle-stopped")},reinit:function(){var n=this.opts();n.API.destroy();n.container.cycle()},remove:function(t){for(var i=this.opts(),r,u,e=[],o=1,f=0;f<i.slides.length;f++)r=i.slides[f],f==t?u=r:(e.push(r),n(r).data("cycle.opts").slideNum=o,o++);u&&(i.slides=n(e),i.slideCount--,n(u).remove(),t==i.currSlide?i.API.advanceSlide(1):t<i.currSlide?i.currSlide--:i.currSlide++,i.API.trigger("cycle-slide-removed",[i,t,u]).log("cycle-slide-removed"),i.API.updateView())}});n(document).on("click.cycle","[data-cycle-cmd]",function(t){t.preventDefault();var i=n(this),r=i.data("cycle-cmd"),u=i.data("cycle-context")||".cycle-slideshow";n(u).cycle(r,i.data("cycle-arg"))})}(jQuery),function(n){"use strict";function t(t,i){var r;if(t._hashFence){t._hashFence=!1;return}r=window.location.hash.substring(1);t.slides.each(function(u){if(n(this).data("cycle-hash")==r){if(i===!0)t.startingSlide=u;else{var f=t.currSlide<u;t.nextSlide=u;t.API.prepareTx(!0,f)}return!1}})}n(document).on("cycle-pre-initialize",function(i,r){t(r,!0);r._onHashChange=function(){t(r,!1)};n(window).on("hashchange",r._onHashChange)});n(document).on("cycle-update-view",function(n,t,i){i.hash&&"#"+i.hash!=window.location.hash&&(t._hashFence=!0,window.location.hash=i.hash)});n(document).on("cycle-destroyed",function(t,i){i._onHashChange&&n(window).off("hashchange",i._onHashChange)})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{loader:!1});n(document).on("cycle-bootstrap",function(t,i){function u(t,u){function s(t){var o;i.loader=="wait"?(e.push(t),f===0&&(e.sort(h),r.apply(i.API,[e,u]),i.container.removeClass("cycle-loading"))):(o=n(i.slides[i.currSlide]),r.apply(i.API,[t,u]),o.show(),i.container.removeClass("cycle-loading"))}function h(n,t){return n.data("index")-t.data("index")}var e=[],o,f;if(n.type(t)=="string")t=n.trim(t);else if(n.type(t)==="array")for(o=0;o<t.length;o++)t[o]=n(t[o])[0];(t=n(t),f=t.length,f)&&(t.css("visibility","hidden").appendTo("body").each(function(t){function l(){--c==0&&(--f,s(o))}var c=0,o=n(this),h=o.is(".slideBlock")?o:o.find(".slideBlock");if(o.data("index",t),h=h.filter(":not(.cycle-loader-ignore)").filter(':not([src=""])'),!h.length){--f;e.push(o);return}c=h.length;h.each(function(){if(this.complete)l();else n(function(){l()}).on("error",function(){--c==0&&(i.API.log("slide skipped; img not loaded:",this.src),--f==0&&i.loader=="wait"&&r.apply(i.API,[e,u]))})})}),f&&i.container.addClass("cycle-loading"))}var r;i.loader&&(r=i.API.add,i.API.add=u)})}(jQuery),function(n){"use strict";function t(t,i,r){var u,f=t.API.getComponent("pager");f.each(function(){var f=n(this),e;i.pagerTemplate?(e=t.API.tmpl(i.pagerTemplate,i,t,r[0]),u=n(e).appendTo(f)):u=f.children().eq(t.slideCount-1);u.on(t.pagerEvent,function(n){t.pagerEventBubble||n.preventDefault();t.API.page(f,n.currentTarget)})})}function i(n,t){var i=this.opts();if(!i.busy||i.manualTrump){var u=n.children().index(t),r=u,f=i.currSlide<r;i.currSlide!=r&&(i.nextSlide=r,i._tempFx=i.pagerFx,i.API.prepareTx(!0,f),i.API.trigger("cycle-pager-activated",[i,n,t]))}}n.extend(n.fn.cycle.defaults,{pager:"> .cycle-pager",pagerActiveClass:"cycle-pager-active",pagerEvent:"click.cycle",pagerEventBubble:undefined,pagerTemplate:"<span>&bull;<\/span>"});n(document).on("cycle-bootstrap",function(n,i,r){r.buildPagerLink=t});n(document).on("cycle-slide-added",function(n,t,r,u){t.pager&&(t.API.buildPagerLink(t,r,u),t.API.page=i)});n(document).on("cycle-slide-removed",function(t,i,r){if(i.pager){var u=i.API.getComponent("pager");u.each(function(){var t=n(this);n(t.children()[r]).remove()})}});n(document).on("cycle-update-view",function(t,i){var r;i.pager&&(r=i.API.getComponent("pager"),r.each(function(){n(this).children().removeClass(i.pagerActiveClass).eq(i.currSlide).addClass(i.pagerActiveClass)}))});n(document).on("cycle-destroyed",function(n,t){var i=t.API.getComponent("pager");i&&(i.children().off(t.pagerEvent),t.pagerTemplate&&i.empty())})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{next:"> .cycle-next",nextEvent:"click.cycle",disabledClass:"disabled",prev:"> .cycle-prev",prevEvent:"click.cycle",swipe:!1});n(document).on("cycle-initialized",function(n,t){t.API.getComponent("next").on(t.nextEvent,function(n){n.preventDefault();t.API.next()});t.API.getComponent("prev").on(t.prevEvent,function(n){n.preventDefault();t.API.prev()});if(t.swipe){var i=t.swipeVert?"swipeUp.cycle":"swipeLeft.cycle swipeleft.cycle",r=t.swipeVert?"swipeDown.cycle":"swipeRight.cycle swiperight.cycle";t.container.on(i,function(){t._tempFx=t.swipeFx;t.API.next()});t.container.on(r,function(){t._tempFx=t.swipeFx;t.API.prev()})}});n(document).on("cycle-update-view",function(n,t){if(!t.allowWrap){var i=t.disabledClass,r=t.API.getComponent("next"),u=t.API.getComponent("prev"),f=t._prevBoundry||0,e=t._nextBoundry!==undefined?t._nextBoundry:t.slideCount-1;t.currSlide==e?r.addClass(i).prop("disabled",!0):r.removeClass(i).prop("disabled",!1);t.currSlide===f?u.addClass(i).prop("disabled",!0):u.removeClass(i).prop("disabled",!1)}});n(document).on("cycle-destroyed",function(n,t){t.API.getComponent("prev").off(t.nextEvent);t.API.getComponent("next").off(t.prevEvent);t.container.off("swipeleft.cycle swiperight.cycle swipeLeft.cycle swipeRight.cycle swipeUp.cycle swipeDown.cycle")})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{progressive:!1});n(document).on("cycle-pre-initialize",function(t,i){if(i.progressive){var u=i.API,f=u.next,s=u.prev,e=u.prepareTx,h=n.type(i.progressive),r,o;if(h=="array")r=i.progressive;else if(n.isFunction(i.progressive))r=i.progressive(i);else if(h=="string"){if(o=n(i.progressive),r=n.trim(o.html()),!r)return;if(/^(\[)/.test(r))try{r=n.parseJSON(r)}catch(c){u.log("error parsing progressive slides",c);return}else r=r.split(new RegExp(o.data("cycle-split")||"\n")),r[r.length-1]||r.pop()}e&&(u.prepareTx=function(n,t){var f,u;if(n||r.length===0){e.apply(i.API,[n,t]);return}if(t&&i.currSlide==i.slideCount-1){u=r[0];r=r.slice(1);i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.API.advanceSlide(1)},50)});i.API.add(u)}else if(t||i.currSlide!==0)e.apply(i.API,[n,t]);else{f=r.length-1;u=r[f];r=r.slice(0,f);i.container.one("cycle-slide-added",function(n,t){setTimeout(function(){t.currSlide=1;t.API.advanceSlide(-1)},50)});i.API.add(u,!0)}});f&&(u.next=function(){var n=this.opts(),t;if(r.length&&n.currSlide==n.slideCount-1){t=r[0];r=r.slice(1);n.container.one("cycle-slide-added",function(n,t){f.apply(t.API);t.container.removeClass("cycle-loading")});n.container.addClass("cycle-loading");n.API.add(t)}else f.apply(n.API)});s&&(u.prev=function(){var n=this.opts(),t,i;if(r.length&&n.currSlide===0){t=r.length-1;i=r[t];r=r.slice(0,t);n.container.one("cycle-slide-added",function(n,t){t.currSlide=1;t.API.advanceSlide(-1);t.container.removeClass("cycle-loading")});n.container.addClass("cycle-loading");n.API.add(i,!0)}else s.apply(n.API)})}})}(jQuery),function(n){"use strict";n.extend(n.fn.cycle.defaults,{tmplRegex:"{{((.)?.*?)}}"});n.extend(n.fn.cycle.API,{tmpl:function(t,i){var u=new RegExp(i.tmplRegex||n.fn.cycle.defaults.tmplRegex,"g"),r=n.makeArray(arguments);return r.shift(),t.replace(u,function(t,i){for(var o,f,u,s=i.split("."),e=0;e<r.length;e++)if(f=r[e],f){if(s.length>1)for(u=f,o=0;o<s.length;o++)f=u,u=u[s[o]]||i;else u=f[i];if(n.isFunction(u))return u.apply(f,r);if(u!==undefined&&u!==null&&u!=i)return u}return i})}})}(jQuery);!function(n){"use strict";n.event.special.swipe=n.event.special.swipe||{scrollSupressionThreshold:10,durationThreshold:1e3,horizontalDistanceThreshold:30,verticalDistanceThreshold:75,setup:function(){var t=n(this);t.bind("touchstart",function(i){function f(t){if(r){var i=t.originalEvent.touches?t.originalEvent.touches[0]:t;u={time:(new Date).getTime(),coords:[i.pageX,i.pageY]};Math.abs(r.coords[0]-u.coords[0])>n.event.special.swipe.scrollSupressionThreshold&&t.preventDefault()}}var u,e=i.originalEvent.touches?i.originalEvent.touches[0]:i,r={time:(new Date).getTime(),coords:[e.pageX,e.pageY],origin:n(i.target)};t.bind("touchmove",f).one("touchend",function(){t.unbind("touchmove",f);r&&u&&u.time-r.time<n.event.special.swipe.durationThreshold&&Math.abs(r.coords[0]-u.coords[0])>n.event.special.swipe.horizontalDistanceThreshold&&Math.abs(r.coords[1]-u.coords[1])<n.event.special.swipe.verticalDistanceThreshold&&r.origin.trigger("swipe").trigger(r.coords[0]>u.coords[0]?"swipeleft":"swiperight");r=u=void 0})})}};n.event.special.swipeleft=n.event.special.swipeleft||{setup:function(){n(this).bind("swipe",n.noop)}};n.event.special.swiperight=n.event.special.swiperight||n.event.special.swipeleft}(jQuery),function(n){"use strict";n(document).on("cycle-bootstrap",function(n,t,i){t.fx==="carousel"&&(i.getSlideIndex=function(n){var t=this.opts()._carouselWrap.children(),i=t.index(n);return i%t.length},i.next=function(){var n=t.reverse?-1:1;t.allowWrap===!1&&t.currSlide+n>t.slideCount-t.carouselVisible||(t.API.advanceSlide(n),t.API.trigger("cycle-next",[t]).log("cycle-next"))})});n.fn.cycle.transitions.carousel={preInit:function(t){t.hideNonActive=!1;t.container.on("cycle-destroyed",n.proxy(this.onDestroy,t.API));t.API.stopTransition=this.stopTransition;for(var i=0;i<t.startingSlide;i++)t.container.append(t.slides[0])},postInit:function(t){var i,u,f,r,e=t.carouselVertical,o,s;if(t.carouselVisible&&t.carouselVisible>t.slideCount&&(t.carouselVisible=t.slideCount-1),o=t.carouselVisible||t.slides.length,s={display:e?"block":"inline-block",position:"static"},t.container.css({position:"relative",overflow:"hidden"}),t.slides.css(s),t._currSlide=t.currSlide,r=n('<div class="cycle-carousel-wrap"><\/div>').prependTo(t.container).css({margin:0,padding:0,top:0,left:0,position:"absolute"}).append(t.slides),t._carouselWrap=r,e||r.css("white-space","nowrap"),t.allowWrap!==!1){for(u=0;u<(t.carouselVisible===undefined?2:1);u++){for(i=0;i<t.slideCount;i++)r.append(t.slides[i].cloneNode(!0));for(i=t.slideCount;i--;)r.prepend(t.slides[i].cloneNode(!0))}r.find(".cycle-slide-active").removeClass("cycle-slide-active");t.slides.eq(t.startingSlide).addClass("cycle-slide-active")}t.pager&&t.allowWrap===!1&&(f=t.slideCount-o,n(t.pager).children().filter(":gt("+f+")").hide());t._nextBoundry=t.slideCount-t.carouselVisible;this.prepareDimensions(t)},prepareDimensions:function(t){var r,u,e,f,i=t.carouselVertical,o=t.carouselVisible||t.slides.length;if(t.carouselFluid&&t.carouselVisible?t._carouselResizeThrottle||this.fluidSlides(t):t.carouselVisible&&t.carouselSlideDimension?(r=o*t.carouselSlideDimension,t.container[i?"height":"width"](r)):t.carouselVisible&&(r=o*n(t.slides[0])[i?"outerHeight":"outerWidth"](!0),t.container[i?"height":"width"](r)),u=t.carouselOffset||0,t.allowWrap!==!1)if(t.carouselSlideDimension)u-=(t.slideCount+t.currSlide)*t.carouselSlideDimension;else for(e=t._carouselWrap.children(),f=0;f<t.slideCount+t.currSlide;f++)u-=n(e[f])[i?"outerHeight":"outerWidth"](!0);t._carouselWrap.css(i?"top":"left",u)},fluidSlides:function(t){function u(){clearTimeout(i);i=setTimeout(f,20)}function f(){t._carouselWrap.stop(!1,!0);var n=t.container.width()/t.carouselVisible;n=Math.ceil(n-e);t._carouselWrap.children().width(n);t._sentinel&&t._sentinel.width(n);o(t)}var i,r=t.slides.eq(0),e=r.outerWidth()-r.width(),o=this.prepareDimensions;n(window).on("resize",u);t._carouselResizeThrottle=u;f()},transition:function(t,i,r,u,f){var h,l={},e=t.nextSlide-t.currSlide,s=t.carouselVertical,a=t.speed,c,o;t.allowWrap===!1?(u=e>0,c=t._currSlide,o=t.slideCount-t.carouselVisible,e>0&&t.nextSlide>o&&c==o?e=0:e>0&&t.nextSlide>o?e=t.nextSlide-c-(t.nextSlide-o):e<0&&t.currSlide>o&&t.nextSlide>o?e=0:e<0&&t.currSlide>o?e+=t.currSlide-o:c=t.currSlide,h=this.getScroll(t,s,c,e),t.API.opts()._currSlide=t.nextSlide>o?o:t.nextSlide):u&&t.nextSlide===0?(h=this.getDim(t,t.currSlide,s),f=this.genCallback(t,u,s,f)):u||t.nextSlide!=t.slideCount-1?h=this.getScroll(t,s,t.currSlide,e):(h=this.getDim(t,t.currSlide,s),f=this.genCallback(t,u,s,f));l[s?"top":"left"]=u?"-="+h:"+="+h;t.throttleSpeed&&(a=h/n(t.slides[0])[s?"height":"width"]()*t.speed);t._carouselWrap.animate(l,a,t.easing,f)},getDim:function(t,i,r){var u=n(t.slides[i]);return u[r?"outerHeight":"outerWidth"](!0)},getScroll:function(n,t,i,r){var u,f=0;if(r>0)for(u=i;u<i+r;u++)f+=this.getDim(n,u,t);else for(u=i;u>i+r;u--)f+=this.getDim(n,u,t);return f},genCallback:function(t,i,r,u){return function(){var i=n(t.slides[t.nextSlide]).position(),f=0-i[r?"top":"left"]+(t.carouselOffset||0);t._carouselWrap.css(t.carouselVertical?"top":"left",f);u()}},stopTransition:function(){var n=this.opts();n.slides.stop(!1,!0);n._carouselWrap.stop(!1,!0)},onDestroy:function(){var t=this.opts();t._carouselResizeThrottle&&n(window).off("resize",t._carouselResizeThrottle);t.slides.prependTo(t.container);t._carouselWrap.remove()}}}(jQuery)