import { classes as i } from "@arcgis/components-utils";
import { safeClassMap as o } from "@arcgis/lumina";
import { unsafeStatic as l, html as m } from "lit/static-html.js";
import { g as c } from "./globalCss.js";
/*! All material copyright GeoScene, All Rights Reserved, unless otherwise specified.
See https://js.geoscene.cn/4.33/geoscene/copyright.txt for details.
v4.33.18 */
function d({ level: a, class: t, children: e }) {
  const n = g(a), s = `h${n}`, r = l(s);
  return m`<${r} .ariaLevel=${String(n)} class=${o(i(c.heading, t))} role=heading>${e}</${r}>`;
}
function f(a, t, e) {
  return Math.min(Math.max(a, t), e);
}
function g(a) {
  return f(Math.ceil(a), 1, 6);
}
export {
  d as H
};