{"ast":null,"code":"\"use strict\";\n\nObject.defineProperty(exports, \"__esModule\", {\n  value: true\n});\n\nvar tslib_1 = require(\"tslib\");\n\nvar queryStringUtils = tslib_1.__importStar(require(\"query-string\"));\n\nfunction getQueryString(url) {\n  var pathEnd = url.indexOf(\"?\") !== -1 ? url.indexOf(\"?\") : undefined;\n  var queryString = typeof pathEnd !== \"undefined\" ? url.substr(pathEnd) : \"\";\n  return queryString;\n}\n\nexports.getQueryString = getQueryString;\n\nfunction appendToQueryString(queryString, newQueryParams) {\n  var queryParams = parseQueryString(queryString);\n  queryParams = Object.assign(Object.assign({}, queryParams), newQueryParams);\n  queryString = formatQueryString(queryParams);\n  return queryString;\n}\n\nexports.appendToQueryString = appendToQueryString;\n\nfunction parseQueryString(queryString) {\n  return queryStringUtils.parse(queryString);\n}\n\nexports.parseQueryString = parseQueryString;\n\nfunction formatQueryString(queryParams) {\n  return queryStringUtils.stringify(queryParams);\n}\n\nexports.formatQueryString = formatQueryString;","map":{"version":3,"sources":["../../src/url.ts"],"names":[],"mappings":";;;;;;;;AAAA,IAAA,gBAAA,GAAA,OAAA,CAAA,YAAA,CAAA,OAAA,CAAA,cAAA,CAAA,CAAA;;AAEA,SAAgB,cAAhB,CAA+B,GAA/B,EAA0C;AACxC,MAAM,OAAO,GAAuB,GAAG,CAAC,OAAJ,CAAY,GAAZ,MAAqB,CAAC,CAAtB,GAA0B,GAAG,CAAC,OAAJ,CAAY,GAAZ,CAA1B,GAA6C,SAAjF;AAEA,MAAM,WAAW,GAAW,OAAO,OAAP,KAAmB,WAAnB,GAAiC,GAAG,CAAC,MAAJ,CAAW,OAAX,CAAjC,GAAuD,EAAnF;AAEA,SAAO,WAAP;AACD;;AAND,OAAA,CAAA,cAAA,GAAA,cAAA;;AAQA,SAAgB,mBAAhB,CAAoC,WAApC,EAAyD,cAAzD,EAA4E;AAC1E,MAAI,WAAW,GAAG,gBAAgB,CAAC,WAAD,CAAlC;AAEA,EAAA,WAAW,GAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,MAAA,CAAA,EAAA,EAAQ,WAAR,CAAA,EAAwB,cAAxB,CAAX;AAEA,EAAA,WAAW,GAAG,iBAAiB,CAAC,WAAD,CAA/B;AAEA,SAAO,WAAP;AACD;;AARD,OAAA,CAAA,mBAAA,GAAA,mBAAA;;AAUA,SAAgB,gBAAhB,CAAiC,WAAjC,EAAoD;AAClD,SAAO,gBAAgB,CAAC,KAAjB,CAAuB,WAAvB,CAAP;AACD;;AAFD,OAAA,CAAA,gBAAA,GAAA,gBAAA;;AAIA,SAAgB,iBAAhB,CAAkC,WAAlC,EAAkD;AAChD,SAAO,gBAAgB,CAAC,SAAjB,CAA2B,WAA3B,CAAP;AACD;;AAFD,OAAA,CAAA,iBAAA,GAAA,iBAAA","sourceRoot":"","sourcesContent":["\"use strict\";\nObject.defineProperty(exports, \"__esModule\", { value: true });\nconst tslib_1 = require(\"tslib\");\nconst queryStringUtils = tslib_1.__importStar(require(\"query-string\"));\nfunction getQueryString(url) {\n    const pathEnd = url.indexOf(\"?\") !== -1 ? url.indexOf(\"?\") : undefined;\n    const queryString = typeof pathEnd !== \"undefined\" ? url.substr(pathEnd) : \"\";\n    return queryString;\n}\nexports.getQueryString = getQueryString;\nfunction appendToQueryString(queryString, newQueryParams) {\n    let queryParams = parseQueryString(queryString);\n    queryParams = Object.assign(Object.assign({}, queryParams), newQueryParams);\n    queryString = formatQueryString(queryParams);\n    return queryString;\n}\nexports.appendToQueryString = appendToQueryString;\nfunction parseQueryString(queryString) {\n    return queryStringUtils.parse(queryString);\n}\nexports.parseQueryString = parseQueryString;\nfunction formatQueryString(queryParams) {\n    return queryStringUtils.stringify(queryParams);\n}\nexports.formatQueryString = formatQueryString;\n//# sourceMappingURL=url.js.map"]},"metadata":{},"sourceType":"script"}