vendor: 4,611 bytes, line 1
1!function(){try{var e="u">typeof window?window:"u">typeof global?global:"u">typeof globalThis?globalThis:"u">typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="ace5c0e6-1bad-41f5-b48d-9a517c8b9c7d",e._sentryDebugIdIdentifier="sentry-dbid-ace5c0e6-1bad-41f5-b48d-9a517c8b9c7d")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[2740],{12033:(e,t,a)=>{a.d(t,{J:()=>c});var r=a(81080),s=a(11001),n=a(79105),o=a(29436),i=a(49113);function c(e){let{abi:t,data:a}=e,c=(0,s.di)(a,0,4),u=t.find(e=>"function"===e.type&&c===(0,n.V)((0,i.B)(e)));if(!u)throw new r.EB(c,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:u.name,args:"inputs"in u&&u.inputs&&u.inputs.length>0?(0,o.n)(u.inputs,(0,s.di)(a,4)):void 0}}},22740:(e,t,a)=>{a.d(t,{offchainLookup:()=>b,offchainLookupSignature:()=>g});var r=a(16057),s=a(65045),n=a(69047),o=a(41551);class i extends n.C{constructor({callbackSelector:e,cause:t,data:a,extraData:r,sender:s,urls:n}){super(t.shortMessage||"An error occurred while fetching for an offchain result.",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?"":[],"Offchain Gateway Call:",n&&[" Gateway URL(s):",...n.map(e=>` ${(0,o.I)(e)}`)],` Sender: ${s}`,` Data: ${a}`,` Callback selector: ${e}`,` Extra data: ${r}`].flat(),name:"OffchainLookupError"})}}class c extends n.C{constructor({result:e,url:t}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.I)(t)}`,`Response: ${(0,s.A)(e)}`],name:"OffchainLookupResponseMalformedError"})}}class u extends n.C{constructor({sender:e,to:t}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${t}`,`OffchainLookup sender address: ${e}`],name:"OffchainLookupSenderMismatchError"})}}var d=a(5067),f=a(81860),l=a(52269),h=a(32733),p=a(75545),y=a(86006),w=a(95616);let g="0x556f1830",m={name:"OffchainLookup",type:"error",inputs:[{name:"sender",type:"address"},{name:"urls",type:"string[]"},{name:"callData",type:"bytes"},{name:"callbackFunction",type:"bytes4"},{name:"extraData",type:"bytes"}]};async function b(e,{blockNumber:t,blockTag:a,data:s,to:n}){let{args:o}=(0,f.W)({data:s,abi:[m]}),[c,d,y,g,E]=o,{ccipRead:C}=e,M=C&&"function"==typeof C?.request?C.request:k;try{if(!(0,h.h)(n,c))throw new u({sender:c,to:n});let s=d.includes(w.J)?await (0,w.X)({data:y,ccipRequest:M}):await M({data:y,sender:c,urls:d}),{data:o}=await (0,r.T)(e,{blockNumber:t,blockTag:a,data:(0,p.xW)([g,(0,l.h)([{type:"bytes"},{type:"bytes"}],[s,E])]),to:n});return o}catch(e){throw new i({callbackSelector:g,cause:e,data:s,extraData:E,sender:c,urls:d})}}async function k({data:e,sender:t,urls:a}){let r=Error("An unknown error occurred.");for(let n=0;n<a.length;n++){let o=a[n],i=o.includes("{data}")?"GET":"POST",u="POST"===i?{data:e,sender:t}:void 0,f="POST"===i?{"Content-Type":"application/json"}:{};try{let a,n=await fetch(o.replace("{sender}",t.toLowerCase()).replace("{data}",e),{body:JSON.stringify(u),headers:f,method:i});if(a=n.headers.get("Content-Type")?.startsWith("application/json")?(await n.json()).data:await n.text(),!n.ok){r=new d.Ci({body:u,details:a?.error?(0,s.A)(a.error):n.statusText,headers:n.headers,status:n.status,url:o});continue}if(!(0,y.q)(a)){r=new c({result:a,url:o});continue}return a}catch(e){r=new d.Ci({body:u,details:e.message,url:o})}}throw r}},95616:(e,t,a)=>{a.d(t,{X:()=>w,J:()=>y});var r=a(68143),s=a(58965),n=a(12033),o=a(81080),i=a(75545),c=a(79105),u=a(52269),d=a(49113),f=a(98086);let l="/docs/contract/encodeErrorResult";function h(e){let{abi:t,errorName:a,args:r}=e,s=t[0];if(a){let e=(0,f.iY)({abi:t,args:r,name:a});if(!e)throw new o.yy(a,{docsPath:l});s=e}if("error"!==s.type)throw new o.yy(void 0,{docsPath:l});let n=(0,d.B)(s),h=(0,c.V)(n),p="0x";if(r&&r.length>0){if(!s.inputs)throw new o.ZP(s.name,{docsPath:l});p=(0,u.h)(s.inputs,r)}return(0,i.aP)([h,p])}let p="/docs/contract/encodeFunctionResult",y="x-batch-gateway:true";async function w(e){let{data:t,ccipRequest:a}=e,{args:[i]}=(0,n.J)({abi:r.b2,data:t}),c=[],d=[];return await Promise.all(i.map(async(e,t)=>{try{d[t]=e.urls.includes(y)?await w({data:e.data,ccipRequest:a}):await a(e),c[t]=!1}catch(e){var n;c[t]=!0,d[t]="HttpRequestError"===(n=e).name&&n.status?h({abi:r.b2,errorName:"HttpError",args:[n.status,n.shortMessage]}):h({abi:[s.Mc],errorName:"Error",args:["shortMessage"in n?n.shortMessage:n.message]})}})),function(e){let{abi:t,functionName:a,result:r}=e,s=t[0];if(a){let e=(0,f.iY)({abi:t,name:a});
vendor: 359 bytes, line 1
1if(!e)throw new o.Iz(a,{docsPath:p});s=e}if("function"!==s.type)throw new o.Iz(void 0,{docsPath:p});if(!s.outputs)throw new o.MR(s.name,{docsPath:p});let n=(()=>{if(0===s.outputs.length)return[];if(1===s.outputs.length)return[r];if(Array.isArray(r))return r;throw new o.dm(r)})();return(0,u.h)(s.outputs,n)}({abi:r.b2,functionName:"query",result:[c,d]})}}}]);
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.