define(["require", "exports", "../../algorithms/mod11And10"], function (require, exports, mod11And10_1) {
    "use strict";
    Object.defineProperty(exports, "__esModule", { value: true });
    function hrVat(value) {
        var v = value;
        if (/^HR[0-9]{11}$/.test(v)) {
            v = v.substr(2);
        }
        if (!/^[0-9]{11}$/.test(v)) {
            return {
                meta: {},
                valid: false,
            };
        }
        return {
            meta: {},
            valid: (0, mod11And10_1.default)(v),
        };
    }
    exports.default = hrVat;
});
