//#region src/utils/registry.ts
var e = /^[a-z0-9]+(?:[._-][a-z0-9]+)*$/, t = [
	"pull",
	"push",
	"delete"
];
function n(t) {
	return !t || t.length > 255 ? !1 : t === "*" ? !0 : t.split("/").every((t) => t === "*" || e.test(t));
}
function r(e) {
	let n = t.filter((t) => e.includes(t)), r = e.filter((e) => !t.includes(e));
	return [...n, ...r];
}
function i(e) {
	return Array.from(e).filter((e) => e.checked).map((e) => e.value);
}
function a(e) {
	return e instanceof Error ? e.message : "Unknown error";
}
//#endregion
export { t as REGISTRY_ACTION_ORDER, e as REGISTRY_SEGMENT_REGEX, a as errorMessage, i as getCheckedValues, n as isValidRegistryPattern, r as sortRegistryActions };

//# sourceMappingURL=registry.js.map