var Un=M.U(M,"AdfDhtmlProgressIndicatorPeer",p);v("AdfDhtmlProgressIndicatorPeer",Un);Un.m=function(){this.mM="_afrProgressBarID";this.Fm="content";this.kNa="_afrProcessCompleted";this.LGa="af_progressIndicator.ARIA_VALUETEXT_DETERMINATE";this.oJa="af_progressIndicator.TIP_DETERMINATE"};v("AdfDhtmlProgressIndicatorPeer.InitSubclass",Un.m);
Un.prototype.q=function(a,b){Un.f.q.call(this,a,b);var d=w.fa(),e=M.g(a.e(),Un.mM);(e=d.getElementById(e))?(d=d.getAttribute(e,"aria-valuenow"),Kt(this,e,d,p)):O.FR(b)&&(d=H.nh(b,"role","progressbar","td"))&&d.getAttribute("aria-valuetext")&&page.Jr(d.getAttribute("aria-valuetext"),l)};z.a("AdfDhtmlProgressIndicatorPeer.prototype.InitDomElement",{q:Un.prototype.q});Un.prototype.M4=function(a){var b=this.d(),d=w.fa(),b=M.g(b.e(),Un.mM),d=d.getElementById(b);Kt(this,d,a,l)};
z.a("AdfDhtmlProgressIndicatorPeer.prototype.UpdateProgressIndicator",{M4:Un.prototype.M4});Un.prototype.Yj=function(a){var b=w.fa(),d;a=M.g(a.e(),Un.mM);(a=b.getElementById(a))&&(d=b.getAttribute(a,"aria-valuenow"));return d};z.a("AdfDhtmlProgressIndicatorPeer.prototype.getPercentComplete",{Yj:Un.prototype.Yj});
function Kt(a,b,d,e){var f=w.fa(),g=F.c,h=g.u();if(b){var m=0,q=0,s=f.getComputedStyle(b),y=f.$i(s,"width"),s=f.$i(s,"height");y!=n&&(m=w.ua(y));s!=n&&(q=w.ua(s));s=f.getComputedStyle(b.firstChild);y=Lt(s);s=Mt(s);g.Ma().Oa()?(b.firstChild.style.width=m*(100-d)/100+"px",b.lastChild.style.width=m*d/100+"px"):(b.firstChild.style.width=m*d/100+"px",b.lastChild.style.width=m*(100-d)/100+"px");var A=f.getComputedStyle(b.lastChild),C=Lt(A),A=Mt(A),G=0;s>=A?(G=s,b.lastChild.style.height=q+(G-A)+"px"):(G=
A,b.firstChild.style.height=q+(G-s)+"px");b.style.width=m+y+C+"px";b.style.height=q+G+"px";m=TrFastMessageFormatUtils.format(h.V(Un.oJa),d);e&&(a=M.g(a.d().e(),Un.Fm),(a=f.getElementById(a))&&f.setAttribute(a,"title",m),h=TrFastMessageFormatUtils.format(h.V(Un.LGa),d),f.setAttribute(b,"aria-valuetext",h),f.setAttribute(b,"aria-valuenow",d));g.Jr(m,l)}}function Lt(a){if(a!=n){var b=a.borderLeftWidth;a=a.borderRightWidth;var d=0,e=0;b!=n&&(d=w.ua(b));a!=n&&(e=w.ua(a));return d+e}return 0}
function Mt(a){if(a!=n){var b=a.borderTopWidth;a=a.borderBottomWidth;var d=0,e=0;b!=n&&(d=w.ua(b));a!=n&&(e=w.ua(a));return d+e}return 0};