import { __esm } from "../../../../../../_virtual/rolldown_runtime.mjs";
import validate_default, { init_validate } from "./validate.mjs";

//#region ../../node_modules/samlify/node_modules/uuid/dist/esm-browser/parse.js
function parse(uuid) {
	if (!validate_default(uuid)) throw TypeError("Invalid UUID");
	var v;
	var arr = new Uint8Array(16);
	arr[0] = (v = parseInt(uuid.slice(0, 8), 16)) >>> 24;
	arr[1] = v >>> 16 & 255;
	arr[2] = v >>> 8 & 255;
	arr[3] = v & 255;
	arr[4] = (v = parseInt(uuid.slice(9, 13), 16)) >>> 8;
	arr[5] = v & 255;
	arr[6] = (v = parseInt(uuid.slice(14, 18), 16)) >>> 8;
	arr[7] = v & 255;
	arr[8] = (v = parseInt(uuid.slice(19, 23), 16)) >>> 8;
	arr[9] = v & 255;
	arr[10] = (v = parseInt(uuid.slice(24, 36), 16)) / 1099511627776 & 255;
	arr[11] = v / 4294967296 & 255;
	arr[12] = v >>> 24 & 255;
	arr[13] = v >>> 16 & 255;
	arr[14] = v >>> 8 & 255;
	arr[15] = v & 255;
	return arr;
}
var parse_default;
var init_parse = __esm({ "../../node_modules/samlify/node_modules/uuid/dist/esm-browser/parse.js": (() => {
	init_validate();
	parse_default = parse;
}) });

//#endregion
init_parse();
export { parse_default as default, init_parse };
//# sourceMappingURL=parse.mjs.map