!function(e,r){"object"==typeof exports&&"undefined"!=typeof module?r(exports):"function"==typeof define&&define.amd?define(["exports"],r):r((e="undefined"!=typeof globalThis?globalThis:e||self).Qs={})}(this,(function(e){"use strict";var r=(e=window.location.href)=>{var[r,i=""]=e.split("?"),n="";return r.includes("#")?[r,n]=r.split("#"):i.includes("#")&&([i,n]=i.split("#")),{url:r,query:t(i),hash:n}},t=(e=window.location.search,r=!0)=>{var t=e;e.includes("?")&&([,t=""]=e.split("?")),t.includes("#")&&([t=""]=t.split("#"));for(var i=t.split("&"),n={};i.length;){var s=i.shift(),[o="",l=""]=s.split("=");o&&(n[o]=r?decodeURIComponent(l):l)}return n},i=(e={},r=!0)=>{var t=[];return Object.keys(e).forEach((i=>{var n=e[i]||"";t.push(`${i}=${r?encodeURIComponent(n):n}`)})),t.join("&")},n=(e,t={})=>{var n="",{url:s,query:o,hash:l}=r(e),a=i(Object.assign({},o,t));return a&&(n=`${s}?${a}`),l&&(n=`${n}#${l}`),n},s={parseUrl:r,getQueryParams:t,stringify:i,stringifyUrl:n};e.default=s,e.getQueryParams