import { PREBUILT_OAUTH_PROVIDERS as e } from "./oauth-providers.js";
import { TOOLKITS as t, TOOLKIT_CATALOGUE as n } from "./toolkits.js";
//#region lib/metadata/utils.ts
var r = (t) => e.find((e) => e.provider_id === t || e.id === t), i = (t) => e.find((e) => e.id === t), a = (t) => e.some((e) => e.provider_id === t || e.id === t), o = (e) => Object.keys(n).some((t) => t.toLowerCase() === e.toLowerCase()), s = (e) => {
	let n = e.toLowerCase(), r = t.filter((e) => e.label.toLowerCase() === n || e.id.toLowerCase() === n);
	if (r.length !== 0) return r.find((e) => !e.isHidden) ?? r[0];
};
//#endregion
export { i as findPrebuiltProviderById, r as findPrebuiltProviderByProviderId, s as findToolkitByName, o as isKnownToolkit, a as isPrebuiltProvider };
