if (self::MAX ===
$uuid =
strtr($uuid, 'F', 'f'
)) { return new MaxUuid();
} if (!\
in_array($uuid[19
],
['8', '9', 'a', 'b', 'A', 'B'
], true
)) { return new self($uuid);
} return match ((int) $uuid[14
]) { UuidV1::TYPE =>
new UuidV1($uuid),
UuidV3::TYPE =>
new UuidV3($uuid),
UuidV4::TYPE =>
new UuidV4($uuid),
UuidV5::TYPE =>
new UuidV5($uuid),
UuidV6::TYPE =>
new UuidV6($uuid),
UuidV7::TYPE =>
new UuidV7($uuid),
UuidV8::TYPE =>
new UuidV8($uuid),
default =>
new self($uuid),
};
} final public static function v1(): UuidV1
{