function u(e) {
  return e !== null && e > "" && !isNaN(Number(e));
}
function c(e) {
  return Number(e).toLocaleString(void 0, { minimumFractionDigits: 0 });
}
function m(e) {
  return e == null;
}
function d() {
  return !!(navigator.userAgent.match(/Trident/g) || navigator.userAgent.match(/MSIE/g));
}
function o(e) {
  try {
    return new URL(e), !0;
  } catch {
    return !1;
  }
}
function f(e, r) {
  if (o(e) === !1)
    return;
  const t = new URL(e), n = t.hostname;
  if (n === "image.mapsindoors.com") {
    const a = Math.max(2, window.devicePixelRatio || 1), i = r * a, s = r * a;
    t.searchParams.set("width", i.toString()), t.searchParams.set("height", s.toString()), t.searchParams.set("fitMode", "cover");
  }
  return ["app.mapsindoors.com", "v2.mapsindoors.com"].includes(n) && t.searchParams.set("scale", "2"), t.toString();
}
export {
  u as a,
  f as b,
  d as c,
  c as f,
  m as i
};
//# sourceMappingURL=utils-ae714467-b07fc3be.mjs.map
