function Ye(){this.Init()}v("AdfXMLRequest",Ye);z.l(Ye);Ye.xma=0;v("AdfXMLRequest.UNINITIALIZED",Ye.xma);Ye.LOADING=1;v("AdfXMLRequest.LOADING",Ye.LOADING);Ye.YFa=2;v("AdfXMLRequest.LOADED",Ye.YFa);Ye.XFa=3;v("AdfXMLRequest.INTERACTIVE",Ye.XFa);Ye.JS=4;v("AdfXMLRequest.COMPLETED",Ye.JS);Ye.i5=Jc.Lk("send","postback");Ye.i5.setDescription("A measurement of how long is spend processing an XMLHttpRequest");Ye.Z0a=function(){Ye.tW==k&&(Ye.tW=Ye.i5.start())};
Ye.f1a=function(){Ye.tW!=k&&(Ye.i5.stop(Ye.tW),Ye.tW=k)};Ye.prototype.Init=function(){Ye.f.Init.call(this);this.V0=p;this.sn=n;this.eh=Ye.xma;this.headers={};this.Yk=w.b.Yx();if(!this.Yk){var a=F.c.u().V("af_document.XMLHTTP_UNSUPPORTED");alert(a)}};z.a("AdfXMLRequest.prototype.Init",{Init:Ye.prototype.Init});Ye.prototype.toString=function(){return Ye.f.toString.call(this)+" completionState:"+this.$Q()};z.a("AdfXMLRequest.prototype.toString",{toString:Ye.prototype.toString});Ye.prototype.tD=da("V0");
z.a("AdfXMLRequest.prototype.setSynchronous",{tD:Ye.prototype.tD});Ye.prototype.$R=da("sn");z.a("AdfXMLRequest.prototype.setCallback",{$R:Ye.prototype.$R});Ye.prototype.addEventListener=function(a,b){this.Yk.upload&&this.Yk.upload.addEventListener(a,b,p)};z.a("AdfXMLRequest.prototype.addEventListener",{addEventListener:Ye.prototype.addEventListener});Ye.prototype.$Q=r("eh");z.a("AdfXMLRequest.prototype.getCompletionState",{$Q:Ye.prototype.$Q});Ye.prototype.Ld=function(){return this.Yk.status};
z.a("AdfXMLRequest.prototype.getStatus",{Ld:Ye.prototype.Ld});Ye.prototype.Cn=function(){return this.Yk.responseXML};z.a("AdfXMLRequest.prototype.getResponseXML",{Cn:Ye.prototype.Cn});Ye.prototype.Bn=function(){return this.Yk.responseText};z.a("AdfXMLRequest.prototype.getResponseText",{Bn:Ye.prototype.Bn});
Ye.prototype.send=function(a,b,d){var e=this.Yk;if(!this.V0&&this.sn){var f=new Function("arguments.callee.obj.__onReadyStateChange();");f.obj=this;e.onreadystatechange=f}Ye.Z0a();e.open(b!==n&&b!==k?"POST":"GET",a,!this.V0);for(var g in this.headers)e.setRequestHeader(g,this.headers[g]);d||e.setRequestHeader("Adf-Rich-Message","true");e.send(b);this.V0&&this.__onReadyStateChange()};z.a("AdfXMLRequest.prototype.send",{send:Ye.prototype.send});Ye.prototype.abort=function(){var a=this.Yk;a&&a.abort()};
z.a("AdfXMLRequest.prototype.abort",{abort:Ye.prototype.abort});Ye.prototype.getResponseHeader=function(a){return this.Yk.getResponseHeader(a)};z.a("AdfXMLRequest.prototype.getResponseHeader",{getResponseHeader:Ye.prototype.getResponseHeader});Ye.prototype.getAllResponseHeaders=function(){return this.Yk.getAllResponseHeaders()};z.a("AdfXMLRequest.prototype.getAllResponseHeaders",{getAllResponseHeaders:Ye.prototype.getAllResponseHeaders});
Ye.prototype.setRequestHeader=function(a,b){this.headers[a]=b};z.a("AdfXMLRequest.prototype.setRequestHeader",{setRequestHeader:Ye.prototype.setRequestHeader});Ye.prototype.__onReadyStateChange=function(){this.eh=this.Yk.readyState;this.eh==Ye.JS&&(Ye.f1a(),F.c.Uk()&&this.Yk.responseXML&&Ze.Dia());this.sn&&this.sn(this)};Ye.prototype.tn=function(){this.sn=n;delete this.headers;delete this.Yk};z.a("AdfXMLRequest.prototype.cleanup",{tn:Ye.prototype.tn});