Loading
function(e){"use strict";e.exports=function(e,t,n,i){t=t||"&",n=n||"=";var r={};if("string"!=typeof e||0===e.length)return r;var s=/\+/g;e=e.split(t);var a=1e3;i&&"number"==typeof i.maxKeys&&(a=i.maxKeys);var o=e.length;a>0&&o>a&&(o=a);for(var l=0;l<o;++l){var u,d,c,_,h=e[l].replace(s,"%20"),f=h.indexOf(n);(f>=0?(u=h.substr(0,f),d=h.substr(f+1)):(u=h,d=""),c=decodeURIComponent(u),_=decodeURIComponent(d),Object.prototype.hasOwnProperty.call(r,c))?Array.isArray(r[c])?r[c].push(_):r[c]=[r[c],_]:r[c]=_}return r}}