const require_rolldown_runtime = require('../../../../../../_virtual/rolldown_runtime.cjs');
const require_validate = require('./validate.cjs');

//#region ../../node_modules/samlify/node_modules/uuid/dist/esm-node/parse.js
function parse(uuid) {
	if (!require_validate.default(uuid)) throw TypeError("Invalid UUID");
	let v;
	const 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 = require_rolldown_runtime.__esm({ "../../node_modules/samlify/node_modules/uuid/dist/esm-node/parse.js": (() => {
	require_validate.init_validate();
	parse_default = parse;
}) });

//#endregion
init_parse();
exports.default = parse_default;
Object.defineProperty(exports, 'init_parse', {
  enumerable: true,
  get: function () {
    return init_parse;
  }
});
//# sourceMappingURL=parse.cjs.map