var $jscomp=$jscomp||{};$jscomp.scope={};$jscomp.checkStringArgs=function(e,r,n){if(null==e)throw new TypeError("The 'this' value for String.prototype."+n+" must not be null or undefined");if(r instanceof RegExp)throw new TypeError("First argument to String.prototype."+n+" must not be a regular expression");return e+""};$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(e,r,n){e!=Array.prototype&&e!=Object.prototype&&(e[r]=n.value)};$jscomp.getGlobal=function(e){return"undefined"!=typeof window&&window===e?e:"undefined"!=typeof global&&null!=global?global:e};$jscomp.global=$jscomp.getGlobal(this);
$jscomp.polyfill=function(e,r,n,a){if(r){n=$jscomp.global;e=e.split(".");for(a=0;a<e.length-1;a++){var c=e[a];c in n||(n[c]={});n=n[c]}e=e[e.length-1];a=n[e];r=r(a);r!=a&&null!=r&&$jscomp.defineProperty(n,e,{configurable:!0,writable:!0,value:r})}};
$jscomp.polyfill("String.prototype.startsWith",function(e){return e?e:function(e,n){var a=$jscomp.checkStringArgs(this,e,"startsWith");e+="";var c=a.length,b=e.length;n=Math.max(0,Math.min(n|0,a.length));for(var d=0;d<b&&n<c;)if(a[n++]!=e[d++])return!1;return d>=b}},"es6","es3");
(function(){function e(a,c){for(var b=1,d="";b&&0<=--c;){var p=a.charAt(c);1==b&&("0"<=p&&"9">p?(p=p.$inc(1),b=0):"9"==p&&(p="0"));d=p+d}0<=c&&(d=a.substring(0,c)+d);return b?"1"+d:d}function r(a,c){for(var b,d="5",p=c,e=a.length;p<e&&(b=a.charAt(p)-d,p==c&&(d="0"),0==b);++p);return b}var n={GROUPING:zk.GROUPING,DECIMAL:zk.DECIMAL,PERCENT:zk.PERCENT,PER_MILL:zk.PER_MILL,MINUS:zk.MINUS};zk.fmt.Number={setScale:function(a,c,b){if(void 0===c||0>c)return a;var d=a.$toString(),p=d.indexOf(".");if((0<=
p?d.length-p-1:0)<=c)return a;d=this.rounding(d,p+c+1,b,0>d);return new zk.BigDecimal(d)},isRoundingRequired:function(a,c,b){if(!c||null==a||""==a)return!1;-1!=c.indexOf(";")&&(c=c.split(";"),c=c[0>a?1:0]);b=b||n;c=this._escapeQuote(c,b);b=c.pureFmtStr;var d=c.purejdot;b=0<=d?b.length-d-1:0;a=(a+"").replace(/[^e\-0123456789.]/g,"").substring(0>a?1:0);var p=a.lastIndexOf("e");d=a.indexOf(".");var e=0<=d?(0>p?a.length:p)-d-1:0;c=c.shift+(0>p?0:parseInt(a.substring(p+1),10));0<p&&(a=a.substring(0,p));
if(0<c)0<=d&&(e=e>c?e-c:0);else if(0>c)if(p=(0>d?a.length:d)+c,0<p)e-=c;else{for(0<=d&&(a=a.substring(0,d)+a.substring(d+1));0>p++;)a="0"+a;e=("0."+a).length-2}return e>b},rounding:function(a,c,b,d){switch(b){case 0:a=e(a,c);break;case 1:a=a.substring(0,c);break;case 2:a=d?a.substring(0,c):e(a,c);break;case 3:a=d?e(a,c):a.substring(0,c);break;case 4:b=r(a,c);a=0>b?a.substring(0,c):e(a,c);break;case 5:b=r(a,c);a=0<b?e(a,c):a.substring(0,c);break;default:if(b=r(a,c),0==b){a:{b=a;for(d=c;0<=--d;){var p=
b.charAt(d);if("0"<=p&&"9">=p){b=p;break a}}b=null}a=b&1?e(a,c):a.substring(0,c)}else a=0>b?a.substring(0,c):e(a,c)}return a},format:function(a,c,b,d){if(null==c)return"";if(!a)return c+"";if(a.startsWith("locale:"))return(new Intl.NumberFormat(a.substring(a.indexOf(":")+1))).format(parseFloat(c));if(-1!=a.indexOf(";")){a=a.split(";");var e=0>c;a=a[e?1:0]}d=d||n;var u=this._escapeQuote(a,d);a=u.fmt;var h=u.pureFmtStr,x=u.purejdot,q=0<=x?h.length-x-1:0,f=(c+"").replace(/[^e\-0123456789.]/g,"").substring(0>
c?1:0),g=f.lastIndexOf("e"),k=f.indexOf("."),m=0<=k?(0>g?f.length:g)-k-1:0;var l=u.shift+(0>g?0:parseInt(f.substring(g+1),10));0<g&&(f=f.substring(0,g));if(0<l)if(0<=k)if(m>l)f=f.substring(0,k)+f.substring(k+1,k+1+l)+"."+f.substring(k+1+l),m-=l,k+=l;else{f=f.substring(0,k)+f.substring(k+1);for(l-=m;0<l--;)f+="0";k=-1;m=0}else for(;0<l--;)f+="0";else if(0>l)if(g=(0>k?f.length:k)+l,0<g)f=f.substring(0,g)+"."+(0>k?f.substring(g):f.substring(g,indVar)+f.substring(indVar+1)),m-=l,k=g;else{for(0<=k&&(f=
f.substring(0,k)+f.substring(k+1));0>g++;)f="0"+f;f="0."+f;k=1;m=f.length-2}if(m<=q)for(-1==k&&(f+="."),l=q-m;0<l--;)f+="0";else f=this.rounding(f,k+q+1,b,0>c);m=u.jdot;q=b="";k=f.indexOf(".");-1==k&&(k=f.length);-1==m&&(m=a.length);-1==x&&(x=h.length);g=k-x;if(0<g){var t="";for(l=g;0<=--l;m++)t+="#";l=this._extraFmtIndex(a);g+=l;a=a.substring(0,l)+t+a.substring(l,a.length)}for(l=x-k;0<=--l;k++)f="0"+f;for(var r=m-a.substring(0,m).lastIndexOf(","),z=1,w=m-1,v=k-1;0<=w&&0<=v;)0==z%r&&","!=b.charAt(0)&&
(b=d.GROUPING+b,z++),l=a.charAt(w),"#"==l||"0"==l?(t=f.charAt(v),b=("0"==t?l:t)+b,w--,v--,z++):(l=a.charAt(w),","!=l&&(b=l+b,z++),w--);0<=v&&(b=f.substr(0,v+1)+b);l=(0>m?a.length:m)-(0>x?h.length:x);u=u.prej;0<l&&(h=a.substring(u,0<g?g:l).replace(/[#0.,]/g,""))&&(b=h+b);w=m+1;v=k+1;k=a.length;for(h=f.length;w<k;w++)l=a.charAt(w),"#"==l||"0"==l?v<h&&(q+=f.charAt(v),v++):q+="%"==l?d.PERCENT:l;v<f.length&&(q=f.substr(v,f.length));f=-1;k=q.length;for(h=a.length;0<k;--k)if(t=q.charAt(k-1),l=a.charAt(--h),
"0"==t&&"#"==l)0>f&&(f=k);else if(0<=f||/[1-9]/.test(t))break;0<=f&&(q=q.substring(0,k)+q.substring(f));b&&(b=a.substring(0,u)+this._removePrefixSharps(b,d));b||"#"!=a.charAt(m+1)||(b="0");q||b!=d.PERCENT&&b!=d.PER_MILL||(b="0"+b);a=new RegExp("^0*["+d.PERCENT+"|"+d.PER_MILL+"]?$");a=q?a.test(q)&&/^0*$/.test(b):a.test(b);return(0>c&&!a&&!e?d.MINUS:"")+(q?b+(/[\d]/.test(q.charAt(0))?d.DECIMAL:"")+q:b)},_escapeQuote:function(a,c){for(var b,d=-2,e=0,u="",h=-1,n=-1,q="",f=-1,g=a?!(new RegExp("('["+c.PERCENT+
"|"+c.PER_MILL+"]+')","g")).test(a):!0,k=0,m=a.length;k<m;++k)b=a.charAt(k),"%"==b&&g?e+=2:b==c.PER_MILL&&g&&(e+=3),"'"==b?0<=d?(u+=d==k-1?"'":a.substring(d+1,k),d=-2):d=k:0>d&&(0>f&&("#"==b||"0"==b||"."==b||"-"==b||","==b||"E"==b)&&(f=u.length),"#"==b||"0"==b?q+=b:"."==b&&(0>n&&(n=q.length),0>h&&(h=u.length),q+=b),u+=b);return{shift:e,fmt:u,pureFmtStr:q,jdot:h,purejdot:n,prej:f}},_extraFmtIndex:function(a){for(var c=0,b=a.length;c<b;++c){var d=a.charAt(c);if("#"==d||"0"==d||","==d)break}return c},
_removePrefixSharps:function(a,c){for(var b="",d=!0,e=a.length,n=0;n<e;++n){var h=a.charAt(n);if(d)if("#"==h||h==c.GROUPING)continue;else/[\d]/.test(h)&&(d=!1);b+="#"==h?"0":h}return b},unformat:function(a,c,b,d){if(!c)return{raw:c,divscale:0};d=d||{GROUPING:zk.GROUPING,DECIMAL:zk.DECIMAL,PERCENT:zk.PERCENT,PER_MILL:zk.PER_MILL,MINUS:zk.MINUS};var e=0,n,h,r=b?"-":d.MINUS,q=b?".":d.DECIMAL,f=b?"%":d.PERCENT;var g=String.fromCharCode(8240);var k=b?g:d.PER_MILL;b=b?",":d.GROUPING;d=!(new RegExp("('[%|"+
g+"]+')","g")).test(a);for(var m=0,l=c.length;m<l;++m){g=c.charAt(m);var t=!0;g==f&&d?e+=2:g==k&&d?e+=3:"("==g?n=!0:"+"!=g&&(t=!1);t||(t=("0">g||"9"<g)&&g!=q&&g!=r&&"+"!=g&&(zUtl.isChar(g,{whitespace:1})||g==b||")"==g||a&&0<=a.indexOf(g)));t?null==h&&(h=c.substring(0,m)):(t=g==r?"-":g==q?".":g,g!=t&&null==h&&(h=c.substring(0,m)),null!=h&&(h+=t))}null==h&&(h=c);if(0==parseFloat(h))return{raw:"0",divscale:e};for(n&&(h="-"+h);;)if(g=h.charAt(0),"+"==g)h=h.substring(1);else if("-"==g&&"-"==h.charAt(1))h=
h.substring(2);else break;m=0;var y;for(l=h.length;m<l;++m)if(g=h.charAt(m),"0"<g&&"9">=g){void 0!==y&&(h=h.substring(0,y)+h.substring(m));break}else if("0"==g)void 0===y&&(y=m);else if(void 0!==y){"."==g&&m>++y&&(h=h.substring(0,y)+h.substring(m));break}else if("."==g)break;return{raw:h,divscale:e}}}})();
