const n = (r, e) => e ? r : decodeURIComponent(r.replace(/%(?![0-9a-fA-F][0-9a-fA-F]+)/g, "%25")), t = (r, e) => {
  try {
    return JSON.parse(n(r, e));
  } catch {
    console.error("error parsing value:" + r);
  }
  return null;
}, s = (r, e) => JSON.stringify(r) === JSON.stringify(e);
export {
  s as compareJsonProps,
  n as decode,
  t as parse
};
