{"version":3,"file":"_isTypeInt64.mjs","names":[],"sources":["../../src/internal/_isTypeInt64.ts"],"sourcesContent":["/**\n * Test whether a number is an integer in the signed 64-bit range.\n *\n * The upper bound `2 ** 63 - 1` is not a double, so 2 ** 63 is accepted as its\n * only float form. Use the bigint predicate where the boundary matters.\n *\n * @evidence contracts/common.md#principled-implementation An integer double between -2^63 and 2^63, where the upper bound literal `2 ** 63 - 1` rounds to 2^63 as a double, so the largest accepted value is 2^63, the only float form of the true maximum; the bigint predicate is exact.\n * @evidence contracts/common.md#clear-and-simple-design One expression and two constants.\n * @evidence contracts/common.md#prohibited-implementation-shortcuts The rounding is the documented limit of the number form.\n * @evidence contracts/common.md#meaningful-documentation A comment states the range and the rounding of the upper bound.\n */\nexport const _isTypeInt64 = (value: number): boolean =>\n  Math.floor(value) === value && MINIMUM <= value && value <= MAXIMUM;\n\n// The maximum is `2 ** 63 - 1`, the int64 upper bound.\nconst MINIMUM = -(2 ** 63);\nconst MAXIMUM = 2 ** 63 - 1;\n"],"mappings":";;;;;;;;;;;;AAWA,MAAa,gBAAgB,UAC3B,KAAK,MAAM,KAAK,MAAM,SAAS,WAAW,SAAS,SAAS;AAG9D,MAAM,UAAU,EAAE,KAAK;AACvB,MAAM,UAAU,KAAK,KAAK"}