function ld(a,b){B.assert(window.console&&window.console.firebug,"Firebug not installed");ld.EY=B.ef;B.ef=ld.W8;this.Init(a,b)}v("AdfFireBugLogWriter",ld);z.l(ld,sa);ld.prototype.Init=function(a,b){ld.f.Init.call(this,a,b);this.UA=ld.Fma?new ta(a,b):n};z.a("AdfFireBugLogWriter.prototype.Init",{Init:ld.prototype.Init});
ld.prototype.Yc=function(a){this.ng();B.assert(a,"null logRecord");var b=this.UA,d=a[Bc.Mv];if(d&&b)b.jg(a);else{var b=window.console,e=a[Bc.ht],e=e>=D.SEVERE?b.error:e>=D.WARNING?b.warn:e>=D.INFO?b.info:b.debug,f;f=a[Bc.$v];if(f==n)f=n;else if(B.s(f),!(100>=f.length)){f=f.split("\n");for(var g=[],h=f.length,m=0;m<h;m++){var q=0,s=f[m],y=s.length;if(100>y)g.push(s);else for(;q<y;){var A=q+100,C=s.lastIndexOf(" ",A),G=s.lastIndexOf("\t",A);G>C&&(C=G);C<q?(C=A,A=0):A=1;g.push("\t"+s.substring(q,C));
q=C+A}}f=g.join("\n")}a=a[Bc.mw];d?e.call(b,"Message:%s\nError:%o\nWhen:%o",f,d,a):e.call(b,"Message:%s\nWhen:%o",f,a)}};z.a("AdfFireBugLogWriter.prototype.PublishImpl",{Yc:ld.prototype.Yc});ld.prototype.flush=function(){ld.f.flush.call(this);var a=this.UA;a&&a.flush()};z.a("AdfFireBugLogWriter.prototype.flush",{flush:ld.prototype.flush});ld.prototype.close=function(){ld.f.close.call(this);var a=this.UA;a&&a.close()};z.a("AdfFireBugLogWriter.prototype.close",{close:ld.prototype.close});
ld.W8=function(a,b,d){var e=window.console;if(e){var f=a,g="Assertion %sfailed ",f=[n,f==n?"":f+" "];d!=n&&(g+=" because %s ",f[2]=d);f[0]=g+"at:";e.group.apply(e,f);e.trace();e.groupEnd()}ld.EY(a,b+1,d)};ld.Fma=l;v("AdfFireBugLogWriter.WRITE_ERRORS_TO_CONSOLE",ld.Fma);