//#region extensions/feishu/src/external-keys.ts
const FEISHU_EXTERNAL_KEY_PATTERN = /^(?!\s)(?![\s\S]*\s$)(?![\s\S]*\.\.)[^\p{Cc}\p{Cs}/\\]{1,512}$/u;
function normalizeFeishuExternalKey(value) {
	if (typeof value !== "string") return;
	const normalized = value.trim();
	return FEISHU_EXTERNAL_KEY_PATTERN.test(normalized) ? normalized : void 0;
}
//#endregion
export { normalizeFeishuExternalKey as n, FEISHU_EXTERNAL_KEY_PATTERN as t };
