(function (factory) {
    if (typeof module === "object" && typeof module.exports === "object") {
        var v = factory(require, exports);
        if (v !== undefined) module.exports = v;
    }
    else if (typeof define === "function" && define.amd) {
        define(["require", "exports"], factory);
    }
})(function (require, exports) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    exports.getValidAlpha = void 0;
    var getValidAlpha = function (alpha) {
        var _alpha = Number(alpha.replace("%", ""));
        if (_alpha > 100) {
            _alpha = 100;
        }
        if (_alpha < 0) {
            _alpha = 0;
        }
        if (isNaN(_alpha)) {
            _alpha = 100;
        }
        return _alpha + "%";
    };
    exports.getValidAlpha = getValidAlpha;
});
