!function(t, n) { "object" == typeof exports && "undefined" != typeof module ? n(exports) : "function" == typeof define && define.amd ? define([ "exports" ], n) : n((t = "undefined" != typeof globalThis ? globalThis : t || self).LazyNumParseNumberString = {}); }(this, (function(t) { "use strict"; const n = /^[+-]?\d+$/, r = /^[+-]?(?:\d+)?\.\d+$/, e = new RegExp(n.source + "|" + r.source); function isIntString(t) { return "string" == typeof t && n.test(t); } function isFloatOnlyString(t) { return "string" == typeof t && r.test(t); } function isFloatString(t) { return "string" == typeof t && e.test(t); } function _parseNumberString(t, n) { if (t(n)) return Number(n); if ("number" != typeof n) throw new TypeError(`Invalid value: ${n}`); return n; } function parseFloatString(t) { return _parseNumberString(isFloatString, t); } t._parseNumberString = _parseNumberString, t.default = parseFloatString, t.isFloatOnlyString = isFloatOnlyString, t.isFloatString = isFloatString, t.isIntString = isIntString, t.parseFloatOnlyString = function parseFloatOnlyString(t) { return _parseNumberString(isFloatOnlyString, t); }, t.parseFloatString = parseFloatString, t.parseIntString = function parseIntString(t) { return _parseNumberString(isIntString, t); }, Object.defineProperty(t, "__esModule", { value: !0 }); })); //# sourceMappingURL=index.umd.production.min.cjs.map