{"version":3,"file":"safe-decode-uri-component.cjs","names":[],"sources":["../src/safe-decode-uri-component.ts"],"sourcesContent":["/**\n * Safely decodes a URI component with `decodeURIComponent`. Returns the URI component unmodified if\n * `decodeURIComponent` throws an error.\n *\n * @param uriComponent URI component to decode.\n *\n * @return Decoded URI component if possible.\n */\nexport function safeDecodeURIComponent( uriComponent: string ): string {\n\ttry {\n\t\treturn decodeURIComponent( uriComponent );\n\t} catch {\n\t\treturn uriComponent;\n\t}\n}\n"],"mappings":";;;;;;;;;;;;;;AAQA,SAAgB,uBAAwB,cAA+B;CACtE,IAAI;EACH,OAAO,mBAAoB,YAAa;CACzC,QAAQ;EACP,OAAO;CACR;AACD"}