import{g as t}from"./p-487241b6.js";class s{static isValidVin(s){s=(s||"").toLowerCase();const{regex:i,tables:r,positions:e}=t;if(!i.test(s))return!1;let a=0;for(let t=0;t<s.length;++t)a+=r.translation[s.charAt(t)]*r.weights[t];const o=a%e.mod;return 10===o?"x"===s.charAt(e.checksum):s.charAt(e.checksum)===o.toString()}static hasValidLength(t){return 17===(null==t?void 0:t.length)}static getValidationErrorMessage(s){return this.isValidVin(s)?void 0:t.messages.invalid}}s.VALID_VIN_LENGTH=17;export{s as V}