function Gf(){this.Init()}m("AdfXMLRequest",Gf);r.v(Gf);Gf.tza=0;m("AdfXMLRequest.UNINITIALIZED",Gf.tza);Gf.LOADING=1;m("AdfXMLRequest.LOADING",Gf.LOADING);Gf.LOADED=2;m("AdfXMLRequest.LOADED",Gf.LOADED);Gf.MWa=3;m("AdfXMLRequest.INTERACTIVE",Gf.MWa);Gf.LQ=4;m("AdfXMLRequest.COMPLETED",Gf.LQ);Gf.Vda=Zc.sm("send","postback");Gf.Vda.setDescription("A measurement of how long is spend processing an XMLHttpRequest");Gf.Zmb=function(){void 0==Gf.W3&&(Gf.W3=Gf.Vda.start())};
Gf.gnb=function(){void 0!=Gf.W3&&(Gf.Vda.stop(Gf.W3),Gf.W3=void 0)};Gf.prototype.Init=function(){Gf.h.Init.call(this);this.o$=!1;this.Ip=null;this.ei=Gf.tza;this.headers={};this.Nm=q.b.eC();if(!this.Nm){var a=A.c.H().Z("af_document.XMLHTTP_UNSUPPORTED");alert(a)}};r.a("AdfXMLRequest.prototype.Init",{Init:Gf.prototype.Init});Gf.prototype.toString=function(){return Gf.h.toString.call(this)+" completionState:"+this.KO()};r.a("AdfXMLRequest.prototype.toString",{toString:Gf.prototype.toString});
Gf.prototype.tI=function(a){this.o$=a};r.a("AdfXMLRequest.prototype.setSynchronous",{tI:Gf.prototype.tI});Gf.prototype.kQ=function(a){this.Ip=a};r.a("AdfXMLRequest.prototype.setCallback",{kQ:Gf.prototype.kQ});Gf.prototype.addEventListener=function(a,b){this.Nm.upload&&this.Nm.upload.addEventListener(a,b,!1)};r.a("AdfXMLRequest.prototype.addEventListener",{addEventListener:Gf.prototype.addEventListener});Gf.prototype.KO=function(){return this.ei};r.a("AdfXMLRequest.prototype.getCompletionState",{KO:Gf.prototype.KO});
Gf.prototype.se=function(){return this.Nm.status};r.a("AdfXMLRequest.prototype.getStatus",{se:Gf.prototype.se});Gf.prototype.qo=function(){return this.Nm.responseXML};r.a("AdfXMLRequest.prototype.getResponseXML",{qo:Gf.prototype.qo});Gf.prototype.po=function(){return this.Nm.responseText};r.a("AdfXMLRequest.prototype.getResponseText",{po:Gf.prototype.po});
Gf.prototype.send=function(a,b,d){var e=this.Nm;if(!this.o$&&this.Ip){var f=function(){arguments.callee.vwb.Itb()};f.obj=this;e.onreadystatechange=f}Gf.Zmb();e.open(null!==b&&void 0!==b?"POST":"GET",a,!this.o$);for(var g in this.headers)e.setRequestHeader(g,this.headers[g]);d||e.setRequestHeader("Adf-Rich-Message","true");e.send(b);this.o$&&this.__onReadyStateChange()};r.a("AdfXMLRequest.prototype.send",{send:Gf.prototype.send});Gf.prototype.abort=function(){var a=this.Nm;a&&a.abort()};
r.a("AdfXMLRequest.prototype.abort",{abort:Gf.prototype.abort});Gf.prototype.getResponseHeader=function(a){return this.Nm.getResponseHeader(a)};r.a("AdfXMLRequest.prototype.getResponseHeader",{getResponseHeader:Gf.prototype.getResponseHeader});Gf.prototype.getAllResponseHeaders=function(){return this.Nm.getAllResponseHeaders()};r.a("AdfXMLRequest.prototype.getAllResponseHeaders",{getAllResponseHeaders:Gf.prototype.getAllResponseHeaders});
Gf.prototype.setRequestHeader=function(a,b){this.headers[a]=b};r.a("AdfXMLRequest.prototype.setRequestHeader",{setRequestHeader:Gf.prototype.setRequestHeader});Gf.prototype.__onReadyStateChange=function(){this.ei=this.Nm.readyState;this.ei==Gf.LQ&&(Gf.gnb(),A.c.Gm()&&this.Nm.responseXML&&Hf.Tua());this.Ip&&this.Ip(this)};Gf.prototype.Jp=function(){this.Ip=null;delete this.headers;delete this.Nm};r.a("AdfXMLRequest.prototype.cleanup",{Jp:Gf.prototype.Jp});