PATH:
var
/
www
/
vhosts
/
sandbox.dos-group.com
/
httpdocs
/
mendrisio
/
wp-content
/
plugins
/
vfb-pro
/
admin
/
assets
/
js
/** * @preserve jQuery DateTimePicker plugin v2.4.0 * @homepage http://xdsoft.net/jqplugins/datetimepicker/ * (c) 2014, Chupurnov Valeriy. */ !function($){"use strict";var e={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeek:["ن","ث","ع","خ","ج","س","ح"]},ro:{months:["ianuarie","februarie","martie","aprilie","mai","iunie","iulie","august","septembrie","octombrie","noiembrie","decembrie"],dayOfWeek:["l","ma","mi","j","v","s","d"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeek:["Sen","Sel","Rab","Kam","Jum","Sab","Min"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeek:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeek:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeek:["Вск","Пн","Вт","Ср","Чт","Пт","Сб"]},uk:{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],dayOfWeek:["Ндл","Пнд","Втр","Срд","Чтв","Птн","Сбт"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeek:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeek:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeek:["So","Mo","Di","Mi","Do","Fr","Sa"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeek:["zo","ma","di","wo","do","vr","za"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeek:["Paz","Pts","Sal","Çar","Per","Cum","Cts"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeek:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeek:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeek:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeek:["nd","pn","wt","śr","cz","pt","sb"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeek:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeek:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeek:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeek:["일","월","화","수","목","금","토"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeek:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"]},da:{months:["January","Februar","Marts","April","Maj","Juni","July","August","September","Oktober","November","December"],dayOfWeek:["Søn","Man","Tir","Ons","Tor","Fre","Lør"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeek:["Søn","Man","Tir","Ons","Tor","Fre","Lør"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeek:["日","月","火","水","木","金","土"]},vi:{months:["Tháng 1","Tháng 2","Tháng 3","Tháng 4","Tháng 5","Tháng 6","Tháng 7","Tháng 8","Tháng 9","Tháng 10","Tháng 11","Tháng 12"],dayOfWeek:["CN","T2","T3","T4","T5","T6","T7"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeek:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeek:["Ne","Po","Út","St","Čt","Pá","So"]},hu:{months:["Január","Február","Március","Április","Május","Június","Július","Augusztus","Szeptember","Október","November","December"],dayOfWeek:["Va","Hé","Ke","Sze","Cs","Pé","Szo"]}},value:"",lang:"en",format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnWithoutClick:!0,closeOnInputClick:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onChangeYear:function(){},onChangeDateTime:function(){},onShow:function(){},onClose:function(){},onGenerate:function(){},withoutCopyright:!0,inverseButton:!1,hours12:!1,next:"xdsoft_next",prev:"xdsoft_prev",dayOfWeekStart:0,parentID:"body",timeHeightInTimePicker:25,timepickerScrollbar:!0,todayButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],disabledDates:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0};Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){var n,a;for(n=t||0,a=this.length;a>n;n+=1)if(this[n]===e)return n;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},$.fn.xdsoftScroller=function(e){return this.each(function(){var t=$(this),n=function(e){var t={x:0,y:0},n;return"touchstart"===e.type||"touchmove"===e.type||"touchend"===e.type||"touchcancel"===e.type?(n=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],t.x=n.clientX,t.y=n.clientY):("mousedown"===e.type||"mouseup"===e.type||"mousemove"===e.type||"mouseover"===e.type||"mouseout"===e.type||"mouseenter"===e.type||"mouseleave"===e.type)&&(t.x=e.clientX,t.y=e.clientY),t},a=0,r,o,s,i,u,d=100,l=!1,c=0,f=0,m=0,h=!1,g=0,p=function(){};return"hide"===e?void t.find(".xdsoft_scrollbar").hide():($(this).hasClass("xdsoft_scroller_box")||(r=t.children().eq(0),o=t[0].clientHeight,s=r[0].offsetHeight,i=$('<div class="xdsoft_scrollbar"></div>'),u=$('<div class="xdsoft_scroller"></div>'),i.append(u),t.addClass("xdsoft_scroller_box").append(i),p=function x(e){var a=n(e).y-c+g;0>a&&(a=0),a+u[0].offsetHeight>m&&(a=m-u[0].offsetHeight),t.trigger("scroll_element.xdsoft_scroller",[d?a/d:0])},u.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(a){o||t.trigger("resize_scroll.xdsoft_scroller",[e]),c=n(a).y,g=parseInt(u.css("margin-top"),10),m=i[0].offsetHeight,"mousedown"===a.type?(document&&$(document.body).addClass("xdsoft_noselect"),$([document.body,window]).on("mouseup.xdsoft_scroller",function r(){$([document.body,window]).off("mouseup.xdsoft_scroller",r).off("mousemove.xdsoft_scroller",p).removeClass("xdsoft_noselect")}),$(document.body).on("mousemove.xdsoft_scroller",p)):(h=!0,a.stopPropagation(),a.preventDefault())}).on("touchmove",function(e){h&&(e.preventDefault(),p(e))}).on("touchend touchcancel",function(e){h=!1,g=0}),t.on("scroll_element.xdsoft_scroller",function(e,n){o||t.trigger("resize_scroll.xdsoft_scroller",[n,!0]),n=n>1?1:0>n||isNaN(n)?0:n,u.css("margin-top",d*n),setTimeout(function(){r.css("marginTop",-parseInt((r[0].offsetHeight-o)*n,10))},10)}).on("resize_scroll.xdsoft_scroller",function(e,n,a){var l,c;o=t[0].clientHeight,s=r[0].offsetHeight,l=o/s,c=l*i[0].offsetHeight,l>1?u.hide():(u.show(),u.css("height",parseInt(c>10?c:10,10)),d=i[0].offsetHeight-u[0].offsetHeight,a!==!0&&t.trigger("scroll_element.xdsoft_scroller",[n||Math.abs(parseInt(r.css("marginTop"),10))/(s-o)]))}),t.on("mousewheel",function(e){var n=Math.abs(parseInt(r.css("marginTop"),10));return n-=20*e.deltaY,0>n&&(n=0),t.trigger("scroll_element.xdsoft_scroller",[n/(s-o)]),e.stopPropagation(),!1}),t.on("touchstart",function(e){l=n(e),f=Math.abs(parseInt(r.css("marginTop"),10))}),t.on("touchmove",function(e){if(l){e.preventDefault();var a=n(e);t.trigger("scroll_element.xdsoft_scroller",[(f-(a.y-l.y))/(s-o)])}}),t.on("touchend touchcancel",function(e){l=!1,f=0})),void t.trigger("resize_scroll.xdsoft_scroller",[e]))})},$.fn.datetimepicker=function(t){var n=48,a=57,r=96,o=105,s=17,i=46,u=13,d=27,l=8,c=37,f=38,m=39,h=40,g=9,p=116,x=65,D=67,v=86,y=90,T=89,b=!1,w=$.isPlainObject(t)||!t?$.extend(!0,{},e,t):$.extend(!0,{},e),M=0,_,k,S,O=function(e){e.on("open.xdsoft focusin.xdsoft mousedown.xdsoft",function t(n){e.is(":disabled")||e.is(":hidden")||!e.is(":visible")||e.data("xdsoft_datetimepicker")||(clearTimeout(M),M=setTimeout(function(){e.data("xdsoft_datetimepicker")||_(e),e.off("open.xdsoft focusin.xdsoft mousedown.xdsoft",t).trigger("open.xdsoft")},100))})};return _=function(e){function M(){var t=!1,n;return w.startDate?t=S.strToDate(w.startDate):(t=w.value||(e&&e.val&&e.val()?e.val():""),t?t=S.strToDateTime(t):w.defaultDate&&(t=S.strToDate(w.defaultDate),w.defaultTime&&(n=S.strtotime(w.defaultTime),t.setHours(n.getHours()),t.setMinutes(n.getMinutes())))),t&&S.isValidDate(t)?_.data("changed",!0):t="",t||0}var _=$("<div "+(w.id?'id="'+w.id+'"':"")+" "+(w.style?'style="'+w.style+'"':"")+' class="xdsoft_datetimepicker xdsoft_'+w.theme+" xdsoft_noselect "+(w.weeks?" xdsoft_showweeks":"")+w.className+'"></div>'),k=$('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),O=$('<div class="xdsoft_datepicker active"></div>'),F=$('<div class="xdsoft_mounthpicker"><button type="button" class="xdsoft_prev"></button><button type="button" class="xdsoft_today_button"></button><div class="xdsoft_label xdsoft_month"><span></span><i></i></div><div class="xdsoft_label xdsoft_year"><span></span><i></i></div><button type="button" class="xdsoft_next"></button></div>'),Y=$('<div class="xdsoft_calendar"></div>'),C=$('<div class="xdsoft_timepicker active"><button type="button" class="xdsoft_prev"></button><div class="xdsoft_time_box"></div><button type="button" class="xdsoft_next"></button></div>'),I=C.find(".xdsoft_time_box").eq(0),H=$('<div class="xdsoft_time_variant"></div>'),P=$('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),A=$('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),z=!1,W,N,J,j,L,R=0,E=0;F.find(".xdsoft_month span").after(P),F.find(".xdsoft_year span").after(A),F.find(".xdsoft_month,.xdsoft_year").on("mousedown.xdsoft",function(e){var t=$(this).find(".xdsoft_select").eq(0),n=0,a=0,r=t.is(":visible"),o,s;for(F.find(".xdsoft_select").hide(),S.currentTime&&(n=S.currentTime[$(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),t[r?"hide":"show"](),o=t.find("div.xdsoft_option"),s=0;s<o.length&&o.eq(s).data("value")!==n;s+=1)a+=o[0].offsetHeight;return t.xdsoftScroller(a/(t.children()[0].offsetHeight-t[0].clientHeight)),e.stopPropagation(),!1}),F.find(".xdsoft_select").xdsoftScroller().on("mousedown.xdsoft",function(e){e.stopPropagation(),e.preventDefault()}).on("mousedown.xdsoft",".xdsoft_option",function(e){var t=S.currentTime.getFullYear();S&&S.currentTime&&S.currentTime[$(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"]($(this).data("value")),$(this).parent().parent().hide(),_.trigger("xchange.xdsoft"),w.onChangeMonth&&$.isFunction(w.onChangeMonth)&&w.onChangeMonth.call(_,S.currentTime,_.data("input")),t!==S.currentTime.getFullYear()&&$.isFunction(w.onChangeYear)&&w.onChangeYear.call(_,S.currentTime,_.data("input"))}),_.setOptions=function(t){if(w=$.extend(!0,{},w,t),t.allowTimes&&$.isArray(t.allowTimes)&&t.allowTimes.length&&(w.allowTimes=$.extend(!0,[],t.allowTimes)),t.weekends&&$.isArray(t.weekends)&&t.weekends.length&&(w.weekends=$.extend(!0,[],t.weekends)),t.disabledDates&&$.isArray(t.disabledDates)&&t.disabledDates.length&&(w.disabledDates=$.extend(!0,[],t.disabledDates)),!w.open&&!w.opened||w.inline||e.trigger("open.xdsoft"),w.inline&&(z=!0,_.addClass("xdsoft_inline"),e.after(_).hide()),w.inverseButton&&(w.next="xdsoft_prev",w.prev="xdsoft_next"),w.datepicker?O.addClass("active"):O.removeClass("active"),w.timepicker?C.addClass("active"):C.removeClass("active"),w.value&&(e&&e.val&&e.val(w.value),S.setCurrentTime(w.value)),w.dayOfWeekStart=isNaN(w.dayOfWeekStart)?0:parseInt(w.dayOfWeekStart,10)%7,w.timepickerScrollbar||I.xdsoftScroller("hide"),w.minDate&&/^-(.*)$/.test(w.minDate)&&(w.minDate=S.strToDateTime(w.minDate).dateFormat(w.formatDate)),w.maxDate&&/^\+(.*)$/.test(w.maxDate)&&(w.maxDate=S.strToDateTime(w.maxDate).dateFormat(w.formatDate)),F.find(".xdsoft_today_button").css("visibility",w.todayButton?"visible":"hidden"),w.mask){var M,k=function(e){try{if(document.selection&&document.selection.createRange){var t=document.selection.createRange();return t.getBookmark().charCodeAt(2)-2}if(e.setSelectionRange)return e.selectionStart}catch(n){return 0}},Y=function(e,t){if(e="string"==typeof e||e instanceof String?document.getElementById(e):e,!e)return!1;if(e.createTextRange){var n=e.createTextRange();return n.collapse(!0),n.moveEnd("character",t),n.moveStart("character",t),n.select(),!0}return e.setSelectionRange?(e.setSelectionRange(t,t),!0):!1},H=function(e,t){var n=e.replace(/([\[\]\/\{\}\(\)\-\.\+]{1})/g,"\\$1").replace(/_/g,"{digit+}").replace(/([0-9]{1})/g,"{digit$1}").replace(/\{digit([0-9]{1})\}/g,"[0-$1_]{1}").replace(/\{digit[\+]\}/g,"[0-9_]{1}");return new RegExp(n).test(t)};e.off("keydown.xdsoft"),w.mask===!0&&(w.mask=w.format.replace(/Y/g,"9999").replace(/F/g,"9999").replace(/m/g,"19").replace(/d/g,"39").replace(/H/g,"29").replace(/i/g,"59").replace(/s/g,"59")),"string"===$.type(w.mask)&&(H(w.mask,e.val())||e.val(w.mask.replace(/[0-9]/g,"_")),e.on("keydown.xdsoft",function(t){var M=this.value,_=t.which,S,O;if(_>=n&&a>=_||_>=r&&o>=_||_===l||_===i){for(S=k(this),O=_!==l&&_!==i?String.fromCharCode(_>=r&&o>=_?_-n:_):"_",_!==l&&_!==i||!S||(S-=1,O="_");/[^0-9_]/.test(w.mask.substr(S,1))&&S<w.mask.length&&S>0;)S+=_===l||_===i?-1:1;if(M=M.substr(0,S)+O+M.substr(S+1),""===$.trim(M))M=w.mask.replace(/[0-9]/g,"_");else if(S===w.mask.length)return t.preventDefault(),!1;for(S+=_===l||_===i?0:1;/[^0-9_]/.test(w.mask.substr(S,1))&&S<w.mask.length&&S>0;)S+=_===l||_===i?-1:1;H(w.mask,M)?(this.value=M,Y(this,S)):""===$.trim(M)?this.value=w.mask.replace(/[0-9]/g,"_"):e.trigger("error_input.xdsoft")}else if(-1!==[x,D,v,y,T].indexOf(_)&&b||-1!==[d,f,h,c,m,p,s,g,u].indexOf(_))return!0;return t.preventDefault(),!1}))}w.validateOnBlur&&e.off("blur.xdsoft").on("blur.xdsoft",function(){w.allowBlank&&!$.trim($(this).val()).length?($(this).val(null),_.data("xdsoft_datetime").empty()):Date.parseDate($(this).val(),w.format)?_.data("xdsoft_datetime").setCurrentTime($(this).val()):($(this).val(S.now().dateFormat(w.format)),_.data("xdsoft_datetime").setCurrentTime($(this).val())),_.trigger("changedatetime.xdsoft")}),w.dayOfWeekStartPrev=0===w.dayOfWeekStart?6:w.dayOfWeekStart-1,_.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},_.data("options",w).on("mousedown.xdsoft",function(e){return e.stopPropagation(),e.preventDefault(),A.hide(),P.hide(),!1}),I.append(H),I.xdsoftScroller(),_.on("afterOpen.xdsoft",function(){I.xdsoftScroller()}),_.append(O).append(C),w.withoutCopyright!==!0&&_.append(k),O.append(F).append(Y),$(w.parentID).append(_),W=function(){var e=this;e.now=function(t){var n=new Date,a,r;return!t&&w.defaultDate&&(a=e.strToDate(w.defaultDate),n.setFullYear(a.getFullYear()),n.setMonth(a.getMonth()),n.setDate(a.getDate())),w.yearOffset&&n.setFullYear(n.getFullYear()+w.yearOffset),!t&&w.defaultTime&&(r=e.strtotime(w.defaultTime),n.setHours(r.getHours()),n.setMinutes(r.getMinutes())),n},e.isValidDate=function(e){return"[object Date]"!==Object.prototype.toString.call(e)?!1:!isNaN(e.getTime())},e.setCurrentTime=function(t){e.currentTime="string"==typeof t?e.strToDateTime(t):e.isValidDate(t)?t:e.now(),_.trigger("xchange.xdsoft")},e.empty=function(){e.currentTime=null},e.getCurrentTime=function(t){return e.currentTime},e.nextMonth=function(){var t=e.currentTime.getMonth()+1,n;return 12===t&&(e.currentTime.setFullYear(e.currentTime.getFullYear()+1),t=0),n=e.currentTime.getFullYear(),e.currentTime.setDate(Math.min(new Date(e.currentTime.getFullYear(),t+1,0).getDate(),e.currentTime.getDate())),e.currentTime.setMonth(t),w.onChangeMonth&&$.isFunction(w.onChangeMonth)&&w.onChangeMonth.call(_,S.currentTime,_.data("input")),n!==e.currentTime.getFullYear()&&$.isFunction(w.onChangeYear)&&w.onChangeYear.call(_,S.currentTime,_.data("input")),_.trigger("xchange.xdsoft"),t},e.prevMonth=function(){var t=e.currentTime.getMonth()-1;return-1===t&&(e.currentTime.setFullYear(e.currentTime.getFullYear()-1),t=11),e.currentTime.setDate(Math.min(new Date(e.currentTime.getFullYear(),t+1,0).getDate(),e.currentTime.getDate())),e.currentTime.setMonth(t),w.onChangeMonth&&$.isFunction(w.onChangeMonth)&&w.onChangeMonth.call(_,S.currentTime,_.data("input")),_.trigger("xchange.xdsoft"),t},e.getWeekOfYear=function(e){var t=new Date(e.getFullYear(),0,1);return Math.ceil(((e-t)/864e5+t.getDay()+1)/7)},e.strToDateTime=function(t){var n=[],a,r;return t&&t instanceof Date&&e.isValidDate(t)?t:(n=/^(\+|\-)(.*)$/.exec(t),n&&(n[2]=Date.parseDate(n[2],w.formatDate)),n&&n[2]?(a=n[2].getTime()-6e4*n[2].getTimezoneOffset(),r=new Date(S.now().getTime()+parseInt(n[1]+"1",10)*a)):r=t?Date.parseDate(t,w.format):e.now(),e.isValidDate(r)||(r=e.now()),r)},e.strToDate=function(t){if(t&&t instanceof Date&&e.isValidDate(t))return t;var n=t?Date.parseDate(t,w.formatDate):e.now(!0);return e.isValidDate(n)||(n=e.now(!0)),n},e.strtotime=function(t){if(t&&t instanceof Date&&e.isValidDate(t))return t;var n=t?Date.parseDate(t,w.formatTime):e.now(!0);return e.isValidDate(n)||(n=e.now(!0)),n},e.str=function(){return e.currentTime.dateFormat(w.format)},e.currentTime=this.now()},S=new W,F.find(".xdsoft_today_button").on("mousedown.xdsoft",function(){_.data("changed",!0),S.setCurrentTime(0),_.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){e.val(S.str()),_.trigger("close.xdsoft")}),F.find(".xdsoft_prev,.xdsoft_next").on("mousedown.xdsoft",function(){var e=$(this),t=0,n=!1;!function a(r){var o=S.currentTime.getMonth();e.hasClass(w.next)?S.nextMonth():e.hasClass(w.prev)&&S.prevMonth(),w.monthChangeSpinner&&(n||(t=setTimeout(a,r||100)))}(500),$([document.body,window]).on("mouseup.xdsoft",function r(){clearTimeout(t),n=!0,$([document.body,window]).off("mouseup.xdsoft",r)})}),C.find(".xdsoft_prev,.xdsoft_next").on("mousedown.xdsoft",function(){var e=$(this),t=0,n=!1,a=110;!function r(o){var s=I[0].clientHeight,i=H[0].offsetHeight,u=Math.abs(parseInt(H.css("marginTop"),10));e.hasClass(w.next)&&i-s-w.timeHeightInTimePicker>=u?H.css("marginTop","-"+(u+w.timeHeightInTimePicker)+"px"):e.hasClass(w.prev)&&u-w.timeHeightInTimePicker>=0&&H.css("marginTop","-"+(u-w.timeHeightInTimePicker)+"px"),I.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(H.css("marginTop"),10)/(i-s))]),a=a>10?10:a-10,n||(t=setTimeout(r,o||a))}(500),$([document.body,window]).on("mouseup.xdsoft",function o(){clearTimeout(t),n=!0,$([document.body,window]).off("mouseup.xdsoft",o)})}),N=0,_.on("xchange.xdsoft",function(e){clearTimeout(N),N=setTimeout(function(){for(var e="",n=new Date(S.currentTime.getFullYear(),S.currentTime.getMonth(),1,12,0,0),a=0,r,o=S.now(),s=!1,i=!1,u,d,l,c,f=[],m,h=!0,g="",p="",x;n.getDay()!==w.dayOfWeekStart;)n.setDate(n.getDate()-1);for(e+="<table><thead><tr>",w.weeks&&(e+="<th></th>"),r=0;7>r;r+=1)e+="<th>"+w.i18n[w.lang].dayOfWeek[(r+w.dayOfWeekStart)%7]+"</th>";for(e+="</tr></thead>",e+="<tbody>",w.maxDate!==!1&&(s=S.strToDate(w.maxDate),s=new Date(s.getFullYear(),s.getMonth(),s.getDate(),23,59,59,999)),w.minDate!==!1&&(i=S.strToDate(w.minDate),i=new Date(i.getFullYear(),i.getMonth(),i.getDate()));a<S.currentTime.countDaysInMonth()||n.getDay()!==w.dayOfWeekStart||S.currentTime.getMonth()===n.getMonth();)f=[],a+=1,u=n.getDate(),d=n.getFullYear(),l=n.getMonth(),c=S.getWeekOfYear(n),f.push("xdsoft_date"),m=w.beforeShowDay&&$.isFunction(w.beforeShowDay.call)?w.beforeShowDay.call(_,n):null,s!==!1&&n>s||i!==!1&&i>n||m&&m[0]===!1?f.push("xdsoft_disabled"):-1!==w.disabledDates.indexOf(n.dateFormat(w.formatDate))&&f.push("xdsoft_disabled"),m&&""!==m[1]&&f.push(m[1]),S.currentTime.getMonth()!==l&&f.push("xdsoft_other_month"),(w.defaultSelect||_.data("changed"))&&S.currentTime.dateFormat(w.formatDate)===n.dateFormat(w.formatDate)&&f.push("xdsoft_current"),o.dateFormat(w.formatDate)===n.dateFormat(w.formatDate)&&f.push("xdsoft_today"),(0===n.getDay()||6===n.getDay()||-1===w.weekends.indexOf(n.dateFormat(w.formatDate)))&&f.push("xdsoft_weekend"),w.beforeShowDay&&$.isFunction(w.beforeShowDay)&&f.push(w.beforeShowDay(n)),h&&(e+="<tr>",h=!1,w.weeks&&(e+="<th>"+c+"</th>")),e+='<td data-date="'+u+'" data-month="'+l+'" data-year="'+d+'" class="xdsoft_date xdsoft_day_of_week'+n.getDay()+" "+f.join(" ")+'"><div>'+u+"</div></td>",n.getDay()===w.dayOfWeekStartPrev&&(e+="</tr>",h=!0),n.setDate(u+1);if(e+="</tbody></table>",Y.html(e),F.find(".xdsoft_label span").eq(0).text(w.i18n[w.lang].months[S.currentTime.getMonth()]),F.find(".xdsoft_label span").eq(1).text(S.currentTime.getFullYear()),g="",p="",l="",x=function D(e,t){var n=S.now();n.setHours(e),e=parseInt(n.getHours(),10),n.setMinutes(t),t=parseInt(n.getMinutes(),10),f=[],(w.maxTime!==!1&&S.strtotime(w.maxTime).getTime()<n.getTime()||w.minTime!==!1&&S.strtotime(w.minTime).getTime()>n.getTime())&&f.push("xdsoft_disabled"),(w.initTime||w.defaultSelect||_.data("changed"))&&parseInt(S.currentTime.getHours(),10)===parseInt(e,10)&&(w.step>59||Math[w.roundTime](S.currentTime.getMinutes()/w.step)*w.step===parseInt(t,10))&&(w.defaultSelect||_.data("changed")?f.push("xdsoft_current"):w.initTime&&f.push("xdsoft_init_time")),parseInt(o.getHours(),10)===parseInt(e,10)&&parseInt(o.getMinutes(),10)===parseInt(t,10)&&f.push("xdsoft_today"),g+='<div class="xdsoft_time '+f.join(" ")+'" data-hour="'+e+'" data-minute="'+t+'">'+n.dateFormat(w.formatTime)+"</div>"},w.allowTimes&&$.isArray(w.allowTimes)&&w.allowTimes.length)for(a=0;a<w.allowTimes.length;a+=1)p=S.strtotime(w.allowTimes[a]).getHours(),l=S.strtotime(w.allowTimes[a]).getMinutes(),x(p,l);else for(a=0,r=0;a<(w.hours12?12:24);a+=1)for(r=0;60>r;r+=w.step)p=(10>a?"0":"")+a,l=(10>r?"0":"")+r,x(p,l);for(H.html(g),t="",a=0,a=parseInt(w.yearStart,10)+w.yearOffset;a<=parseInt(w.yearEnd,10)+w.yearOffset;a+=1)t+='<div class="xdsoft_option '+(S.currentTime.getFullYear()===a?"xdsoft_current":"")+'" data-value="'+a+'">'+a+"</div>";for(A.children().eq(0).html(t),a=0,t="";11>=a;a+=1)t+='<div class="xdsoft_option '+(S.currentTime.getMonth()===a?"xdsoft_current":"")+'" data-value="'+a+'">'+w.i18n[w.lang].months[a]+"</div>";P.children().eq(0).html(t),$(_).trigger("generate.xdsoft")},10),e.stopPropagation()}).on("afterOpen.xdsoft",function(){if(w.timepicker){var e,t,n,a;H.find(".xdsoft_current").length?e=".xdsoft_current":H.find(".xdsoft_init_time").length&&(e=".xdsoft_init_time"),e?(t=I[0].clientHeight,n=H[0].offsetHeight,a=H.find(e).index()*w.timeHeightInTimePicker+1,a>n-t&&(a=n-t),I.trigger("scroll_element.xdsoft_scroller",[parseInt(a,10)/(n-t)])):I.trigger("scroll_element.xdsoft_scroller",[0])}}),J=0,Y.on("click.xdsoft","td",function(t){t.stopPropagation(),J+=1;var n=$(this),a=S.currentTime;return(void 0===a||null===a)&&(S.currentTime=S.now(),a=S.currentTime),n.hasClass("xdsoft_disabled")?!1:(a.setDate(1),a.setFullYear(n.data("year")),a.setMonth(n.data("month")),a.setDate(n.data("date")),_.trigger("select.xdsoft",[a]),e.val(S.str()),(J>1||w.closeOnDateSelect===!0||0===w.closeOnDateSelect&&!w.timepicker)&&!w.inline&&_.trigger("close.xdsoft"),w.onSelectDate&&$.isFunction(w.onSelectDate)&&w.onSelectDate.call(_,S.currentTime,_.data("input"),t),_.data("changed",!0),_.trigger("xchange.xdsoft"),_.trigger("changedatetime.xdsoft"),void setTimeout(function(){J=0},200))}),H.on("click.xdsoft","div",function(e){e.stopPropagation();var t=$(this),n=S.currentTime;return(void 0===n||null===n)&&(S.currentTime=S.now(),n=S.currentTime),t.hasClass("xdsoft_disabled")?!1:(n.setHours(t.data("hour")),n.setMinutes(t.data("minute")),_.trigger("select.xdsoft",[n]),_.data("input").val(S.str()),w.inline||_.trigger("close.xdsoft"),w.onSelectTime&&$.isFunction(w.onSelectTime)&&w.onSelectTime.call(_,S.currentTime,_.data("input"),e),_.data("changed",!0),_.trigger("xchange.xdsoft"),void _.trigger("changedatetime.xdsoft"))}),O.on("mousewheel.xdsoft",function(e){return w.scrollMonth?(e.deltaY<0?S.nextMonth():S.prevMonth(),!1):!0}),e.on("mousewheel.xdsoft",function(t){return w.scrollInput?!w.datepicker&&w.timepicker?(j=H.find(".xdsoft_current").length?H.find(".xdsoft_current").eq(0).index():0,j+t.deltaY>=0&&j+t.deltaY<H.children().length&&(j+=t.deltaY),H.children().eq(j).length&&H.children().eq(j).trigger("mousedown"),!1):w.datepicker&&!w.timepicker?(O.trigger(t,[t.deltaY,t.deltaX,t.deltaY]),e.val&&e.val(S.str()),_.trigger("changedatetime.xdsoft"),!1):void 0:!0}),_.on("changedatetime.xdsoft",function(e){if(w.onChangeDateTime&&$.isFunction(w.onChangeDateTime)){var t=_.data("input");w.onChangeDateTime.call(_,S.currentTime,t,e),delete w.value,t.trigger("change")}}).on("generate.xdsoft",function(){w.onGenerate&&$.isFunction(w.onGenerate)&&w.onGenerate.call(_,S.currentTime,_.data("input")),z&&(_.trigger("afterOpen.xdsoft"),z=!1)}).on("click.xdsoft",function(e){e.stopPropagation()}),j=0,L=function(){var e=_.data("input").offset(),t=e.top+_.data("input")[0].offsetHeight-1,n=e.left,a="absolute";w.fixed?(t-=$(window).scrollTop(),n-=$(window).scrollLeft(),a="fixed"):(t+_[0].offsetHeight>$(window).height()+$(window).scrollTop()&&(t=e.top-_[0].offsetHeight+1),0>t&&(t=0),n+_[0].offsetWidth>$(window).width()&&(n=$(window).width()-_[0].offsetWidth)),_.css({left:n,top:t,position:a})},_.on("open.xdsoft",function(e){var t=!0;w.onShow&&$.isFunction(w.onShow)&&(t=w.onShow.call(_,S.currentTime,_.data("input"),e)),t!==!1&&(_.show(),L(),$(window).off("resize.xdsoft",L).on("resize.xdsoft",L),w.closeOnWithoutClick&&$([document.body,window]).on("mousedown.xdsoft",function n(){_.trigger("close.xdsoft"),$([document.body,window]).off("mousedown.xdsoft",n)}))}).on("close.xdsoft",function(e){var t=!0;F.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),w.onClose&&$.isFunction(w.onClose)&&(t=w.onClose.call(_,S.currentTime,_.data("input"),e)),t===!1||w.opened||w.inline||_.hide(),e.stopPropagation()}).on("toggle.xdsoft",function(e){_.trigger(_.is(":visible")?"close.xdsoft":"open.xdsoft")}).data("input",e),R=0,E=0,_.data("xdsoft_datetime",S),_.setOptions(w),S.setCurrentTime(M()),e.data("xdsoft_datetimepicker",_).on("open.xdsoft focusin.xdsoft mousedown.xdsoft",function(t){e.is(":disabled")||e.is(":hidden")||!e.is(":visible")||e.data("xdsoft_datetimepicker").is(":visible")&&w.closeOnInputClick||(clearTimeout(R),R=setTimeout(function(){e.is(":disabled")||e.is(":hidden")||!e.is(":visible")||(z=!0,S.setCurrentTime(M()),_.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(e){var t=this.value,n,a=e.which;return-1!==[u].indexOf(a)&&w.enterLikeTab?(n=$("input:visible,textarea:visible"),_.trigger("close.xdsoft"),n.eq(n.index(this)+1).focus(),!1):-1!==[g].indexOf(a)?(_.trigger("close.xdsoft"),!0):void 0})},k=function(e){var t=e.data("xdsoft_datetimepicker");t&&(t.data("xdsoft_datetime",null),t.remove(),e.data("xdsoft_datetimepicker",null).off(".xdsoft"),$(window).off("resize.xdsoft"),$([window,document.body]).off("mousedown.xdsoft"),e.unmousewheel&&e.unmousewheel())},$(document).off("keydown.xdsoftctrl keyup.xdsoftctrl").on("keydown.xdsoftctrl",function(e){e.keyCode===s&&(b=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===s&&(b=!1)}),this.each(function(){var e=$(this).data("xdsoft_datetimepicker");if(e){if("string"===$.type(t))switch(t){case"show":$(this).select().focus(),e.trigger("open.xdsoft");break;case"hide":e.trigger("close.xdsoft");break;case"toggle":e.trigger("toggle.xdsoft");break;case"destroy":k($(this));break;case"reset":this.value=this.defaultValue,this.value&&e.data("xdsoft_datetime").isValidDate(Date.parseDate(this.value,w.format))||e.data("changed",!1),e.data("xdsoft_datetime").setCurrentTime(this.value)}else e.setOptions(t);return 0}"string"!==$.type(t)&&(!w.lazyInit||w.open||w.inline?_($(this)):O($(this)))})},$.fn.datetimepicker.defaults=e}(jQuery),function(){!function(e){"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e:e(jQuery)}(function(e){function t(t){var s=t||window.event,i=u.call(arguments,1),d=0,c=0,f=0,m=0,h=0,g=0;if(t=e.event.fix(s),t.type="mousewheel","detail"in s&&(f=-1*s.detail),"wheelDelta"in s&&(f=s.wheelDelta),"wheelDeltaY"in s&&(f=s.wheelDeltaY),"wheelDeltaX"in s&&(c=-1*s.wheelDeltaX),"axis"in s&&s.axis===s.HORIZONTAL_AXIS&&(c=-1*f,f=0),d=0===f?c:f,"deltaY"in s&&(f=-1*s.deltaY,d=f),"deltaX"in s&&(c=s.deltaX,0===f&&(d=-1*c)),0!==f||0!==c){if(1===s.deltaMode){var p=e.data(this,"mousewheel-line-height");d*=p,f*=p,c*=p}else if(2===s.deltaMode){var x=e.data(this,"mousewheel-page-height");d*=x,f*=x,c*=x}if(m=Math.max(Math.abs(f),Math.abs(c)),(!o||o>m)&&(o=m,a(s,m)&&(o/=40)),a(s,m)&&(d/=40,c/=40,f/=40),d=Math[d>=1?"floor":"ceil"](d/o),c=Math[c>=1?"floor":"ceil"](c/o),f=Math[f>=1?"floor":"ceil"](f/o),l.settings.normalizeOffset&&this.getBoundingClientRect){var D=this.getBoundingClientRect();h=t.clientX-D.left,g=t.clientY-D.top}return t.deltaX=c,t.deltaY=f,t.deltaFactor=o,t.offsetX=h,t.offsetY=g,t.deltaMode=0,i.unshift(t,d,c,f),r&&clearTimeout(r),r=setTimeout(n,200),(e.event.dispatch||e.event.handle).apply(this,i)}}function n(){o=null}function a(e,t){return l.settings.adjustOldDeltas&&"mousewheel"===e.type&&t%120===0}var r,o,s=["wheel","mousewheel","DOMMouseScroll","MozMousePixelScroll"],i="onwheel"in document||document.documentMode>=9?["wheel"]:["mousewheel","DomMouseScroll","MozMousePixelScroll"],u=Array.prototype.slice;if(e.event.fixHooks)for(var d=s.length;d;)e.event.fixHooks[s[--d]]=e.event.mouseHooks;var l=e.event.special.mousewheel={version:"3.1.12",setup:function(){if(this.addEventListener)for(var n=i.length;n;)this.addEventListener(i[--n],t,!1);else this.onmousewheel=t;e.data(this,"mousewheel-line-height",l.getLineHeight(this)),e.data(this,"mousewheel-page-height",l.getPageHeight(this))},teardown:function(){if(this.removeEventListener)for(var n=i.length;n;)this.removeEventListener(i[--n],t,!1);else this.onmousewheel=null;e.removeData(this,"mousewheel-line-height"),e.removeData(this,"mousewheel-page-height")},getLineHeight:function(t){var n=e(t),a=n["offsetParent"in e.fn?"offsetParent":"parent"]();return a.length||(a=e("body")),parseInt(a.css("fontSize"),10)||parseInt(n.css("fontSize"),10)||16},getPageHeight:function(t){return e(t).height()},settings:{adjustOldDeltas:!0,normalizeOffset:!0}};e.fn.extend({mousewheel:function(e){return e?this.bind("mousewheel",e):this.trigger("mousewheel")},unmousewheel:function(e){return this.unbind("mousewheel",e)}})}),Date.parseFunctions={count:0},Date.parseRegexes=[],Date.formatFunctions={count:0},Date.prototype.dateFormat=function(e){if("unixtime"==e)return parseInt(this.getTime()/1e3);null==Date.formatFunctions[e]&&Date.createNewFormat(e);var t=Date.formatFunctions[e];return this[t]()},Date.createNewFormat=function(format){var funcName="format"+Date.formatFunctions.count++;Date.formatFunctions[format]=funcName;for(var code="Date.prototype."+funcName+" = function() {return ",special=!1,ch="",i=0;i<format.length;++i)ch=format.charAt(i),special||"\\"!=ch?special?(special=!1,code+="'"+String.escape(ch)+"' + "):code+=Date.getFormatCode(ch):special=!0; eval(code.substring(0,code.length-3)+";}")},Date.getFormatCode=function(e){switch(e){case"d":return"String.leftPad(this.getDate(), 2, '0') + ";case"D":return"Date.dayNames[this.getDay()].substring(0, 3) + ";case"j":return"this.getDate() + ";case"l":return"Date.dayNames[this.getDay()] + ";case"S":return"this.getSuffix() + ";case"w":return"this.getDay() + ";case"z":return"this.getDayOfYear() + ";case"W":return"this.getWeekOfYear() + ";case"F":return"Date.monthNames[this.getMonth()] + ";case"m":return"String.leftPad(this.getMonth() + 1, 2, '0') + ";case"M":return"Date.monthNames[this.getMonth()].substring(0, 3) + ";case"n":return"(this.getMonth() + 1) + ";case"t":return"this.getDaysInMonth() + ";case"L":return"(this.isLeapYear() ? 1 : 0) + ";case"Y":return"this.getFullYear() + ";case"y":return"('' + this.getFullYear()).substring(2, 4) + ";case"a":return"(this.getHours() < 12 ? 'am' : 'pm') + ";case"A":return"(this.getHours() < 12 ? 'AM' : 'PM') + ";case"g":return"((this.getHours() %12) ? this.getHours() % 12 : 12) + ";case"G":return"this.getHours() + ";case"h":return"String.leftPad((this.getHours() %12) ? this.getHours() % 12 : 12, 2, '0') + ";case"H":return"String.leftPad(this.getHours(), 2, '0') + ";case"i":return"String.leftPad(this.getMinutes(), 2, '0') + ";case"s":return"String.leftPad(this.getSeconds(), 2, '0') + ";case"O":return"this.getGMTOffset() + ";case"T":return"this.getTimezone() + ";case"Z":return"(this.getTimezoneOffset() * -60) + ";default:return"'"+String.escape(e)+"' + "}},Date.parseDate=function(e,t){if("unixtime"==t)return new Date(isNaN(parseInt(e))?0:1e3*parseInt(e));null==Date.parseFunctions[t]&&Date.createParser(t);var n=Date.parseFunctions[t];return Date[n](e)},Date.createParser=function(format){var funcName="parse"+Date.parseFunctions.count++,regexNum=Date.parseRegexes.length,currentGroup=1;Date.parseFunctions[format]=funcName;for(var code="Date."+funcName+" = function(input) {\nvar y = -1, m = -1, d = -1, h = -1, i = -1, s = -1, z = -1;\nvar d = new Date();\ny = d.getFullYear();\nm = d.getMonth();\nd = d.getDate();\nvar results = input.match(Date.parseRegexes["+regexNum+"]);\nif (results && results.length > 0) {",regex="",special=!1,ch="",i=0;i<format.length;++i)ch=format.charAt(i),special||"\\"!=ch?special?(special=!1,regex+=String.escape(ch)):(obj=Date.formatCodeToRegex(ch,currentGroup),currentGroup+=obj.g,regex+=obj.s,obj.g&&obj.c&&(code+=obj.c)):special=!0;code+="if (y > 0 && z > 0){\nvar doyDate = new Date(y,0);\ndoyDate.setDate(z);\nm = doyDate.getMonth();\nd = doyDate.getDate();\n}",code+="if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0 && s >= 0)\n{return new Date(y, m, d, h, i, s);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0 && i >= 0)\n{return new Date(y, m, d, h, i);}\nelse if (y > 0 && m >= 0 && d > 0 && h >= 0)\n{return new Date(y, m, d, h);}\nelse if (y > 0 && m >= 0 && d > 0)\n{return new Date(y, m, d);}\nelse if (y > 0 && m >= 0)\n{return new Date(y, m);}\nelse if (y > 0)\n{return new Date(y);}\n}return null;}",Date.parseRegexes[regexNum]=new RegExp("^"+regex+"$"),eval(code)},Date.formatCodeToRegex=function(e,t){switch(e){case"D":return{g:0,c:null,s:"(?:Sun|Mon|Tue|Wed|Thu|Fri|Sat)"};case"j":case"d":return{g:1,c:"d = parseInt(results["+t+"], 10);\n",s:"(\\d{1,2})"};case"l":return{g:0,c:null,s:"(?:"+Date.dayNames.join("|")+")"};case"S":return{g:0,c:null,s:"(?:st|nd|rd|th)"};case"w":return{g:0,c:null,s:"\\d"};case"z":return{g:1,c:"z = parseInt(results["+t+"], 10);\n",s:"(\\d{1,3})"};case"W":return{g:0,c:null,s:"(?:\\d{2})"};case"F":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+t+"].substring(0, 3)], 10);\n",s:"("+Date.monthNames.join("|")+")"};case"M":return{g:1,c:"m = parseInt(Date.monthNumbers[results["+t+"]], 10);\n",s:"(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)"};case"n":case"m":return{g:1,c:"m = parseInt(results["+t+"], 10) - 1;\n",s:"(\\d{1,2})"};case"t":return{g:0,c:null,s:"\\d{1,2}"};case"L":return{g:0,c:null,s:"(?:1|0)"};case"Y":return{g:1,c:"y = parseInt(results["+t+"], 10);\n",s:"(\\d{4})"};case"y":return{g:1,c:"var ty = parseInt(results["+t+"], 10);\ny = ty > Date.y2kYear ? 1900 + ty : 2000 + ty;\n",s:"(\\d{1,2})"};case"a":return{g:1,c:"if (results["+t+"] == 'am') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(am|pm)"};case"A":return{g:1,c:"if (results["+t+"] == 'AM') {\nif (h == 12) { h = 0; }\n} else { if (h < 12) { h += 12; }}",s:"(AM|PM)"};case"g":case"G":case"h":case"H":return{g:1,c:"h = parseInt(results["+t+"], 10);\n",s:"(\\d{1,2})"};case"i":return{g:1,c:"i = parseInt(results["+t+"], 10);\n",s:"(\\d{2})"};case"s":return{g:1,c:"s = parseInt(results["+t+"], 10);\n",s:"(\\d{2})"};case"O":return{g:0,c:null,s:"[+-]\\d{4}"};case"T":return{g:0,c:null,s:"[A-Z]{3}"};case"Z":return{g:0,c:null,s:"[+-]\\d{1,5}"};default:return{g:0,c:null,s:String.escape(e)}}},Date.prototype.getTimezone=function(){return this.toString().replace(/^.*? ([A-Z]{3}) [0-9]{4}.*$/,"$1").replace(/^.*?\(([A-Z])[a-z]+ ([A-Z])[a-z]+ ([A-Z])[a-z]+\)$/,"$1$2$3")},Date.prototype.getGMTOffset=function(){return(this.getTimezoneOffset()>0?"-":"+")+String.leftPad(Math.floor(Math.abs(this.getTimezoneOffset())/60),2,"0")+String.leftPad(Math.abs(this.getTimezoneOffset())%60,2,"0")},Date.prototype.getDayOfYear=function(){var e=0;Date.daysInMonth[1]=this.isLeapYear()?29:28;for(var t=0;t<this.getMonth();++t)e+=Date.daysInMonth[t];return e+this.getDate()},Date.prototype.getWeekOfYear=function(){var e=this.getDayOfYear()+(4-this.getDay()),t=new Date(this.getFullYear(),0,1),n=7-t.getDay()+4;return String.leftPad(Math.ceil((e-n)/7)+1,2,"0")},Date.prototype.isLeapYear=function(){var e=this.getFullYear();return 0==(3&e)&&(e%100||e%400==0&&e)},Date.prototype.getFirstDayOfMonth=function(){var e=(this.getDay()-(this.getDate()-1))%7;return 0>e?e+7:e},Date.prototype.getLastDayOfMonth=function(){var e=(this.getDay()+(Date.daysInMonth[this.getMonth()]-this.getDate()))%7;return 0>e?e+7:e},Date.prototype.getDaysInMonth=function(){return Date.daysInMonth[1]=this.isLeapYear()?29:28,Date.daysInMonth[this.getMonth()]},Date.prototype.getSuffix=function(){switch(this.getDate()){case 1:case 21:case 31:return"st";case 2:case 22:return"nd";case 3:case 23:return"rd";default:return"th"}},String.escape=function(e){return e.replace(/('|\\)/g,"\\$1")},String.leftPad=function(e,t,n){var a=new String(e);for(null==n&&(n=" ");a.length<t;)a=n+a;return a},Date.daysInMonth=[31,28,31,30,31,30,31,31,30,31,30,31],Date.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"],Date.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"],Date.y2kYear=50,Date.monthNumbers={Jan:0,Feb:1,Mar:2,Apr:3,May:4,Jun:5,Jul:6,Aug:7,Sep:8,Oct:9,Nov:10,Dec:11},Date.patterns={ISO8601LongPattern:"Y-m-d H:i:s",ISO8601ShortPattern:"Y-m-d",ShortDatePattern:"n/j/Y",LongDatePattern:"l, F d, Y",FullDateTimePattern:"l, F d, Y g:i:s A",MonthDayPattern:"F d",ShortTimePattern:"g:i A",LongTimePattern:"g:i:s A",SortableDateTimePattern:"Y-m-d\\TH:i:s",UniversalSortableDateTimePattern:"Y-m-d H:i:sO",YearMonthPattern:"F, Y"}}();
[-] confirm.min.js
[open]
[-] vfb-admin.js
[open]
[-] vfb-admin.min.js
[open]
[-] token-field.min.js
[open]
[-] auto-complete.js
[open]
[+]
..
[-] accordion.min.js
[open]
[+]
partials
[-] accordion.js
[open]
[-] codemirror.min.js
[open]
[-] auto-complete.min.js
[open]
[-] datetimepicker.min.js
[open]
[-] datetimepicker.js
[open]
[-] codemirror.js
[open]
[-] index.php
[open]
[-] confirm.js
[open]
[-] token-field.js
[open]