!function(r,e){"function"==typeof define&&define.amd?define("simple-query-string",e):"object"==typeof module&&module.exports?module.exports=e():r.simpleQueryString=e()}(this,function(){"use strict";function r(r){var e,n=Object.prototype.hasOwnProperty,t=[];for(e in r)n.call(r,e)&&t.push(e);return t}function e(r){return void 0===r?null:r?decodeURIComponent(r):r}function n(r){switch(typeof r){case"string":return encodeURIComponent(r);case"boolean":return r?"true":"false";case"number":return isFinite(r)?r:"";case"object":return void 0===r||null===r?"":JSON&&JSON.stringify?encodeURIComponent(JSON.stringify(r)):"";default:return""}}return Array.isArray||(Array.isArray=function(r){return"[object Array]"===Object.prototype.toString.call(r)}),{version:"1.3.2",parse:function(r,n,t){var i;n=n||"&",t=t||"=";var o=Object.create(null);if("string"!=typeof r)return o;if((i=r.indexOf("?"))<0&&r.indexOf(t)<0)return o;i>=0&&(r=r.substr(i+1)),(i=(r=r.replace(/^[\s\uFEFF\xA0\?#&]+|[\s\uFEFF\xA0&]+$/g,"")).lastIndexOf("#"))>0&&(r=r.substr(0,i));var u=r.split(n);for(i=0;i