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