Build 589089stable
Module 483955
475 characters · in 514.d733764d42c2ab66.jsDependencies
Source Raw
function(e,t,n){"use strict";var r=n(439619),i=r("%RegExp%"),a=n(741623),o=r("%parseInt%"),s=n(906046),l=n(429013),u=s("String.prototype.slice"),c=l(/^0b[01]+$/i),d=l(/^0o[0-7]+$/i),f=l(/^[-+]0x[0-9a-f]+$/i),p=l(new i("[\x85\u200B\uFFFE]","g")),h=n(886309);e.exports=function e(t){if("string"!=typeof t)throw new a("Assertion failed: `argument` is not a String");if(c(t))return+o(u(t,2),2);if(d(t))return+o(u(t,2),8);if(p(t)||f(t))return NaN;var n=h(t);return n!==t?e(n):+t}}