(function(y,g){Date.prototype.format=function(a){var d={"M+":this.getMonth()+1,"d+":this.getDate(),"h+":this.getHours(),"m+":this.getMinutes(),"s+":this.getSeconds(),"q+":Math.floor((this.getMonth()+3)/3),S:this.getMilliseconds()};/(y+)/.test(a)&&(a=a.replace(RegExp.$1,(this.getFullYear()+"").substr(4-RegExp.$1.length)));for(var c in d)(new RegExp("("+c+")")).test(a)&&(a=a.replace(RegExp.$1,1==RegExp.$1.length?d[c]:("00"+d[c]).substr((""+d[c]).length)));return a};g.leftTime=function(a,d,c){function w(a){return-1!= a.indexOf("-")||-1!=a.indexOf("/")?!0:!1}function g(a){return/^(20|21|22|23|[0-1]\d):[0-5]\d$/.test(y.trim(a))?!0:!1}function r(a){10>a&&c&&(a="0"+a);return a}function z(){if("string"===typeof a||"number"===typeof a){var b=(new Date).getTime(),c;"string"===typeof a||12<=a.toString().length?(a="string"===typeof a&&1==w(a)?a.replace(/-/g,"/"):a,c=(new Date(a)).getTime(),b=c-b):(c=a-A.count,b=1E3*c,A.count++);0=f&&u=p&&(v=3),b=c-b,0