import{t as e}from"./isSymbol.CmW3dkoN.js";import{r as t,t as n}from"./eq.DG5CISEJ.js";import{r,t as i}from"./isArrayLike.Co48mDbu.js";var a=/\s/;function o(e){for(var t=e.length;t--&&a.test(e.charAt(t)););return t}var s=/^\s+/;function c(e){return e&&e.slice(0,o(e)+1).replace(s,``)}var l=NaN,u=/^[-+]0x[0-9a-f]+$/i,d=/^0b[01]+$/i,f=/^0o[0-7]+$/i,p=parseInt;function m(n){if(typeof n==`number`)return n;if(e(n))return l;if(t(n)){var r=typeof n.valueOf==`function`?n.valueOf():n;n=t(r)?r+``:r}if(typeof n!=`string`)return n===0?n:+n;n=c(n);var i=d.test(n);return i||f.test(n)?p(n.slice(2),i?2:8):u.test(n)?l:+n}var h=1/0,g=17976931348623157e292;function _(e){return e?(e=m(e),e===h||e===-h?(e<0?-1:1)*g:e===e?e:0):e===0?e:0}function v(e,a,o){if(!t(o))return!1;var s=typeof a;return(s==`number`?i(o)&&r(a,o.length):s==`string`&&a in o)?n(o[a],e):!1}export{o as i,_ as n,m as r,v as t};