{"version":3,"file":"_httpFormDataReadFile.mjs","names":[],"sources":["../../src/internal/_httpFormDataReadFile.ts"],"sourcesContent":["/**\n * Read one form field as a File.\n *\n * A File passes through, a missing field is absent, `null` is null and other\n * text is kept for the assertion to reject. It needs the global `File`.\n *\n * @evidence contracts/common.md#principled-implementation A File is passed through, a missing field is absent, the text `null` is null and any other text is returned unchanged for the validator to reject. It references the global File, which Node provides from version 20.\n * @evidence contracts/common.md#clear-and-simple-design One conditional chain.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts No text is converted into a File.\n * @evidence contracts/common.md#meaningful-documentation A comment states the cases and the global dependency.\n */\nexport const _httpFormDataReadFile = (\n  input: string | File | null,\n): File | null | undefined =>\n  input instanceof File\n    ? input\n    : input === null\n      ? undefined\n      : input === \"null\"\n        ? null\n        : (input as any);\n"],"mappings":";;;;;;;;;;;;AAWA,MAAa,yBACX,UAEA,iBAAiB,OACb,QACA,UAAU,OACR,KAAA,IACA,UAAU,SACR,OACC"}