/* COPYRIGHT Esri - https://js.arcgis.com/5.1/LICENSE.txt */
const n = /* @__PURE__ */ new WeakMap();
function m(e, t) {
  const { formatter: r, lang: c } = n.get(t) ?? {};
  if (c === e && r)
    return r;
  const a = new Intl.NumberFormat(e, t);
  return n.set(t, { lang: e, formatter: a }), a;
}
export {
  m as g
};
