{"version":3,"sources":["jquery.querystring.ts"],"names":["_$","_location","_queryStringParser","url","result","Array","parts","split","decode","args","len","length","i","param","e","decodeURIComponent","_queryString","search","Querystring","key","hash","substr","QueryStringParser","jQuery","window","location"],"mappings":"CAQA,SAAUA,EAAkBC,GAC3B,YAIA,SAAAC,GAA4BC,GAC3B,GAAMC,GAAS,GAAIC,MACnB,KACC,GAAMC,GAASH,EAAII,MAAM,KAAK,GAAIA,MAAM,IACxCJ,GAAMG,EAAM,GACRA,EAAM,KACTF,EAAO,KAAOI,EAAOF,EAAM,IAI5B,KAAK,GAFCG,GAAON,EAAII,MAAM,KACjBG,EAAMD,EAAKE,OACRC,EAAI,EAAGA,EAAIF,EAAKE,IAAK,CAC7B,GAAMC,GAAQJ,EAAKG,GAAGL,MAAM,IAC5BH,GAAOS,EAAM,IAAML,EAAOK,EAAM,KAEhC,MAAOC,IAGT,MAAOV,GAnBR,GAAMI,GAASO,mBAsBTC,EAAed,EAAmBD,EAAUgB,OAClDjB,GAAGkB,YAAc,SAASC,GACzB,MAAY,MAARA,EAKIH,EAAaG,GAJhBlB,EAAUmB,KACNnB,EAAUmB,KAAKC,OAAO,GAD9B,QAQFrB,EAAGsB,kBAAoBpB,GACrBqB,OAAQC,OAAOC","file":"jquery.querystring.min.js","sourcesContent":["/// \r\n\r\ninterface JQueryStatic {\r\n\t//Gets the querystring parameter for the key specified (returns undefined if no value is present)\r\n\tQuerystring(key: string): string;\r\n\tQueryStringParser(url: string): string[];\r\n}\r\n\r\n(function(_$: JQueryStatic, _location: Location) {\r\n\t\"use strict\";\r\n\r\n\tconst decode = decodeURIComponent;\r\n\r\n\tfunction _queryStringParser(url: string) {\r\n\t\tconst result = new Array();\r\n\t\ttry\t{\r\n\t\t\tconst parts = (url.split(\"?\")[1]).split(\"#\");\r\n\t\t\turl = parts[0];\r\n\t\t\tif (parts[1]) {\r\n\t\t\t\tresult[\"#\"] = decode(parts[1]);\r\n\t\t\t}\r\n\t\t\tconst args = url.split(\"&\");\r\n\t\t\tconst len = args.length;\r\n\t\t\tfor (let i = 0; i < len; i++) {\r\n\t\t\t\tconst param = args[i].split(\"=\");\r\n\t\t\t\tresult[param[0]] = decode(param[1]);\r\n\t\t\t}\r\n\t\t} catch (e) {\r\n\t\t\t//No luck, No problem.\r\n\t\t}\r\n\t\treturn result;\r\n\t}\r\n\r\n\tconst _queryString = _queryStringParser(_location.search);\r\n\t_$.Querystring = function(key: string) {\r\n\t\tif (key === \"#\") {\r\n\t\t\tif (_location.hash) {\r\n\t\t\t\treturn _location.hash.substr(1);\r\n\t\t\t}\r\n\t\t} else {\r\n\t\t\treturn _queryString[key];\r\n\t\t}\r\n\t};\r\n\r\n\t_$.QueryStringParser = _queryStringParser;\r\n})(jQuery, window.location);"],"sourceRoot":"/source/"}