{"version":3,"file":"_isFormatUuid.mjs","names":[],"sources":["../../src/internal/_isFormatUuid.ts"],"sourcesContent":["/**\n * Checks UUID hexadecimal grouping with an optional urn:uuid prefix.\n *\n * Hexadecimal and the prefix are case-insensitive. The predicate imposes no\n * version, variant or allocation-history restriction.\n *\n * @evidence contracts/common.md#principled-implementation Eight hexadecimal digits followed by three four-digit groups and one twelve-digit group establish the accepted lexical spelling. Whole-input matching keeps the optional prefix outside the grouped identifier.\n * @evidence contracts/common.md#clear-and-simple-design One private expression owns the lexical contract, without binary decoding or identifier-version dispatch.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts Group lengths and the optional prefix are format constants applied uniformly, not known identifier or consumer exceptions.\n * @evidence contracts/common.md#meaningful-documentation The doc states the grouping, the optional urn:uuid prefix, case insensitivity and that no version or variant is imposed.\n */\nexport const _isFormatUuid = (str: string): boolean => PATTERN.test(str);\n\nconst PATTERN = /^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i;\n"],"mappings":";;;;;;;;;;;;AAWA,MAAa,iBAAiB,QAAyB,QAAQ,KAAK,GAAG;AAEvE,MAAM,UAAU"}