1(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[9432],{8386:e=>{e.exports={PreloadFonts:"PreloadFonts_PreloadFonts__pBXzU",PreloadFonts__code:"PreloadFonts_PreloadFonts__code__nKrMa",PreloadFonts__sans:"PreloadFonts_PreloadFonts__sans__Yok3B"}},24847:(e,t,r)=>{"use strict";r.r(t),r.d(t,{__N_SSP:()=>q,default:()=>N});var s=r(67684),n=r(65699),i=r(20294),o=r(37876),a=r(14232),u=r(62867),l=r(60388),c=r(13478),h=r(90089),d=r(37149);function _(e,t){let r=new Set(t);return e.filter(e=>!r.has(e))}var p=class extends h.Q{#e;#t;#r;#s;#n;#i;#o;#a;#u;#l=[];constructor(e,t,r){super(),this.#e=e,this.#s=r,this.#r=[],this.#n=[],this.#t=[],this.setQueries(t)}onSubscribe(){1===this.listeners.size&&this.#n.forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})}onUnsubscribe(){this.listeners.size||this.destroy()}destroy(){this.listeners=new Set,this.#n.forEach(e=>{e.destroy()})}setQueries(e,t){this.#r=e,this.#s=t,l.jG.batch(()=>{let e=this.#n,t=this.#h(this.#r);t.forEach(e=>e.observer.setOptions(e.defaultedQueryOptions));let r=t.map(e=>e.observer),s=r.map(e=>e.getCurrentResult()),n=e.length!==r.length,i=r.some((t,r)=>t!==e[r]),o=n||i,a=!!o||s.some((e,t)=>{let r=this.#t[t];return!r||!(0,d.f8)(e,r)});(o||a)&&(o&&(this.#l=t,this.#n=r),this.#t=s,this.hasListeners()&&(o&&(_(e,r).forEach(e=>{e.destroy()}),_(r,e).forEach(e=>{e.subscribe(t=>{this.#c(e,t)})})),this.#d()))})}getCurrentResult(){return this.#t}getQueries(){return this.#n.map(e=>e.getCurrentQuery())}getObservers(){return this.#n}getOptimisticResult(e,t){let r=this.#h(e),s=r.map(e=>e.observer.getOptimisticResult(e.defaultedQueryOptions)),n=r.map(e=>e.defaultedQueryOptions.queryHash);return[s,e=>this.#_(e??s,t,n),()=>this.#p(s,r)]}#p(e,t){return t.map((r,s)=>{let n=e[s];return r.defaultedQueryOptions.notifyOnChangeProps?n:r.observer.trackResult(n,e=>{t.forEach(t=>{t.observer.trackProp(e)})})})}#_(e,t,r){if(t){let s=this.#u,n=void 0!==r&&void 0!==s&&(s.length!==r.length||r.some((e,t)=>e!==s[t]));return(!this.#i||this.#t!==this.#a||n||t!==this.#o)&&(this.#o=t,this.#a=this.#t,void 0!==r&&(this.#u=r),this.#i=(0,d.BH)(this.#i,t(e))),this.#i}return e}#h(e){let t=new Map;this.#n.forEach(e=>{let r=e.options.queryHash;if(!r)return;let s=t.get(r);s?s.push(e):t.set(r,[e])});let r=[];return e.forEach(e=>{let s=this.#e.defaultQueryOptions(e),n=t.get(s.queryHash)?.shift()??new c.$(this.#e,s);r.push({defaultedQueryOptions:s,observer:n})}),r}#c(e,t){let r=this.#n.indexOf(e);if(-1!==r){var s;let e;this.#t=(s=this.#t,(e=s.slice(0))[r]=t,e),this.#d()}}#d(){if(this.hasListeners()){let e=this.#i,t=this.#p(this.#t,this.#l);e!==this.#_(t,this.#s?.combine)&&l.jG.batch(()=>{this.listeners.forEach(e=>{e(this.#t)})})}}},f=r(67768),g=r(70674),m=r(93517),b=r(45839),v=r(98562),E=r(89099),y=r(1012),w=r(7694),P=r(28275),R=r(53798),k=r(22532),j=r(68192),x=r(8386),O=r.n(x);let Q=function(){return(0,o.jsxs)("span",{"aria-hidden":"true",className:O().PreloadFonts,children:[(0,o.jsx)("span",{className:O().PreloadFonts__code,children:"\xa0"}),(0,o.jsx)("span",{className:O().PreloadFonts__sans,children:"\xa0"})]})};
1var C=r(71224),A="contract",F=y.GK.networkAlias||y.GK.network,q=!0;let N=function(e){var t=e.addresses,r=e.canonicalURL,h=e.description,_=e.error,y=e.initialDataForQuery,x=e.network,O=e.ogImageURL,q=e.networkThatLooksLikeAnAddress,N=e.title,M=(0,E.useRouter)();(0,R.A)(function(){(0,P.A)("contract page viewed",{addresses:t,network:x}),q&&M.replace("/contract/".concat(F,"/").concat(t.join("/")),null,{shallow:!0})});var S=function({queries:e,...t}){let r=(0,f.jE)(void 0),s=(0,g.w)(),n=(0,m.h)(),i=a.useMemo(()=>e.map(e=>{let t=r.defaultQueryOptions(e);return t._optimisticResults=s?"isRestoring":"optimistic",t}),[e,r,s]);i.forEach(e=>{(0,v.jv)(e);let t=r.getQueryCache().get(e.queryHash);(0,b.LJ)(e,n,t)}),(0,b.wZ)(n);let[o]=a.useState(()=>new p(r,i,t)),[u,h,_]=o.getOptimisticResult(i,t.combine),E=!s&&!1!==t.subscribed;a.useSyncExternalStore(a.useCallback(e=>E?o.subscribe(l.jG.batchCalls(e)):d.lQ,[o,E]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),a.useEffect(()=>{o.setQueries(i,t)},[i,t,o]);let y=u.some((e,t)=>(0,v.EU)(i[t],e))?u.flatMap((e,t)=>{let s=i[t];if(s&&(0,v.EU)(s,e)){let e=new c.$(r,s);return(0,v.iL)(s,e,n)}return[]}):[];if(y.length>0)throw Promise.all(y);let w=u.find((e,t)=>{let s=i[t];return s&&(0,b.$1)({result:e,errorResetBoundary:n,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash),suspense:s.suspense})});if(w?.error)throw w.error;return h(_())}({queries:(0,a.useMemo)(function(){return y.map(function(e){var t=e.address,r=e.wasContractAdded,i=(0,n._)(e,["address","wasContractAdded"]);return{queryKey:["contract",x,t,"constructorArguments"],queryFn:function(){return(0,w.A)({address:t,network:x},r)},initialData:(0,s._)({address:t,network:x},i),retry:!1}})},[y,x])}),L=(0,a.useMemo)(function(){return S.map(function(e){if(e.data){var t;return"0x".concat(null==(t=e.data)?void 0:t.constructorArguments)}return""})},[S]),H=(0,i._)((0,a.useState)(!0),2),U=H[0],G=H[1];return(0,R.A)(function(){var e;return document.fonts.ready.then(function(){e=setTimeout(function(){return G(!1)})},500),function(){return clearTimeout(e)}}),(0,o.jsx)(C.A,{isNavSearchFormVisible:!0,skipLinkId:A,children:_?(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.bV,{title:N}),(0,o.jsx)(j.A,{error:_,heading:N})]}):(0,o.jsxs)(o.Fragment,{children:[(0,o.jsx)(u.bV,{title:N,description:h,canonical:r,openGraph:{type:"website",url:r,title:"ContractReader.io",description:h,images:[{alt:N,url:O,width:1200,height:630,type:"image/png"}]},twitter:{handle:"@ContractReader",site:"@ContractReader",cardType:"summary_large_image"}}),U?(0,o.jsx)(Q,{}):(0,o.jsx)(k.A,{addresses:t,contracts:S,constructorArguments:L,id:A})]})})}},58610:e=>{e.exports={ErrorPage__wrapper:"ErrorPage_ErrorPage__wrapper__zdzjE",ErrorPage:"ErrorPage_ErrorPage__uPSVx",fadeIn:"ErrorPage_fadeIn__VQfns",ErrorPage__icon:"ErrorPage_ErrorPage__icon__uq5i4",ErrorPage__prose:"ErrorPage_ErrorPage__prose__7OkdR"}},68192:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});
1var s=r(37876),n=r(14232),i=r(52276),o=r(97460),a=r(5204),u=r(43229),l=r(58610),c=r.n(l);let h=function(e){var t=e.error,r=e.heading,l=(0,n.useMemo)(function(){return["# ".concat(r),t.message,"<br />","[← Back to home page](/)"].join("\n\n")},[t,r]);return(0,s.jsx)(a.A,{className:c().ErrorPage__wrapper,children:(0,s.jsxs)("div",{className:c().ErrorPage,children:[(0,s.jsx)(o.g,{className:c().ErrorPage__icon,icon:i.kLe}),(0,s.jsx)(u.A,{className:c().ErrorPage__prose,children:l})]})})}},84610:(e,t,r)=>{(window.__NEXT_P=window.__NEXT_P||[]).push(["/contract/[network]/[...addresses]",function(){return r(24847)}])}},e=>{e.O(0,[7164,4840,8805,888,1289,3169,2867,6042,3895,4674,551,5474,425,1224,9495,3019,636,6593,8792],()=>e(e.s=84610)),_N_E=e.O()}]);
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.