{"version":3,"sources":["../src/internal/core.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;EAcE","file":"core.d.ts","sourcesContent":["/*!\r\n   Copyright 2019 Ron Buckton\r\n\r\n   Licensed under the Apache License, Version 2.0 (the \"License\");\r\n   you may not use this file except in compliance with the License.\r\n   You may obtain a copy of the License at\r\n\r\n       http://www.apache.org/licenses/LICENSE-2.0\r\n\r\n   Unless required by applicable law or agreed to in writing, software\r\n   distributed under the License is distributed on an \"AS IS\" BASIS,\r\n   WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\r\n   See the License for the specific language governing permissions and\r\n   limitations under the License.\r\n*/\r\n\r\n/* @internal */ export function isInt(value: number): boolean {\r\n    return isFinite(value) && (value % 1) === 0;\r\n}\r\n\r\n/* @internal */ export function compareNumbers(a: number, b: number) {\r\n    return Math.sign(a - b);\r\n}\r\n\r\n/* @internal */ export function compareBigInts(a: bigint, b: bigint) {\r\n    return a < b ? -1 : a > b ? 1 : 0;\r\n}\r\n\r\n/* @internal */ export function compareStrings(a: string, b: string) {\r\n    return a < b ? -1 : a > b ? +1 : 0;\r\n}\r\n\r\nconst normalizeRegExp = /[−,]/g;\r\nconst normalizeReplacer = (s: string) => s === \"−\" ? \"-\" : \".\";\r\n\r\n/* @internal */ export function normalizeString(text: string) {\r\n    return text.replace(normalizeRegExp, normalizeReplacer);\r\n}\r\n\r\n/* @internal */ export const CIVILDATE_HASH_SEED = 139;\r\n/* @internal */ export const CIVILTIME_HASH_SEED = 140;\r\n/* @internal */ export const CIVILDATETIME_HASH_SEED = 141;\r\n/* @internal */ export const DURATION_HASH_SEED = 143;\r\n/* @internal */ export const INSTANT_HASH_SEED = 144;\r\n/* @internal */ export const INTERVAL_HASH_SEED = 145;\r\n/* @internal */ export const OFFSETDATETIME_HASH_SEED = 146;\r\n/* @internal */ export const OFFSETTIME_HASH_SEED = 147;\r\n/* @internal */ export const RECURRINGINTERVAL_HASH_SEED = 148;\r\n/* @internal */ export const ZONE_HASH_SEED = 149;\r\n/* @internal */ export const ZONEOFFSET_HASH_SEED = 150;\r\n/* @internal */ export const ZONEDDATETIME_HASH_SEED = 151;"],"sourceRoot":".."}