(function e(b,g,d){function c(m,j){if(!g[m]){if(!b[m]){var i=typeof require=="function"&&require;if(!j&&i){return i(m,!0)}if(a){return a(m,!0)}var k=new Error("Cannot find module '"+m+"'");throw k.code="MODULE_NOT_FOUND",k}var h=g[m]={exports:{}};b[m][0].call(h.exports,function(l){var o=b[m][1][l];return c(o?o:l)},h,h.exports,e,b,g,d)}return g[m].exports}var a=typeof require=="function"&&require;for(var f=0;f0){l=this.composeFormData(this.uploadFiles,m)}else{k=this.lightHttpLib.stringifyParam(m)}if(r==="POST"){u.open(r,i,n);this.setHeaders(u,p);if(l){u.send(l)}else{u.setRequestHeader("Content-type","application/x-www-form-urlencoded");u.send(k)}}else{if(k){if(i.match(/\?/)){i+="&"+k}else{i+="?"+k}}u.open(r,i,n);this.setHeaders(u,p);u.send()}this.clear();if(true===o){return h.promise}};f.instantiateRequest=function(){var j;if(window.XMLHttpRequest){j=new XMLHttpRequest();if(j.overrideMimeType){j.overrideMimeType("text/xml")}}else{if(window.ActiveXObject){try{j=new ActiveXObject("Msxml2.XMLHTTP")}catch(i){try{j=new ActiveXObject("Microsoft.XMLHTTP")}catch(h){}}}}return j};f.responseHandler=function(i){var k="",h={},j;j=i.xhr;if(j.readyState==4){h=j;k=j.responseText;if(true===i.isPromise){i.defer.resolve(k,h)}else{if(i.callback){i.callback(k,h)}}}};f.setHeaders=function(j,i){for(var h in i){j.setRequestHeader(h,i[h])}};f.timeoutHandler=function(h){};f.jsonpHandler=function(){};f.cleanJsonpCallback=function(){var h;for(h in this.jsonpCallbackList){if(this.jsonpCallbackList[h]===1){try{delete window[h]}catch(i){}}}};window.lightHttp=d;if(c){c=c.exports=new d();c.constructor=d}}())},{"./lib.js":1}]},{},[2]);