text: /*
  DayPilot Lite
  Copyright (c) 2005 - 2017 Annpoint s.r.o.
  http://www.daypilot.org/
  Licensed under Apache Software License 2.0
  Version: 218-lite
  */
  /*
  DayPilot Lite
  Copyright (c) 2005 - 2017 Annpoint s.r.o.
  http://www.daypilot.org/
  Licensed under Apache Software License 2.0
  Version: 218-lite
  */
  if(typeof DayPilot==='undefined'){var DayPilot={};};(function(){if(typeof DayPilot.$!=='undefined'){return;};if(typeof DayPilot.Global==="undefined"){DayPilot.Global={};};DayPilot.$=function(id){return document.getElementById(id);};DayPilot.isKhtml=(navigator&&navigator.userAgent&&navigator.userAgent.indexOf("KHTML")!==-1);DayPilot.isIE=(navigator&&navigator.userAgent&&navigator.userAgent.indexOf("MSIE")!==-1);DayPilot.mo2=function($a,ev){ev=ev||window.event;if(typeof(ev.offsetX)!=='undefined'){var $b={x:ev.offsetX+1,y:ev.offsetY+1};if(!$a){return $b;};var $c=ev.srcElement;while($c&&$c!==$a){if($c.tagName!=='SPAN'){$b.x+=$c.offsetLeft;if($c.offsetTop>0){$b.y+=$c.offsetTop-$c.scrollTop;}};$c=$c.offsetParent;};if($c){return $b;};return null;};if(typeof(ev.layerX)!=='undefined'){var $b={x:ev.layerX,y:ev.layerY,$d:ev.target};if(!$a){return $b;};var $c=ev.target;while($c&&$c.style.position!=='absolute'&&$c.style.position!=='relative'){$c=$c.parentNode;if(DayPilot.isKhtml){$b.y+=$c.scrollTop;}}while($c&&$c!==$a){$b.x+=$c.offsetLeft;$b.y+=$c.offsetTop-$c.scrollTop;$c=$c.offsetParent;};if($c){return $b;};return null;};return null;};DayPilot.mo3=function($a,ev,$e){ev=ev||window.event;if(typeof(ev.pageX)!=='undefined'){var $f=DayPilot.abs($a,$e);var $b={x:ev.pageX-$f.x,y:ev.pageY-$f.y};return $b;};return DayPilot.mo2($a,ev);};DayPilot.browser={};DayPilot.browser.ie9=(function(){var $g=document.createElement("div");$g.innerHTML="<!--[if IE 9]><i></i><![endif]-->";var $h=($g.getElementsByTagName("i").length===1);return $h;})();DayPilot.browser.ielt9=(function(){var $g=document.createElement("div");$g.innerHTML="<!--[if lt IE 9]><i></i><![endif]-->";var $h=($g.getElementsByTagName("i").length===1);return $h;})();DayPilot.abs=function(element,$i){if(!element){return null;};var r={x:element.offsetLeft,y:element.offsetTop,w:element.clientWidth,h:element.clientHeight,toString:function(){return "x:"+this.x+" y:"+this.y+" w:"+this.w+" h:"+this.h;}};if(element.getBoundingClientRect){var b=element.getBoundingClientRect();r.x=b.left;r.y=b.top;var d=DayPilot.doc();r.x-=d.clientLeft||0;r.y-=d.clientTop||0;var $j=DayPilot.pageOffset();r.x+=$j.x;r.y+=$j.y;if($i){var $k=DayPilot.absOffsetBased(element,false);var $i=DayPilot.absOffsetBased(element,true);r.x+=$i.x-$k.x;r.y+=$i.y-$k.y;r.w=$i.w;r.h=$i.h;};return r;}else{return DayPilot.absOffsetBased(element,$i);}};DayPilot.absOffsetBased=function(element,$i){var r={x:element.offsetLeft,y:element.offsetTop,w:element.clientWidth,h:element.clientHeight,toString:function(){return "x:"+this.x+" y:"+this.y+" w:"+this.w+" h:"+this.h;}};while(element.offsetParent){element=element.offsetParent;r.x-=element.scrollLeft;r.y-=element.scrollTop;if($i){if(r.x<0){r.w+=r.x;r.x=0;};if(r.y<0){r.h+=r.y;r.y=0;};if(element.scrollLeft>0&&r.x+r.w>element.clientWidth){r.w-=r.x+r.w-element.clientWidth;};if(element.scrollTop&&r.y+r.h>element.clientHeight){r.h-=r.y+r.h-element.clientHeight;}};r.x+=element.offsetLeft;r.y+=element.offsetTop;};var $j=DayPilot.pageOffset();r.x+=$j.x;r.y+=$j.y;return r;};DayPilot.sheet=function(){var style=document.createElement("style");style.setAttribute("type","text/css");if(!style.styleSheet){style.appendChild(document.createTextNode(""));};var h=document.head||document.getElementsByTagName('head')[0];h.appendChild(style);var $l=!!style.styleSheet;var $m={};$m.rules=[];$m.commit=function(){if($l){style.styleSheet.cssText=this.rules.join("\n");}};$m.add=function($n,$o,$p){if($l){this.rules.push($n+"{"+$o+"\u007d");return;};if(style.sheet.insertRule){if(typeof $p==="undefined"){$p=style.sheet.cssRules.length;};style.sheet.insertRule($n+"{"+$o+"\u007d",$p);}else if(style.sheet.addRule){style.sheet.addRule($n,$o,$p);}};return $m;};(function(){if(DayPilot.Global.defaultCss){return;};var $m=DayPilot.sheet();$m.add(".calendar_default_main","border: 1px solid #c0c0c0;font-family: Tahoma, Arial, sans-serif; font-size: 12px;");$m.add(".calendar_default_main *, .calendar_default_main *:before, .calendar_default_main *:after","box-sizing: content-box;");$m.add(".calendar_default_rowheader_inner,.calendar_default_cornerright_inner,.calendar_default_corner_inner,.calendar_default_colheader_inner,.calendar_default_alldayheader_inner","color: #333;background: #f3f3f3;");$m.add(".calendar_default_cornerright_inner","position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;	border-bottom: 1px solid #c0c0c0;");$m.add(".calendar_default_rowheader_inner","font-size: 16pt;text-align: right; position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;");$m.add(".calendar_default_corner_inner","position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;");$m.add(".calendar_default_rowheader_minutes","font-size:10px;vertical-align: super;padding-left: 2px;padding-right: 2px;");$m.add(".calendar_default_colheader_inner","text-align: center; position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;");$m.add(".calendar_default_cell_inner","position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #ddd;border-bottom: 1px solid #ddd; background: #f9f9f9;");$m.add(".calendar_default_cell_business .calendar_default_cell_inner","background: #fff");$m.add(".calendar_default_alldayheader_inner","text-align: center;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;");$m.add(".calendar_default_message","opacity: 0.9;filter: alpha(opacity=90);	padding: 10px; color: #ffffff;background: #ffa216;");$m.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner",'color: #666; border: 1px solid #999;');$m.add(".calendar_default_event_bar","top: 0px;bottom: 0px;left: 0px;width: 4px;background-color: #9dc8e8;");$m.add(".calendar_default_event_bar_inner","position: absolute;width: 4px;background-color: #1066a8;");$m.add(".calendar_default_alldayevent_inner,.calendar_default_event_inner",'background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");');$m.add(".calendar_default_selected .calendar_default_event_inner","background: #ddd;");$m.add(".calendar_default_alldayevent_inner","position: absolute;top: 2px;bottom: 2px;left: 2px;right: 2px;padding: 2px;margin-right: 1px;font-size: 12px;");$m.add(".calendar_default_event_withheader .calendar_default_event_inner","padding-top: 15px;");$m.add(".calendar_default_event","cursor: default;");$m.add(".calendar_default_event_inner","position: absolute;overflow: hidden;top: 0px;bottom: 0px;left: 0px;right: 0px;padding: 2px 2px 2px 6px;font-size: 12px;");$m.add(".calendar_default_shadow_inner","background-color: #666666;	opacity: 0.5;filter: alpha(opacity=50);height: 100%;");$m.add(".scheduler_default_selected .scheduler_default_event_inner","background: #ddd;");$m.add(".scheduler_default_main","border: 1px solid #c0c0c0;font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 12px;");$m.add(".scheduler_default_timeheader","cursor: default;color: #333;");$m.add(".scheduler_default_message","opacity: 0.9;filter: alpha(opacity=90);padding: 10px; color: #ffffff;background: #ffa216;");$m.add(".scheduler_default_timeheadergroup,.scheduler_default_timeheadercol","color: #333;background: #f3f3f3;");$m.add(".scheduler_default_rowheader,.scheduler_default_corner","color: #333;background: #f3f3f3;");$m.add(".scheduler_default_rowheader_inner","position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #eee;padding: 2px;");$m.add(".scheduler_default_timeheadergroup, .scheduler_default_timeheadercol","text-align: center;");$m.add(".scheduler_default_timeheadergroup_inner","position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;");$m.add(".scheduler_default_timeheadercol_inner","position: absolute;left: 0px;right: 0px;top: 0px;bottom: 0px;border-right: 1px solid #c0c0c0;");$m.add(".scheduler_default_divider","background-color: #c0c0c0;");$m.add(".scheduler_default_divider_horizontal","background-color: #c0c0c0;");$m.add(".scheduler_default_matrix_vertical_line","background-color: #eee;");$m.add(".scheduler_default_matrix_vertical_break","background-color: #000;");$m.add(".scheduler_default_matrix_horizontal_line","background-color: #eee;");$m.add(".scheduler_default_resourcedivider","background-color: #c0c0c0;");$m.add(".scheduler_default_shadow_inner","background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;xborder-radius: 5px;");$m.add(".scheduler_default_event","font-size:12px;color:#666;");$m.add(".scheduler_default_event_inner","position:absolute;top:0px;left:0px;right:0px;bottom:0px;padding:5px 2px 2px 2px;overflow:hidden;border:1px solid #ccc;");$m.add(".scheduler_default_event_bar","top:0px;left:0px;right:0px;height:4px;background-color:#9dc8e8;");$m.add(".scheduler_default_event_bar_inner","position:absolute;height:4px;background-color:#1066a8;");$m.add(".scheduler_default_event_inner",'background:#fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");');$m.add(".scheduler_default_event_float_inner","padding:6px 2px 2px 8px;");$m.add(".scheduler_default_event_float_inner:after",'content:"";border-color: transparent #666 transparent transparent;border-style:solid;border-width:5px;width:0;height:0;position:absolute;top:8px;left:-4px;');$m.add(".scheduler_default_columnheader_inner","font-weight: bold;");$m.add(".scheduler_default_columnheader_splitter","background-color: #666;opacity: 0.5;filter: alpha(opacity=50);");$m.add(".scheduler_default_columnheader_cell_inner","padding: 2px;");$m.add(".scheduler_default_cell","background-color: #f9f9f9;");$m.add(".scheduler_default_cell.scheduler_default_cell_business","background-color: #fff;");$m.add(".navigator_default_main","border-left: 1px solid #c0c0c0;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;background-color: white;color: #000000; box-sizing: content-box;");$m.add(".navigator_default_main *, .navigator_default_main *:before, .navigator_default_main *:after","box-sizing: content-box;");$m.add(".navigator_default_month","font-family: Tahoma, Arial, Helvetica, sans-serif; font-size: 11px;");$m.add(".navigator_default_day","color: black;");$m.add(".navigator_default_weekend","background-color: #f0f0f0;");$m.add(".navigator_default_dayheader","color: black;");$m.add(".navigator_default_line","border-bottom: 1px solid #c0c0c0;");$m.add(".navigator_default_dayother","color: gray;");$m.add(".navigator_default_todaybox","border: 1px solid red;");$m.add(".navigator_default_title, .navigator_default_titleleft, .navigator_default_titleright",'border-top: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;color: #333;background: #f3f3f3;');$m.add(".navigator_default_busy","font-weight: bold;");$m.add(".navigator_default_cell","text-align: center;");$m.add(".navigator_default_select .navigator_default_cell_box","background-color: #FFE794; opacity: 0.5;");$m.add(".navigator_default_title","text-align: center;");$m.add(".navigator_default_titleleft, .navigator_default_titleright","text-align: center;");$m.add(".navigator_default_dayheader","text-align: center;");$m.add(".navigator_default_weeknumber","text-align: center;");$m.add(".month_default_main","border: 1px solid #c0c0c0;font-family: Tahoma, Arial, sans-serif; font-size: 12px;color: #333;");$m.add(".month_default_main *, .month_default_main *:before, .month_default_main *:after","box-sizing: content-box;");$m.add(".month_default_cell_inner","border-right: 1px solid #ddd;border-bottom: 1px solid #ddd;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;background-color: #f9f9f9;");$m.add(".month_default_cell_business .month_default_cell_inner","background-color: #fff;");$m.add(".month_default_cell_header","text-align: right;padding-right: 2px;");$m.add(".month_default_header_inner",'text-align: center; vertical-align: middle;position: absolute;top: 0px;left: 0px;bottom: 0px;right: 0px;border-right: 1px solid #c0c0c0;border-bottom: 1px solid #c0c0c0;cursor: default;color: #333;background: #f3f3f3;');$m.add(".month_default_message",'padding: 10px;opacity: 0.9;filter: alpha(opacity=90);color: #ffffff;background: #ffa216;background: -webkit-gradient(linear, left top, left bottom, from(#ffa216), to(#ff8400));background: -webkit-linear-gradient(top, #ffa216 0%, #ff8400);background: -moz-linear-gradient(top, #ffa216 0%, #ff8400);background: -ms-linear-gradient(top, #ffa216 0%, #ff8400);background: -o-linear-gradient(top, #ffa216 0%, #ff8400);background: linear-gradient(top, #ffa216 0%, #ff8400);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffa216", endColorStr="#ff8400");');$m.add(".month_default_event_inner",'position: absolute;top: 0px;bottom: 0px;left: 1px;right: 1px;overflow:hidden;padding: 2px;padding-left: 5px;font-size: 12px;color: #666;background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#eeeeee));background: -webkit-linear-gradient(top, #ffffff 0%, #eeeeee);background: -moz-linear-gradient(top, #ffffff 0%, #eeeeee);background: -ms-linear-gradient(top, #ffffff 0%, #eeeeee);background: -o-linear-gradient(top, #ffffff 0%, #eeeeee);background: linear-gradient(top, #ffffff 0%, #eeeeee);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#eeeeee");border: 1px solid #999;border-radius: 0px;');$m.add(".month_default_event_continueright .month_default_event_inner","border-top-right-radius: 0px;border-bottom-right-radius: 0px;border-right-style: dotted;");$m.add(".month_default_event_continueleft .month_default_event_inner","border-top-left-radius: 0px;border-bottom-left-radius: 0px;border-left-style: dotted;");$m.add(".month_default_event_hover .month_default_event_inner",'background: #fff;background: -webkit-gradient(linear, left top, left bottom, from(#ffffff), to(#e8e8e8));background: -webkit-linear-gradient(top, #ffffff 0%, #e8e8e8);background: -moz-linear-gradient(top, #ffffff 0%, #e8e8e8);background: -ms-linear-gradient(top, #ffffff 0%, #e8e8e8);background: -o-linear-gradient(top, #ffffff 0%, #e8e8e8);background: linear-gradient(top, #ffffff 0%, #e8e8e8);filter: progid:DXImageTransform.Microsoft.Gradient(startColorStr="#ffffff", endColorStr="#e8e8e8");');$m.add(".month_default_selected .month_default_event_inner, .month_default_event_hover.month_default_selected .month_default_event_inner","background: #ddd;");$m.add(".month_default_shadow_inner","background-color: #666666;opacity: 0.5;filter: alpha(opacity=50);height: 100%;-moz-border-radius: 5px;-webkit-border-radius: 5px;border-radius: 5px;");$m.commit();DayPilot.Global.defaultCss=true;})();DayPilot.doc=function(){var de=document.documentElement;return(de&&de.clientHeight)?de:document.body;};DayPilot.guid=function(){var S4=function(){return(((1+Math.random())*0x10000)|0).toString(16).substring(1);};return(""+S4()+S4()+"-"+S4()+"-"+S4()+"-"+S4()+"-"+S4()+S4()+S4());};DayPilot.pageOffset=function(){if(typeof pageXOffset!=='undefined'){return{x:pageXOffset,y:pageYOffset};};var d=DayPilot.doc();return{x:d.scrollLeft,y:d.scrollTop};};DayPilot.indexOf=function($q,$r){if(!$q||!$q.length){return -1;};for(var i=0;i<$q.length;i++){if($q[i]===$r){return i;}};return -1;};DayPilot.mc=function(ev){if(ev.pageX||ev.pageY){return{x:ev.pageX,y:ev.pageY};};return{x:ev.clientX+document.documentElement.scrollLeft,y:ev.clientY+document.documentElement.scrollTop};};DayPilot.Stats={};DayPilot.Stats.eventObjects=0;DayPilot.Stats.dateObjects=0;DayPilot.Stats.cacheHitsCtor=0;DayPilot.Stats.cacheHitsParsing=0;DayPilot.Stats.cacheHitsTicks=0;DayPilot.Stats.print=function(){console.log("DayPilot.Stats.eventObjects: "+DayPilot.Stats.eventObjects);console.log("DayPilot.Stats.dateObjects: "+DayPilot.Stats.dateObjects);console.log("DayPilot.Stats.cacheHitsCtor: "+DayPilot.Stats.cacheHitsCtor);console.log("DayPilot.Stats.cacheHitsParsing: "+DayPilot.Stats.cacheHitsParsing);console.log("DayPilot.Stats.cacheHitsTicks: "+DayPilot.Stats.cacheHitsTicks);console.log("DayPilot.Date.Cache.Ctor keys: "+Object.keys(DayPilot.Date.Cache.Ctor).length);console.log("DayPilot.Date.Cache.Parsing keys: "+Object.keys(DayPilot.Date.Cache.Parsing).length);};DayPilot.re=function(el,ev,$s){if(el.addEventListener){el.addEventListener(ev,$s,false);}else if(el.attachEvent){el.attachEvent("on"+ev,$s);}};DayPilot.pu=function(d){var a=d.attributes,i,l,n;if(a){l=a.length;for(i=0;i<l;i+=1){if(!a[i]){continue;};n=a[i].name;if(typeof d[n]==='function'){d[n]=null;}}};a=d.childNodes;if(a){l=a.length;for(i=0;i<l;i+=1){var $t=DayPilot.pu(d.childNodes[i]);}}};DayPilot.de=function(e){if(!e){return;};e.parentNode&&e.parentNode.removeChild(e);};DayPilot.sw=function(element){if(!element){return 0;};return element.offsetWidth-element.clientWidth;};DayPilot.am=function(){if(typeof angular==="undefined"){return null;};if(!DayPilot.am.cached){DayPilot.am.cached=angular.module("daypilot",[]);};return DayPilot.am.cached;};DayPilot.Selection=function($u,end,$v,$w){this.type='selection';this.start=$u.isDayPilotDate?$u:new DayPilot.Date($u);this.end=end.isDayPilotDate?end:new DayPilot.Date(end);this.resource=$v;this.root=$w;this.toJSON=function($x){var $y={};$y.start=this.start;$y.end=this.end;$y.resource=this.resource;return $y;};};DayPilot.request=function($z,$A,$B,$C){var $D=DayPilot.createXmlHttp();if(!$D){return;};$D.open("POST",$z,true);$D.setRequestHeader('Content-type','text/plain');$D.onreadystatechange=function(){if($D.readyState!==4)return;if($D.status!==200&&$D.status!==304){if($C){$C($D);}else{if(console){console.log('HTTP error '+$D.status);}};return;};$A($D);};if($D.readyState===4){return;};if(typeof $B==='object'){$B=DayPilot.JSON.stringify($B);};$D.send($B);};DayPilot.createXmlHttp=function(){var $E;try{$E=new XMLHttpRequest();}catch(e){try{$E=new ActiveXObject("Microsoft.XMLHTTP");}catch(e){}};return $E;};DayPilot.Util={};DayPilot.Util.addClass=function($r,name){if(!$r){return;};if(!$r.className){$r.className=name;return;};var $F=new RegExp("(^|\\s)"+name+"($|\\s)");if(!$F.test($r.className)){$r.className=$r.className+' '+name;}};DayPilot.Util.removeClass=function($r,name){if(!$r){return;};var $F=new RegExp("(^|\\s)"+name+"($|\\s)");$r.className=$r.className.replace($F,' ').replace(/^\s\s*/,'').replace(/\s\s*$/,'');};DayPilot.Util.isNullOrUndefined=function($G){return $G===null||typeof $G==="undefined";};DayPilot.Locale=function(id,$H){this.id=id;this.dayNames=["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"];this.dayNamesShort=["Su","Mo","Tu","We","Th","Fr","Sa"];this.monthNames=["January","February","March","April","May","June","July","August","September","October","November","December"];this.datePattern="M/d/yyyy";this.timePattern="H:mm";this.dateTimePattern="M/d/yyyy H:mm";this.timeFormat="Clock12Hours";this.weekStarts=0;if($H){for(var name in $H){this[name]=$H[name];}}};DayPilot.Locale.all={};DayPilot.Locale.find=function(id){if(!id){return null;};var $I=id.toLowerCase();if($I.length>2){$I[2]='-';};return DayPilot.Locale.all[$I];};DayPilot.Locale.register=function($J){DayPilot.Locale.all[$J.id]=$J;};DayPilot.Locale.register(new DayPilot.Locale('ca-es',{'dayNames':['diumenge','dilluns','dimarts','dimecres','dijous','divendres','dissabte'],'dayNamesShort':['dg','dl','dt','dc','dj','dv','ds'],'monthNames':['gener','febrer','març','abril','maig','juny','juliol','agost','setembre','octubre','novembre','desembre',''],'monthNamesShort':['gen.','febr.','març','abr.','maig','juny','jul.','ag.','set.','oct.','nov.','des.',''],'timePattern':'H:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('cs-cz',{'dayNames':['neděle','pondělí','úterý','středa','čtvrtek','pátek','sobota'],'dayNamesShort':['ne','po','út','st','čt','pá','so'],'monthNames':['leden','únor','březen','duben','květen','červen','červenec','srpen','září','říjen','listopad','prosinec',''],'monthNamesShort':['I','II','III','IV','V','VI','VII','VIII','IX','X','XI','XII',''],'timePattern':'H:mm','datePattern':'d. M. yyyy','dateTimePattern':'d. M. yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('da-dk',{'dayNames':['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'],'dayNamesShort':['sø','ma','ti','on','to','fr','lø'],'monthNames':['januar','februar','marts','april','maj','juni','juli','august','september','oktober','november','december',''],'monthNamesShort':['jan','feb','mar','apr','maj','jun','jul','aug','sep','okt','nov','dec',''],'timePattern':'HH:mm','datePattern':'dd-MM-yyyy','dateTimePattern':'dd-MM-yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('de-at',{'dayNames':['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],'dayNamesShort':['So','Mo','Di','Mi','Do','Fr','Sa'],'monthNames':['Jänner','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember',''],'monthNamesShort':['Jän','Feb','Mär','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('de-ch',{'dayNames':['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],'dayNamesShort':['So','Mo','Di','Mi','Do','Fr','Sa'],'monthNames':['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember',''],'monthNamesShort':['Jan','Feb','Mrz','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('de-de',{'dayNames':['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],'dayNamesShort':['So','Mo','Di','Mi','Do','Fr','Sa'],'monthNames':['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember',''],'monthNamesShort':['Jan','Feb','Mrz','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('de-lu',{'dayNames':['Sonntag','Montag','Dienstag','Mittwoch','Donnerstag','Freitag','Samstag'],'dayNamesShort':['So','Mo','Di','Mi','Do','Fr','Sa'],'monthNames':['Januar','Februar','März','April','Mai','Juni','Juli','August','September','Oktober','November','Dezember',''],'monthNamesShort':['Jan','Feb','Mrz','Apr','Mai','Jun','Jul','Aug','Sep','Okt','Nov','Dez',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('en-au',{'dayNames':['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],'dayNamesShort':['Su','Mo','Tu','We','Th','Fr','Sa'],'monthNames':['January','February','March','April','May','June','July','August','September','October','November','December',''],'monthNamesShort':['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec',''],'timePattern':'h:mm tt','datePattern':'d/MM/yyyy','dateTimePattern':'d/MM/yyyy h:mm tt','timeFormat':'Clock12Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('en-ca',{'dayNames':['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],'dayNamesShort':['Su','Mo','Tu','We','Th','Fr','Sa'],'monthNames':['January','February','March','April','May','June','July','August','September','October','November','December',''],'monthNamesShort':['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec',''],'timePattern':'h:mm tt','datePattern':'yyyy-MM-dd','dateTimePattern':'yyyy-MM-dd h:mm tt','timeFormat':'Clock12Hours','weekStarts':0}));DayPilot.Locale.register(new DayPilot.Locale('en-gb',{'dayNames':['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],'dayNamesShort':['Su','Mo','Tu','We','Th','Fr','Sa'],'monthNames':['January','February','March','April','May','June','July','August','September','October','November','December',''],'monthNamesShort':['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec',''],'timePattern':'HH:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('en-us',{'dayNames':['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'],'dayNamesShort':['Su','Mo','Tu','We','Th','Fr','Sa'],'monthNames':['January','February','March','April','May','June','July','August','September','October','November','December',''],'monthNamesShort':['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec',''],'timePattern':'h:mm tt','datePattern':'M/d/yyyy','dateTimePattern':'M/d/yyyy h:mm tt','timeFormat':'Clock12Hours','weekStarts':0}));DayPilot.Locale.register(new DayPilot.Locale('es-es',{'dayNames':['domingo','lunes','martes','miércoles','jueves','viernes','sábado'],'dayNamesShort':['D','L','M','X','J','V','S'],'monthNames':['enero','febrero','marzo','abril','mayo','junio','julio','agosto','septiembre','octubre','noviembre','diciembre',''],'monthNamesShort':['ene.','feb.','mar.','abr.','may.','jun.','jul.','ago.','sep.','oct.','nov.','dic.',''],'timePattern':'H:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('es-mx',{'dayNames':['domingo','lunes','martes','miércoles','jueves','viernes','sábado'],'dayNamesShort':['do.','lu.','ma.','mi.','ju.','vi.','sá.'],'monthNames':['enero','febrero','marzo','abril','mayo','junio','julio','agosto','septiembre','octubre','noviembre','diciembre',''],'monthNamesShort':['ene.','feb.','mar.','abr.','may.','jun.','jul.','ago.','sep.','oct.','nov.','dic.',''],'timePattern':'hh:mm tt','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy hh:mm tt','timeFormat':'Clock12Hours','weekStarts':0}));DayPilot.Locale.register(new DayPilot.Locale('eu-es',{'dayNames':['igandea','astelehena','asteartea','asteazkena','osteguna','ostirala','larunbata'],'dayNamesShort':['ig','al','as','az','og','or','lr'],'monthNames':['urtarrila','otsaila','martxoa','apirila','maiatza','ekaina','uztaila','abuztua','iraila','urria','azaroa','abendua',''],'monthNamesShort':['urt.','ots.','mar.','api.','mai.','eka.','uzt.','abu.','ira.','urr.','aza.','abe.',''],'timePattern':'H:mm','datePattern':'yyyy/MM/dd','dateTimePattern':'yyyy/MM/dd H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('fi-fi',{'dayNames':['sunnuntai','maanantai','tiistai','keskiviikko','torstai','perjantai','lauantai'],'dayNamesShort':['su','ma','ti','ke','to','pe','la'],'monthNames':['tammikuu','helmikuu','maaliskuu','huhtikuu','toukokuu','kesäkuu','heinäkuu','elokuu','syyskuu','lokakuu','marraskuu','joulukuu',''],'monthNamesShort':['tammi','helmi','maalis','huhti','touko','kesä','heinä','elo','syys','loka','marras','joulu',''],'timePattern':'H:mm','datePattern':'d.M.yyyy','dateTimePattern':'d.M.yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('fr-be',{'dayNames':['dimanche','lundi','mardi','mercredi','jeudi','vendredi','samedi'],'dayNamesShort':['di','lu','ma','me','je','ve','sa'],'monthNames':['janvier','février','mars','avril','mai','juin','juillet','août','septembre','octobre','novembre','décembre',''],'monthNamesShort':['janv.','févr.','mars','avr.','mai','juin','juil.','août','sept.','oct.','nov.','déc.',''],'timePattern':'HH:mm','datePattern':'dd-MM-yy','dateTimePattern':'dd-MM-yy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('fr-ch',{'dayNames':['dimanche','lundi','mardi','mercredi','jeudi','vendredi','samedi'],'dayNamesShort':['di','lu','ma','me','je','ve','sa'],'monthNames':['janvier','février','mars','avril','mai','juin','juillet','août','septembre','octobre','novembre','décembre',''],'monthNamesShort':['janv.','févr.','mars','avr.','mai','juin','juil.','août','sept.','oct.','nov.','déc.',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('fr-fr',{'dayNames':['dimanche','lundi','mardi','mercredi','jeudi','vendredi','samedi'],'dayNamesShort':['di','lu','ma','me','je','ve','sa'],'monthNames':['janvier','février','mars','avril','mai','juin','juillet','août','septembre','octobre','novembre','décembre',''],'monthNamesShort':['janv.','févr.','mars','avr.','mai','juin','juil.','août','sept.','oct.','nov.','déc.',''],'timePattern':'HH:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('fr-lu',{'dayNames':['dimanche','lundi','mardi','mercredi','jeudi','vendredi','samedi'],'dayNamesShort':['di','lu','ma','me','je','ve','sa'],'monthNames':['janvier','février','mars','avril','mai','juin','juillet','août','septembre','octobre','novembre','décembre',''],'monthNamesShort':['janv.','févr.','mars','avr.','mai','juin','juil.','août','sept.','oct.','nov.','déc.',''],'timePattern':'HH:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('gl-es',{'dayNames':['domingo','luns','martes','mércores','xoves','venres','sábado'],'dayNamesShort':['do','lu','ma','mé','xo','ve','sá'],'monthNames':['xaneiro','febreiro','marzo','abril','maio','xuño','xullo','agosto','setembro','outubro','novembro','decembro',''],'monthNamesShort':['xan','feb','mar','abr','maio','xuño','xul','ago','set','out','nov','dec',''],'timePattern':'H:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('it-it',{'dayNames':['domenica','lunedì','martedì','mercoledì','giovedì','venerdì','sabato'],'dayNamesShort':['do','lu','ma','me','gi','ve','sa'],'monthNames':['gennaio','febbraio','marzo','aprile','maggio','giugno','luglio','agosto','settembre','ottobre','novembre','dicembre',''],'monthNamesShort':['gen','feb','mar','apr','mag','giu','lug','ago','set','ott','nov','dic',''],'timePattern':'HH:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('it-ch',{'dayNames':['domenica','lunedì','martedì','mercoledì','giovedì','venerdì','sabato'],'dayNamesShort':['do','lu','ma','me','gi','ve','sa'],'monthNames':['gennaio','febbraio','marzo','aprile','maggio','giugno','luglio','agosto','settembre','ottobre','novembre','dicembre',''],'monthNamesShort':['gen','feb','mar','apr','mag','giu','lug','ago','set','ott','nov','dic',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('ja-jp',{'dayNames':['日曜日','月曜日','火曜日','水曜日','木曜日','金曜日','土曜日'],'dayNamesShort':['日','月','火','水','木','金','土'],'monthNames':['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月',''],'monthNamesShort':['1','2','3','4','5','6','7','8','9','10','11','12',''],'timePattern':'H:mm','datePattern':'yyyy/MM/dd','dateTimePattern':'yyyy/MM/dd H:mm','timeFormat':'Clock24Hours','weekStarts':0}));DayPilot.Locale.register(new DayPilot.Locale('nb-no',{'dayNames':['søndag','mandag','tirsdag','onsdag','torsdag','fredag','lørdag'],'dayNamesShort':['sø','ma','ti','on','to','fr','lø'],'monthNames':['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember',''],'monthNamesShort':['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('nl-nl',{'dayNames':['zondag','maandag','dinsdag','woensdag','donderdag','vrijdag','zaterdag'],'dayNamesShort':['zo','ma','di','wo','do','vr','za'],'monthNames':['januari','februari','maart','april','mei','juni','juli','augustus','september','oktober','november','december',''],'monthNamesShort':['jan','feb','mrt','apr','mei','jun','jul','aug','sep','okt','nov','dec',''],'timePattern':'HH:mm','datePattern':'d-M-yyyy','dateTimePattern':'d-M-yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('nl-be',{'dayNames':['zondag','maandag','dinsdag','woensdag','donderdag','vrijdag','zaterdag'],'dayNamesShort':['zo','ma','di','wo','do','vr','za'],'monthNames':['januari','februari','maart','april','mei','juni','juli','augustus','september','oktober','november','december',''],'monthNamesShort':['jan','feb','mrt','apr','mei','jun','jul','aug','sep','okt','nov','dec',''],'timePattern':'H:mm','datePattern':'d/MM/yyyy','dateTimePattern':'d/MM/yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('nn-no',{'dayNames':['søndag','måndag','tysdag','onsdag','torsdag','fredag','laurdag'],'dayNamesShort':['sø','må','ty','on','to','fr','la'],'monthNames':['januar','februar','mars','april','mai','juni','juli','august','september','oktober','november','desember',''],'monthNamesShort':['jan','feb','mar','apr','mai','jun','jul','aug','sep','okt','nov','des',''],'timePattern':'HH:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('pt-br',{'dayNames':['domingo','segunda-feira','terça-feira','quarta-feira','quinta-feira','sexta-feira','sábado'],'dayNamesShort':['D','S','T','Q','Q','S','S'],'monthNames':['janeiro','fevereiro','março','abril','maio','junho','julho','agosto','setembro','outubro','novembro','dezembro',''],'monthNamesShort':['jan','fev','mar','abr','mai','jun','jul','ago','set','out','nov','dez',''],'timePattern':'HH:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':0}));DayPilot.Locale.register(new DayPilot.Locale('pl-pl',{'dayNames':['niedziela','poniedziałek','wtorek','środa','czwartek','piątek','sobota'],'dayNamesShort':['N','Pn','Wt','Śr','Cz','Pt','So'],'monthNames':['styczeń','luty','marzec','kwiecień','maj','czerwiec','lipiec','sierpień','wrzesień','październik','listopad','grudzień',''],'monthNamesShort':['sty','lut','mar','kwi','maj','cze','lip','sie','wrz','paź','lis','gru',''],'timePattern':'HH:mm','datePattern':'yyyy-MM-dd','dateTimePattern':'yyyy-MM-dd HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('pt-pt',{'dayNames':['domingo','segunda-feira','terça-feira','quarta-feira','quinta-feira','sexta-feira','sábado'],'dayNamesShort':['D','S','T','Q','Q','S','S'],'monthNames':['janeiro','fevereiro','março','abril','maio','junho','julho','agosto','setembro','outubro','novembro','dezembro',''],'monthNamesShort':['jan','fev','mar','abr','mai','jun','jul','ago','set','out','nov','dez',''],'timePattern':'HH:mm','datePattern':'dd/MM/yyyy','dateTimePattern':'dd/MM/yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':0}));DayPilot.Locale.register(new DayPilot.Locale('ro-ro',{'dayNames':['duminică','luni','marți','miercuri','joi','vineri','sâmbătă'],'dayNamesShort':['D','L','Ma','Mi','J','V','S'],'monthNames':['ianuarie','februarie','martie','aprilie','mai','iunie','iulie','august','septembrie','octombrie','noiembrie','decembrie',''],'monthNamesShort':['ian.','feb.','mar.','apr.','mai.','iun.','iul.','aug.','sep.','oct.','nov.','dec.',''],'timePattern':'H:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('ru-ru',{'dayNames':['воскресенье','понедельник','вторник','среда','четверг','пятница','суббота'],'dayNamesShort':['Вс','Пн','Вт','Ср','Чт','Пт','Сб'],'monthNames':['Январь','Февраль','Март','Апрель','Май','Июнь','Июль','Август','Сентябрь','Октябрь','Ноябрь','Декабрь',''],'monthNamesShort':['янв','фев','мар','апр','май','июн','июл','авг','сен','окт','ноя','дек',''],'timePattern':'H:mm','datePattern':'dd.MM.yyyy','dateTimePattern':'dd.MM.yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('sk-sk',{'dayNames':['nedeľa','pondelok','utorok','streda','štvrtok','piatok','sobota'],'dayNamesShort':['ne','po','ut','st','št','pi','so'],'monthNames':['január','február','marec','apríl','máj','jún','júl','august','september','október','november','december',''],'monthNamesShort':['1','2','3','4','5','6','7','8','9','10','11','12',''],'timePattern':'H:mm','datePattern':'d.M.yyyy','dateTimePattern':'d.M.yyyy H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('sv-se',{'dayNames':['söndag','måndag','tisdag','onsdag','torsdag','fredag','lördag'],'dayNamesShort':['sö','må','ti','on','to','fr','lö'],'monthNames':['januari','februari','mars','april','maj','juni','juli','augusti','september','oktober','november','december',''],'monthNamesShort':['jan','feb','mar','apr','maj','jun','jul','aug','sep','okt','nov','dec',''],'timePattern':'HH:mm','datePattern':'yyyy-MM-dd','dateTimePattern':'yyyy-MM-dd HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('tr-tr',{'dayNames':['Pazar','Pazartesi','Salı','Çarşamba','Perşembe','Cuma','Cumartesi'],'dayNamesShort':['Pz','Pt','Sa','Ça','Pe','Cu','Ct'],'monthNames':['Ocak','Şubat','Mart','Nisan','Mayıs','Haziran','Temmuz','Ağustos','Eylül','Ekim','Kasım','Aralık',''],'monthNamesShort':['Oca','Şub','Mar','Nis','May','Haz','Tem','Ağu','Eyl','Eki','Kas','Ara',''],'timePattern':'HH:mm','datePattern':'d.M.yyyy','dateTimePattern':'d.M.yyyy HH:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.register(new DayPilot.Locale('zh-cn',{'dayNames':['星期日','星期一','星期二','星期三','星期四','星期五','星期六'],'dayNamesShort':['日','一','二','三','四','五','六'],'monthNames':['一月','二月','三月','四月','五月','六月','七月','八月','九月','十月','十一月','十二月',''],'monthNamesShort':['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月','11月','12月',''],'timePattern':'H:mm','datePattern':'yyyy/M/d','dateTimePattern':'yyyy/M/d H:mm','timeFormat':'Clock24Hours','weekStarts':1}));DayPilot.Locale.US=DayPilot.Locale.find("en-us");DayPilot.Date=function($K,$L){if($K instanceof DayPilot.Date){return $K;};var $M;if(DayPilot.Util.isNullOrUndefined($K)){$M=DayPilot.DateUtil.fromLocal().getTime();$K=$M;};var $N=DayPilot.Date.Cache.Ctor;if($N[$K]){DayPilot.Stats.cacheHitsCtor+=1;return $N[$K];};var $O=false;if(typeof $K==="string"){$M=DayPilot.DateUtil.fromStringSortable($K,$L).getTime();$O=true;}else if(typeof $K==="number"){if(isNaN($K)){throw "Cannot create DayPilot.Date from NaN";};$M=$K;}else if($K instanceof Date){if($L){$M=DayPilot.DateUtil.fromLocal($K).getTime();}else{$M=$K.getTime();}}else{throw "Unrecognized parameter: use Date, number or string in ISO 8601 format";};var $P=ticksToSortable($M);if($N[$P]){return $N[$P];};$N[$P]=this;$N[$M]=this;if($O&&$P!==$K&&DayPilot.DateUtil.hasTzSpec($K)){$N[$K]=this;};if(Object.defineProperty&&!DayPilot.browser.ielt9){Object.defineProperty(this,"ticks",{get:function(){return $M;}});Object.defineProperty(this,"value",{"value":$P,"writable":false,"enumerable":true});}else{this.ticks=$M;this.value=$P;};if(DayPilot.Date.Config.legacyShowD){this.d=new Date($M);};DayPilot.Stats.dateObjects+=1;};DayPilot.Date.Config={};DayPilot.Date.Config.legacyShowD=false;DayPilot.Date.Cache={};DayPilot.Date.Cache.Parsing={};DayPilot.Date.Cache.Ctor={};DayPilot.Date.Cache.Ticks={};DayPilot.Date.prototype.addDays=function($Q){return new DayPilot.Date(this.ticks+$Q*24*60*60*1000);};DayPilot.Date.prototype.addHours=function($R){return this.addTime($R*60*60*1000);};DayPilot.Date.prototype.addMilliseconds=function($S){return this.addTime($S);};DayPilot.Date.prototype.addMinutes=function($T){return this.addTime($T*60*1000);};DayPilot.Date.prototype.addMonths=function($U){var $K=new Date(this.ticks);if($U===0)return this;var y=$K.getUTCFullYear();var m=$K.getUTCMonth()+1;if($U>0){while($U>=12){$U-=12;y++;};if($U>12-m){y++;m=$U-(12-m);}else{m+=$U;}}else{while($U<=-12){$U+=12;y--;};if(m+$U<=0){y--;m=12+m+$U;}else{m=m+$U;}};var d=new Date($K.getTime());d.setUTCDate(1);d.setUTCFullYear(y);d.setUTCMonth(m-1);var $V=new DayPilot.Date(d).daysInMonth();d.setUTCDate(Math.min($V,$K.getUTCDate()));return new DayPilot.Date(d);};DayPilot.Date.prototype.addSeconds=function($W){return this.addTime($W*1000);};DayPilot.Date.prototype.addTime=function($M){return new DayPilot.Date(this.ticks+$M);};DayPilot.Date.prototype.addYears=function($X){var $Y=new Date(this.ticks);var d=new Date(this.ticks);var y=this.getYear()+$X;var m=this.getMonth();d.setUTCDate(1);d.setUTCFullYear(y);d.setUTCMonth(m);var $V=new DayPilot.Date(d).daysInMonth();d.setUTCDate(Math.min($V,$Y.getUTCDate()));return new DayPilot.Date(d);};DayPilot.Date.prototype.dayOfWeek=function(){return new Date(this.ticks).getUTCDay();};DayPilot.Date.prototype.getDayOfWeek=function(){return new Date(this.ticks).getUTCDay();};DayPilot.Date.prototype.daysInMonth=function(){var $K=new Date(this.ticks);var $Z=$K.getUTCMonth()+1;var $00=$K.getUTCFullYear();var m=[31,28,31,30,31,30,31,31,30,31,30,31];if($Z!==2)return m[$Z-1];if($00%4!==0)return m[1];if($00%100===0&&$00%400!==0)return m[1];return m[1]+1;};DayPilot.Date.prototype.daysInYear=function(){var $00=this.getYear();if($00%4!==0){return 365;};if($00%100===0&&$00%400!==0){return 365;};return 366;};DayPilot.Date.prototype.dayOfYear=function(){return Math.ceil((this.getDatePart().getTime()-this.firstDayOfYear().getTime())/86400000)+1;};DayPilot.Date.prototype.equals=function($01){if($01===null){return false;};if($01 instanceof DayPilot.Date){return this===$01;}else{throw "The parameter must be a DayPilot.Date object (DayPilot.Date.equals())";}};DayPilot.Date.prototype.firstDayOfMonth=function(){var d=new Date();d.setUTCFullYear(this.getYear(),this.getMonth(),1);d.setUTCHours(0);d.setUTCMinutes(0);d.setUTCSeconds(0);d.setUTCMilliseconds(0);return new DayPilot.Date(d);};DayPilot.Date.prototype.firstDayOfYear=function(){var $00=this.getYear();var d=new Date();d.setUTCFullYear($00,0,1);d.setUTCHours(0);d.setUTCMinutes(0);d.setUTCSeconds(0);d.setUTCMilliseconds(0);return new DayPilot.Date(d);};DayPilot.Date.prototype.firstDayOfWeek=function($02){var d=this;var $02=$02||0;var $03=d.dayOfWeek();while($03!==$02){d=d.addDays(-1);$03=d.dayOfWeek();};return new DayPilot.Date(d);};DayPilot.Date.prototype.getDay=function(){return new Date(this.ticks).getUTCDate();};DayPilot.Date.prototype.getDatePart=function(){var d=new Date(this.ticks);d.setUTCHours(0);d.setUTCMinutes(0);d.setUTCSeconds(0);d.setUTCMilliseconds(0);return new DayPilot.Date(d);};DayPilot.Date.prototype.getYear=function(){return new Date(this.ticks).getUTCFullYear();};DayPilot.Date.prototype.getHours=function(){return new Date(this.ticks).getUTCHours();};DayPilot.Date.prototype.getMilliseconds=function(){return new Date(this.ticks).getUTCMilliseconds();};DayPilot.Date.prototype.getMinutes=function(){return new Date(this.ticks).getUTCMinutes();};DayPilot.Date.prototype.getMonth=function(){return new Date(this.ticks).getUTCMonth();};DayPilot.Date.prototype.getSeconds=function(){return new Date(this.ticks).getUTCSeconds();};DayPilot.Date.prototype.getTotalTicks=function(){return this.getTime();};DayPilot.Date.prototype.getTime=function(){return this.ticks;};DayPilot.Date.prototype.getTimePart=function(){var $04=this.getDatePart();return DayPilot.DateUtil.diff(this,$04);};DayPilot.Date.prototype.lastDayOfMonth=function(){var d=new Date(this.firstDayOfMonth().getTime());var length=this.daysInMonth();d.setUTCDate(length);return new DayPilot.Date(d);};DayPilot.Date.prototype.weekNumber=function(){var $05=this.firstDayOfYear();var $Q=(this.getTime()-$05.getTime())/86400000;return Math.ceil(($Q+$05.dayOfWeek()+1)/7);};DayPilot.Date.prototype.weekNumberISO=function(){var $06=false;var $07=this.dayOfYear();var $08=this.firstDayOfYear().dayOfWeek();var $09=this.firstDayOfYear().addYears(1).addDays(-1).dayOfWeek();if($08===0){$08=7;};if($09===0){$09=7;};var $0a=8-($08);if($08===4||$09===4){$06=true;};var $0b=Math.ceil(($07-($0a))/7.0);var $0c=$0b;if($0a>=4){$0c=$0c+1;};if($0c>52&&!$06){$0c=1;};if($0c===0){$0c=this.firstDayOfYear().addDays(-1).weekNumberISO();};return $0c;};DayPilot.Date.prototype.toDateLocal=function(){var $K=new Date(this.ticks);var d=new Date();d.setFullYear($K.getUTCFullYear(),$K.getUTCMonth(),$K.getUTCDate());d.setHours($K.getUTCHours());d.setMinutes($K.getUTCMinutes());d.setSeconds($K.getUTCSeconds());d.setMilliseconds($K.getUTCMilliseconds());return d;};DayPilot.Date.prototype.toDate=function(){return new Date(this.ticks);};DayPilot.Date.prototype.toJSON=function(){return this.value;};DayPilot.Date.prototype.toString=function($0d,$J){if(typeof $0d==='undefined'){return this.toStringSortable();};return new $0e($0d,$J).print(this);};DayPilot.Date.prototype.toStringSortable=function(){return ticksToSortable(this.ticks);};function ticksToSortable($M){var $N=DayPilot.Date.Cache.Ticks;if($N[$M]){DayPilot.Stats.cacheHitsTicks+=1;return $N[$M];};var d=new Date($M);var $0f;var ms=d.getUTCMilliseconds();if(ms===0){$0f="";}else if(ms<10){$0f=".00"+ms;}else if(ms<100){$0f=".0"+ms;}else{$0f="."+ms};var $0g=d.getUTCSeconds();if($0g<10)$0g="0"+$0g;var $0h=d.getUTCMinutes();if($0h<10)$0h="0"+$0h;var $0i=d.getUTCHours();if($0i<10)$0i="0"+$0i;var $03=d.getUTCDate();if($03<10)$03="0"+$03;var $Z=d.getUTCMonth()+1;if($Z<10)$Z="0"+$Z;var $00=d.getUTCFullYear();if($00<=0){throw "The minimum year supported is 1.";};if($00<10){$00="000"+$00;}else if($00<100){$00="00"+$00;}else if($00<1000){$00="0"+$00;};var $h=$00+"-"+$Z+"-"+$03+'T'+$0i+":"+$0h+":"+$0g+$0f;$N[$M]=$h;return $h;};DayPilot.Date.parse=function(str,$0d,$J){var p=new $0e($0d,$J);return p.parse(str);};DayPilot.Date.today=function(){return new DayPilot.Date().getDatePart();};DayPilot.Date.fromYearMonthDay=function($00,$Z,$03){$Z=$Z||1;$03=$03||1;var d=new Date(0);d.setUTCFullYear($00);d.setUTCMonth($Z-1);d.setUTCDate($03);return new DayPilot.Date(d);};DayPilot.DateUtil={};DayPilot.DateUtil.fromStringSortable=function($0j,$L){if(!$0j){throw "Can't create DayPilot.Date from an empty string";};var $0k=$0j.length;var $K=$0k===10;var $0l=$0k===19;var long=$0k>19;if(!$K&&!$0l&&!long){throw "Invalid string format (use '2010-01-01' or '2010-01-01T00:00:00'): "+$0j;};if(DayPilot.Date.Cache.Parsing[$0j]&&!$L){DayPilot.Stats.cacheHitsParsing+=1;return DayPilot.Date.Cache.Parsing[$0j];};var $00=$0j.substring(0,4);var $Z=$0j.substring(5,7);var $03=$0j.substring(8,10);var d=new Date(0);d.setUTCFullYear($00,$Z-1,$03);if($K){DayPilot.Date.Cache.Parsing[$0j]=d;return d;};var $R=$0j.substring(11,13);var $T=$0j.substring(14,16);var $W=$0j.substring(17,19);d.setUTCHours($R);d.setUTCMinutes($T);d.setUTCSeconds($W);if($0l){DayPilot.Date.Cache.Parsing[$0j]=d;return d;};var $0m=$0j[19];var $0n=0;if($0m==="."){var ms=parseInt($0j.substring(20,23));d.setUTCMilliseconds(ms);$0n=DayPilot.DateUtil.getTzOffsetMinutes($0j.substring(23));}else{$0n=DayPilot.DateUtil.getTzOffsetMinutes($0j.substring(19));};var dd=new DayPilot.Date(d);if(!$L){dd=dd.addMinutes(-$0n);};d=dd.toDate();DayPilot.Date.Cache.Parsing[$0j]=d;return d;};DayPilot.DateUtil.getTzOffsetMinutes=function($0j){if(DayPilot.Util.isNullOrUndefined($0j)||$0j===""){return 0;};if($0j==="Z"){return 0;};var $0m=$0j[0];var $0o=parseInt($0j.substring(1,3));var $0p=parseInt($0j.substring(4));var $0n=$0o*60+$0p;if($0m==="-"){return -$0n;}else if($0m==="+"){return $0n;}else{throw "Invalid timezone spec: "+$0j;}};DayPilot.DateUtil.hasTzSpec=function($0j){if($0j.indexOf("+")){return true;};if($0j.indexOf("-")){return true;};return false;};DayPilot.DateUtil.daysDiff=function($05,$0g){($05&&$0g)||(function(){throw "two parameters required";})();$05=new DayPilot.Date($05);$0g=new DayPilot.Date($0g);if($05.getTime()>$0g.getTime()){return null;};var i=0;var $0q=$05.getDatePart();var $0r=$0g.getDatePart();while($0q<$0r){$0q=$0q.addDays(1);i++;};return i;};DayPilot.DateUtil.daysSpan=function($05,$0g){($05&&$0g)||(function(){throw "two parameters required";})();$05=new DayPilot.Date($05);$0g=new DayPilot.Date($0g);if($05===$0g){return 0;};var $0s=DayPilot.DateUtil.daysDiff($05,$0g);if($0g==$0g.getDatePart()){$0s--;};return $0s;};DayPilot.DateUtil.diff=function($05,$0g){if(!($05&&$0g&&$05.getTime&&$0g.getTime)){throw "Both compared objects must be Date objects (DayPilot.Date.diff).";};return $05.getTime()-$0g.getTime();};DayPilot.DateUtil.fromLocal=function($0t){if(!$0t){$0t=new Date();};var d=new Date();d.setUTCFullYear($0t.getFullYear(),$0t.getMonth(),$0t.getDate());d.setUTCHours($0t.getHours());d.setUTCMinutes($0t.getMinutes());d.setUTCSeconds($0t.getSeconds());d.setUTCMilliseconds($0t.getMilliseconds());return d;};DayPilot.DateUtil.hours=function($K,$0u){var $0h=$K.getUTCMinutes();if($0h<10)$0h="0"+$0h;var $0i=$K.getUTCHours();if($0u){var am=$0i<12;var $0i=$0i%12;if($0i===0){$0i=12;};var $0v=am?"AM":"PM";return $0i+':'+$0h+' '+$0v;}else{return $0i+':'+$0h;}};DayPilot.DateUtil.max=function($05,$0g){if($05.getTime()>$0g.getTime()){return $05;}else{return $0g;}};DayPilot.DateUtil.min=function($05,$0g){if($05.getTime()<$0g.getTime()){return $05;}else{return $0g;}};var $0e=function($0d,$J){if(typeof $J==="string"){$J=DayPilot.Locale.find($J);};var $J=$J||DayPilot.Locale.US;var $0w=[{"seq":"yyyy","expr":"[0-9]{4,4\u007d","str":function(d){return d.getYear();}},{"seq":"yy","expr":"[0-9]{2,2\u007d","str":function(d){return d.getYear()%100;}},{"seq":"mm","expr":"[0-9]{2,2\u007d","str":function(d){var r=d.getMinutes();return r<10?"0"+r:r;}},{"seq":"m","expr":"[0-9]{1,2\u007d","str":function(d){var r=d.getMinutes();return r;}},{"seq":"HH","expr":"[0-9]{2,2\u007d","str":function(d){var r=d.getHours();return r<10?"0"+r:r;}},{"seq":"H","expr":"[0-9]{1,2\u007d","str":function(d){var r=d.getHours();return r;}},{"seq":"hh","expr":"[0-9]{2,2\u007d","str":function(d){var $0i=d.getHours();var $0i=$0i%12;if($0i===0){$0i=12;};var r=$0i;return r<10?"0"+r:r;}},{"seq":"h","expr":"[0-9]{1,2\u007d","str":function(d){var $0i=d.getHours();var $0i=$0i%12;if($0i===0){$0i=12;};return $0i;}},{"seq":"tt","expr":"(AM|PM)","str":function(d){var $0i=d.getHours();var am=$0i<12;return am?"AM":"PM";}},{"seq":"ss","expr":"[0-9]{2,2\u007d","str":function(d){var r=d.getSeconds();return r<10?"0"+r:r;}},{"seq":"s","expr":"[0-9]{1,2\u007d","str":function(d){var r=d.getSeconds();return r;}},{"seq":"MMMM","expr":"[^\\s0-9]*","str":function(d){var r=$J.monthNames[d.getMonth()];return r;},"transform":function($0x){var $p=DayPilot.indexOf($J.monthNames,$0x,$0y);if($p<0){return null;};return $p+1;}},{"seq":"MMM","expr":"[^\\s0-9]*","str":function(d){var r=$J.monthNamesShort[d.getMonth()];return r;},"transform":function($0x){var $p=DayPilot.indexOf($J.monthNamesShort,$0x,$0y);if($p<0){return null;};return $p+1;}},{"seq":"MM","expr":"[0-9]{2,2\u007d","str":function(d){var r=d.getMonth()+1;return r<10?"0"+r:r;}},{"seq":"M","expr":"[0-9]{1,2\u007d","str":function(d){var r=d.getMonth()+1;return r;}},{"seq":"dddd","expr":"[^\\s0-9]*","str":function(d){var r=$J.dayNames[d.getDayOfWeek()];return r;}},{"seq":"ddd","expr":"[^\\s0-9]*","str":function(d){var r=$J.dayNamesShort[d.getDayOfWeek()];return r;}},{"seq":"dd","expr":"[0-9]{2,2\u007d","str":function(d){var r=d.getDay();return r<10?"0"+r:r;}},{"seq":"%d","expr":"[0-9]{1,2\u007d","str":function(d){var r=d.getDay();return r;}},{"seq":"d","expr":"[0-9]{1,2\u007d","str":function(d){var r=d.getDay();return r;}},];var $0z=function($0A){return $0A.replace(/[-[\]{};()*+?.,\\^$|#\s]/g,"\\$&");};this.init=function(){this.year=this.findSequence("yyyy");this.month=this.findSequence("MMMM")||this.findSequence("MMM")||this.findSequence("MM")||this.findSequence("M");this.day=this.findSequence("dd")||this.findSequence("d");this.hours=this.findSequence("HH")||this.findSequence("H");this.minutes=this.findSequence("mm")||this.findSequence("m");this.seconds=this.findSequence("ss")||this.findSequence("s");};this.findSequence=function($0B){function defaultTransform($P){return parseInt($P);};var $p=$0d.indexOf($0B);if($p===-1){return null;};return{"findValue":function($0x){var $0C=$0z($0d);var $0D=null;for(var i=0;i<$0w.length;i++){var $0k=$0w[i].length;var $0E=($0B===$0w[i].seq);var $0F=$0w[i].expr;if($0E){$0F="("+$0F+")";$0D=$0w[i].transform;};$0C=$0C.replace($0w[i].seq,$0F);};$0C="^"+$0C+"$";try{var r=new RegExp($0C);var $q=r.exec($0x);if(!$q){return null;};$0D=$0D||defaultTransform;return $0D($q[1]);}catch(e){throw "unable to create regex from: "+$0C;}}};};this.print=function($K){var find=function(t){for(var i=0;i<$0w.length;i++){if($0w[i]&&$0w[i].seq===t){return $0w[i];}};return null;};var $0G=$0d.length<=0;var $0H=0;var $0I=[];while(!$0G){var $0J=$0d.substring($0H);var $0K=/%?(.)\1*/.exec($0J);if($0K&&$0K.length>0){var $0L=$0K[0];var q=find($0L);if(q){$0I.push(q);}else{$0I.push($0L);};$0H+=$0L.length;$0G=$0d.length<=$0H;}else{$0G=true;}};for(var i=0;i<$0I.length;i++){var c=$0I[i];if(typeof c!=='string'){$0I[i]=c.str($K);}};return $0I.join("");};this.parse=function($0x){var $00=this.year.findValue($0x);if(!$00){return null;};var $Z=this.month.findValue($0x);if(DayPilot.Util.isNullOrUndefined($Z)){return null;};if($Z>12||$Z<1){return null;};var $03=this.day.findValue($0x);var $0M=DayPilot.Date.fromYearMonthDay($00,$Z).daysInMonth();if($03<1||$03>$0M){return null;};var $R=this.hours?this.hours.findValue($0x):0;var $T=this.minutes?this.minutes.findValue($0x):0;var $W=this.seconds?this.seconds.findValue($0x):0;var d=new Date();d.setUTCFullYear($00,$Z-1,$03);d.setUTCHours($R);d.setUTCMinutes($T);d.setUTCSeconds($W);d.setUTCMilliseconds(0);return new DayPilot.Date(d);};this.init();};DayPilot.Event=function($0N,$0O,$0P){var e=this;this.calendar=$0O;this.data=$0N?$0N:{};this.part=$0P?$0P:{};if(typeof this.data.id==='undefined'){this.data.id=this.data.value;};var $0Q={};var $0R=["id","text","start","end"];this.isEvent=true;this.temp=function(){if($0Q.dirty){return $0Q;};for(var i=0;i<$0R.length;i++){$0Q[$0R[i]]=e.data[$0R[i]];};$0Q.dirty=true;return $0Q;};this.copy=function(){var $h={};for(var i=0;i<$0R.length;i++){$h[$0R[i]]=e.data[$0R[i]];};return $h;};this.commit=function(){if(!$0Q.dirty){return;};for(var i=0;i<$0R.length;i++){e.data[$0R[i]]=$0Q[$0R[i]];};$0Q.dirty=false;};this.dirty=function(){return $0Q.dirty;};this.id=function($G){if(typeof $G==='undefined'){return e.data.id;}else{this.temp().id=$G;}};this.value=function($G){if(typeof $G==='undefined'){return e.id();}else{e.id($G);}};this.text=function($G){if(typeof $G==='undefined'){return e.data.text;}else{this.temp().text=$G;this.client.innerHTML($G);}};this.start=function($G){if(typeof $G==='undefined'){return new DayPilot.Date(e.data.start);}else{this.temp().start=new DayPilot.Date($G);}};this.end=function($G){if(typeof $G==='undefined'){return new DayPilot.Date(e.data.end);}else{this.temp().end=new DayPilot.Date($G);}};this.partStart=function(){return new DayPilot.Date(this.part.start);};this.partEnd=function(){return new DayPilot.Date(this.part.end);};this.tag=function($0S){var $0T=e.data.tag;if(!$0T){return null;};if(typeof $0S==='undefined'){return e.data.tag;};var $0U=e.calendar.tagFields;var $p=-1;for(var i=0;i<$0U.length;i++){if($0S===$0U[i])$p=i;};if($p===-1){throw "Field name not found.";};return $0T[$p];};this.client={};this.client.innerHTML=function($G){if(typeof $G==='undefined'){if(e.cache&&typeof e.cache.html!=="undefined"){return e.cache.html;};if(typeof e.data.html!=="undefined"){return e.data.html;};return e.data.text;}else{e.data.html=$G;}};this.client.html=this.client.innerHTML;this.client.header=function($G){if(typeof $G==='undefined'){return e.data.header;}else{e.data.header=$G;}};this.client.cssClass=function($G){if(typeof $G==='undefined'){return e.data.cssClass;}else{e.data.cssClass=$G;}};this.client.toolTip=function($G){if(typeof $G==='undefined'){if(e.cache&&typeof e.cache.toolTip!=="undefined"){return e.cache.toolTip;};return typeof e.data.toolTip!=='undefined'?e.data.toolTip:e.data.text;}else{e.data.toolTip=$G;}};this.client.barVisible=function($G){if(typeof $G==='undefined'){if(e.cache&&typeof e.cache.barHidden!=="undefined"){return !e.cache.barHidden;};return e.calendar.durationBarVisible&&!e.data.barHidden;}else{e.data.barHidden=!$G;}};this.client.backColor=function($G){if(typeof $G==='undefined'){if(e.cache&&typeof e.cache.backColor!=="undefined"){return e.cache.backColor;};return typeof e.data.backColor!=="undefined"?e.data.backColor:e.calendar.eventBackColor;}else{e.data.backColor=$G;}};this.client.borderColor=function($G){if(typeof $G==='undefined'){if(e.cache&&typeof e.cache.borderColor!=="undefined"){return e.cache.borderColor;};return typeof e.data.borderColor!=="undefined"?e.data.borderColor:e.calendar.eventBorderColor;}else{e.data.borderColor=$G;}};this.client.moveEnabled=function($G){if(typeof $G==='undefined'){return e.calendar.eventMoveHandling!=='Disabled'&&!e.data.moveDisabled;}else{e.data.moveDisabled=!$G;}};this.client.resizeEnabled=function($G){if(typeof $G==='undefined'){return e.calendar.eventResizeHandling!=='Disabled'&&!e.data.resizeDisabled;}else{e.data.resizeDisabled=!$G;}};this.client.clickEnabled=function($G){if(typeof $G==='undefined'){return e.calendar.eventClickHandling!=='Disabled'&&!e.data.clickDisabled;}else{e.data.clickDisabled=!$G;}};this.toJSON=function($x){var $y={};$y.value=this.id();$y.id=this.id();$y.text=this.text();$y.start=this.start();$y.end=this.end();$y.tag={};if(e.calendar&&e.calendar.tagFields){var $0U=e.calendar.tagFields;for(var i=0;i<$0U.length;i++){$y.tag[$0U[i]]=this.tag($0U[i]);}};return $y;};};})();DayPilot.JSON={};(function(){function f(n){return n<10?'0'+n:n;};if(typeof Date.prototype.toJSON2!=='function'){Date.prototype.toJSON2=function($x){return this.getUTCFullYear()+'-'+f(this.getUTCMonth()+1)+'-'+f(this.getUTCDate())+'T'+f(this.getUTCHours())+':'+f(this.getUTCMinutes())+':'+f(this.getUTCSeconds())+'';};String.prototype.toJSON=Number.prototype.toJSON=Boolean.prototype.toJSON=function($x){return this.valueOf();};};var cx=/[\u0000\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,$0V=/[\\\"\x00-\x1f\x7f-\x9f\u00ad\u0600-\u0604\u070f\u17b4\u17b5\u200c-\u200f\u2028-\u202f\u2060-\u206f\ufeff\ufff0-\uffff]/g,$0W,$0X,$0Y={'\b':'\\b','\t':'\\t','\n':'\\n','\f':'\\f','\r':'\\r','"':'\\"','\\':'\\\\'},$0Z;function quote($0j){$0V.lastIndex=0;return $0V.test($0j)?'"'+$0j.replace($0V,function(a){var c=$0Y[a];if(typeof c==='string'){return c;};return '\\u'+('0000'+a.charCodeAt(0).toString(16)).slice(-4);})+'"':'"'+$0j+'"';};function str($x,$10){var i,k,v,length,$11=$0W,$12,$P=$10[$x];if($P&&typeof $P==='object'&&typeof $P.toJSON2==='function'){$P=$P.toJSON2($x);}else if($P&&typeof $P==='object'&&typeof $P.toJSON==='function'&&!$P.ignoreToJSON){$P=$P.toJSON($x);};if(typeof $0Z==='function'){$P=$0Z.call($10,$x,$P);};switch(typeof $P){case 'string':return quote($P);case 'number':return isFinite($P)?String($P):'null';case 'boolean':case 'null':return String($P);case 'object':if(!$P){return 'null';};$0W+=$0X;$12=[];if(typeof $P.length==='number'&&!$P.propertyIsEnumerable('length')){length=$P.length;for(i=0;i<length;i+=1){$12[i]=str(i,$P)||'null';};v=$12.length===0?'[]':$0W?'[\n'+$0W+$12.join(',\n'+$0W)+'\n'+$11+']':'['+$12.join(',')+']';$0W=$11;return v;};if($0Z&&typeof $0Z==='object'){length=$0Z.length;for(i=0;i<length;i+=1){k=$0Z[i];if(typeof k==='string'){v=str(k,$P);if(v){$12.push(quote(k)+($0W?': ':':')+v);}}}}else{for(k in $P){if(Object.hasOwnProperty.call($P,k)){v=str(k,$P);if(v){$12.push(quote(k)+($0W?': ':':')+v);}}}};v=($12.length===0)?'{\u007D':$0W?'{\n'+$0W+$12.join(',\n'+$0W)+'\n'+$11+'\u007D':'{'+$12.join(',')+'\u007D';$0W=$11;return v;}};if(typeof DayPilot.JSON.stringify!=='function'){DayPilot.JSON.stringify=function($P,$13,$14){var i;$0W='';$0X='';if(typeof $14==='number'){for(i=0;i<$14;i+=1){$0X+=' ';}}else if(typeof $14==='string'){$0X=$14;};$0Z=$13;if($13&&typeof $13!=='function'&&(typeof $13!=='object'||typeof $13.length!=='number')){throw new Error('JSON.stringify');};return str('',{'':$P});};}})();
  
  
  