PageSourceSearch

https://courtyard.io/_next/static/chunks/3aojho5i523pv.js

js courtyard.io collected 2026-10-03 22:22:32 UTC 5,749 bytes, 4 lines download raw bytes

1;!function(){try { var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof global?global:"undefined"!=typeof window?window:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&((e._debugIds|| (e._debugIds={}))[n]="0c5b8689-41cf-dff0-3904-9f931be3857d")}catch(e){}}();
2(globalThis.TURBOPACK||(globalThis.TURBOPACK=[])).push(["object"==typeof document?document.currentScript:void 0,294310,t=>{"use strict";var e=t.i(623319),r=t.i(268619),a=t.i(856724),o=t.i(759706);class n extends a.BaseError{constructor({callbackSelector:t,cause:e,data:r,extraData:a,sender:n,urls:s}){super(e.shortMessage||"An error occurred while fetching for an offchain result.",{cause:e,metaMessages:[...e.metaMessages||[],e.metaMessages?.length?"":[],"Offchain Gateway Call:",s&&["  Gateway URL(s):",...s.map(t=>`    ${(0,o.getUrl)(t)}`)],`  Sender: ${n}`,`  Data: ${r}`,`  Callback selector: ${t}`,`  Extra data: ${a}`].flat(),name:"OffchainLookupError"})}}class s extends a.BaseError{constructor({result:t,url:e}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${(0,o.getUrl)(e)}`,`Response: ${(0,r.stringify)(t)}`],name:"OffchainLookupResponseMalformedError"})}}class i extends a.BaseError{constructor({sender:t,to:e}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${e}`,`OffchainLookup sender address: ${t}`],name:"OffchainLookupSenderMismatchError"})}}var c=t.i(966141),u=t.i(370875),d=t.i(13010),l=t.i(134498),f=t.i(522437),h=t.i(119750),p=t.i(196469),g=t.i(379335),w=t.i(966975),b=t.i(871629),m=t.i(123851),y=t.i(922025),E=t.i(212890),A=t.i(171681);let F="/docs/contract/encodeErrorResult";function R(t){let{abi:e,errorName:r,args:a}=t,o=e[0];if(r){let t=(0,A.getAbiItem)({abi:e,args:a,name:r});if(!t)throw new w.AbiErrorNotFoundError(r,{docsPath:F});o=t}if("error"!==o.type)throw new w.AbiErrorNotFoundError(void 0,{docsPath:F});let n=(0,E.formatAbiItem)(o),s=(0,m.toFunctionSelector)(n),i="0x";if(a&&a.length>0){if(!o.inputs)throw new w.AbiErrorInputsNotFoundError(o.name,{docsPath:F});i=(0,d.encodeAbiParameters)(o.inputs,a)}return(0,f.concatHex)([s,i])}let O="/docs/contract/encodeFunctionResult",P="x-batch-gateway:true";async function x(t){let{data:e,ccipRequest:r}=t,{args:[a]}=function(t){let{abi:e,data:r}=t,a=(0,b.slice)(r,0,4),o=e.find(t=>"function"===t.type&&a===(0,m.toFunctionSelector)((0,E.formatAbiItem)(t)));if(!o)throw new w.AbiFunctionSignatureNotFoundError(a,{docsPath:"/docs/contract/decodeFunctionData"});return{functionName:o.name,args:"inputs"in o&&o.inputs&&o.inputs.length>0?(0,y.decodeAbiParameters)(o.inputs,(0,b.slice)(r,4)):void 0}}({abi:p.batchGatewayAbi,data:e}),o=[],n=[];return await Promise.all(a.map(async(t,e)=>{try{n[e]=t.urls.includes(P)?await x({data:t.data,ccipRequest:r}):await r(t),o[e]=!1}catch(t){var a;o[e]=!0,n[e]="HttpRequestError"===(a=t).name&&a.status?R({abi:p.batchGatewayAbi,errorName:"HttpError",args:[a.status,a.shortMessage]}):R({abi:[g.solidityError],errorName:"Error",args:["shortMessage"in a?a.shortMessage:a.message]})}})),function(t){let{abi:e,functionName:r,result:a}=t,o=e[0];if(r){let t=(0,A.getAbiItem)({abi:e,name:r});if(!t)throw new w.AbiFunctionNotFoundError(r,{docsPath:O});o=t}if("function"!==o.type)throw new w.AbiFunctionNotFoundError(void 0,{docsPath:O});if(!o.outputs)throw new w.AbiFunctionOutputsNotFoundError(o.name,{docsPath:O});let n=(()=>{if(0===o.outputs.length)return[];if(1===o.outputs.length)return[a];if(Array.isArray(a))return a;throw new w.InvalidArrayError(a)})();return(0,d.encodeAbiParameters)(o.outputs,n)}({abi:p.batchGatewayAbi,functionName:"query",result:[o,n]})}let N={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 k(t,{blockNumber:r,blockTag:a,data:s,requestOptions:c,to:h}){let{args:p}=(0,u.decodeErrorResult)({data:s,abi:[N]}),[g,w,b,m,y]=p,{ccipRead:E}=t,A=E&&"function"==typeof E?.request?E.request:v;try{if(!(0,l.isAddressEqual)(h,g))throw new i({sender:g,to:h});let o=w.includes(P)?await x({data:b,ccipRequest:t=>A({...t,requestOptions:c})}):await A({data:b,requestOptions:c,sender:g,urls:w}),{data:n}=await (0,e.call)(t,{blockNumber:r,blockTag:a,data:(0,f.concat)([m,(0,d.encodeAbiParameters)([{type:"bytes"},{type:"bytes"}],[o,y])]),requestOptions:c,to:h});return n}catch(t){if(c?.signal?.aborted)throw(0,o.getAbortError)(c.signal);if((0,o.isAbortError)(t))throw t;throw new n({callbackSelector:m,cause:t,data:s,extraData:y,sender:g,urls:w})}}async function v({data:t,requestOptions:e,sender:a,urls:n}){let i=Error("An unknown error occurred.");for(let u=0;u<n.length;u++){if(e?.signal?.aborted)throw(0,o.getAbortError)(e.signal);let d=n[u],l=d.includes("{data}")?"GET":"POST",f="POST"===l?{data:t,sender:a}:void 0,p="POST"===l?{"Content-Type":"application/json"}:{};try{let o,n=await fetch(d.replace("{sender}",a.toLowerCase()).replace("{data}",t),{body:JSON.stringify(f),headers:p,method:l,...e?.signal?{signal:e.signal}:{}});if(o=n.headers.get("Content-Type")?.startsWith("application/json")?(await n.json()).data:await n.text(),!n.ok){i=new c.HttpRequestError({body:f,details:o?.error?(0,r.stringify)(o.error):n.statusText,headers:n.headers,status:n.status,url:d});continue}if(!(0,h.isHex)(o)){i=new s({result:o,url:d});continue}return o}catch(t){if(e?.signal?.aborted)throw(0,o.getAbortError)(e.signal);if((0,o.isAbortError)(t))throw t;i=new c.HttpRequestError({body:f,details:t.message,url:d})}}throw i}t.s(["offchainLookup",0,k,"offchainLookupSignature",0,"0x556f1830"],294310)}]);
3
4//# debugId=0c5b8689-41cf-dff0-3904-9f931be3857d

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.