"use strict";
var __create = Object.create;
var __defProp = Object.defineProperty;
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
var __getOwnPropNames = Object.getOwnPropertyNames;
var __getProtoOf = Object.getPrototypeOf;
var __hasOwnProp = Object.prototype.hasOwnProperty;
var __name = (target, value) => __defProp(target, "name", { value, configurable: true });
var __export = (target, all) => {
  for (var name in all)
    __defProp(target, name, { get: all[name], enumerable: true });
};
var __copyProps = (to, from, except, desc) => {
  if (from && typeof from === "object" || typeof from === "function") {
    for (let key of __getOwnPropNames(from))
      if (!__hasOwnProp.call(to, key) && key !== except)
        __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
  }
  return to;
};
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
  // If the importer is in node compatibility mode or this is not an ESM
  // file that has been converted to a CommonJS file using a Babel-
  // compatible transform (i.e. "__esModule" has not been set), then set
  // "default" to the CommonJS "module.exports" for node compatibility.
  isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
  mod
));
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
var compareVersions_exports = {};
__export(compareVersions_exports, {
  sdkVersionGt: () => sdkVersionGt,
  sdkVersionGte: () => sdkVersionGte,
  sdkVersionLt: () => sdkVersionLt,
  sdkVersionLte: () => sdkVersionLte
});
module.exports = __toCommonJS(compareVersions_exports);
var import_shared = require("@zwave-js/shared");
var import_gt = __toESM(require("semver/functions/gt.js"), 1);
var import_gte = __toESM(require("semver/functions/gte.js"), 1);
var import_lt = __toESM(require("semver/functions/lt.js"), 1);
var import_lte = __toESM(require("semver/functions/lte.js"), 1);
function sdkVersionGt(sdkVersion, compareVersion) {
  if (sdkVersion === void 0) {
    return void 0;
  }
  return (0, import_gt.default)((0, import_shared.padVersion)(sdkVersion), (0, import_shared.padVersion)(compareVersion));
}
__name(sdkVersionGt, "sdkVersionGt");
function sdkVersionGte(sdkVersion, compareVersion) {
  if (sdkVersion === void 0) {
    return void 0;
  }
  return (0, import_gte.default)((0, import_shared.padVersion)(sdkVersion), (0, import_shared.padVersion)(compareVersion));
}
__name(sdkVersionGte, "sdkVersionGte");
function sdkVersionLt(sdkVersion, compareVersion) {
  if (sdkVersion === void 0) {
    return void 0;
  }
  return (0, import_lt.default)((0, import_shared.padVersion)(sdkVersion), (0, import_shared.padVersion)(compareVersion));
}
__name(sdkVersionLt, "sdkVersionLt");
function sdkVersionLte(sdkVersion, compareVersion) {
  if (sdkVersion === void 0) {
    return void 0;
  }
  return (0, import_lte.default)((0, import_shared.padVersion)(sdkVersion), (0, import_shared.padVersion)(compareVersion));
}
__name(sdkVersionLte, "sdkVersionLte");
// Annotate the CommonJS export names for ESM import in node:
0 && (module.exports = {
  sdkVersionGt,
  sdkVersionGte,
  sdkVersionLt,
  sdkVersionLte
});
//# sourceMappingURL=compareVersions.js.map
