import{b as i}from"./cleanForSlug.62b08993.js";import{p as o}from"./isArrayLikeObject.c492f682.js";import{i as c}from"./constants.7044c894.js";var s=0/0,e=/^[-+]0x[0-9a-f]+$/i,f=/^0b[01]+$/i,a=/^0o[0-7]+$/i,p=parseInt;function _(r){if(typeof r=="number")return r;if(c(r))return s;if(o(r)){var n=typeof r.valueOf=="function"?r.valueOf():r;r=o(n)?n+"":n}if(typeof r!="string")return r===0?r:+r;r=i(r);var t=f.test(r);return t||a.test(r)?p(r.slice(2),t?2:8):e.test(r)?s:+r}export{_ as t};
