define("dojo/_base/xhr",["./kernel","./sniff","require","../io-query","../dom","../dom-form","./Deferred","./config","./json","./lang","./array","../on","../aspect","../request/watch","../request/xhr","../request/util"],function(_1,_2,_3,_4,_5,_6,_7,_8,_9,_a,_b,on,_c,_d,_e,_f){_1._xhrObj=_e._create;varcfg=_1.config;_1.objectToQuery=_4.objectToQuery;_1.queryToObject=_4.queryToObject;_1.fieldToObject=_6.fieldToObject;_1.formToObject=_6.toObject;_1.formToQuery=_6.toQuery;_1.formToJson=_6.toJson;_1._blockAsync=false;var_10=_1._contentHandlers=_1.contentHandlers={"text":function(xhr){returnxhr.responseText;},"json":function(xhr){return_9.fromJson(xhr.responseText||null);},"json-comment-filtered":function(xhr){if(!_8.useCommentedJson){console.warn("Consider using the standard mimetype:application/json."+" json-commenting can introduce security issues. To"+" decrease the chances of hijacking, use the standard the 'json' handler and"+" prefix your json with: {}&&\n"+"Use djConfig.useCommentedJson=true to turn off this message.");}var_11=xhr.responseText;var_12=_11.indexOf("/*");var_13=_11.lastIndexOf("*/");if(_12==-1||_13==-1){thrownewError("JSON was not comment filtered");}return_9.fromJson(_11.substring(_12+2,_13));},"javascript":function(xhr){return_1.eval(xhr.responseText);},"xml":function(xhr){var_14=xhr.responseXML;if(_14&&_2("dom-qsa2.1")&&!_14.querySelectorAll&&_2("dom-parser")){_14=newDOMParser().parseFromString(xhr.responseText,"application/xml");}if(_2("ie")){if((!_14||!_14.documentElement)){varms=function(n){return"MSXML"+n+".DOMDocument";};vardp=["Microsoft.XMLDOM",ms(6),ms(4),ms(3),ms(2)];_b.some(dp,function(p){try{vardom=newActiveXObject(p);dom.async=false;dom.loadXML(xhr.responseText);_14=dom;}catch(e){returnfalse;}returntrue;});}}return_14;},"json-comment-optional":function(xhr){if(xhr.responseText&&/^[^{\[]*\/\*/.test(xhr.responseText)){return_10["json-comment-filtered"](xhr);}else{return_10["json"](xhr);}}};_1._ioSetArgs=function(_15,_16,_17,_18){var_19={args:_15,url:_15.url};var_1a=null;if(_15.form){var_1b=_5.byId(_15.form);var_1c=_1b.getAttributeNode("action");_19.url=_19.url||(_1c?_1c.value:(_1.doc?_1.doc.URL:null));_1a=_6.toObject(_1b);}var_1d={};if(_1a){_a.mixin(_1d,_1a);}if(_15.content){_a.mixin(_1d,_15.content);}if(_15.preventCache){_1d["dojo.preventCache"]=newDate().valueOf();}_19.query=_4.objectToQuery(_1d);_19.handleAs=_15.handleAs||"text";vard=new_7(function(dfd){dfd.canceled=true;_16&&_16(dfd);varerr=dfd.ioArgs.error;if(!err){err=newError("request cancelled");err.dojoType="cancel";dfd.ioArgs.error=err;}returnerr;});d.addCallback(_17);varld=_15.load;if(ld&&_a.isFunction(ld)){d.addCallback(function(_1e){returnld.call(_15,_1e,_19);});}varerr=_15.error;if(err&&_a.isFunction(err)){d.addErrback(function(_1f){returnerr.call(_15,_1f,_19);});}var_20=_15.handle;if(_20&&_a.isFunction(_20)){d.addBoth(function(_21){return_20.call(_15,_21,_19);});}d.addErrback(function(_22){return_18(_22,d);});if(cfg.ioPublish&&_1.publish&&_19.args.ioPublish!==false){d.addCallbacks(function(res){_1.publish("/dojo/io/load",[d,res]);returnres;},function(res){_1.publish("/dojo/io/error",[d,res]);returnres;});d.addBoth(function(res){_1.publish("/dojo/io/done",[d,res]);returnres;});}d.ioArgs=_19;returnd;};var_23=function(dfd){varret=_10[dfd.ioArgs.handleAs](dfd.ioArgs.xhr);returnret===undefined?null:ret;};var_24=function(_25,dfd){if(!dfd.ioArgs.args.failOk){console.error(_25);}return_25;};var_26=function(dfd){if(_27<=0){_27=0;if(cfg.ioPublish&&_1.publish&&(!dfd||dfd&&dfd.ioArgs.args.ioPublish!==false)){_1.publish("/dojo/io/stop");}}};var_27=0;_c.after(_d,"_onAction",function(){_27-=1;});_c.after(_d,"_onInFlight",_26);_1._ioCancelAll=_d.cancelAll;_1._ioNotifyStart=function(dfd){if(cfg.ioPublish&&_1.publish&&dfd.ioArgs.args.ioPublish!==false){if(!_27){_1.publish("/dojo/io/start");}_27+=1;_1.publish("/dojo/io/send",[dfd]);}};_1._ioWatch=function(dfd,_28,_29,_2a){var_2b=dfd.ioArgs.options=dfd.ioArgs.args;_a.mixin(dfd,{response:dfd.ioArgs,isValid:function(_2c){return_28(dfd);},isReady