/* COPYRIGHT Esri - https://js.arcgis.com/5.0/LICENSE.txt */
import{a as c,b as m}from"./JOOZASOM.js";import{a as l}from"./DHVEHATY.js";import{b as o}from"./ZNBKMZP7.js";import{P as n,R as e}from"./GRFF5Y4R.js";function v({level:a,class:r,id:s,children:u,excludeGlobalCss:h}){let t=f(a),p=`h${t}`,i=c(p);return m`<${i} .ariaLevel=${String(t)} class=${n(o(h?r:l.heading,r))} id=${s??e} role=heading>${u}</${i}>`}function $(a,r,s){return Math.min(Math.max(a,r),s)}function f(a){return $(Math.ceil(a),1,6)}function C(a,r=1){return f(a+r)}export{v as a,C as b};
