PageSourceSearch

https://www.blockexplorer.com/assets/address-bhcNv0Bl.js

js blockexplorer.com collected 2026-10-02 03:59:07 UTC 3,832 bytes, 1 lines download raw bytes

1import{a as c,b as o,j as B,y as I}from"./keccak-Pq_VZjcY.js";const g=BigInt(0),s=BigInt(1),a=9007199254740991;function T(t,n){const e=l(t,"value"),r=BigInt(f(n,"width"));if(c(e>>r===g,"overflow","NUMERIC_FAULT",{operation:"fromTwos",fault:"overflow",value:t}),e>>r-s){const i=(s<<r)-s;return-((~e&i)+s)}return e}function v(t,n){let e=h(t,"value");const r=BigInt(f(n,"width")),i=s<<r-s;if(e<g){e=-e,c(e<=i,"too low","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:t});const u=(s<<r)-s;return(~e&u)+s}else c(e<i,"too high","NUMERIC_FAULT",{operation:"toTwos",fault:"overflow",value:t});return e}function E(t,n){const e=l(t,"value"),r=BigInt(f(n,"bits"));return e&(s<<r)-s}function h(t,n){switch(typeof t){case"bigint":return t;case"number":return o(Number.isInteger(t),"underflow",n||"value",t),o(t>=-9007199254740991&&t<=a,"overflow",n||"value",t),BigInt(t);case"string":try{if(t==="")throw new Error("empty string");return t[0]==="-"&&t[1]!=="-"?-BigInt(t.substring(1)):BigInt(t)}catch(e){o(!1,`invalid BigNumberish string: ${e.message}`,n||"value",t)}}o(!1,"invalid BigNumberish value",n||"value",t)}function l(t,n){const e=h(t,n);return c(e>=g,"unsigned value cannot be negative","NUMERIC_FAULT",{fault:"overflow",operation:"getUint",value:t}),e}const b="0123456789abcdef";function x(t){if(t instanceof Uint8Array){let n="0x0";for(const e of t)n+=b[e>>4],n+=b[e&15];return BigInt(n)}return h(t)}function f(t,n){switch(typeof t){case"bigint":return o(t>=-9007199254740991&&t<=a,"overflow",n||"value",t),Number(t);case"number":return o(Number.isInteger(t),"underflow",n||"value",t),o(t>=-9007199254740991&&t<=a,"overflow",n||"value",t),t;case"string":try{if(t==="")throw new Error("empty string");return f(BigInt(t),n)}catch(e){o(!1,`invalid numeric string: ${e.message}`,n||"value",t)}}o(!1,"invalid numeric value",n||"value",t)}function F(t){return f(x(t))}function L(t,n){let r=l(t,"value").toString(16);if(n==null)r.length%2&&(r="0"+r);else{const i=f(n,"width");for(c(i*2>=r.length,`value exceeds width (${i} bytes)`,"NUMERIC_FAULT",{operation:"toBeHex",fault:"overflow",value:t});r.length<i*2;)r="0"+r}return"0x"+r}function S(t){const n=l(t,"value");if(n===g)return new Uint8Array([]);let e=n.toString(16);e.length%2&&(e="0"+e);const r=new Uint8Array(e.length/2);for(let i=0;i<r.length;i++){const u=i*2;r[i]=parseInt(e.substring(u,u+2),16)}return r}const U=BigInt(0),A=BigInt(36);function m(t){t=t.toLowerCase();const n=t.substring(2).split(""),e=new Uint8Array(40);for(let i=0;i<40;i++)e[i]=n[i].charCodeAt(0);const r=B(I(e));for(let i=0;i<40;i+=2)r[i>>1]>>4>=8&&(n[i]=n[i].toUpperCase()),(r[i>>1]&15)>=8&&(n[i+1]=n[i+1].toUpperCase());return"0x"+n.join("")}const w={};for(let t=0;t<10;t++)w[String(t)]=String(t);for(let t=0;t<26;t++)w[String.fromCharCode(65+t)]=String(10+t);const p=15;function y(t){t=t.toUpperCase(),t=t.substring(4)+t.substring(0,2)+"00";let n=t.split("").map(r=>w[r]).join("");for(;n.length>=p;){let r=n.substring(0,p);n=parseInt(r,10)%97+n.substring(r.length)}let e=String(98-parseInt(n,10)%97);for(;e.length<2;)e="0"+e;return e}const N=function(){const t={};for(let n=0;n<36;n++){const e="0123456789abcdefghijklmnopqrstuvwxyz"[n];t[e]=BigInt(n)}return t}();function C(t){t=t.toLowerCase();let n=U;for(let e=0;e<t.length;e++)n=n*A+N[t[e]];return n}function $(t){if(o(typeof t=="string","invalid address","address",t),t.match(/^(0x)?[0-9a-fA-F]{40}$/)){t.startsWith("0x")||(t="0x"+t);const n=m(t);return o(!t.match(/([A-F].*[a-f])|([a-f].*[A-F])/)||n===t,"bad address checksum","address",t),n}if(t.match(/^XE[0-9]{2}[0-9A-Za-z]{30,31}$/)){o(t.substring(2,4)===y(t),"bad icap checksum","address",t);let n=C(t.substring(4)).toString(16);for(;n.length<40;)n="0"+n;return m("0x"+n)}o(!1,"invalid address","address",t)}export{F as a,S as b,$ as c,L as d,h as e,v as f,f as g,T as h,E as m,x as t};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.