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/stringify.js
function stringify(arr) {
	var offset = arguments.length > 1 && arguments[1] !== void 0 ? arguments[1] : 0;
	var uuid = (byteToHex[arr[offset + 0]] + byteToHex[arr[offset + 1]] + byteToHex[arr[offset + 2]] + byteToHex[arr[offset + 3]] + "-" + byteToHex[arr[offset + 4]] + byteToHex[arr[offset + 5]] + "-" + byteToHex[arr[offset + 6]] + byteToHex[arr[offset + 7]] + "-" + byteToHex[arr[offset + 8]] + byteToHex[arr[offset + 9]] + "-" + byteToHex[arr[offset + 10]] + byteToHex[arr[offset + 11]] + byteToHex[arr[offset + 12]] + byteToHex[arr[offset + 13]] + byteToHex[arr[offset + 14]] + byteToHex[arr[offset + 15]]).toLowerCase();
	if (!validate_default(uuid)) throw TypeError("Stringified UUID is invalid");
	return uuid;
}
var byteToHex, i, stringify_default;
var init_stringify = __esm({ "../../node_modules/samlify/node_modules/uuid/dist/esm-browser/stringify.js": (() => {
	init_validate();
	byteToHex = [];
	for (i = 0; i < 256; ++i) byteToHex.push((i + 256).toString(16).substr(1));
	stringify_default = stringify;
}) });

//#endregion
init_stringify();
export { stringify_default as default, init_stringify };
//# sourceMappingURL=stringify.mjs.map