datetimepicker/build/jquery.datetimepicker.min.js
Christopher Lassen ba53eb4986 New build
2020-10-12 11:55:34 +02:00

1 line
51 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

var datetimepickerFactory=function(I){"use strict";function t(){var e={days:(e=s.i18n[E]).dayOfWeek,daysShort:e.dayOfWeekShort,months:e.months,monthsShort:I.map(e.months,function(e){return e.substring(0,3)})};"function"==typeof DateFormatter&&(L=a=new DateFormatter({dateSettings:I.extend({},o,e)}))}var s={i18n:{ar:{months:["كانون الثاني","شباط","آذار","نيسان","مايو","حزيران","تموز","آب","أيلول","تشرين الأول","تشرين الثاني","كانون الأول"],dayOfWeekShort:["ن","ث","ع","خ","ج","س","ح"],dayOfWeek:["الأحد","الاثنين","الثلاثاء","الأربعاء","الخميس","الجمعة","السبت","الأحد"]},ro:{months:["Ianuarie","Februarie","Martie","Aprilie","Mai","Iunie","Iulie","August","Septembrie","Octombrie","Noiembrie","Decembrie"],dayOfWeekShort:["Du","Lu","Ma","Mi","Jo","Vi","Sâ"],dayOfWeek:["Duminică","Luni","Marţi","Miercuri","Joi","Vineri","Sâmbătă"]},id:{months:["Januari","Februari","Maret","April","Mei","Juni","Juli","Agustus","September","Oktober","November","Desember"],dayOfWeekShort:["Min","Sen","Sel","Rab","Kam","Jum","Sab"],dayOfWeek:["Minggu","Senin","Selasa","Rabu","Kamis","Jumat","Sabtu"]},is:{months:["Janúar","Febrúar","Mars","Apríl","Maí","Júní","Júlí","Ágúst","September","Október","Nóvember","Desember"],dayOfWeekShort:["Sun","Mán","Þrið","Mið","Fim","Fös","Lau"],dayOfWeek:["Sunnudagur","Mánudagur","Þriðjudagur","Miðvikudagur","Fimmtudagur","Föstudagur","Laugardagur"]},bg:{months:["Януари","Февруари","Март","Април","Май","Юни","Юли","Август","Септември","Октомври","Ноември","Декември"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неделя","Понеделник","Вторник","Сряда","Четвъртък","Петък","Събота"]},fa:{months:["فروردین","اردیبهشت","خرداد","تیر","مرداد","شهریور","مهر","آبان","آذر","دی","بهمن","اسفند"],dayOfWeekShort:["یکشنبه","دوشنبه","سه شنبه","چهارشنبه","پنجشنبه","جمعه","شنبه"],dayOfWeek:["یک‌شنبه","دوشنبه","سه‌شنبه","چهارشنبه","پنج‌شنبه","جمعه","شنبه","یک‌شنبه"]},ru:{months:["Январь","Февраль","Март","Апрель","Май","Июнь","Июль","Август","Сентябрь","Октябрь","Ноябрь","Декабрь"],dayOfWeekShort:["Вс","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Воскресенье","Понедельник","Вторник","Среда","Четверг","Пятница","Суббота"]},uk:{months:["Січень","Лютий","Березень","Квітень","Травень","Червень","Липень","Серпень","Вересень","Жовтень","Листопад","Грудень"],dayOfWeekShort:["Нд","Пн","Вт","Ср","Чт","Пт","Сб"],dayOfWeek:["Неділя","Понеділок","Вівторок","Середа","Четвер","П'ятниця","Субота"]},en:{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},el:{months:["Ιανουάριος","Φεβρουάριος","Μάρτιος","Απρίλιος","Μάιος","Ιούνιος","Ιούλιος","Αύγουστος","Σεπτέμβριος","Οκτώβριος","Νοέμβριος","Δεκέμβριος"],dayOfWeekShort:["Κυρ","Δευ","Τρι","Τετ","Πεμ","Παρ","Σαβ"],dayOfWeek:["Κυριακή","Δευτέρα","Τρίτη","Τετάρτη","Πέμπτη","Παρασκευή","Σάββατο"]},de:{months:["Januar","Februar","März","April","Mai","Juni","Juli","August","September","Oktober","November","Dezember"],dayOfWeekShort:["So","Mo","Di","Mi","Do","Fr","Sa"],dayOfWeek:["Sonntag","Montag","Dienstag","Mittwoch","Donnerstag","Freitag","Samstag"]},nl:{months:["januari","februari","maart","april","mei","juni","juli","augustus","september","oktober","november","december"],dayOfWeekShort:["zo","ma","di","wo","do","vr","za"],dayOfWeek:["zondag","maandag","dinsdag","woensdag","donderdag","vrijdag","zaterdag"]},tr:{months:["Ocak","Şubat","Mart","Nisan","Mayıs","Haziran","Temmuz","Ağustos","Eylül","Ekim","Kasım","Aralık"],dayOfWeekShort:["Paz","Pts","Sal","Çar","Per","Cum","Cts"],dayOfWeek:["Pazar","Pazartesi","Salı","Çarşamba","Perşembe","Cuma","Cumartesi"]},fr:{months:["Janvier","Février","Mars","Avril","Mai","Juin","Juillet","Août","Septembre","Octobre","Novembre","Décembre"],dayOfWeekShort:["Dim","Lun","Mar","Mer","Jeu","Ven","Sam"],dayOfWeek:["dimanche","lundi","mardi","mercredi","jeudi","vendredi","samedi"]},es:{months:["Enero","Febrero","Marzo","Abril","Mayo","Junio","Julio","Agosto","Septiembre","Octubre","Noviembre","Diciembre"],dayOfWeekShort:["Dom","Lun","Mar","Mié","Jue","Vie","Sáb"],dayOfWeek:["Domingo","Lunes","Martes","Miércoles","Jueves","Viernes","Sábado"]},th:{months:["มกราคม","กุมภาพันธ์","มีนาคม","เมษายน","พฤษภาคม","มิถุนายน","กรกฎาคม","สิงหาคม","กันยายน","ตุลาคม","พฤศจิกายน","ธันวาคม"],dayOfWeekShort:["อา.","จ.","อ.","พ.","พฤ.","ศ.","ส."],dayOfWeek:["อาทิตย์","จันทร์","อังคาร","พุธ","พฤหัส","ศุกร์","เสาร์","อาทิตย์"]},pl:{months:["styczeń","luty","marzec","kwiecień","maj","czerwiec","lipiec","sierpień","wrzesień","październik","listopad","grudzień"],dayOfWeekShort:["nd","pn","wt","śr","cz","pt","sb"],dayOfWeek:["niedziela","poniedziałek","wtorek","środa","czwartek","piątek","sobota"]},pt:{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sab"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},ch:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"]},se:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"]},km:{months:["មករា​","កុម្ភៈ","មិនា​","មេសា​","ឧសភា​","មិថុនា​","កក្កដា​","សីហា​","កញ្ញា​","តុលា​","វិច្ឆិកា","ធ្នូ​"],dayOfWeekShort:["អាទិ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហ​​","សុក្រ​","សៅរ៍"],dayOfWeek:["អាទិត្យ​","ច័ន្ទ​","អង្គារ​","ពុធ​","ព្រហស្បតិ៍​","សុក្រ​","សៅរ៍"]},kr:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},it:{months:["Gennaio","Febbraio","Marzo","Aprile","Maggio","Giugno","Luglio","Agosto","Settembre","Ottobre","Novembre","Dicembre"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Gio","Ven","Sab"],dayOfWeek:["Domenica","Lunedì","Martedì","Mercoledì","Giovedì","Venerdì","Sabato"]},da:{months:["Januar","Februar","Marts","April","Maj","Juni","Juli","August","September","Oktober","November","December"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["søndag","mandag","tirsdag","onsdag","torsdag","fredag","lørdag"]},no:{months:["Januar","Februar","Mars","April","Mai","Juni","Juli","August","September","Oktober","November","Desember"],dayOfWeekShort:["Søn","Man","Tir","Ons","Tor","Fre","Lør"],dayOfWeek:["Søndag","Mandag","Tirsdag","Onsdag","Torsdag","Fredag","Lørdag"]},ja:{months:["1月","2月","3月","4月","5月","6月","7月","8月","9月","10月","11月","12月"],dayOfWeekShort:["日","月","火","水","木","金","土"],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"],dayOfWeekShort:["CN","T2","T3","T4","T5","T6","T7"],dayOfWeek:["Chủ nhật","Thứ hai","Thứ ba","Thứ tư","Thứ năm","Thứ sáu","Thứ bảy"]},sl:{months:["Januar","Februar","Marec","April","Maj","Junij","Julij","Avgust","September","Oktober","November","December"],dayOfWeekShort:["Ned","Pon","Tor","Sre","Čet","Pet","Sob"],dayOfWeek:["Nedelja","Ponedeljek","Torek","Sreda","Četrtek","Petek","Sobota"]},cs:{months:["Leden","Únor","Březen","Duben","Květen","Červen","Červenec","Srpen","Září","Říjen","Listopad","Prosinec"],dayOfWeekShort:["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"],dayOfWeekShort:["Va","Hé","Ke","Sze","Cs","Pé","Szo"],dayOfWeek:["vasárnap","hétfő","kedd","szerda","csütörtök","péntek","szombat"]},az:{months:["Yanvar","Fevral","Mart","Aprel","May","Iyun","Iyul","Avqust","Sentyabr","Oktyabr","Noyabr","Dekabr"],dayOfWeekShort:["B","Be","Ça","Ç","Ca","C","Ş"],dayOfWeek:["Bazar","Bazar ertəsi","Çərşənbə axşamı","Çərşənbə","Cümə axşamı","Cümə","Şənbə"]},bs:{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ca:{months:["Gener","Febrer","Març","Abril","Maig","Juny","Juliol","Agost","Setembre","Octubre","Novembre","Desembre"],dayOfWeekShort:["Dg","Dl","Dt","Dc","Dj","Dv","Ds"],dayOfWeek:["Diumenge","Dilluns","Dimarts","Dimecres","Dijous","Divendres","Dissabte"]},"en-GB":{months:["January","February","March","April","May","June","July","August","September","October","November","December"],dayOfWeekShort:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],dayOfWeek:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},et:{months:["Jaanuar","Veebruar","Märts","Aprill","Mai","Juuni","Juuli","August","September","Oktoober","November","Detsember"],dayOfWeekShort:["P","E","T","K","N","R","L"],dayOfWeek:["Pühapäev","Esmaspäev","Teisipäev","Kolmapäev","Neljapäev","Reede","Laupäev"]},eu:{months:["Urtarrila","Otsaila","Martxoa","Apirila","Maiatza","Ekaina","Uztaila","Abuztua","Iraila","Urria","Azaroa","Abendua"],dayOfWeekShort:["Ig.","Al.","Ar.","Az.","Og.","Or.","La."],dayOfWeek:["Igandea","Astelehena","Asteartea","Asteazkena","Osteguna","Ostirala","Larunbata"]},fi:{months:["Tammikuu","Helmikuu","Maaliskuu","Huhtikuu","Toukokuu","Kesäkuu","Heinäkuu","Elokuu","Syyskuu","Lokakuu","Marraskuu","Joulukuu"],dayOfWeekShort:["Su","Ma","Ti","Ke","To","Pe","La"],dayOfWeek:["sunnuntai","maanantai","tiistai","keskiviikko","torstai","perjantai","lauantai"]},gl:{months:["Xan","Feb","Maz","Abr","Mai","Xun","Xul","Ago","Set","Out","Nov","Dec"],dayOfWeekShort:["Dom","Lun","Mar","Mer","Xov","Ven","Sab"],dayOfWeek:["Domingo","Luns","Martes","Mércores","Xoves","Venres","Sábado"]},hr:{months:["Siječanj","Veljača","Ožujak","Travanj","Svibanj","Lipanj","Srpanj","Kolovoz","Rujan","Listopad","Studeni","Prosinac"],dayOfWeekShort:["Ned","Pon","Uto","Sri","Čet","Pet","Sub"],dayOfWeek:["Nedjelja","Ponedjeljak","Utorak","Srijeda","Četvrtak","Petak","Subota"]},ko:{months:["1월","2월","3월","4월","5월","6월","7월","8월","9월","10월","11월","12월"],dayOfWeekShort:["일","월","화","수","목","금","토"],dayOfWeek:["일요일","월요일","화요일","수요일","목요일","금요일","토요일"]},lt:{months:["Sausio","Vasario","Kovo","Balandžio","Gegužės","Birželio","Liepos","Rugpjūčio","Rugsėjo","Spalio","Lapkričio","Gruodžio"],dayOfWeekShort:["Sek","Pir","Ant","Tre","Ket","Pen","Šeš"],dayOfWeek:["Sekmadienis","Pirmadienis","Antradienis","Trečiadienis","Ketvirtadienis","Penktadienis","Šeštadienis"]},lv:{months:["Janvāris","Februāris","Marts","Aprīlis ","Maijs","Jūnijs","Jūlijs","Augusts","Septembris","Oktobris","Novembris","Decembris"],dayOfWeekShort:["Sv","Pr","Ot","Tr","Ct","Pk","St"],dayOfWeek:["Svētdiena","Pirmdiena","Otrdiena","Trešdiena","Ceturtdiena","Piektdiena","Sestdiena"]},mk:{months:["јануари","февруари","март","април","мај","јуни","јули","август","септември","октомври","ноември","декември"],dayOfWeekShort:["нед","пон","вто","сре","чет","пет","саб"],dayOfWeek:["Недела","Понеделник","Вторник","Среда","Четврток","Петок","Сабота"]},mn:{months:["1-р сар","2-р сар","3-р сар","4-р сар","5-р сар","6-р сар","7-р сар","8-р сар","9-р сар","10-р сар","11-р сар","12-р сар"],dayOfWeekShort:["Дав","Мяг","Лха","Пүр","Бсн","Бям","Ням"],dayOfWeek:["Даваа","Мягмар","Лхагва","Пүрэв","Баасан","Бямба","Ням"]},"pt-BR":{months:["Janeiro","Fevereiro","Março","Abril","Maio","Junho","Julho","Agosto","Setembro","Outubro","Novembro","Dezembro"],dayOfWeekShort:["Dom","Seg","Ter","Qua","Qui","Sex","Sáb"],dayOfWeek:["Domingo","Segunda","Terça","Quarta","Quinta","Sexta","Sábado"]},sk:{months:["Január","Február","Marec","Apríl","Máj","Jún","Júl","August","September","Október","November","December"],dayOfWeekShort:["Ne","Po","Ut","St","Št","Pi","So"],dayOfWeek:["Nedeľa","Pondelok","Utorok","Streda","Štvrtok","Piatok","Sobota"]},sq:{months:["Janar","Shkurt","Mars","Prill","Maj","Qershor","Korrik","Gusht","Shtator","Tetor","Nëntor","Dhjetor"],dayOfWeekShort:["Die","Hën","Mar","Mër","Enj","Pre","Shtu"],dayOfWeek:["E Diel","E Hënë","E Martē","E Mërkurë","E Enjte","E Premte","E Shtunë"]},"sr-YU":{months:["Januar","Februar","Mart","April","Maj","Jun","Jul","Avgust","Septembar","Oktobar","Novembar","Decembar"],dayOfWeekShort:["Ned","Pon","Uto","Sre","čet","Pet","Sub"],dayOfWeek:["Nedelja","Ponedeljak","Utorak","Sreda","Četvrtak","Petak","Subota"]},sr:{months:["јануар","фебруар","март","април","мај","јун","јул","август","септембар","октобар","новембар","децембар"],dayOfWeekShort:["нед","пон","уто","сре","чет","пет","суб"],dayOfWeek:["Недеља","Понедељак","Уторак","Среда","Четвртак","Петак","Субота"]},sv:{months:["Januari","Februari","Mars","April","Maj","Juni","Juli","Augusti","September","Oktober","November","December"],dayOfWeekShort:["Sön","Mån","Tis","Ons","Tor","Fre","Lör"],dayOfWeek:["Söndag","Måndag","Tisdag","Onsdag","Torsdag","Fredag","Lördag"]},"zh-TW":{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},zh:{months:["一月","二月","三月","四月","五月","六月","七月","八月","九月","十月","十一月","十二月"],dayOfWeekShort:["日","一","二","三","四","五","六"],dayOfWeek:["星期日","星期一","星期二","星期三","星期四","星期五","星期六"]},ug:{months:["1-ئاي","2-ئاي","3-ئاي","4-ئاي","5-ئاي","6-ئاي","7-ئاي","8-ئاي","9-ئاي","10-ئاي","11-ئاي","12-ئاي"],dayOfWeek:["يەكشەنبە","دۈشەنبە","سەيشەنبە","چارشەنبە","پەيشەنبە","جۈمە","شەنبە"]},he:{months:["ינואר","פברואר","מרץ","אפריל","מאי","יוני","יולי","אוגוסט","ספטמבר","אוקטובר","נובמבר","דצמבר"],dayOfWeekShort:["א'","ב'","ג'","ד'","ה'","ו'","שבת"],dayOfWeek:["ראשון","שני","שלישי","רביעי","חמישי","שישי","שבת","ראשון"]},hy:{months:["Հունվար","Փետրվար","Մարտ","Ապրիլ","Մայիս","Հունիս","Հուլիս","Օգոստոս","Սեպտեմբեր","Հոկտեմբեր","Նոյեմբեր","Դեկտեմբեր"],dayOfWeekShort:["Կի","Երկ","Երք","Չոր","Հնգ","Ուրբ","Շբթ"],dayOfWeek:["Կիրակի","Երկուշաբթի","Երեքշաբթի","Չորեքշաբթի","Հինգշաբթի","Ուրբաթ","Շաբաթ"]},kg:{months:["Үчтүн айы","Бирдин айы","Жалган Куран","Чын Куран","Бугу","Кулжа","Теке","Баш Оона","Аяк Оона","Тогуздун айы","Жетинин айы","Бештин айы"],dayOfWeekShort:["Жек","Дүй","Шей","Шар","Бей","Жум","Ише"],dayOfWeek:["Жекшемб","Дүйшөмб","Шейшемб","Шаршемб","Бейшемби","Жума","Ишенб"]},rm:{months:["Schaner","Favrer","Mars","Avrigl","Matg","Zercladur","Fanadur","Avust","Settember","October","November","December"],dayOfWeekShort:["Du","Gli","Ma","Me","Gie","Ve","So"],dayOfWeek:["Dumengia","Glindesdi","Mardi","Mesemna","Gievgia","Venderdi","Sonda"]},ka:{months:["იანვარი","თებერვალი","მარტი","აპრილი","მაისი","ივნისი","ივლისი","აგვისტო","სექტემბერი","ოქტომბერი","ნოემბერი","დეკემბერი"],dayOfWeekShort:["კვ","ორშ","სამშ","ოთხ","ხუთ","პარ","შაბ"],dayOfWeek:["კვირა","ორშაბათი","სამშაბათი","ოთხშაბათი","ხუთშაბათი","პარასკევი","შაბათი"]},kk:{months:["Қаңтар","Ақпан","Наурыз","Сәуір","Мамыр","Маусым","Шілде","Тамыз","Қыркүйек","Қазан","Қараша","Желтоқсан"],dayOfWeekShort:["Жк","Дс","Сс","Ср","Бс","Жм","Сб"],dayOfWeek:["Жексенбі","Дүйсенбі","Сейсенбі","Сәрсенбі","Бейсенбі","Жұма","Сенбі"]}},ownerDocument:document,contentWindow:window,value:"",rtl:!1,format:"Y/m/d H:i",formatTime:"H:i",formatDate:"Y/m/d",startDate:!1,step:60,monthChangeSpinner:!0,closeOnDateSelect:!1,closeOnTimeSelect:!0,closeOnWithoutClick:!0,closeOnInputClick:!0,openOnFocus:!0,timepicker:!0,datepicker:!0,weeks:!1,defaultTime:!1,defaultDate:!1,minDate:!1,maxDate:!1,minTime:!1,maxTime:!1,minDateTime:!1,maxDateTime:!1,allowTimes:[],opened:!1,initTime:!0,inline:!1,theme:"",touchMovedThreshold:5,onSelectDate:function(){},onSelectTime:function(){},onChangeMonth:function(){},onGetWeekOfYear: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,prevButton:!0,nextButton:!0,defaultSelect:!0,scrollMonth:!0,scrollTime:!0,scrollInput:!0,lazyInit:!1,mask:!1,validateOnBlur:!0,allowBlank:!0,yearStart:1950,yearEnd:2050,monthStart:0,monthEnd:11,style:"",id:"",fixed:!1,roundTime:"round",className:"",weekends:[],highlightedDates:[],highlightedPeriods:[],allowDates:[],allowDateRe:null,disabledDates:[],disabledWeekDays:[],yearOffset:0,beforeShowDay:null,enterLikeTab:!0,showApplyButton:!1,insideParent:!1},L=null,a=null,E="en",o={meridiem:["AM","PM"]},r={moment:{default_options:{format:"YYYY/MM/DD HH:mm",formatDate:"YYYY/MM/DD",formatTime:"HH:mm"},formatter:{parseDate:function(e,t){if(i(t))return a.parseDate(e,t);t=moment(e,t);return!!t.isValid()&&t.toDate()},formatDate:function(e,t){return i(t)?a.formatDate(e,t):moment(e).format(t)},formatMask:function(e){return e.replace(/Y{4}/g,"9999").replace(/Y{2}/g,"99").replace(/M{2}/g,"19").replace(/D{2}/g,"39").replace(/H{2}/g,"29").replace(/m{2}/g,"59").replace(/s{2}/g,"59")}}}};I.datetimepicker={setLocale:function(e){e=s.i18n[e]?e:"en";E!==e&&(E=e,t())},setDateFormatter:function(e){var t;L="string"==typeof e&&r.hasOwnProperty(e)?(t=r[e],I.extend(s,t.default_options),t.formatter):e}};var n={RFC_2822:"D, d M Y H:i:s O",ATOM:"Y-m-dTH:i:sP",ISO_8601:"Y-m-dTH:i:sO",RFC_822:"D, d M y H:i:s O",RFC_850:"l, d-M-y H:i:s T",RFC_1036:"D, d M y H:i:s O",RFC_1123:"D, d M Y H:i:s O",RSS:"D, d M Y H:i:s O",W3C:"Y-m-dTH:i:sP"},i=function(e){return-1!==Object.values(n).indexOf(e)};function V(e,t,a){this.date=e,this.desc=t,this.style=a}I.extend(I.datetimepicker,n),t(),window.getComputedStyle||(window.getComputedStyle=function(a){return this.el=a,this.getPropertyValue=function(e){var t=/(-([a-z]))/g;return"float"===e&&(e="styleFloat"),t.test(e)&&(e=e.replace(t,function(e,t,a){return a.toUpperCase()})),a.currentStyle[e]||null},this}),Array.prototype.indexOf||(Array.prototype.indexOf=function(e,t){for(var a=t||0,o=this.length;a<o;a+=1)if(this[a]===e)return a;return-1}),Date.prototype.countDaysInMonth=function(){return new Date(this.getFullYear(),this.getMonth()+1,0).getDate()},I.fn.xdsoftScroller=function(y,D){return this.each(function(){function t(e){var t,a={x:0,y:0};return"touchstart"===e.type||"touchmove"===e.type||"touchend"===e.type||"touchcancel"===e.type?(t=e.originalEvent.touches[0]||e.originalEvent.changedTouches[0],a.x=t.clientX,a.y=t.clientY):"mousedown"!==e.type&&"mouseup"!==e.type&&"mousemove"!==e.type&&"mouseover"!==e.type&&"mouseout"!==e.type&&"mouseenter"!==e.type&&"mouseleave"!==e.type||(a.x=e.clientX,a.y=e.clientY),a}var n,i,s,d,u,a,l=I(this),f=0,c=100,o=!1,r=0,m=0,h=0,g=!1,p=0;"hide"!==D?(I(this).hasClass("xdsoft_scroller_box")||(n=l.children().eq(0),f=Math.abs(parseInt(n.css("marginTop"),10)),i=l[0].clientHeight,s=n[0].offsetHeight,d=I('<div class="xdsoft_scrollbar"></div>'),u=I('<div class="xdsoft_scroller"></div>'),d.append(u),l.addClass("xdsoft_scroller_box").append(d),a=function(e){e=t(e).y-r+p;e<0&&(e=0),e+u[0].offsetHeight>h&&(e=h-u[0].offsetHeight),l.trigger("scroll_element.xdsoft_scroller",[c?e/c:0])},u.on("touchstart.xdsoft_scroller mousedown.xdsoft_scroller",function(e){i||l.trigger("resize_scroll.xdsoft_scroller",[D]),r=t(e).y,p=parseInt(u.css("marginTop"),10),h=d[0].offsetHeight,"mousedown"===e.type||"touchstart"===e.type?(y.ownerDocument&&I(y.ownerDocument.body).addClass("xdsoft_noselect"),I([y.ownerDocument.body,y.contentWindow]).on("touchend mouseup.xdsoft_scroller",function e(){I([y.ownerDocument.body,y.contentWindow]).off("touchend mouseup.xdsoft_scroller",e).off("mousemove.xdsoft_scroller",a).removeClass("xdsoft_noselect")}),I(y.ownerDocument.body).on("mousemove.xdsoft_scroller",a)):(g=!0,e.stopPropagation(),e.preventDefault())}).on("touchmove",function(e){g&&(e.preventDefault(),a(e))}).on("touchend touchcancel",function(){g=!1,p=0}),l.on("scroll_element.xdsoft_scroller",function(e,t){i||l.trigger("resize_scroll.xdsoft_scroller",[t,!0]),t=1<t?1:t<0||isNaN(t)?0:t,f=parseFloat(Math.abs((n[0].offsetHeight-i)*t).toFixed(4)),u.css("marginTop",c*t),n.css("marginTop",-f)}).on("resize_scroll.xdsoft_scroller",function(e,t,a){var o,r;i=l[0].clientHeight,s=n[0].offsetHeight,r=(o=i/s)*d[0].offsetHeight,1<o?u.hide():(u.show(),u.css("height",parseInt(10<r?r:10,10)),c=d[0].offsetHeight-u[0].offsetHeight,!0!==a&&l.trigger("scroll_element.xdsoft_scroller",[t||f/(s-i)]))}),l.on("mousewheel",function(e){var t,a=(t=e.originalEvent,a=0,"detail"in t&&(a=t.detail),"wheelDelta"in t&&(a=-t.wheelDelta/120),"wheelDeltaY"in t&&(a=-t.wheelDeltaY/120),"axis"in t&&t.axis===t.HORIZONTAL_AXIS&&(a=0),a*=10,"deltaY"in t&&(a=t.deltaY),a&&t.deltaMode&&(1===t.deltaMode?a*=40:a*=800),a),a=Math.max(0,f-a);return l.trigger("scroll_element.xdsoft_scroller",[a/(s-i)]),e.stopPropagation(),!1}),l.on("touchstart",function(e){o=t(e),m=f}),l.on("touchmove",function(e){o&&(e.preventDefault(),e=t(e),l.trigger("scroll_element.xdsoft_scroller",[(m-(e.y-o.y))/(s-i)]))}),l.on("touchend touchcancel",function(){o=!1,m=0})),l.trigger("resize_scroll.xdsoft_scroller",[D])):l.find(".xdsoft_scrollbar").hide()})},I.fn.datetimepicker=function(Y,a){var o=this,g=17,p=13,y=27,D=37,k=38,x=39,b=40,v=9,T=116,S=65,O=67,H=86,j=90,J=89,z=!1,N=I.isPlainObject(Y)||!Y?I.extend(!0,{},s,Y):I.extend(!0,{},s),r=0,n=function(M){var t,o,a,r,w,c,W=I('<div class="xdsoft_datetimepicker xdsoft_noselect"></div>'),e=I('<div class="xdsoft_copyright"><a target="_blank" href="http://xdsoft.net/jqplugins/datetimepicker/">xdsoft.net</a></div>'),m=I('<div class="xdsoft_datepicker active"></div>'),_=I('<div class="xdsoft_monthpicker"><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>'),F=I('<div class="xdsoft_calendar"></div>'),n=I('<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>'),l=n.find(".xdsoft_time_box").eq(0),C=I('<div class="xdsoft_time_variant"></div>'),i=I('<button type="button" class="xdsoft_save_selected blue-gradient-button">Save Selected</button>'),A=I('<div class="xdsoft_select xdsoft_monthselect"><div></div></div>'),P=I('<div class="xdsoft_select xdsoft_yearselect"><div></div></div>'),s=!1,d=0;N.id&&W.attr("id",N.id),N.style&&W.attr("style",N.style),N.weeks&&W.addClass("xdsoft_showweeks"),N.rtl&&W.addClass("xdsoft_rtl"),W.addClass("xdsoft_"+N.theme),W.addClass(N.className),_.find(".xdsoft_month span").after(A),_.find(".xdsoft_year span").after(P),_.find(".xdsoft_month,.xdsoft_year").on("touchstart mousedown.xdsoft",function(e){var t,a,o=I(this).find(".xdsoft_select").eq(0),r=0,n=0,i=o.is(":visible");for(_.find(".xdsoft_select").hide(),w.currentTime&&(r=w.currentTime[I(this).hasClass("xdsoft_month")?"getMonth":"getFullYear"]()),o[i?"hide":"show"](),t=o.find("div.xdsoft_option"),a=0;a<t.length&&t.eq(a).data("value")!==r;a+=1)n+=t[0].offsetHeight;return o.xdsoftScroller(N,n/(o.children()[0].offsetHeight-o[0].clientHeight)),e.stopPropagation(),!1});function u(e){var t=e.originalEvent,e=t.touches?t.touches[0]:t;this.touchStartPosition=this.touchStartPosition||e,t=Math.abs(this.touchStartPosition.clientX-e.clientX),e=Math.abs(this.touchStartPosition.clientY-e.clientY),Math.sqrt(t*t+e*e)>N.touchMovedThreshold&&(this.touchMoved=!0)}function f(){var e,t=!1;return N.startDate?t=w.strToDate(N.startDate):(t=N.value||(M&&M.val&&M.val()?M.val():""))?(t=w.strToDateTime(t),N.yearOffset&&(t=new Date(t.getFullYear()-N.yearOffset,t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()))):N.defaultDate&&(t=w.strToDateTime(N.defaultDate),N.defaultTime&&(e=w.strtotime(N.defaultTime),t.setHours(e.getHours()),t.setMinutes(e.getMinutes()))),t&&w.isValidDate(t)?W.data("changed",!0):t="",t||0}function h(c){function m(e,t){return e=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}"),new RegExp(e).test(t)}function h(e,t){if(e="string"==typeof e||e instanceof String?c.ownerDocument.getElementById(e):e){if(e.createTextRange){var a=e.createTextRange();return a.collapse(!0),a.moveEnd("character",t),a.moveStart("character",t),a.select(),1}return!!e.setSelectionRange&&(e.setSelectionRange(t,t),!0)}}c.mask&&M.off("keydown.xdsoft"),!0===c.mask&&(L.formatMask?c.mask=L.formatMask(c.format):c.mask=c.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"==typeof c.mask&&(m(c.mask,M.val())||(M.val(c.mask.replace(/[0-9]/g,"_")),h(M[0],0)),M.on("paste.xdsoft",function(e){var t=(e.clipboardData||e.originalEvent.clipboardData||window.clipboardData).getData("text"),a=this.value,o=this.selectionStart,a=a.substr(0,o)+t+a.substr(o+t.length);return o+=t.length,m(c.mask,a)?(this.value=a,h(this,o)):""===I.trim(a)?this.value=c.mask.replace(/[0-9]/g,"_"):M.trigger("error_input.xdsoft"),e.preventDefault(),!1}),M.on("keydown.xdsoft",function(e){var t,a,o,r=this.value,n=e.which,i=this.selectionStart,s=this.selectionEnd,d=i!==s;if(48<=n&&n<=57||96<=n&&n<=105||8===n||46===n){for(t=8===n||46===n?"_":String.fromCharCode(96<=n&&n<=105?n-48:n),8===n&&i&&!d&&--i;;){var u=c.mask.substr(i,1),l=i<c.mask.length,f=0<i;if(!(/[^0-9_]/.test(u)&&l&&f))break;i+=8!==n||d?1:-1}if(e.metaKey&&(d=!(i=0)),r=d?(a=s-i,s=(o=c.mask.replace(/[0-9]/g,"_")).substr(i,a).substr(1),r.substr(0,i)+(t+s)+r.substr(i+a)):r.substr(0,i)+t+r.substr(i+1),""===I.trim(r))r=o;else if(i===c.mask.length)return e.preventDefault(),!1;for(i+=8===n?0:1;/[^0-9_]/.test(c.mask.substr(i,1))&&i<c.mask.length&&0<i;)i+=8===n?0:1;m(c.mask,r)?(this.value=r,h(this,i)):""===I.trim(r)?this.value=c.mask.replace(/[0-9]/g,"_"):M.trigger("error_input.xdsoft")}else if(-1!==[S,O,H,j,J].indexOf(n)&&z||-1!==[y,k,b,D,x,T,g,v,p].indexOf(n))return!0;return e.preventDefault(),!1}))}_.find(".xdsoft_select").xdsoftScroller(N).on("touchstart mousedown.xdsoft",function(e){var t=e.originalEvent;this.touchMoved=!1,this.touchStartPosition=t.touches?t.touches[0]:t,e.stopPropagation(),e.preventDefault()}).on("touchmove",".xdsoft_option",u).on("touchend mousedown.xdsoft",".xdsoft_option",function(){var e;this.touchMoved||(void 0!==w.currentTime&&null!==w.currentTime||(w.currentTime=w.now()),e=w.currentTime.getFullYear(),w&&w.currentTime&&w.currentTime[I(this).parent().parent().hasClass("xdsoft_monthselect")?"setMonth":"setFullYear"](I(this).data("value")),I(this).parent().parent().hide(),W.trigger("xchange.xdsoft"),N.onChangeMonth&&"function"==typeof N.onChangeMonth&&N.onChangeMonth.call(W,w.currentTime,W.data("input")),e!==w.currentTime.getFullYear()&&"function"==typeof N.onChangeYear&&N.onChangeYear.call(W,w.currentTime,W.data("input")))}),W.getValue=function(){return w.getCurrentTime()},W.setOptions=function(e){var u={};N=I.extend(!0,{},N,e),e.allowTimes&&Array.isArray(e.allowTimes)&&e.allowTimes.length&&(N.allowTimes=I.extend(!0,[],e.allowTimes)),e.weekends&&Array.isArray(e.weekends)&&e.weekends.length&&(N.weekends=I.extend(!0,[],e.weekends)),e.allowDates&&Array.isArray(e.allowDates)&&e.allowDates.length&&(N.allowDates=I.extend(!0,[],e.allowDates)),e.allowDateRe&&"[object String]"===Object.prototype.toString.call(e.allowDateRe)&&(N.allowDateRe=new RegExp(e.allowDateRe)),e.highlightedDates&&Array.isArray(e.highlightedDates)&&e.highlightedDates.length&&(I.each(e.highlightedDates,function(e,t){var a=I.map(t.split(","),I.trim),o=new V(L.parseDate(a[0],N.formatDate),a[1],a[2]),t=L.formatDate(o.date,N.formatDate);void 0!==u[t]?(a=u[t].desc)&&a.length&&o.desc&&o.desc.length&&(u[t].desc=a+"\n"+o.desc):u[t]=o}),N.highlightedDates=I.extend(!0,[],u)),e.highlightedPeriods&&Array.isArray(e.highlightedPeriods)&&e.highlightedPeriods.length&&(u=I.extend(!0,[],N.highlightedDates),I.each(e.highlightedPeriods,function(e,t){var a,o,r,n,i,s,d;for(d=Array.isArray(t)?(n=t[0],i=t[1],s=t[2],t[3]):(t=I.map(t.split(","),I.trim),n=L.parseDate(t[0],N.formatDate),i=L.parseDate(t[1],N.formatDate),s=t[2],t[3]);n<=i;)a=new V(n,s,d),o=L.formatDate(n,N.formatDate),n.setDate(n.getDate()+1),void 0!==u[o]?(r=u[o].desc)&&r.length&&a.desc&&a.desc.length&&(u[o].desc=r+"\n"+a.desc):u[o]=a}),N.highlightedDates=I.extend(!0,[],u)),e.disabledDates&&Array.isArray(e.disabledDates)&&e.disabledDates.length&&(N.disabledDates=I.extend(!0,[],e.disabledDates)),e.disabledWeekDays&&Array.isArray(e.disabledWeekDays)&&e.disabledWeekDays.length&&(N.disabledWeekDays=I.extend(!0,[],e.disabledWeekDays)),!N.open&&!N.opened||N.inline||M.trigger("open.xdsoft"),N.inline&&(s=!0,W.addClass("xdsoft_inline"),M.after(W).hide()),N.inverseButton&&(N.next="xdsoft_prev",N.prev="xdsoft_next"),N.datepicker?m.addClass("active"):m.removeClass("active"),N.timepicker?n.addClass("active"):n.removeClass("active"),N.value&&(w.setCurrentTime(N.value),M&&M.val&&M.val(w.str)),isNaN(N.dayOfWeekStart)?N.dayOfWeekStart=0:N.dayOfWeekStart=parseInt(N.dayOfWeekStart,10)%7,N.timepickerScrollbar||l.xdsoftScroller(N,"hide"),N.minDate&&/^[\+\-](.*)$/.test(N.minDate)&&(N.minDate=L.formatDate(w.strToDateTime(N.minDate),N.formatDate)),N.maxDate&&/^[\+\-](.*)$/.test(N.maxDate)&&(N.maxDate=L.formatDate(w.strToDateTime(N.maxDate),N.formatDate)),N.minDateTime&&/^\+(.*)$/.test(N.minDateTime)&&(N.minDateTime=w.strToDateTime(N.minDateTime).dateFormat(N.formatDate)),N.maxDateTime&&/^\+(.*)$/.test(N.maxDateTime)&&(N.maxDateTime=w.strToDateTime(N.maxDateTime).dateFormat(N.formatDate)),i.toggle(N.showApplyButton),_.find(".xdsoft_today_button").css("visibility",N.todayButton?"visible":"hidden"),_.find("."+N.prev).css("visibility",N.prevButton?"visible":"hidden"),_.find("."+N.next).css("visibility",N.nextButton?"visible":"hidden"),h(N),N.validateOnBlur&&M.off("blur.xdsoft").on("blur.xdsoft",function(){var e,t;N.allowBlank&&(!I.trim(I(this).val()).length||"string"==typeof N.mask&&I.trim(I(this).val())===N.mask.replace(/[0-9]/g,"_"))?(I(this).val(null),W.data("xdsoft_datetime").empty()):((t=L.parseDate(I(this).val(),N.format))?I(this).val(L.formatDate(t,N.format)):(e=+[I(this).val()[0],I(this).val()[1]].join(""),t=+[I(this).val()[2],I(this).val()[3]].join(""),!N.datepicker&&N.timepicker&&0<=e&&e<24&&0<=t&&t<60?I(this).val([e,t].map(function(e){return 9<e?e:"0"+e}).join(":")):I(this).val(L.formatDate(w.now(),N.format))),W.data("xdsoft_datetime").setCurrentTime(I(this).val())),W.trigger("changedatetime.xdsoft"),W.trigger("close.xdsoft")}),N.dayOfWeekStartPrev=0===N.dayOfWeekStart?6:N.dayOfWeekStart-1,W.trigger("xchange.xdsoft").trigger("afterOpen.xdsoft")},W.data("options",N).on("touchstart mousedown.xdsoft",function(e){return e.stopPropagation(),e.preventDefault(),P.hide(),A.hide(),!1}),l.append(C),l.xdsoftScroller(N),W.on("afterOpen.xdsoft",function(){l.xdsoftScroller(N)}),W.append(m).append(n),!0!==N.withoutCopyright&&W.append(e),m.append(_).append(F).append(i),(N.insideParent?I(M).parent():I(N.parentID)).append(W),w=new function(){var o=this;o.now=function(e){var t,a=new Date;return!e&&N.defaultDate&&(t=o.strToDateTime(N.defaultDate),a.setFullYear(t.getFullYear()),a.setMonth(t.getMonth()),a.setDate(t.getDate())),a.setFullYear(a.getFullYear()),!e&&N.defaultTime&&(e=o.strtotime(N.defaultTime),a.setHours(e.getHours()),a.setMinutes(e.getMinutes()),a.setSeconds(e.getSeconds()),a.setMilliseconds(e.getMilliseconds())),a},o.isValidDate=function(e){return"[object Date]"===Object.prototype.toString.call(e)&&!isNaN(e.getTime())},o.setCurrentTime=function(e,t){"string"==typeof e?o.currentTime=o.strToDateTime(e):o.isValidDate(e)?o.currentTime=e:e||t||!N.allowBlank||N.inline?o.currentTime=o.now():o.currentTime=null,W.trigger("xchange.xdsoft")},o.empty=function(){o.currentTime=null},o.getCurrentTime=function(){return o.currentTime},o.nextMonth=function(){void 0!==o.currentTime&&null!==o.currentTime||(o.currentTime=o.now());var e,t=o.currentTime.getMonth()+1;return 12===t&&(o.currentTime.setFullYear(o.currentTime.getFullYear()+1),t=0),e=o.currentTime.getFullYear(),o.currentTime.setDate(Math.min(new Date(o.currentTime.getFullYear(),t+1,0).getDate(),o.currentTime.getDate())),o.currentTime.setMonth(t),N.onChangeMonth&&"function"==typeof N.onChangeMonth&&N.onChangeMonth.call(W,w.currentTime,W.data("input")),e!==o.currentTime.getFullYear()&&"function"==typeof N.onChangeYear&&N.onChangeYear.call(W,w.currentTime,W.data("input")),W.trigger("xchange.xdsoft"),t},o.prevMonth=function(){void 0!==o.currentTime&&null!==o.currentTime||(o.currentTime=o.now());var e=o.currentTime.getMonth()-1;return-1===e&&(o.currentTime.setFullYear(o.currentTime.getFullYear()-1),e=11),o.currentTime.setDate(Math.min(new Date(o.currentTime.getFullYear(),e+1,0).getDate(),o.currentTime.getDate())),o.currentTime.setMonth(e),N.onChangeMonth&&"function"==typeof N.onChangeMonth&&N.onChangeMonth.call(W,w.currentTime,W.data("input")),W.trigger("xchange.xdsoft"),e},o.getWeekOfYear=function(e){if(N.onGetWeekOfYear&&"function"==typeof N.onGetWeekOfYear){var t=N.onGetWeekOfYear.call(W,e);if(void 0!==t)return t}t=new Date(e.getFullYear(),0,1);return 4!==t.getDay()&&t.setMonth(0,1+(4-t.getDay()+7)%7),Math.ceil(((e-t)/864e5+t.getDay()+1)/7)},o.strToDateTime=function(e){var t,a=[];return e&&e instanceof Date&&o.isValidDate(e)||((a=/^([+-]{1})(.*)$/.exec(e))&&(a[2]=L.parseDate(a[2],N.formatDate)),e=a&&a[2]?(t=a[2].getTime()-6e4*a[2].getTimezoneOffset(),new Date(o.now(!0).getTime()+parseInt(a[1]+"1",10)*t)):e?L.parseDate(e,N.format):o.now(),o.isValidDate(e)||(e=o.now())),e},o.strToDate=function(e){if(e&&e instanceof Date&&o.isValidDate(e))return e;e=e?L.parseDate(e,N.formatDate):o.now(!0);return o.isValidDate(e)||(e=o.now(!0)),e},o.strtotime=function(e){if(e&&e instanceof Date&&o.isValidDate(e))return e;e=e?L.parseDate(e,N.formatTime):o.now(!0);return o.isValidDate(e)||(e=o.now(!0)),e},o.str=function(){var e=N.format;return N.yearOffset&&(e=(e=e.replace("Y",o.currentTime.getFullYear()+N.yearOffset)).replace("y",String(o.currentTime.getFullYear()+N.yearOffset).substring(2,4))),L.formatDate(o.currentTime,e)},o.currentTime=this.now()},i.on("touchend click",function(e){e.preventDefault(),W.data("changed",!0),w.setCurrentTime(f()),M.val(w.str()),W.trigger("close.xdsoft")}),_.find(".xdsoft_today_button").on("touchend mousedown.xdsoft",function(){W.data("changed",!0),w.setCurrentTime(0,!0),W.trigger("afterOpen.xdsoft")}).on("dblclick.xdsoft",function(){var e=w.getCurrentTime(),e=new Date(e.getFullYear(),e.getMonth(),e.getDate()),t=w.strToDate(N.minDate);e<(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()))||(t=w.strToDate(N.maxDate),(t=new Date(t.getFullYear(),t.getMonth(),t.getDate()))<e||(M.val(w.str()),M.trigger("change"),W.trigger("close.xdsoft")))}),_.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var a=I(this),o=0,r=!1;!function e(t){a.hasClass(N.next)?w.nextMonth():a.hasClass(N.prev)&&w.prevMonth(),N.monthChangeSpinner&&(r||(o=setTimeout(e,t||100)))}(500),I([N.ownerDocument.body,N.contentWindow]).on("touchend mouseup.xdsoft",function e(){clearTimeout(o),r=!0,I([N.ownerDocument.body,N.contentWindow]).off("touchend mouseup.xdsoft",e)})}),n.find(".xdsoft_prev,.xdsoft_next").on("touchend mousedown.xdsoft",function(){var n=I(this),i=0,s=!1,d=110;!function e(t){var a=l[0].clientHeight,o=C[0].offsetHeight,r=Math.abs(parseInt(C.css("marginTop"),10));r<N.timeHeightInTimePicker?r=N.timeHeightInTimePicker:n.hasClass(N.next)&&o-a<r&&C.css("marginTop","-"+o+"px"),n.hasClass(N.next)&&r<o-a?C.css("marginTop","-"+(r+N.timeHeightInTimePicker)+"px"):n.hasClass(N.prev)&&0<=r-N.timeHeightInTimePicker&&C.css("marginTop","-"+(r-N.timeHeightInTimePicker)+"px"),l.trigger("scroll_element.xdsoft_scroller",[Math.abs(parseInt(C[0].style.marginTop,10)/(o-a))]),d=10<d?10:d-10,s||(i=setTimeout(e,t||d))}(500),I([N.ownerDocument.body,N.contentWindow]).on("touchend mouseup.xdsoft",function e(){clearTimeout(i),s=!0,I([N.ownerDocument.body,N.contentWindow]).off("touchend mouseup.xdsoft",e)})}),t=0,W.on("xchange.xdsoft",function(e){clearTimeout(t),t=setTimeout(function(){void 0!==w.currentTime&&null!==w.currentTime&&!isNaN(w.currentTime.getTime())||(w.currentTime=w.now());for(var e,t,a,o,r,n,i,s,d,u="",l=new Date(w.currentTime.getFullYear(),w.currentTime.getMonth(),1,12,0,0),f=0,c=w.now(),m=!1,h=!1,g=!1,p=!1,y=[],D=!0,k="";l.getDay()!==N.dayOfWeekStart;)l.setDate(l.getDate()-1);for(u+="<table><thead><tr>",N.weeks&&(u+="<th></th>"),e=0;e<7;e+=1)u+="<th>"+N.i18n[E].dayOfWeekShort[(e+N.dayOfWeekStart)%7]+"</th>";for(u+="</tr></thead>",u+="<tbody>",!1!==N.maxDate&&(m=w.strToDate(N.maxDate),m=new Date(m.getFullYear(),m.getMonth(),m.getDate(),23,59,59,999)),!1!==N.minDate&&(h=w.strToDate(N.minDate),h=new Date(h.getFullYear(),h.getMonth(),h.getDate())),!1!==N.minDateTime&&(g=w.strToDate(N.minDateTime),g=new Date(g.getFullYear(),g.getMonth(),g.getDate(),g.getHours(),g.getMinutes(),g.getSeconds())),!1!==N.maxDateTime&&(p=w.strToDate(N.maxDateTime),p=new Date(p.getFullYear(),p.getMonth(),p.getDate(),p.getHours(),p.getMinutes(),p.getSeconds())),!1!==p&&(d=31*(12*p.getFullYear()+p.getMonth())+p.getDate());f<w.currentTime.countDaysInMonth()||l.getDay()!==N.dayOfWeekStart||w.currentTime.getMonth()===l.getMonth();){y=[],f+=1,t=l.getDay(),a=l.getDate(),o=l.getFullYear(),T=l.getMonth(),r=w.getWeekOfYear(l),s="",y.push("xdsoft_date"),n=N.beforeShowDay&&"function"==typeof N.beforeShowDay.call?N.beforeShowDay.call(W,l):null,N.allowDateRe&&"[object RegExp]"===Object.prototype.toString.call(N.allowDateRe)&&(N.allowDateRe.test(L.formatDate(l,N.formatDate))||y.push("xdsoft_disabled")),N.allowDates&&0<N.allowDates.length&&-1===N.allowDates.indexOf(L.formatDate(l,N.formatDate))&&y.push("xdsoft_disabled");var x=31*(12*l.getFullYear()+l.getMonth())+l.getDate();(!1!==m&&m<l||!1!==g&&l<g||!1!==h&&l<h||!1!==p&&d<x||n&&!1===n[0])&&y.push("xdsoft_disabled"),-1!==N.disabledDates.indexOf(L.formatDate(l,N.formatDate))&&y.push("xdsoft_disabled"),-1!==N.disabledWeekDays.indexOf(t)&&y.push("xdsoft_disabled"),M.is("[disabled]")&&y.push("xdsoft_disabled"),n&&""!==n[1]&&y.push(n[1]),w.currentTime.getMonth()!==T&&y.push("xdsoft_other_month"),(N.defaultSelect||W.data("changed"))&&L.formatDate(w.currentTime,N.formatDate)===L.formatDate(l,N.formatDate)&&y.push("xdsoft_current"),L.formatDate(c,N.formatDate)===L.formatDate(l,N.formatDate)&&y.push("xdsoft_today"),0!==l.getDay()&&6!==l.getDay()&&-1===N.weekends.indexOf(L.formatDate(l,N.formatDate))||y.push("xdsoft_weekend"),void 0!==N.highlightedDates[L.formatDate(l,N.formatDate)]&&(n=N.highlightedDates[L.formatDate(l,N.formatDate)],y.push(void 0===n.style?"xdsoft_highlighted_default":n.style),s=void 0===n.desc?"":n.desc),N.beforeShowDay&&"function"==typeof N.beforeShowDay&&y.push(N.beforeShowDay(l)),D&&(u+="<tr>",D=!1,N.weeks&&(u+="<th>"+r+"</th>")),u+='<td data-date="'+a+'" data-month="'+T+'" data-year="'+o+'" class="xdsoft_date xdsoft_day_of_week'+l.getDay()+" "+y.join(" ")+'" title="'+s+'"><div>'+a+"</div></td>",l.getDay()===N.dayOfWeekStartPrev&&(u+="</tr>",D=!0),l.setDate(a+1)}u+="</tbody></table>",F.html(u),_.find(".xdsoft_label span").eq(0).text(N.i18n[E].months[w.currentTime.getMonth()]),_.find(".xdsoft_label span").eq(1).text(w.currentTime.getFullYear()+N.yearOffset),T=k="";var b=0;!1!==N.minTime&&(b=60*(v=w.strtotime(N.minTime)).getHours()+v.getMinutes());var v,T,S=1440;if(!1!==N.maxTime&&(S=60*(v=w.strtotime(N.maxTime)).getHours()+v.getMinutes()),!1!==N.minDateTime&&(v=w.strToDateTime(N.minDateTime),L.formatDate(w.currentTime,N.formatDate)===L.formatDate(v,N.formatDate)&&(T=60*v.getHours()+v.getMinutes(),b<T&&(b=T))),!1!==N.maxDateTime&&(v=w.strToDateTime(N.maxDateTime),L.formatDate(w.currentTime,N.formatDate)===L.formatDate(v,N.formatDate)&&(T=60*v.getHours()+v.getMinutes())<S&&(S=T)),i=function(e,t){var a=w.now(),o=N.allowTimes&&Array.isArray(N.allowTimes)&&N.allowTimes.length;a.setHours(e),e=parseInt(a.getHours(),10),a.setMinutes(t),t=parseInt(a.getMinutes(),10),y=[];var r=60*e+t;(M.is("[disabled]")||S<=r||r<b)&&y.push("xdsoft_disabled"),(r=new Date(w.currentTime)).setHours(parseInt(w.currentTime.getHours(),10)),o||r.setMinutes(Math[N.roundTime](w.currentTime.getMinutes()/N.step)*N.step),(N.initTime||N.defaultSelect||W.data("changed"))&&r.getHours()===parseInt(e,10)&&(!o&&59<N.step||r.getMinutes()===parseInt(t,10))&&(N.defaultSelect||W.data("changed")?y.push("xdsoft_current"):N.initTime&&y.push("xdsoft_init_time")),parseInt(c.getHours(),10)===parseInt(e,10)&&parseInt(c.getMinutes(),10)===parseInt(t,10)&&y.push("xdsoft_today"),k+='<div class="xdsoft_time '+y.join(" ")+'" data-hour="'+e+'" data-minute="'+t+'">'+L.formatDate(a,N.formatTime)+"</div>"},N.allowTimes&&Array.isArray(N.allowTimes)&&N.allowTimes.length)for(f=0;f<N.allowTimes.length;f+=1)i(w.strtotime(N.allowTimes[f]).getHours(),T=w.strtotime(N.allowTimes[f]).getMinutes());else for(e=f=0;f<(N.hours12?12:24);f+=1)for(e=0;e<60;e+=N.step){var O=60*f+e;O<b||S<=O||i((f<10?"0":"")+f,T=(e<10?"0":"")+e)}for(C.html(k),Y="",f=parseInt(N.yearStart,10);f<=parseInt(N.yearEnd,10);f+=1)Y+='<div class="xdsoft_option '+(w.currentTime.getFullYear()===f?"xdsoft_current":"")+'" data-value="'+f+'">'+(f+N.yearOffset)+"</div>";for(P.children().eq(0).html(Y),f=parseInt(N.monthStart,10),Y="";f<=parseInt(N.monthEnd,10);f+=1)Y+='<div class="xdsoft_option '+(w.currentTime.getMonth()===f?"xdsoft_current":"")+'" data-value="'+f+'">'+N.i18n[E].months[f]+"</div>";A.children().eq(0).html(Y),I(W).trigger("generate.xdsoft")},10),e.stopPropagation()}).on("afterOpen.xdsoft",function(){var e,t,a;N.timepicker&&(C.find(".xdsoft_current").length?a=".xdsoft_current":C.find(".xdsoft_init_time").length&&(a=".xdsoft_init_time"),a?(e=l[0].clientHeight,(t=C[0].offsetHeight)-e<(a=C.find(a).index()*N.timeHeightInTimePicker+1)&&(a=t-e),l.trigger("scroll_element.xdsoft_scroller",[parseInt(a,10)/(t-e)])):l.trigger("scroll_element.xdsoft_scroller",[0]))}),o=0,F.on("touchend click.xdsoft","td",function(e){e.stopPropagation(),o+=1;var t=I(this),a=w.currentTime;if(null==a&&(w.currentTime=w.now(),a=w.currentTime),t.hasClass("xdsoft_disabled"))return!1;a.setDate(1),a.setFullYear(t.data("year")),a.setMonth(t.data("month")),a.setDate(t.data("date")),W.trigger("select.xdsoft",[a]),M.val(w.str()),N.onSelectDate&&"function"==typeof N.onSelectDate&&N.onSelectDate.call(W,w.currentTime,W.data("input"),e),W.data("changed",!0),W.trigger("xchange.xdsoft"),W.trigger("changedatetime.xdsoft"),(1<o||!0===N.closeOnDateSelect||!1===N.closeOnDateSelect&&!N.timepicker)&&!N.inline&&W.trigger("close.xdsoft"),setTimeout(function(){o=0},200)}),C.on("touchstart","div",function(e){this.touchMoved=!1}).on("touchmove","div",u).on("touchend click.xdsoft","div",function(e){if(!this.touchMoved){e.stopPropagation();var t=I(this),a=w.currentTime;if(null==a&&(w.currentTime=w.now(),a=w.currentTime),t.hasClass("xdsoft_disabled"))return!1;a.setHours(t.data("hour")),a.setMinutes(t.data("minute")),W.trigger("select.xdsoft",[a]),W.data("input").val(w.str()),N.onSelectTime&&"function"==typeof N.onSelectTime&&N.onSelectTime.call(W,w.currentTime,W.data("input"),e),W.data("changed",!0),W.trigger("xchange.xdsoft"),W.trigger("changedatetime.xdsoft"),!0!==N.inline&&!0===N.closeOnTimeSelect&&W.trigger("close.xdsoft")}}),m.on("mousewheel.xdsoft",function(e){return!N.scrollMonth||(e.deltaY<0?w.nextMonth():w.prevMonth(),!1)}),M.on("mousewheel.xdsoft",function(e){return!N.scrollInput||(!N.datepicker&&N.timepicker?(0<=(a=C.find(".xdsoft_current").length?C.find(".xdsoft_current").eq(0).index():0)+e.deltaY&&a+e.deltaY<C.children().length&&(a+=e.deltaY),C.children().eq(a).length&&C.children().eq(a).trigger("mousedown"),!1):N.datepicker&&!N.timepicker?(m.trigger(e,[e.deltaY,e.deltaX,e.deltaY]),M.val&&M.val(w.str()),W.trigger("changedatetime.xdsoft"),!1):void 0)}),W.on("changedatetime.xdsoft",function(e){var t;N.onChangeDateTime&&"function"==typeof N.onChangeDateTime&&(t=W.data("input"),N.onChangeDateTime.call(W,w.currentTime,t,e),delete N.value,t.trigger("change"))}).on("generate.xdsoft",function(){N.onGenerate&&"function"==typeof N.onGenerate&&N.onGenerate.call(W,w.currentTime,W.data("input")),s&&(W.trigger("afterOpen.xdsoft"),s=!1)}).on("click.xdsoft",function(e){e.stopPropagation()}),a=0,c=function(e,t){do{if(!(e=e.parentNode)||!1===t(e))break}while("HTML"!==e.nodeName)},r=function(){var t,e,a=W.data("input"),o=a.offset(),r=a[0],n="top",i=o.top+r.offsetHeight-1,s=o.left,d="absolute",u=I(N.contentWindow).width(),l=I(N.contentWindow).height(),f=I(N.contentWindow).scrollTop();N.ownerDocument.documentElement.clientWidth-o.left<m.parent().outerWidth(!0)&&(e=m.parent().outerWidth(!0)-r.offsetWidth,s-=e),"rtl"===a.parent().css("direction")&&(s-=W.outerWidth()-a.outerWidth()),N.fixed?(i-=f,s-=I(N.contentWindow).scrollLeft(),d="fixed"):(t=!1,c(r,function(e){return null!==e&&("fixed"===N.contentWindow.getComputedStyle(e).getPropertyValue("position")?!(t=!0):void 0)}),t&&!N.insideParent?(d="fixed",i+W.outerHeight()>l+f?(n="bottom",i=l+f-o.top):i-=f):i+W[0].offsetHeight>l+f&&(i=o.top-W[0].offsetHeight+1),i<0&&(i=0),s+r.offsetWidth>u&&(s=u-r.offsetWidth)),o=W[0],c(o,function(e){if("relative"===N.contentWindow.getComputedStyle(e).getPropertyValue("position")&&u>=e.offsetWidth)return s-=(u-e.offsetWidth)/2,!1}),d={position:d,left:N.insideParent?r.offsetLeft:s,top:"",bottom:""},N.insideParent?d[n]=r.offsetTop+r.offsetHeight:d[n]=i,W.css(d)},W.on("open.xdsoft",function(e){var t=!0;N.onShow&&"function"==typeof N.onShow&&(t=N.onShow.call(W,w.currentTime,W.data("input"),e)),!1!==t&&(W.show(),r(),I(N.contentWindow).off("resize.xdsoft",r).on("resize.xdsoft",r),N.closeOnWithoutClick&&I([N.ownerDocument.body,N.contentWindow]).on("touchstart mousedown.xdsoft",function e(){W.trigger("close.xdsoft"),I([N.ownerDocument.body,N.contentWindow]).off("touchstart mousedown.xdsoft",e)}))}).on("close.xdsoft",function(e){var t=!0;_.find(".xdsoft_month,.xdsoft_year").find(".xdsoft_select").hide(),N.onClose&&"function"==typeof N.onClose&&(t=N.onClose.call(W,w.currentTime,W.data("input"),e)),!1===t||N.opened||N.inline||W.hide(),e.stopPropagation()}).on("toggle.xdsoft",function(){W.is(":visible")?W.trigger("close.xdsoft"):W.trigger("open.xdsoft")}).data("input",M),d=0,W.data("xdsoft_datetime",w),W.setOptions(N),w.setCurrentTime(f()),M.data("xdsoft_datetimepicker",W).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function(){M.is(":disabled")||M.data("xdsoft_datetimepicker").is(":visible")&&N.closeOnInputClick||N.openOnFocus&&(clearTimeout(d),d=setTimeout(function(){M.is(":disabled")||(s=!0,w.setCurrentTime(f(),!0),N.mask&&h(N),W.trigger("open.xdsoft"))},100))}).on("keydown.xdsoft",function(e){var t=e.which;return-1!==[p].indexOf(t)&&N.enterLikeTab?(e=I("input:visible,textarea:visible,button:visible,a:visible"),W.trigger("close.xdsoft"),e.eq(e.index(this)+1).focus(),!1):-1!==[v].indexOf(t)?(W.trigger("close.xdsoft"),!0):void 0}).on("blur.xdsoft",function(){W.trigger("close.xdsoft")})},i=function(e){var t=e.data("xdsoft_datetimepicker");t&&(t.data("xdsoft_datetime",null),t.remove(),e.data("xdsoft_datetimepicker",null).off(".xdsoft"),I(N.contentWindow).off("resize.xdsoft"),I([N.contentWindow,N.ownerDocument.body]).off("mousedown.xdsoft touchstart"),e.unmousewheel&&e.unmousewheel())};return I(N.ownerDocument).off("keydown.xdsoftctrl keyup.xdsoftctrl").off("keydown.xdsoftcmd keyup.xdsoftcmd").on("keydown.xdsoftctrl",function(e){e.keyCode===g&&(z=!0)}).on("keyup.xdsoftctrl",function(e){e.keyCode===g&&(z=!1)}).on("keydown.xdsoftcmd",function(e){91===e.keyCode&&0}).on("keyup.xdsoftcmd",function(e){91===e.keyCode&&0}),this.each(function(){var t,e=I(this).data("xdsoft_datetimepicker");if(e){if("string"==typeof Y)switch(Y){case"show":I(this).select().focus(),e.trigger("open.xdsoft");break;case"hide":e.trigger("close.xdsoft");break;case"toggle":e.trigger("toggle.xdsoft");break;case"destroy":i(I(this));break;case"reset":this.value=this.defaultValue,this.value&&e.data("xdsoft_datetime").isValidDate(L.parseDate(this.value,N.format))||e.data("changed",!1),e.data("xdsoft_datetime").setCurrentTime(this.value);break;case"validate":e.data("input").trigger("blur.xdsoft");break;default:e[Y]&&"function"==typeof e[Y]&&(o=e[Y](a))}else e.setOptions(Y);return 0}"string"!=typeof Y&&(!N.lazyInit||N.open||N.inline?n(I(this)):(t=I(this)).on("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",function e(){t.is(":disabled")||t.data("xdsoft_datetimepicker")||(clearTimeout(r),r=setTimeout(function(){t.data("xdsoft_datetimepicker")||n(t),t.off("open.xdsoft focusin.xdsoft mousedown.xdsoft touchstart",e).trigger("open.xdsoft")},100))}))}),o},I.fn.datetimepicker.defaults=s};!function(e){"function"==typeof define&&define.amd?define(["jquery","jquery-mousewheel"],e):"object"==typeof exports?module.exports=e(require("jquery")):e(jQuery)}(datetimepickerFactory);