{
  "version": 3,
  "sources": ["../../src/utils/decoders/decodePart.ts"],
  "sourcesContent": ["import { isUtf8 } from './isUtf8';\n\nexport function decodePart(part: string) {\n  let decodedPart = part;\n\n  try {\n    const hexPart = Buffer.from(part, 'hex').toString();\n\n    if (isUtf8(hexPart) && hexPart.length > 1) {\n      decodedPart = hexPart;\n    }\n  } catch (_error) {\n    /* empty */\n  }\n\n  return decodedPart;\n}\n"],
  "mappings": "yCAEO,SAASA,EAAWC,EAAc,CACvC,IAAIC,EAAcD,EAElB,GAAI,CACF,IAAME,EAAU,OAAO,KAAKF,EAAM,KAAK,EAAE,SAAS,EAE9CG,EAAOD,CAAO,GAAKA,EAAQ,OAAS,IACtCD,EAAcC,EAElB,MAAiB,CAEjB,CAEA,OAAOD,CACT",
  "names": ["decodePart", "part", "decodedPart", "hexPart", "isUtf8"]
}
