var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(c,f,n){if(null==c)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(f instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return c+""};$jscomp.ASSUME_ES5=!1;$jscomp.ASSUME_NO_NATIVE_MAP=!1;$jscomp.ASSUME_NO_NATIVE_SET=!1;
$jscomp.defineProperty=$jscomp.ASSUME_ES5||"function"==typeof Object.defineProperties?Object.defineProperty:function(c,f,n){c!=Array.prototype&&c!=Object.prototype&&(c[f]=n.value)};$jscomp.getGlobal=function(c){return"undefined"!=typeof window&&window===c?c:"undefined"!=typeof global&&null!=global?global:c};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(c,f,n,r){if(f){n=$jscomp.global;c=c.split(".");for(r=0;r<c.length-1;r++){var a=c[r];a in n||(n[a]={});n=n[a]}c=c[c.length-1];r=n[c];f=f(r);f!=r&&null!=f&&$jscomp.defineProperty(n,c,{configurable:!0,writable:!0,value:f})}};
$jscomp.polyfill("String.prototype.startsWith",function(c){return c?c:function(f,c){var r=$jscomp.checkStringArgs(this,f,"startsWith");f+="";var a=r.length,h=f.length;c=Math.max(0,Math.min(c|0,r.length));for(var g=0;g<h&&c<a;)if(r[c++]!=f[g++])return!1;return g>=h}},"es6","es3");
(function(){function c(a,h,g,d){2>d&&(d=2);return a&&a.length>d?(h[g]=a.substring(d),a.substring(0,d)):a}function f(a,h){a=""+a;for(h-=a.length;0<=--h;)a="0"+a;return a}function n(a,h){return Math.round((Dates.newInstance([a.getFullYear(),a.getMonth(),a.getDate()],a.getTimeZone())-h)/864E5)}var r=zk.$extends(zk.Object,{$init:function(a,h,g,d,c,f,l,e){this.$supers("$init",arguments);this._date=1<arguments.length?Dates.newInstance([a,h,g,d,c,f,l],e):a},setOffset:function(a){this._offset=a},setFullYear:function(a){this._date.setFullYear(a)},
getFullYear:function(){return this._date.getFullYear()+(this._offset||0)},getDate:function(){return this._date.getDate()},setDate:function(a){this._date.setDate(a)},getDay:function(){return this._date.getDay()},setDay:function(a){this._date.setDay(a)},getMonth:function(){return this._date.getMonth()},setMonth:function(a){this._date.setMonth(a)},getHours:function(){return this._date.getHours()},setHours:function(a){this._date.setHours(a)},getSeconds:function(){return this._date.getSeconds()},setSeconds:function(a){this._date.setSeconds(a)},
getMilliseconds:function(){return this._date.getMilliseconds()},setMilliseconds:function(a){this._date.setMilliseconds(a)},getTimezoneOffset:function(){return this._date.getTimezoneOffset()},getRealDate:function(){return this._date},getTimeZone:function(){return this._date.getTimeZone()}});zk.fmt.Date={parseDate:function(a,h,g,d,f,n,l){h||(h="yyyy/MM/dd");d=d||zUtl.today(h,n);f=f||{DOW_1ST:zk.DOW_1ST,MINDAYS:zk.MINDAYS,ERA:zk.ERA,YDELTA:zk.YDELTA,SDOW:zk.SDOW,S2DOW:zk.S2DOW,FDOW:zk.FDOW,SMON:zk.SMON,
S2MON:zk.S2MON,FMON:zk.FMON,APM:zk.APM};var e=d.getFullYear(),q=d.getMonth(),D=d.getDate(),F=d.getHours(),G=d.getMinutes(),H=d.getSeconds(),E=d.getMilliseconds(),u=-1<h.indexOf("a")&&(-1<h.indexOf("h")||-1<h.indexOf("K"));a:{var x=a;var m=h;-1<m.indexOf("'")&&(m=m.replace(/'/g,""));var A=[],K=m.indexOf("MMM"),z=m.indexOf("E"),I=m.length,v=[],k=m.indexOf("a"),b=x.replace(/[^.]/g,"").length;var p=m.replace(/[^.]/g,"").length;for(var y=0,B=0,J=x.length;B<J;y++,B++){var C=x.charAt(B),L=I>y?m.charAt(y):
"";if(C.match(/\d/))v.push(C);else if(0<=K&&K<=y||0<=z&&z<=y||-1<k&&k<=y)C.match(/\w/)?v.push(C):128>C.charCodeAt(0)&&(46!=C.charCodeAt(0)||b==p||46==L.charCodeAt(0))?v.length&&(A.push(v.join("")),v=[]):v.push(C);else if(v.length){if(x.charAt(B-1).match(/\d/))for(;L==m.charAt(y-1)&&L;)L=m.charAt(++y);A.push(v.join(""));v=[]}else if(C.match(/\w/)){m=void 0;break a}}v.length&&A.push(v.join(""));m=A}A=/.*\D.*/;K=!A.test(a);if(m&&m.length){I=b=z=0;for(v=h.length;b<v;++b)if(p=h.charAt(b),"a"<=p&&"z">=
p||"A"<=p&&"Z">=p){k=1;for(x=b;++x<v&&h.charAt(x)==p;++k);var t;if(x<v){var w=h.charAt(x);w="y"==w||"M"==w||"d"==w||"E"==w||"m"==w||"s"==w||"S"==w}b=K?m[0].substring(b-I,x-I):m[z++];switch(p){case "y":if(g&&b&&b.length<k)return;w&&(3>=k&&(k=2),b&&b.length>k&&(m[--z]=b.substring(k),b=b.substring(0,k)));if(g&&b&&A.test(b))return;isNaN(t=parseInt(b,10))||(k=Math.min(t,2E5),100>k?(e+=f.YDELTA,k!==e%100&&(e=zk.TDYS,k=100*Math.floor(e/100)+k,b=k+100,e=k>e?k:b)):e=k);break;case "M":p=b?b.toLowerCase():"";
y=!isNaN(b);if(!p)break;if(!y&&b){if(3==k)B=f.SMON;else if(4==k)B=f.FMON;else break;y=B.length;for(var N;0<=--y;)if(J=B[y].toLowerCase(),g&&p==J||!g&&p.startsWith(J)){q=J.length;b&&b.length>q&&(m[--z]=b.substring(q));q=y;N=!0;break}if(N)break}if(3==k&&b){w&&(b=c(b,m,--z,b.length));if(isNaN(t=parseInt(b,10)))return;q=t-1}else if(2>=k){w&&b&&2<b.length&&(m[--z]=b.substring(2),b=b.substring(0,2));if(isNaN(t=parseInt(b,10)))return;q=t-1}else for(q=0;;++q){if(12==q)return;if(3==k){if(f.SMON[q]==b)break}else if(b&&
f.FMON[q].startsWith(b))break}if(11<q)return;break;case "E":w&&c(b,m,--z,k);break;case "d":if(g&&b&&b.length<k)return;w&&(b=c(b,m,--z,k));if(g&&b&&A.test(b))return;if(!isNaN(t=parseInt(b,10))){D=t;var O=!0;if(0>D||31<D)return}break;case "H":case "h":case "K":case "k":if(g&&b&&b.length<k)return;if(u?"H"==p||"k"==p:"h"==p||"K"==p)break;w&&(b=c(b,m,--z,k));if(g&&b&&A.test(b))return;isNaN(t=parseInt(b,10))||(F="h"==p&&12==t||"k"==p&&24==t?0:"K"==p?t%12:t);break;case "m":case "s":case "S":if(g&&b&&b.length<
k)return;w&&(b=c(b,m,--z,k));if(g&&b&&A.test(b))return;isNaN(t=parseInt(b,10))||("m"==p?G=t:"s"==p?H=t:E=t);break;case "a":if(u){if(!b)return;var P=b.toUpperCase().startsWith(f.APM[0].toUpperCase())}}b=x-1}else I++;u&&!1===P&&(F+=12);1==q&&29==D&&f.YDELTA?(u=new r(e-f.YDELTA,q,D,F,G,H,E,n),u.setOffset(f.YDELTA)):u=Dates.newInstance([e,q,D,F,G,H,E],n);O||u.getMonth()==q||(u=Dates.newInstance([e,q+1,0,F,G,H,E],n));if(g||l)if(u.getFullYear()!=e||u.getMonth()!=q||u.getDate()!=D||u.getHours()!=F||u.getMinutes()!=
G||u.getSeconds()!=H)return;if(g){a=a.trim();for(b=0;b<m.length;b++)a=a.replace(m[b],"");for(x=a.length;x--;)if(p=a.charAt(x),("9"<p||"0">p)&&0>h.indexOf(p))return}return+u==+d?d:u}},formatDate:function(a,h,g){h||(h="yyyy/MM/dd");g=g||{DOW_1ST:zk.DOW_1ST,MINDAYS:zk.MINDAYS,ERA:zk.ERA,YDELTA:zk.YDELTA,SDOW:zk.SDOW,S2DOW:zk.S2DOW,FDOW:zk.FDOW,SMON:zk.SMON,S2MON:zk.S2MON,FMON:zk.FMON,APM:zk.APM};for(var d="",c=0,r=h.length;c<r;++c){var l=h.charAt(c);if("a"<=l&&"z">=l||"A"<=l&&"Z">=l){for(var e=1;++c<
r;++e)if(h.charAt(c)!=l){"r"==h.charAt(c)&&c++;break}switch(l){case "y":d=3>=e?d+f(a.getFullYear()%100,2):d+f(a.getFullYear(),e);break;case "M":d=2>=e?d+f(a.getMonth()+1,e):3==e?d+g.SMON[a.getMonth()]:d+g.FMON[a.getMonth()];break;case "d":d+=f(a.getDate(),e);break;case "E":d=3>=e?d+g.SDOW[(a.getDay()-g.DOW_1ST+7)%7]:d+g.FDOW[(a.getDay()-g.DOW_1ST+7)%7];break;case "D":e=a;l=Dates.newInstance([e.getFullYear(),0,1],e.getTimeZone());e=f(1+n(e,l));d+=e;break;case "w":d+=zUtl.getWeekOfYear(a.getFullYear(),
a.getMonth(),a.getDate(),g.DOW_1ST,g.MINDAYS);break;case "W":e=a;var q=g.DOW_1ST;l=Dates.newInstance([e.getFullYear(),e.getMonth(),1],e.getTimeZone());var M=l.getDay();q=(q>M?M+7:M)-q;e=f(1+Math.floor((n(e,l)+q)/7));d+=e;break;case "G":d+=g.ERA;break;case "F":e=a;l=Dates.newInstance([e.getFullYear(),e.getMonth(),1],e.getTimeZone());e=f(1+Math.floor(n(e,l)/7));d+=e;break;case "H":2>=e&&(d+=f(a.getHours(),e));break;case "k":l=a.getHours();0==l&&(l="24");2>=e&&(d+=f(l,e));break;case "K":2>=e&&(d+=f(a.getHours()%
12,e));break;case "h":l=a.getHours();l%=12;0==l&&(l="12");2>=e&&(d+=f(l,e));break;case "m":2>=e&&(d+=f(a.getMinutes(),e));break;case "s":2>=e&&(d+=f(a.getSeconds(),e));break;case "S":3>=e&&(d+=f(a.getMilliseconds(),e));break;case "Z":d+=-(a.getTimezoneOffset()/60);break;case "z":d+=-(a.getTimezoneOffset()/60);break;case "a":d+=g.APM[11<a.getHours()?1:0];break;case "u":d+="uur";break;default:d+="1"}--c}else"'"!=l&&(d+=l)}return d}};zk.fmt.Calendar=zk.$extends(zk.Object,{_offset:zk.YDELTA,$init:function(a,
c){this._date=a;c&&(this._offset=c.YDELTA)},getTime:function(){return this._date},setTime:function(a){this._date=a},setYearOffset:function(a){this._offset=a},getYearOffset:function(){return this._offset},formatDate:function(a,c,f){f&&(this._offset=f.YDELTA);if(this._offset)if(1==a.getMonth()&&29==a.getDate()){var d=new r(a);d.setOffset(this._offset)}else d=Dates.newInstance(a),d.setFullYear(d.getFullYear()+this._offset);return zk.fmt.Date.formatDate(d||a,c,f)},toUTCDate:function(){if(r.isInstance(this._date))return this._date.getRealDate();
var a;(a=this._date)&&this._offset&&(a=Dates.newInstance(a)).setFullYear(a.getFullYear()-this._offset);return a},parseDate:function(a,c,f,d,n,E,l){a=zk.fmt.Date.parseDate(a,c,f,d,n,E,l);n&&(this._offset=n.YDELTA);if(this._offset&&c){if(r.isInstance(a))return a.getRealDate();a.setFullYear(a.getFullYear()-this._offset)}return a},getYear:function(){return r.isInstance(this._date)?this._date.getFullYear():this._date.getFullYear()+this._offset},escapeDSTConflict:function(a,c){if(a)return c=Dates.newInstance(a.getTime()+
36E5,c),c.getHours()!=(a.getHours()+1)%24?c:a}})})();
