"use client";
const r = /[\dA-Fa-f]/;
function n(o, e, a) {
  const t = "&#x" + o.toString(16).toUpperCase();
  return a && e && !r.test(String.fromCharCode(e)) ? t : t + ";";
}
export {
  n as toHexadecimal
};
