1!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{},t=(new e.Error).stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="6a6a0431-036b-46aa-9d57-ed615312cece",e._sentryDebugIdIdentifier="sentry-dbid-6a6a0431-036b-46aa-9d57-ed615312cece")}catch(e){}}();"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[7905,8291],{23103:function(e,t,a){a.d(t,{n:function(){return n}});async function n(e,t){return await e({method:"eth_sendRawTransaction",params:[t]})}},49151:function(e,t,a){a.d(t,{z:function(){return T},sendEip712Transaction:function(){return _},P:function(){return N}});var n=a(81544),r=a(46033),i=a(44659),s=a(59455);function o(e){if(e<256)return 1;if(e<65536)return 2;if(e<16777216)return 3;if(e<4294967296)return 4;throw new n.G("Length is too large.")}var c=a(23103),u=a(24623),d=a(63523);function l(e){if(["string","number"].includes(typeof e)&&!Number.isInteger(Number(e)))throw Error(`Expected value to be an integer to convert to a bigint, got ${e} of type ${typeof e}`);return e instanceof Uint8Array?BigInt((0,d.dg)(e)):BigInt(e)}var p=a(8291),y=a(5189),m=a(50369),f=a(29712),h=a(8796),g=a(88421),v=a(86441);let w=(e,t,a)=>e&t^~e&a,b=(e,t,a)=>e&t^e&a^t&a;class G extends v.kb{constructor(e,t,a,n){super(),this.blockLen=e,this.outputLen=t,this.padOffset=a,this.isLE=n,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(e),this.view=(0,v.GL)(this.buffer)}update(e){(0,g.Gg)(this);let{view:t,buffer:a,blockLen:n}=this,r=(e=(0,v.O0)(e)).length;for(let i=0;i<r;){let s=Math.min(n-this.pos,r-i);if(s===n){let t=(0,v.GL)(e);for(;n<=r-i;i+=n)this.process(t,i);continue}a.set(e.subarray(i,i+s),this.pos),this.pos+=s,i+=s,this.pos===n&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,g.Gg)(this),(0,g.J8)(e,this),this.finished=!0;let{buffer:t,view:a,blockLen:n,isLE:r}=this,{pos:i}=this;t[i++]=128,this.buffer.subarray(i).fill(0),this.padOffset>n-i&&(this.process(a,0),i=0);for(let e=i;e<n;e++)t[e]=0;!function(e,t,a,n){if("function"==typeof e.setBigUint64)return e.setBigUint64(t,a,n);let r=BigInt(32),i=BigInt(4294967295),s=Number(a>>r&i),o=Number(a&i),c=n?4:0,u=n?0:4;e.setUint32(t+c,s,n),e.setUint32(t+u,o,n)}(a,n-8,BigInt(8*this.length),r),this.process(a,0);let s=(0,v.GL)(e),o=this.outputLen;if(o%4)throw Error("_sha2: outputLen should be aligned to 32bit");let c=o/4,u=this.get();if(c>u.length)throw Error("_sha2: outputLen bigger than state");for(let e=0;e<c;e++)s.setUint32(4*e,u[e],r)}digest(){let{buffer:e,outputLen:t}=this;this.digestInto(e);let a=e.slice(0,t);return this.destroy(),a}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());let{blockLen:t,buffer:a,length:n,finished:r,destroyed:i,pos:s}=this;return e.length=n,e.pos=s,e.finished=r,e.destroyed=i,n%t&&e.buffer.set(a),e}}let x=new Uint32Array([1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298]),A=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),L=new Uint32Array(64);class P extends G{constructor(){super(64,32,8,!1),this.A=0|A[0],this.B=0|A[1],this.C=0|A[2],this.D=0|A[3],this.E=0|A[4],this.F=0|A[5],this.G=0|A[6],this.H=0|A[7]}get(){let{A:e,B:t,C:a,D:n,E:r,F:i,G:s,H:o}=this;return[e,t,a,n,r,i,s,o]}set(e,t,a,n,r,i,s,o){this.A=0|e,this.B=0|t,this.C=0|a,this.D=0|n,this.E=0|r,this.F=0|i,this.G=0|s,this.H=0|o}process(e,t){for(let a=0;a<16;a++,t+=4)L[a]=e.getUint32(t,!1);for(let e=16;e<64;e++){let t=L[e-15],a=L[e-2],n=(0,v.np)(t,7)^(0,v.np)(t,18)^t>>>3,r=(0,v.np)(a,17)^(0,v.np)(a,19)^a>>>10;L[e]=r+L[e-7]+n+L[e-16]|0}let{A:a,B:n,C:r,D:i,E:s,F:o,G:c,H:u}=this;for(let e=0;e<64;e++){let t=u+((0,v.np)(s,6)^(0,v.np)(s,11)^(0,v.np)(s,25))+w(s,o,c)+x[e]+L[e]|0,d=((0,v.np)(a,2)^(0,v.np)(a,13)^(0,v.np)(a,22))+b(a,n,r)|0;u=c,c=o,o=s,s=i+t|0,i=r,r=n,n=a,a=t+d|0}a=a+this.A|0,n=n+this.B|0,r=r+this.C|0,i=i+this.D|0,s=s+this.E|0,o=o+this.F|0,c=c+this.G|0,u=u+this.H|0,this.set(a,n,r,i,s,o,c,u)}roundClean(){L.fill(0)}destroy(){this.set(0,0,0,0,0,0,0,0),this.buffer.fill(0)}}let O=(0,v.hE)(()=>new P);var I=a(93610);
1let C=32n*a(75018).rU;class B extends n.G{constructor({givenLength:e,maxBytecodeSize:t}){super(`Bytecode cannot be longer than ${t} bytes. Given length: ${e}`,{name:"BytecodeLengthExceedsMaxSizeError"})}}class U extends n.G{constructor({givenLengthInWords:e}){super(`Bytecode length in 32-byte words must be odd. Given length in words: ${e}`,{name:"BytecodeLengthInWordsMustBeOddError"})}}class D extends n.G{constructor({givenLength:e}){super(`The bytecode length in bytes must be divisible by 32. Given length: ${e}`,{name:"BytecodeLengthMustBeDivisibleBy32Error"})}}let E=e=>{let t=function(e){let{gas:t,nonce:a,to:n,from:r,value:o,maxFeePerGas:c,maxPriorityFeePerGas:u,paymaster:l,paymasterInput:p,gasPerPubdata:y,data:m,factoryDeps:f}=e;return{txType:113n,from:BigInt(r),to:n?BigInt(n):0n,gasLimit:t??0n,gasPerPubdataByteLimit:y??50000n,maxFeePerGas:c??0n,maxPriorityFeePerGas:u??0n,paymaster:l?BigInt(l):0n,nonce:a?BigInt(a):0n,value:o??0n,data:m||"0x0",factoryDeps:f?.map(e=>d.NC(function(e){let t=(0,i.O0)(e);if(t.length%32!=0)throw new D({givenLength:t.length});if(t.length>C)throw new B({givenLength:t.length,maxBytecodeSize:C});let a=function(e,t){let a=O((0,I.v)(e,{strict:!1})?(0,i.O0)(e):e);return"bytes"===((void 0)||"hex")?a:(0,s.NC)(a)}(t),n=(0,i.O0)(a),r=t.length/32;if(r%2==0)throw new U({givenLengthInWords:r});let o=(0,i.O0)(r),c=(0,h.vk)(o,{size:2}),u=new Uint8Array([1,0]);return n.set(u,0),n.set(c,2),n}(e)))??[],paymasterInput:p||"0x"}}(e);return{domain:{name:"zkSync",version:"2",chainId:e.chainId},types:{Transaction:[{name:"txType",type:"uint256"},{name:"from",type:"uint256"},{name:"to",type:"uint256"},{name:"gasLimit",type:"uint256"},{name:"gasPerPubdataByteLimit",type:"uint256"},{name:"maxFeePerGas",type:"uint256"},{name:"maxPriorityFeePerGas",type:"uint256"},{name:"paymaster",type:"uint256"},{name:"nonce",type:"uint256"},{name:"value",type:"uint256"},{name:"data",type:"bytes"},{name:"factoryDeps",type:"bytes32[]"},{name:"paymasterInput",type:"bytes"}]},primaryType:"Transaction",message:t}};async function _(e){let{account:t,transaction:a}=e,n=await T(e),r=await N({account:t,eip712Transaction:n,chainId:a.chain.id}),i=(0,u.getRpcClient)(a);return{transactionHash:await (0,c.n)(i,r),chain:a.chain,client:a.client}}async function N(e){let{account:t,eip712Transaction:a,chainId:n}=e,c=E(a),u=await t.signTypedData({...c});return function(e){let{chainId:t,gas:a,nonce:n,to:c,from:u,value:l,maxFeePerGas:y,maxPriorityFeePerGas:m,customSignature:f,factoryDeps:h,paymaster:g,paymasterInput:v,gasPerPubdata:w,data:b}=e,G=[n?(0,d.NC)(n):"0x",m?(0,d.NC)(m):"0x",y?(0,d.NC)(y):"0x",a?(0,d.NC)(a):"0x",c??"0x",l?(0,d.NC)(l):"0x",b??"0x0",(0,d.NC)(t),(0,d.NC)(""),(0,d.NC)(""),(0,d.NC)(t),u??"0x",w?(0,d.NC)(w):(0,d.NC)(50000n),h??[],f??"0x",g&&v?[g,v]:[]];return(0,p.concatHex)(["0x71",function(e,t="hex"){let a=function e(t){return Array.isArray(t)?function(e){let t=e.reduce((e,t)=>e+t.length,0),a=o(t);return{length:t<=55?1+t:1+a+t,encode(n){for(let{encode:r}of(t<=55?n.pushByte(192+t):(n.pushByte(247+a),1===a?n.pushUint8(t):2===a?n.pushUint16(t):3===a?n.pushUint24(t):n.pushUint32(t)),e))r(n)}}}(t.map(t=>e(t))):function(e){let t="string"==typeof e?(0,i.nr)(e):e,a=o(t.length);return{length:1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+a+t.length,encode(e){1===t.length&&t[0]<128||(t.length<=55?e.pushByte(128+t.length):(e.pushByte(183+a),1===a?e.pushUint8(t.length):2===a?e.pushUint16(t.length):3===a?e.pushUint24(t.length):e.pushUint32(t.length))),e.pushBytes(t)}}}(t)}(e),n=(0,r.q)(new Uint8Array(a.length));return(a.encode(n),"hex"===t)?(0,s.ci)(n.bytes):n.bytes}(G)])}({...a,chainId:n,customSignature:u})}async function T(e){let{account:t,transaction:a}=e,[n,r,i,s,o,c,p]=await Promise.all([(0,m.encode)(a),(0,y.q)(a.to),(0,y.q)(a.value),(0,y.q)(a.gas),(0,y.q)(a.maxFeePerGas),(0,y.q)(a.maxPriorityFeePerGas),(0,y.q)(a.eip712).then(e=>e?.gasPerPubdata)]);if(!s||!o||!c){let e=(0,u.getRpcClient)(a),y=await e({method:"zks_estimateFee",params:[{from:t.address,to:r,data:n,value:i?(0,d.eC)(i):void 0}]});s=l(y.gas_limit),o=2n*l(y.max_fee_per_gas),c=l(y.max_priority_fee_per_gas)||1n,p=2n*l(y.gas_per_pubdata_limit)}
1return{...await (0,f.n)({transaction:{...a,gas:s,maxFeePerGas:o,maxPriorityFeePerGas:c},from:t.address}),...a.eip712,gasPerPubdata:p,from:t.address}}},62343:function(e,t,a){function n(e,t){return t&&(e.__preparedMethod=t.preparedMethod,e.__contract=t.contract),e}a.r(t),a.d(t,{prepareTransaction:function(){return n}})},8291:function(e,t,a){function n(e){return`0x${e.reduce((e,t)=>e+t.replace("0x",""),"")}`}a.r(t),a.d(t,{concatHex:function(){return n}})},7905:function(e,t,a){a.r(t),a.d(t,{connectSmartWallet:function(){return eH},disconnectSmartWallet:function(){return eS},isSmartWallet:function(){return e$},personalAccountToSmartAccountMap:function(){return ek}});var n=a(42727),r=a(75018),i=a(3623),s=a(73511),o=a(90701);let c=[{type:"address",name:"owner"},{type:"address",name:"spender"}],u=[{type:"uint256"}];async function d(e){return(0,o.readContract)({contract:e.contract,method:["0xdd62ed3e",c,u],params:[e.owner,e.spender]})}var l=a(91256),p=a(27100),y=a(16066),m=a(2750),f=a(5189),h=a(62343),g=a(30528);function v(e){let{contract:t,method:a,params:n,...r}=e,i=()=>(async()=>{if(Array.isArray(a))return a;if((0,g.s)(a))return(0,m.i)(a);if("function"==typeof a)return(0,m.i)(await a(t));if("string"==typeof a&&a.startsWith("function ")){let e=(0,p.s)(a);if("function"===e.type)return(0,m.i)(e);throw Error('"method" passed is not of type "function"')}if(t.abi&&t.abi?.length>0){let e=t.abi?.find(e=>"function"===e.type&&e.name===a);if(e)return(0,m.i)(e)}throw Error(`Could not resolve method "${a}".`)})();return(0,h.prepareTransaction)({...r,to:t.address,chain:t.chain,client:t.client,data:async()=>{let e;return 0===(e=Array.isArray(a)?a:await i())[1].length?e[0]:e[0]+(0,y.encodeAbiParameters)(e[1],await (0,f.q)(n??[])).slice(2)}},{preparedMethod:i,contract:t})}let w=[{type:"address",name:"spender"},{type:"uint256",name:"value"}],b=[{type:"bool"}];var G=a(29712),x=a(49151),A=a(46061),L=a(8291),P=a(84933),O=a(86745),I=a(65531),C=a(10052),B=a(4012),U=a(44659),D=a(4529),E=a(20556),_=a(40176);let N=_.r;var T=a(33630),M=a(12058),V=a(7275);let $="/docs/contract/decodeEventLog";var k=a(93610),F=a(10464);function H(e){let t;let{abi:a,args:n=[],name:r}=e,i=(0,k.v)(r,{strict:!1}),s=a.filter(e=>i?"function"===e.type?(0,F.C)(e)===r:"event"===e.type&&N(e)===r:"name"in e&&e.name===r);if(0!==s.length){if(1===s.length)return s[0];for(let e of s)if("inputs"in e){if(!n||0===n.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(e.inputs&&0!==e.inputs.length&&e.inputs.length===n.length&&n.every((t,a)=>{let n="inputs"in e&&e.inputs[a];return!!n&&function e(t,a){let n=typeof t,r=a.type;switch(r){case"address":return(0,B.U)(t,{strict:!1});case"bool":return"boolean"===n;case"function":case"string":return"string"===n;default:if("tuple"===r&&"components"in a)return Object.values(a.components).every((a,n)=>e(Object.values(t)[n],a));if(/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r))return"number"===n||"bigint"===n;if(/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r))return"string"===n||t instanceof Uint8Array;
1if(/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r))return Array.isArray(t)&&t.every(t=>e(t,{...a,type:r.replace(/(\[[0-9]{0,}\])$/,"")}));return!1}}(t,n)})){if(t&&"inputs"in t&&t.inputs){let a=function e(t,a,n){for(let r in t){let i=t[r],s=a[r];if("tuple"===i.type&&"tuple"===s.type&&"components"in i&&"components"in s)return e(i.components,s.components,n[r]);let o=[i.type,s.type];if(o.includes("address")&&o.includes("bytes20")||(o.includes("address")&&o.includes("string")||o.includes("address")&&o.includes("bytes"))&&(0,B.U)(n[r],{strict:!1}))return o}}(e.inputs,t.inputs,n);if(a)throw new I.S4({abiItem:e,type:a[0]},{abiItem:t,type:a[1]})}t=e}}return t||s[0]}}var S=a(81544);class z extends S.G{constructor(e){super(`Filter type "${e}" is not supported.`,{name:"FilterTypeNotSupportedError"})}}var j=a(30056);let R="/docs/contract/encodeEventTopics";function q({param:e,value:t}){if("string"===e.type||"bytes"===e.type)return(0,D.w)((0,U.O0)(t));if("tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/))throw new z(e.type);return(0,j.E)([e],[t])}function W(e){let t;let{signature:a}=e;return{abiEvent:t=a&&"object"==typeof a&&"type"in a&&"event"===a.type?a:(0,p.s)(a),hash:(0,_.r)(t),topics:function(e){let{abi:t,eventName:a,args:n}=e,r=t[0];if(a){let e=H({abi:t,name:a});if(!e)throw new I.mv(a,{docsPath:R});r=e}if("event"!==r.type)throw new I.mv(void 0,{docsPath:R});let i=N((0,V.t)(r)),s=[];if(n&&"inputs"in r){let e=r.inputs?.filter(e=>"indexed"in e&&e.indexed),t=Array.isArray(n)?n:Object.values(n).length>0?e?.map(e=>n[e.name])??[]:[];t.length>0&&(s=e?.map((e,a)=>Array.isArray(t[a])?t[a].map((n,r)=>q({param:e,value:t[a][r]})):t[a]?q({param:e,value:t[a]}):null)??[])}return[i,...s]}({abi:[t],args:e.filters})}}var J=a(63523),K=a(22464),X=a(60799),Q=a(76019),Y=a(39978);let Z=()=>{let e=BigInt(Math.floor(4294967296*Math.random())),t=BigInt(Math.floor(4294967296*Math.random())),a=BigInt(Math.floor(4294967296*Math.random())),n=BigInt(Math.floor(4294967296*Math.random())),r=BigInt(Math.floor(4294967296*Math.random())),i=BigInt(Math.floor(4294967296*Math.random()));return e<<BigInt(160)|t<<BigInt(128)|a<<BigInt(96)|n<<BigInt(64)|r<<BigInt(32)|i};function ee(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[e,null==t||(0,Y.v)(t)?t:(0,J.NC)(t)]))}async function et(e){return ec({...e,operation:"eth_sendUserOperation",params:[ee(e.userOp),e.options.entrypointAddress??Q.Ex]})}async function ea(e){let t=await ec({...e,operation:"eth_estimateUserOperationGas",params:[ee(e.userOp),e.options.entrypointAddress??Q.Ex]});return{preVerificationGas:(0,J.y_)(t.preVerificationGas),verificationGas:(0,J.y_)(t.verificationGas),verificationGasLimit:(0,J.y_)(t.verificationGasLimit),callGasLimit:(0,J.y_)(t.callGasLimit)+Q.X_,paymasterVerificationGasLimit:void 0!==t.paymasterVerificationGasLimit?(0,J.y_)(t.paymasterVerificationGasLimit):void 0,paymasterPostOpGasLimit:void 0!==t.paymasterPostOpGasLimit?(0,J.y_)(t.paymasterPostOpGasLimit):void 0}}async function en(e){let t=await ec({...e,operation:"thirdweb_getUserOperationGasPrice",params:[]});return{maxPriorityFeePerGas:(0,J.y_)(t.maxPriorityFeePerGas),maxFeePerGas:(0,J.y_)(t.maxFeePerGas)}}async function er(e){let t=await ei(e);if(t){if(!1===t.success){let e=function(e){let{logs:t,events:a,strict:n}=e;return function(e){let{abi:t,args:a,logs:n,strict:r=!0}=e,i=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})();return n.map(e=>{try{let n=H({abi:t,name:e.topics[0]});if(!n)return null;let s=function(e){let{abi:t,data:a,strict:n,topics:r}=e,i=n??!0,[s,...o]=r;if(!s)throw new I.FM({docsPath:$});let c=t.find(e=>"event"===e.type&&s===N((0,V.t)(e)));if(!(c&&"name"in c)||"event"!==c.type)throw new I.lC(s,{docsPath:$});let{name:u,inputs:d}=c,l=d?.some(e=>!("name"in e&&e.name)),p=l?[]:{},y=d.filter(e=>"indexed"in e&&e.indexed);for(let e=0;e<y.length;e++){let t=y[e],a=o[e];if(!a)throw new I.Gy({abiItem:c,param:t});p[l?e:t.name||e]=function({param:e,value:t}){return"string"===e.type||"bytes"===e.type||"tuple"===e.type||e.type.match(/^(.*)\[(\d+)?\]$/)?t:((0,M.r)([e],t)||[])[0]}({param:t,value:a})}let m=d.filter(e=>
1!("indexed"in e&&e.indexed));if(m.length>0){if(a&&"0x"!==a)try{let e=(0,M.r)(m,a);if(e){if(l)p=[...p,...e];else for(let t=0;t<m.length;t++)p[m[t].name]=e[t]}}catch(e){if(i){if(e instanceof I.xB||e instanceof T.lQ)throw new I.SM({abiItem:c,data:a,params:m,size:(0,E.d)(a)});throw e}}else if(i)throw new I.SM({abiItem:c,data:"0x",params:m,size:0})}return{eventName:u,args:Object.values(p).length>0?p:void 0}}({...e,abi:[n],strict:r});if(i&&!i.includes(s.eventName)||!function(e){let{args:t,inputs:a,matchArgs:n}=e;if(!n)return!0;if(!t)return!1;function r(e,t,a){try{if("address"===e.type)return function(e,t){if(!(0,B.U)(e,{strict:!1}))throw new C.b({address:e});if(!(0,B.U)(t,{strict:!1}))throw new C.b({address:t});return e.toLowerCase()===t.toLowerCase()}(t,a);if("string"===e.type||"bytes"===e.type)return(0,D.w)((0,U.O0)(t))===a;return t===a}catch{return!1}}return Array.isArray(t)&&Array.isArray(n)?n.every((e,n)=>{if(!e)return!0;let i=a[n];return!!i&&(Array.isArray(e)?e:[e]).some(e=>r(i,e,t[n]))}):!("object"!=typeof t||Array.isArray(t)||"object"!=typeof n||Array.isArray(n))&&Object.entries(n).every(([e,n])=>{if(!n)return!0;let i=a.find(t=>t.name===e);return!!i&&(Array.isArray(n)?n:[n]).some(a=>r(i,a,t[e]))})}({args:s.args,inputs:n.inputs,matchArgs:a}))return null;return{...s,...e}}catch(n){let t,a;if(n instanceof I.lC)return null;if(n instanceof I.SM||n instanceof I.Gy){if(r)return null;t=n.abiItem.name,a=n.abiItem.inputs?.some(e=>!("name"in e&&e.name))}return{...e,args:a?[]:{},eventName:t}}}).filter(Boolean)}({logs:t,abi:a.map(e=>e.abiEvent),strict:n})}({events:[function(e={}){return W({signature:"event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)",filters:e})}(),function(e={}){return W({signature:"event PostOpRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)",filters:e})}()],logs:t.logs}),a=e[0]?.args?.revertReason;if(!a)throw Error(`UserOp failed at txHash: ${t.receipt.transactionHash}`);let n=(0,O.p)({data:a});throw Error(`UserOp failed with reason: '${n.args.join(",")}' at txHash: ${t.receipt.transactionHash}`)}return t.receipt}}async function ei(e){let t=await ec({options:e,operation:"eth_getUserOperationReceipt",params:[e.userOpHash]});if(t)return function(e){let{receipt:t}=e,a={...t,transactionHash:t.transactionHash,blockNumber:t.blockNumber?BigInt(t.blockNumber):null,contractAddress:t.contractAddress?t.contractAddress:null,cumulativeGasUsed:t.cumulativeGasUsed?BigInt(t.cumulativeGasUsed):null,effectiveGasPrice:t.effectiveGasPrice?BigInt(t.effectiveGasPrice):null,gasUsed:t.gasUsed?BigInt(t.gasUsed):null,logs:t.logs,to:t.to?t.to:null,transactionIndex:t.transactionIndex,status:t.status,type:t.type};return t.blobGasPrice&&(a.blobGasPrice=BigInt(t.blobGasPrice)),t.blobGasUsed&&(a.blobGasUsed=BigInt(t.blobGasUsed)),{...e,receipt:a,userOpHash:e.userOpHash,actualGasCost:BigInt(e.actualGasCost),actualGasUsed:BigInt(e.actualGasUsed),nonce:BigInt(e.nonce)}}(t)}async function es(e){let t=await ec({options:e.options,operation:"zk_paymasterData",params:[e.transaction]});return{paymaster:t.paymaster,paymasterInput:t.paymasterInput}}async function eo(e){return{transactionHash:(await ec({options:e.options,operation:"zk_broadcastTransaction",params:[{...e.transaction,signedTransaction:e.signedTransaction}]})).transactionHash}}async function ec(e){let{options:t,operation:a,params:n}=e;Q.eM&&console.debug(`>>> sending ${a} with payload:`,n);let r=(0,Q.bI)(t.entrypointAddress||Q.Ex),i=t.bundlerUrl??(0,Q.Rg)(t.chain,"v0.6"===r?"v1":"v2"),s=(0,K.NX)(t.client),o=await s(i,{method:"POST",headers:{"Content-Type":"application/json"},body:(0,X.P)({jsonrpc:"2.0",id:1,method:a,params:n})}),c=await o.json();if(!o.ok||c.error){let e=c.error||o.statusText;"object"==typeof e&&(e=JSON.stringify(e));let t=c.code||"UNKNOWN";throw Error(`${a} error: ${e} 2Status: ${o.status} 3Code: ${t}`)}return Q.eM&&console.debug(`<<< ${a} result:`,c),c.result}async function eu(e){let{factoryContract:t,predictAddressOverride:a,adminAddress:n,accountSalt:r,accountAddress:i}=e;if(a)return a(t);if(i)return i;if(!n)throw Error("Account address is required to predict the smart wallet address.");let s=(0,J.$G)(r??"");return(0,o.readContract)({contract:t,method:"function getAddress(address, bytes) returns (address)",params:[n,s]})}function ed(e){let{adminAddress:t,factoryContract:a,createAccountOverride:n,accountSalt:r}=e;return n?n(a):v({contract:a,method:"function createAccount(address, bytes) returns (address)",params:[t,(0,J.$G)(r??"")]})}function el(e){let{accountContract:t,transaction:a,executeOverride:n}=e;return n?n(t,a):v({contract:t,method:"function execute(address, uint256, bytes)",params:[a.to||"",a.value||0n,a.data||"0x"]})}var ep=a(89256);let ey=[{type:"address",name:"sender"},{type:"uint192",name:"key"}],em=[{type:"uint256",name:"nonce"}];async function ef(e){return(0,o.readContract)({contract:e.contract,method:["0x3556
37e1a",ey,em],params:[e.sender,e.key]})}let eh=[{type:"tuple",name:"userOp",components:[{type:"address",name:"sender"},{type:"uint256",name:"nonce"},{type:"bytes",name:"initCode"},{type:"bytes",name:"callData"},{type:"uint256",name:"callGasLimit"},{type:"uint256",name:"verificationGasLimit"},{type:"uint256",name:"preVerificationGas"},{type:"uint256",name:"maxFeePerGas"},{type:"uint256",name:"maxPriorityFeePerGas"},{type:"bytes",name:"paymasterAndData"},{type:"bytes",name:"signature"}]}],eg=[{type:"bytes32"}];async function ev(e){return(0,o.readContract)({contract:e.contract,method:["0xa6193531",eh,eg],params:[e.userOp]})}let ew=[{type:"tuple",name:"userOp",components:[{type:"address",name:"sender"},{type:"uint256",name:"nonce"},{type:"bytes",name:"initCode"},{type:"bytes",name:"callData"},{type:"bytes32",name:"accountGasLimits"},{type:"uint256",name:"preVerificationGas"},{type:"bytes32",name:"gasFees"},{type:"bytes",name:"paymasterAndData"},{type:"bytes",name:"signature"}]}],eb=[{type:"bytes32"}];async function eG(e){return(0,o.readContract)({contract:e.contract,method:["0x22cdde4c",ew,eb],params:[e.userOp]})}var ex=a(64524),eA=a(50369),eL=a(14644),eP=a(11078),eO=a(8796),eI=a(59455);let eC=e=>({sender:e.sender,nonce:e.nonce,initCode:e.factory?(0,ep.zo)([e.factory,e.factoryData||"0x"]):"0x",callData:e.callData,accountGasLimits:(0,ep.zo)([(0,eO.vk)((0,eI.NC)(e.verificationGasLimit),{size:16}),(0,eO.vk)((0,eI.NC)(e.callGasLimit),{size:16})]),preVerificationGas:e.preVerificationGas,gasFees:(0,ep.zo)([(0,eO.vk)((0,eI.NC)(e.maxPriorityFeePerGas),{size:16}),(0,eO.vk)((0,eI.NC)(e.maxFeePerGas),{size:16})]),paymasterAndData:e.paymaster?(0,ep.zo)([e.paymaster,(0,eO.vk)((0,eI.NC)(e.paymasterVerificationGasLimit||BigInt(0)),{size:16}),(0,eO.vk)((0,eI.NC)(e.paymasterPostOpGasLimit||BigInt(0)),{size:16}),e.paymasterData||"0x"]):"0x",signature:e.signature});async function eB(e){let{userOp:t,paymasterOverride:a,client:n,chain:r,entrypointAddress:i}=e;if(a)return a(t);let s=i??Q.Ex,o=(0,Q.bI)(s),c=(0,Q.Rg)(r,"v0.6"===o?"v1":"v2"),u=(0,K.NX)(n),d=await u(c,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({jsonrpc:"2.0",id:1,method:"pm_sponsorUserOperation",params:[ee(t),s]})}),l=await d.json();if(!d.ok){let e=l.error||d.statusText,t=l.code||"UNKNOWN";throw Error(`Paymaster error: ${e} 4Status: ${d.status} 5Code: ${t}`)}if(Q.eM&&console.debug("Paymaster result:",l),l.result)return"string"==typeof l.result?{paymasterAndData:l.result}:{paymasterAndData:l.result.paymasterAndData,verificationGasLimit:l.result.verificationGasLimit?(0,J.y_)(l.result.verificationGasLimit):void 0,preVerificationGas:l.result.preVerificationGas?(0,J.y_)(l.result.preVerificationGas):void 0,callGasLimit:l.result.callGasLimit?(0,J.y_)(l.result.callGasLimit):void 0,paymaster:l.result.paymaster,paymasterData:l.result.paymasterData,paymasterVerificationGasLimit:l.result.paymasterVerificationGasLimit?(0,J.y_)(l.result.paymasterVerificationGasLimit):void 0,paymasterPostOpGasLimit:l.result.paymasterPostOpGasLimit?(0,J.y_)(l.result.paymasterPostOpGasLimit):void 0};let p=l.error?.message||l.error||d.statusText||"unknown error";throw Error(`Paymaster error from ${c}: ${p}`)}async function eU(e){let t=e.timeoutMs||12e4,a=e.intervalMs||1e3,n=Date.now()+t;for(;Date.now()<n;){let t=await er(e);if(t)return t;await new Promise(e=>setTimeout(e,a))}throw Error("Timeout waiting for userOp to be mined")}async function eD(e){let{transaction:t,accountContract:a,factoryContract:n,adminAddress:r,overrides:i,sponsorGas:s}=e,o=t.chain,c=t.client,u={client:c,chain:o,entrypointAddress:i?.entrypointAddress},d=(0,Q.bI)(e.overrides?.entrypointAddress||Q.Ex),[l,p,y,m]=await Promise.all([(0,eL.isContractDeployed)(a),(0,eA.encode)(t),eE({executeTx:t,bundlerOptions:u,chain:o,client:c}),eV({accountContract:a,chain:o,client:c,entrypointAddress:i?.entrypointAddress,getNonceOverride:i?.getAccountNonce})]),{maxFeePerGas:f,maxPriorityFeePerGas:h}=y;return"v0.7"===d?e_({bundlerOptions:u,factoryContract:n,accountContract:a,adminAddress:r,sponsorGas:s,overrides:i,isDeployed:l,nonce:m,callData:p,maxFeePerGas:f,maxPriorityFeePerGas:h}):eN({bundlerOptions:u,factoryContract:n,accountContract:a,adminAddress:r,sponsorGas:s,overrides:i,isDeployed:l,nonce:m,callData:p,maxFeePerGas:f,maxPriorityFeePerGas:h})}async function eE(e){let{executeTx:t,bundlerOptions:a,chain:n,client:r}=e,{maxFeePerGas:i,maxPriorityFeePerGas:s}=t,o=(0,Q.bI)(a.entrypointAddress||Q.Ex),c=a?.bundlerUrl??(0,Q.Rg)(n,"v0.6"===o?"v1":"v2");if((0,K.Rm)(c)){let e=await en({options:a});i=e.maxFeePerGas,s=e.maxPriorityFeePerGas}else{let[e,t]=await Promise.all([(0,f.q)(i),(0,f.q)(s)]);if(e&&t)i=e,s=t;else{let a=await (0,ex.E)(r,n);s=t??a.maxPriorityFeePerGas??0n,i=e??a.maxFeePerGas??0n}}return{maxFeePerGas:i,maxPriorityFeePerGas:s}}async function e_(e){let{bundlerOptions:t,isDeployed:a,factoryContract:n,accountContract:r,adminAddress:i,sponsorGas:s,overrides:o,nonce:c,callData:u,maxFeePerGas:d,maxPriorityFeePerGas:l}=e,{chain:p,client:y}=t,m=a?void 0:n.address,f=a?"0x":await (0,eA.encode)(ed({factoryContract:n,adminAddress:i,accountSalt:o?.accountSalt,createAccountOverride:o?.createAccount})),h={sender:r.address,nonce:c,callData:u,maxFeePerGas:d,maxPriorityFeePerGas:l,callGasLimit:0n,verificationGasLimit:0n,preVerificationGas:0n,factory:m,factoryData:f,paymaster:void 0,paymasterData:"0x",paymasterVerificationGasLimit:0n,paymasterPostOpGasLimit:0n,signature:Q.Ld};if(s){let e=await eB({userOp:h,chain:p,client:y,entrypointAddress:o?.entrypointAddress,paymasterOverride:o?.paymaster});if(e.paymaster&&e.paymasterData&&(h.paymaster=e.paymaster,h.paymasterData=e.paymasterData),e.callGasLimit&&e.verificationGasLimit&&e.preVerificationGas&&e.paymasterPostOpGasLimit&&e.paymasterVerificationGasLimit)h.callGasLimit=e.callGasLimit,h.verificationGasLimit=e.verificationGasLimit,h.preVerificationGas=e.preVerificationGas,h.paymasterPostOpGasLimit=e.paymasterPostOpGasLimit,h.paymasterVerificationGasLimit=e.paymasterVerificationGasLimit;else{let a=await ea({userOp:h,options:t});h.callGasLimit=a.callGasLimit,h.verificationGasLimit=a.verificationGasLimit,h.preVerificationGas=a.preVerificationGas,h.paymasterPostOpGasLimit=e.paymasterPostOpGasLimit||0n,h.paymasterVerificationGasLimit=e.paymasterVerificationGasLimit||0n;let n=await eB({userOp:h,chain:p,client:y,entrypointAddress:o?.entrypointAddress,paymasterOverride:o?.paymaster});n.paymaster&&n.paymasterData&&(h.paymaster=n.paymaster,h.paymasterData=n.paymasterData)}}else{let e=await ea({userOp:h,options:t});h.callGasLimit=e.callGasLimit,h.verificationGasLimit=e.verificationGasLimit,h.preVerificationGas=e.preVerificationGas,h.paymasterPostOpGasLimit=e.paymasterPostOpGasLimit||0n,h.paymasterVerificationGasLimit=e.paymasterVerificationGasLimit||0n}return{...h,signature:"0x"}}async function eN(e){let{bundlerOptions:t,isDeployed:a,factoryContract:n,accountContract:r,adminAddress:i,sponsorGas:s,overrides:o,nonce:c,callData:u,maxFeePerGas:d,maxPriorityFeePerGas:l}=e,{chain:p,client:y}=t,m=a?"0x":await eM({factoryContract:n,adminAddress:i,accountSalt:o?.accountSalt,createAccountOverride:o?.createAccount}),f={sender:r.address,nonce:c,initCode:m,callData:u,maxFeePerGas:d,maxPriorityFeePerGas:l,callGasLimit:0n,verificationGasLimit:0n,preVerificationGas:0n,paymasterAndData:"0x",signature:Q.Ld};if(s){let e=await eB({userOp:f,chain:p,client:y,entrypointAddress:o?.entrypointAddress,paymasterOverride:o?.paymaster}),a="paymasterAndData"in e?e.paymasterAndData:"0x";if(a&&"0x"!==a&&(f.paymasterAndData=a),e.callGasLimit&&e.verificationGasLimit&&e.preVerificationGas)f.callGasLimit=e.callGasLimit,f.verificationGasLimit=e.verificationGasLimit,f.preVerificationGas=e.preVerificationGas;else{let e=await ea({userOp:f,options:t});if(f.callGasLimit=e.callGasLimit,f.verificationGasLimit=e.verificationGasLimit,f.preVerificationGas=e.preVerificationGas,a&&"0x"!==a){let e=await eB({userOp:f,chain:p,client:y,entrypointAddress:o?.entrypointAddress,paymasterOverride:o?.paymaster}),t="paymasterAndData"in e?e.paymasterAndData:"0x";t&&"0x"!==t&&(f.paymasterAndData=t)}}}else{let e=await ea({userOp:f,options:t});f.callGasLimit=e.callGasLimit,f.verificationGasLimit=e.verificationGasLimit,f.preVerificationGas=e.preVerificationGas}return{...f,signature:"0x"}}async function eT(e){let t;let{userOp:a,chain:n,entrypointAddress:r,adminAccount:i}=e;if("v0.7"===(0,Q.bI)(r||Q.Ex)){let i=eC(a);t=await eG({contract:(0,s.u)({address:r||Q.JK,chain:n,client:e.client}),userOp:i})}else t=await ev({contract:(0,s.u)({address:r||Q.Ex,chain:n,client:e.client}),userOp:a});if(i.signMessage){let e=await i.signMessage({message:{raw:(0,eP.nr)(t)}});return{...a,signature:e}}throw Error("signMessage not implemented in signingAccount")}async function eM(e){let{factoryContract:t,adminAddress:a,accountSalt:n,createAccountOverride:r}=e,i=ed({factoryContract:t,adminAddress:a,accountSalt:n,createAccountOverride:r});return(0,ep.zo)([t.address,await (0,eA.encode)(i)])}async function eV(e){let{accountContract:t,chain:a,client:n,entrypointAddress:r,getNonceOverride:i}=e;return i?i(t):ef({contract:(0,s.u)({address:r||Q.Ex,chain:a,client:n}),key:Z(),sender:t.address})}function e$(e){return"smart"===e.id}let ek=new WeakMap,eF=new WeakMap;async function eH(e,t,a){let{personalAccount:n,client:r,chain:o}=t;if(!n)throw Error("Personal wallet does not have an account");let c=a.factoryAddress??(0,Q.yc)(a.overrides?.entrypointAddress),u=o??a.chain,d="gasless"in a?a.gasless:a.sponsorGas;if(324===u.id||300===u.id||302===u.id||11124===u.id)return[function(e){let{creationOptions:t,connectionOptions:a,chain:n}=e,r={address:a.personalAccount.address,async sendTransaction(s){let o={data:s.data,to:s.to??void 0,value:s.value??0n,chain:(0,i.XY)(s.chainId),client:a.client},c=await (0,x.z)({account:r,transaction:o});if(e.sponsorGas){let e=await es({options:{client:a.client,chain:n,bundlerUrl:t.overrides?.bundlerUrl,entrypointAddress:t.overrides?.entrypointAddress},transaction:c});c={...c,...e}}let u=await (0,x.P)({account:r,chainId:n.id,eip712Transaction:c});return{transactionHash:(await eo({options:{client:a.client,chain:n,bundlerUrl:t.overrides?.bundlerUrl,entrypointAddress:t.overrides?.entrypointAddress},transaction:c,signedTransaction:u})).transactionHash,client:a.client,chain:n}},signMessage:async({message:e})=>a.personalAccount.signMessage({message:e}),async signTypedData(e){let t=(0,P.t)(e);return a.personalAccount.signTypedData(t)},onTransactionRequested:async e=>a.personalAccount.onTransactionRequested?.(e)};return r}({creationOptions:a,connectionOptions:t,chain:u,sponsorGas:d}),u];
5let l=(0,s.u)({client:r,address:c,chain:u}),p=await eu({factoryContract:l,adminAddress:n.address,predictAddressOverride:a.overrides?.predictAddress,accountSalt:a.overrides?.accountSalt,accountAddress:a.overrides?.accountAddress}).then(e=>e).catch(e=>{throw Error(`Failed to get account address with factory contract ${l.address} on chain ID ${u.id}: ${e?.message||"unknown error"}`,{cause:e})}),y=(0,s.u)({client:r,address:p,chain:u}),m=await ez({...a,chain:u,sponsorGas:d,personalAccount:n,accountContract:y,factoryContract:l,client:r});return ek.set(n,e),eF.set(e,n),[m,u]}async function eS(e){let t=eF.get(e);t&&(ek.delete(t),eF.delete(e))}async function ez(e){let{accountContract:t}=e,r={address:(0,A.Kn)(t.address),async sendTransaction(a){let n;let r=e.overrides?.erc20Paymaster;if(r){await ej({accountContract:t,erc20Paymaster:r,options:e});let a=async()=>({paymasterAndData:(0,L.concatHex)([r.address,r?.token]),paymaster:r.address,paymasterData:"0x"});n=e.overrides?.paymaster||a}return eq({executeTx:el({accountContract:t,transaction:a,executeOverride:e.overrides?.execute}),options:{...e,overrides:{...e.overrides,paymaster:n}}})},sendBatchTransaction:async a=>eq({executeTx:function(e){let{accountContract:t,transactions:a,executeBatchOverride:n}=e;return n?n(t,a):v({contract:t,method:"function executeBatch(address[], uint256[], bytes[])",params:[a.map(e=>e.to||""),a.map(e=>e.value||0n),a.map(e=>e.data||"0x")]})}({accountContract:t,transactions:a,executeBatchOverride:e.overrides?.executeBatch}),options:e}),async signMessage({message:n}){let i;let[{isContractDeployed:s},{readContract:o},{encodeAbiParameters:c},{hashMessage:u},{checkContractWalletSignature:d}]=await Promise.all([Promise.resolve().then(a.bind(a,14644)),Promise.resolve().then(a.bind(a,90701)),Promise.resolve().then(a.bind(a,16066)),a.e(93325).then(a.bind(a,93325)),a.e(7854).then(a.bind(a,7854))]);await s(t)||await eR({options:e,account:r,accountContract:t});let l=u(n),p=!1;try{await o({contract:t,method:"function getMessageHash(bytes32 _hash) public view returns (bytes32)",params:[l]}),p=!0}catch{}
5if(p){let a=c([{type:"bytes32"}],[l]);i=await e.personalAccount.signTypedData({domain:{name:"Account",version:"1",chainId:e.chain.id,verifyingContract:t.address},primaryType:"AccountMessage",types:{AccountMessage:[{name:"message",type:"bytes"}]},message:{message:a}})}else i=await e.personalAccount.signMessage({message:n});if(await d({contract:t,message:n,signature:i}))return i;throw Error("Unable to verify signature on smart account, please make sure the smart account is deployed and the signature is valid.")},async signTypedData(i){let s;let o=(0,P.t)(i),[{isContractDeployed:c},{readContract:u},{encodeAbiParameters:d},{checkContractWalletSignedTypedData:l}]=await Promise.all([Promise.resolve().then(a.bind(a,14644)),Promise.resolve().then(a.bind(a,90701)),Promise.resolve().then(a.bind(a,16066)),a.e(97502).then(a.bind(a,97502))]);if(o.domain?.verifyingContract?.toLowerCase()===t.address?.toLowerCase())return e.personalAccount.signTypedData(o);await c(t)||await eR({options:e,account:r,accountContract:t});let p=(0,n.Jv)(o),y=!1;try{await u({contract:t,method:"function getMessageHash(bytes32 _hash) public view returns (bytes32)",params:[p]}),y=!0}catch{}if(y){let a=d([{type:"bytes32"}],[p]);s=await e.personalAccount.signTypedData({domain:{name:"Account",version:"1",chainId:e.chain.id,verifyingContract:t.address},primaryType:"AccountMessage",types:{AccountMessage:[{name:"message",type:"bytes"}]},message:{message:a}})}else s=await e.personalAccount.signTypedData(o);if(await l({contract:t,data:o,signature:s}))return s;throw Error("Unable to verify signature on smart account, please make sure the smart account is deployed and the signature is valid.")},onTransactionRequested:async t=>e.personalAccount.onTransactionRequested?.(t)};return r}async function ej(e){var t;let{accountContract:n,erc20Paymaster:i,options:o}=e,c=i.token,u=(0,s.u)({address:c,chain:n.chain,client:n.client});if(await d({contract:u,owner:n.address,spender:i.address})>0n)return;let p=function(e){var t;let a;let n=(t=async()=>"asyncParams"in e?await e.asyncParams():e,()=>(a||(a=t()),a));return v({contract:e.contract,method:["0x095ea7b3",w,b],params:async()=>{let e=await n();return[e.spender,e.value]},value:async()=>(await n()).overrides?.value,accessList:async()=>(await n()).overrides?.accessList,gas:async()=>(await n()).overrides?.gas,gasPrice:async()=>(await n()).overrides?.gasPrice,maxFeePerGas:async()=>(await n()).overrides?.maxFeePerGas,maxPriorityFeePerGas:async()=>(await n()).overrides?.maxPriorityFeePerGas,nonce:async()=>(await n()).overrides?.nonce,extraGas:async()=>(await n()).overrides?.extraGas,erc20Value:async()=>(await n()).overrides?.erc20Value})}({contract:(t={contract:u,spender:i.address,amountWei:r.$H-1n}).contract,asyncParams:async()=>{let e;if("amount"in t){let{decimals:n}=await a.e(99982).then(a.bind(a,99982)),r=await n(t).catch(()=>18);e=(0,l.xk)(t.amount.toString(),r)}else e=t.amountWei;return{spender:t.spender,value:e,overrides:{erc20Value:{amountWei:e,tokenAddress:t.contract.address}}}}}),y=await (0,G.n)({transaction:p,from:n.address}),m=el({accountContract:n,transaction:y,executeOverride:o.overrides?.execute});await eq({executeTx:m,options:{...o,overrides:{...o.overrides,erc20Paymaster:void 0}}})}async function eR(e){let{options:t,account:n,accountContract:r}=e,[{sendTransaction:i},{prepareTransaction:s}]=await Promise.all([a.e(98125).then(a.bind(a,98125)),Promise.resolve().then(a.bind(a,62343))]),o=s({client:t.client,chain:t.chain,to:r.address,value:0n,gas:50000n});return await i({transaction:o,account:n})}async function eq(e){let{executeTx:t,options:a}=e,n=await eD({transaction:t,factoryContract:a.factoryContract,accountContract:a.accountContract,adminAddress:a.personalAccount.address,sponsorGas:a.sponsorGas,overrides:a.overrides}),r=await eT({client:a.client,chain:a.chain,adminAccount:a.personalAccount,entrypointAddress:a.overrides?.entrypointAddress,userOp:n}),i={chain:a.chain,client:a.client,bundlerUrl:a.overrides?.bundlerUrl,entrypointAddress:a.overrides?.entrypointAddress},s=await et({options:i,userOp:r}),o=await eU({...a,userOpHash:s});return{client:a.client,chain:a.chain,transactionHash:o.transactionHash}}},75018:function(e,t,a){a.d(t,{$H:function(){return r},rU:function(){return n}});let n=2n**16n-1n,r=2n**96n-1n},42727:function(e,t,a){a.d(t,{Jv:function(){return c}});var n=a(30056),r=a(89256),i=a(59455),s=a(4529),o=a(15209);function c(e){let{domain:t={},message:a,primaryType:n}=e,i={EIP712Domain:(0,o.cj)({domain:t}),...e.types};(0,o.iC)({domain:t,message:a,primaryType:n,types:i});let c=["0x1901"];return t&&c.push(function({domain:e,types:t}){return u({data:e,primaryType:"EIP712Domain",types:t})}({domain:t,types:i})),"EIP712Domain"!==n&&c.push(u({data:a,primaryType:n,types:i})),(0,s.w)((0,r.zo)(c))}function u({data:e,primaryType:t,types:a}){let r=function e({data:t,primaryType:a,types:r}){let o=[{type:"bytes32"}],c=[function({primaryType:e,types:t}){let a=(0,i.NC)(function({primaryType:e,types:t}){let a="",n=function e({primaryType:t,types:a},n=new Set){let r=t.match(/^\w*/u),i=r?.[0];if(n.has(i)||void 0===a[i])return n;for(let t of(n.add(i),a[i]))e({primaryType:t.type,types:a},n);return n}({primaryType:e,types:t});for(let r of(n.delete(e),[e,...Array.from(n).sort()]))a+=`${r}(${t[r].map(({name:e,type:t})=>`${t} ${e}`).join(",")})`;return a}({primaryType:e,types:t}));return(0,s.w)(a)}({primaryType:a,types:r})];for(let u of r[a]){let[a,d]=function t({types:a,name:r,type:o,value:c}){if(void 0!==a[o])return[{type:"bytes32"},(0,s.w)(e({data:c,primaryType:o,types:a}))];if("bytes"===o){let e=c.length%2?"0":"";return c=`0x${e+c.slice(2)}`,[{type:"bytes32"},(0,s.w)(c)]}if("string"===o)return[{type:"bytes32"},(0,s.w)((0,i.NC)(c))];if(o.lastIndexOf("]")===o.length-1){let e=o.slice(0,o.lastIndexOf("[")),i=c.map(n=>t({name:r,type:e,types:a,value:n}));return[{type:"bytes32"},(0,s.w)((0,n.E)(i.map(([e])=>e),i.map(([,e])=>e)))]}return[{type:o},c]}
5({types:r,name:u.name,type:u.type,value:t[u.name]});o.push(a),c.push(d)}return(0,n.E)(o,c)}({data:e,primaryType:t,types:a});return(0,s.w)(r)}}}]);
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.