import { classes as l } from "@arcgis/toolkit/dom";
import { safeClassMap as m, nothing as c } from "@arcgis/lumina";
import { unsafeStatic as g, html as f } from "lit/static-html.js";
import { g as p } from "./globalCss.js";
/*! All material copyright Esri, All Rights Reserved, unless otherwise specified.
See https://js.arcgis.com/4.34/esri/copyright.txt for details.
v4.34.7 */
function v({ level: a, class: t, id: n, children: o, excludeGlobalCss: r }) {
  const e = u(a), s = `h${e}`, i = g(s);
  return f`<${i} .ariaLevel=${String(e)} class=${m(l(r ? t : p.heading, t))} id=${n ?? c} role=heading>${o}</${i}>`;
}
function h(a, t, n) {
  return Math.min(Math.max(a, t), n);
}
function u(a) {
  return h(Math.ceil(a), 1, 6);
}
export {
  v as H
};
