text: "use strict";
  
  Object.defineProperty(exports, "__esModule", {
    value: true
  });
  exports.default = void 0;
  
  var _common = require("./common");
  
  var _default = function _default(min, max) {
    return (0, _common.withParams)({
      type: 'between',
      min: min,
      max: max
    }, function (value) {
      return !(0, _common.req)(value) || (!/\s/.test(value) || value instanceof Date) && +min <= +value && +max >= +value;
    });
  };
  
  exports.default = _default;