PageSourceSearch

https://bit-bima.vercel.app/_next/static/chunks/7896-de8ac3b0ea4d48ed.js

js bit-bima.vercel.app collected 2026-10-03 06:16:58 UTC 8,060 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7896],{1196:(e,t,a)=>{a.d(t,{v:()=>r});var n=a(30445);function r({chain:e,currentChainId:t}){if(!e)throw new n.jF;if(t!==e.id)throw new n.EH({chain:e,currentChainId:t})}},1449:(e,t,a)=>{a.d(t,{c:()=>u});var n=a(7441);class r extends n.C{constructor(e){super(`Call bundle failed with status: ${e.statusCode}`,{name:"BundleFailedError"}),Object.defineProperty(this,"result",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.result=e}}var o=a(72342),i=a(86435),s=a(62739),c=a(42142),d=a(79183),l=a(36781);async function u(e,t){let a,{id:n,pollingInterval:u=e.pollingInterval,status:w=({statusCode:e})=>200===e||e>=300,retryCount:p=4,retryDelay:f=({count:e})=>200*~~(1<<e),timeout:m=6e4,throwOnFailure:v=!1}=t,g=(0,d.A)(["waitForCallsStatus",e.uid,n]),{promise:y,resolve:C,reject:T}=(0,s.Y)(),b=(0,o.lB)(g,{resolve:C,reject:T},t=>{let o=(0,i.w)(async()=>{let i=e=>{clearTimeout(a),o(),e(),b()};try{let a=await (0,c.b)(async()=>{let t=await (0,l.k)(e,{id:n});if(v&&"failure"===t.status)throw new r(t);return t},{retryCount:p,delay:f});if(!w(a))return;i(()=>t.resolve(a))}catch(e){i(()=>t.reject(e))}},{interval:u,emitOnBegin:!0});return o});return a=m?setTimeout(()=>{b(),clearTimeout(a),T(new h({id:n}))},m):void 0,await y}class h extends n.C{constructor({id:e}){super(`Timed out while waiting for call bundle with id "${e}" to be confirmed.`,{name:"WaitForCallsStatusTimeoutError"})}}},5112:(e,t,a)=>{a.d(t,{p:()=>i});var n=a(42264),r=a(69432),o=a(35020);function i(e,{docsPath:t,...a}){let i=(()=>{let t=(0,o.l)(e,a);return t instanceof n.RM?e:t})();return new r.$s(i,{docsPath:t,...a})}},5666:(e,t,a)=>{a.d(t,{h:()=>d});var n=a(19405),r=a(50431),o=a(17255),i=a(34524),s=a(926),c=a(13649);async function d(e,t){let{account:a=e.account,chainId:d,nonce:l}=t;if(!a)throw new r.T({docsPath:"/docs/eip7702/prepareAuthorization"});let u=(0,n.J)(a),h=(()=>
1{if(t.executor)return"self"===t.executor?t.executor:(0,n.J)(t.executor)})(),w={address:t.contractAddress??t.address,chainId:d,nonce:l};return void 0===w.chainId&&(w.chainId=e.chain?.id??await (0,i.T)(e,s.T,"getChainId")({})),void 0===w.nonce&&(w.nonce=await (0,i.T)(e,c.y,"getTransactionCount")({address:u.address,blockTag:"pending"}),("self"===h||h?.address&&(0,o.h)(h.address,u.address))&&(w.nonce+=1)),w}},36781:(e,t,a)=>{a.d(t,{k:()=>c});var n=a(93727),r=a(54335),o=a(27493),i=a(35886),s=a(59857);async function c(e,t){async function a(t){if(t.endsWith(s.vB.slice(2))){let a=(0,r.B)((0,n.iN)(t,-64,-32)),i=(0,n.iN)(t,0,-64).slice(2).match(/.{1,64}/g),c=await Promise.all(i.map(t=>s.BH.slice(2)!==t?e.request({method:"eth_getTransactionReceipt",params:[`0x${t}`]},{dedupe:!0}):void 0)),d=c.some(e=>null===e)?100:c.every(e=>e?.status==="0x1")?200:c.every(e=>e?.status==="0x0")?500:600;return{atomic:!1,chainId:(0,o.ME)(a),receipts:c.filter(Boolean),status:d,version:"2.0.0"}}return e.request({method:"wallet_getCallsStatus",params:[t]})}let{atomic:c=!1,chainId:d,receipts:l,version:u="2.0.0",...h}=await a(t.id),[w,p]=(()=>{let e=h.status;return e>=100&&e<200?["pending",e]:e>=200&&e<300?["success",e]:e>=300&&e<700?["failure",e]:"CONFIRMED"===e?["success",200]:"PENDING"===e?["pending",100]:[void 0,e]})();return{...h,atomic:c,chainId:d?(0,o.ME)(d):void 0,receipts:l?.map(e=>({...e,blockNumber:(0,o.uU)(e.blockNumber),gasUsed:(0,o.uU)(e.gasUsed),status:i.Lj[e.status]}))??[],statusCode:p,status:w,version:u}}},59857:(e,t,a)=>{a.d(t,{BH:()=>w,vB:()=>h,yM:()=>p});var n=a(19405),r=a(7441),o=a(81379),i=a(60367),s=a(79731),c=a(27493),d=a(67622),l=a(5112),u=a(98564);let h="0x5792579257925792579257925792579257925792579257925792579257925792",w=(0,d.cK)(0,{size:32});async function p(e,t){let{account:a=e.account,capabilities:p,chain:f=e.chain,experimental_fallback:m,experimental_fallbackDelay:v=32,forceAtomic:g=!1,id:y,version:C="2.0.0"}=t,T=a?(0,n.J)(a):null,b=t.calls.map(e=>{let t=e.abi?(0,i.p)({abi:e.abi,functionName:e.functionName,args:e.args}):e.data;return{data:e.dataSuffix&&t?(0,s.xW)([t,e.dataSuffix]):t,to:e.to,value:e.value?(0,d.cK)(e.value):void 0}});try{let t=await e.request({method:"wallet_sendCalls",params:[{atomicRequired:g,calls:b,capabilities:p,chainId:(0,d.cK)(f.id),from:T?.address,id:y,version:C}]},{retryCount:0});if("string"==typeof t)return{id:t};return t}catch(a){if(m&&("MethodNotFoundRpcError"===a.name||"MethodNotSupportedRpcError"===a.name||"UnknownRpcError"===a.name||a.details.toLowerCase().includes("does not exist / is not available")||a.details.toLowerCase().includes("missing or invalid. request()")||a.details.toLowerCase().includes("did not match any variant of untagged enum")||a.details.toLowerCase().includes("account upgraded to unsupported contract")||a.details.toLowerCase().includes("eip-7702 not supported")||a.details.toLowerCase().includes("unsupported wc_ method"))){if(p&&Object.values(p).some(e=>!e.optional)){let e="non-optional `capabilities` are not supported on fallback to `eth_sendTransaction`.";throw new o.L5(new r.C(e,{details:e}))}if(g&&b.length>1){let e="`forceAtomic` is not supported on fallback to `eth_sendTransaction`.";throw new o.jz(new r.C(e,{details:e}))}let t=[];for(let a of b){let n=(0,u.v)(e,{account:T,chain:f,data:a.data,to:a.to,value:a.value?(0,c.uU)(a.value):void 0});t.push(n),v>0&&await new Promise(e=>setTimeout(e,v))}let a=await Promise.allSettled(t);if(a.every(e=>"rejected"===e.status))throw a[0].reason;let n=a.map(e=>"fulfilled"===e.status?e.value:w);return{id:(0,s.xW)([...n,(0,d.cK)(f.id,{size:32}),h])}}throw(0,l.p)(a,{...t,account:T,chain:t.chain})}}},98564:(e,t,a)=>{a.d(t,{v:()=>g});var n=a(19405),r=a(50431),o=a(7441),i=a(38597),s=a(1196),c=a(5112),d=a(7671),l=a(76743),u=a(34524),h=a(65003),w=a(84062),p=a(926),f=a(82700),m=a(2806);let v=new h.A(128);async function g(e,t){let{account:a=e.account,chain:h=e.chain,accessList:g,authorizationList:y,blobs:C,data:T,gas:b,gasPrice:E,maxFeePerBlobGas:N,maxFeePerGas:M,maxPriorityFeePerGas:R,nonce:x,type:I,value:_,...k}=t;if(void 0===a)throw new r.T({docsPath:"/docs/actions/wallet/sendTransaction"});let q=a?(0,n.J)(a):null;try{(0,w.c)(t);let a=await (async()=>t.to?t.to:null!==t.to&&y&&y.length>0?await (0,i.g)({authorization:y[0]}).catch(()=>{throw new o.C("`to` is required. Could not infer from `authorizationList`.")}):void 0)();if(q?.type==="json-rpc"||null===q){let t;null!==h&&(t=await (0,u.T)(e,p.T,"getChainId")({}),(0,s.v)({currentChainId:t,chain:h}));let n=e.chain?.formatters?.transactionRequest?.format,r=(n||l.Bv)({...(0,d.o)(k,{format:n}),accessList:g,authorizationList:y,blobs:C,chainId:t,data:T,from:q?.address,gas:b,gasPrice:E,maxFeePerBlobGas:N,maxFeePerGas:M,maxPriorityFeePerGas:R,nonce:x,to:a,type:I,value:_}),o=v.get(e.uid);try{return await e.request({method:o?"wallet_sendTransaction":"eth_sendTransaction",params:[r]},{retryCount:0})}catch(t){if(!1===o)throw t;if("InvalidInputRpcError"===t.name||"InvalidParamsRpcError"===t.name||"MethodNotFoundRpcError"===t.name||"MethodNotSupportedRpcError"===t.name)return await e.request({method:"wallet_sendTransaction",params:[r]},{retryCount:0}).then(t=>(v.set(e.uid,!0),t)).catch(a=>{if("MethodNotFoundRpcError"===a.name||"MethodNotSupportedRpcError"===a.name)throw v.set(e.uid,!1),t;throw a});throw t}}if(q?.type==="local"){let t=await (0,u.T)(e,f.ft,"prepareTransactionRequest")({account:q,accessList:g,authorizationList:y,blobs:C,chain:h,data:T,gas:b,gasPrice:E,maxFeePerBlobGas:N,maxFeePerGas:M,maxPriorityFeePerGas:R,nonce:x,nonceManager:q.nonceManager,parameters:[...f.MM,"sidecars"],type:I,value:_,...k,to:a}),n=h?.serializers?.transaction,r=await q.signTransaction(t,{serializer:n});return await (0,u.T)(e,m.L,"sendRawTransaction")({serializedTransaction:r})}if(q?.type==="smart")throw new r.Z({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"});throw new r.Z({docsPath:"/docs/actions/wallet/sendTransaction",type:q?.type})}catch(e){if(e instanceof r.Z)throw e;throw(0,c.p)(e,{...t,account:q,chain:t.chain||void 0})}}}}]);

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.