{"snapId":"npm:@metamask/ens-resolver-snap","manifest":{"version":"1.2.0","description":"A Snap used for ENS name resolution","proposedName":"Ethereum Name Service resolver","repository":{"type":"git","url":"https://github.com/MetaMask/ens-resolver-snap.git"},"source":{"shasum":"SZ90B7Jf3BDtVGwZDHCkEqr/18m+g3QKYOBAHEf0fc4=","location":{"npm":{"filePath":"dist/bundle.js","iconPath":"images/icon.svg","packageName":"@metamask/ens-resolver-snap","registry":"https://registry.npmjs.org/"}}},"initialPermissions":{"endowment:name-lookup":{},"endowment:network-access":{},"endowment:ethereum-provider":{}},"platformVersion":"10.0.0","manifestVersion":"0.1"},"files":[{"path":"images/icon.svg","value":"<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" height=\"3rem\">\n  <path fill=\"url(#ENSWithGradient_svg__a)\"\n        d=\"M4.049 5.663a2.9 2.9 0 0 1 .942-1.038L11.611 0 4.828 11.222s-.592-1.002-.823-1.51a4.8 4.8 0 0 1 .044-4.05m-2.732 7.74a7.55 7.55 0 0 0 2.963 5.489L11.602 24s-4.58-6.606-8.445-13.178a6.6 6.6 0 0 1-.776-2.242 3.6 3.6 0 0 1 0-1.076c-.101.187-.297.57-.297.57a8.7 8.7 0 0 0-.79 2.534c-.077.93-.07 1.867.023 2.796m18.668.89c-.237-.507-.824-1.509-.824-1.509L12.391 24l6.62-4.622c.394-.263.717-.62.942-1.038a4.8 4.8 0 0 0 .044-4.05zm2.688-3.694a7.55 7.55 0 0 0-2.963-5.488L12.4 0s4.577 6.606 8.445 13.179a6.6 6.6 0 0 1 .773 2.24c.054.358.054.72 0 1.077.1-.187.296-.57.296-.57.392-.799.659-1.654.791-2.534.078-.93.07-1.866-.02-2.796z\"/>\n  <defs>\n    <linearGradient id=\"ENSWithGradient_svg__a\" x1=\"15.574\" x2=\"-8.982\" y1=\"26.845\" y2=\"-11.906\"\n                    gradientUnits=\"userSpaceOnUse\">\n      <stop stop-color=\"#44BCF0\"/>\n      <stop offset=\"0.428\" stop-color=\"#628BF3\"/>\n      <stop offset=\"1\" stop-color=\"#A099FF\"/>\n    </linearGradient>\n  </defs>\n</svg>\n"},{"path":"dist/bundle.js","value":"(()=>{var e={211:(e,t,n)=>{\"use strict\";n.d(t,{A7:()=>i,BG:()=>s,Fo:()=>h,K0:()=>c,Oh:()=>u,RM:()=>g,jj:()=>a,k5:()=>l,lN:()=>b,lY:()=>d,uC:()=>p,vW:()=>f});var r=n(9670),o=n(1344);class i extends o.C{constructor({cause:e,message:t}={}){const n=t?.replace(\"execution reverted: \",\"\")?.replace(\"execution reverted\",\"\");super(`Execution reverted ${n?`with reason: ${n}`:\"for an unknown reason\"}.`,{cause:e,name:\"ExecutionRevertedError\"})}}Object.defineProperty(i,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(i,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted|gas required exceeds allowance/});class s extends o.C{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\\`maxFeePerGas\\`${t?` = ${(0,r.Q)(t)} gwei`:\"\"}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:e,name:\"FeeCapTooHighError\"})}}Object.defineProperty(s,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\\^256-1|fee cap higher than 2\\^256-1/});class a extends o.C{constructor({cause:e,maxFeePerGas:t}={}){super(`The fee cap (\\`maxFeePerGas\\`${t?` = ${(0,r.Q)(t)}`:\"\"} gwei) cannot be lower than the block base fee.`,{cause:e,name:\"FeeCapTooLowError\"})}}Object.defineProperty(a,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas less than block base fee|fee cap less than block base fee|transaction is outdated/});class c extends o.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:\"\"}is higher than the next one expected.`,{cause:e,name:\"NonceTooHighError\"})}}Object.defineProperty(c,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});class u extends o.C{constructor({cause:e,nonce:t}={}){super([`Nonce provided for the transaction ${t?`(${t}) `:\"\"}is lower than the current nonce of the account.`,\"Try increasing the nonce or find the latest nonce with `getTransactionCount`.\"].join(\"\\n\"),{cause:e,name:\"NonceTooLowError\"})}}Object.defineProperty(u,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});class f extends o.C{constructor({cause:e,nonce:t}={}){super(`Nonce provided for the transaction ${t?`(${t}) `:\"\"}exceeds the maximum allowed nonce.`,{cause:e,name:\"NonceMaxValueError\"})}}Object.defineProperty(f,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});class l extends o.C{constructor({cause:e}={}){super([\"The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account.\"].join(\"\\n\"),{cause:e,metaMessages:[\"This error could arise when the account does not have enough funds to:\",\" - pay for the total gas fee,\",\" - pay for the value to send.\",\" \",\"The cost of the transaction is calculated as `gas * gas fee + value`, where:\",\" - `gas` is the amount of gas needed for transaction to execute,\",\" - `gas fee` is the gas fee,\",\" - `value` is the amount of ether to send to the recipient.\"],name:\"InsufficientFundsError\"})}}Object.defineProperty(l,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});class d extends o.C{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:\"\"}provided for the transaction exceeds the limit allowed for the block.`,{cause:e,name:\"IntrinsicGasTooHighError\"})}}Object.defineProperty(d,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});class h extends o.C{constructor({cause:e,gas:t}={}){super(`The amount of gas ${t?`(${t}) `:\"\"}provided for the transaction is too low.`,{cause:e,name:\"IntrinsicGasTooLowError\"})}}Object.defineProperty(h,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});class p extends o.C{constructor({cause:e}){super(\"The transaction type is not supported for this chain.\",{cause:e,name:\"TransactionTypeNotSupportedError\"})}}Object.defineProperty(p,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});class b extends o.C{constructor({cause:e,maxPriorityFeePerGas:t,maxFeePerGas:n}={}){super([`The provided tip (\\`maxPriorityFeePerGas\\`${t?` = ${(0,r.Q)(t)} gwei`:\"\"}) cannot be higher than the fee cap (\\`maxFeePerGas\\`${n?` = ${(0,r.Q)(n)} gwei`:\"\"}).`].join(\"\\n\"),{cause:e,name:\"TipAboveFeeCapError\"})}}Object.defineProperty(b,\"nodeMessage\",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});class g extends o.C{constructor({cause:e}){super(`An error occurred while executing: ${e?.shortMessage}`,{cause:e,name:\"UnknownNodeError\"})}}},251:(e,t)=>{t.read=function(e,t,n,r,o){var i,s,a=8*o-r-1,c=(1<<a)-1,u=c>>1,f=-7,l=n?o-1:0,d=n?-1:1,h=e[t+l];for(l+=d,i=h&(1<<-f)-1,h>>=-f,f+=a;f>0;i=256*i+e[t+l],l+=d,f-=8);for(s=i&(1<<-f)-1,i>>=-f,f+=r;f>0;s=256*s+e[t+l],l+=d,f-=8);if(0===i)i=1-u;else{if(i===c)return s?NaN:1/0*(h?-1:1);s+=Math.pow(2,r),i-=u}return(h?-1:1)*s*Math.pow(2,i-r)},t.write=function(e,t,n,r,o,i){var s,a,c,u=8*i-o-1,f=(1<<u)-1,l=f>>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,h=r?0:i-1,p=r?1:-1,b=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(a=isNaN(t)?1:0,s=f):(s=Math.floor(Math.log(t)/Math.LN2),t*(c=Math.pow(2,-s))<1&&(s--,c*=2),(t+=s+l>=1?d/c:d*Math.pow(2,1-l))*c>=2&&(s++,c/=2),s+l>=f?(a=0,s=f):s+l>=1?(a=(t*c-1)*Math.pow(2,o),s+=l):(a=t*Math.pow(2,l-1)*Math.pow(2,o),s=0));o>=8;e[n+h]=255&a,h+=p,a/=256,o-=8);for(s=s<<o|a,u+=o;u>0;e[n+h]=255&s,h+=p,s/=256,u-=8);e[n+h-p]|=128*b}},332:(e,t,n)=>{\"use strict\";n.d(t,{c:()=>c});var r=n(3033);const o=2n**256n-1n;var i=n(4306),s=n(211),a=n(9873);function c(e){const{account:t,maxFeePerGas:n,maxPriorityFeePerGas:c,to:u}=e,f=t?(0,r.J)(t):void 0;if(f&&!(0,a.P)(f.address))throw new i.M({address:f.address});if(u&&!(0,a.P)(u))throw new i.M({address:u});if(n&&n>o)throw new s.BG({maxFeePerGas:n});if(c&&n&&c>n)throw new s.lN({maxFeePerGas:n,maxPriorityFeePerGas:c})}},504:(e,t,n)=>{\"use strict\";n.d(t,{k:()=>d});var r=n(4706),o=n(2040);const i=e=>(0,o.S)((0,r.ZJ)(e));var s=n(5276);const a=/^tuple(?<array>(\\[(\\d*)\\])*)$/;function c(e){let t=e.type;if(a.test(e.type)&&\"components\"in e){t=\"(\";const n=e.components.length;for(let r=0;r<n;r++){t+=c(e.components[r]),r<n-1&&(t+=\", \")}const r=(0,s.Yv)(a,e.type);return t+=`)${r?.array||\"\"}`,c({...e,type:t})}return\"indexed\"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function u(e){let t=\"\";const n=e.length;for(let r=0;r<n;r++){t+=c(e[r]),r!==n-1&&(t+=\", \")}return t}var f=n(1344);const l=e=>{var t;return function(e){let t=!0,n=\"\",r=0,o=\"\",i=!1;for(let s=0;s<e.length;s++){const a=e[s];if([\"(\",\")\",\",\"].includes(a)&&(t=!0),\"(\"===a&&r++,\")\"===a&&r--,t)if(0!==r)\" \"!==a?(o+=a,n+=a):\",\"!==e[s-1]&&\",\"!==n&&\",(\"!==n&&(n=\"\",t=!1);else if(\" \"===a&&[\"event\",\"function\",\"\"].includes(o))o=\"\";else if(o+=a,\")\"===a){i=!0;break}}if(!i)throw new f.C(\"Unable to normalize signature.\");return o}(\"string\"==typeof e?e:\"function\"===(t=e).type?`function ${t.name}(${u(t.inputs)})${t.stateMutability&&\"nonpayable\"!==t.stateMutability?` ${t.stateMutability}`:\"\"}${t.outputs?.length?` returns (${u(t.outputs)})`:\"\"}`:\"event\"===t.type?`event ${t.name}(${u(t.inputs)})`:\"error\"===t.type?`error ${t.name}(${u(t.inputs)})`:\"constructor\"===t.type?`constructor(${u(t.inputs)})${\"payable\"===t.stateMutability?\" payable\":\"\"}`:\"fallback\"===t.type?\"fallback() external\"+(\"payable\"===t.stateMutability?\" payable\":\"\"):\"receive() external payable\")};function d(e){return t=l(e),i(t);var t}},586:(e,t,n)=>{\"use strict\";n.d(t,{db:()=>i,eV:()=>o});var r=n(6440);function o(e,{dir:t,size:n=32}={}){return\"string\"==typeof e?i(e,{dir:t,size:n}):function(e,{dir:t,size:n=32}={}){if(null===n)return e;if(e.length>n)throw new r.Fl({size:e.length,targetSize:n,type:\"bytes\"});const o=new Uint8Array(n);for(let r=0;r<n;r++){const i=\"right\"===t;o[i?r:n-r-1]=e[i?r:e.length-r-1]}return o}(e,{dir:t,size:n})}function i(e,{dir:t,size:n=32}={}){if(null===n)return e;const o=e.replace(\"0x\",\"\");if(o.length>2*n)throw new r.Fl({size:Math.ceil(o.length/2),targetSize:n,type:\"hex\"});return`0x${o[\"right\"===t?\"padEnd\":\"padStart\"](2*n,\"0\")}`}},638:(e,t,n)=>{\"use strict\";n.d(t,{eL:()=>r,sz:()=>o});const r={gwei:9,wei:18},o={ether:-9,wei:9}},1163:(e,t,n)=>{\"use strict\";n.d(t,{I:()=>o,R:()=>r});const r=e=>e,o=e=>e},1344:(e,t,n)=>{\"use strict\";n.d(t,{C:()=>i});const r=\"2.48.4\";let o={getDocsUrl:({docsBaseUrl:e,docsPath:t=\"\",docsSlug:n})=>t?`${e??\"https://viem.sh\"}${t}${n?`#${n}`:\"\"}`:void 0,version:`viem@${r}`};class i extends Error{constructor(e,t={}){const n=t.cause instanceof i?t.cause.details:t.cause?.message?t.cause.message:t.details,s=t.cause instanceof i&&t.cause.docsPath||t.docsPath,a=o.getDocsUrl?.({...t,docsPath:s});super([e||\"An error occurred.\",\"\",...t.metaMessages?[...t.metaMessages,\"\"]:[],...a?[`Docs: ${a}`]:[],...n?[`Details: ${n}`]:[],...o.version?[`Version: ${o.version}`]:[]].join(\"\\n\"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),this.details=n,this.docsPath=s,this.metaMessages=t.metaMessages,this.name=t.name??this.name,this.shortMessage=e,this.version=r}walk(e){return s(this,e)}}function s(e,t){return t?.(e)?e:e&&\"object\"==typeof e&&\"cause\"in e&&void 0!==e.cause?s(e.cause,t):t?null:e}},1717:(e,t,n)=>{\"use strict\";n.d(t,{J:()=>i});var r=n(1999);function o(e){return{address:e.address,amount:r.oB(e.amount),index:r.oB(e.index),validatorIndex:r.oB(e.validatorIndex)}}function i(e){return{...\"bigint\"==typeof e.baseFeePerGas&&{baseFeePerGas:r.oB(e.baseFeePerGas)},...\"bigint\"==typeof e.blobBaseFee&&{blobBaseFee:r.oB(e.blobBaseFee)},...\"string\"==typeof e.feeRecipient&&{feeRecipient:e.feeRecipient},...\"bigint\"==typeof e.gasLimit&&{gasLimit:r.oB(e.gasLimit)},...\"bigint\"==typeof e.number&&{number:r.oB(e.number)},...\"bigint\"==typeof e.prevRandao&&{prevRandao:r.oB(e.prevRandao)},...\"bigint\"==typeof e.time&&{time:r.oB(e.time)},...e.withdrawals&&{withdrawals:e.withdrawals.map(o)}}}},1772:(e,t,n)=>{\"use strict\";n.d(t,{l:()=>i});var r=n(1344),o=n(211);function i(e,t){const n=(e.details||\"\").toLowerCase(),i=e instanceof r.C?e.walk(e=>e?.code===o.A7.code):e;return i instanceof r.C?new o.A7({cause:e,message:i.details}):o.A7.nodeMessage.test(n)?new o.A7({cause:e,message:e.details}):o.BG.nodeMessage.test(n)?new o.BG({cause:e,maxFeePerGas:t?.maxFeePerGas}):o.jj.nodeMessage.test(n)?new o.jj({cause:e,maxFeePerGas:t?.maxFeePerGas}):o.K0.nodeMessage.test(n)?new o.K0({cause:e,nonce:t?.nonce}):o.Oh.nodeMessage.test(n)?new o.Oh({cause:e,nonce:t?.nonce}):o.vW.nodeMessage.test(n)?new o.vW({cause:e,nonce:t?.nonce}):o.k5.nodeMessage.test(n)?new o.k5({cause:e}):o.lY.nodeMessage.test(n)?new o.lY({cause:e,gas:t?.gas}):o.Fo.nodeMessage.test(n)?new o.Fo({cause:e,gas:t?.gas}):o.uC.nodeMessage.test(n)?new o.uC({cause:e}):o.lN.nodeMessage.test(n)?new o.lN({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new o.RM({cause:e})}},1965:(e,t,n)=>{\"use strict\";n.d(t,{n:()=>m});var r=n(7372),o=n(4569),i=n(5834),s=n(5182),a=n(3577),c=n(8583),u=n(4317),f=n(6675),l=n(4192);function d(e,t={}){void 0!==t.size&&(0,f.Sl)(e,{size:t.size});const n=(0,l.My)(e,t);return(0,f.uU)(n,t)}function h(e,t={}){let n=e;if(void 0!==t.size&&((0,f.Sl)(n,{size:t.size}),n=(0,c.B)(n)),n.length>1||n[0]>1)throw new u.xO(n);return Boolean(n[0])}function p(e,t={}){void 0!==t.size&&(0,f.Sl)(e,{size:t.size});const n=(0,l.My)(e,t);return(0,f.ME)(n,t)}function b(e,t={}){let n=e;return void 0!==t.size&&((0,f.Sl)(n,{size:t.size}),n=(0,c.B)(n,{dir:\"right\"})),(new TextDecoder).decode(n)}var g=n(4706),y=n(4531);function m(e,t){const n=\"string\"==typeof t?(0,g.aT)(t):t,o=(0,i.l)(n);if(0===(0,s.E)(n)&&e.length>0)throw new r.O;if((0,s.E)(t)&&(0,s.E)(t)<32)throw new r.Iy({data:\"string\"==typeof t?t:(0,l.My)(t),params:e,size:(0,s.E)(t)});let a=0;const c=[];for(let t=0;t<e.length;++t){const n=e[t];o.setPosition(a);const[r,i]=w(o,n,{staticPosition:0});a+=i,c.push(r)}return c}function w(e,t,{staticPosition:n}){const i=(0,y.k)(t.type);if(i){const[r,o]=i;return function(e,t,{length:n,staticPosition:r}){if(!n){const n=r+p(e.readBytes(A)),o=n+v;e.setPosition(n);const i=p(e.readBytes(v)),s=x(t);let a=0;const c=[];for(let n=0;n<i;++n){e.setPosition(o+(s?32*n:a));const[r,i]=w(e,t,{staticPosition:o});a+=i,c.push(r)}return e.setPosition(r+32),[c,32]}if(x(t)){const o=r+p(e.readBytes(A)),i=[];for(let r=0;r<n;++r){e.setPosition(o+32*r);const[n]=w(e,t,{staticPosition:o});i.push(n)}return e.setPosition(r+32),[i,32]}let o=0;const i=[];for(let s=0;s<n;++s){const[n,s]=w(e,t,{staticPosition:r+o});o+=s,i.push(n)}return[i,o]}(e,{...t,type:o},{length:r,staticPosition:n})}if(\"tuple\"===t.type)return function(e,t,{staticPosition:n}){const r=0===t.components.length||t.components.some(({name:e})=>!e),o=r?[]:{};let i=0;if(x(t)){const s=n+p(e.readBytes(A));for(let n=0;n<t.components.length;++n){const a=t.components[n];e.setPosition(s+i);const[c,u]=w(e,a,{staticPosition:s});i+=u,o[r?n:a?.name]=c}return e.setPosition(n+32),[o,32]}for(let s=0;s<t.components.length;++s){const a=t.components[s],[c,u]=w(e,a,{staticPosition:n});o[r?s:a?.name]=c,i+=u}return[o,i]}(e,t,{staticPosition:n});if(\"address\"===t.type)return function(e){const t=e.readBytes(32);return[(0,o.o)((0,l.My)((0,a.A1)(t,-20))),32]}(e);if(\"bool\"===t.type)return function(e){return[h(e.readBytes(32),{size:32}),32]}(e);if(t.type.startsWith(\"bytes\"))return function(e,t,{staticPosition:n}){const[r,o]=t.type.split(\"bytes\");if(!o){const t=p(e.readBytes(32));e.setPosition(n+t);const r=p(e.readBytes(32));if(0===r)return e.setPosition(n+32),[\"0x\",32];const o=e.readBytes(r);return e.setPosition(n+32),[(0,l.My)(o),32]}const i=(0,l.My)(e.readBytes(Number.parseInt(o,10),32));return[i,32]}(e,t,{staticPosition:n});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return function(e,t){const n=t.type.startsWith(\"int\"),r=Number.parseInt(t.type.split(\"int\")[1]||\"256\",10),o=e.readBytes(32);return[r>48?d(o,{signed:n}):p(o,{signed:n}),32]}(e,t);if(\"string\"===t.type)return function(e,{staticPosition:t}){const n=p(e.readBytes(32)),r=t+n;e.setPosition(r);const o=p(e.readBytes(32));if(0===o)return e.setPosition(t+32),[\"\",32];const i=e.readBytes(o,32),s=b((0,c.B)(i));return e.setPosition(t+32),[s,32]}(e,{staticPosition:n});throw new r.j(t.type,{docsPath:\"/docs/contract/decodeAbiParameters\"})}const v=32,A=32;function x(e){const{type:t}=e;if(\"string\"===t)return!0;if(\"bytes\"===t)return!0;if(t.endsWith(\"[]\"))return!0;if(\"tuple\"===t)return e.components?.some(x);const n=(0,y.k)(e.type);return!(!n||!x({...e,type:n[1]}))}},1999:(e,t,n)=>{\"use strict\";n.d(t,{Dg:()=>m,Ej:()=>y,Fl:()=>I,HT:()=>u,Ho:()=>p,M7:()=>b,Ro:()=>w,Ty:()=>A,di:()=>g,ii:()=>P,oB:()=>d,sH:()=>h,tf:()=>v,u:()=>B,uK:()=>l,xW:()=>c,xb:()=>f});var r=n(7521),o=n(6475),i=n(3702);const s=new TextEncoder,a=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function c(...e){return`0x${e.reduce((e,t)=>e+t.replace(\"0x\",\"\"),\"\")}`}function u(e){return e instanceof Uint8Array?l(e):Array.isArray(e)?l(new Uint8Array(e)):e}function f(e,t={}){const n=`0x${Number(e)}`;return\"number\"==typeof t.size?(o.Sl(n,t.size),p(n,t.size)):n}function l(e,t={}){let n=\"\";for(let t=0;t<e.length;t++)n+=a[e[t]];const r=`0x${n}`;return\"number\"==typeof t.size?(o.Sl(r,t.size),b(r,t.size)):r}function d(e,t={}){const{signed:n,size:r}=t,o=BigInt(e);let i;r?i=n?(1n<<8n*BigInt(r)-1n)-1n:2n**(8n*BigInt(r))-1n:\"number\"==typeof e&&(i=BigInt(Number.MAX_SAFE_INTEGER));const s=\"bigint\"==typeof i&&n?-i-1n:0;if(i&&o>i||o<s){const t=\"bigint\"==typeof e?\"n\":\"\";throw new A({max:i?`${i}${t}`:void 0,min:`${s}${t}`,signed:n,size:r,value:`${e}${t}`})}const a=`0x${(n&&o<0?BigInt.asUintN(8*r,BigInt(o)):o).toString(16)}`;return r?p(a,r):a}function h(e,t={}){return l(s.encode(e),t)}function p(e,t){return o.eV(e,{dir:\"left\",size:t})}function b(e,t){return o.eV(e,{dir:\"right\",size:t})}function g(e,t,n,r={}){const{strict:i}=r;o.kK(e,t);const s=`0x${e.replace(\"0x\",\"\").slice(2*(t??0),2*(n??e.length))}`;return i&&o.X(s,t,n),s}function y(e){return Math.ceil((e.length-2)/2)}function m(e,t={}){const{signed:n}=t;t.size&&o.Sl(e,t.size);const r=BigInt(e);if(!n)return r;const i=(e.length-2)/2,s=(1n<<8n*BigInt(i))-1n;return r<=s>>1n?r:r-s-1n}function w(e,t={}){const{signed:n,size:r}=t;return Number(n||r?m(e,t):e)}function v(e,t={}){const{strict:n=!1}=t;try{return function(e,t={}){const{strict:n=!1}=t;if(!e)throw new x(e);if(\"string\"!=typeof e)throw new x(e);if(n&&!/^0x[0-9a-fA-F]*$/.test(e))throw new E(e);if(!e.startsWith(\"0x\"))throw new E(e)}(e,{strict:n}),!0}catch{return!1}}class A extends r.C{constructor({max:e,min:t,signed:n,size:r,value:o}){super(`Number \\`${o}\\` is not in safe${r?` ${8*r}-bit`:\"\"}${n?\" signed\":\" unsigned\"} integer range ${e?`(\\`${t}\\` to \\`${e}\\`)`:`(above \\`${t}\\`)`}`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.IntegerOutOfRangeError\"})}}r.C;class x extends r.C{constructor(e){super(`Value \\`${\"object\"==typeof e?i.As(e):e}\\` of type \\`${typeof e}\\` is an invalid hex type.`,{metaMessages:['Hex types must be represented as `\"0x${string}\"`.']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexTypeError\"})}}class E extends r.C{constructor(e){super(`Value \\`${e}\\` is an invalid hex value.`,{metaMessages:['Hex values must start with `\"0x\"` and contain only hexadecimal characters (0-9, a-f, A-F).']}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.InvalidHexValueError\"})}}r.C;class B extends r.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \\`${t}\\` bytes. Given size: \\`${e}\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeOverflowError\"})}}class P extends r.C{constructor({offset:e,position:t,size:n}){super(`Slice ${\"start\"===t?\"starting\":\"ending\"} at offset \\`${e}\\` is out-of-bounds (size: \\`${n}\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SliceOffsetOutOfBoundsError\"})}}class I extends r.C{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\\`${e}\\`) exceeds padding size (\\`${t}\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Hex.SizeExceedsPaddingSizeError\"})}}},2040:(e,t,n)=>{\"use strict\";n.d(t,{S:()=>a});var r=n(7238),o=n(6394),i=n(4706),s=n(4192);function a(e,t){const n=t||\"hex\",a=(0,r.lY)((0,o.q)(e,{strict:!1})?(0,i.ZJ)(e):e);return\"bytes\"===n?a:(0,s.nj)(a)}},2531:(e,t,n)=>{\"use strict\";n.d(t,{Vw:()=>w,DO:()=>i,CC:()=>a,sd:()=>s,Fe:()=>o,Ht:()=>c,uH:()=>f,Id:()=>m,qj:()=>v,O8:()=>l,po:()=>A,Ow:()=>d,fd:()=>b,ZJ:()=>y,DH:()=>u});const r=\"object\"==typeof globalThis&&\"crypto\"in globalThis?globalThis.crypto:void 0;function o(e){if(!Number.isSafeInteger(e)||e<0)throw new Error(\"positive integer expected, got \"+e)}function i(e,...t){if(!((n=e)instanceof Uint8Array||ArrayBuffer.isView(n)&&\"Uint8Array\"===n.constructor.name))throw new Error(\"Uint8Array expected\");var n;if(t.length>0&&!t.includes(e.length))throw new Error(\"Uint8Array expected of length \"+t+\", got length=\"+e.length)}function s(e){if(\"function\"!=typeof e||\"function\"!=typeof e.create)throw new Error(\"Hash should be wrapped by utils.createHasher\");o(e.outputLen),o(e.blockLen)}function a(e,t=!0){if(e.destroyed)throw new Error(\"Hash instance has been destroyed\");if(t&&e.finished)throw new Error(\"Hash#digest() has already been called\")}function c(e,t){i(e);const n=t.outputLen;if(e.length<n)throw new Error(\"digestInto() expects output buffer of length at least \"+n)}function u(e){return new Uint32Array(e.buffer,e.byteOffset,Math.floor(e.byteLength/4))}function f(...e){for(let t=0;t<e.length;t++)e[t].fill(0)}function l(e){return new DataView(e.buffer,e.byteOffset,e.byteLength)}function d(e,t){return e<<32-t|e>>>t}const h=68===new Uint8Array(new Uint32Array([287454020]).buffer)[0];function p(e){return e<<24&4278190080|e<<8&16711680|e>>>8&65280|e>>>24&255}const b=h?e=>e:function(e){for(let t=0;t<e.length;t++)e[t]=p(e[t]);return e};Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function g(e){if(\"string\"!=typeof e)throw new Error(\"string expected\");return new Uint8Array((new TextEncoder).encode(e))}function y(e){return\"string\"==typeof e&&(e=g(e)),i(e),e}function m(...e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];i(r),t+=r.length}const n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const o=e[t];n.set(o,r),r+=o.length}return n}class w{}function v(e){const t=t=>e().update(y(t)).digest(),n=e();return t.outputLen=n.outputLen,t.blockLen=n.blockLen,t.create=()=>e(),t}function A(e=32){if(r&&\"function\"==typeof r.getRandomValues)return r.getRandomValues(new Uint8Array(e));if(r&&\"function\"==typeof r.randomBytes)return Uint8Array.from(r.randomBytes(e));throw new Error(\"crypto.getRandomValues must be defined\")}},2543:function(e,t,n){var r;e=n.nmd(e),function(){var o,i=\"Expected a function\",s=\"__lodash_hash_undefined__\",a=\"__lodash_placeholder__\",c=16,u=32,f=64,l=128,d=256,h=1/0,p=9007199254740991,b=NaN,g=4294967295,y=[[\"ary\",l],[\"bind\",1],[\"bindKey\",2],[\"curry\",8],[\"curryRight\",c],[\"flip\",512],[\"partial\",u],[\"partialRight\",f],[\"rearg\",d]],m=\"[object Arguments]\",w=\"[object Array]\",v=\"[object Boolean]\",A=\"[object Date]\",x=\"[object Error]\",E=\"[object Function]\",B=\"[object GeneratorFunction]\",P=\"[object Map]\",I=\"[object Number]\",C=\"[object Object]\",k=\"[object Promise]\",M=\"[object RegExp]\",O=\"[object Set]\",N=\"[object String]\",S=\"[object Symbol]\",T=\"[object WeakMap]\",U=\"[object ArrayBuffer]\",R=\"[object DataView]\",F=\"[object Float32Array]\",z=\"[object Float64Array]\",j=\"[object Int8Array]\",L=\"[object Int16Array]\",D=\"[object Int32Array]\",_=\"[object Uint8Array]\",$=\"[object Uint8ClampedArray]\",G=\"[object Uint16Array]\",Q=\"[object Uint32Array]\",H=/\\b__p \\+= '';/g,q=/\\b(__p \\+=) '' \\+/g,V=/(__e\\(.*?\\)|\\b__t\\)) \\+\\n'';/g,J=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>\"']/g,W=RegExp(J.source),Z=RegExp(K.source),Y=/<%-([\\s\\S]+?)%>/g,X=/<%([\\s\\S]+?)%>/g,ee=/<%=([\\s\\S]+?)%>/g,te=/\\.|\\[(?:[^[\\]]*|([\"'])(?:(?!\\1)[^\\\\]|\\\\.)*?\\1)\\]/,ne=/^\\w*$/,re=/[^.[\\]]+|\\[(?:(-?\\d+(?:\\.\\d+)?)|([\"'])((?:(?!\\2)[^\\\\]|\\\\.)*?)\\2)\\]|(?=(?:\\.|\\[\\])(?:\\.|\\[\\]|$))/g,oe=/[\\\\^$.*+?()[\\]{}|]/g,ie=RegExp(oe.source),se=/^\\s+/,ae=/\\s/,ce=/\\{(?:\\n\\/\\* \\[wrapped with .+\\] \\*\\/)?\\n?/,ue=/\\{\\n\\/\\* \\[wrapped with (.+)\\] \\*/,fe=/,? & /,le=/[^\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\x7f]+/g,de=/[()=,{}\\[\\]\\/\\s]/,he=/\\\\(\\\\)?/g,pe=/\\$\\{([^\\\\}]*(?:\\\\.[^\\\\}]*)*)\\}/g,be=/\\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ye=/^0b[01]+$/i,me=/^\\[object .+?Constructor\\]$/,we=/^0o[0-7]+$/i,ve=/^(?:0|[1-9]\\d*)$/,Ae=/[\\xc0-\\xd6\\xd8-\\xf6\\xf8-\\xff\\u0100-\\u017f]/g,xe=/($^)/,Ee=/['\\n\\r\\u2028\\u2029\\\\]/g,Be=\"\\\\ud800-\\\\udfff\",Pe=\"\\\\u0300-\\\\u036f\\\\ufe20-\\\\ufe2f\\\\u20d0-\\\\u20ff\",Ie=\"\\\\u2700-\\\\u27bf\",Ce=\"a-z\\\\xdf-\\\\xf6\\\\xf8-\\\\xff\",ke=\"A-Z\\\\xc0-\\\\xd6\\\\xd8-\\\\xde\",Me=\"\\\\ufe0e\\\\ufe0f\",Oe=\"\\\\xac\\\\xb1\\\\xd7\\\\xf7\\\\x00-\\\\x2f\\\\x3a-\\\\x40\\\\x5b-\\\\x60\\\\x7b-\\\\xbf\\\\u2000-\\\\u206f \\\\t\\\\x0b\\\\f\\\\xa0\\\\ufeff\\\\n\\\\r\\\\u2028\\\\u2029\\\\u1680\\\\u180e\\\\u2000\\\\u2001\\\\u2002\\\\u2003\\\\u2004\\\\u2005\\\\u2006\\\\u2007\\\\u2008\\\\u2009\\\\u200a\\\\u202f\\\\u205f\\\\u3000\",Ne=\"['’]\",Se=\"[\"+Be+\"]\",Te=\"[\"+Oe+\"]\",Ue=\"[\"+Pe+\"]\",Re=\"\\\\d+\",Fe=\"[\"+Ie+\"]\",ze=\"[\"+Ce+\"]\",je=\"[^\"+Be+Oe+Re+Ie+Ce+ke+\"]\",Le=\"\\\\ud83c[\\\\udffb-\\\\udfff]\",De=\"[^\"+Be+\"]\",_e=\"(?:\\\\ud83c[\\\\udde6-\\\\uddff]){2}\",$e=\"[\\\\ud800-\\\\udbff][\\\\udc00-\\\\udfff]\",Ge=\"[\"+ke+\"]\",Qe=\"\\\\u200d\",He=\"(?:\"+ze+\"|\"+je+\")\",qe=\"(?:\"+Ge+\"|\"+je+\")\",Ve=\"(?:['’](?:d|ll|m|re|s|t|ve))?\",Je=\"(?:['’](?:D|LL|M|RE|S|T|VE))?\",Ke=\"(?:\"+Ue+\"|\"+Le+\")\"+\"?\",We=\"[\"+Me+\"]?\",Ze=We+Ke+(\"(?:\"+Qe+\"(?:\"+[De,_e,$e].join(\"|\")+\")\"+We+Ke+\")*\"),Ye=\"(?:\"+[Fe,_e,$e].join(\"|\")+\")\"+Ze,Xe=\"(?:\"+[De+Ue+\"?\",Ue,_e,$e,Se].join(\"|\")+\")\",et=RegExp(Ne,\"g\"),tt=RegExp(Ue,\"g\"),nt=RegExp(Le+\"(?=\"+Le+\")|\"+Xe+Ze,\"g\"),rt=RegExp([Ge+\"?\"+ze+\"+\"+Ve+\"(?=\"+[Te,Ge,\"$\"].join(\"|\")+\")\",qe+\"+\"+Je+\"(?=\"+[Te,Ge+He,\"$\"].join(\"|\")+\")\",Ge+\"?\"+He+\"+\"+Ve,Ge+\"+\"+Je,\"\\\\d*(?:1ST|2ND|3RD|(?![123])\\\\dTH)(?=\\\\b|[a-z_])\",\"\\\\d*(?:1st|2nd|3rd|(?![123])\\\\dth)(?=\\\\b|[A-Z_])\",Re,Ye].join(\"|\"),\"g\"),ot=RegExp(\"[\"+Qe+Be+Pe+Me+\"]\"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,st=[\"Array\",\"Buffer\",\"DataView\",\"Date\",\"Error\",\"Float32Array\",\"Float64Array\",\"Function\",\"Int8Array\",\"Int16Array\",\"Int32Array\",\"Map\",\"Math\",\"Object\",\"Promise\",\"RegExp\",\"Set\",\"String\",\"Symbol\",\"TypeError\",\"Uint8Array\",\"Uint8ClampedArray\",\"Uint16Array\",\"Uint32Array\",\"WeakMap\",\"_\",\"clearTimeout\",\"isFinite\",\"parseInt\",\"setTimeout\"],at=-1,ct={};ct[F]=ct[z]=ct[j]=ct[L]=ct[D]=ct[_]=ct[$]=ct[G]=ct[Q]=!0,ct[m]=ct[w]=ct[U]=ct[v]=ct[R]=ct[A]=ct[x]=ct[E]=ct[P]=ct[I]=ct[C]=ct[M]=ct[O]=ct[N]=ct[T]=!1;var ut={};ut[m]=ut[w]=ut[U]=ut[R]=ut[v]=ut[A]=ut[F]=ut[z]=ut[j]=ut[L]=ut[D]=ut[P]=ut[I]=ut[C]=ut[M]=ut[O]=ut[N]=ut[S]=ut[_]=ut[$]=ut[G]=ut[Q]=!0,ut[x]=ut[E]=ut[T]=!1;var ft={\"\\\\\":\"\\\\\",\"'\":\"'\",\"\\n\":\"n\",\"\\r\":\"r\",\"\\u2028\":\"u2028\",\"\\u2029\":\"u2029\"},lt=parseFloat,dt=parseInt,ht=\"object\"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,pt=\"object\"==typeof self&&self&&self.Object===Object&&self,bt=ht||pt||Function(\"return this\")(),gt=t&&!t.nodeType&&t,yt=gt&&e&&!e.nodeType&&e,mt=yt&&yt.exports===gt,wt=mt&&ht.process,vt=function(){try{var e=yt&&yt.require&&yt.require(\"util\").types;return e||wt&&wt.binding&&wt.binding(\"util\")}catch(e){}}(),At=vt&&vt.isArrayBuffer,xt=vt&&vt.isDate,Et=vt&&vt.isMap,Bt=vt&&vt.isRegExp,Pt=vt&&vt.isSet,It=vt&&vt.isTypedArray;function Ct(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function kt(e,t,n,r){for(var o=-1,i=null==e?0:e.length;++o<i;){var s=e[o];t(r,s,n(s),e)}return r}function Mt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r&&!1!==t(e[n],n,e););return e}function Ot(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Nt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(!t(e[n],n,e))return!1;return!0}function St(e,t){for(var n=-1,r=null==e?0:e.length,o=0,i=[];++n<r;){var s=e[n];t(s,n,e)&&(i[o++]=s)}return i}function Tt(e,t){return!!(null==e?0:e.length)&&Gt(e,t,0)>-1}function Ut(e,t,n){for(var r=-1,o=null==e?0:e.length;++r<o;)if(n(t,e[r]))return!0;return!1}function Rt(e,t){for(var n=-1,r=null==e?0:e.length,o=Array(r);++n<r;)o[n]=t(e[n],n,e);return o}function Ft(e,t){for(var n=-1,r=t.length,o=e.length;++n<r;)e[o+n]=t[n];return e}function zt(e,t,n,r){var o=-1,i=null==e?0:e.length;for(r&&i&&(n=e[++o]);++o<i;)n=t(n,e[o],o,e);return n}function jt(e,t,n,r){var o=null==e?0:e.length;for(r&&o&&(n=e[--o]);o--;)n=t(n,e[o],o,e);return n}function Lt(e,t){for(var n=-1,r=null==e?0:e.length;++n<r;)if(t(e[n],n,e))return!0;return!1}var Dt=Vt(\"length\");function _t(e,t,n){var r;return n(e,function(e,n,o){if(t(e,n,o))return r=n,!1}),r}function $t(e,t,n,r){for(var o=e.length,i=n+(r?1:-1);r?i--:++i<o;)if(t(e[i],i,e))return i;return-1}function Gt(e,t,n){return t==t?function(e,t,n){var r=n-1,o=e.length;for(;++r<o;)if(e[r]===t)return r;return-1}(e,t,n):$t(e,Ht,n)}function Qt(e,t,n,r){for(var o=n-1,i=e.length;++o<i;)if(r(e[o],t))return o;return-1}function Ht(e){return e!=e}function qt(e,t){var n=null==e?0:e.length;return n?Wt(e,t)/n:b}function Vt(e){return function(t){return null==t?o:t[e]}}function Jt(e){return function(t){return null==e?o:e[t]}}function Kt(e,t,n,r,o){return o(e,function(e,o,i){n=r?(r=!1,e):t(n,e,o,i)}),n}function Wt(e,t){for(var n,r=-1,i=e.length;++r<i;){var s=t(e[r]);s!==o&&(n=n===o?s:n+s)}return n}function Zt(e,t){for(var n=-1,r=Array(e);++n<e;)r[n]=t(n);return r}function Yt(e){return e?e.slice(0,gn(e)+1).replace(se,\"\"):e}function Xt(e){return function(t){return e(t)}}function en(e,t){return Rt(t,function(t){return e[t]})}function tn(e,t){return e.has(t)}function nn(e,t){for(var n=-1,r=e.length;++n<r&&Gt(t,e[n],0)>-1;);return n}function rn(e,t){for(var n=e.length;n--&&Gt(t,e[n],0)>-1;);return n}var on=Jt({À:\"A\",Á:\"A\",Â:\"A\",Ã:\"A\",Ä:\"A\",Å:\"A\",à:\"a\",á:\"a\",â:\"a\",ã:\"a\",ä:\"a\",å:\"a\",Ç:\"C\",ç:\"c\",Ð:\"D\",ð:\"d\",È:\"E\",É:\"E\",Ê:\"E\",Ë:\"E\",è:\"e\",é:\"e\",ê:\"e\",ë:\"e\",Ì:\"I\",Í:\"I\",Î:\"I\",Ï:\"I\",ì:\"i\",í:\"i\",î:\"i\",ï:\"i\",Ñ:\"N\",ñ:\"n\",Ò:\"O\",Ó:\"O\",Ô:\"O\",Õ:\"O\",Ö:\"O\",Ø:\"O\",ò:\"o\",ó:\"o\",ô:\"o\",õ:\"o\",ö:\"o\",ø:\"o\",Ù:\"U\",Ú:\"U\",Û:\"U\",Ü:\"U\",ù:\"u\",ú:\"u\",û:\"u\",ü:\"u\",Ý:\"Y\",ý:\"y\",ÿ:\"y\",Æ:\"Ae\",æ:\"ae\",Þ:\"Th\",þ:\"th\",ß:\"ss\",Ā:\"A\",Ă:\"A\",Ą:\"A\",ā:\"a\",ă:\"a\",ą:\"a\",Ć:\"C\",Ĉ:\"C\",Ċ:\"C\",Č:\"C\",ć:\"c\",ĉ:\"c\",ċ:\"c\",č:\"c\",Ď:\"D\",Đ:\"D\",ď:\"d\",đ:\"d\",Ē:\"E\",Ĕ:\"E\",Ė:\"E\",Ę:\"E\",Ě:\"E\",ē:\"e\",ĕ:\"e\",ė:\"e\",ę:\"e\",ě:\"e\",Ĝ:\"G\",Ğ:\"G\",Ġ:\"G\",Ģ:\"G\",ĝ:\"g\",ğ:\"g\",ġ:\"g\",ģ:\"g\",Ĥ:\"H\",Ħ:\"H\",ĥ:\"h\",ħ:\"h\",Ĩ:\"I\",Ī:\"I\",Ĭ:\"I\",Į:\"I\",İ:\"I\",ĩ:\"i\",ī:\"i\",ĭ:\"i\",į:\"i\",ı:\"i\",Ĵ:\"J\",ĵ:\"j\",Ķ:\"K\",ķ:\"k\",ĸ:\"k\",Ĺ:\"L\",Ļ:\"L\",Ľ:\"L\",Ŀ:\"L\",Ł:\"L\",ĺ:\"l\",ļ:\"l\",ľ:\"l\",ŀ:\"l\",ł:\"l\",Ń:\"N\",Ņ:\"N\",Ň:\"N\",Ŋ:\"N\",ń:\"n\",ņ:\"n\",ň:\"n\",ŋ:\"n\",Ō:\"O\",Ŏ:\"O\",Ő:\"O\",ō:\"o\",ŏ:\"o\",ő:\"o\",Ŕ:\"R\",Ŗ:\"R\",Ř:\"R\",ŕ:\"r\",ŗ:\"r\",ř:\"r\",Ś:\"S\",Ŝ:\"S\",Ş:\"S\",Š:\"S\",ś:\"s\",ŝ:\"s\",ş:\"s\",š:\"s\",Ţ:\"T\",Ť:\"T\",Ŧ:\"T\",ţ:\"t\",ť:\"t\",ŧ:\"t\",Ũ:\"U\",Ū:\"U\",Ŭ:\"U\",Ů:\"U\",Ű:\"U\",Ų:\"U\",ũ:\"u\",ū:\"u\",ŭ:\"u\",ů:\"u\",ű:\"u\",ų:\"u\",Ŵ:\"W\",ŵ:\"w\",Ŷ:\"Y\",ŷ:\"y\",Ÿ:\"Y\",Ź:\"Z\",Ż:\"Z\",Ž:\"Z\",ź:\"z\",ż:\"z\",ž:\"z\",Ĳ:\"IJ\",ĳ:\"ij\",Œ:\"Oe\",œ:\"oe\",ŉ:\"'n\",ſ:\"s\"}),sn=Jt({\"&\":\"&amp;\",\"<\":\"&lt;\",\">\":\"&gt;\",'\"':\"&quot;\",\"'\":\"&#39;\"});function an(e){return\"\\\\\"+ft[e]}function cn(e){return ot.test(e)}function un(e){var t=-1,n=Array(e.size);return e.forEach(function(e,r){n[++t]=[r,e]}),n}function fn(e,t){return function(n){return e(t(n))}}function ln(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n];s!==t&&s!==a||(e[n]=a,i[o++]=n)}return i}function dn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=[e,e]}),n}function pn(e){return cn(e)?function(e){var t=nt.lastIndex=0;for(;nt.test(e);)++t;return t}(e):Dt(e)}function bn(e){return cn(e)?function(e){return e.match(nt)||[]}(e):function(e){return e.split(\"\")}(e)}function gn(e){for(var t=e.length;t--&&ae.test(e.charAt(t)););return t}var yn=Jt({\"&amp;\":\"&\",\"&lt;\":\"<\",\"&gt;\":\">\",\"&quot;\":'\"',\"&#39;\":\"'\"});var mn=function e(t){var n,r=(t=null==t?bt:mn.defaults(bt.Object(),t,mn.pick(bt,st))).Array,ae=t.Date,Be=t.Error,Pe=t.Function,Ie=t.Math,Ce=t.Object,ke=t.RegExp,Me=t.String,Oe=t.TypeError,Ne=r.prototype,Se=Pe.prototype,Te=Ce.prototype,Ue=t[\"__core-js_shared__\"],Re=Se.toString,Fe=Te.hasOwnProperty,ze=0,je=(n=/[^.]+$/.exec(Ue&&Ue.keys&&Ue.keys.IE_PROTO||\"\"))?\"Symbol(src)_1.\"+n:\"\",Le=Te.toString,De=Re.call(Ce),_e=bt._,$e=ke(\"^\"+Re.call(Fe).replace(oe,\"\\\\$&\").replace(/hasOwnProperty|(function).*?(?=\\\\\\()| for .+?(?=\\\\\\])/g,\"$1.*?\")+\"$\"),Ge=mt?t.Buffer:o,Qe=t.Symbol,He=t.Uint8Array,qe=Ge?Ge.allocUnsafe:o,Ve=fn(Ce.getPrototypeOf,Ce),Je=Ce.create,Ke=Te.propertyIsEnumerable,We=Ne.splice,Ze=Qe?Qe.isConcatSpreadable:o,Ye=Qe?Qe.iterator:o,Xe=Qe?Qe.toStringTag:o,nt=function(){try{var e=hi(Ce,\"defineProperty\");return e({},\"\",{}),e}catch(e){}}(),ot=t.clearTimeout!==bt.clearTimeout&&t.clearTimeout,ft=ae&&ae.now!==bt.Date.now&&ae.now,ht=t.setTimeout!==bt.setTimeout&&t.setTimeout,pt=Ie.ceil,gt=Ie.floor,yt=Ce.getOwnPropertySymbols,wt=Ge?Ge.isBuffer:o,vt=t.isFinite,Dt=Ne.join,Jt=fn(Ce.keys,Ce),wn=Ie.max,vn=Ie.min,An=ae.now,xn=t.parseInt,En=Ie.random,Bn=Ne.reverse,Pn=hi(t,\"DataView\"),In=hi(t,\"Map\"),Cn=hi(t,\"Promise\"),kn=hi(t,\"Set\"),Mn=hi(t,\"WeakMap\"),On=hi(Ce,\"create\"),Nn=Mn&&new Mn,Sn={},Tn=Li(Pn),Un=Li(In),Rn=Li(Cn),Fn=Li(kn),zn=Li(Mn),jn=Qe?Qe.prototype:o,Ln=jn?jn.valueOf:o,Dn=jn?jn.toString:o;function _n(e){if(na(e)&&!Hs(e)&&!(e instanceof Hn)){if(e instanceof Qn)return e;if(Fe.call(e,\"__wrapped__\"))return Di(e)}return new Qn(e)}var $n=function(){function e(){}return function(t){if(!ta(t))return{};if(Je)return Je(t);e.prototype=t;var n=new e;return e.prototype=o,n}}();function Gn(){}function Qn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=o}function Hn(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function qn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Vn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Jn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var r=e[t];this.set(r[0],r[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Jn;++t<n;)this.add(e[t])}function Wn(e){var t=this.__data__=new Vn(e);this.size=t.size}function Zn(e,t){var n=Hs(e),r=!n&&Qs(e),o=!n&&!r&&Ks(e),i=!n&&!r&&!o&&fa(e),s=n||r||o||i,a=s?Zt(e.length,Me):[],c=a.length;for(var u in e)!t&&!Fe.call(e,u)||s&&(\"length\"==u||o&&(\"offset\"==u||\"parent\"==u)||i&&(\"buffer\"==u||\"byteLength\"==u||\"byteOffset\"==u)||vi(u,c))||a.push(u);return a}function Yn(e){var t=e.length;return t?e[Kr(0,t-1)]:o}function Xn(e,t){return Fi(No(e),cr(t,0,e.length))}function er(e){return Fi(No(e))}function tr(e,t,n){(n!==o&&!_s(e[t],n)||n===o&&!(t in e))&&sr(e,t,n)}function nr(e,t,n){var r=e[t];Fe.call(e,t)&&_s(r,n)&&(n!==o||t in e)||sr(e,t,n)}function rr(e,t){for(var n=e.length;n--;)if(_s(e[n][0],t))return n;return-1}function or(e,t,n,r){return hr(e,function(e,o,i){t(r,e,n(e),i)}),r}function ir(e,t){return e&&So(t,Sa(t),e)}function sr(e,t,n){\"__proto__\"==t&&nt?nt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function ar(e,t){for(var n=-1,i=t.length,s=r(i),a=null==e;++n<i;)s[n]=a?o:Ca(e,t[n]);return s}function cr(e,t,n){return e==e&&(n!==o&&(e=e<=n?e:n),t!==o&&(e=e>=t?e:t)),e}function ur(e,t,n,r,i,s){var a,c=1&t,u=2&t,f=4&t;if(n&&(a=i?n(e,r,i,s):n(e)),a!==o)return a;if(!ta(e))return e;var l=Hs(e);if(l){if(a=function(e){var t=e.length,n=new e.constructor(t);t&&\"string\"==typeof e[0]&&Fe.call(e,\"index\")&&(n.index=e.index,n.input=e.input);return n}(e),!c)return No(e,a)}else{var d=gi(e),h=d==E||d==B;if(Ks(e))return Po(e,c);if(d==C||d==m||h&&!i){if(a=u||h?{}:mi(e),!c)return u?function(e,t){return So(e,bi(e),t)}(e,function(e,t){return e&&So(t,Ta(t),e)}(a,e)):function(e,t){return So(e,pi(e),t)}(e,ir(a,e))}else{if(!ut[d])return i?e:{};a=function(e,t,n){var r=e.constructor;switch(t){case U:return Io(e);case v:case A:return new r(+e);case R:return function(e,t){var n=t?Io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case F:case z:case j:case L:case D:case _:case $:case G:case Q:return Co(e,n);case P:return new r;case I:case N:return new r(e);case M:return function(e){var t=new e.constructor(e.source,be.exec(e));return t.lastIndex=e.lastIndex,t}(e);case O:return new r;case S:return o=e,Ln?Ce(Ln.call(o)):{}}var o}(e,d,c)}}s||(s=new Wn);var p=s.get(e);if(p)return p;s.set(e,a),aa(e)?e.forEach(function(r){a.add(ur(r,t,n,r,e,s))}):ra(e)&&e.forEach(function(r,o){a.set(o,ur(r,t,n,o,e,s))});var b=l?o:(f?u?si:ii:u?Ta:Sa)(e);return Mt(b||e,function(r,o){b&&(r=e[o=r]),nr(a,o,ur(r,t,n,o,e,s))}),a}function fr(e,t,n){var r=n.length;if(null==e)return!r;for(e=Ce(e);r--;){var i=n[r],s=t[i],a=e[i];if(a===o&&!(i in e)||!s(a))return!1}return!0}function lr(e,t,n){if(\"function\"!=typeof e)throw new Oe(i);return Si(function(){e.apply(o,n)},t)}function dr(e,t,n,r){var o=-1,i=Tt,s=!0,a=e.length,c=[],u=t.length;if(!a)return c;n&&(t=Rt(t,Xt(n))),r?(i=Ut,s=!1):t.length>=200&&(i=tn,s=!1,t=new Kn(t));e:for(;++o<a;){var f=e[o],l=null==n?f:n(f);if(f=r||0!==f?f:0,s&&l==l){for(var d=u;d--;)if(t[d]===l)continue e;c.push(f)}else i(t,l,r)||c.push(f)}return c}_n.templateSettings={escape:Y,evaluate:X,interpolate:ee,variable:\"\",imports:{_:_n}},_n.prototype=Gn.prototype,_n.prototype.constructor=_n,Qn.prototype=$n(Gn.prototype),Qn.prototype.constructor=Qn,Hn.prototype=$n(Gn.prototype),Hn.prototype.constructor=Hn,qn.prototype.clear=function(){this.__data__=On?On(null):{},this.size=0},qn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},qn.prototype.get=function(e){var t=this.__data__;if(On){var n=t[e];return n===s?o:n}return Fe.call(t,e)?t[e]:o},qn.prototype.has=function(e){var t=this.__data__;return On?t[e]!==o:Fe.call(t,e)},qn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=On&&t===o?s:t,this},Vn.prototype.clear=function(){this.__data__=[],this.size=0},Vn.prototype.delete=function(e){var t=this.__data__,n=rr(t,e);return!(n<0)&&(n==t.length-1?t.pop():We.call(t,n,1),--this.size,!0)},Vn.prototype.get=function(e){var t=this.__data__,n=rr(t,e);return n<0?o:t[n][1]},Vn.prototype.has=function(e){return rr(this.__data__,e)>-1},Vn.prototype.set=function(e,t){var n=this.__data__,r=rr(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this},Jn.prototype.clear=function(){this.size=0,this.__data__={hash:new qn,map:new(In||Vn),string:new qn}},Jn.prototype.delete=function(e){var t=li(this,e).delete(e);return this.size-=t?1:0,t},Jn.prototype.get=function(e){return li(this,e).get(e)},Jn.prototype.has=function(e){return li(this,e).has(e)},Jn.prototype.set=function(e,t){var n=li(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this},Kn.prototype.add=Kn.prototype.push=function(e){return this.__data__.set(e,s),this},Kn.prototype.has=function(e){return this.__data__.has(e)},Wn.prototype.clear=function(){this.__data__=new Vn,this.size=0},Wn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Wn.prototype.get=function(e){return this.__data__.get(e)},Wn.prototype.has=function(e){return this.__data__.has(e)},Wn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Vn){var r=n.__data__;if(!In||r.length<199)return r.push([e,t]),this.size=++n.size,this;n=this.__data__=new Jn(r)}return n.set(e,t),this.size=n.size,this};var hr=Ro(Ar),pr=Ro(xr,!0);function br(e,t){var n=!0;return hr(e,function(e,r,o){return n=!!t(e,r,o)}),n}function gr(e,t,n){for(var r=-1,i=e.length;++r<i;){var s=e[r],a=t(s);if(null!=a&&(c===o?a==a&&!ua(a):n(a,c)))var c=a,u=s}return u}function yr(e,t){var n=[];return hr(e,function(e,r,o){t(e,r,o)&&n.push(e)}),n}function mr(e,t,n,r,o){var i=-1,s=e.length;for(n||(n=wi),o||(o=[]);++i<s;){var a=e[i];t>0&&n(a)?t>1?mr(a,t-1,n,r,o):Ft(o,a):r||(o[o.length]=a)}return o}var wr=Fo(),vr=Fo(!0);function Ar(e,t){return e&&wr(e,t,Sa)}function xr(e,t){return e&&vr(e,t,Sa)}function Er(e,t){return St(t,function(t){return Ys(e[t])})}function Br(e,t){for(var n=0,r=(t=Ao(t,e)).length;null!=e&&n<r;)e=e[ji(t[n++])];return n&&n==r?e:o}function Pr(e,t,n){var r=t(e);return Hs(e)?r:Ft(r,n(e))}function Ir(e){return null==e?e===o?\"[object Undefined]\":\"[object Null]\":Xe&&Xe in Ce(e)?function(e){var t=Fe.call(e,Xe),n=e[Xe];try{e[Xe]=o;var r=!0}catch(e){}var i=Le.call(e);r&&(t?e[Xe]=n:delete e[Xe]);return i}(e):function(e){return Le.call(e)}(e)}function Cr(e,t){return e>t}function kr(e,t){return null!=e&&Fe.call(e,t)}function Mr(e,t){return null!=e&&t in Ce(e)}function Or(e,t,n){for(var i=n?Ut:Tt,s=e[0].length,a=e.length,c=a,u=r(a),f=1/0,l=[];c--;){var d=e[c];c&&t&&(d=Rt(d,Xt(t))),f=vn(d.length,f),u[c]=!n&&(t||s>=120&&d.length>=120)?new Kn(c&&d):o}d=e[0];var h=-1,p=u[0];e:for(;++h<s&&l.length<f;){var b=d[h],g=t?t(b):b;if(b=n||0!==b?b:0,!(p?tn(p,g):i(l,g,n))){for(c=a;--c;){var y=u[c];if(!(y?tn(y,g):i(e[c],g,n)))continue e}p&&p.push(g),l.push(b)}}return l}function Nr(e,t,n){var r=null==(e=Mi(e,t=Ao(t,e)))?e:e[ji(Zi(t))];return null==r?o:Ct(r,e,n)}function Sr(e){return na(e)&&Ir(e)==m}function Tr(e,t,n,r,i){return e===t||(null==e||null==t||!na(e)&&!na(t)?e!=e&&t!=t:function(e,t,n,r,i,s){var a=Hs(e),c=Hs(t),u=a?w:gi(e),f=c?w:gi(t),l=(u=u==m?C:u)==C,d=(f=f==m?C:f)==C,h=u==f;if(h&&Ks(e)){if(!Ks(t))return!1;a=!0,l=!1}if(h&&!l)return s||(s=new Wn),a||fa(e)?ri(e,t,n,r,i,s):function(e,t,n,r,o,i,s){switch(n){case R:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case U:return!(e.byteLength!=t.byteLength||!i(new He(e),new He(t)));case v:case A:case I:return _s(+e,+t);case x:return e.name==t.name&&e.message==t.message;case M:case N:return e==t+\"\";case P:var a=un;case O:var c=1&r;if(a||(a=dn),e.size!=t.size&&!c)return!1;var u=s.get(e);if(u)return u==t;r|=2,s.set(e,t);var f=ri(a(e),a(t),r,o,i,s);return s.delete(e),f;case S:if(Ln)return Ln.call(e)==Ln.call(t)}return!1}(e,t,u,n,r,i,s);if(!(1&n)){var p=l&&Fe.call(e,\"__wrapped__\"),b=d&&Fe.call(t,\"__wrapped__\");if(p||b){var g=p?e.value():e,y=b?t.value():t;return s||(s=new Wn),i(g,y,n,r,s)}}if(!h)return!1;return s||(s=new Wn),function(e,t,n,r,i,s){var a=1&n,c=ii(e),u=c.length,f=ii(t),l=f.length;if(u!=l&&!a)return!1;var d=u;for(;d--;){var h=c[d];if(!(a?h in t:Fe.call(t,h)))return!1}var p=s.get(e),b=s.get(t);if(p&&b)return p==t&&b==e;var g=!0;s.set(e,t),s.set(t,e);var y=a;for(;++d<u;){var m=e[h=c[d]],w=t[h];if(r)var v=a?r(w,m,h,t,e,s):r(m,w,h,e,t,s);if(!(v===o?m===w||i(m,w,n,r,s):v)){g=!1;break}y||(y=\"constructor\"==h)}if(g&&!y){var A=e.constructor,x=t.constructor;A==x||!(\"constructor\"in e)||!(\"constructor\"in t)||\"function\"==typeof A&&A instanceof A&&\"function\"==typeof x&&x instanceof x||(g=!1)}return s.delete(e),s.delete(t),g}(e,t,n,r,i,s)}(e,t,n,r,Tr,i))}function Ur(e,t,n,r){var i=n.length,s=i,a=!r;if(null==e)return!s;for(e=Ce(e);i--;){var c=n[i];if(a&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++i<s;){var u=(c=n[i])[0],f=e[u],l=c[1];if(a&&c[2]){if(f===o&&!(u in e))return!1}else{var d=new Wn;if(r)var h=r(f,l,u,e,t,d);if(!(h===o?Tr(l,f,3,r,d):h))return!1}}return!0}function Rr(e){return!(!ta(e)||(t=e,je&&je in t))&&(Ys(e)?$e:me).test(Li(e));var t}function Fr(e){return\"function\"==typeof e?e:null==e?oc:\"object\"==typeof e?Hs(e)?$r(e[0],e[1]):_r(e):hc(e)}function zr(e){if(!Pi(e))return Jt(e);var t=[];for(var n in Ce(e))Fe.call(e,n)&&\"constructor\"!=n&&t.push(n);return t}function jr(e){if(!ta(e))return function(e){var t=[];if(null!=e)for(var n in Ce(e))t.push(n);return t}(e);var t=Pi(e),n=[];for(var r in e)(\"constructor\"!=r||!t&&Fe.call(e,r))&&n.push(r);return n}function Lr(e,t){return e<t}function Dr(e,t){var n=-1,o=Vs(e)?r(e.length):[];return hr(e,function(e,r,i){o[++n]=t(e,r,i)}),o}function _r(e){var t=di(e);return 1==t.length&&t[0][2]?Ci(t[0][0],t[0][1]):function(n){return n===e||Ur(n,e,t)}}function $r(e,t){return xi(e)&&Ii(t)?Ci(ji(e),t):function(n){var r=Ca(n,e);return r===o&&r===t?ka(n,e):Tr(t,r,3)}}function Gr(e,t,n,r,i){e!==t&&wr(t,function(s,a){if(i||(i=new Wn),ta(s))!function(e,t,n,r,i,s,a){var c=Oi(e,n),u=Oi(t,n),f=a.get(u);if(f)return void tr(e,n,f);var l=s?s(c,u,n+\"\",e,t,a):o,d=l===o;if(d){var h=Hs(u),p=!h&&Ks(u),b=!h&&!p&&fa(u);l=u,h||p||b?Hs(c)?l=c:Js(c)?l=No(c):p?(d=!1,l=Po(u,!0)):b?(d=!1,l=Co(u,!0)):l=[]:ia(u)||Qs(u)?(l=c,Qs(c)?l=ma(c):ta(c)&&!Ys(c)||(l=mi(u))):d=!1}d&&(a.set(u,l),i(l,u,r,s,a),a.delete(u));tr(e,n,l)}(e,t,a,n,Gr,r,i);else{var c=r?r(Oi(e,a),s,a+\"\",e,t,i):o;c===o&&(c=s),tr(e,a,c)}},Ta)}function Qr(e,t){var n=e.length;if(n)return vi(t+=t<0?n:0,n)?e[t]:o}function Hr(e,t,n){t=t.length?Rt(t,function(e){return Hs(e)?function(t){return Br(t,1===e.length?e[0]:e)}:e}):[oc];var r=-1;t=Rt(t,Xt(fi()));var o=Dr(e,function(e,n,o){var i=Rt(t,function(t){return t(e)});return{criteria:i,index:++r,value:e}});return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(o,function(e,t){return function(e,t,n){var r=-1,o=e.criteria,i=t.criteria,s=o.length,a=n.length;for(;++r<s;){var c=ko(o[r],i[r]);if(c)return r>=a?c:c*(\"desc\"==n[r]?-1:1)}return e.index-t.index}(e,t,n)})}function qr(e,t,n){for(var r=-1,o=t.length,i={};++r<o;){var s=t[r],a=Br(e,s);n(a,s)&&eo(i,Ao(s,e),a)}return i}function Vr(e,t,n,r){var o=r?Qt:Gt,i=-1,s=t.length,a=e;for(e===t&&(t=No(t)),n&&(a=Rt(e,Xt(n)));++i<s;)for(var c=0,u=t[i],f=n?n(u):u;(c=o(a,f,c,r))>-1;)a!==e&&We.call(a,c,1),We.call(e,c,1);return e}function Jr(e,t){for(var n=e?t.length:0,r=n-1;n--;){var o=t[n];if(n==r||o!==i){var i=o;vi(o)?We.call(e,o,1):ho(e,o)}}return e}function Kr(e,t){return e+gt(En()*(t-e+1))}function Wr(e,t){var n=\"\";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=gt(t/2))&&(e+=e)}while(t);return n}function Zr(e,t){return Ti(ki(e,t,oc),e+\"\")}function Yr(e){return Yn(_a(e))}function Xr(e,t){var n=_a(e);return Fi(n,cr(t,0,n.length))}function eo(e,t,n,r){if(!ta(e))return e;for(var i=-1,s=(t=Ao(t,e)).length,a=s-1,c=e;null!=c&&++i<s;){var u=ji(t[i]),f=n;if(\"__proto__\"===u||\"constructor\"===u||\"prototype\"===u)return e;if(i!=a){var l=c[u];(f=r?r(l,u,c):o)===o&&(f=ta(l)?l:vi(t[i+1])?[]:{})}nr(c,u,f),c=c[u]}return e}var to=Nn?function(e,t){return Nn.set(e,t),e}:oc,no=nt?function(e,t){return nt(e,\"toString\",{configurable:!0,enumerable:!1,value:tc(t),writable:!0})}:oc;function ro(e){return Fi(_a(e))}function oo(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),(n=n>i?i:n)<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var s=r(i);++o<i;)s[o]=e[o+t];return s}function io(e,t){var n;return hr(e,function(e,r,o){return!(n=t(e,r,o))}),!!n}function so(e,t,n){var r=0,o=null==e?r:e.length;if(\"number\"==typeof t&&t==t&&o<=2147483647){for(;r<o;){var i=r+o>>>1,s=e[i];null!==s&&!ua(s)&&(n?s<=t:s<t)?r=i+1:o=i}return o}return ao(e,t,oc,n)}function ao(e,t,n,r){var i=0,s=null==e?0:e.length;if(0===s)return 0;for(var a=(t=n(t))!=t,c=null===t,u=ua(t),f=t===o;i<s;){var l=gt((i+s)/2),d=n(e[l]),h=d!==o,p=null===d,b=d==d,g=ua(d);if(a)var y=r||b;else y=f?b&&(r||h):c?b&&h&&(r||!p):u?b&&h&&!p&&(r||!g):!p&&!g&&(r?d<=t:d<t);y?i=l+1:s=l}return vn(s,4294967294)}function co(e,t){for(var n=-1,r=e.length,o=0,i=[];++n<r;){var s=e[n],a=t?t(s):s;if(!n||!_s(a,c)){var c=a;i[o++]=0===s?0:s}}return i}function uo(e){return\"number\"==typeof e?e:ua(e)?b:+e}function fo(e){if(\"string\"==typeof e)return e;if(Hs(e))return Rt(e,fo)+\"\";if(ua(e))return Dn?Dn.call(e):\"\";var t=e+\"\";return\"0\"==t&&1/e==-1/0?\"-0\":t}function lo(e,t,n){var r=-1,o=Tt,i=e.length,s=!0,a=[],c=a;if(n)s=!1,o=Ut;else if(i>=200){var u=t?null:Zo(e);if(u)return dn(u);s=!1,o=tn,c=new Kn}else c=t?[]:a;e:for(;++r<i;){var f=e[r],l=t?t(f):f;if(f=n||0!==f?f:0,s&&l==l){for(var d=c.length;d--;)if(c[d]===l)continue e;t&&c.push(l),a.push(f)}else o(c,l,n)||(c!==a&&c.push(l),a.push(f))}return a}function ho(e,t){return null==(e=Mi(e,t=Ao(t,e)))||delete e[ji(Zi(t))]}function po(e,t,n,r){return eo(e,t,n(Br(e,t)),r)}function bo(e,t,n,r){for(var o=e.length,i=r?o:-1;(r?i--:++i<o)&&t(e[i],i,e););return n?oo(e,r?0:i,r?i+1:o):oo(e,r?i+1:0,r?o:i)}function go(e,t){var n=e;return n instanceof Hn&&(n=n.value()),zt(t,function(e,t){return t.func.apply(t.thisArg,Ft([e],t.args))},n)}function yo(e,t,n){var o=e.length;if(o<2)return o?lo(e[0]):[];for(var i=-1,s=r(o);++i<o;)for(var a=e[i],c=-1;++c<o;)c!=i&&(s[i]=dr(s[i]||a,e[c],t,n));return lo(mr(s,1),t,n)}function mo(e,t,n){for(var r=-1,i=e.length,s=t.length,a={};++r<i;){var c=r<s?t[r]:o;n(a,e[r],c)}return a}function wo(e){return Js(e)?e:[]}function vo(e){return\"function\"==typeof e?e:oc}function Ao(e,t){return Hs(e)?e:xi(e,t)?[e]:zi(wa(e))}var xo=Zr;function Eo(e,t,n){var r=e.length;return n=n===o?r:n,!t&&n>=r?e:oo(e,t,n)}var Bo=ot||function(e){return bt.clearTimeout(e)};function Po(e,t){if(t)return e.slice();var n=e.length,r=qe?qe(n):new e.constructor(n);return e.copy(r),r}function Io(e){var t=new e.constructor(e.byteLength);return new He(t).set(new He(e)),t}function Co(e,t){var n=t?Io(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function ko(e,t){if(e!==t){var n=e!==o,r=null===e,i=e==e,s=ua(e),a=t!==o,c=null===t,u=t==t,f=ua(t);if(!c&&!f&&!s&&e>t||s&&a&&u&&!c&&!f||r&&a&&u||!n&&u||!i)return 1;if(!r&&!s&&!f&&e<t||f&&n&&i&&!r&&!s||c&&n&&i||!a&&i||!u)return-1}return 0}function Mo(e,t,n,o){for(var i=-1,s=e.length,a=n.length,c=-1,u=t.length,f=wn(s-a,0),l=r(u+f),d=!o;++c<u;)l[c]=t[c];for(;++i<a;)(d||i<s)&&(l[n[i]]=e[i]);for(;f--;)l[c++]=e[i++];return l}function Oo(e,t,n,o){for(var i=-1,s=e.length,a=-1,c=n.length,u=-1,f=t.length,l=wn(s-c,0),d=r(l+f),h=!o;++i<l;)d[i]=e[i];for(var p=i;++u<f;)d[p+u]=t[u];for(;++a<c;)(h||i<s)&&(d[p+n[a]]=e[i++]);return d}function No(e,t){var n=-1,o=e.length;for(t||(t=r(o));++n<o;)t[n]=e[n];return t}function So(e,t,n,r){var i=!n;n||(n={});for(var s=-1,a=t.length;++s<a;){var c=t[s],u=r?r(n[c],e[c],c,n,e):o;u===o&&(u=e[c]),i?sr(n,c,u):nr(n,c,u)}return n}function To(e,t){return function(n,r){var o=Hs(n)?kt:or,i=t?t():{};return o(n,e,fi(r,2),i)}}function Uo(e){return Zr(function(t,n){var r=-1,i=n.length,s=i>1?n[i-1]:o,a=i>2?n[2]:o;for(s=e.length>3&&\"function\"==typeof s?(i--,s):o,a&&Ai(n[0],n[1],a)&&(s=i<3?o:s,i=1),t=Ce(t);++r<i;){var c=n[r];c&&e(t,c,r,s)}return t})}function Ro(e,t){return function(n,r){if(null==n)return n;if(!Vs(n))return e(n,r);for(var o=n.length,i=t?o:-1,s=Ce(n);(t?i--:++i<o)&&!1!==r(s[i],i,s););return n}}function Fo(e){return function(t,n,r){for(var o=-1,i=Ce(t),s=r(t),a=s.length;a--;){var c=s[e?a:++o];if(!1===n(i[c],c,i))break}return t}}function zo(e){return function(t){var n=cn(t=wa(t))?bn(t):o,r=n?n[0]:t.charAt(0),i=n?Eo(n,1).join(\"\"):t.slice(1);return r[e]()+i}}function jo(e){return function(t){return zt(Ya(Qa(t).replace(et,\"\")),e,\"\")}}function Lo(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=$n(e.prototype),r=e.apply(n,t);return ta(r)?r:n}}function Do(e){return function(t,n,r){var i=Ce(t);if(!Vs(t)){var s=fi(n,3);t=Sa(t),n=function(e){return s(i[e],e,i)}}var a=e(t,n,r);return a>-1?i[s?t[a]:a]:o}}function _o(e){return oi(function(t){var n=t.length,r=n,s=Qn.prototype.thru;for(e&&t.reverse();r--;){var a=t[r];if(\"function\"!=typeof a)throw new Oe(i);if(s&&!c&&\"wrapper\"==ci(a))var c=new Qn([],!0)}for(r=c?r:n;++r<n;){var u=ci(a=t[r]),f=\"wrapper\"==u?ai(a):o;c=f&&Ei(f[0])&&424==f[1]&&!f[4].length&&1==f[9]?c[ci(f[0])].apply(c,f[3]):1==a.length&&Ei(a)?c[u]():c.thru(a)}return function(){var e=arguments,r=e[0];if(c&&1==e.length&&Hs(r))return c.plant(r).value();for(var o=0,i=n?t[o].apply(this,e):r;++o<n;)i=t[o].call(this,i);return i}})}function $o(e,t,n,i,s,a,c,u,f,d){var h=t&l,p=1&t,b=2&t,g=24&t,y=512&t,m=b?o:Lo(e);return function l(){for(var w=arguments.length,v=r(w),A=w;A--;)v[A]=arguments[A];if(g)var x=ui(l),E=function(e,t){for(var n=e.length,r=0;n--;)e[n]===t&&++r;return r}(v,x);if(i&&(v=Mo(v,i,s,g)),a&&(v=Oo(v,a,c,g)),w-=E,g&&w<d){var B=ln(v,x);return Ko(e,t,$o,l.placeholder,n,v,B,u,f,d-w)}var P=p?n:this,I=b?P[e]:e;return w=v.length,u?v=function(e,t){var n=e.length,r=vn(t.length,n),i=No(e);for(;r--;){var s=t[r];e[r]=vi(s,n)?i[s]:o}return e}(v,u):y&&w>1&&v.reverse(),h&&f<w&&(v.length=f),this&&this!==bt&&this instanceof l&&(I=m||Lo(I)),I.apply(P,v)}}function Go(e,t){return function(n,r){return function(e,t,n,r){return Ar(e,function(e,o,i){t(r,n(e),o,i)}),r}(n,e,t(r),{})}}function Qo(e,t){return function(n,r){var i;if(n===o&&r===o)return t;if(n!==o&&(i=n),r!==o){if(i===o)return r;\"string\"==typeof n||\"string\"==typeof r?(n=fo(n),r=fo(r)):(n=uo(n),r=uo(r)),i=e(n,r)}return i}}function Ho(e){return oi(function(t){return t=Rt(t,Xt(fi())),Zr(function(n){var r=this;return e(t,function(e){return Ct(e,r,n)})})})}function qo(e,t){var n=(t=t===o?\" \":fo(t)).length;if(n<2)return n?Wr(t,e):t;var r=Wr(t,pt(e/pn(t)));return cn(t)?Eo(bn(r),0,e).join(\"\"):r.slice(0,e)}function Vo(e){return function(t,n,i){return i&&\"number\"!=typeof i&&Ai(t,n,i)&&(n=i=o),t=pa(t),n===o?(n=t,t=0):n=pa(n),function(e,t,n,o){for(var i=-1,s=wn(pt((t-e)/(n||1)),0),a=r(s);s--;)a[o?s:++i]=e,e+=n;return a}(t,n,i=i===o?t<n?1:-1:pa(i),e)}}function Jo(e){return function(t,n){return\"string\"==typeof t&&\"string\"==typeof n||(t=ya(t),n=ya(n)),e(t,n)}}function Ko(e,t,n,r,i,s,a,c,l,d){var h=8&t;t|=h?u:f,4&(t&=~(h?f:u))||(t&=-4);var p=[e,t,i,h?s:o,h?a:o,h?o:s,h?o:a,c,l,d],b=n.apply(o,p);return Ei(e)&&Ni(b,p),b.placeholder=r,Ui(b,e,t)}function Wo(e){var t=Ie[e];return function(e,n){if(e=ya(e),(n=null==n?0:vn(ba(n),292))&&vt(e)){var r=(wa(e)+\"e\").split(\"e\");return+((r=(wa(t(r[0]+\"e\"+(+r[1]+n)))+\"e\").split(\"e\"))[0]+\"e\"+(+r[1]-n))}return t(e)}}var Zo=kn&&1/dn(new kn([,-0]))[1]==h?function(e){return new kn(e)}:uc;function Yo(e){return function(t){var n=gi(t);return n==P?un(t):n==O?hn(t):function(e,t){return Rt(t,function(t){return[t,e[t]]})}(t,e(t))}}function Xo(e,t,n,s,h,p,b,g){var y=2&t;if(!y&&\"function\"!=typeof e)throw new Oe(i);var m=s?s.length:0;if(m||(t&=-97,s=h=o),b=b===o?b:wn(ba(b),0),g=g===o?g:ba(g),m-=h?h.length:0,t&f){var w=s,v=h;s=h=o}var A=y?o:ai(e),x=[e,t,n,s,h,w,v,p,b,g];if(A&&function(e,t){var n=e[1],r=t[1],o=n|r,i=o<131,s=r==l&&8==n||r==l&&n==d&&e[7].length<=t[8]||384==r&&t[7].length<=t[8]&&8==n;if(!i&&!s)return e;1&r&&(e[2]=t[2],o|=1&n?0:4);var c=t[3];if(c){var u=e[3];e[3]=u?Mo(u,c,t[4]):c,e[4]=u?ln(e[3],a):t[4]}(c=t[5])&&(u=e[5],e[5]=u?Oo(u,c,t[6]):c,e[6]=u?ln(e[5],a):t[6]);(c=t[7])&&(e[7]=c);r&l&&(e[8]=null==e[8]?t[8]:vn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=o}(x,A),e=x[0],t=x[1],n=x[2],s=x[3],h=x[4],!(g=x[9]=x[9]===o?y?0:e.length:wn(x[9]-m,0))&&24&t&&(t&=-25),t&&1!=t)E=8==t||t==c?function(e,t,n){var i=Lo(e);return function s(){for(var a=arguments.length,c=r(a),u=a,f=ui(s);u--;)c[u]=arguments[u];var l=a<3&&c[0]!==f&&c[a-1]!==f?[]:ln(c,f);return(a-=l.length)<n?Ko(e,t,$o,s.placeholder,o,c,l,o,o,n-a):Ct(this&&this!==bt&&this instanceof s?i:e,this,c)}}(e,t,g):t!=u&&33!=t||h.length?$o.apply(o,x):function(e,t,n,o){var i=1&t,s=Lo(e);return function t(){for(var a=-1,c=arguments.length,u=-1,f=o.length,l=r(f+c),d=this&&this!==bt&&this instanceof t?s:e;++u<f;)l[u]=o[u];for(;c--;)l[u++]=arguments[++a];return Ct(d,i?n:this,l)}}(e,t,n,s);else var E=function(e,t,n){var r=1&t,o=Lo(e);return function t(){return(this&&this!==bt&&this instanceof t?o:e).apply(r?n:this,arguments)}}(e,t,n);return Ui((A?to:Ni)(E,x),e,t)}function ei(e,t,n,r){return e===o||_s(e,Te[n])&&!Fe.call(r,n)?t:e}function ti(e,t,n,r,i,s){return ta(e)&&ta(t)&&(s.set(t,e),Gr(e,t,o,ti,s),s.delete(t)),e}function ni(e){return ia(e)?o:e}function ri(e,t,n,r,i,s){var a=1&n,c=e.length,u=t.length;if(c!=u&&!(a&&u>c))return!1;var f=s.get(e),l=s.get(t);if(f&&l)return f==t&&l==e;var d=-1,h=!0,p=2&n?new Kn:o;for(s.set(e,t),s.set(t,e);++d<c;){var b=e[d],g=t[d];if(r)var y=a?r(g,b,d,t,e,s):r(b,g,d,e,t,s);if(y!==o){if(y)continue;h=!1;break}if(p){if(!Lt(t,function(e,t){if(!tn(p,t)&&(b===e||i(b,e,n,r,s)))return p.push(t)})){h=!1;break}}else if(b!==g&&!i(b,g,n,r,s)){h=!1;break}}return s.delete(e),s.delete(t),h}function oi(e){return Ti(ki(e,o,qi),e+\"\")}function ii(e){return Pr(e,Sa,pi)}function si(e){return Pr(e,Ta,bi)}var ai=Nn?function(e){return Nn.get(e)}:uc;function ci(e){for(var t=e.name+\"\",n=Sn[t],r=Fe.call(Sn,t)?n.length:0;r--;){var o=n[r],i=o.func;if(null==i||i==e)return o.name}return t}function ui(e){return(Fe.call(_n,\"placeholder\")?_n:e).placeholder}function fi(){var e=_n.iteratee||ic;return e=e===ic?Fr:e,arguments.length?e(arguments[0],arguments[1]):e}function li(e,t){var n=e.__data__;return function(e){var t=typeof e;return\"string\"==t||\"number\"==t||\"symbol\"==t||\"boolean\"==t?\"__proto__\"!==e:null===e}(t)?n[\"string\"==typeof t?\"string\":\"hash\"]:n.map}function di(e){for(var t=Sa(e),n=t.length;n--;){var r=t[n],o=e[r];t[n]=[r,o,Ii(o)]}return t}function hi(e,t){var n=function(e,t){return null==e?o:e[t]}(e,t);return Rr(n)?n:o}var pi=yt?function(e){return null==e?[]:(e=Ce(e),St(yt(e),function(t){return Ke.call(e,t)}))}:gc,bi=yt?function(e){for(var t=[];e;)Ft(t,pi(e)),e=Ve(e);return t}:gc,gi=Ir;function yi(e,t,n){for(var r=-1,o=(t=Ao(t,e)).length,i=!1;++r<o;){var s=ji(t[r]);if(!(i=null!=e&&n(e,s)))break;e=e[s]}return i||++r!=o?i:!!(o=null==e?0:e.length)&&ea(o)&&vi(s,o)&&(Hs(e)||Qs(e))}function mi(e){return\"function\"!=typeof e.constructor||Pi(e)?{}:$n(Ve(e))}function wi(e){return Hs(e)||Qs(e)||!!(Ze&&e&&e[Ze])}function vi(e,t){var n=typeof e;return!!(t=null==t?p:t)&&(\"number\"==n||\"symbol\"!=n&&ve.test(e))&&e>-1&&e%1==0&&e<t}function Ai(e,t,n){if(!ta(n))return!1;var r=typeof t;return!!(\"number\"==r?Vs(n)&&vi(t,n.length):\"string\"==r&&t in n)&&_s(n[t],e)}function xi(e,t){if(Hs(e))return!1;var n=typeof e;return!(\"number\"!=n&&\"symbol\"!=n&&\"boolean\"!=n&&null!=e&&!ua(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ce(t))}function Ei(e){var t=ci(e),n=_n[t];if(\"function\"!=typeof n||!(t in Hn.prototype))return!1;if(e===n)return!0;var r=ai(n);return!!r&&e===r[0]}(Pn&&gi(new Pn(new ArrayBuffer(1)))!=R||In&&gi(new In)!=P||Cn&&gi(Cn.resolve())!=k||kn&&gi(new kn)!=O||Mn&&gi(new Mn)!=T)&&(gi=function(e){var t=Ir(e),n=t==C?e.constructor:o,r=n?Li(n):\"\";if(r)switch(r){case Tn:return R;case Un:return P;case Rn:return k;case Fn:return O;case zn:return T}return t});var Bi=Ue?Ys:yc;function Pi(e){var t=e&&e.constructor;return e===(\"function\"==typeof t&&t.prototype||Te)}function Ii(e){return e==e&&!ta(e)}function Ci(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==o||e in Ce(n)))}}function ki(e,t,n){return t=wn(t===o?e.length-1:t,0),function(){for(var o=arguments,i=-1,s=wn(o.length-t,0),a=r(s);++i<s;)a[i]=o[t+i];i=-1;for(var c=r(t+1);++i<t;)c[i]=o[i];return c[t]=n(a),Ct(e,this,c)}}function Mi(e,t){return t.length<2?e:Br(e,oo(t,0,-1))}function Oi(e,t){if((\"constructor\"!==t||\"function\"!=typeof e[t])&&\"__proto__\"!=t)return e[t]}var Ni=Ri(to),Si=ht||function(e,t){return bt.setTimeout(e,t)},Ti=Ri(no);function Ui(e,t,n){var r=t+\"\";return Ti(e,function(e,t){var n=t.length;if(!n)return e;var r=n-1;return t[r]=(n>1?\"& \":\"\")+t[r],t=t.join(n>2?\", \":\" \"),e.replace(ce,\"{\\n/* [wrapped with \"+t+\"] */\\n\")}(r,function(e,t){return Mt(y,function(n){var r=\"_.\"+n[0];t&n[1]&&!Tt(e,r)&&e.push(r)}),e.sort()}(function(e){var t=e.match(ue);return t?t[1].split(fe):[]}(r),n)))}function Ri(e){var t=0,n=0;return function(){var r=An(),i=16-(r-n);if(n=r,i>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(o,arguments)}}function Fi(e,t){var n=-1,r=e.length,i=r-1;for(t=t===o?r:t;++n<t;){var s=Kr(n,i),a=e[s];e[s]=e[n],e[n]=a}return e.length=t,e}var zi=function(e){var t=Rs(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(\"\"),e.replace(re,function(e,n,r,o){t.push(r?o.replace(he,\"$1\"):n||e)}),t});function ji(e){if(\"string\"==typeof e||ua(e))return e;var t=e+\"\";return\"0\"==t&&1/e==-1/0?\"-0\":t}function Li(e){if(null!=e){try{return Re.call(e)}catch(e){}try{return e+\"\"}catch(e){}}return\"\"}function Di(e){if(e instanceof Hn)return e.clone();var t=new Qn(e.__wrapped__,e.__chain__);return t.__actions__=No(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var _i=Zr(function(e,t){return Js(e)?dr(e,mr(t,1,Js,!0)):[]}),$i=Zr(function(e,t){var n=Zi(t);return Js(n)&&(n=o),Js(e)?dr(e,mr(t,1,Js,!0),fi(n,2)):[]}),Gi=Zr(function(e,t){var n=Zi(t);return Js(n)&&(n=o),Js(e)?dr(e,mr(t,1,Js,!0),o,n):[]});function Qi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ba(n);return o<0&&(o=wn(r+o,0)),$t(e,fi(t,3),o)}function Hi(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r-1;return n!==o&&(i=ba(n),i=n<0?wn(r+i,0):vn(i,r-1)),$t(e,fi(t,3),i,!0)}function qi(e){return(null==e?0:e.length)?mr(e,1):[]}function Vi(e){return e&&e.length?e[0]:o}var Ji=Zr(function(e){var t=Rt(e,wo);return t.length&&t[0]===e[0]?Or(t):[]}),Ki=Zr(function(e){var t=Zi(e),n=Rt(e,wo);return t===Zi(n)?t=o:n.pop(),n.length&&n[0]===e[0]?Or(n,fi(t,2)):[]}),Wi=Zr(function(e){var t=Zi(e),n=Rt(e,wo);return(t=\"function\"==typeof t?t:o)&&n.pop(),n.length&&n[0]===e[0]?Or(n,o,t):[]});function Zi(e){var t=null==e?0:e.length;return t?e[t-1]:o}var Yi=Zr(Xi);function Xi(e,t){return e&&e.length&&t&&t.length?Vr(e,t):e}var es=oi(function(e,t){var n=null==e?0:e.length,r=ar(e,t);return Jr(e,Rt(t,function(e){return vi(e,n)?+e:e}).sort(ko)),r});function ts(e){return null==e?e:Bn.call(e)}var ns=Zr(function(e){return lo(mr(e,1,Js,!0))}),rs=Zr(function(e){var t=Zi(e);return Js(t)&&(t=o),lo(mr(e,1,Js,!0),fi(t,2))}),os=Zr(function(e){var t=Zi(e);return t=\"function\"==typeof t?t:o,lo(mr(e,1,Js,!0),o,t)});function is(e){if(!e||!e.length)return[];var t=0;return e=St(e,function(e){if(Js(e))return t=wn(e.length,t),!0}),Zt(t,function(t){return Rt(e,Vt(t))})}function ss(e,t){if(!e||!e.length)return[];var n=is(e);return null==t?n:Rt(n,function(e){return Ct(t,o,e)})}var as=Zr(function(e,t){return Js(e)?dr(e,t):[]}),cs=Zr(function(e){return yo(St(e,Js))}),us=Zr(function(e){var t=Zi(e);return Js(t)&&(t=o),yo(St(e,Js),fi(t,2))}),fs=Zr(function(e){var t=Zi(e);return t=\"function\"==typeof t?t:o,yo(St(e,Js),o,t)}),ls=Zr(is);var ds=Zr(function(e){var t=e.length,n=t>1?e[t-1]:o;return n=\"function\"==typeof n?(e.pop(),n):o,ss(e,n)});function hs(e){var t=_n(e);return t.__chain__=!0,t}function ps(e,t){return t(e)}var bs=oi(function(e){var t=e.length,n=t?e[0]:0,r=this.__wrapped__,i=function(t){return ar(t,e)};return!(t>1||this.__actions__.length)&&r instanceof Hn&&vi(n)?((r=r.slice(n,+n+(t?1:0))).__actions__.push({func:ps,args:[i],thisArg:o}),new Qn(r,this.__chain__).thru(function(e){return t&&!e.length&&e.push(o),e})):this.thru(i)});var gs=To(function(e,t,n){Fe.call(e,n)?++e[n]:sr(e,n,1)});var ys=Do(Qi),ms=Do(Hi);function ws(e,t){return(Hs(e)?Mt:hr)(e,fi(t,3))}function vs(e,t){return(Hs(e)?Ot:pr)(e,fi(t,3))}var As=To(function(e,t,n){Fe.call(e,n)?e[n].push(t):sr(e,n,[t])});var xs=Zr(function(e,t,n){var o=-1,i=\"function\"==typeof t,s=Vs(e)?r(e.length):[];return hr(e,function(e){s[++o]=i?Ct(t,e,n):Nr(e,t,n)}),s}),Es=To(function(e,t,n){sr(e,n,t)});function Bs(e,t){return(Hs(e)?Rt:Dr)(e,fi(t,3))}var Ps=To(function(e,t,n){e[n?0:1].push(t)},function(){return[[],[]]});var Is=Zr(function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ai(e,t[0],t[1])?t=[]:n>2&&Ai(t[0],t[1],t[2])&&(t=[t[0]]),Hr(e,mr(t,1),[])}),Cs=ft||function(){return bt.Date.now()};function ks(e,t,n){return t=n?o:t,t=e&&null==t?e.length:t,Xo(e,l,o,o,o,o,t)}function Ms(e,t){var n;if(\"function\"!=typeof t)throw new Oe(i);return e=ba(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=o),n}}var Os=Zr(function(e,t,n){var r=1;if(n.length){var o=ln(n,ui(Os));r|=u}return Xo(e,r,t,n,o)}),Ns=Zr(function(e,t,n){var r=3;if(n.length){var o=ln(n,ui(Ns));r|=u}return Xo(t,r,e,n,o)});function Ss(e,t,n){var r,s,a,c,u,f,l=0,d=!1,h=!1,p=!0;if(\"function\"!=typeof e)throw new Oe(i);function b(t){var n=r,i=s;return r=s=o,l=t,c=e.apply(i,n)}function g(e){var n=e-f;return f===o||n>=t||n<0||h&&e-l>=a}function y(){var e=Cs();if(g(e))return m(e);u=Si(y,function(e){var n=t-(e-f);return h?vn(n,a-(e-l)):n}(e))}function m(e){return u=o,p&&r?b(e):(r=s=o,c)}function w(){var e=Cs(),n=g(e);if(r=arguments,s=this,f=e,n){if(u===o)return function(e){return l=e,u=Si(y,t),d?b(e):c}(f);if(h)return Bo(u),u=Si(y,t),b(f)}return u===o&&(u=Si(y,t)),c}return t=ya(t)||0,ta(n)&&(d=!!n.leading,a=(h=\"maxWait\"in n)?wn(ya(n.maxWait)||0,t):a,p=\"trailing\"in n?!!n.trailing:p),w.cancel=function(){u!==o&&Bo(u),l=0,r=f=s=u=o},w.flush=function(){return u===o?c:m(Cs())},w}var Ts=Zr(function(e,t){return lr(e,1,t)}),Us=Zr(function(e,t,n){return lr(e,ya(t)||0,n)});function Rs(e,t){if(\"function\"!=typeof e||null!=t&&\"function\"!=typeof t)throw new Oe(i);var n=function(){var r=arguments,o=t?t.apply(this,r):r[0],i=n.cache;if(i.has(o))return i.get(o);var s=e.apply(this,r);return n.cache=i.set(o,s)||i,s};return n.cache=new(Rs.Cache||Jn),n}function Fs(e){if(\"function\"!=typeof e)throw new Oe(i);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Rs.Cache=Jn;var zs=xo(function(e,t){var n=(t=1==t.length&&Hs(t[0])?Rt(t[0],Xt(fi())):Rt(mr(t,1),Xt(fi()))).length;return Zr(function(r){for(var o=-1,i=vn(r.length,n);++o<i;)r[o]=t[o].call(this,r[o]);return Ct(e,this,r)})}),js=Zr(function(e,t){var n=ln(t,ui(js));return Xo(e,u,o,t,n)}),Ls=Zr(function(e,t){var n=ln(t,ui(Ls));return Xo(e,f,o,t,n)}),Ds=oi(function(e,t){return Xo(e,d,o,o,o,t)});function _s(e,t){return e===t||e!=e&&t!=t}var $s=Jo(Cr),Gs=Jo(function(e,t){return e>=t}),Qs=Sr(function(){return arguments}())?Sr:function(e){return na(e)&&Fe.call(e,\"callee\")&&!Ke.call(e,\"callee\")},Hs=r.isArray,qs=At?Xt(At):function(e){return na(e)&&Ir(e)==U};function Vs(e){return null!=e&&ea(e.length)&&!Ys(e)}function Js(e){return na(e)&&Vs(e)}var Ks=wt||yc,Ws=xt?Xt(xt):function(e){return na(e)&&Ir(e)==A};function Zs(e){if(!na(e))return!1;var t=Ir(e);return t==x||\"[object DOMException]\"==t||\"string\"==typeof e.message&&\"string\"==typeof e.name&&!ia(e)}function Ys(e){if(!ta(e))return!1;var t=Ir(e);return t==E||t==B||\"[object AsyncFunction]\"==t||\"[object Proxy]\"==t}function Xs(e){return\"number\"==typeof e&&e==ba(e)}function ea(e){return\"number\"==typeof e&&e>-1&&e%1==0&&e<=p}function ta(e){var t=typeof e;return null!=e&&(\"object\"==t||\"function\"==t)}function na(e){return null!=e&&\"object\"==typeof e}var ra=Et?Xt(Et):function(e){return na(e)&&gi(e)==P};function oa(e){return\"number\"==typeof e||na(e)&&Ir(e)==I}function ia(e){if(!na(e)||Ir(e)!=C)return!1;var t=Ve(e);if(null===t)return!0;var n=Fe.call(t,\"constructor\")&&t.constructor;return\"function\"==typeof n&&n instanceof n&&Re.call(n)==De}var sa=Bt?Xt(Bt):function(e){return na(e)&&Ir(e)==M};var aa=Pt?Xt(Pt):function(e){return na(e)&&gi(e)==O};function ca(e){return\"string\"==typeof e||!Hs(e)&&na(e)&&Ir(e)==N}function ua(e){return\"symbol\"==typeof e||na(e)&&Ir(e)==S}var fa=It?Xt(It):function(e){return na(e)&&ea(e.length)&&!!ct[Ir(e)]};var la=Jo(Lr),da=Jo(function(e,t){return e<=t});function ha(e){if(!e)return[];if(Vs(e))return ca(e)?bn(e):No(e);if(Ye&&e[Ye])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[Ye]());var t=gi(e);return(t==P?un:t==O?dn:_a)(e)}function pa(e){return e?(e=ya(e))===h||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function ba(e){var t=pa(e),n=t%1;return t==t?n?t-n:t:0}function ga(e){return e?cr(ba(e),0,g):0}function ya(e){if(\"number\"==typeof e)return e;if(ua(e))return b;if(ta(e)){var t=\"function\"==typeof e.valueOf?e.valueOf():e;e=ta(t)?t+\"\":t}if(\"string\"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=ye.test(e);return n||we.test(e)?dt(e.slice(2),n?2:8):ge.test(e)?b:+e}function ma(e){return So(e,Ta(e))}function wa(e){return null==e?\"\":fo(e)}var va=Uo(function(e,t){if(Pi(t)||Vs(t))So(t,Sa(t),e);else for(var n in t)Fe.call(t,n)&&nr(e,n,t[n])}),Aa=Uo(function(e,t){So(t,Ta(t),e)}),xa=Uo(function(e,t,n,r){So(t,Ta(t),e,r)}),Ea=Uo(function(e,t,n,r){So(t,Sa(t),e,r)}),Ba=oi(ar);var Pa=Zr(function(e,t){e=Ce(e);var n=-1,r=t.length,i=r>2?t[2]:o;for(i&&Ai(t[0],t[1],i)&&(r=1);++n<r;)for(var s=t[n],a=Ta(s),c=-1,u=a.length;++c<u;){var f=a[c],l=e[f];(l===o||_s(l,Te[f])&&!Fe.call(e,f))&&(e[f]=s[f])}return e}),Ia=Zr(function(e){return e.push(o,ti),Ct(Ra,o,e)});function Ca(e,t,n){var r=null==e?o:Br(e,t);return r===o?n:r}function ka(e,t){return null!=e&&yi(e,t,Mr)}var Ma=Go(function(e,t,n){null!=t&&\"function\"!=typeof t.toString&&(t=Le.call(t)),e[t]=n},tc(oc)),Oa=Go(function(e,t,n){null!=t&&\"function\"!=typeof t.toString&&(t=Le.call(t)),Fe.call(e,t)?e[t].push(n):e[t]=[n]},fi),Na=Zr(Nr);function Sa(e){return Vs(e)?Zn(e):zr(e)}function Ta(e){return Vs(e)?Zn(e,!0):jr(e)}var Ua=Uo(function(e,t,n){Gr(e,t,n)}),Ra=Uo(function(e,t,n,r){Gr(e,t,n,r)}),Fa=oi(function(e,t){var n={};if(null==e)return n;var r=!1;t=Rt(t,function(t){return t=Ao(t,e),r||(r=t.length>1),t}),So(e,si(e),n),r&&(n=ur(n,7,ni));for(var o=t.length;o--;)ho(n,t[o]);return n});var za=oi(function(e,t){return null==e?{}:function(e,t){return qr(e,t,function(t,n){return ka(e,n)})}(e,t)});function ja(e,t){if(null==e)return{};var n=Rt(si(e),function(e){return[e]});return t=fi(t),qr(e,n,function(e,n){return t(e,n[0])})}var La=Yo(Sa),Da=Yo(Ta);function _a(e){return null==e?[]:en(e,Sa(e))}var $a=jo(function(e,t,n){return t=t.toLowerCase(),e+(n?Ga(t):t)});function Ga(e){return Za(wa(e).toLowerCase())}function Qa(e){return(e=wa(e))&&e.replace(Ae,on).replace(tt,\"\")}var Ha=jo(function(e,t,n){return e+(n?\"-\":\"\")+t.toLowerCase()}),qa=jo(function(e,t,n){return e+(n?\" \":\"\")+t.toLowerCase()}),Va=zo(\"toLowerCase\");var Ja=jo(function(e,t,n){return e+(n?\"_\":\"\")+t.toLowerCase()});var Ka=jo(function(e,t,n){return e+(n?\" \":\"\")+Za(t)});var Wa=jo(function(e,t,n){return e+(n?\" \":\"\")+t.toUpperCase()}),Za=zo(\"toUpperCase\");function Ya(e,t,n){return e=wa(e),(t=n?o:t)===o?function(e){return it.test(e)}(e)?function(e){return e.match(rt)||[]}(e):function(e){return e.match(le)||[]}(e):e.match(t)||[]}var Xa=Zr(function(e,t){try{return Ct(e,o,t)}catch(e){return Zs(e)?e:new Be(e)}}),ec=oi(function(e,t){return Mt(t,function(t){t=ji(t),sr(e,t,Os(e[t],e))}),e});function tc(e){return function(){return e}}var nc=_o(),rc=_o(!0);function oc(e){return e}function ic(e){return Fr(\"function\"==typeof e?e:ur(e,1))}var sc=Zr(function(e,t){return function(n){return Nr(n,e,t)}}),ac=Zr(function(e,t){return function(n){return Nr(e,n,t)}});function cc(e,t,n){var r=Sa(t),o=Er(t,r);null!=n||ta(t)&&(o.length||!r.length)||(n=t,t=e,e=this,o=Er(t,Sa(t)));var i=!(ta(n)&&\"chain\"in n&&!n.chain),s=Ys(e);return Mt(o,function(n){var r=t[n];e[n]=r,s&&(e.prototype[n]=function(){var t=this.__chain__;if(i||t){var n=e(this.__wrapped__);return(n.__actions__=No(this.__actions__)).push({func:r,args:arguments,thisArg:e}),n.__chain__=t,n}return r.apply(e,Ft([this.value()],arguments))})}),e}function uc(){}var fc=Ho(Rt),lc=Ho(Nt),dc=Ho(Lt);function hc(e){return xi(e)?Vt(ji(e)):function(e){return function(t){return Br(t,e)}}(e)}var pc=Vo(),bc=Vo(!0);function gc(){return[]}function yc(){return!1}var mc=Qo(function(e,t){return e+t},0),wc=Wo(\"ceil\"),vc=Qo(function(e,t){return e/t},1),Ac=Wo(\"floor\");var xc,Ec=Qo(function(e,t){return e*t},1),Bc=Wo(\"round\"),Pc=Qo(function(e,t){return e-t},0);return _n.after=function(e,t){if(\"function\"!=typeof t)throw new Oe(i);return e=ba(e),function(){if(--e<1)return t.apply(this,arguments)}},_n.ary=ks,_n.assign=va,_n.assignIn=Aa,_n.assignInWith=xa,_n.assignWith=Ea,_n.at=Ba,_n.before=Ms,_n.bind=Os,_n.bindAll=ec,_n.bindKey=Ns,_n.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return Hs(e)?e:[e]},_n.chain=hs,_n.chunk=function(e,t,n){t=(n?Ai(e,t,n):t===o)?1:wn(ba(t),0);var i=null==e?0:e.length;if(!i||t<1)return[];for(var s=0,a=0,c=r(pt(i/t));s<i;)c[a++]=oo(e,s,s+=t);return c},_n.compact=function(e){for(var t=-1,n=null==e?0:e.length,r=0,o=[];++t<n;){var i=e[t];i&&(o[r++]=i)}return o},_n.concat=function(){var e=arguments.length;if(!e)return[];for(var t=r(e-1),n=arguments[0],o=e;o--;)t[o-1]=arguments[o];return Ft(Hs(n)?No(n):[n],mr(t,1))},_n.cond=function(e){var t=null==e?0:e.length,n=fi();return e=t?Rt(e,function(e){if(\"function\"!=typeof e[1])throw new Oe(i);return[n(e[0]),e[1]]}):[],Zr(function(n){for(var r=-1;++r<t;){var o=e[r];if(Ct(o[0],this,n))return Ct(o[1],this,n)}})},_n.conforms=function(e){return function(e){var t=Sa(e);return function(n){return fr(n,e,t)}}(ur(e,1))},_n.constant=tc,_n.countBy=gs,_n.create=function(e,t){var n=$n(e);return null==t?n:ir(n,t)},_n.curry=function e(t,n,r){var i=Xo(t,8,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},_n.curryRight=function e(t,n,r){var i=Xo(t,c,o,o,o,o,o,n=r?o:n);return i.placeholder=e.placeholder,i},_n.debounce=Ss,_n.defaults=Pa,_n.defaultsDeep=Ia,_n.defer=Ts,_n.delay=Us,_n.difference=_i,_n.differenceBy=$i,_n.differenceWith=Gi,_n.drop=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=n||t===o?1:ba(t))<0?0:t,r):[]},_n.dropRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,0,(t=r-(t=n||t===o?1:ba(t)))<0?0:t):[]},_n.dropRightWhile=function(e,t){return e&&e.length?bo(e,fi(t,3),!0,!0):[]},_n.dropWhile=function(e,t){return e&&e.length?bo(e,fi(t,3),!0):[]},_n.fill=function(e,t,n,r){var i=null==e?0:e.length;return i?(n&&\"number\"!=typeof n&&Ai(e,t,n)&&(n=0,r=i),function(e,t,n,r){var i=e.length;for((n=ba(n))<0&&(n=-n>i?0:i+n),(r=r===o||r>i?i:ba(r))<0&&(r+=i),r=n>r?0:ga(r);n<r;)e[n++]=t;return e}(e,t,n,r)):[]},_n.filter=function(e,t){return(Hs(e)?St:yr)(e,fi(t,3))},_n.flatMap=function(e,t){return mr(Bs(e,t),1)},_n.flatMapDeep=function(e,t){return mr(Bs(e,t),h)},_n.flatMapDepth=function(e,t,n){return n=n===o?1:ba(n),mr(Bs(e,t),n)},_n.flatten=qi,_n.flattenDeep=function(e){return(null==e?0:e.length)?mr(e,h):[]},_n.flattenDepth=function(e,t){return(null==e?0:e.length)?mr(e,t=t===o?1:ba(t)):[]},_n.flip=function(e){return Xo(e,512)},_n.flow=nc,_n.flowRight=rc,_n.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,r={};++t<n;){var o=e[t];r[o[0]]=o[1]}return r},_n.functions=function(e){return null==e?[]:Er(e,Sa(e))},_n.functionsIn=function(e){return null==e?[]:Er(e,Ta(e))},_n.groupBy=As,_n.initial=function(e){return(null==e?0:e.length)?oo(e,0,-1):[]},_n.intersection=Ji,_n.intersectionBy=Ki,_n.intersectionWith=Wi,_n.invert=Ma,_n.invertBy=Oa,_n.invokeMap=xs,_n.iteratee=ic,_n.keyBy=Es,_n.keys=Sa,_n.keysIn=Ta,_n.map=Bs,_n.mapKeys=function(e,t){var n={};return t=fi(t,3),Ar(e,function(e,r,o){sr(n,t(e,r,o),e)}),n},_n.mapValues=function(e,t){var n={};return t=fi(t,3),Ar(e,function(e,r,o){sr(n,r,t(e,r,o))}),n},_n.matches=function(e){return _r(ur(e,1))},_n.matchesProperty=function(e,t){return $r(e,ur(t,1))},_n.memoize=Rs,_n.merge=Ua,_n.mergeWith=Ra,_n.method=sc,_n.methodOf=ac,_n.mixin=cc,_n.negate=Fs,_n.nthArg=function(e){return e=ba(e),Zr(function(t){return Qr(t,e)})},_n.omit=Fa,_n.omitBy=function(e,t){return ja(e,Fs(fi(t)))},_n.once=function(e){return Ms(2,e)},_n.orderBy=function(e,t,n,r){return null==e?[]:(Hs(t)||(t=null==t?[]:[t]),Hs(n=r?o:n)||(n=null==n?[]:[n]),Hr(e,t,n))},_n.over=fc,_n.overArgs=zs,_n.overEvery=lc,_n.overSome=dc,_n.partial=js,_n.partialRight=Ls,_n.partition=Ps,_n.pick=za,_n.pickBy=ja,_n.property=hc,_n.propertyOf=function(e){return function(t){return null==e?o:Br(e,t)}},_n.pull=Yi,_n.pullAll=Xi,_n.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,fi(n,2)):e},_n.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Vr(e,t,o,n):e},_n.pullAt=es,_n.range=pc,_n.rangeRight=bc,_n.rearg=Ds,_n.reject=function(e,t){return(Hs(e)?St:yr)(e,Fs(fi(t,3)))},_n.remove=function(e,t){var n=[];if(!e||!e.length)return n;var r=-1,o=[],i=e.length;for(t=fi(t,3);++r<i;){var s=e[r];t(s,r,e)&&(n.push(s),o.push(r))}return Jr(e,o),n},_n.rest=function(e,t){if(\"function\"!=typeof e)throw new Oe(i);return Zr(e,t=t===o?t:ba(t))},_n.reverse=ts,_n.sampleSize=function(e,t,n){return t=(n?Ai(e,t,n):t===o)?1:ba(t),(Hs(e)?Xn:Xr)(e,t)},_n.set=function(e,t,n){return null==e?e:eo(e,t,n)},_n.setWith=function(e,t,n,r){return r=\"function\"==typeof r?r:o,null==e?e:eo(e,t,n,r)},_n.shuffle=function(e){return(Hs(e)?er:ro)(e)},_n.slice=function(e,t,n){var r=null==e?0:e.length;return r?(n&&\"number\"!=typeof n&&Ai(e,t,n)?(t=0,n=r):(t=null==t?0:ba(t),n=n===o?r:ba(n)),oo(e,t,n)):[]},_n.sortBy=Is,_n.sortedUniq=function(e){return e&&e.length?co(e):[]},_n.sortedUniqBy=function(e,t){return e&&e.length?co(e,fi(t,2)):[]},_n.split=function(e,t,n){return n&&\"number\"!=typeof n&&Ai(e,t,n)&&(t=n=o),(n=n===o?g:n>>>0)?(e=wa(e))&&(\"string\"==typeof t||null!=t&&!sa(t))&&!(t=fo(t))&&cn(e)?Eo(bn(e),0,n):e.split(t,n):[]},_n.spread=function(e,t){if(\"function\"!=typeof e)throw new Oe(i);return t=null==t?0:wn(ba(t),0),Zr(function(n){var r=n[t],o=Eo(n,0,t);return r&&Ft(o,r),Ct(e,this,o)})},_n.tail=function(e){var t=null==e?0:e.length;return t?oo(e,1,t):[]},_n.take=function(e,t,n){return e&&e.length?oo(e,0,(t=n||t===o?1:ba(t))<0?0:t):[]},_n.takeRight=function(e,t,n){var r=null==e?0:e.length;return r?oo(e,(t=r-(t=n||t===o?1:ba(t)))<0?0:t,r):[]},_n.takeRightWhile=function(e,t){return e&&e.length?bo(e,fi(t,3),!1,!0):[]},_n.takeWhile=function(e,t){return e&&e.length?bo(e,fi(t,3)):[]},_n.tap=function(e,t){return t(e),e},_n.throttle=function(e,t,n){var r=!0,o=!0;if(\"function\"!=typeof e)throw new Oe(i);return ta(n)&&(r=\"leading\"in n?!!n.leading:r,o=\"trailing\"in n?!!n.trailing:o),Ss(e,t,{leading:r,maxWait:t,trailing:o})},_n.thru=ps,_n.toArray=ha,_n.toPairs=La,_n.toPairsIn=Da,_n.toPath=function(e){return Hs(e)?Rt(e,ji):ua(e)?[e]:No(zi(wa(e)))},_n.toPlainObject=ma,_n.transform=function(e,t,n){var r=Hs(e),o=r||Ks(e)||fa(e);if(t=fi(t,4),null==n){var i=e&&e.constructor;n=o?r?new i:[]:ta(e)&&Ys(i)?$n(Ve(e)):{}}return(o?Mt:Ar)(e,function(e,r,o){return t(n,e,r,o)}),n},_n.unary=function(e){return ks(e,1)},_n.union=ns,_n.unionBy=rs,_n.unionWith=os,_n.uniq=function(e){return e&&e.length?lo(e):[]},_n.uniqBy=function(e,t){return e&&e.length?lo(e,fi(t,2)):[]},_n.uniqWith=function(e,t){return t=\"function\"==typeof t?t:o,e&&e.length?lo(e,o,t):[]},_n.unset=function(e,t){return null==e||ho(e,t)},_n.unzip=is,_n.unzipWith=ss,_n.update=function(e,t,n){return null==e?e:po(e,t,vo(n))},_n.updateWith=function(e,t,n,r){return r=\"function\"==typeof r?r:o,null==e?e:po(e,t,vo(n),r)},_n.values=_a,_n.valuesIn=function(e){return null==e?[]:en(e,Ta(e))},_n.without=as,_n.words=Ya,_n.wrap=function(e,t){return js(vo(t),e)},_n.xor=cs,_n.xorBy=us,_n.xorWith=fs,_n.zip=ls,_n.zipObject=function(e,t){return mo(e||[],t||[],nr)},_n.zipObjectDeep=function(e,t){return mo(e||[],t||[],eo)},_n.zipWith=ds,_n.entries=La,_n.entriesIn=Da,_n.extend=Aa,_n.extendWith=xa,cc(_n,_n),_n.add=mc,_n.attempt=Xa,_n.camelCase=$a,_n.capitalize=Ga,_n.ceil=wc,_n.clamp=function(e,t,n){return n===o&&(n=t,t=o),n!==o&&(n=(n=ya(n))==n?n:0),t!==o&&(t=(t=ya(t))==t?t:0),cr(ya(e),t,n)},_n.clone=function(e){return ur(e,4)},_n.cloneDeep=function(e){return ur(e,5)},_n.cloneDeepWith=function(e,t){return ur(e,5,t=\"function\"==typeof t?t:o)},_n.cloneWith=function(e,t){return ur(e,4,t=\"function\"==typeof t?t:o)},_n.conformsTo=function(e,t){return null==t||fr(e,t,Sa(t))},_n.deburr=Qa,_n.defaultTo=function(e,t){return null==e||e!=e?t:e},_n.divide=vc,_n.endsWith=function(e,t,n){e=wa(e),t=fo(t);var r=e.length,i=n=n===o?r:cr(ba(n),0,r);return(n-=t.length)>=0&&e.slice(n,i)==t},_n.eq=_s,_n.escape=function(e){return(e=wa(e))&&Z.test(e)?e.replace(K,sn):e},_n.escapeRegExp=function(e){return(e=wa(e))&&ie.test(e)?e.replace(oe,\"\\\\$&\"):e},_n.every=function(e,t,n){var r=Hs(e)?Nt:br;return n&&Ai(e,t,n)&&(t=o),r(e,fi(t,3))},_n.find=ys,_n.findIndex=Qi,_n.findKey=function(e,t){return _t(e,fi(t,3),Ar)},_n.findLast=ms,_n.findLastIndex=Hi,_n.findLastKey=function(e,t){return _t(e,fi(t,3),xr)},_n.floor=Ac,_n.forEach=ws,_n.forEachRight=vs,_n.forIn=function(e,t){return null==e?e:wr(e,fi(t,3),Ta)},_n.forInRight=function(e,t){return null==e?e:vr(e,fi(t,3),Ta)},_n.forOwn=function(e,t){return e&&Ar(e,fi(t,3))},_n.forOwnRight=function(e,t){return e&&xr(e,fi(t,3))},_n.get=Ca,_n.gt=$s,_n.gte=Gs,_n.has=function(e,t){return null!=e&&yi(e,t,kr)},_n.hasIn=ka,_n.head=Vi,_n.identity=oc,_n.includes=function(e,t,n,r){e=Vs(e)?e:_a(e),n=n&&!r?ba(n):0;var o=e.length;return n<0&&(n=wn(o+n,0)),ca(e)?n<=o&&e.indexOf(t,n)>-1:!!o&&Gt(e,t,n)>-1},_n.indexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var o=null==n?0:ba(n);return o<0&&(o=wn(r+o,0)),Gt(e,t,o)},_n.inRange=function(e,t,n){return t=pa(t),n===o?(n=t,t=0):n=pa(n),function(e,t,n){return e>=vn(t,n)&&e<wn(t,n)}(e=ya(e),t,n)},_n.invoke=Na,_n.isArguments=Qs,_n.isArray=Hs,_n.isArrayBuffer=qs,_n.isArrayLike=Vs,_n.isArrayLikeObject=Js,_n.isBoolean=function(e){return!0===e||!1===e||na(e)&&Ir(e)==v},_n.isBuffer=Ks,_n.isDate=Ws,_n.isElement=function(e){return na(e)&&1===e.nodeType&&!ia(e)},_n.isEmpty=function(e){if(null==e)return!0;if(Vs(e)&&(Hs(e)||\"string\"==typeof e||\"function\"==typeof e.splice||Ks(e)||fa(e)||Qs(e)))return!e.length;var t=gi(e);if(t==P||t==O)return!e.size;if(Pi(e))return!zr(e).length;for(var n in e)if(Fe.call(e,n))return!1;return!0},_n.isEqual=function(e,t){return Tr(e,t)},_n.isEqualWith=function(e,t,n){var r=(n=\"function\"==typeof n?n:o)?n(e,t):o;return r===o?Tr(e,t,o,n):!!r},_n.isError=Zs,_n.isFinite=function(e){return\"number\"==typeof e&&vt(e)},_n.isFunction=Ys,_n.isInteger=Xs,_n.isLength=ea,_n.isMap=ra,_n.isMatch=function(e,t){return e===t||Ur(e,t,di(t))},_n.isMatchWith=function(e,t,n){return n=\"function\"==typeof n?n:o,Ur(e,t,di(t),n)},_n.isNaN=function(e){return oa(e)&&e!=+e},_n.isNative=function(e){if(Bi(e))throw new Be(\"Unsupported core-js use. Try https://npms.io/search?q=ponyfill.\");return Rr(e)},_n.isNil=function(e){return null==e},_n.isNull=function(e){return null===e},_n.isNumber=oa,_n.isObject=ta,_n.isObjectLike=na,_n.isPlainObject=ia,_n.isRegExp=sa,_n.isSafeInteger=function(e){return Xs(e)&&e>=-9007199254740991&&e<=p},_n.isSet=aa,_n.isString=ca,_n.isSymbol=ua,_n.isTypedArray=fa,_n.isUndefined=function(e){return e===o},_n.isWeakMap=function(e){return na(e)&&gi(e)==T},_n.isWeakSet=function(e){return na(e)&&\"[object WeakSet]\"==Ir(e)},_n.join=function(e,t){return null==e?\"\":Dt.call(e,t)},_n.kebabCase=Ha,_n.last=Zi,_n.lastIndexOf=function(e,t,n){var r=null==e?0:e.length;if(!r)return-1;var i=r;return n!==o&&(i=(i=ba(n))<0?wn(r+i,0):vn(i,r-1)),t==t?function(e,t,n){for(var r=n+1;r--;)if(e[r]===t)return r;return r}(e,t,i):$t(e,Ht,i,!0)},_n.lowerCase=qa,_n.lowerFirst=Va,_n.lt=la,_n.lte=da,_n.max=function(e){return e&&e.length?gr(e,oc,Cr):o},_n.maxBy=function(e,t){return e&&e.length?gr(e,fi(t,2),Cr):o},_n.mean=function(e){return qt(e,oc)},_n.meanBy=function(e,t){return qt(e,fi(t,2))},_n.min=function(e){return e&&e.length?gr(e,oc,Lr):o},_n.minBy=function(e,t){return e&&e.length?gr(e,fi(t,2),Lr):o},_n.stubArray=gc,_n.stubFalse=yc,_n.stubObject=function(){return{}},_n.stubString=function(){return\"\"},_n.stubTrue=function(){return!0},_n.multiply=Ec,_n.nth=function(e,t){return e&&e.length?Qr(e,ba(t)):o},_n.noConflict=function(){return bt._===this&&(bt._=_e),this},_n.noop=uc,_n.now=Cs,_n.pad=function(e,t,n){e=wa(e);var r=(t=ba(t))?pn(e):0;if(!t||r>=t)return e;var o=(t-r)/2;return qo(gt(o),n)+e+qo(pt(o),n)},_n.padEnd=function(e,t,n){e=wa(e);var r=(t=ba(t))?pn(e):0;return t&&r<t?e+qo(t-r,n):e},_n.padStart=function(e,t,n){e=wa(e);var r=(t=ba(t))?pn(e):0;return t&&r<t?qo(t-r,n)+e:e},_n.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),xn(wa(e).replace(se,\"\"),t||0)},_n.random=function(e,t,n){if(n&&\"boolean\"!=typeof n&&Ai(e,t,n)&&(t=n=o),n===o&&(\"boolean\"==typeof t?(n=t,t=o):\"boolean\"==typeof e&&(n=e,e=o)),e===o&&t===o?(e=0,t=1):(e=pa(e),t===o?(t=e,e=0):t=pa(t)),e>t){var r=e;e=t,t=r}if(n||e%1||t%1){var i=En();return vn(e+i*(t-e+lt(\"1e-\"+((i+\"\").length-1))),t)}return Kr(e,t)},_n.reduce=function(e,t,n){var r=Hs(e)?zt:Kt,o=arguments.length<3;return r(e,fi(t,4),n,o,hr)},_n.reduceRight=function(e,t,n){var r=Hs(e)?jt:Kt,o=arguments.length<3;return r(e,fi(t,4),n,o,pr)},_n.repeat=function(e,t,n){return t=(n?Ai(e,t,n):t===o)?1:ba(t),Wr(wa(e),t)},_n.replace=function(){var e=arguments,t=wa(e[0]);return e.length<3?t:t.replace(e[1],e[2])},_n.result=function(e,t,n){var r=-1,i=(t=Ao(t,e)).length;for(i||(i=1,e=o);++r<i;){var s=null==e?o:e[ji(t[r])];s===o&&(r=i,s=n),e=Ys(s)?s.call(e):s}return e},_n.round=Bc,_n.runInContext=e,_n.sample=function(e){return(Hs(e)?Yn:Yr)(e)},_n.size=function(e){if(null==e)return 0;if(Vs(e))return ca(e)?pn(e):e.length;var t=gi(e);return t==P||t==O?e.size:zr(e).length},_n.snakeCase=Ja,_n.some=function(e,t,n){var r=Hs(e)?Lt:io;return n&&Ai(e,t,n)&&(t=o),r(e,fi(t,3))},_n.sortedIndex=function(e,t){return so(e,t)},_n.sortedIndexBy=function(e,t,n){return ao(e,t,fi(n,2))},_n.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var r=so(e,t);if(r<n&&_s(e[r],t))return r}return-1},_n.sortedLastIndex=function(e,t){return so(e,t,!0)},_n.sortedLastIndexBy=function(e,t,n){return ao(e,t,fi(n,2),!0)},_n.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=so(e,t,!0)-1;if(_s(e[n],t))return n}return-1},_n.startCase=Ka,_n.startsWith=function(e,t,n){return e=wa(e),n=null==n?0:cr(ba(n),0,e.length),t=fo(t),e.slice(n,n+t.length)==t},_n.subtract=Pc,_n.sum=function(e){return e&&e.length?Wt(e,oc):0},_n.sumBy=function(e,t){return e&&e.length?Wt(e,fi(t,2)):0},_n.template=function(e,t,n){var r=_n.templateSettings;n&&Ai(e,t,n)&&(t=o),e=wa(e),t=xa({},t,r,ei);var i,s,a=xa({},t.imports,r.imports,ei),c=Sa(a),u=en(a,c),f=0,l=t.interpolate||xe,d=\"__p += '\",h=ke((t.escape||xe).source+\"|\"+l.source+\"|\"+(l===ee?pe:xe).source+\"|\"+(t.evaluate||xe).source+\"|$\",\"g\"),p=\"//# sourceURL=\"+(Fe.call(t,\"sourceURL\")?(t.sourceURL+\"\").replace(/\\s/g,\" \"):\"lodash.templateSources[\"+ ++at+\"]\")+\"\\n\";e.replace(h,function(t,n,r,o,a,c){return r||(r=o),d+=e.slice(f,c).replace(Ee,an),n&&(i=!0,d+=\"' +\\n__e(\"+n+\") +\\n'\"),a&&(s=!0,d+=\"';\\n\"+a+\";\\n__p += '\"),r&&(d+=\"' +\\n((__t = (\"+r+\")) == null ? '' : __t) +\\n'\"),f=c+t.length,t}),d+=\"';\\n\";var b=Fe.call(t,\"variable\")&&t.variable;if(b){if(de.test(b))throw new Be(\"Invalid `variable` option passed into `_.template`\")}else d=\"with (obj) {\\n\"+d+\"\\n}\\n\";d=(s?d.replace(H,\"\"):d).replace(q,\"$1\").replace(V,\"$1;\"),d=\"function(\"+(b||\"obj\")+\") {\\n\"+(b?\"\":\"obj || (obj = {});\\n\")+\"var __t, __p = ''\"+(i?\", __e = _.escape\":\"\")+(s?\", __j = Array.prototype.join;\\nfunction print() { __p += __j.call(arguments, '') }\\n\":\";\\n\")+d+\"return __p\\n}\";var g=Xa(function(){return Pe(c,p+\"return \"+d).apply(o,u)});if(g.source=d,Zs(g))throw g;return g},_n.times=function(e,t){if((e=ba(e))<1||e>p)return[];var n=g,r=vn(e,g);t=fi(t),e-=g;for(var o=Zt(r,t);++n<e;)t(n);return o},_n.toFinite=pa,_n.toInteger=ba,_n.toLength=ga,_n.toLower=function(e){return wa(e).toLowerCase()},_n.toNumber=ya,_n.toSafeInteger=function(e){return e?cr(ba(e),-9007199254740991,p):0===e?e:0},_n.toString=wa,_n.toUpper=function(e){return wa(e).toUpperCase()},_n.trim=function(e,t,n){if((e=wa(e))&&(n||t===o))return Yt(e);if(!e||!(t=fo(t)))return e;var r=bn(e),i=bn(t);return Eo(r,nn(r,i),rn(r,i)+1).join(\"\")},_n.trimEnd=function(e,t,n){if((e=wa(e))&&(n||t===o))return e.slice(0,gn(e)+1);if(!e||!(t=fo(t)))return e;var r=bn(e);return Eo(r,0,rn(r,bn(t))+1).join(\"\")},_n.trimStart=function(e,t,n){if((e=wa(e))&&(n||t===o))return e.replace(se,\"\");if(!e||!(t=fo(t)))return e;var r=bn(e);return Eo(r,nn(r,bn(t))).join(\"\")},_n.truncate=function(e,t){var n=30,r=\"...\";if(ta(t)){var i=\"separator\"in t?t.separator:i;n=\"length\"in t?ba(t.length):n,r=\"omission\"in t?fo(t.omission):r}var s=(e=wa(e)).length;if(cn(e)){var a=bn(e);s=a.length}if(n>=s)return e;var c=n-pn(r);if(c<1)return r;var u=a?Eo(a,0,c).join(\"\"):e.slice(0,c);if(i===o)return u+r;if(a&&(c+=u.length-c),sa(i)){if(e.slice(c).search(i)){var f,l=u;for(i.global||(i=ke(i.source,wa(be.exec(i))+\"g\")),i.lastIndex=0;f=i.exec(l);)var d=f.index;u=u.slice(0,d===o?c:d)}}else if(e.indexOf(fo(i),c)!=c){var h=u.lastIndexOf(i);h>-1&&(u=u.slice(0,h))}return u+r},_n.unescape=function(e){return(e=wa(e))&&W.test(e)?e.replace(J,yn):e},_n.uniqueId=function(e){var t=++ze;return wa(e)+t},_n.upperCase=Wa,_n.upperFirst=Za,_n.each=ws,_n.eachRight=vs,_n.first=Vi,cc(_n,(xc={},Ar(_n,function(e,t){Fe.call(_n.prototype,t)||(xc[t]=e)}),xc),{chain:!1}),_n.VERSION=\"4.17.21\",Mt([\"bind\",\"bindKey\",\"curry\",\"curryRight\",\"partial\",\"partialRight\"],function(e){_n[e].placeholder=_n}),Mt([\"drop\",\"take\"],function(e,t){Hn.prototype[e]=function(n){n=n===o?1:wn(ba(n),0);var r=this.__filtered__&&!t?new Hn(this):this.clone();return r.__filtered__?r.__takeCount__=vn(n,r.__takeCount__):r.__views__.push({size:vn(n,g),type:e+(r.__dir__<0?\"Right\":\"\")}),r},Hn.prototype[e+\"Right\"]=function(t){return this.reverse()[e](t).reverse()}}),Mt([\"filter\",\"map\",\"takeWhile\"],function(e,t){var n=t+1,r=1==n||3==n;Hn.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:fi(e,3),type:n}),t.__filtered__=t.__filtered__||r,t}}),Mt([\"head\",\"last\"],function(e,t){var n=\"take\"+(t?\"Right\":\"\");Hn.prototype[e]=function(){return this[n](1).value()[0]}}),Mt([\"initial\",\"tail\"],function(e,t){var n=\"drop\"+(t?\"\":\"Right\");Hn.prototype[e]=function(){return this.__filtered__?new Hn(this):this[n](1)}}),Hn.prototype.compact=function(){return this.filter(oc)},Hn.prototype.find=function(e){return this.filter(e).head()},Hn.prototype.findLast=function(e){return this.reverse().find(e)},Hn.prototype.invokeMap=Zr(function(e,t){return\"function\"==typeof e?new Hn(this):this.map(function(n){return Nr(n,e,t)})}),Hn.prototype.reject=function(e){return this.filter(Fs(fi(e)))},Hn.prototype.slice=function(e,t){e=ba(e);var n=this;return n.__filtered__&&(e>0||t<0)?new Hn(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==o&&(n=(t=ba(t))<0?n.dropRight(-t):n.take(t-e)),n)},Hn.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},Hn.prototype.toArray=function(){return this.take(g)},Ar(Hn.prototype,function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),r=/^(?:head|last)$/.test(t),i=_n[r?\"take\"+(\"last\"==t?\"Right\":\"\"):t],s=r||/^find/.test(t);i&&(_n.prototype[t]=function(){var t=this.__wrapped__,a=r?[1]:arguments,c=t instanceof Hn,u=a[0],f=c||Hs(t),l=function(e){var t=i.apply(_n,Ft([e],a));return r&&d?t[0]:t};f&&n&&\"function\"==typeof u&&1!=u.length&&(c=f=!1);var d=this.__chain__,h=!!this.__actions__.length,p=s&&!d,b=c&&!h;if(!s&&f){t=b?t:new Hn(this);var g=e.apply(t,a);return g.__actions__.push({func:ps,args:[l],thisArg:o}),new Qn(g,d)}return p&&b?e.apply(this,a):(g=this.thru(l),p?r?g.value()[0]:g.value():g)})}),Mt([\"pop\",\"push\",\"shift\",\"sort\",\"splice\",\"unshift\"],function(e){var t=Ne[e],n=/^(?:push|sort|unshift)$/.test(e)?\"tap\":\"thru\",r=/^(?:pop|shift)$/.test(e);_n.prototype[e]=function(){var e=arguments;if(r&&!this.__chain__){var o=this.value();return t.apply(Hs(o)?o:[],e)}return this[n](function(n){return t.apply(Hs(n)?n:[],e)})}}),Ar(Hn.prototype,function(e,t){var n=_n[t];if(n){var r=n.name+\"\";Fe.call(Sn,r)||(Sn[r]=[]),Sn[r].push({name:t,func:n})}}),Sn[$o(o,2).name]=[{name:\"wrapper\",func:o}],Hn.prototype.clone=function(){var e=new Hn(this.__wrapped__);return e.__actions__=No(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=No(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=No(this.__views__),e},Hn.prototype.reverse=function(){if(this.__filtered__){var e=new Hn(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},Hn.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=Hs(e),r=t<0,o=n?e.length:0,i=function(e,t,n){var r=-1,o=n.length;for(;++r<o;){var i=n[r],s=i.size;switch(i.type){case\"drop\":e+=s;break;case\"dropRight\":t-=s;break;case\"take\":t=vn(t,e+s);break;case\"takeRight\":e=wn(e,t-s)}}return{start:e,end:t}}(0,o,this.__views__),s=i.start,a=i.end,c=a-s,u=r?a:s-1,f=this.__iteratees__,l=f.length,d=0,h=vn(c,this.__takeCount__);if(!n||!r&&o==c&&h==c)return go(e,this.__actions__);var p=[];e:for(;c--&&d<h;){for(var b=-1,g=e[u+=t];++b<l;){var y=f[b],m=y.iteratee,w=y.type,v=m(g);if(2==w)g=v;else if(!v){if(1==w)continue e;break e}}p[d++]=g}return p},_n.prototype.at=bs,_n.prototype.chain=function(){return hs(this)},_n.prototype.commit=function(){return new Qn(this.value(),this.__chain__)},_n.prototype.next=function(){this.__values__===o&&(this.__values__=ha(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?o:this.__values__[this.__index__++]}},_n.prototype.plant=function(e){for(var t,n=this;n instanceof Gn;){var r=Di(n);r.__index__=0,r.__values__=o,t?i.__wrapped__=r:t=r;var i=r;n=n.__wrapped__}return i.__wrapped__=e,t},_n.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof Hn){var t=e;return this.__actions__.length&&(t=new Hn(this)),(t=t.reverse()).__actions__.push({func:ps,args:[ts],thisArg:o}),new Qn(t,this.__chain__)}return this.thru(ts)},_n.prototype.toJSON=_n.prototype.valueOf=_n.prototype.value=function(){return go(this.__wrapped__,this.__actions__)},_n.prototype.first=_n.prototype.head,Ye&&(_n.prototype[Ye]=function(){return this}),_n}();bt._=mn,(r=function(){return mn}.call(t,n,t,e))===o||(e.exports=r)}.call(this)},2589:(e,t,n)=>{\"use strict\";n.d(t,{h:()=>i});var r=n(4306),o=n(9873);function i(e,t){if(!(0,o.P)(e,{strict:!1}))throw new r.M({address:e});if(!(0,o.P)(t,{strict:!1}))throw new r.M({address:t});return e.toLowerCase()===t.toLowerCase()}},2592:(e,t,n)=>{\"use strict\";n.d(t,{X:()=>y,J:()=>g});var r=n(4823),o=n(4453),i=n(7372),s=n(3577),a=n(2599),c=n(1965),u=n(5167);var f=n(5419),l=n(4531),d=n(4586);const h=\"/docs/contract/encodeErrorResult\";function p(e){const{abi:t,errorName:n,args:r}=e;let o=t[0];if(n){const e=(0,d.iY)({abi:t,args:r,name:n});if(!e)throw new i.yy(n,{docsPath:h});o=e}if(\"error\"!==o.type)throw new i.yy(void 0,{docsPath:h});const s=(0,u.B)(o),c=(0,a.V)(s);let p=\"0x\";if(r&&r.length>0){if(!o.inputs)throw new i.ZP(o.name,{docsPath:h});p=(0,l.h)(o.inputs,r)}return(0,f.aP)([c,p])}const b=\"/docs/contract/encodeFunctionResult\";const g=\"x-batch-gateway:true\";async function y(e){const{data:t,ccipRequest:n}=e,{args:[f]}=function(e){const{abi:t,data:n}=e,r=(0,s.di)(n,0,4),o=t.find(e=>\"function\"===e.type&&r===(0,a.V)((0,u.B)(e)));if(!o)throw new i.EB(r,{docsPath:\"/docs/contract/decodeFunctionData\"});return{functionName:o.name,args:\"inputs\"in o&&o.inputs&&o.inputs.length>0?(0,c.n)(o.inputs,(0,s.di)(n,4)):void 0}}({abi:r.b2,data:t}),h=[],m=[];return await Promise.all(f.map(async(e,t)=>{try{m[t]=e.urls.includes(g)?await y({data:e.data,ccipRequest:n}):await n(e),h[t]=!1}catch(e){h[t]=!0,m[t]=\"HttpRequestError\"===(i=e).name&&i.status?p({abi:r.b2,errorName:\"HttpError\",args:[i.status,i.shortMessage]}):p({abi:[o.Mc],errorName:\"Error\",args:[\"shortMessage\"in i?i.shortMessage:i.message]})}var i})),function(e){const{abi:t,functionName:n,result:r}=e;let o=t[0];if(n){const e=(0,d.iY)({abi:t,name:n});if(!e)throw new i.Iz(n,{docsPath:b});o=e}if(\"function\"!==o.type)throw new i.Iz(void 0,{docsPath:b});if(!o.outputs)throw new i.MR(o.name,{docsPath:b});const s=(()=>{if(0===o.outputs.length)return[];if(1===o.outputs.length)return[r];if(Array.isArray(r))return r;throw new i.dm(r)})();return(0,l.h)(o.outputs,s)}({abi:r.b2,functionName:\"query\",result:[h,m]})}},2599:(e,t,n)=>{\"use strict\";n.d(t,{V:()=>i});var r=n(3577),o=n(504);const i=e=>(0,r.di)((0,o.k)(e),0,4)},3033:(e,t,n)=>{\"use strict\";function r(e){return\"string\"==typeof e?{address:e,type:\"json-rpc\"}:e}n.d(t,{J:()=>r})},3275:(e,t,n)=>{\"use strict\";n.d(t,{T:()=>se});var r=n(5276);const o=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)$/;const i=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)$/;const s=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\\s?\\((?<returns>.*?)\\))?$/;const a=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \\{(?<properties>.*?)\\}$/;function c(e){return a.test(e)}function u(e){return(0,r.Yv)(a,e)}const f=/^constructor\\((?<parameters>.*?)\\)(?:\\s(?<stateMutability>payable{1}))?$/;const l=/^fallback\\(\\) external(?:\\s(?<stateMutability>payable{1}))?$/;const d=/^receive\\(\\) external payable$/;new Set([\"memory\",\"indexed\",\"storage\",\"calldata\"]);const h=new Set([\"indexed\"]),p=new Set([\"calldata\",\"memory\",\"storage\"]);class b extends Error{constructor(e,t={}){const n=t.cause instanceof b?t.cause.details:t.cause?.message?t.cause.message:t.details,r=t.cause instanceof b&&t.cause.docsPath||t.docsPath;super([e||\"An error occurred.\",\"\",...t.metaMessages?[...t.metaMessages,\"\"]:[],...r?[`Docs: https://abitype.dev${r}`]:[],...n?[`Details: ${n}`]:[],\"Version: abitype@1.2.3\"].join(\"\\n\")),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiTypeError\"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=r,this.metaMessages=t.metaMessages,this.shortMessage=e}}class g extends b{constructor({type:e}){super(\"Unknown type.\",{metaMessages:[`Type \"${e}\" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownTypeError\"})}}class y extends b{constructor({type:e}){super(\"Unknown type.\",{metaMessages:[`Type \"${e}\" is not a valid ABI type.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSolidityTypeError\"})}}class m extends b{constructor({param:e}){super(\"Invalid ABI parameter.\",{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParameterError\"})}}class w extends b{constructor({param:e,name:t}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`\"${t}\" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SolidityProtectedKeywordError\"})}}class v extends b{constructor({param:e,type:t,modifier:n}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`Modifier \"${n}\" not allowed${t?` in \"${t}\" type`:\"\"}.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidModifierError\"})}}class A extends b{constructor({param:e,type:t,modifier:n}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`Modifier \"${n}\" not allowed${t?` in \"${t}\" type`:\"\"}.`,`Data location can only be specified for array, struct, or mapping types, but \"${n}\" was given.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidFunctionModifierError\"})}}class x extends b{constructor({abiParameter:e}){super(\"Invalid ABI parameter.\",{details:JSON.stringify(e,null,2),metaMessages:[\"ABI parameter type is invalid.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiTypeParameterError\"})}}class E extends b{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidSignatureError\"})}}class B extends b{constructor({signature:e}){super(\"Unknown signature.\",{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSignatureError\"})}}class P extends b{constructor({signature:e}){super(\"Invalid struct signature.\",{details:e,metaMessages:[\"No properties exist.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidStructSignatureError\"})}}class I extends b{constructor({type:e}){super(\"Circular reference detected.\",{metaMessages:[`Struct \"${e}\" is a circular reference.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"CircularReferenceError\"})}}class C extends b{constructor({current:e,depth:t}){super(\"Unbalanced parentheses.\",{metaMessages:[`\"${e.trim()}\" has too many ${t>0?\"opening\":\"closing\"} parentheses.`],details:`Depth \"${t}\"`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParenthesisError\"})}}const k=new Map([[\"address\",{type:\"address\"}],[\"bool\",{type:\"bool\"}],[\"bytes\",{type:\"bytes\"}],[\"bytes32\",{type:\"bytes32\"}],[\"int\",{type:\"int256\"}],[\"int256\",{type:\"int256\"}],[\"string\",{type:\"string\"}],[\"uint\",{type:\"uint256\"}],[\"uint8\",{type:\"uint8\"}],[\"uint16\",{type:\"uint16\"}],[\"uint24\",{type:\"uint24\"}],[\"uint32\",{type:\"uint32\"}],[\"uint64\",{type:\"uint64\"}],[\"uint96\",{type:\"uint96\"}],[\"uint112\",{type:\"uint112\"}],[\"uint160\",{type:\"uint160\"}],[\"uint192\",{type:\"uint192\"}],[\"uint256\",{type:\"uint256\"}],[\"address owner\",{type:\"address\",name:\"owner\"}],[\"address to\",{type:\"address\",name:\"to\"}],[\"bool approved\",{type:\"bool\",name:\"approved\"}],[\"bytes _data\",{type:\"bytes\",name:\"_data\"}],[\"bytes data\",{type:\"bytes\",name:\"data\"}],[\"bytes signature\",{type:\"bytes\",name:\"signature\"}],[\"bytes32 hash\",{type:\"bytes32\",name:\"hash\"}],[\"bytes32 r\",{type:\"bytes32\",name:\"r\"}],[\"bytes32 root\",{type:\"bytes32\",name:\"root\"}],[\"bytes32 s\",{type:\"bytes32\",name:\"s\"}],[\"string name\",{type:\"string\",name:\"name\"}],[\"string symbol\",{type:\"string\",name:\"symbol\"}],[\"string tokenURI\",{type:\"string\",name:\"tokenURI\"}],[\"uint tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint8 v\",{type:\"uint8\",name:\"v\"}],[\"uint256 balance\",{type:\"uint256\",name:\"balance\"}],[\"uint256 tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint256 value\",{type:\"uint256\",name:\"value\"}],[\"event:address indexed from\",{type:\"address\",name:\"from\",indexed:!0}],[\"event:address indexed to\",{type:\"address\",name:\"to\",indexed:!0}],[\"event:uint indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}],[\"event:uint256 indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}]]);function M(e,t={}){if(function(e){return s.test(e)}(e))return function(e,t={}){const n=function(e){return(0,r.Yv)(s,e)}(e);if(!n)throw new E({signature:e,type:\"function\"});const o=U(n.parameters),i=[],a=o.length;for(let e=0;e<a;e++)i.push(T(o[e],{modifiers:p,structs:t,type:\"function\"}));const c=[];if(n.returns){const e=U(n.returns),r=e.length;for(let n=0;n<r;n++)c.push(T(e[n],{modifiers:p,structs:t,type:\"function\"}))}return{name:n.name,type:\"function\",stateMutability:n.stateMutability??\"nonpayable\",inputs:i,outputs:c}}(e,t);if(function(e){return i.test(e)}(e))return function(e,t={}){const n=function(e){return(0,r.Yv)(i,e)}(e);if(!n)throw new E({signature:e,type:\"event\"});const o=U(n.parameters),s=[],a=o.length;for(let e=0;e<a;e++)s.push(T(o[e],{modifiers:h,structs:t,type:\"event\"}));return{name:n.name,type:\"event\",inputs:s}}(e,t);if(function(e){return o.test(e)}(e))return function(e,t={}){const n=function(e){return(0,r.Yv)(o,e)}(e);if(!n)throw new E({signature:e,type:\"error\"});const i=U(n.parameters),s=[],a=i.length;for(let e=0;e<a;e++)s.push(T(i[e],{structs:t,type:\"error\"}));return{name:n.name,type:\"error\",inputs:s}}(e,t);if(function(e){return f.test(e)}(e))return function(e,t={}){const n=function(e){return(0,r.Yv)(f,e)}(e);if(!n)throw new E({signature:e,type:\"constructor\"});const o=U(n.parameters),i=[],s=o.length;for(let e=0;e<s;e++)i.push(T(o[e],{structs:t,type:\"constructor\"}));return{type:\"constructor\",stateMutability:n.stateMutability??\"nonpayable\",inputs:i}}(e,t);if(function(e){return l.test(e)}(e))return function(e){const t=function(e){return(0,r.Yv)(l,e)}(e);if(!t)throw new E({signature:e,type:\"fallback\"});return{type:\"fallback\",stateMutability:t.stateMutability??\"nonpayable\"}}(e);if(function(e){return d.test(e)}(e))return{type:\"receive\",stateMutability:\"payable\"};throw new B({signature:e})}const O=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\\spayable)?)(?<array>(?:\\[\\d*?\\])+?)?(?:\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,N=/^\\((?<type>.+?)\\)(?<array>(?:\\[\\d*?\\])+?)?(?:\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,S=/^u?int$/;function T(e,t){const n=function(e,t,n){let r=\"\";if(n)for(const e of Object.entries(n)){if(!e)continue;let t=\"\";for(const n of e[1])t+=`[${n.type}${n.name?`:${n.name}`:\"\"}]`;r+=`(${e[0]}{${t}})`}return t?`${t}:${e}${r}`:`${e}${r}`}(e,t?.type,t?.structs);if(k.has(n))return k.get(n);const o=r.wj.test(e),i=(0,r.Yv)(o?N:O,e);if(!i)throw new m({param:e});if(i.name&&function(e){return\"address\"===e||\"bool\"===e||\"function\"===e||\"string\"===e||\"tuple\"===e||r.BD.test(e)||r.Ge.test(e)||F.test(e)}(i.name))throw new w({param:e,name:i.name});const s=i.name?{name:i.name}:{},a=\"indexed\"===i.modifier?{indexed:!0}:{},c=t?.structs??{};let u,f={};if(o){u=\"tuple\";const e=U(i.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(T(e[r],{structs:c}));f={components:t}}else if(i.type in c)u=\"tuple\",f={components:c[i.type]};else if(S.test(i.type))u=`${i.type}256`;else if(\"address payable\"===i.type)u=\"address\";else if(u=i.type,\"struct\"!==t?.type&&!R(u))throw new y({type:u});if(i.modifier){if(!t?.modifiers?.has?.(i.modifier))throw new v({param:e,type:t?.type,modifier:i.modifier});if(p.has(i.modifier)&&!function(e,t){return t||\"bytes\"===e||\"string\"===e||\"tuple\"===e}(u,!!i.array))throw new A({param:e,type:t?.type,modifier:i.modifier})}const l={type:`${u}${i.array??\"\"}`,...s,...a,...f};return k.set(n,l),l}function U(e,t=[],n=\"\",r=0){const o=e.trim().length;for(let i=0;i<o;i++){const o=e[i],s=e.slice(i+1);switch(o){case\",\":return 0===r?U(s,[...t,n.trim()]):U(s,t,`${n}${o}`,r);case\"(\":return U(s,t,`${n}${o}`,r+1);case\")\":return U(s,t,`${n}${o}`,r-1);default:return U(s,t,`${n}${o}`,r)}}if(\"\"===n)return t;if(0!==r)throw new C({current:n,depth:r});return t.push(n.trim()),t}function R(e){return\"address\"===e||\"bool\"===e||\"function\"===e||\"string\"===e||r.BD.test(e)||r.Ge.test(e)}const F=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;const z=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\\[\\d*?\\])+?)?$/;function j(e=[],t={},n=new Set){const o=[],i=e.length;for(let s=0;s<i;s++){const i=e[s];if(r.wj.test(i.type))o.push(i);else{const e=(0,r.Yv)(z,i.type);if(!e?.type)throw new x({abiParameter:i});const{array:s,type:a}=e;if(a in t){if(n.has(a))throw new I({type:a});o.push({...i,type:`tuple${s??\"\"}`,components:j(t[a],t,new Set([...n,a]))})}else{if(!R(a))throw new g({type:a});o.push(i)}}}return o}function L(e){const t=function(e){const t={},n=e.length;for(let r=0;r<n;r++){const n=e[r];if(!c(n))continue;const o=u(n);if(!o)throw new E({signature:n,type:\"struct\"});const i=o.properties.split(\";\"),s=[],a=i.length;for(let e=0;e<a;e++){const t=i[e].trim();if(!t)continue;const n=T(t,{type:\"struct\"});s.push(n)}if(!s.length)throw new P({signature:n});t[o.name]=s}const r={},o=Object.entries(t),i=o.length;for(let e=0;e<i;e++){const[n,i]=o[e];r[n]=j(i,t)}return r}(e),n=[],r=e.length;for(let o=0;o<r;o++){const r=e[o];c(r)||n.push(M(r,t))}return n}var D=n(1717),_=n(3033),$=n(4823);const G=\"0x82ad56cb\";var Q=n(5945),H=n(1344),q=n(8703),V=n(8863),J=n(6652),K=n(5842),W=n(8503),Z=n(9985),Y=n(4192),X=n(8684),ee=n(9789),te=n(7671),ne=n(9091);const re=new Map;var oe=n(5547),ie=n(332);async function se(e,t){const{account:r=e.account,authorizationList:o,batch:i=Boolean(e.batch?.multicall),blockNumber:s,blockTag:a=e.experimental_blockTag??\"latest\",accessList:c,blobs:u,blockOverrides:f,code:l,data:d,factory:h,factoryData:p,gas:b,gasPrice:g,maxFeePerBlobGas:y,maxFeePerGas:m,maxPriorityFeePerGas:w,nonce:v,to:A,value:x,stateOverride:E,...B}=t,P=r?(0,_.J)(r):void 0;if(l&&(h||p))throw new H.C(\"Cannot provide both `code` & `factory`/`factoryData` as parameters.\");if(l&&A)throw new H.C(\"Cannot provide both `code` & `to` as parameters.\");const I=l&&d,C=h&&p&&A&&d,k=I||C,M=I?ae({code:l,data:d}):C?function(e){const{data:t,factory:n,factoryData:r,to:o}=e;return(0,K.m)({abi:L([\"constructor(address, bytes, address, bytes)\"]),bytecode:Q.WN,args:[o,t,n,r]})}({data:d,factory:h,factoryData:p,to:A}):d;try{(0,ie.c)(t);const n=(\"bigint\"==typeof s?(0,Y.cK)(s):void 0)||a,r=f?D.J(f):void 0,l=(0,oe.yH)(E),d=e.chain?.formatters?.transactionRequest?.format,h=(d||te.Bv)({...(0,ee.o)(B,{format:d}),accessList:c,account:P,authorizationList:o,blobs:u,data:M,gas:b,gasPrice:g,maxFeePerBlobGas:y,maxFeePerGas:m,maxPriorityFeePerGas:w,nonce:v,to:k?void 0:A,value:x},\"call\");if(i&&function({request:e}){const{data:t,to:n,...r}=e;return!!t&&(!t.startsWith(G)&&(!!n&&!(Object.values(r).filter(e=>void 0!==e).length>0)))}({request:h})&&!l&&!r)try{return await async function(e,t){const{batchSize:n=1024,deployless:r=!1,wait:o=0}=\"object\"==typeof e.batch?.multicall?e.batch.multicall:{},{blockNumber:i,blockTag:s=e.experimental_blockTag??\"latest\",data:a,to:c}=t,u=(()=>{if(r)return null;if(t.multicallAddress)return t.multicallAddress;if(e.chain)return(0,Z.M)({blockNumber:i,chain:e.chain,contract:\"multicall3\"});throw new q.YE})(),f=\"bigint\"==typeof i?(0,Y.cK)(i):void 0,l=f||s,{schedule:d}=function({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){const i=async()=>{const t=a();s();const n=t.map(({args:e})=>e);0!==n.length&&e(n).then(e=>{o&&Array.isArray(e)&&e.sort(o);for(let n=0;n<t.length;n++){const{resolve:r}=t[n];r?.([e[n],e])}}).catch(e=>{for(let n=0;n<t.length;n++){const{reject:r}=t[n];r?.(e)}})},s=()=>re.delete(t),a=()=>re.get(t)||[],c=e=>re.set(t,[...a(),e]);return{flush:s,async schedule(e){const{promise:t,resolve:o,reject:s}=(0,ne.Y)(),u=n?.([...a().map(({args:e})=>e),e]);return u&&i(),a().length>0?(c({args:e,resolve:o,reject:s}),t):(c({args:e,resolve:o,reject:s}),setTimeout(i,r),t)}}}({id:`${e.uid}.${l}`,wait:o,shouldSplitBatch(e){const t=e.reduce((e,{data:t})=>e+(t.length-2),0);return t>2*n},fn:async t=>{const n=t.map(e=>({allowFailure:!0,callData:e.data,target:e.to})),r=(0,W.p)({abi:$.v2,args:[n],functionName:\"aggregate3\"}),o=await e.request({method:\"eth_call\",params:[{...null===u?{data:ae({code:Q.Ez,data:r})}:{to:u,data:r}},l]});return(0,J.e)({abi:$.v2,args:[n],functionName:\"aggregate3\",data:o||\"0x\"})}}),[{returnData:h,success:p}]=await d({data:a,to:c});if(!p)throw new V.$S({data:h});return\"0x\"===h?{data:void 0}:{data:h}}(e,{...h,blockNumber:s,blockTag:a})}catch(e){if(!(e instanceof q.YE||e instanceof q.rj))throw e}const p=(()=>{const e=[h,n];return l&&r?[...e,l,r]:l?[...e,l]:r?[...e,{},r]:e})(),I=await e.request({method:\"eth_call\",params:p});return\"0x\"===I?{data:void 0}:{data:I}}catch(r){const o=function(e){if(!(e instanceof H.C))return;const t=e.walk();return\"object\"==typeof t?.data?t.data?.data:t.data}(r),{offchainLookup:i,offchainLookupSignature:s}=await Promise.resolve().then(n.bind(n,9721));if(!1!==e.ccipRead&&o?.slice(0,10)===s&&A)return{data:await i(e,{data:o,to:A})};if(k&&\"0x101bb98d\"===o?.slice(0,10))throw new V.Po({factory:h});throw(0,X.d)(r,{...t,account:P,chain:e.chain})}}function ae(e){const{code:t,data:n}=e;return(0,K.m)({abi:L([\"constructor(bytes, bytes)\"]),bytecode:Q.LX,args:[t,n]})}},3577:(e,t,n)=>{\"use strict\";n.d(t,{A1:()=>u,di:()=>s});var r=n(6440),o=n(6394),i=n(5182);function s(e,t,n,{strict:r}={}){return(0,o.q)(e,{strict:!1})?function(e,t,n,{strict:r}={}){a(e,t);const o=`0x${e.replace(\"0x\",\"\").slice(2*(t??0),2*(n??e.length))}`;r&&c(o,t,n);return o}(e,t,n,{strict:r}):u(e,t,n,{strict:r})}function a(e,t){if(\"number\"==typeof t&&t>0&&t>(0,i.E)(e)-1)throw new r.ii({offset:t,position:\"start\",size:(0,i.E)(e)})}function c(e,t,n){if(\"number\"==typeof t&&\"number\"==typeof n&&(0,i.E)(e)!==n-t)throw new r.ii({offset:n,position:\"end\",size:(0,i.E)(e)})}function u(e,t,n,{strict:r}={}){a(e,t);const o=e.slice(t,n);return r&&c(o,t,n),o}},3702:(e,t,n)=>{\"use strict\";n.d(t,{As:()=>o});const r=\"#__bigint\";function o(e,t,n){return JSON.stringify(e,(e,n)=>\"function\"==typeof t?t(e,n):\"bigint\"==typeof n?n.toString()+r:n,n)}},4192:(e,t,n)=>{\"use strict\";n.d(t,{$P:()=>c,My:()=>u,cK:()=>f,i3:()=>d,nj:()=>a});var r=n(4317),o=n(586),i=n(6675);const s=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function a(e,t={}){return\"number\"==typeof e||\"bigint\"==typeof e?f(e,t):\"string\"==typeof e?d(e,t):\"boolean\"==typeof e?c(e,t):u(e,t)}function c(e,t={}){const n=`0x${Number(e)}`;return\"number\"==typeof t.size?((0,i.Sl)(n,{size:t.size}),(0,o.eV)(n,{size:t.size})):n}function u(e,t={}){let n=\"\";for(let t=0;t<e.length;t++)n+=s[e[t]];const r=`0x${n}`;return\"number\"==typeof t.size?((0,i.Sl)(r,{size:t.size}),(0,o.eV)(r,{dir:\"right\",size:t.size})):r}function f(e,t={}){const{signed:n,size:i}=t,s=BigInt(e);let a;i?a=n?(1n<<8n*BigInt(i)-1n)-1n:2n**(8n*BigInt(i))-1n:\"number\"==typeof e&&(a=BigInt(Number.MAX_SAFE_INTEGER));const c=\"bigint\"==typeof a&&n?-a-1n:0;if(a&&s>a||s<c){const t=\"bigint\"==typeof e?\"n\":\"\";throw new r.Ty({max:a?`${a}${t}`:void 0,min:`${c}${t}`,signed:n,size:i,value:`${e}${t}`})}const u=`0x${(n&&s<0?(1n<<BigInt(8*i))+BigInt(s):s).toString(16)}`;return i?(0,o.eV)(u,{size:i}):u}const l=new TextEncoder;function d(e,t={}){return u(l.encode(e),t)}},4306:(e,t,n)=>{\"use strict\";n.d(t,{M:()=>o});var r=n(1344);class o extends r.C{constructor({address:e}){super(`Address \"${e}\" is invalid.`,{metaMessages:[\"- Address must be a hex value of 20 bytes (40 hex characters).\",\"- Address must match its checksum counterpart.\"],name:\"InvalidAddressError\"})}}},4317:(e,t,n)=>{\"use strict\";n.d(t,{H2:()=>s,Ty:()=>o,u:()=>a,xO:()=>i});var r=n(1344);class o extends r.C{constructor({max:e,min:t,signed:n,size:r,value:o}){super(`Number \"${o}\" is not in safe ${r?`${8*r}-bit ${n?\"signed\":\"unsigned\"} `:\"\"}integer range ${e?`(${t} to ${e})`:`(above ${t})`}`,{name:\"IntegerOutOfRangeError\"})}}class i extends r.C{constructor(e){super(`Bytes value \"${e}\" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:\"InvalidBytesBooleanError\"})}}class s extends r.C{constructor(e){super(`Hex value \"${e}\" is not a valid boolean. The hex value must be \"0x0\" (false) or \"0x1\" (true).`,{name:\"InvalidHexBooleanError\"})}}r.C;class a extends r.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed ${t} bytes. Given size: ${e} bytes.`,{name:\"SizeOverflowError\"})}}},4453:(e,t,n)=>{\"use strict\";n.d(t,{J9:()=>i,Mc:()=>o,fD:()=>r});const r={1:\"An `assert` condition failed.\",17:\"Arithmetic operation resulted in underflow or overflow.\",18:\"Division or modulo by zero (e.g. `5 / 0` or `23 % 0`).\",33:\"Attempted to convert to an invalid type.\",34:\"Attempted to access a storage byte array that is incorrectly encoded.\",49:\"Performed `.pop()` on an empty array\",50:\"Array index is out of bounds.\",65:\"Allocated too much memory or created an array which is too large.\",81:\"Attempted to call a zero-initialized variable of internal function type.\"},o={inputs:[{name:\"message\",type:\"string\"}],name:\"Error\",type:\"error\"},i={inputs:[{name:\"reason\",type:\"uint256\"}],name:\"Panic\",type:\"error\"}},4531:(e,t,n)=>{\"use strict\";n.d(t,{h:()=>p,k:()=>y});var r=n(7372),o=n(4306),i=n(1344),s=n(4317),a=n(9873),c=n(5419),u=n(586),f=n(5182),l=n(3577),d=n(4192),h=n(8213);function p(e,t){if(e.length!==t.length)throw new r.YE({expectedLength:e.length,givenLength:t.length});const n=function({params:e,values:t}){const n=[];for(let r=0;r<e.length;r++)n.push(b({param:e[r],value:t[r]}));return n}({params:e,values:t}),o=g(n);return 0===o.length?\"0x\":o}function b({param:e,value:t}){const n=y(e.type);if(n){const[o,i]=n;return function(e,{length:t,param:n}){const o=null===t;if(!Array.isArray(e))throw new r.dm(e);if(!o&&e.length!==t)throw new r.Nc({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let i=!1;const s=[];for(let t=0;t<e.length;t++){const r=b({param:n,value:e[t]});r.dynamic&&(i=!0),s.push(r)}if(o||i){const e=g(s);if(o){const t=(0,d.cK)(s.length,{size:32});return{dynamic:!0,encoded:s.length>0?(0,c.xW)([t,e]):t}}if(i)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:(0,c.xW)(s.map(({encoded:e})=>e))}}(t,{length:o,param:{...e,type:i}})}if(\"tuple\"===e.type)return function(e,{param:t}){let n=!1;const r=[];for(let o=0;o<t.components.length;o++){const i=t.components[o],s=b({param:i,value:e[Array.isArray(e)?o:i.name]});r.push(s),s.dynamic&&(n=!0)}return{dynamic:n,encoded:n?g(r):(0,c.xW)(r.map(({encoded:e})=>e))}}(t,{param:e});if(\"address\"===e.type)return function(e){if(!(0,a.P)(e))throw new o.M({address:e});return{dynamic:!1,encoded:(0,u.db)(e.toLowerCase())}}(t);if(\"bool\"===e.type)return function(e){if(\"boolean\"!=typeof e)throw new i.C(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\`true\\` or \\`false\\`.`);return{dynamic:!1,encoded:(0,u.db)((0,d.$P)(e))}}(t);if(e.type.startsWith(\"uint\")||e.type.startsWith(\"int\")){const n=e.type.startsWith(\"int\"),[,,r=\"256\"]=h.Ge.exec(e.type)??[];return function(e,{signed:t,size:n=256}){if(\"number\"==typeof n){const r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new s.Ty({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:(0,d.cK)(e,{size:32,signed:t})}}(t,{signed:n,size:Number(r)})}if(e.type.startsWith(\"bytes\"))return function(e,{param:t}){const[,n]=t.type.split(\"bytes\"),o=(0,f.E)(e);if(!n){let t=e;return o%32!=0&&(t=(0,u.db)(t,{dir:\"right\",size:32*Math.ceil((e.length-2)/2/32)})),{dynamic:!0,encoded:(0,c.xW)([(0,u.db)((0,d.cK)(o,{size:32})),t])}}if(o!==Number.parseInt(n,10))throw new r.gH({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:(0,u.db)(e,{dir:\"right\"})}}(t,{param:e});if(\"string\"===e.type)return function(e){const t=(0,d.i3)(e),n=Math.ceil((0,f.E)(t)/32),r=[];for(let e=0;e<n;e++)r.push((0,u.db)((0,l.di)(t,32*e,32*(e+1)),{dir:\"right\"}));return{dynamic:!0,encoded:(0,c.xW)([(0,u.db)((0,d.cK)((0,f.E)(t),{size:32})),...r])}}(t);throw new r.nK(e.type,{docsPath:\"/docs/contract/encodeAbiParameters\"})}function g(e){let t=0;for(let n=0;n<e.length;n++){const{dynamic:r,encoded:o}=e[n];t+=r?32:(0,f.E)(o)}const n=[],r=[];let o=0;for(let i=0;i<e.length;i++){const{dynamic:s,encoded:a}=e[i];s?(n.push((0,d.cK)(t+o,{size:32})),r.push(a),o+=(0,f.E)(a)):n.push(a)}return(0,c.xW)([...n,...r])}function y(e){const t=e.match(/^(.*)\\[(\\d+)?\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}},4569:(e,t,n)=>{\"use strict\";n.d(t,{b:()=>f,o:()=>u});var r=n(4306),o=n(4706),i=n(2040),s=n(6447),a=n(9873);const c=new s.A(8192);function u(e,t){if(c.has(`${e}.${t}`))return c.get(`${e}.${t}`);const n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=(0,i.S)((0,o.Af)(n),\"bytes\"),s=(t?n.substring(`${t}0x`.length):n).split(\"\");for(let e=0;e<40;e+=2)r[e>>1]>>4>=8&&s[e]&&(s[e]=s[e].toUpperCase()),(15&r[e>>1])>=8&&s[e+1]&&(s[e+1]=s[e+1].toUpperCase());const a=`0x${s.join(\"\")}`;return c.set(`${e}.${t}`,a),a}function f(e,t){if(!(0,a.P)(e,{strict:!1}))throw new r.M({address:e});return u(e,t)}},4586:(e,t,n)=>{\"use strict\";n.d(t,{iY:()=>c});var r=n(7372),o=n(6394),i=n(9873),s=n(9777),a=n(2599);function c(e){const{abi:t,args:n=[],name:i}=e,c=(0,o.q)(i,{strict:!1}),l=t.filter(e=>c?\"function\"===e.type?(0,a.V)(e)===i:\"event\"===e.type&&(0,s.h)(e)===i:\"name\"in e&&e.name===i);if(0===l.length)return;if(1===l.length)return l[0];let d;for(const e of l){if(!(\"inputs\"in e))continue;if(!n||0===n.length){if(!e.inputs||0===e.inputs.length)return e;continue}if(!e.inputs)continue;if(0===e.inputs.length)continue;if(e.inputs.length!==n.length)continue;if(n.every((t,n)=>{const r=\"inputs\"in e&&e.inputs[n];return!!r&&u(t,r)})){if(d&&\"inputs\"in d&&d.inputs){const t=f(e.inputs,d.inputs,n);if(t)throw new r.nM({abiItem:e,type:t[0]},{abiItem:d,type:t[1]})}d=e}}return d||l[0]}function u(e,t){const n=typeof e,r=t.type;switch(r){case\"address\":return(0,i.P)(e,{strict:!1});case\"bool\":return\"boolean\"===n;case\"function\":case\"string\":return\"string\"===n;default:return\"tuple\"===r&&\"components\"in t?Object.values(t.components).every((t,r)=>\"object\"===n&&u(Object.values(e)[r],t)):/^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)?\"number\"===n||\"bigint\"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?\"string\"===n||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\\[[0-9]{0,}\\])+$/.test(r)&&(Array.isArray(e)&&e.every(e=>u(e,{...t,type:r.replace(/(\\[[0-9]{0,}\\])$/,\"\")})))}}function f(e,t,n){for(const r in e){const o=e[r],s=t[r];if(\"tuple\"===o.type&&\"tuple\"===s.type&&\"components\"in o&&\"components\"in s)return f(o.components,s.components,n[r]);const a=[o.type,s.type];if((()=>!(!a.includes(\"address\")||!a.includes(\"bytes20\"))||(a.includes(\"address\")&&a.includes(\"string\")||!(!a.includes(\"address\")||!a.includes(\"bytes\")))&&(0,i.P)(n[r],{strict:!1}))())return a}}},4706:(e,t,n)=>{\"use strict\";n.d(t,{Af:()=>h,ZJ:()=>u,aT:()=>d});var r=n(1344),o=n(6394),i=n(586),s=n(6675),a=n(4192);const c=new TextEncoder;function u(e,t={}){return\"number\"==typeof e||\"bigint\"==typeof e?function(e,t){const n=(0,a.cK)(e,t);return d(n)}(e,t):\"boolean\"==typeof e?function(e,t={}){const n=new Uint8Array(1);if(n[0]=Number(e),\"number\"==typeof t.size)return(0,s.Sl)(n,{size:t.size}),(0,i.eV)(n,{size:t.size});return n}(e,t):(0,o.q)(e)?d(e,t):h(e,t)}const f={zero:48,nine:57,A:65,F:70,a:97,f:102};function l(e){return e>=f.zero&&e<=f.nine?e-f.zero:e>=f.A&&e<=f.F?e-(f.A-10):e>=f.a&&e<=f.f?e-(f.a-10):void 0}function d(e,t={}){let n=e;t.size&&((0,s.Sl)(n,{size:t.size}),n=(0,i.eV)(n,{dir:\"right\",size:t.size}));let o=n.slice(2);o.length%2&&(o=`0${o}`);const a=o.length/2,c=new Uint8Array(a);for(let e=0,t=0;e<a;e++){const n=l(o.charCodeAt(t++)),i=l(o.charCodeAt(t++));if(void 0===n||void 0===i)throw new r.C(`Invalid byte sequence (\"${o[t-2]}${o[t-1]}\" in \"${o}\").`);c[e]=16*n+i}return c}function h(e,t={}){const n=c.encode(e);return\"number\"==typeof t.size?((0,s.Sl)(n,{size:t.size}),(0,i.eV)(n,{dir:\"right\",size:t.size})):n}},4823:(e,t,n)=>{\"use strict\";n.d(t,{Ag:()=>s,E5:()=>l,Rm:()=>u,SJ:()=>c,UW:()=>f,b2:()=>o,oX:()=>a,v2:()=>r});const r=[{inputs:[{components:[{name:\"target\",type:\"address\"},{name:\"allowFailure\",type:\"bool\"},{name:\"callData\",type:\"bytes\"}],name:\"calls\",type:\"tuple[]\"}],name:\"aggregate3\",outputs:[{components:[{name:\"success\",type:\"bool\"},{name:\"returnData\",type:\"bytes\"}],name:\"returnData\",type:\"tuple[]\"}],stateMutability:\"view\",type:\"function\"},{inputs:[{name:\"addr\",type:\"address\"}],name:\"getEthBalance\",outputs:[{name:\"balance\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"},{inputs:[],name:\"getCurrentBlockTimestamp\",outputs:[{internalType:\"uint256\",name:\"timestamp\",type:\"uint256\"}],stateMutability:\"view\",type:\"function\"}],o=[{name:\"query\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"tuple[]\",name:\"queries\",components:[{type:\"address\",name:\"sender\"},{type:\"string[]\",name:\"urls\"},{type:\"bytes\",name:\"data\"}]}],outputs:[{type:\"bool[]\",name:\"failures\"},{type:\"bytes[]\",name:\"responses\"}]},{name:\"HttpError\",type:\"error\",inputs:[{type:\"uint16\",name:\"status\"},{type:\"string\",name:\"message\"}]}],i=[{inputs:[{name:\"dns\",type:\"bytes\"}],name:\"DNSDecodingFailed\",type:\"error\"},{inputs:[{name:\"ens\",type:\"string\"}],name:\"DNSEncodingFailed\",type:\"error\"},{inputs:[],name:\"EmptyAddress\",type:\"error\"},{inputs:[{name:\"status\",type:\"uint16\"},{name:\"message\",type:\"string\"}],name:\"HttpError\",type:\"error\"},{inputs:[],name:\"InvalidBatchGatewayResponse\",type:\"error\"},{inputs:[{name:\"errorData\",type:\"bytes\"}],name:\"ResolverError\",type:\"error\"},{inputs:[{name:\"name\",type:\"bytes\"},{name:\"resolver\",type:\"address\"}],name:\"ResolverNotContract\",type:\"error\"},{inputs:[{name:\"name\",type:\"bytes\"}],name:\"ResolverNotFound\",type:\"error\"},{inputs:[{name:\"primary\",type:\"string\"},{name:\"primaryAddress\",type:\"bytes\"}],name:\"ReverseAddressMismatch\",type:\"error\"},{inputs:[{internalType:\"bytes4\",name:\"selector\",type:\"bytes4\"}],name:\"UnsupportedResolverProfile\",type:\"error\"}],s=[...i,{name:\"resolveWithGateways\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes\"},{name:\"data\",type:\"bytes\"},{name:\"gateways\",type:\"string[]\"}],outputs:[{name:\"\",type:\"bytes\"},{name:\"address\",type:\"address\"}]}],a=[...i,{name:\"reverseWithGateways\",type:\"function\",stateMutability:\"view\",inputs:[{type:\"bytes\",name:\"reverseName\"},{type:\"uint256\",name:\"coinType\"},{type:\"string[]\",name:\"gateways\"}],outputs:[{type:\"string\",name:\"resolvedName\"},{type:\"address\",name:\"resolver\"},{type:\"address\",name:\"reverseResolver\"}]}],c=[{name:\"text\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"key\",type:\"string\"}],outputs:[{name:\"\",type:\"string\"}]}],u=[{name:\"addr\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"}],outputs:[{name:\"\",type:\"address\"}]},{name:\"addr\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"name\",type:\"bytes32\"},{name:\"coinType\",type:\"uint256\"}],outputs:[{name:\"\",type:\"bytes\"}]}],f=[{name:\"isValidSignature\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"hash\",type:\"bytes32\"},{name:\"signature\",type:\"bytes\"}],outputs:[{name:\"\",type:\"bytes4\"}]}],l=[{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],stateMutability:\"nonpayable\",type:\"constructor\"},{inputs:[{name:\"_signer\",type:\"address\"},{name:\"_hash\",type:\"bytes32\"},{name:\"_signature\",type:\"bytes\"}],outputs:[{type:\"bool\"}],stateMutability:\"nonpayable\",type:\"function\",name:\"isValidSig\"}]},5167:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>i,B:()=>o});var r=n(7372);function o(e,{includeName:t=!1}={}){if(\"function\"!==e.type&&\"event\"!==e.type&&\"error\"!==e.type)throw new r.d_(e.type);return`${e.name}(${i(e.inputs,{includeName:t})})`}function i(e,{includeName:t=!1}={}){return e?e.map(e=>function(e,{includeName:t}){if(e.type.startsWith(\"tuple\"))return`(${i(e.components,{includeName:t})})${e.type.slice(5)}`;return e.type+(t&&e.name?` ${e.name}`:\"\")}(e,{includeName:t})).join(t?\", \":\",\"):\"\"}},5182:(e,t,n)=>{\"use strict\";n.d(t,{E:()=>o});var r=n(6394);function o(e){return(0,r.q)(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}},5276:(e,t,n)=>{\"use strict\";function r(e,t){const n=e.exec(t);return n?.groups}n.d(t,{BD:()=>o,Ge:()=>i,Yv:()=>r,wj:()=>s});const o=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,i=/^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)?$/,s=/^\\(.+?\\).*?$/},5419:(e,t,n)=>{\"use strict\";function r(e){return\"string\"==typeof e[0]?o(e):function(e){let t=0;for(const n of e)t+=n.length;const n=new Uint8Array(t);let r=0;for(const t of e)n.set(t,r),r+=t.length;return n}(e)}function o(e){return`0x${e.reduce((e,t)=>e+t.replace(\"0x\",\"\"),\"\")}`}n.d(t,{aP:()=>o,xW:()=>r})},5462:(e,t,n)=>{\"use strict\";n.d(t,{W:()=>u});var r=n(4453),o=n(7372),i=n(3577),s=n(2599),a=n(1965),c=n(5167);function u(e){const{abi:t,data:n,cause:u}=e,f=(0,i.di)(n,0,4);if(\"0x\"===f)throw new o.O({cause:u});const l=[...t||[],r.Mc,r.J9].find(e=>\"error\"===e.type&&f===(0,s.V)((0,c.B)(e)));if(!l)throw new o.Wq(f,{docsPath:\"/docs/contract/decodeErrorResult\",cause:u});return{abiItem:l,args:\"inputs\"in l&&l.inputs&&l.inputs.length>0?(0,a.n)(l.inputs,(0,i.di)(n,4)):void 0,errorName:l.name}}},5547:(e,t,n)=>{\"use strict\";n.d(t,{yH:()=>f});var r=n(4306),o=n(6440),i=n(6883),s=n(9873),a=n(4192);function c(e){if(e&&0!==e.length)return e.reduce((e,{slot:t,value:n})=>{if(66!==t.length)throw new o.NV({size:t.length,targetSize:66,type:\"hex\"});if(66!==n.length)throw new o.NV({size:n.length,targetSize:66,type:\"hex\"});return e[t]=n,e},{})}function u(e){const{balance:t,nonce:n,state:r,stateDiff:o,code:s}=e,u={};if(void 0!==s&&(u.code=s),void 0!==t&&(u.balance=(0,a.cK)(t)),void 0!==n&&(u.nonce=(0,a.cK)(n)),void 0!==r&&(u.state=c(r)),void 0!==o){if(u.state)throw new i.ft;u.stateDiff=c(o)}return u}function f(e){if(!e)return;const t={};for(const{address:n,...o}of e){if(!(0,s.P)(n,{strict:!1}))throw new r.M({address:n});if(t[n])throw new i.Hi({address:n});t[n]=u(o)}return t}},5834:(e,t,n)=>{\"use strict\";n.d(t,{l:()=>i});var r=n(8146);const o={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new r.hX({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new r.SK({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new r.B4({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new r.B4({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function i(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(o);return n.bytes=e,n.dataView=new DataView(e.buffer??e,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}},5842:(e,t,n)=>{\"use strict\";n.d(t,{m:()=>a});var r=n(7372),o=n(5419),i=n(4531);const s=\"/docs/contract/encodeDeployData\";function a(e){const{abi:t,args:n,bytecode:a}=e;if(!n||0===n.length)return a;const c=t.find(e=>\"type\"in e&&\"constructor\"===e.type);if(!c)throw new r.YW({docsPath:s});if(!(\"inputs\"in c))throw new r.YF({docsPath:s});if(!c.inputs||0===c.inputs.length)throw new r.YF({docsPath:s});const u=(0,i.h)(c.inputs,n);return(0,o.aP)([a,u])}},5945:(e,t,n)=>{\"use strict\";n.d(t,{Ez:()=>s,LX:()=>r,WN:()=>o,fT:()=>i});const r=\"0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe\",o=\"0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe\",i=\"0x608060405234801561001057600080fd5b5060405161069438038061069483398101604081905261002f9161051e565b600061003c848484610048565b9050806000526001601ff35b60007f64926492649264926492649264926492649264926492649264926492649264926100748361040c565b036101e7576000606080848060200190518101906100929190610577565b60405192955090935091506000906001600160a01b038516906100b69085906105dd565b6000604051808303816000865af19150503d80600081146100f3576040519150601f19603f3d011682016040523d82523d6000602084013e6100f8565b606091505b50509050876001600160a01b03163b60000361016057806101605760405162461bcd60e51b815260206004820152601e60248201527f5369676e617475726556616c696461746f723a206465706c6f796d656e74000060448201526064015b60405180910390fd5b604051630b135d3f60e11b808252906001600160a01b038a1690631626ba7e90610190908b9087906004016105f9565b602060405180830381865afa1580156101ad573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906101d19190610633565b6001600160e01b03191614945050505050610405565b6001600160a01b0384163b1561027a57604051630b135d3f60e11b808252906001600160a01b03861690631626ba7e9061022790879087906004016105f9565b602060405180830381865afa158015610244573d6000803e3d6000fd5b505050506040513d601f19601f820116820180604052508101906102689190610633565b6001600160e01b031916149050610405565b81516041146102df5760405162461bcd60e51b815260206004820152603a602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e6174757265206c656e6774680000000000006064820152608401610157565b6102e7610425565b5060208201516040808401518451859392600091859190811061030c5761030c61065d565b016020015160f81c9050601b811480159061032b57508060ff16601c14155b1561038c5760405162461bcd60e51b815260206004820152603b602482015260008051602061067483398151915260448201527f3a20696e76616c6964207369676e617475726520762076616c756500000000006064820152608401610157565b60408051600081526020810180835289905260ff83169181019190915260608101849052608081018390526001600160a01b0389169060019060a0016020604051602081039080840390855afa1580156103ea573d6000803e3d6000fd5b505050602060405103516001600160a01b0316149450505050505b9392505050565b600060208251101561041d57600080fd5b508051015190565b60405180606001604052806003906020820280368337509192915050565b6001600160a01b038116811461045857600080fd5b50565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561048c578181015183820152602001610474565b50506000910152565b600082601f8301126104a657600080fd5b81516001600160401b038111156104bf576104bf61045b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156104ed576104ed61045b565b60405281815283820160200185101561050557600080fd5b610516826020830160208701610471565b949350505050565b60008060006060848603121561053357600080fd5b835161053e81610443565b6020850151604086015191945092506001600160401b0381111561056157600080fd5b61056d86828701610495565b9150509250925092565b60008060006060848603121561058c57600080fd5b835161059781610443565b60208501519093506001600160401b038111156105b357600080fd5b6105bf86828701610495565b604086015190935090506001600160401b0381111561056157600080fd5b600082516105ef818460208701610471565b9190910192915050565b828152604060208201526000825180604084015261061e816060850160208701610471565b601f01601f1916919091016060019392505050565b60006020828403121561064557600080fd5b81516001600160e01b03198116811461040557600080fd5b634e487b7160e01b600052603260045260246000fdfe5369676e617475726556616c696461746f72237265636f7665725369676e6572\",s=\"0x608060405234801561001057600080fd5b506115b9806100206000396000f3fe6080604052600436106100f35760003560e01c80634d2301cc1161008a578063a8b0574e11610059578063a8b0574e14610325578063bce38bd714610350578063c3077fa914610380578063ee82ac5e146103b2576100f3565b80634d2301cc1461026257806372425d9d1461029f57806382ad56cb146102ca57806386d516e8146102fa576100f3565b80633408e470116100c65780633408e470146101af578063399542e9146101da5780633e64a6961461020c57806342cbb15c14610237576100f3565b80630f28c97d146100f8578063174dea7114610123578063252dba421461015357806327e86d6e14610184575b600080fd5b34801561010457600080fd5b5061010d6103ef565b60405161011a9190610c0a565b60405180910390f35b61013d60048036038101906101389190610c94565b6103f7565b60405161014a9190610e94565b60405180910390f35b61016d60048036038101906101689190610f0c565b610615565b60405161017b92919061101b565b60405180910390f35b34801561019057600080fd5b506101996107ab565b6040516101a69190611064565b60405180910390f35b3480156101bb57600080fd5b506101c46107b7565b6040516101d19190610c0a565b60405180910390f35b6101f460048036038101906101ef91906110ab565b6107bf565b6040516102039392919061110b565b60405180910390f35b34801561021857600080fd5b506102216107e1565b60405161022e9190610c0a565b60405180910390f35b34801561024357600080fd5b5061024c6107e9565b6040516102599190610c0a565b60405180910390f35b34801561026e57600080fd5b50610289600480360381019061028491906111a7565b6107f1565b6040516102969190610c0a565b60405180910390f35b3480156102ab57600080fd5b506102b4610812565b6040516102c19190610c0a565b60405180910390f35b6102e460048036038101906102df919061122a565b61081a565b6040516102f19190610e94565b60405180910390f35b34801561030657600080fd5b5061030f6109e4565b60405161031c9190610c0a565b60405180910390f35b34801561033157600080fd5b5061033a6109ec565b6040516103479190611286565b60405180910390f35b61036a600480360381019061036591906110ab565b6109f4565b6040516103779190610e94565b60405180910390f35b61039a60048036038101906103959190610f0c565b610ba6565b6040516103a99392919061110b565b60405180910390f35b3480156103be57600080fd5b506103d960048036038101906103d491906112cd565b610bca565b6040516103e69190611064565b60405180910390f35b600042905090565b60606000808484905090508067ffffffffffffffff81111561041c5761041b6112fa565b5b60405190808252806020026020018201604052801561045557816020015b610442610bd5565b81526020019060019003908161043a5790505b5092503660005b828110156105c957600085828151811061047957610478611329565b5b6020026020010151905087878381811061049657610495611329565b5b90506020028101906104a89190611367565b925060008360400135905080860195508360000160208101906104cb91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16818580606001906104f2919061138f565b604051610500929190611431565b60006040518083038185875af1925050503d806000811461053d576040519150601f19603f3d011682016040523d82523d6000602084013e610542565b606091505b5083600001846020018290528215151515815250505081516020850135176105bc577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260846000fd5b826001019250505061045c565b5082341461060c576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610603906114a7565b60405180910390fd5b50505092915050565b6000606043915060008484905090508067ffffffffffffffff81111561063e5761063d6112fa565b5b60405190808252806020026020018201604052801561067157816020015b606081526020019060019003908161065c5790505b5091503660005b828110156107a157600087878381811061069557610694611329565b5b90506020028101906106a791906114c7565b92508260000160208101906106bc91906111a7565b73ffffffffffffffffffffffffffffffffffffffff168380602001906106e2919061138f565b6040516106f0929190611431565b6000604051808303816000865af19150503d806000811461072d576040519150601f19603f3d011682016040523d82523d6000602084013e610732565b606091505b5086848151811061074657610745611329565b5b60200260200101819052819250505080610795576040517f08c379a000000000000000000000000000000000000000000000000000000000815260040161078c9061153b565b60405180910390fd5b81600101915050610678565b5050509250929050565b60006001430340905090565b600046905090565b6000806060439250434091506107d68686866109f4565b905093509350939050565b600048905090565b600043905090565b60008173ffffffffffffffffffffffffffffffffffffffff16319050919050565b600044905090565b606060008383905090508067ffffffffffffffff81111561083e5761083d6112fa565b5b60405190808252806020026020018201604052801561087757816020015b610864610bd5565b81526020019060019003908161085c5790505b5091503660005b828110156109db57600084828151811061089b5761089a611329565b5b602002602001015190508686838181106108b8576108b7611329565b5b90506020028101906108ca919061155b565b92508260000160208101906108df91906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060400190610905919061138f565b604051610913929190611431565b6000604051808303816000865af19150503d8060008114610950576040519150601f19603f3d011682016040523d82523d6000602084013e610955565b606091505b5082600001836020018290528215151515815250505080516020840135176109cf577f08c379a000000000000000000000000000000000000000000000000000000000600052602060045260176024527f4d756c746963616c6c333a2063616c6c206661696c656400000000000000000060445260646000fd5b8160010191505061087e565b50505092915050565b600045905090565b600041905090565b606060008383905090508067ffffffffffffffff811115610a1857610a176112fa565b5b604051908082528060200260200182016040528015610a5157816020015b610a3e610bd5565b815260200190600190039081610a365790505b5091503660005b82811015610b9c576000848281518110610a7557610a74611329565b5b60200260200101519050868683818110610a9257610a91611329565b5b9050602002810190610aa491906114c7565b9250826000016020810190610ab991906111a7565b73ffffffffffffffffffffffffffffffffffffffff16838060200190610adf919061138f565b604051610aed929190611431565b6000604051808303816000865af19150503d8060008114610b2a576040519150601f19603f3d011682016040523d82523d6000602084013e610b2f565b606091505b508260000183602001829052821515151581525050508715610b90578060000151610b8f576040517f08c379a0000000000000000000000000000000000000000000000000000000008152600401610b869061153b565b60405180910390fd5b5b81600101915050610a58565b5050509392505050565b6000806060610bb7600186866107bf565b8093508194508295505050509250925092565b600081409050919050565b6040518060400160405280600015158152602001606081525090565b6000819050919050565b610c0481610bf1565b82525050565b6000602082019050610c1f6000830184610bfb565b92915050565b600080fd5b600080fd5b600080fd5b600080fd5b600080fd5b60008083601f840112610c5457610c53610c2f565b5b8235905067ffffffffffffffff811115610c7157610c70610c34565b5b602083019150836020820283011115610c8d57610c8c610c39565b5b9250929050565b60008060208385031215610cab57610caa610c25565b5b600083013567ffffffffffffffff811115610cc957610cc8610c2a565b5b610cd585828601610c3e565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b60008115159050919050565b610d2281610d0d565b82525050565b600081519050919050565b600082825260208201905092915050565b60005b83811015610d62578082015181840152602081019050610d47565b83811115610d71576000848401525b50505050565b6000601f19601f8301169050919050565b6000610d9382610d28565b610d9d8185610d33565b9350610dad818560208601610d44565b610db681610d77565b840191505092915050565b6000604083016000830151610dd96000860182610d19565b5060208301518482036020860152610df18282610d88565b9150508091505092915050565b6000610e0a8383610dc1565b905092915050565b6000602082019050919050565b6000610e2a82610ce1565b610e348185610cec565b935083602082028501610e4685610cfd565b8060005b85811015610e825784840389528151610e638582610dfe565b9450610e6e83610e12565b925060208a01995050600181019050610e4a565b50829750879550505050505092915050565b60006020820190508181036000830152610eae8184610e1f565b905092915050565b60008083601f840112610ecc57610ecb610c2f565b5b8235905067ffffffffffffffff811115610ee957610ee8610c34565b5b602083019150836020820283011115610f0557610f04610c39565b5b9250929050565b60008060208385031215610f2357610f22610c25565b5b600083013567ffffffffffffffff811115610f4157610f40610c2a565b5b610f4d85828601610eb6565b92509250509250929050565b600081519050919050565b600082825260208201905092915050565b6000819050602082019050919050565b6000610f918383610d88565b905092915050565b6000602082019050919050565b6000610fb182610f59565b610fbb8185610f64565b935083602082028501610fcd85610f75565b8060005b858110156110095784840389528151610fea8582610f85565b9450610ff583610f99565b925060208a01995050600181019050610fd1565b50829750879550505050505092915050565b60006040820190506110306000830185610bfb565b81810360208301526110428184610fa6565b90509392505050565b6000819050919050565b61105e8161104b565b82525050565b60006020820190506110796000830184611055565b92915050565b61108881610d0d565b811461109357600080fd5b50565b6000813590506110a58161107f565b92915050565b6000806000604084860312156110c4576110c3610c25565b5b60006110d286828701611096565b935050602084013567ffffffffffffffff8111156110f3576110f2610c2a565b5b6110ff86828701610eb6565b92509250509250925092565b60006060820190506111206000830186610bfb565b61112d6020830185611055565b818103604083015261113f8184610e1f565b9050949350505050565b600073ffffffffffffffffffffffffffffffffffffffff82169050919050565b600061117482611149565b9050919050565b61118481611169565b811461118f57600080fd5b50565b6000813590506111a18161117b565b92915050565b6000602082840312156111bd576111bc610c25565b5b60006111cb84828501611192565b91505092915050565b60008083601f8401126111ea576111e9610c2f565b5b8235905067ffffffffffffffff81111561120757611206610c34565b5b60208301915083602082028301111561122357611222610c39565b5b9250929050565b6000806020838503121561124157611240610c25565b5b600083013567ffffffffffffffff81111561125f5761125e610c2a565b5b61126b858286016111d4565b92509250509250929050565b61128081611169565b82525050565b600060208201905061129b6000830184611277565b92915050565b6112aa81610bf1565b81146112b557600080fd5b50565b6000813590506112c7816112a1565b92915050565b6000602082840312156112e3576112e2610c25565b5b60006112f1848285016112b8565b91505092915050565b7f4e487b7100000000000000000000000000000000000000000000000000000000600052604160045260246000fd5b7f4e487b7100000000000000000000000000000000000000000000000000000000600052603260045260246000fd5b600080fd5b600080fd5b600080fd5b60008235600160800383360303811261138357611382611358565b5b80830191505092915050565b600080833560016020038436030381126113ac576113ab611358565b5b80840192508235915067ffffffffffffffff8211156113ce576113cd61135d565b5b6020830192506001820236038313156113ea576113e9611362565b5b509250929050565b600081905092915050565b82818337600083830152505050565b600061141883856113f2565b93506114258385846113fd565b82840190509392505050565b600061143e82848661140c565b91508190509392505050565b600082825260208201905092915050565b7f4d756c746963616c6c333a2076616c7565206d69736d61746368000000000000600082015250565b6000611491601a8361144a565b915061149c8261145b565b602082019050919050565b600060208201905081810360008301526114c081611484565b9050919050565b6000823560016040038336030381126114e3576114e2611358565b5b80830191505092915050565b7f4d756c746963616c6c333a2063616c6c206661696c6564000000000000000000600082015250565b600061152560178361144a565b9150611530826114ef565b602082019050919050565b6000602082019050818103600083015261155481611518565b9050919050565b60008235600160600383360303811261157757611576611358565b5b8083019150509291505056fea264697066735822122020c1bc9aacf8e4a6507193432a895a8e77094f45a1395583f07b24e860ef06cd64736f6c634300080c0033\"},6394:(e,t,n)=>{\"use strict\";function r(e,{strict:t=!0}={}){return!!e&&(\"string\"==typeof e&&(t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith(\"0x\")))}n.d(t,{q:()=>r})},6440:(e,t,n)=>{\"use strict\";n.d(t,{Fl:()=>i,NV:()=>s,ii:()=>o});var r=n(1344);class o extends r.C{constructor({offset:e,position:t,size:n}){super(`Slice ${\"start\"===t?\"starting\":\"ending\"} at offset \"${e}\" is out-of-bounds (size: ${n}).`,{name:\"SliceOffsetOutOfBoundsError\"})}}class i extends r.C{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (${e}) exceeds padding size (${t}).`,{name:\"SizeExceedsPaddingSizeError\"})}}class s extends r.C{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} is expected to be ${t} ${n} long, but is ${e} ${n} long.`,{name:\"InvalidBytesLengthError\"})}}},6447:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});class r extends Map{constructor(e){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&(super.delete(e),super.set(e,t)),t}set(e,t){if(super.has(e)&&super.delete(e),super.set(e,t),this.maxSize&&this.size>this.maxSize){const e=super.keys().next().value;void 0!==e&&super.delete(e)}return this}}},6475:(e,t,n)=>{\"use strict\";n.d(t,{Sl:()=>o,X:()=>s,eV:()=>a,kK:()=>i});var r=n(1999);function o(e,t){if(r.Ej(e)>t)throw new r.u({givenSize:r.Ej(e),maxSize:t})}function i(e,t){if(\"number\"==typeof t&&t>0&&t>r.Ej(e)-1)throw new r.ii({offset:t,position:\"start\",size:r.Ej(e)})}function s(e,t,n){if(\"number\"==typeof t&&\"number\"==typeof n&&r.Ej(e)!==n-t)throw new r.ii({offset:n,position:\"end\",size:r.Ej(e)})}function a(e,t={}){const{dir:n,size:o=32}=t;if(0===o)return e;const i=e.replace(\"0x\",\"\");if(i.length>2*o)throw new r.Fl({size:Math.ceil(i.length/2),targetSize:o,type:\"Hex\"});return`0x${i[\"right\"===n?\"padEnd\":\"padStart\"](2*o,\"0\")}`}},6595:(e,t,n)=>{\"use strict\";n.d(t,{Ci:()=>s,J8:()=>a});var r=n(8463),o=n(1344),i=n(1163);class s extends o.C{constructor({body:e,cause:t,details:n,headers:o,status:s,url:a}){super(\"HTTP request failed.\",{cause:t,details:n,metaMessages:[s&&`Status: ${s}`,`URL: ${(0,i.I)(a)}`,e&&`Request body: ${(0,r.A)(e)}`].filter(Boolean),name:\"HttpRequestError\"}),Object.defineProperty(this,\"body\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"headers\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"status\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.body=e,this.headers=o,this.status=s,this.url=a}}o.C;class a extends o.C{constructor({body:e,error:t,url:n}){super(\"RPC Request failed.\",{cause:t,details:t.message,metaMessages:[`URL: ${(0,i.I)(n)}`,`Request body: ${(0,r.A)(e)}`],name:\"RpcRequestError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"url\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=t.code,this.data=t.data,this.url=n}}o.C;o.C},6652:(e,t,n)=>{\"use strict\";n.d(t,{e:()=>a});var r=n(7372),o=n(1965),i=n(4586);const s=\"/docs/contract/decodeFunctionResult\";function a(e){const{abi:t,args:n,functionName:a,data:c}=e;let u=t[0];if(a){const e=(0,i.iY)({abi:t,args:n,name:a});if(!e)throw new r.Iz(a,{docsPath:s});u=e}if(\"function\"!==u.type)throw new r.Iz(void 0,{docsPath:s});if(!u.outputs)throw new r.MR(u.name,{docsPath:s});const f=(0,o.n)(u.outputs,c);return f&&f.length>1?f:f&&1===f.length?f[0]:void 0}},6675:(e,t,n)=>{\"use strict\";n.d(t,{ME:()=>u,Nx:()=>c,Sl:()=>s,uU:()=>a});var r=n(4317),o=n(5182),i=n(8583);function s(e,{size:t}){if((0,o.E)(e)>t)throw new r.u({givenSize:(0,o.E)(e),maxSize:t})}function a(e,t={}){const{signed:n}=t;t.size&&s(e,{size:t.size});const r=BigInt(e);if(!n)return r;const o=(e.length-2)/2;return r<=(1n<<8n*BigInt(o)-1n)-1n?r:r-BigInt(`0x${\"f\".padStart(2*o,\"f\")}`)-1n}function c(e,t={}){let n=e;if(t.size&&(s(n,{size:t.size}),n=(0,i.B)(n)),\"0x00\"===(0,i.B)(n))return!1;if(\"0x01\"===(0,i.B)(n))return!0;throw new r.H2(n)}function u(e,t={}){const n=a(e,t),o=Number(n);if(!Number.isSafeInteger(o))throw new r.Ty({max:`${Number.MAX_SAFE_INTEGER}`,min:`${Number.MIN_SAFE_INTEGER}`,signed:t.signed,size:t.size,value:`${n}n`});return o}},6799:(e,t,n)=>{\"use strict\";n.d(t,{secp256k1:()=>Le});var r=n(8442),o=n(2531);class i extends o.Vw{constructor(e,t){super(),this.finished=!1,this.destroyed=!1,(0,o.sd)(e);const n=(0,o.ZJ)(t);if(this.iHash=e.create(),\"function\"!=typeof this.iHash.update)throw new Error(\"Expected instance of class which extends utils.Hash\");this.blockLen=this.iHash.blockLen,this.outputLen=this.iHash.outputLen;const r=this.blockLen,i=new Uint8Array(r);i.set(n.length>r?e.create().update(n).digest():n);for(let e=0;e<i.length;e++)i[e]^=54;this.iHash.update(i),this.oHash=e.create();for(let e=0;e<i.length;e++)i[e]^=106;this.oHash.update(i),(0,o.uH)(i)}update(e){return(0,o.CC)(this),this.iHash.update(e),this}digestInto(e){(0,o.CC)(this),(0,o.DO)(e,this.outputLen),this.finished=!0,this.iHash.digestInto(e),this.oHash.update(e),this.oHash.digestInto(e),this.destroy()}digest(){const e=new Uint8Array(this.oHash.outputLen);return this.digestInto(e),e}_cloneInto(e){e||(e=Object.create(Object.getPrototypeOf(this),{}));const{oHash:t,iHash:n,finished:r,destroyed:o,blockLen:i,outputLen:s}=this;return e.finished=r,e.destroyed=o,e.blockLen=i,e.outputLen=s,e.oHash=t._cloneInto(e.oHash),e.iHash=n._cloneInto(e.iHash),e}clone(){return this._cloneInto()}destroy(){this.destroyed=!0,this.oHash.destroy(),this.iHash.destroy()}}const s=(e,t,n)=>new i(e,t).update(n).digest();s.create=(e,t)=>new i(e,t);const a=BigInt(0),c=BigInt(1);function u(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&\"Uint8Array\"===e.constructor.name}function f(e){if(!u(e))throw new Error(\"Uint8Array expected\")}function l(e,t){if(\"boolean\"!=typeof t)throw new Error(e+\" boolean expected, got \"+t)}function d(e){const t=e.toString(16);return 1&t.length?\"0\"+t:t}function h(e){if(\"string\"!=typeof e)throw new Error(\"hex string expected, got \"+typeof e);return\"\"===e?a:BigInt(\"0x\"+e)}const p=\"function\"==typeof Uint8Array.from([]).toHex&&\"function\"==typeof Uint8Array.fromHex,b=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,\"0\"));function g(e){if(f(e),p)return e.toHex();let t=\"\";for(let n=0;n<e.length;n++)t+=b[e[n]];return t}const y=48,m=57,w=65,v=70,A=97,x=102;function E(e){return e>=y&&e<=m?e-y:e>=w&&e<=v?e-(w-10):e>=A&&e<=x?e-(A-10):void 0}function B(e){if(\"string\"!=typeof e)throw new Error(\"hex string expected, got \"+typeof e);if(p)return Uint8Array.fromHex(e);const t=e.length,n=t/2;if(t%2)throw new Error(\"hex string expected, got unpadded hex of length \"+t);const r=new Uint8Array(n);for(let t=0,o=0;t<n;t++,o+=2){const n=E(e.charCodeAt(o)),i=E(e.charCodeAt(o+1));if(void 0===n||void 0===i){const t=e[o]+e[o+1];throw new Error('hex string expected, got non-hex character \"'+t+'\" at index '+o)}r[t]=16*n+i}return r}function P(e){return h(g(e))}function I(e){return f(e),h(g(Uint8Array.from(e).reverse()))}function C(e,t){return B(e.toString(16).padStart(2*t,\"0\"))}function k(e,t){return C(e,t).reverse()}function M(e,t,n){let r;if(\"string\"==typeof t)try{r=B(t)}catch(t){throw new Error(e+\" must be hex string or Uint8Array, cause: \"+t)}else{if(!u(t))throw new Error(e+\" must be hex string or Uint8Array\");r=Uint8Array.from(t)}const o=r.length;if(\"number\"==typeof n&&o!==n)throw new Error(e+\" of length \"+n+\" expected, got \"+o);return r}function O(...e){let t=0;for(let n=0;n<e.length;n++){const r=e[n];f(r),t+=r.length}const n=new Uint8Array(t);for(let t=0,r=0;t<e.length;t++){const o=e[t];n.set(o,r),r+=o.length}return n}const N=e=>\"bigint\"==typeof e&&a<=e;function S(e,t,n){return N(e)&&N(t)&&N(n)&&t<=e&&e<n}function T(e,t,n,r){if(!S(t,n,r))throw new Error(\"expected valid \"+e+\": \"+n+\" <= n < \"+r+\", got \"+t)}const U=e=>(c<<BigInt(e))-c,R=e=>new Uint8Array(e),F=e=>Uint8Array.from(e);const z={bigint:e=>\"bigint\"==typeof e,function:e=>\"function\"==typeof e,boolean:e=>\"boolean\"==typeof e,string:e=>\"string\"==typeof e,stringOrUint8Array:e=>\"string\"==typeof e||u(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>\"function\"==typeof e&&Number.isSafeInteger(e.outputLen)};function j(e,t,n={}){const r=(t,n,r)=>{const o=z[n];if(\"function\"!=typeof o)throw new Error(\"invalid validator function\");const i=e[t];if(!(r&&void 0===i||o(i,e)))throw new Error(\"param \"+String(t)+\" is invalid. Expected \"+n+\", got \"+i)};for(const[e,n]of Object.entries(t))r(e,n,!1);for(const[e,t]of Object.entries(n))r(e,t,!0);return e}function L(e){const t=new WeakMap;return(n,...r)=>{const o=t.get(n);if(void 0!==o)return o;const i=e(n,...r);return t.set(n,i),i}}const D=BigInt(0),_=BigInt(1),$=BigInt(2),G=BigInt(3),Q=BigInt(4),H=BigInt(5),q=BigInt(8);function V(e,t){const n=e%t;return n>=D?n:t+n}function J(e,t,n){let r=e;for(;t-- >D;)r*=r,r%=n;return r}function K(e,t){if(e===D)throw new Error(\"invert: expected non-zero number\");if(t<=D)throw new Error(\"invert: expected positive modulus, got \"+t);let n=V(e,t),r=t,o=D,i=_,s=_,a=D;for(;n!==D;){const e=r/n,t=r%n,c=o-s*e,u=i-a*e;r=n,n=t,o=s,i=a,s=c,a=u}if(r!==_)throw new Error(\"invert: does not exist\");return V(o,t)}function W(e,t){const n=(e.ORDER+_)/Q,r=e.pow(t,n);if(!e.eql(e.sqr(r),t))throw new Error(\"Cannot find square root\");return r}function Z(e,t){const n=(e.ORDER-H)/q,r=e.mul(t,$),o=e.pow(r,n),i=e.mul(t,o),s=e.mul(e.mul(i,$),o),a=e.mul(i,e.sub(s,e.ONE));if(!e.eql(e.sqr(a),t))throw new Error(\"Cannot find square root\");return a}function Y(e){return e%Q===G?W:e%q===H?Z:function(e){if(e<BigInt(3))throw new Error(\"sqrt is not defined for small field\");let t=e-_,n=0;for(;t%$===D;)t/=$,n++;let r=$;const o=oe(e);for(;1===ne(o,r);)if(r++>1e3)throw new Error(\"Cannot find square root: probably non-prime P\");if(1===n)return W;let i=o.pow(r,t);const s=(t+_)/$;return function(e,r){if(e.is0(r))return r;if(1!==ne(e,r))throw new Error(\"Cannot find square root\");let o=n,a=e.mul(e.ONE,i),c=e.pow(r,t),u=e.pow(r,s);for(;!e.eql(c,e.ONE);){if(e.is0(c))return e.ZERO;let t=1,n=e.sqr(c);for(;!e.eql(n,e.ONE);)if(t++,n=e.sqr(n),t===o)throw new Error(\"Cannot find square root\");const r=_<<BigInt(o-t-1),i=e.pow(a,r);o=t,a=e.sqr(i),c=e.mul(c,a),u=e.mul(u,i)}return u}}(e)}const X=[\"create\",\"isValid\",\"is0\",\"neg\",\"inv\",\"sqrt\",\"sqr\",\"eql\",\"add\",\"sub\",\"mul\",\"pow\",\"div\",\"addN\",\"subN\",\"mulN\",\"sqrN\"];function ee(e,t,n){if(n<D)throw new Error(\"invalid exponent, negatives unsupported\");if(n===D)return e.ONE;if(n===_)return t;let r=e.ONE,o=t;for(;n>D;)n&_&&(r=e.mul(r,o)),o=e.sqr(o),n>>=_;return r}function te(e,t,n=!1){const r=new Array(t.length).fill(n?e.ZERO:void 0),o=t.reduce((t,n,o)=>e.is0(n)?t:(r[o]=t,e.mul(t,n)),e.ONE),i=e.inv(o);return t.reduceRight((t,n,o)=>e.is0(n)?t:(r[o]=e.mul(t,r[o]),e.mul(t,n)),i),r}function ne(e,t){const n=(e.ORDER-_)/$,r=e.pow(t,n),o=e.eql(r,e.ONE),i=e.eql(r,e.ZERO),s=e.eql(r,e.neg(e.ONE));if(!o&&!i&&!s)throw new Error(\"invalid Legendre symbol result\");return o?1:i?0:-1}function re(e,t){void 0!==t&&(0,o.Fe)(t);const n=void 0!==t?t:e.toString(2).length;return{nBitLength:n,nByteLength:Math.ceil(n/8)}}function oe(e,t,n=!1,r={}){if(e<=D)throw new Error(\"invalid field: expected ORDER > 0, got \"+e);const{nBitLength:o,nByteLength:i}=re(e,t);if(i>2048)throw new Error(\"invalid field: expected ORDER of <= 2048 bytes\");let s;const a=Object.freeze({ORDER:e,isLE:n,BITS:o,BYTES:i,MASK:U(o),ZERO:D,ONE:_,create:t=>V(t,e),isValid:t=>{if(\"bigint\"!=typeof t)throw new Error(\"invalid field element: expected bigint, got \"+typeof t);return D<=t&&t<e},is0:e=>e===D,isOdd:e=>(e&_)===_,neg:t=>V(-t,e),eql:(e,t)=>e===t,sqr:t=>V(t*t,e),add:(t,n)=>V(t+n,e),sub:(t,n)=>V(t-n,e),mul:(t,n)=>V(t*n,e),pow:(e,t)=>ee(a,e,t),div:(t,n)=>V(t*K(n,e),e),sqrN:e=>e*e,addN:(e,t)=>e+t,subN:(e,t)=>e-t,mulN:(e,t)=>e*t,inv:t=>K(t,e),sqrt:r.sqrt||(t=>(s||(s=Y(e)),s(a,t))),toBytes:e=>n?k(e,i):C(e,i),fromBytes:e=>{if(e.length!==i)throw new Error(\"Field.fromBytes: expected \"+i+\" bytes, got \"+e.length);return n?I(e):P(e)},invertBatch:e=>te(a,e),cmov:(e,t,n)=>n?t:e});return Object.freeze(a)}function ie(e){if(\"bigint\"!=typeof e)throw new Error(\"field order must be bigint\");const t=e.toString(2).length;return Math.ceil(t/8)}function se(e){const t=ie(e);return t+Math.ceil(t/2)}const ae=BigInt(0),ce=BigInt(1);function ue(e,t){const n=t.negate();return e?n:t}function fe(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error(\"invalid window size, expected [1..\"+t+\"], got W=\"+e)}function le(e,t){fe(e,t);const n=2**e;return{windows:Math.ceil(t/e)+1,windowSize:2**(e-1),mask:U(e),maxNumber:n,shiftBy:BigInt(e)}}function de(e,t,n){const{windowSize:r,mask:o,maxNumber:i,shiftBy:s}=n;let a=Number(e&o),c=e>>s;a>r&&(a-=i,c+=ce);const u=t*r;return{nextN:c,offset:u+Math.abs(a)-1,isZero:0===a,isNeg:a<0,isNegF:t%2!=0,offsetF:u}}function he(e,t){if(!Array.isArray(e))throw new Error(\"array expected\");e.forEach((e,n)=>{if(!(e instanceof t))throw new Error(\"invalid point at index \"+n)})}function pe(e,t){if(!Array.isArray(e))throw new Error(\"array of scalars expected\");e.forEach((e,n)=>{if(!t.isValid(e))throw new Error(\"invalid scalar at index \"+n)})}const be=new WeakMap,ge=new WeakMap;function ye(e){return ge.get(e)||1}function me(e,t,n,r){he(n,e),pe(r,t);const o=n.length,i=r.length;if(o!==i)throw new Error(\"arrays of points and scalars must have equal length\");const s=e.ZERO,u=function(e){let t;for(t=0;e>a;e>>=c,t+=1);return t}(BigInt(o));let f=1;u>12?f=u-3:u>4?f=u-2:u>0&&(f=2);const l=U(f),d=new Array(Number(l)+1).fill(s);let h=s;for(let e=Math.floor((t.BITS-1)/f)*f;e>=0;e-=f){d.fill(s);for(let t=0;t<i;t++){const o=r[t],i=Number(o>>BigInt(e)&l);d[i]=d[i].add(n[t])}let t=s;for(let e=d.length-1,n=s;e>0;e--)n=n.add(d[e]),t=t.add(n);if(h=h.add(t),0!==e)for(let e=0;e<f;e++)h=h.double()}return h}function we(e){return j(e.Fp,X.reduce((e,t)=>(e[t]=\"function\",e),{ORDER:\"bigint\",MASK:\"bigint\",BYTES:\"isSafeInteger\",BITS:\"isSafeInteger\"})),j(e,{n:\"bigint\",h:\"bigint\",Gx:\"field\",Gy:\"field\"},{nBitLength:\"isSafeInteger\",nByteLength:\"isSafeInteger\"}),Object.freeze({...re(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}function ve(e){void 0!==e.lowS&&l(\"lowS\",e.lowS),void 0!==e.prehash&&l(\"prehash\",e.prehash)}class Ae extends Error{constructor(e=\"\"){super(e)}}const xe={Err:Ae,_tlv:{encode:(e,t)=>{const{Err:n}=xe;if(e<0||e>256)throw new n(\"tlv.encode: wrong tag\");if(1&t.length)throw new n(\"tlv.encode: unpadded data\");const r=t.length/2,o=d(r);if(o.length/2&128)throw new n(\"tlv.encode: long form length too big\");const i=r>127?d(o.length/2|128):\"\";return d(e)+i+o+t},decode(e,t){const{Err:n}=xe;let r=0;if(e<0||e>256)throw new n(\"tlv.encode: wrong tag\");if(t.length<2||t[r++]!==e)throw new n(\"tlv.decode: wrong tlv\");const o=t[r++];let i=0;if(!!(128&o)){const e=127&o;if(!e)throw new n(\"tlv.decode(long): indefinite length not supported\");if(e>4)throw new n(\"tlv.decode(long): byte length is too big\");const s=t.subarray(r,r+e);if(s.length!==e)throw new n(\"tlv.decode: length bytes not complete\");if(0===s[0])throw new n(\"tlv.decode(long): zero leftmost byte\");for(const e of s)i=i<<8|e;if(r+=e,i<128)throw new n(\"tlv.decode(long): not minimal encoding\")}else i=o;const s=t.subarray(r,r+i);if(s.length!==i)throw new n(\"tlv.decode: wrong value length\");return{v:s,l:t.subarray(r+i)}}},_int:{encode(e){const{Err:t}=xe;if(e<Be)throw new t(\"integer: negative integers are not allowed\");let n=d(e);if(8&Number.parseInt(n[0],16)&&(n=\"00\"+n),1&n.length)throw new t(\"unexpected DER parsing assertion: unpadded hex\");return n},decode(e){const{Err:t}=xe;if(128&e[0])throw new t(\"invalid signature integer: negative\");if(0===e[0]&&!(128&e[1]))throw new t(\"invalid signature integer: unnecessary leading zero\");return P(e)}},toSig(e){const{Err:t,_int:n,_tlv:r}=xe,o=M(\"signature\",e),{v:i,l:s}=r.decode(48,o);if(s.length)throw new t(\"invalid signature: left bytes after parsing\");const{v:a,l:c}=r.decode(2,i),{v:u,l:f}=r.decode(2,c);if(f.length)throw new t(\"invalid signature: left bytes after parsing\");return{r:n.decode(a),s:n.decode(u)}},hexFromSig(e){const{_tlv:t,_int:n}=xe,r=t.encode(2,n.encode(e.r))+t.encode(2,n.encode(e.s));return t.encode(48,r)}};function Ee(e,t){return g(C(e,t))}const Be=BigInt(0),Pe=BigInt(1),Ie=(BigInt(2),BigInt(3)),Ce=BigInt(4);function ke(e){const t=function(e){const t=we(e);j(t,{a:\"field\",b:\"field\"},{allowInfinityPoint:\"boolean\",allowedPrivateKeyLengths:\"array\",clearCofactor:\"function\",fromBytes:\"function\",isTorsionFree:\"function\",toBytes:\"function\",wrapPrivateKey:\"boolean\"});const{endo:n,Fp:r,a:o}=t;if(n){if(!r.eql(o,r.ZERO))throw new Error(\"invalid endo: CURVE.a must be 0\");if(\"object\"!=typeof n||\"bigint\"!=typeof n.beta||\"function\"!=typeof n.splitScalar)throw new Error('invalid endo: expected \"beta\": bigint and \"splitScalar\": function')}return Object.freeze({...t})}(e),{Fp:n}=t,r=oe(t.n,t.nBitLength),o=t.toBytes||((e,t,r)=>{const o=t.toAffine();return O(Uint8Array.from([4]),n.toBytes(o.x),n.toBytes(o.y))}),i=t.fromBytes||(e=>{const t=e.subarray(1);return{x:n.fromBytes(t.subarray(0,n.BYTES)),y:n.fromBytes(t.subarray(n.BYTES,2*n.BYTES))}});function s(e){const{a:r,b:o}=t,i=n.sqr(e),s=n.mul(i,e);return n.add(n.add(s,n.mul(e,r)),o)}function a(e,t){const r=n.sqr(t),o=s(e);return n.eql(r,o)}if(!a(t.Gx,t.Gy))throw new Error(\"bad curve params: generator point\");const c=n.mul(n.pow(t.a,Ie),Ce),f=n.mul(n.sqr(t.b),BigInt(27));if(n.is0(n.add(c,f)))throw new Error(\"bad curve params: a or b\");function d(e){const{allowedPrivateKeyLengths:n,nByteLength:r,wrapPrivateKey:o,n:i}=t;if(n&&\"bigint\"!=typeof e){if(u(e)&&(e=g(e)),\"string\"!=typeof e||!n.includes(e.length))throw new Error(\"invalid private key\");e=e.padStart(2*r,\"0\")}let s;try{s=\"bigint\"==typeof e?e:P(M(\"private key\",e,r))}catch(t){throw new Error(\"invalid private key, expected hex or \"+r+\" bytes, got \"+typeof e)}return o&&(s=V(s,i)),T(\"private key\",s,Pe,i),s}function h(e){if(!(e instanceof y))throw new Error(\"ProjectivePoint expected\")}const p=L((e,t)=>{const{px:r,py:o,pz:i}=e;if(n.eql(i,n.ONE))return{x:r,y:o};const s=e.is0();null==t&&(t=s?n.ONE:n.inv(i));const a=n.mul(r,t),c=n.mul(o,t),u=n.mul(i,t);if(s)return{x:n.ZERO,y:n.ZERO};if(!n.eql(u,n.ONE))throw new Error(\"invZ was invalid\");return{x:a,y:c}}),b=L(e=>{if(e.is0()){if(t.allowInfinityPoint&&!n.is0(e.py))return;throw new Error(\"bad point: ZERO\")}const{x:r,y:o}=e.toAffine();if(!n.isValid(r)||!n.isValid(o))throw new Error(\"bad point: x or y not FE\");if(!a(r,o))throw new Error(\"bad point: equation left != right\");if(!e.isTorsionFree())throw new Error(\"bad point: not in prime-order subgroup\");return!0});class y{constructor(e,t,r){if(null==e||!n.isValid(e))throw new Error(\"x required\");if(null==t||!n.isValid(t)||n.is0(t))throw new Error(\"y required\");if(null==r||!n.isValid(r))throw new Error(\"z required\");this.px=e,this.py=t,this.pz=r,Object.freeze(this)}static fromAffine(e){const{x:t,y:r}=e||{};if(!e||!n.isValid(t)||!n.isValid(r))throw new Error(\"invalid affine point\");if(e instanceof y)throw new Error(\"projective point not allowed\");const o=e=>n.eql(e,n.ZERO);return o(t)&&o(r)?y.ZERO:new y(t,r,n.ONE)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static normalizeZ(e){const t=te(n,e.map(e=>e.pz));return e.map((e,n)=>e.toAffine(t[n])).map(y.fromAffine)}static fromHex(e){const t=y.fromAffine(i(M(\"pointHex\",e)));return t.assertValidity(),t}static fromPrivateKey(e){return y.BASE.multiply(d(e))}static msm(e,t){return me(y,r,e,t)}_setWindowSize(e){v.setWindowSize(this,e)}assertValidity(){b(this)}hasEvenY(){const{y:e}=this.toAffine();if(n.isOdd)return!n.isOdd(e);throw new Error(\"Field doesn't support isOdd\")}equals(e){h(e);const{px:t,py:r,pz:o}=this,{px:i,py:s,pz:a}=e,c=n.eql(n.mul(t,a),n.mul(i,o)),u=n.eql(n.mul(r,a),n.mul(s,o));return c&&u}negate(){return new y(this.px,n.neg(this.py),this.pz)}double(){const{a:e,b:r}=t,o=n.mul(r,Ie),{px:i,py:s,pz:a}=this;let c=n.ZERO,u=n.ZERO,f=n.ZERO,l=n.mul(i,i),d=n.mul(s,s),h=n.mul(a,a),p=n.mul(i,s);return p=n.add(p,p),f=n.mul(i,a),f=n.add(f,f),c=n.mul(e,f),u=n.mul(o,h),u=n.add(c,u),c=n.sub(d,u),u=n.add(d,u),u=n.mul(c,u),c=n.mul(p,c),f=n.mul(o,f),h=n.mul(e,h),p=n.sub(l,h),p=n.mul(e,p),p=n.add(p,f),f=n.add(l,l),l=n.add(f,l),l=n.add(l,h),l=n.mul(l,p),u=n.add(u,l),h=n.mul(s,a),h=n.add(h,h),l=n.mul(h,p),c=n.sub(c,l),f=n.mul(h,d),f=n.add(f,f),f=n.add(f,f),new y(c,u,f)}add(e){h(e);const{px:r,py:o,pz:i}=this,{px:s,py:a,pz:c}=e;let u=n.ZERO,f=n.ZERO,l=n.ZERO;const d=t.a,p=n.mul(t.b,Ie);let b=n.mul(r,s),g=n.mul(o,a),m=n.mul(i,c),w=n.add(r,o),v=n.add(s,a);w=n.mul(w,v),v=n.add(b,g),w=n.sub(w,v),v=n.add(r,i);let A=n.add(s,c);return v=n.mul(v,A),A=n.add(b,m),v=n.sub(v,A),A=n.add(o,i),u=n.add(a,c),A=n.mul(A,u),u=n.add(g,m),A=n.sub(A,u),l=n.mul(d,v),u=n.mul(p,m),l=n.add(u,l),u=n.sub(g,l),l=n.add(g,l),f=n.mul(u,l),g=n.add(b,b),g=n.add(g,b),m=n.mul(d,m),v=n.mul(p,v),g=n.add(g,m),m=n.sub(b,m),m=n.mul(d,m),v=n.add(v,m),b=n.mul(g,v),f=n.add(f,b),b=n.mul(A,v),u=n.mul(w,u),u=n.sub(u,b),b=n.mul(w,g),l=n.mul(A,l),l=n.add(l,b),new y(u,f,l)}subtract(e){return this.add(e.negate())}is0(){return this.equals(y.ZERO)}wNAF(e){return v.wNAFCached(this,e,y.normalizeZ)}multiplyUnsafe(e){const{endo:r,n:o}=t;T(\"scalar\",e,Be,o);const i=y.ZERO;if(e===Be)return i;if(this.is0()||e===Pe)return this;if(!r||v.hasPrecomputes(this))return v.wNAFCachedUnsafe(this,e,y.normalizeZ);let{k1neg:s,k1:a,k2neg:c,k2:u}=r.splitScalar(e),f=i,l=i,d=this;for(;a>Be||u>Be;)a&Pe&&(f=f.add(d)),u&Pe&&(l=l.add(d)),d=d.double(),a>>=Pe,u>>=Pe;return s&&(f=f.negate()),c&&(l=l.negate()),l=new y(n.mul(l.px,r.beta),l.py,l.pz),f.add(l)}multiply(e){const{endo:r,n:o}=t;let i,s;if(T(\"scalar\",e,Pe,o),r){const{k1neg:t,k1:o,k2neg:a,k2:c}=r.splitScalar(e);let{p:u,f}=this.wNAF(o),{p:l,f:d}=this.wNAF(c);u=v.constTimeNegate(t,u),l=v.constTimeNegate(a,l),l=new y(n.mul(l.px,r.beta),l.py,l.pz),i=u.add(l),s=f.add(d)}else{const{p:t,f:n}=this.wNAF(e);i=t,s=n}return y.normalizeZ([i,s])[0]}multiplyAndAddUnsafe(e,t,n){const r=y.BASE,o=(e,t)=>t!==Be&&t!==Pe&&e.equals(r)?e.multiply(t):e.multiplyUnsafe(t),i=o(this,t).add(o(e,n));return i.is0()?void 0:i}toAffine(e){return p(this,e)}isTorsionFree(){const{h:e,isTorsionFree:n}=t;if(e===Pe)return!0;if(n)return n(y,this);throw new Error(\"isTorsionFree() has not been declared for the elliptic curve\")}clearCofactor(){const{h:e,clearCofactor:n}=t;return e===Pe?this:n?n(y,this):this.multiplyUnsafe(t.h)}toRawBytes(e=!0){return l(\"isCompressed\",e),this.assertValidity(),o(y,this,e)}toHex(e=!0){return l(\"isCompressed\",e),g(this.toRawBytes(e))}}y.BASE=new y(t.Gx,t.Gy,n.ONE),y.ZERO=new y(n.ZERO,n.ONE,n.ZERO);const{endo:m,nBitLength:w}=t,v=(A=y,x=m?Math.ceil(w/2):w,{constTimeNegate:ue,hasPrecomputes:e=>1!==ye(e),unsafeLadder(e,t,n=A.ZERO){let r=e;for(;t>ae;)t&ce&&(n=n.add(r)),r=r.double(),t>>=ce;return n},precomputeWindow(e,t){const{windows:n,windowSize:r}=le(t,x),o=[];let i=e,s=i;for(let e=0;e<n;e++){s=i,o.push(s);for(let e=1;e<r;e++)s=s.add(i),o.push(s);i=s.double()}return o},wNAF(e,t,n){let r=A.ZERO,o=A.BASE;const i=le(e,x);for(let e=0;e<i.windows;e++){const{nextN:s,offset:a,isZero:c,isNeg:u,isNegF:f,offsetF:l}=de(n,e,i);n=s,c?o=o.add(ue(f,t[l])):r=r.add(ue(u,t[a]))}return{p:r,f:o}},wNAFUnsafe(e,t,n,r=A.ZERO){const o=le(e,x);for(let e=0;e<o.windows&&n!==ae;e++){const{nextN:i,offset:s,isZero:a,isNeg:c}=de(n,e,o);if(n=i,!a){const e=t[s];r=r.add(c?e.negate():e)}}return r},getPrecomputes(e,t,n){let r=be.get(t);return r||(r=this.precomputeWindow(t,e),1!==e&&be.set(t,n(r))),r},wNAFCached(e,t,n){const r=ye(e);return this.wNAF(r,this.getPrecomputes(r,e,n),t)},wNAFCachedUnsafe(e,t,n,r){const o=ye(e);return 1===o?this.unsafeLadder(e,t,r):this.wNAFUnsafe(o,this.getPrecomputes(o,e,n),t,r)},setWindowSize(e,t){fe(t,x),ge.set(e,t),be.delete(e)}});var A,x;return{CURVE:t,ProjectivePoint:y,normPrivateKeyToScalar:d,weierstrassEquation:s,isWithinCurveOrder:function(e){return S(e,Pe,t.n)}}}function Me(e){const t=function(e){const t=we(e);return j(t,{hash:\"hash\",hmac:\"function\",randomBytes:\"function\"},{bits2int:\"function\",bits2int_modN:\"function\",lowS:\"boolean\"}),Object.freeze({lowS:!0,...t})}(e),{Fp:n,n:r,nByteLength:o,nBitLength:i}=t,s=n.BYTES+1,a=2*n.BYTES+1;function c(e){return V(e,r)}function f(e){return K(e,r)}const{ProjectivePoint:d,normPrivateKeyToScalar:h,weierstrassEquation:p,isWithinCurveOrder:b}=ke({...t,toBytes(e,t,r){const o=t.toAffine(),i=n.toBytes(o.x),s=O;return l(\"isCompressed\",r),r?s(Uint8Array.from([t.hasEvenY()?2:3]),i):s(Uint8Array.from([4]),i,n.toBytes(o.y))},fromBytes(e){const t=e.length,r=e[0],o=e.subarray(1);if(t!==s||2!==r&&3!==r){if(t===a&&4===r){return{x:n.fromBytes(o.subarray(0,n.BYTES)),y:n.fromBytes(o.subarray(n.BYTES,2*n.BYTES))}}throw new Error(\"invalid Point, expected length of \"+s+\", or uncompressed \"+a+\", got \"+t)}{const e=P(o);if(!S(e,Pe,n.ORDER))throw new Error(\"Point is not on curve\");const t=p(e);let i;try{i=n.sqrt(t)}catch(e){const t=e instanceof Error?\": \"+e.message:\"\";throw new Error(\"Point is not on curve\"+t)}return!(1&~r)!==((i&Pe)===Pe)&&(i=n.neg(i)),{x:e,y:i}}}});function g(e){return e>r>>Pe}const y=(e,t,n)=>P(e.slice(t,n));class m{constructor(e,t,n){T(\"r\",e,Pe,r),T(\"s\",t,Pe,r),this.r=e,this.s=t,null!=n&&(this.recovery=n),Object.freeze(this)}static fromCompact(e){const t=o;return e=M(\"compactSignature\",e,2*t),new m(y(e,0,t),y(e,t,2*t))}static fromDER(e){const{r:t,s:n}=xe.toSig(M(\"DER\",e));return new m(t,n)}assertValidity(){}addRecoveryBit(e){return new m(this.r,this.s,e)}recoverPublicKey(e){const{r,s:o,recovery:i}=this,s=x(M(\"msgHash\",e));if(null==i||![0,1,2,3].includes(i))throw new Error(\"recovery id invalid\");const a=2===i||3===i?r+t.n:r;if(a>=n.ORDER)throw new Error(\"recovery id 2 or 3 invalid\");const u=1&i?\"03\":\"02\",l=d.fromHex(u+Ee(a,n.BYTES)),h=f(a),p=c(-s*h),b=c(o*h),g=d.BASE.multiplyAndAddUnsafe(l,p,b);if(!g)throw new Error(\"point at infinify\");return g.assertValidity(),g}hasHighS(){return g(this.s)}normalizeS(){return this.hasHighS()?new m(this.r,c(-this.s),this.recovery):this}toDERRawBytes(){return B(this.toDERHex())}toDERHex(){return xe.hexFromSig(this)}toCompactRawBytes(){return B(this.toCompactHex())}toCompactHex(){const e=o;return Ee(this.r,e)+Ee(this.s,e)}}const w={isValidPrivateKey(e){try{return h(e),!0}catch(e){return!1}},normPrivateKeyToScalar:h,randomPrivateKey:()=>{const e=se(t.n);return function(e,t,n=!1){const r=e.length,o=ie(t),i=se(t);if(r<16||r<i||r>1024)throw new Error(\"expected \"+i+\"-1024 bytes of input, got \"+r);const s=V(n?I(e):P(e),t-_)+_;return n?k(s,o):C(s,o)}(t.randomBytes(e),t.n)},precompute:(e=8,t=d.BASE)=>(t._setWindowSize(e),t.multiply(BigInt(3)),t)};function v(e){if(\"bigint\"==typeof e)return!1;if(e instanceof d)return!0;const r=M(\"key\",e).length,i=n.BYTES,s=i+1,a=2*i+1;return t.allowedPrivateKeyLengths||o===s?void 0:r===s||r===a}const A=t.bits2int||function(e){if(e.length>8192)throw new Error(\"input is too large\");const t=P(e),n=8*e.length-i;return n>0?t>>BigInt(n):t},x=t.bits2int_modN||function(e){return c(A(e))},E=U(i);function N(e){return T(\"num < 2^\"+i,e,Be,E),C(e,o)}function z(e,r,o=L){if([\"recovered\",\"canonical\"].some(e=>e in o))throw new Error(\"sign() legacy options not supported\");const{hash:i,randomBytes:s}=t;let{lowS:a,prehash:u,extraEntropy:l}=o;null==a&&(a=!0),e=M(\"msgHash\",e),ve(o),u&&(e=M(\"prehashed msgHash\",i(e)));const p=x(e),y=h(r),w=[N(y),N(p)];if(null!=l&&!1!==l){const e=!0===l?s(n.BYTES):l;w.push(M(\"extraEntropy\",e))}const v=O(...w),E=p;return{seed:v,k2sig:function(e){const t=A(e);if(!b(t))return;const n=f(t),r=d.BASE.multiply(t).toAffine(),o=c(r.x);if(o===Be)return;const i=c(n*c(E+o*y));if(i===Be)return;let s=(r.x===o?0:2)|Number(r.y&Pe),u=i;return a&&g(i)&&(u=function(e){return g(e)?c(-e):e}(i),s^=1),new m(o,u,s)}}}const L={lowS:t.lowS,prehash:!1},D={lowS:t.lowS,prehash:!1};return d.BASE._setWindowSize(8),{CURVE:t,getPublicKey:function(e,t=!0){return d.fromPrivateKey(e).toRawBytes(t)},getSharedSecret:function(e,t,n=!0){if(!0===v(e))throw new Error(\"first arg must be private key\");if(!1===v(t))throw new Error(\"second arg must be public key\");return d.fromHex(t).multiply(h(e)).toRawBytes(n)},sign:function(e,n,r=L){const{seed:o,k2sig:i}=z(e,n,r),s=t;return function(e,t,n){if(\"number\"!=typeof e||e<2)throw new Error(\"hashLen must be a number\");if(\"number\"!=typeof t||t<2)throw new Error(\"qByteLen must be a number\");if(\"function\"!=typeof n)throw new Error(\"hmacFn must be a function\");let r=R(e),o=R(e),i=0;const s=()=>{r.fill(1),o.fill(0),i=0},a=(...e)=>n(o,r,...e),c=(e=R(0))=>{o=a(F([0]),e),r=a(),0!==e.length&&(o=a(F([1]),e),r=a())},u=()=>{if(i++>=1e3)throw new Error(\"drbg: tried 1000 values\");let e=0;const n=[];for(;e<t;){r=a();const t=r.slice();n.push(t),e+=r.length}return O(...n)};return(e,t)=>{let n;for(s(),c(e);!(n=t(u()));)c();return s(),n}}(s.hash.outputLen,s.nByteLength,s.hmac)(o,i)},verify:function(e,n,r,o=D){const i=e;n=M(\"msgHash\",n),r=M(\"publicKey\",r);const{lowS:s,prehash:a,format:l}=o;if(ve(o),\"strict\"in o)throw new Error(\"options.strict was renamed to lowS\");if(void 0!==l&&\"compact\"!==l&&\"der\"!==l)throw new Error(\"format must be compact or der\");const h=\"string\"==typeof i||u(i),p=!h&&!l&&\"object\"==typeof i&&null!==i&&\"bigint\"==typeof i.r&&\"bigint\"==typeof i.s;if(!h&&!p)throw new Error(\"invalid signature, expected Uint8Array, hex string or Signature instance\");let b,g;try{if(p&&(b=new m(i.r,i.s)),h){try{\"compact\"!==l&&(b=m.fromDER(i))}catch(e){if(!(e instanceof xe.Err))throw e}b||\"der\"===l||(b=m.fromCompact(i))}g=d.fromHex(r)}catch(e){return!1}if(!b)return!1;if(s&&b.hasHighS())return!1;a&&(n=t.hash(n));const{r:y,s:w}=b,v=x(n),A=f(w),E=c(v*A),B=c(y*A),P=d.BASE.multiplyAndAddUnsafe(g,E,B)?.toAffine();return!!P&&c(P.x)===y},ProjectivePoint:d,Signature:m,utils:w}}function Oe(e){return{hash:e,hmac:(t,...n)=>s(e,t,(0,o.Id)(...n)),randomBytes:o.po}}const Ne=BigInt(\"0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f\"),Se=BigInt(\"0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141\"),Te=BigInt(0),Ue=BigInt(1),Re=BigInt(2),Fe=(e,t)=>(e+t/Re)/t;function ze(e){const t=Ne,n=BigInt(3),r=BigInt(6),o=BigInt(11),i=BigInt(22),s=BigInt(23),a=BigInt(44),c=BigInt(88),u=e*e*e%t,f=u*u*e%t,l=J(f,n,t)*f%t,d=J(l,n,t)*f%t,h=J(d,Re,t)*u%t,p=J(h,o,t)*h%t,b=J(p,i,t)*p%t,g=J(b,a,t)*b%t,y=J(g,c,t)*g%t,m=J(y,a,t)*b%t,w=J(m,n,t)*f%t,v=J(w,s,t)*p%t,A=J(v,r,t)*u%t,x=J(A,Re,t);if(!je.eql(je.sqr(x),e))throw new Error(\"Cannot find square root\");return x}const je=oe(Ne,void 0,void 0,{sqrt:ze}),Le=function(e,t){const n=t=>Me({...e,...Oe(t)});return{...n(t),create:n}}({a:Te,b:BigInt(7),Fp:je,n:Se,Gx:BigInt(\"55066263022277343669578718895168534326250603453777594175500187360389116729240\"),Gy:BigInt(\"32670510020758816978083085130507043184471273380659243275938904335757337482424\"),h:BigInt(1),lowS:!0,endo:{beta:BigInt(\"0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee\"),splitScalar:e=>{const t=Se,n=BigInt(\"0x3086d221a7d46bcde86c90e49284eb15\"),r=-Ue*BigInt(\"0xe4437ed6010e88286f547fa90abfe4c3\"),o=BigInt(\"0x114ca50f7a8e2f3f657c1108d9d44cfd8\"),i=n,s=BigInt(\"0x100000000000000000000000000000000\"),a=Fe(i*e,t),c=Fe(-r*e,t);let u=V(e-a*n-c*o,t),f=V(-a*r-c*i,t);const l=u>s,d=f>s;if(l&&(u=t-u),d&&(f=t-f),u>s||f>s)throw new Error(\"splitScalar: Endomorphism failed, k=\"+e);return{k1neg:l,k1:u,k2neg:d,k2:f}}}},r.sc)},6883:(e,t,n)=>{\"use strict\";n.d(t,{Hi:()=>o,ft:()=>i,uj:()=>a});var r=n(1344);class o extends r.C{constructor({address:e}){super(`State for account \"${e}\" is set multiple times.`,{name:\"AccountStateConflictError\"})}}class i extends r.C{constructor(){super(\"state and stateDiff are set on the same account.\",{name:\"StateAssignmentConflictError\"})}}function s(e){return e.reduce((e,{slot:t,value:n})=>`${e}        ${t}: ${n}\\n`,\"\")}function a(e){return e.reduce((e,{address:t,...n})=>{let r=`${e}    ${t}:\\n`;return n.nonce&&(r+=`      nonce: ${n.nonce}\\n`),n.balance&&(r+=`      balance: ${n.balance}\\n`),n.code&&(r+=`      code: ${n.code}\\n`),n.state&&(r+=\"      state:\\n\",r+=s(n.state)),n.stateDiff&&(r+=\"      stateDiff:\\n\",r+=s(n.stateDiff)),r},\"  State Override:\\n\").slice(0,-1)}},7135:(e,t,n)=>{\"use strict\";function r(e,t){let n=e.toString();const r=n.startsWith(\"-\");r&&(n=n.slice(1)),n=n.padStart(t,\"0\");let[o,i]=[n.slice(0,n.length-t),n.slice(n.length-t)];return i=i.replace(/(0+)$/,\"\"),`${r?\"-\":\"\"}${o||\"0\"}${i?`.${i}`:\"\"}`}n.d(t,{J:()=>r})},7238:(e,t,n)=>{\"use strict\";n.d(t,{lY:()=>A});var r=n(9271),o=n(2531);const i=BigInt(0),s=BigInt(1),a=BigInt(2),c=BigInt(7),u=BigInt(256),f=BigInt(113),l=[],d=[],h=[];for(let e=0,t=s,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],l.push(2*(5*r+n)),d.push((e+1)*(e+2)/2%64);let o=i;for(let e=0;e<7;e++)t=(t<<s^(t>>c)*f)%u,t&a&&(o^=s<<(s<<BigInt(e))-s);h.push(o)}const p=(0,r.lD)(h,!0),b=p[0],g=p[1],y=(e,t,n)=>n>32?(0,r.WM)(e,t,n):(0,r.P5)(e,t,n),m=(e,t,n)=>n>32?(0,r.im)(e,t,n):(0,r.B4)(e,t,n);class w extends o.Vw{constructor(e,t,n,r=!1,i=24){if(super(),this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,this.enableXOF=!1,this.blockLen=e,this.suffix=t,this.outputLen=n,this.enableXOF=r,this.rounds=i,(0,o.Fe)(n),!(0<e&&e<200))throw new Error(\"only keccak-f1600 function is supported\");this.state=new Uint8Array(200),this.state32=(0,o.DH)(this.state)}clone(){return this._cloneInto()}keccak(){(0,o.fd)(this.state32),function(e,t=24){const n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let t=0;t<10;t++)n[t]=e[t]^e[t+10]^e[t+20]^e[t+30]^e[t+40];for(let t=0;t<10;t+=2){const r=(t+8)%10,o=(t+2)%10,i=n[o],s=n[o+1],a=y(i,s,1)^n[r],c=m(i,s,1)^n[r+1];for(let n=0;n<50;n+=10)e[t+n]^=a,e[t+n+1]^=c}let t=e[2],o=e[3];for(let n=0;n<24;n++){const r=d[n],i=y(t,o,r),s=m(t,o,r),a=l[n];t=e[a],o=e[a+1],e[a]=i,e[a+1]=s}for(let t=0;t<50;t+=10){for(let r=0;r<10;r++)n[r]=e[t+r];for(let r=0;r<10;r++)e[t+r]^=~n[(r+2)%10]&n[(r+4)%10]}e[0]^=b[r],e[1]^=g[r]}(0,o.uH)(n)}(this.state32,this.rounds),(0,o.fd)(this.state32),this.posOut=0,this.pos=0}update(e){(0,o.CC)(this),e=(0,o.ZJ)(e),(0,o.DO)(e);const{blockLen:t,state:n}=this,r=e.length;for(let o=0;o<r;){const i=Math.min(t-this.pos,r-o);for(let t=0;t<i;t++)n[this.pos++]^=e[o++];this.pos===t&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;const{state:e,suffix:t,pos:n,blockLen:r}=this;e[n]^=t,128&t&&n===r-1&&this.keccak(),e[r-1]^=128,this.keccak()}writeInto(e){(0,o.CC)(this,!1),(0,o.DO)(e),this.finish();const t=this.state,{blockLen:n}=this;for(let r=0,o=e.length;r<o;){this.posOut>=n&&this.keccak();const i=Math.min(n-this.posOut,o-r);e.set(t.subarray(this.posOut,this.posOut+i),r),this.posOut+=i,r+=i}return e}xofInto(e){if(!this.enableXOF)throw new Error(\"XOF is not possible for this instance\");return this.writeInto(e)}xof(e){return(0,o.Fe)(e),this.xofInto(new Uint8Array(e))}digestInto(e){if((0,o.Ht)(e,this),this.finished)throw new Error(\"digest() was already called\");return this.writeInto(e),this.destroy(),e}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,(0,o.uH)(this.state)}_cloneInto(e){const{blockLen:t,suffix:n,outputLen:r,rounds:o,enableXOF:i}=this;return e||(e=new w(t,n,r,i,o)),e.state32.set(this.state32),e.pos=this.pos,e.posOut=this.posOut,e.finished=this.finished,e.rounds=o,e.suffix=n,e.outputLen=r,e.enableXOF=i,e.destroyed=this.destroyed,e}}const v=(e,t,n)=>(0,o.qj)(()=>new w(t,e,n)),A=v(1,136,32)},7372:(e,t,n)=>{\"use strict\";n.d(t,{BI:()=>E,EB:()=>A,Iy:()=>c,Iz:()=>w,MR:()=>v,M_:()=>m,Nc:()=>f,O:()=>u,Wq:()=>b,YE:()=>d,YF:()=>a,YW:()=>s,ZP:()=>h,_z:()=>g,d_:()=>M,dm:()=>k,fo:()=>B,gH:()=>l,j:()=>C,kE:()=>y,l3:()=>P,nK:()=>I,nM:()=>x,yy:()=>p});var r=n(5167),o=n(5182),i=n(1344);class s extends i.C{constructor({docsPath:e}){super([\"A constructor was not found on the ABI.\",\"Make sure you are using the correct ABI and that the constructor exists on it.\"].join(\"\\n\"),{docsPath:e,name:\"AbiConstructorNotFoundError\"})}}class a extends i.C{constructor({docsPath:e}){super([\"Constructor arguments were provided (`args`), but a constructor parameters (`inputs`) were not found on the ABI.\",\"Make sure you are using the correct ABI, and that the `inputs` attribute on the constructor exists.\"].join(\"\\n\"),{docsPath:e,name:\"AbiConstructorParamsNotFoundError\"})}}i.C;class c extends i.C{constructor({data:e,params:t,size:n}){super([`Data size of ${n} bytes is too small for given parameters.`].join(\"\\n\"),{metaMessages:[`Params: (${(0,r.A)(t,{includeName:!0})})`,`Data:   ${e} (${n} bytes)`],name:\"AbiDecodingDataSizeTooSmallError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e,this.params=t,this.size=n}}class u extends i.C{constructor({cause:e}={}){super('Cannot decode zero data (\"0x\") with ABI parameters.',{name:\"AbiDecodingZeroDataError\",cause:e})}}class f extends i.C{constructor({expectedLength:e,givenLength:t,type:n}){super([`ABI encoding array length mismatch for type ${n}.`,`Expected length: ${e}`,`Given length: ${t}`].join(\"\\n\"),{name:\"AbiEncodingArrayLengthMismatchError\"})}}class l extends i.C{constructor({expectedSize:e,value:t}){super(`Size of bytes \"${t}\" (bytes${(0,o.E)(t)}) does not match expected size (bytes${e}).`,{name:\"AbiEncodingBytesSizeMismatchError\"})}}class d extends i.C{constructor({expectedLength:e,givenLength:t}){super([\"ABI encoding params/values length mismatch.\",`Expected length (params): ${e}`,`Given length (values): ${t}`].join(\"\\n\"),{name:\"AbiEncodingLengthMismatchError\"})}}class h extends i.C{constructor(e,{docsPath:t}){super([`Arguments (\\`args\\`) were provided to \"${e}\", but \"${e}\" on the ABI does not contain any parameters (\\`inputs\\`).`,\"Cannot encode error result without knowing what the parameter types are.\",\"Make sure you are using the correct ABI and that the inputs exist on it.\"].join(\"\\n\"),{docsPath:t,name:\"AbiErrorInputsNotFoundError\"})}}class p extends i.C{constructor(e,{docsPath:t}={}){super([`Error ${e?`\"${e}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\"].join(\"\\n\"),{docsPath:t,name:\"AbiErrorNotFoundError\"})}}class b extends i.C{constructor(e,{docsPath:t,cause:n}){super([`Encoded error signature \"${e}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${e}.`].join(\"\\n\"),{docsPath:t,name:\"AbiErrorSignatureNotFoundError\",cause:n}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=e}}class g extends i.C{constructor({docsPath:e}){super(\"Cannot extract event signature from empty topics.\",{docsPath:e,name:\"AbiEventSignatureEmptyTopicsError\"})}}class y extends i.C{constructor(e,{docsPath:t}){super([`Encoded event signature \"${e}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the event exists on it.\",`You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`].join(\"\\n\"),{docsPath:t,name:\"AbiEventSignatureNotFoundError\"})}}class m extends i.C{constructor(e,{docsPath:t}={}){super([`Event ${e?`\"${e}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the event exists on it.\"].join(\"\\n\"),{docsPath:t,name:\"AbiEventNotFoundError\"})}}class w extends i.C{constructor(e,{docsPath:t}={}){super([`Function ${e?`\"${e}\" `:\"\"}not found on ABI.`,\"Make sure you are using the correct ABI and that the function exists on it.\"].join(\"\\n\"),{docsPath:t,name:\"AbiFunctionNotFoundError\"})}}class v extends i.C{constructor(e,{docsPath:t}){super([`Function \"${e}\" does not contain any \\`outputs\\` on ABI.`,\"Cannot decode function result without knowing what the parameter types are.\",\"Make sure you are using the correct ABI and that the function exists on it.\"].join(\"\\n\"),{docsPath:t,name:\"AbiFunctionOutputsNotFoundError\"})}}class A extends i.C{constructor(e,{docsPath:t}){super([`Encoded function signature \"${e}\" not found on ABI.`,\"Make sure you are using the correct ABI and that the function exists on it.\",`You can look up the signature here: https://4byte.sourcify.dev/?q=${e}.`].join(\"\\n\"),{docsPath:t,name:\"AbiFunctionSignatureNotFoundError\"})}}class x extends i.C{constructor(e,t){super(\"Found ambiguous types in overloaded ABI items.\",{metaMessages:[`\\`${e.type}\\` in \\`${(0,r.B)(e.abiItem)}\\`, and`,`\\`${t.type}\\` in \\`${(0,r.B)(t.abiItem)}\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"],name:\"AbiItemAmbiguityError\"})}}class E extends i.C{constructor({expectedSize:e,givenSize:t}){super(`Expected bytes${e}, got bytes${t}.`,{name:\"BytesSizeMismatchError\"})}}class B extends i.C{constructor({abiItem:e,data:t,params:n,size:o}){super([`Data size of ${o} bytes is too small for non-indexed event parameters.`].join(\"\\n\"),{metaMessages:[`Params: (${(0,r.A)(n,{includeName:!0})})`,`Data:   ${t} (${o} bytes)`],name:\"DecodeLogDataMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"params\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"size\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e,this.data=t,this.params=n,this.size=o}}class P extends i.C{constructor({abiItem:e,param:t}){super([`Expected a topic for indexed event parameter${t.name?` \"${t.name}\"`:\"\"} on event \"${(0,r.B)(e,{includeName:!0})}\".`].join(\"\\n\"),{name:\"DecodeLogTopicsMismatch\"}),Object.defineProperty(this,\"abiItem\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abiItem=e}}class I extends i.C{constructor(e,{docsPath:t}){super([`Type \"${e}\" is not a valid encoding type.`,\"Please provide a valid ABI type.\"].join(\"\\n\"),{docsPath:t,name:\"InvalidAbiEncodingType\"})}}class C extends i.C{constructor(e,{docsPath:t}){super([`Type \"${e}\" is not a valid decoding type.`,\"Please provide a valid ABI type.\"].join(\"\\n\"),{docsPath:t,name:\"InvalidAbiDecodingType\"})}}class k extends i.C{constructor(e){super([`Value \"${e}\" is not a valid array.`].join(\"\\n\"),{name:\"InvalidArrayError\"})}}class M extends i.C{constructor(e){super([`\"${e}\" is not a valid definition type.`,'Valid types: \"function\", \"event\", \"error\"'].join(\"\\n\"),{name:\"InvalidDefinitionTypeError\"})}}i.C},7521:(e,t,n)=>{\"use strict\";n.d(t,{C:()=>r});class r extends Error{static setStaticOptions(e){r.prototype.docsOrigin=e.docsOrigin,r.prototype.showVersion=e.showVersion,r.prototype.version=e.version}constructor(e,t={}){const n=(()=>{if(t.cause instanceof r){if(t.cause.details)return t.cause.details;if(t.cause.shortMessage)return t.cause.shortMessage}return t.cause&&\"details\"in t.cause&&\"string\"==typeof t.cause.details?t.cause.details:t.cause?.message?t.cause.message:t.details})(),o=t.cause instanceof r&&t.cause.docsPath||t.docsPath,i=t.docsOrigin??r.prototype.docsOrigin,s=`${i}${o??\"\"}`,a=Boolean(t.version??r.prototype.showVersion),c=t.version??r.prototype.version;super([e||\"An error occurred.\",...t.metaMessages?[\"\",...t.metaMessages]:[],...n||o||a?[\"\",n?`Details: ${n}`:void 0,o?`See: ${s}`:void 0,a?`Version: ${c}`:void 0]:[]].filter(e=>\"string\"==typeof e).join(\"\\n\"),t.cause?{cause:t.cause}:void 0),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsOrigin\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"showVersion\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"version\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"BaseError\"}),this.cause=t.cause,this.details=n,this.docs=s,this.docsOrigin=i,this.docsPath=o,this.shortMessage=e,this.showVersion=a,this.version=c}walk(e){return o(this,e)}}function o(e,t){return t?.(e)?e:e&&\"object\"==typeof e&&\"cause\"in e&&e.cause?o(e.cause,t):t?null:e}Object.defineProperty(r,\"defaultStaticOptions\",{enumerable:!0,configurable:!0,writable:!0,value:{docsOrigin:\"https://oxlib.sh\",showVersion:!1,version:\"ox@0.1.1\"}}),r.setStaticOptions(r.defaultStaticOptions)},7526:(e,t)=>{\"use strict\";t.byteLength=function(e){var t=a(e),n=t[0],r=t[1];return 3*(n+r)/4-r},t.toByteArray=function(e){var t,n,i=a(e),s=i[0],c=i[1],u=new o(function(e,t,n){return 3*(t+n)/4-n}(0,s,c)),f=0,l=c>0?s-4:s;for(n=0;n<l;n+=4)t=r[e.charCodeAt(n)]<<18|r[e.charCodeAt(n+1)]<<12|r[e.charCodeAt(n+2)]<<6|r[e.charCodeAt(n+3)],u[f++]=t>>16&255,u[f++]=t>>8&255,u[f++]=255&t;2===c&&(t=r[e.charCodeAt(n)]<<2|r[e.charCodeAt(n+1)]>>4,u[f++]=255&t);1===c&&(t=r[e.charCodeAt(n)]<<10|r[e.charCodeAt(n+1)]<<4|r[e.charCodeAt(n+2)]>>2,u[f++]=t>>8&255,u[f++]=255&t);return u},t.fromByteArray=function(e){for(var t,r=e.length,o=r%3,i=[],s=16383,a=0,c=r-o;a<c;a+=s)i.push(u(e,a,a+s>c?c:a+s));1===o?(t=e[r-1],i.push(n[t>>2]+n[t<<4&63]+\"==\")):2===o&&(t=(e[r-2]<<8)+e[r-1],i.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+\"=\"));return i.join(\"\")};for(var n=[],r=[],o=\"undefined\"!=typeof Uint8Array?Uint8Array:Array,i=\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\",s=0;s<64;++s)n[s]=i[s],r[i.charCodeAt(s)]=s;function a(e){var t=e.length;if(t%4>0)throw new Error(\"Invalid string. Length must be a multiple of 4\");var n=e.indexOf(\"=\");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e){return n[e>>18&63]+n[e>>12&63]+n[e>>6&63]+n[63&e]}function u(e,t,n){for(var r,o=[],i=t;i<n;i+=3)r=(e[i]<<16&16711680)+(e[i+1]<<8&65280)+(255&e[i+2]),o.push(c(r));return o.join(\"\")}r[\"-\".charCodeAt(0)]=62,r[\"_\".charCodeAt(0)]=63},7671:(e,t,n)=>{\"use strict\";n.d(t,{Bv:()=>i});var r=n(4192);const o={legacy:\"0x0\",eip2930:\"0x1\",eip1559:\"0x2\",eip4844:\"0x3\",eip7702:\"0x4\"};function i(e,t){const n={};return void 0!==e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,r:e.r?(0,r.cK)(BigInt(e.r)):e.r,s:e.s?(0,r.cK)(BigInt(e.s)):e.s,chainId:(0,r.cK)(e.chainId),nonce:(0,r.cK)(e.nonce),...void 0!==e.yParity?{yParity:(0,r.cK)(e.yParity)}:{},...void 0!==e.v&&void 0===e.yParity?{v:(0,r.cK)(e.v)}:{}}))),void 0!==e.accessList&&(n.accessList=e.accessList),void 0!==e.blobVersionedHashes&&(n.blobVersionedHashes=e.blobVersionedHashes),void 0!==e.blobs&&(\"string\"!=typeof e.blobs[0]?n.blobs=e.blobs.map(e=>(0,r.My)(e)):n.blobs=e.blobs),void 0!==e.data&&(n.data=e.data),e.account&&(n.from=e.account.address),void 0!==e.from&&(n.from=e.from),void 0!==e.gas&&(n.gas=(0,r.cK)(e.gas)),void 0!==e.gasPrice&&(n.gasPrice=(0,r.cK)(e.gasPrice)),void 0!==e.maxFeePerBlobGas&&(n.maxFeePerBlobGas=(0,r.cK)(e.maxFeePerBlobGas)),void 0!==e.maxFeePerGas&&(n.maxFeePerGas=(0,r.cK)(e.maxFeePerGas)),void 0!==e.maxPriorityFeePerGas&&(n.maxPriorityFeePerGas=(0,r.cK)(e.maxPriorityFeePerGas)),void 0!==e.nonce&&(n.nonce=(0,r.cK)(e.nonce)),void 0!==e.to&&(n.to=e.to),void 0!==e.type&&(n.type=o[e.type]),void 0!==e.value&&(n.value=(0,r.cK)(e.value)),n}},8146:(e,t,n)=>{\"use strict\";n.d(t,{B4:()=>o,SK:()=>i,hX:()=>s});var r=n(1344);class o extends r.C{constructor({offset:e}){super(`Offset \\`${e}\\` cannot be negative.`,{name:\"NegativeOffsetError\"})}}class i extends r.C{constructor({length:e,position:t}){super(`Position \\`${t}\\` is out of bounds (\\`0 < position < ${e}\\`).`,{name:\"PositionOutOfBoundsError\"})}}class s extends r.C{constructor({count:e,limit:t}){super(`Recursive read limit of \\`${t}\\` exceeded (recursive read count: \\`${e}\\`).`,{name:\"RecursiveReadLimitExceededError\"})}}},8213:(e,t,n)=>{\"use strict\";n.d(t,{BD:()=>r,Ge:()=>o});const r=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,o=/^(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)?$/},8287:(e,t,n)=>{\"use strict\";const r=n(7526),o=n(251),i=\"function\"==typeof Symbol&&\"function\"==typeof Symbol.for?Symbol.for(\"nodejs.util.inspect.custom\"):null;t.hp=c,t.IS=50;const s=2147483647;function a(e){if(e>s)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"');const t=new Uint8Array(e);return Object.setPrototypeOf(t,c.prototype),t}function c(e,t,n){if(\"number\"==typeof e){if(\"string\"==typeof t)throw new TypeError('The \"string\" argument must be of type string. Received type number');return l(e)}return u(e,t,n)}function u(e,t,n){if(\"string\"==typeof e)return function(e,t){\"string\"==typeof t&&\"\"!==t||(t=\"utf8\");if(!c.isEncoding(t))throw new TypeError(\"Unknown encoding: \"+t);const n=0|b(e,t);let r=a(n);const o=r.write(e,t);o!==n&&(r=r.slice(0,o));return r}(e,t);if(ArrayBuffer.isView(e))return function(e){if(K(e,Uint8Array)){const t=new Uint8Array(e);return h(t.buffer,t.byteOffset,t.byteLength)}return d(e)}(e);if(null==e)throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e);if(K(e,ArrayBuffer)||e&&K(e.buffer,ArrayBuffer))return h(e,t,n);if(\"undefined\"!=typeof SharedArrayBuffer&&(K(e,SharedArrayBuffer)||e&&K(e.buffer,SharedArrayBuffer)))return h(e,t,n);if(\"number\"==typeof e)throw new TypeError('The \"value\" argument must not be of type number. Received type number');const r=e.valueOf&&e.valueOf();if(null!=r&&r!==e)return c.from(r,t,n);const o=function(e){if(c.isBuffer(e)){const t=0|p(e.length),n=a(t);return 0===n.length||e.copy(n,0,0,t),n}if(void 0!==e.length)return\"number\"!=typeof e.length||W(e.length)?a(0):d(e);if(\"Buffer\"===e.type&&Array.isArray(e.data))return d(e.data)}(e);if(o)return o;if(\"undefined\"!=typeof Symbol&&null!=Symbol.toPrimitive&&\"function\"==typeof e[Symbol.toPrimitive])return c.from(e[Symbol.toPrimitive](\"string\"),t,n);throw new TypeError(\"The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type \"+typeof e)}function f(e){if(\"number\"!=typeof e)throw new TypeError('\"size\" argument must be of type number');if(e<0)throw new RangeError('The value \"'+e+'\" is invalid for option \"size\"')}function l(e){return f(e),a(e<0?0:0|p(e))}function d(e){const t=e.length<0?0:0|p(e.length),n=a(t);for(let r=0;r<t;r+=1)n[r]=255&e[r];return n}function h(e,t,n){if(t<0||e.byteLength<t)throw new RangeError('\"offset\" is outside of buffer bounds');if(e.byteLength<t+(n||0))throw new RangeError('\"length\" is outside of buffer bounds');let r;return r=void 0===t&&void 0===n?new Uint8Array(e):void 0===n?new Uint8Array(e,t):new Uint8Array(e,t,n),Object.setPrototypeOf(r,c.prototype),r}function p(e){if(e>=s)throw new RangeError(\"Attempt to allocate Buffer larger than maximum size: 0x\"+s.toString(16)+\" bytes\");return 0|e}function b(e,t){if(c.isBuffer(e))return e.length;if(ArrayBuffer.isView(e)||K(e,ArrayBuffer))return e.byteLength;if(\"string\"!=typeof e)throw new TypeError('The \"string\" argument must be one of type string, Buffer, or ArrayBuffer. Received type '+typeof e);const n=e.length,r=arguments.length>2&&!0===arguments[2];if(!r&&0===n)return 0;let o=!1;for(;;)switch(t){case\"ascii\":case\"latin1\":case\"binary\":return n;case\"utf8\":case\"utf-8\":return q(e).length;case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return 2*n;case\"hex\":return n>>>1;case\"base64\":return V(e).length;default:if(o)return r?-1:q(e).length;t=(\"\"+t).toLowerCase(),o=!0}}function g(e,t,n){let r=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return\"\";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return\"\";if((n>>>=0)<=(t>>>=0))return\"\";for(e||(e=\"utf8\");;)switch(e){case\"hex\":return O(this,t,n);case\"utf8\":case\"utf-8\":return I(this,t,n);case\"ascii\":return k(this,t,n);case\"latin1\":case\"binary\":return M(this,t,n);case\"base64\":return P(this,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return N(this,t,n);default:if(r)throw new TypeError(\"Unknown encoding: \"+e);e=(e+\"\").toLowerCase(),r=!0}}function y(e,t,n){const r=e[t];e[t]=e[n],e[n]=r}function m(e,t,n,r,o){if(0===e.length)return-1;if(\"string\"==typeof n?(r=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),W(n=+n)&&(n=o?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(o)return-1;n=e.length-1}else if(n<0){if(!o)return-1;n=0}if(\"string\"==typeof t&&(t=c.from(t,r)),c.isBuffer(t))return 0===t.length?-1:w(e,t,n,r,o);if(\"number\"==typeof t)return t&=255,\"function\"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):w(e,[t],n,r,o);throw new TypeError(\"val must be string, number or Buffer\")}function w(e,t,n,r,o){let i,s=1,a=e.length,c=t.length;if(void 0!==r&&(\"ucs2\"===(r=String(r).toLowerCase())||\"ucs-2\"===r||\"utf16le\"===r||\"utf-16le\"===r)){if(e.length<2||t.length<2)return-1;s=2,a/=2,c/=2,n/=2}function u(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(o){let r=-1;for(i=n;i<a;i++)if(u(e,i)===u(t,-1===r?0:i-r)){if(-1===r&&(r=i),i-r+1===c)return r*s}else-1!==r&&(i-=i-r),r=-1}else for(n+c>a&&(n=a-c),i=n;i>=0;i--){let n=!0;for(let r=0;r<c;r++)if(u(e,i+r)!==u(t,r)){n=!1;break}if(n)return i}return-1}function v(e,t,n,r){n=Number(n)||0;const o=e.length-n;r?(r=Number(r))>o&&(r=o):r=o;const i=t.length;let s;for(r>i/2&&(r=i/2),s=0;s<r;++s){const r=parseInt(t.substr(2*s,2),16);if(W(r))return s;e[n+s]=r}return s}function A(e,t,n,r){return J(q(t,e.length-n),e,n,r)}function x(e,t,n,r){return J(function(e){const t=[];for(let n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,r)}function E(e,t,n,r){return J(V(t),e,n,r)}function B(e,t,n,r){return J(function(e,t){let n,r,o;const i=[];for(let s=0;s<e.length&&!((t-=2)<0);++s)n=e.charCodeAt(s),r=n>>8,o=n%256,i.push(o),i.push(r);return i}(t,e.length-n),e,n,r)}function P(e,t,n){return 0===t&&n===e.length?r.fromByteArray(e):r.fromByteArray(e.slice(t,n))}function I(e,t,n){n=Math.min(e.length,n);const r=[];let o=t;for(;o<n;){const t=e[o];let i=null,s=t>239?4:t>223?3:t>191?2:1;if(o+s<=n){let n,r,a,c;switch(s){case 1:t<128&&(i=t);break;case 2:n=e[o+1],128==(192&n)&&(c=(31&t)<<6|63&n,c>127&&(i=c));break;case 3:n=e[o+1],r=e[o+2],128==(192&n)&&128==(192&r)&&(c=(15&t)<<12|(63&n)<<6|63&r,c>2047&&(c<55296||c>57343)&&(i=c));break;case 4:n=e[o+1],r=e[o+2],a=e[o+3],128==(192&n)&&128==(192&r)&&128==(192&a)&&(c=(15&t)<<18|(63&n)<<12|(63&r)<<6|63&a,c>65535&&c<1114112&&(i=c))}}null===i?(i=65533,s=1):i>65535&&(i-=65536,r.push(i>>>10&1023|55296),i=56320|1023&i),r.push(i),o+=s}return function(e){const t=e.length;if(t<=C)return String.fromCharCode.apply(String,e);let n=\"\",r=0;for(;r<t;)n+=String.fromCharCode.apply(String,e.slice(r,r+=C));return n}(r)}c.TYPED_ARRAY_SUPPORT=function(){try{const e=new Uint8Array(1),t={foo:function(){return 42}};return Object.setPrototypeOf(t,Uint8Array.prototype),Object.setPrototypeOf(e,t),42===e.foo()}catch(e){return!1}}(),c.TYPED_ARRAY_SUPPORT||\"undefined\"==typeof console||\"function\"!=typeof console.error||console.error(\"This browser lacks typed array (Uint8Array) support which is required by `buffer` v5.x. Use `buffer` v4.x if you require old browser support.\"),Object.defineProperty(c.prototype,\"parent\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.buffer}}),Object.defineProperty(c.prototype,\"offset\",{enumerable:!0,get:function(){if(c.isBuffer(this))return this.byteOffset}}),c.poolSize=8192,c.from=function(e,t,n){return u(e,t,n)},Object.setPrototypeOf(c.prototype,Uint8Array.prototype),Object.setPrototypeOf(c,Uint8Array),c.alloc=function(e,t,n){return function(e,t,n){return f(e),e<=0?a(e):void 0!==t?\"string\"==typeof n?a(e).fill(t,n):a(e).fill(t):a(e)}(e,t,n)},c.allocUnsafe=function(e){return l(e)},c.allocUnsafeSlow=function(e){return l(e)},c.isBuffer=function(e){return null!=e&&!0===e._isBuffer&&e!==c.prototype},c.compare=function(e,t){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),K(t,Uint8Array)&&(t=c.from(t,t.offset,t.byteLength)),!c.isBuffer(e)||!c.isBuffer(t))throw new TypeError('The \"buf1\", \"buf2\" arguments must be one of type Buffer or Uint8Array');if(e===t)return 0;let n=e.length,r=t.length;for(let o=0,i=Math.min(n,r);o<i;++o)if(e[o]!==t[o]){n=e[o],r=t[o];break}return n<r?-1:r<n?1:0},c.isEncoding=function(e){switch(String(e).toLowerCase()){case\"hex\":case\"utf8\":case\"utf-8\":case\"ascii\":case\"latin1\":case\"binary\":case\"base64\":case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return!0;default:return!1}},c.concat=function(e,t){if(!Array.isArray(e))throw new TypeError('\"list\" argument must be an Array of Buffers');if(0===e.length)return c.alloc(0);let n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;const r=c.allocUnsafe(t);let o=0;for(n=0;n<e.length;++n){let t=e[n];if(K(t,Uint8Array))o+t.length>r.length?(c.isBuffer(t)||(t=c.from(t)),t.copy(r,o)):Uint8Array.prototype.set.call(r,t,o);else{if(!c.isBuffer(t))throw new TypeError('\"list\" argument must be an Array of Buffers');t.copy(r,o)}o+=t.length}return r},c.byteLength=b,c.prototype._isBuffer=!0,c.prototype.swap16=function(){const e=this.length;if(e%2!=0)throw new RangeError(\"Buffer size must be a multiple of 16-bits\");for(let t=0;t<e;t+=2)y(this,t,t+1);return this},c.prototype.swap32=function(){const e=this.length;if(e%4!=0)throw new RangeError(\"Buffer size must be a multiple of 32-bits\");for(let t=0;t<e;t+=4)y(this,t,t+3),y(this,t+1,t+2);return this},c.prototype.swap64=function(){const e=this.length;if(e%8!=0)throw new RangeError(\"Buffer size must be a multiple of 64-bits\");for(let t=0;t<e;t+=8)y(this,t,t+7),y(this,t+1,t+6),y(this,t+2,t+5),y(this,t+3,t+4);return this},c.prototype.toString=function(){const e=this.length;return 0===e?\"\":0===arguments.length?I(this,0,e):g.apply(this,arguments)},c.prototype.toLocaleString=c.prototype.toString,c.prototype.equals=function(e){if(!c.isBuffer(e))throw new TypeError(\"Argument must be a Buffer\");return this===e||0===c.compare(this,e)},c.prototype.inspect=function(){let e=\"\";const n=t.IS;return e=this.toString(\"hex\",0,n).replace(/(.{2})/g,\"$1 \").trim(),this.length>n&&(e+=\" ... \"),\"<Buffer \"+e+\">\"},i&&(c.prototype[i]=c.prototype.inspect),c.prototype.compare=function(e,t,n,r,o){if(K(e,Uint8Array)&&(e=c.from(e,e.offset,e.byteLength)),!c.isBuffer(e))throw new TypeError('The \"target\" argument must be one of type Buffer or Uint8Array. Received type '+typeof e);if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===r&&(r=0),void 0===o&&(o=this.length),t<0||n>e.length||r<0||o>this.length)throw new RangeError(\"out of range index\");if(r>=o&&t>=n)return 0;if(r>=o)return-1;if(t>=n)return 1;if(this===e)return 0;let i=(o>>>=0)-(r>>>=0),s=(n>>>=0)-(t>>>=0);const a=Math.min(i,s),u=this.slice(r,o),f=e.slice(t,n);for(let e=0;e<a;++e)if(u[e]!==f[e]){i=u[e],s=f[e];break}return i<s?-1:s<i?1:0},c.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},c.prototype.indexOf=function(e,t,n){return m(this,e,t,n,!0)},c.prototype.lastIndexOf=function(e,t,n){return m(this,e,t,n,!1)},c.prototype.write=function(e,t,n,r){if(void 0===t)r=\"utf8\",n=this.length,t=0;else if(void 0===n&&\"string\"==typeof t)r=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error(\"Buffer.write(string, encoding, offset[, length]) is no longer supported\");t>>>=0,isFinite(n)?(n>>>=0,void 0===r&&(r=\"utf8\")):(r=n,n=void 0)}const o=this.length-t;if((void 0===n||n>o)&&(n=o),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError(\"Attempt to write outside buffer bounds\");r||(r=\"utf8\");let i=!1;for(;;)switch(r){case\"hex\":return v(this,e,t,n);case\"utf8\":case\"utf-8\":return A(this,e,t,n);case\"ascii\":case\"latin1\":case\"binary\":return x(this,e,t,n);case\"base64\":return E(this,e,t,n);case\"ucs2\":case\"ucs-2\":case\"utf16le\":case\"utf-16le\":return B(this,e,t,n);default:if(i)throw new TypeError(\"Unknown encoding: \"+r);r=(\"\"+r).toLowerCase(),i=!0}},c.prototype.toJSON=function(){return{type:\"Buffer\",data:Array.prototype.slice.call(this._arr||this,0)}};const C=4096;function k(e,t,n){let r=\"\";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(127&e[o]);return r}function M(e,t,n){let r=\"\";n=Math.min(e.length,n);for(let o=t;o<n;++o)r+=String.fromCharCode(e[o]);return r}function O(e,t,n){const r=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>r)&&(n=r);let o=\"\";for(let r=t;r<n;++r)o+=Z[e[r]];return o}function N(e,t,n){const r=e.slice(t,n);let o=\"\";for(let e=0;e<r.length-1;e+=2)o+=String.fromCharCode(r[e]+256*r[e+1]);return o}function S(e,t,n){if(e%1!=0||e<0)throw new RangeError(\"offset is not uint\");if(e+t>n)throw new RangeError(\"Trying to access beyond buffer length\")}function T(e,t,n,r,o,i){if(!c.isBuffer(e))throw new TypeError('\"buffer\" argument must be a Buffer instance');if(t>o||t<i)throw new RangeError('\"value\" argument is out of bounds');if(n+r>e.length)throw new RangeError(\"Index out of range\")}function U(e,t,n,r,o){$(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i,i>>=8,e[n++]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,s>>=8,e[n++]=s,n}function R(e,t,n,r,o){$(t,r,o,e,n,7);let i=Number(t&BigInt(4294967295));e[n+7]=i,i>>=8,e[n+6]=i,i>>=8,e[n+5]=i,i>>=8,e[n+4]=i;let s=Number(t>>BigInt(32)&BigInt(4294967295));return e[n+3]=s,s>>=8,e[n+2]=s,s>>=8,e[n+1]=s,s>>=8,e[n]=s,n+8}function F(e,t,n,r,o,i){if(n+r>e.length)throw new RangeError(\"Index out of range\");if(n<0)throw new RangeError(\"Index out of range\")}function z(e,t,n,r,i){return t=+t,n>>>=0,i||F(e,0,n,4),o.write(e,t,n,r,23,4),n+4}function j(e,t,n,r,i){return t=+t,n>>>=0,i||F(e,0,n,8),o.write(e,t,n,r,52,8),n+8}c.prototype.slice=function(e,t){const n=this.length;(e=~~e)<0?(e+=n)<0&&(e=0):e>n&&(e=n),(t=void 0===t?n:~~t)<0?(t+=n)<0&&(t=0):t>n&&(t=n),t<e&&(t=e);const r=this.subarray(e,t);return Object.setPrototypeOf(r,c.prototype),r},c.prototype.readUintLE=c.prototype.readUIntLE=function(e,t,n){e>>>=0,t>>>=0,n||S(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return r},c.prototype.readUintBE=c.prototype.readUIntBE=function(e,t,n){e>>>=0,t>>>=0,n||S(e,t,this.length);let r=this[e+--t],o=1;for(;t>0&&(o*=256);)r+=this[e+--t]*o;return r},c.prototype.readUint8=c.prototype.readUInt8=function(e,t){return e>>>=0,t||S(e,1,this.length),this[e]},c.prototype.readUint16LE=c.prototype.readUInt16LE=function(e,t){return e>>>=0,t||S(e,2,this.length),this[e]|this[e+1]<<8},c.prototype.readUint16BE=c.prototype.readUInt16BE=function(e,t){return e>>>=0,t||S(e,2,this.length),this[e]<<8|this[e+1]},c.prototype.readUint32LE=c.prototype.readUInt32LE=function(e,t){return e>>>=0,t||S(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},c.prototype.readUint32BE=c.prototype.readUInt32BE=function(e,t){return e>>>=0,t||S(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},c.prototype.readBigUInt64LE=Y(function(e){G(e>>>=0,\"offset\");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);const r=t+256*this[++e]+65536*this[++e]+this[++e]*2**24,o=this[++e]+256*this[++e]+65536*this[++e]+n*2**24;return BigInt(r)+(BigInt(o)<<BigInt(32))}),c.prototype.readBigUInt64BE=Y(function(e){G(e>>>=0,\"offset\");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);const r=t*2**24+65536*this[++e]+256*this[++e]+this[++e],o=this[++e]*2**24+65536*this[++e]+256*this[++e]+n;return(BigInt(r)<<BigInt(32))+BigInt(o)}),c.prototype.readIntLE=function(e,t,n){e>>>=0,t>>>=0,n||S(e,t,this.length);let r=this[e],o=1,i=0;for(;++i<t&&(o*=256);)r+=this[e+i]*o;return o*=128,r>=o&&(r-=Math.pow(2,8*t)),r},c.prototype.readIntBE=function(e,t,n){e>>>=0,t>>>=0,n||S(e,t,this.length);let r=t,o=1,i=this[e+--r];for(;r>0&&(o*=256);)i+=this[e+--r]*o;return o*=128,i>=o&&(i-=Math.pow(2,8*t)),i},c.prototype.readInt8=function(e,t){return e>>>=0,t||S(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},c.prototype.readInt16LE=function(e,t){e>>>=0,t||S(e,2,this.length);const n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(e,t){e>>>=0,t||S(e,2,this.length);const n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(e,t){return e>>>=0,t||S(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},c.prototype.readInt32BE=function(e,t){return e>>>=0,t||S(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},c.prototype.readBigInt64LE=Y(function(e){G(e>>>=0,\"offset\");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);const r=this[e+4]+256*this[e+5]+65536*this[e+6]+(n<<24);return(BigInt(r)<<BigInt(32))+BigInt(t+256*this[++e]+65536*this[++e]+this[++e]*2**24)}),c.prototype.readBigInt64BE=Y(function(e){G(e>>>=0,\"offset\");const t=this[e],n=this[e+7];void 0!==t&&void 0!==n||Q(e,this.length-8);const r=(t<<24)+65536*this[++e]+256*this[++e]+this[++e];return(BigInt(r)<<BigInt(32))+BigInt(this[++e]*2**24+65536*this[++e]+256*this[++e]+n)}),c.prototype.readFloatLE=function(e,t){return e>>>=0,t||S(e,4,this.length),o.read(this,e,!0,23,4)},c.prototype.readFloatBE=function(e,t){return e>>>=0,t||S(e,4,this.length),o.read(this,e,!1,23,4)},c.prototype.readDoubleLE=function(e,t){return e>>>=0,t||S(e,8,this.length),o.read(this,e,!0,52,8)},c.prototype.readDoubleBE=function(e,t){return e>>>=0,t||S(e,8,this.length),o.read(this,e,!1,52,8)},c.prototype.writeUintLE=c.prototype.writeUIntLE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){T(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=1,i=0;for(this[t]=255&e;++i<n&&(o*=256);)this[t+i]=e/o&255;return t+n},c.prototype.writeUintBE=c.prototype.writeUIntBE=function(e,t,n,r){if(e=+e,t>>>=0,n>>>=0,!r){T(this,e,t,n,Math.pow(2,8*n)-1,0)}let o=n-1,i=1;for(this[t+o]=255&e;--o>=0&&(i*=256);)this[t+o]=e/i&255;return t+n},c.prototype.writeUint8=c.prototype.writeUInt8=function(e,t,n){return e=+e,t>>>=0,n||T(this,e,t,1,255,0),this[t]=255&e,t+1},c.prototype.writeUint16LE=c.prototype.writeUInt16LE=function(e,t,n){return e=+e,t>>>=0,n||T(this,e,t,2,65535,0),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeUint16BE=c.prototype.writeUInt16BE=function(e,t,n){return e=+e,t>>>=0,n||T(this,e,t,2,65535,0),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeUint32LE=c.prototype.writeUInt32LE=function(e,t,n){return e=+e,t>>>=0,n||T(this,e,t,4,4294967295,0),this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e,t+4},c.prototype.writeUint32BE=c.prototype.writeUInt32BE=function(e,t,n){return e=+e,t>>>=0,n||T(this,e,t,4,4294967295,0),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigUInt64LE=Y(function(e,t=0){return U(this,e,t,BigInt(0),BigInt(\"0xffffffffffffffff\"))}),c.prototype.writeBigUInt64BE=Y(function(e,t=0){return R(this,e,t,BigInt(0),BigInt(\"0xffffffffffffffff\"))}),c.prototype.writeIntLE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);T(this,e,t,n,r-1,-r)}let o=0,i=1,s=0;for(this[t]=255&e;++o<n&&(i*=256);)e<0&&0===s&&0!==this[t+o-1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+n},c.prototype.writeIntBE=function(e,t,n,r){if(e=+e,t>>>=0,!r){const r=Math.pow(2,8*n-1);T(this,e,t,n,r-1,-r)}let o=n-1,i=1,s=0;for(this[t+o]=255&e;--o>=0&&(i*=256);)e<0&&0===s&&0!==this[t+o+1]&&(s=1),this[t+o]=(e/i|0)-s&255;return t+n},c.prototype.writeInt8=function(e,t,n){return e=+e,t>>>=0,n||T(this,e,t,1,127,-128),e<0&&(e=255+e+1),this[t]=255&e,t+1},c.prototype.writeInt16LE=function(e,t,n){return e=+e,t>>>=0,n||T(this,e,t,2,32767,-32768),this[t]=255&e,this[t+1]=e>>>8,t+2},c.prototype.writeInt16BE=function(e,t,n){return e=+e,t>>>=0,n||T(this,e,t,2,32767,-32768),this[t]=e>>>8,this[t+1]=255&e,t+2},c.prototype.writeInt32LE=function(e,t,n){return e=+e,t>>>=0,n||T(this,e,t,4,2147483647,-2147483648),this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24,t+4},c.prototype.writeInt32BE=function(e,t,n){return e=+e,t>>>=0,n||T(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e,t+4},c.prototype.writeBigInt64LE=Y(function(e,t=0){return U(this,e,t,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))}),c.prototype.writeBigInt64BE=Y(function(e,t=0){return R(this,e,t,-BigInt(\"0x8000000000000000\"),BigInt(\"0x7fffffffffffffff\"))}),c.prototype.writeFloatLE=function(e,t,n){return z(this,e,t,!0,n)},c.prototype.writeFloatBE=function(e,t,n){return z(this,e,t,!1,n)},c.prototype.writeDoubleLE=function(e,t,n){return j(this,e,t,!0,n)},c.prototype.writeDoubleBE=function(e,t,n){return j(this,e,t,!1,n)},c.prototype.copy=function(e,t,n,r){if(!c.isBuffer(e))throw new TypeError(\"argument should be a Buffer\");if(n||(n=0),r||0===r||(r=this.length),t>=e.length&&(t=e.length),t||(t=0),r>0&&r<n&&(r=n),r===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError(\"targetStart out of bounds\");if(n<0||n>=this.length)throw new RangeError(\"Index out of range\");if(r<0)throw new RangeError(\"sourceEnd out of bounds\");r>this.length&&(r=this.length),e.length-t<r-n&&(r=e.length-t+n);const o=r-n;return this===e&&\"function\"==typeof Uint8Array.prototype.copyWithin?this.copyWithin(t,n,r):Uint8Array.prototype.set.call(e,this.subarray(n,r),t),o},c.prototype.fill=function(e,t,n,r){if(\"string\"==typeof e){if(\"string\"==typeof t?(r=t,t=0,n=this.length):\"string\"==typeof n&&(r=n,n=this.length),void 0!==r&&\"string\"!=typeof r)throw new TypeError(\"encoding must be a string\");if(\"string\"==typeof r&&!c.isEncoding(r))throw new TypeError(\"Unknown encoding: \"+r);if(1===e.length){const t=e.charCodeAt(0);(\"utf8\"===r&&t<128||\"latin1\"===r)&&(e=t)}}else\"number\"==typeof e?e&=255:\"boolean\"==typeof e&&(e=Number(e));if(t<0||this.length<t||this.length<n)throw new RangeError(\"Out of range index\");if(n<=t)return this;let o;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),\"number\"==typeof e)for(o=t;o<n;++o)this[o]=e;else{const i=c.isBuffer(e)?e:c.from(e,r),s=i.length;if(0===s)throw new TypeError('The value \"'+e+'\" is invalid for argument \"value\"');for(o=0;o<n-t;++o)this[o+t]=i[o%s]}return this};const L={};function D(e,t,n){L[e]=class extends n{constructor(){super(),Object.defineProperty(this,\"message\",{value:t.apply(this,arguments),writable:!0,configurable:!0}),this.name=`${this.name} [${e}]`,this.stack,delete this.name}get code(){return e}set code(e){Object.defineProperty(this,\"code\",{configurable:!0,enumerable:!0,value:e,writable:!0})}toString(){return`${this.name} [${e}]: ${this.message}`}}}function _(e){let t=\"\",n=e.length;const r=\"-\"===e[0]?1:0;for(;n>=r+4;n-=3)t=`_${e.slice(n-3,n)}${t}`;return`${e.slice(0,n)}${t}`}function $(e,t,n,r,o,i){if(e>n||e<t){const r=\"bigint\"==typeof t?\"n\":\"\";let o;throw o=i>3?0===t||t===BigInt(0)?`>= 0${r} and < 2${r} ** ${8*(i+1)}${r}`:`>= -(2${r} ** ${8*(i+1)-1}${r}) and < 2 ** ${8*(i+1)-1}${r}`:`>= ${t}${r} and <= ${n}${r}`,new L.ERR_OUT_OF_RANGE(\"value\",o,e)}!function(e,t,n){G(t,\"offset\"),void 0!==e[t]&&void 0!==e[t+n]||Q(t,e.length-(n+1))}(r,o,i)}function G(e,t){if(\"number\"!=typeof e)throw new L.ERR_INVALID_ARG_TYPE(t,\"number\",e)}function Q(e,t,n){if(Math.floor(e)!==e)throw G(e,n),new L.ERR_OUT_OF_RANGE(n||\"offset\",\"an integer\",e);if(t<0)throw new L.ERR_BUFFER_OUT_OF_BOUNDS;throw new L.ERR_OUT_OF_RANGE(n||\"offset\",`>= ${n?1:0} and <= ${t}`,e)}D(\"ERR_BUFFER_OUT_OF_BOUNDS\",function(e){return e?`${e} is outside of buffer bounds`:\"Attempt to access memory outside buffer bounds\"},RangeError),D(\"ERR_INVALID_ARG_TYPE\",function(e,t){return`The \"${e}\" argument must be of type number. Received type ${typeof t}`},TypeError),D(\"ERR_OUT_OF_RANGE\",function(e,t,n){let r=`The value of \"${e}\" is out of range.`,o=n;return Number.isInteger(n)&&Math.abs(n)>2**32?o=_(String(n)):\"bigint\"==typeof n&&(o=String(n),(n>BigInt(2)**BigInt(32)||n<-(BigInt(2)**BigInt(32)))&&(o=_(o)),o+=\"n\"),r+=` It must be ${t}. Received ${o}`,r},RangeError);const H=/[^+/0-9A-Za-z-_]/g;function q(e,t){let n;t=t||1/0;const r=e.length;let o=null;const i=[];for(let s=0;s<r;++s){if(n=e.charCodeAt(s),n>55295&&n<57344){if(!o){if(n>56319){(t-=3)>-1&&i.push(239,191,189);continue}if(s+1===r){(t-=3)>-1&&i.push(239,191,189);continue}o=n;continue}if(n<56320){(t-=3)>-1&&i.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(t-=3)>-1&&i.push(239,191,189);if(o=null,n<128){if((t-=1)<0)break;i.push(n)}else if(n<2048){if((t-=2)<0)break;i.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;i.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error(\"Invalid code point\");if((t-=4)<0)break;i.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return i}function V(e){return r.toByteArray(function(e){if((e=(e=e.split(\"=\")[0]).trim().replace(H,\"\")).length<2)return\"\";for(;e.length%4!=0;)e+=\"=\";return e}(e))}function J(e,t,n,r){let o;for(o=0;o<r&&!(o+n>=t.length||o>=e.length);++o)t[o+n]=e[o];return o}function K(e,t){return e instanceof t||null!=e&&null!=e.constructor&&null!=e.constructor.name&&e.constructor.name===t.name}function W(e){return e!=e}const Z=function(){const e=\"0123456789abcdef\",t=new Array(256);for(let n=0;n<16;++n){const r=16*n;for(let o=0;o<16;++o)t[r+o]=e[n]+e[o]}return t}();function Y(e){return\"undefined\"==typeof BigInt?X:e}function X(){throw new Error(\"BigInt not supported\")}},8442:(e,t,n)=>{\"use strict\";n.d(t,{sc:()=>h});var r=n(2531);function o(e,t,n){return e&t^~e&n}function i(e,t,n){return e&t^e&n^t&n}class s extends r.Vw{constructor(e,t,n,o){super(),this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.blockLen=e,this.outputLen=t,this.padOffset=n,this.isLE=o,this.buffer=new Uint8Array(e),this.view=(0,r.O8)(this.buffer)}update(e){(0,r.CC)(this),e=(0,r.ZJ)(e),(0,r.DO)(e);const{view:t,buffer:n,blockLen:o}=this,i=e.length;for(let s=0;s<i;){const a=Math.min(o-this.pos,i-s);if(a===o){const t=(0,r.O8)(e);for(;o<=i-s;s+=o)this.process(t,s);continue}n.set(e.subarray(s,s+a),this.pos),this.pos+=a,s+=a,this.pos===o&&(this.process(t,0),this.pos=0)}return this.length+=e.length,this.roundClean(),this}digestInto(e){(0,r.CC)(this),(0,r.Ht)(e,this),this.finished=!0;const{buffer:t,view:n,blockLen:o,isLE:i}=this;let{pos:s}=this;t[s++]=128,(0,r.uH)(this.buffer.subarray(s)),this.padOffset>o-s&&(this.process(n,0),s=0);for(let e=s;e<o;e++)t[e]=0;!function(e,t,n,r){if(\"function\"==typeof e.setBigUint64)return e.setBigUint64(t,n,r);const o=BigInt(32),i=BigInt(4294967295),s=Number(n>>o&i),a=Number(n&i),c=r?4:0,u=r?0:4;e.setUint32(t+c,s,r),e.setUint32(t+u,a,r)}(n,o-8,BigInt(8*this.length),i),this.process(n,0);const a=(0,r.O8)(e),c=this.outputLen;if(c%4)throw new Error(\"_sha2: outputLen should be aligned to 32bit\");const u=c/4,f=this.get();if(u>f.length)throw new Error(\"_sha2: outputLen bigger than state\");for(let e=0;e<u;e++)a.setUint32(4*e,f[e],i)}digest(){const{buffer:e,outputLen:t}=this;this.digestInto(e);const n=e.slice(0,t);return this.destroy(),n}_cloneInto(e){e||(e=new this.constructor),e.set(...this.get());const{blockLen:t,buffer:n,length:r,finished:o,destroyed:i,pos:s}=this;return e.destroyed=i,e.finished=o,e.length=r,e.pos=s,r%t&&e.buffer.set(n),e}clone(){return this._cloneInto()}}const a=Uint32Array.from([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]);Uint32Array.from([3238371032,914150663,812702999,4144912697,4290775857,1750603025,1694076839,3204075428]),Uint32Array.from([3418070365,3238371032,1654270250,914150663,2438529370,812702999,355462360,4144912697,1731405415,4290775857,2394180231,1750603025,3675008525,1694076839,1203062813,3204075428]),Uint32Array.from([1779033703,4089235720,3144134277,2227873595,1013904242,4271175723,2773480762,1595750129,1359893119,2917565137,2600822924,725511199,528734635,4215389547,1541459225,327033209]);var c=n(9271);const u=Uint32Array.from([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]),f=new Uint32Array(64);class l extends s{constructor(e=32){super(64,e,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(){const{A:e,B:t,C:n,D:r,E:o,F:i,G:s,H:a}=this;return[e,t,n,r,o,i,s,a]}set(e,t,n,r,o,i,s,a){this.A=0|e,this.B=0|t,this.C=0|n,this.D=0|r,this.E=0|o,this.F=0|i,this.G=0|s,this.H=0|a}process(e,t){for(let n=0;n<16;n++,t+=4)f[n]=e.getUint32(t,!1);for(let e=16;e<64;e++){const t=f[e-15],n=f[e-2],o=(0,r.Ow)(t,7)^(0,r.Ow)(t,18)^t>>>3,i=(0,r.Ow)(n,17)^(0,r.Ow)(n,19)^n>>>10;f[e]=i+f[e-7]+o+f[e-16]|0}let{A:n,B:s,C:a,D:c,E:l,F:d,G:h,H:p}=this;for(let e=0;e<64;e++){const t=p+((0,r.Ow)(l,6)^(0,r.Ow)(l,11)^(0,r.Ow)(l,25))+o(l,d,h)+u[e]+f[e]|0,b=((0,r.Ow)(n,2)^(0,r.Ow)(n,13)^(0,r.Ow)(n,22))+i(n,s,a)|0;p=h,h=d,d=l,l=c+t|0,c=a,a=s,s=n,n=t+b|0}n=n+this.A|0,s=s+this.B|0,a=a+this.C|0,c=c+this.D|0,l=l+this.E|0,d=d+this.F|0,h=h+this.G|0,p=p+this.H|0,this.set(n,s,a,c,l,d,h,p)}roundClean(){(0,r.uH)(f)}destroy(){this.set(0,0,0,0,0,0,0,0),(0,r.uH)(this.buffer)}}const d=c.lD([\"0x428a2f98d728ae22\",\"0x7137449123ef65cd\",\"0xb5c0fbcfec4d3b2f\",\"0xe9b5dba58189dbbc\",\"0x3956c25bf348b538\",\"0x59f111f1b605d019\",\"0x923f82a4af194f9b\",\"0xab1c5ed5da6d8118\",\"0xd807aa98a3030242\",\"0x12835b0145706fbe\",\"0x243185be4ee4b28c\",\"0x550c7dc3d5ffb4e2\",\"0x72be5d74f27b896f\",\"0x80deb1fe3b1696b1\",\"0x9bdc06a725c71235\",\"0xc19bf174cf692694\",\"0xe49b69c19ef14ad2\",\"0xefbe4786384f25e3\",\"0x0fc19dc68b8cd5b5\",\"0x240ca1cc77ac9c65\",\"0x2de92c6f592b0275\",\"0x4a7484aa6ea6e483\",\"0x5cb0a9dcbd41fbd4\",\"0x76f988da831153b5\",\"0x983e5152ee66dfab\",\"0xa831c66d2db43210\",\"0xb00327c898fb213f\",\"0xbf597fc7beef0ee4\",\"0xc6e00bf33da88fc2\",\"0xd5a79147930aa725\",\"0x06ca6351e003826f\",\"0x142929670a0e6e70\",\"0x27b70a8546d22ffc\",\"0x2e1b21385c26c926\",\"0x4d2c6dfc5ac42aed\",\"0x53380d139d95b3df\",\"0x650a73548baf63de\",\"0x766a0abb3c77b2a8\",\"0x81c2c92e47edaee6\",\"0x92722c851482353b\",\"0xa2bfe8a14cf10364\",\"0xa81a664bbc423001\",\"0xc24b8b70d0f89791\",\"0xc76c51a30654be30\",\"0xd192e819d6ef5218\",\"0xd69906245565a910\",\"0xf40e35855771202a\",\"0x106aa07032bbd1b8\",\"0x19a4c116b8d2d0c8\",\"0x1e376c085141ab53\",\"0x2748774cdf8eeb99\",\"0x34b0bcb5e19b48a8\",\"0x391c0cb3c5c95a63\",\"0x4ed8aa4ae3418acb\",\"0x5b9cca4f7763e373\",\"0x682e6ff3d6b2b8a3\",\"0x748f82ee5defb2fc\",\"0x78a5636f43172f60\",\"0x84c87814a1f0ab72\",\"0x8cc702081a6439ec\",\"0x90befffa23631e28\",\"0xa4506cebde82bde9\",\"0xbef9a3f7b2c67915\",\"0xc67178f2e372532b\",\"0xca273eceea26619c\",\"0xd186b8c721c0c207\",\"0xeada7dd6cde0eb1e\",\"0xf57d4f7fee6ed178\",\"0x06f067aa72176fba\",\"0x0a637dc5a2c898a6\",\"0x113f9804bef90dae\",\"0x1b710b35131c471b\",\"0x28db77f523047d84\",\"0x32caab7b40c72493\",\"0x3c9ebe0a15c9bebc\",\"0x431d67c49c100d4c\",\"0x4cc5d4becb3e42b6\",\"0x597f299cfc657e2a\",\"0x5fcb6fab3ad6faec\",\"0x6c44198c4a475817\"].map(e=>BigInt(e)));d[0],d[1],new Uint32Array(80),new Uint32Array(80);Uint32Array.from([2352822216,424955298,1944164710,2312950998,502970286,855612546,1738396948,1479516111,258812777,2077511080,2011393907,79989058,1067287976,1780299464,286451373,2446758561]),Uint32Array.from([573645204,4230739756,2673172387,3360449730,596883563,1867755857,2520282905,1497426621,2519219938,2827943907,3193839141,1401305490,721525244,746961066,246885852,2177182882]);const h=(0,r.qj)(()=>new l)},8463:(e,t,n)=>{\"use strict\";n.d(t,{A:()=>r});const r=(e,t,n)=>JSON.stringify(e,(e,n)=>{const r=\"bigint\"==typeof n?n.toString():n;return\"function\"==typeof t?t(e,r):r},n)},8503:(e,t,n)=>{\"use strict\";n.d(t,{p:()=>f});var r=n(5419),o=n(4531),i=n(7372),s=n(2599),a=n(5167),c=n(4586);const u=\"/docs/contract/encodeFunctionData\";function f(e){const{args:t}=e,{abi:n,functionName:f}=1===e.abi.length&&e.functionName?.startsWith(\"0x\")?e:function(e){const{abi:t,args:n,functionName:r}=e;let o=t[0];if(r){const e=(0,c.iY)({abi:t,args:n,name:r});if(!e)throw new i.Iz(r,{docsPath:u});o=e}if(\"function\"!==o.type)throw new i.Iz(void 0,{docsPath:u});return{abi:[o],functionName:(0,s.V)((0,a.B)(o))}}(e),l=n[0],d=f,h=\"inputs\"in l&&l.inputs?(0,o.h)(l.inputs,t??[]):void 0;return(0,r.aP)([d,h??\"0x\"])}},8583:(e,t,n)=>{\"use strict\";function r(e,{dir:t=\"left\"}={}){let n=\"string\"==typeof e?e.replace(\"0x\",\"\"):e,r=0;for(let e=0;e<n.length-1&&\"0\"===n[\"left\"===t?e:n.length-e-1].toString();e++)r++;return n=\"left\"===t?n.slice(r):n.slice(0,n.length-r),\"string\"==typeof e?(1===n.length&&\"right\"===t&&(n=`${n}0`),`0x${n.length%2==1?`0${n}`:n}`):n}n.d(t,{B:()=>r})},8684:(e,t,n)=>{\"use strict\";n.d(t,{d:()=>s});var r=n(8863),o=n(211),i=n(1772);function s(e,{docsPath:t,...n}){const s=(()=>{const t=(0,i.l)(e,n);return t instanceof o.RM?e:t})();return new r.zX(s,{docsPath:t,...n})}},8703:(e,t,n)=>{\"use strict\";n.d(t,{YE:()=>i,rj:()=>o});var r=n(1344);class o extends r.C{constructor({blockNumber:e,chain:t,contract:n}){super(`Chain \"${t.name}\" does not support contract \"${n.name}\".`,{metaMessages:[\"This could be due to any of the following:\",...e&&n.blockCreated&&n.blockCreated>e?[`- The contract \"${n.name}\" was not deployed until block ${n.blockCreated} (current block ${e}).`]:[`- The chain does not have the contract \"${n.name}\" configured.`]],name:\"ChainDoesNotSupportContract\"})}}r.C;r.C;class i extends r.C{constructor(){super(\"No chain was provided to the Client.\",{name:\"ClientChainNotConfiguredError\"})}}r.C},8863:(e,t,n)=>{\"use strict\";n.d(t,{zX:()=>y,bG:()=>m,M:()=>w,rR:()=>v,Po:()=>A,$S:()=>x});var r=n(3033),o=n(4453),i=n(5462),s=n(5167),a=n(8463);function c({abiItem:e,args:t,includeFunctionName:n=!0,includeName:r=!1}){if(\"name\"in e&&\"inputs\"in e&&e.inputs)return`${n?e.name:\"\"}(${e.inputs.map((e,n)=>`${r&&e.name?`${e.name}: `:\"\"}${\"object\"==typeof t[n]?(0,a.A)(t[n]):t[n]}`).join(\", \")})`}var u=n(4586),f=n(9436),l=n(9670),d=n(7372),h=n(1344),p=n(6883),b=n(8990),g=n(1163);class y extends h.C{constructor(e,{account:t,docsPath:n,chain:o,data:i,gas:s,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:u,nonce:d,to:h,value:g,stateOverride:y}){const m=t?(0,r.J)(t):void 0;let w=(0,b.aO)({from:m?.address,to:h,value:void 0!==g&&`${(0,f.c)(g)} ${o?.nativeCurrency?.symbol||\"ETH\"}`,data:i,gas:s,gasPrice:void 0!==a&&`${(0,l.Q)(a)} gwei`,maxFeePerGas:void 0!==c&&`${(0,l.Q)(c)} gwei`,maxPriorityFeePerGas:void 0!==u&&`${(0,l.Q)(u)} gwei`,nonce:d});y&&(w+=`\\n${(0,p.uj)(y)}`),super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages,\" \"]:[],\"Raw Call Arguments:\",w].filter(Boolean),name:\"CallExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class m extends h.C{constructor(e,{abi:t,args:n,contractAddress:r,docsPath:o,functionName:i,sender:a}){const f=(0,u.iY)({abi:t,args:n,name:i}),l=f?c({abiItem:f,args:n,includeFunctionName:!1,includeName:!1}):void 0,d=f?(0,s.B)(f,{includeName:!0}):void 0,h=(0,b.aO)({address:r&&(0,g.R)(r),function:d,args:l&&\"()\"!==l&&`${[...Array(i?.length??0).keys()].map(()=>\" \").join(\"\")}${l}`,sender:a});super(e.shortMessage||`An unknown error occurred while executing the contract function \"${i}\".`,{cause:e,docsPath:o,metaMessages:[...e.metaMessages?[...e.metaMessages,\" \"]:[],h&&\"Contract Call:\",h].filter(Boolean),name:\"ContractFunctionExecutionError\"}),Object.defineProperty(this,\"abi\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"args\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"contractAddress\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"formattedArgs\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"functionName\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"sender\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.abi=t,this.args=n,this.cause=e,this.contractAddress=r,this.functionName=i,this.sender=a}}class w extends h.C{constructor({abi:e,data:t,functionName:n,message:r,cause:a}){let u,f,l,h,p;if(t&&\"0x\"!==t)try{f=(0,i.W)({abi:e,data:t,cause:a});const{abiItem:n,errorName:r,args:u}=f;if(\"Error\"===r)h=u[0];else if(\"Panic\"===r){const[e]=u;h=o.fD[e]}else{const e=n?(0,s.B)(n,{includeName:!0}):void 0,t=n&&u?c({abiItem:n,args:u,includeFunctionName:!1,includeName:!1}):void 0;l=[e?`Error: ${e}`:\"\",t&&\"()\"!==t?`       ${[...Array(r?.length??0).keys()].map(()=>\" \").join(\"\")}${t}`:\"\"]}}catch(e){u=e}else r&&(h=r);u instanceof d.Wq&&(p=u.signature,l=[`Unable to decode signature \"${p}\" as it was not found on the provided ABI.`,\"Make sure you are using the correct ABI and that the error exists on it.\",`You can look up the decoded signature here: https://4byte.sourcify.dev/?q=${p}.`]),super(h&&\"execution reverted\"!==h||p?[`The contract function \"${n}\" reverted with the following ${p?\"signature\":\"reason\"}:`,h||p].join(\"\\n\"):`The contract function \"${n}\" reverted.`,{cause:u??a,metaMessages:l,name:\"ContractFunctionRevertedError\"}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"raw\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"reason\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"signature\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=f,this.raw=t,this.reason=h,this.signature=p}}class v extends h.C{constructor({functionName:e,cause:t}){super(`The contract function \"${e}\" returned no data (\"0x\").`,{metaMessages:[\"This could be due to any of the following:\",`  - The contract does not have the function \"${e}\",`,\"  - The parameters passed to the contract function may be invalid, or\",\"  - The address is not a contract.\"],name:\"ContractFunctionZeroDataError\",cause:t})}}class A extends h.C{constructor({factory:e}){super(\"Deployment for counterfactual contract call failed\"+(e?` for factory \"${e}\".`:\"\"),{metaMessages:[\"Please ensure:\",\"- The `factory` is a valid contract deployment factory (ie. Create2 Factory, ERC-4337 Factory, etc).\",\"- The `factoryData` is a valid encoded function call for contract deployment function on the factory.\"],name:\"CounterfactualDeploymentFailedError\"})}}class x extends h.C{constructor({data:e,message:t}){super(t||\"\",{name:\"RawContractError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:3}),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=e}}},8990:(e,t,n)=>{\"use strict\";n.d(t,{$s:()=>c,Kc:()=>f,Kz:()=>u,Sq:()=>l,Vg:()=>a,WA:()=>d,aO:()=>s});var r=n(9436),o=n(9670),i=n(1344);function s(e){const t=Object.entries(e).map(([e,t])=>void 0===t||!1===t?null:[e,t]).filter(Boolean),n=t.reduce((e,[t])=>Math.max(e,t.length),0);return t.map(([e,t])=>`  ${`${e}:`.padEnd(n+1)}  ${t}`).join(\"\\n\")}i.C;i.C;class a extends i.C{constructor({transaction:e}){super(\"Cannot infer a transaction type from provided transaction.\",{metaMessages:[\"Provided Transaction:\",\"{\",s(e),\"}\",\"\",\"To infer the type, either provide:\",\"- a `type` to the Transaction, or\",\"- an EIP-1559 Transaction with `maxFeePerGas`, or\",\"- an EIP-2930 Transaction with `gasPrice` & `accessList`, or\",\"- an EIP-4844 Transaction with `blobs`, `blobVersionedHashes`, `sidecars`, or\",\"- an EIP-7702 Transaction with `authorizationList`, or\",\"- a Legacy Transaction with `gasPrice`\"],name:\"InvalidSerializableTransactionError\"})}}i.C;i.C;i.C;class c extends i.C{constructor(e,{account:t,docsPath:n,chain:i,data:a,gas:c,gasPrice:u,maxFeePerGas:f,maxPriorityFeePerGas:l,nonce:d,to:h,value:p}){const b=s({chain:i&&`${i?.name} (id: ${i?.id})`,from:t?.address,to:h,value:void 0!==p&&`${(0,r.c)(p)} ${i?.nativeCurrency?.symbol||\"ETH\"}`,data:a,gas:c,gasPrice:void 0!==u&&`${(0,o.Q)(u)} gwei`,maxFeePerGas:void 0!==f&&`${(0,o.Q)(f)} gwei`,maxPriorityFeePerGas:void 0!==l&&`${(0,o.Q)(l)} gwei`,nonce:d});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages,\" \"]:[],\"Request Arguments:\",b].filter(Boolean),name:\"TransactionExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}class u extends i.C{constructor({blockHash:e,blockNumber:t,blockTag:n,hash:r,index:o}){let i=\"Transaction\";n&&void 0!==o&&(i=`Transaction at block time \"${n}\" at index \"${o}\"`),e&&void 0!==o&&(i=`Transaction at block hash \"${e}\" at index \"${o}\"`),t&&void 0!==o&&(i=`Transaction at block number \"${t}\" at index \"${o}\"`),r&&(i=`Transaction with hash \"${r}\"`),super(`${i} could not be found.`,{name:\"TransactionNotFoundError\"})}}class f extends i.C{constructor({hash:e}){super(`Transaction receipt with hash \"${e}\" could not be found. The Transaction may not be processed on a block yet.`,{name:\"TransactionReceiptNotFoundError\"})}}class l extends i.C{constructor({receipt:e}){super(`Transaction with hash \"${e.transactionHash}\" reverted.`,{metaMessages:['The receipt marked the transaction as \"reverted\". This could mean that the function on the contract you are trying to call threw an error.',\" \",\"You can attempt to extract the revert reason by:\",\"- calling the `simulateContract` or `simulateCalls` Action with the `abi` and `functionName` of the contract\",\"- using the `call` Action with raw `data`\"],name:\"TransactionReceiptRevertedError\"}),Object.defineProperty(this,\"receipt\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.receipt=e}}class d extends i.C{constructor({hash:e}){super(`Timed out while waiting for transaction with hash \"${e}\" to be confirmed.`,{name:\"WaitForTransactionReceiptTimeoutError\"})}}},9091:(e,t,n)=>{\"use strict\";function r(){let e=()=>{},t=()=>{};return{promise:new Promise((n,r)=>{e=n,t=r}),resolve:e,reject:t}}n.d(t,{Y:()=>r})},9271:(e,t,n)=>{\"use strict\";n.d(t,{B4:()=>p,CQ:()=>A,CW:()=>v,Ei:()=>d,F8:()=>x,P5:()=>h,TH:()=>E,Vl:()=>m,Vr:()=>w,WM:()=>b,WQ:()=>y,im:()=>g,jm:()=>c,lD:()=>s,qh:()=>l,rE:()=>u,ry:()=>f,xn:()=>a});const r=BigInt(2**32-1),o=BigInt(32);function i(e,t=!1){return t?{h:Number(e&r),l:Number(e>>o&r)}:{h:0|Number(e>>o&r),l:0|Number(e&r)}}function s(e,t=!1){const n=e.length;let r=new Uint32Array(n),o=new Uint32Array(n);for(let s=0;s<n;s++){const{h:n,l:a}=i(e[s],t);[r[s],o[s]]=[n,a]}return[r,o]}const a=(e,t,n)=>e>>>n,c=(e,t,n)=>e<<32-n|t>>>n,u=(e,t,n)=>e>>>n|t<<32-n,f=(e,t,n)=>e<<32-n|t>>>n,l=(e,t,n)=>e<<64-n|t>>>n-32,d=(e,t,n)=>e>>>n-32|t<<64-n,h=(e,t,n)=>e<<n|t>>>32-n,p=(e,t,n)=>t<<n|e>>>32-n,b=(e,t,n)=>t<<n-32|e>>>64-n,g=(e,t,n)=>e<<n-32|t>>>64-n;function y(e,t,n,r){const o=(t>>>0)+(r>>>0);return{h:e+n+(o/2**32|0)|0,l:0|o}}const m=(e,t,n)=>(e>>>0)+(t>>>0)+(n>>>0),w=(e,t,n,r)=>t+n+r+(e/2**32|0)|0,v=(e,t,n,r)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0),A=(e,t,n,r,o)=>t+n+r+o+(e/2**32|0)|0,x=(e,t,n,r,o)=>(e>>>0)+(t>>>0)+(n>>>0)+(r>>>0)+(o>>>0),E=(e,t,n,r,o,i)=>t+n+r+o+i+(e/2**32|0)|0},9436:(e,t,n)=>{\"use strict\";n.d(t,{c:()=>i});var r=n(638),o=n(7135);function i(e,t=\"wei\"){return(0,o.J)(e,r.eL[t])}},9670:(e,t,n)=>{\"use strict\";n.d(t,{Q:()=>i});var r=n(638),o=n(7135);function i(e,t=\"wei\"){return(0,o.J)(e,r.sz[t])}},9721:(e,t,n)=>{\"use strict\";n.d(t,{offchainLookup:()=>w,offchainLookupSignature:()=>y});var r=n(3275),o=n(8463),i=n(1344),s=n(1163);class a extends i.C{constructor({callbackSelector:e,cause:t,data:n,extraData:r,sender:o,urls:i}){super(t.shortMessage||\"An error occurred while fetching for an offchain result.\",{cause:t,metaMessages:[...t.metaMessages||[],t.metaMessages?.length?\"\":[],\"Offchain Gateway Call:\",i&&[\"  Gateway URL(s):\",...i.map(e=>`    ${(0,s.I)(e)}`)],`  Sender: ${o}`,`  Data: ${n}`,`  Callback selector: ${e}`,`  Extra data: ${r}`].flat(),name:\"OffchainLookupError\"})}}class c extends i.C{constructor({result:e,url:t}){super(\"Offchain gateway response is malformed. Response data must be a hex value.\",{metaMessages:[`Gateway URL: ${(0,s.I)(t)}`,`Response: ${(0,o.A)(e)}`],name:\"OffchainLookupResponseMalformedError\"})}}class u extends i.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 f=n(6595),l=n(5462),d=n(4531),h=n(2589),p=n(5419),b=n(6394),g=n(2592);const y=\"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 w(e,{blockNumber:t,blockTag:n,data:o,to:i}){const{args:s}=(0,l.W)({data:o,abi:[m]}),[c,f,b,y,w]=s,{ccipRead:A}=e,x=A&&\"function\"==typeof A?.request?A.request:v;try{if(!(0,h.h)(i,c))throw new u({sender:c,to:i});const o=f.includes(g.J)?await(0,g.X)({data:b,ccipRequest:x}):await x({data:b,sender:c,urls:f}),{data:s}=await(0,r.T)(e,{blockNumber:t,blockTag:n,data:(0,p.xW)([y,(0,d.h)([{type:\"bytes\"},{type:\"bytes\"}],[o,w])]),to:i});return s}catch(e){throw new a({callbackSelector:y,cause:e,data:o,extraData:w,sender:c,urls:f})}}async function v({data:e,sender:t,urls:n}){let r=new Error(\"An unknown error occurred.\");for(let i=0;i<n.length;i++){const s=n[i],a=s.includes(\"{data}\")?\"GET\":\"POST\",u=\"POST\"===a?{data:e,sender:t}:void 0,l=\"POST\"===a?{\"Content-Type\":\"application/json\"}:{};try{const n=await fetch(s.replace(\"{sender}\",t.toLowerCase()).replace(\"{data}\",e),{body:JSON.stringify(u),headers:l,method:a});let i;if(i=n.headers.get(\"Content-Type\")?.startsWith(\"application/json\")?(await n.json()).data:await n.text(),!n.ok){r=new f.Ci({body:u,details:i?.error?(0,o.A)(i.error):n.statusText,headers:n.headers,status:n.status,url:s});continue}if(!(0,b.q)(i)){r=new c({result:i,url:s});continue}return i}catch(e){r=new f.Ci({body:u,details:e.message,url:s})}}throw r}},9777:(e,t,n)=>{\"use strict\";n.d(t,{h:()=>r});const r=n(504).k},9789:(e,t,n)=>{\"use strict\";function r(e,{format:t}){if(!t)return{};const n={};return function t(r){const o=Object.keys(r);for(const i of o)i in e&&(n[i]=e[i]),r[i]&&\"object\"==typeof r[i]&&!Array.isArray(r[i])&&t(r[i])}(t(e||{})),n}n.d(t,{o:()=>r})},9873:(e,t,n)=>{\"use strict\";n.d(t,{P:()=>a});var r=n(6447),o=n(4569);const i=/^0x[a-fA-F0-9]{40}$/,s=new r.A(8192);function a(e,t){const{strict:n=!0}=t??{},r=`${e}.${n}`;if(s.has(r))return s.get(r);const a=!(!i.test(e)||e.toLowerCase()!==e&&n&&(0,o.o)(e)!==e);return s.set(r,a),a}},9985:(e,t,n)=>{\"use strict\";n.d(t,{M:()=>o});var r=n(8703);function o({blockNumber:e,chain:t,contract:n}){const o=t?.contracts?.[n];if(!o)throw new r.rj({chain:t,contract:{name:n}});if(e&&o.blockCreated&&o.blockCreated>e)throw new r.rj({blockNumber:e,chain:t,contract:{name:n,blockCreated:o.blockCreated}});return o.address}}},t={};function n(r){var o=t[r];if(void 0!==o)return o.exports;var i=t[r]={id:r,loaded:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.loaded=!0,i.exports}n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.g=function(){if(\"object\"==typeof globalThis)return globalThis;try{return this||new Function(\"return this\")()}catch(e){if(\"object\"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{\"undefined\"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:\"Module\"}),Object.defineProperty(e,\"__esModule\",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e);var r={};(()=>{\"use strict\";n.r(r),n.d(r,{onNameLookup:()=>jc});class e extends TypeError{constructor(e,t){let n;const{message:r,explanation:o,...i}=e,{path:s}=e,a=0===s.length?r:`At path: ${s.join(\".\")} -- ${r}`;super(o??a),null!=o&&(this.cause=a),Object.assign(this,i),this.name=this.constructor.name,this.failures=()=>n??(n=[e,...t()])}}function t(e){return\"object\"==typeof e&&null!==e}function o(e){return\"symbol\"==typeof e?e.toString():\"string\"==typeof e?JSON.stringify(e):`${e}`}function i(e,t,n,r){if(!0===e)return;!1===e?e={}:\"string\"==typeof e&&(e={message:e});const{path:i,branch:s}=t,{type:a}=n,{refinement:c,message:u=`Expected a value of type \\`${a}\\`${c?` with refinement \\`${c}\\``:\"\"}, but received: \\`${o(r)}\\``}=e;return{value:r,type:a,refinement:c,key:i[i.length-1],path:i,branch:s,...e,message:u}}function*s(e,n,r,o){(function(e){return t(e)&&\"function\"==typeof e[Symbol.iterator]})(e)||(e=[e]);for(const t of e){const e=i(t,n,r,o);e&&(yield e)}}function*a(e,n,r={}){const{path:o=[],branch:i=[e],coerce:s=!1,mask:c=!1}=r,u={path:o,branch:i};if(s&&(e=n.coercer(e,u),c&&\"type\"!==n.type&&t(n.schema)&&t(e)&&!Array.isArray(e)))for(const t in e)void 0===n.schema[t]&&delete e[t];let f=\"valid\";for(const t of n.validator(e,u))t.explanation=r.message,f=\"not_valid\",yield[t,void 0];for(let[l,d,h]of n.entries(e,u)){const n=a(d,h,{path:void 0===l?o:[...o,l],branch:void 0===l?i:[...i,d],coerce:s,mask:c,message:r.message});for(const r of n)r[0]?(f=null===r[0].refinement||void 0===r[0].refinement?\"not_valid\":\"not_refined\",yield[r[0],void 0]):s&&(d=r[1],void 0===l?e=d:e instanceof Map?e.set(l,d):e instanceof Set?e.add(d):t(e)&&(void 0!==d||l in e)&&(e[l]=d))}if(\"not_valid\"!==f)for(const t of n.refiner(e,u))t.explanation=r.message,f=\"not_refined\",yield[t,void 0];\"valid\"===f&&(yield[void 0,e])}class c{constructor(e){const{type:t,schema:n,validator:r,refiner:o,coercer:i=e=>e,entries:a=function*(){}}=e;this.type=t,this.schema=n,this.entries=a,this.coercer=i,this.validator=r?(e,t)=>s(r(e,t),t,this,e):()=>[],this.refiner=o?(e,t)=>s(o(e,t),t,this,e):()=>[]}assert(e,t){return function(e,t,n){const r=u(e,t,{message:n});if(r[0])throw r[0]}(e,this,t)}create(e,t){return function(e,t,n){const r=u(e,t,{coerce:!0,message:n});if(r[0])throw r[0];return r[1]}(e,this,t)}is(e){return function(e,t){const n=u(e,t);return!n[0]}(e,this)}mask(e,t){return function(e,t,n){const r=u(e,t,{coerce:!0,mask:!0,message:n});if(r[0])throw r[0];return r[1]}(e,this,t)}validate(e,t={}){return u(e,this,t)}}function u(t,n,r={}){const o=a(t,n,r),i=function(e){const{done:t,value:n}=e.next();return t?void 0:n}(o);if(i[0]){return[new e(i[0],function*(){for(const e of o)e[0]&&(yield e[0])}),void 0]}return[void 0,i[1]]}function f(e,t){return new c({type:e,schema:null,validator:t})}function l(e,t){return f(e,e=>\"string\"==typeof e&&t.test(e))}const d=/^(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})$/u,h=/^[-a-z0-9]{3,8}$/u,p=/^[-_a-zA-Z0-9]{1,32}$/u,b=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32})):(?<accountAddress>[-.%a-zA-Z0-9]{1,128})$/u,g=/^[-.%a-zA-Z0-9]{1,128}$/u,y=/^[-a-z0-9]{3,8}$/u,m=/^[-.%a-zA-Z0-9]{1,128}$/u,w=/^[-.%a-zA-Z0-9]{1,78}$/u,v=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})$/u,A=/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})\\/(?<tokenId>[-.%a-zA-Z0-9]{1,78})$/u;l(\"CaipChainId\",d),l(\"CaipNamespace\",h),l(\"CaipReference\",p),l(\"CaipAccountId\",b),l(\"CaipAccountAddress\",g),l(\"CaipAssetNamespace\",y),l(\"CaipAssetReference\",m),l(\"CaipTokenId\",w),l(\"CaipAssetType\",v),l(\"CaipAssetId\",A),l(\"CaipAssetTypeOrId\",/^(?<chainId>(?<namespace>[-a-z0-9]{3,8}):(?<reference>[-_a-zA-Z0-9]{1,32}))\\/(?<assetNamespace>[-a-z0-9]{3,8}):(?<assetReference>[-.%a-zA-Z0-9]{1,128})(\\/(?<tokenId>[-.%a-zA-Z0-9]{1,78}))?$/u);var x;!function(e){e.Bip122=\"bip122\",e.Solana=\"solana\",e.Tron=\"tron\",e.Eip155=\"eip155\",e.Wallet=\"wallet\"}(x=x||(x={}));const E=\"Ethereum Name Service\",B=[\"eip155:1\",\"eip155:11155111\"],P={\"bip122:000000000019d6689c085ae165831e93\":0,\"solana:5eykt4UsFv8P8NJdTREpY1vzqKqZKvdp\":501,\"solana:EtWTRABZaYq6iMfeYKouRu166VU2xqa1\":501,\"solana:4uhcVJyU9pJkvQyS88uRDiswHXSCkY3z\":501,\"tron:728126428\":195,\"tron:3448148188\":195,\"tron:2494104990\":195};var I=n(1344);class C extends I.C{constructor({data:e}){super(\"Unable to extract image from metadata. The metadata may be malformed or invalid.\",{metaMessages:[\"- Metadata must be a JSON object with at least an `image`, `image_url` or `image_data` property.\",\"\",`Provided data: ${JSON.stringify(e)}`],name:\"EnsAvatarInvalidMetadataError\"})}}class k extends I.C{constructor({reason:e}){super(`ENS NFT avatar URI is invalid. ${e}`,{name:\"EnsAvatarInvalidNftUriError\"})}}class M extends I.C{constructor({uri:e}){super(`Unable to resolve ENS avatar URI \"${e}\". The URI may be malformed, invalid, or does not respond with a valid image.`,{name:\"EnsAvatarUriResolutionError\"})}}class O extends I.C{constructor({namespace:e}){super(`ENS NFT avatar namespace \"${e}\" is not supported. Must be \"erc721\" or \"erc1155\".`,{name:\"EnsAvatarUnsupportedNamespaceError\"})}}class N extends I.C{constructor({chainId:e}){super(`Invalid ENSIP-11 chainId: ${e}. Must be between 0 and 0x7fffffff, or 1.`,{name:\"EnsInvalidChainIdError\"})}}function S(e){if(1===e)return 60n;if(e>=2147483648||e<0)throw new N({chainId:e});return BigInt((2147483648|e)>>>0)}var T=n(4569);const U=new Map([[8217,\"apostrophe\"],[8260,\"fraction slash\"],[12539,\"middle dot\"]]);function R(e){return function(e){let t=0;return()=>e[t++]}(function(e){let t=0;function n(){return e[t++]<<8|e[t++]}let r=n(),o=1,i=[0,1];for(let e=1;e<r;e++)i.push(o+=n());let s=n(),a=t;t+=s;let c=0,u=0;function f(){return 0==c&&(u=u<<8|e[t++],c=8),u>>--c&1}const l=2**31,d=l>>>1,h=d>>1,p=l-1;let b=0;for(let e=0;e<31;e++)b=b<<1|f();let g=[],y=0,m=l;for(;;){let e=Math.floor(((b-y+1)*o-1)/m),t=0,n=r;for(;n-t>1;){let r=t+n>>>1;e<i[r]?n=r:t=r}if(0==t)break;g.push(t);let s=y+Math.floor(m*i[t]/o),a=y+Math.floor(m*i[t+1]/o)-1;for(;0==((s^a)&d);)b=b<<1&p|f(),s=s<<1&p,a=a<<1&p|1;for(;s&~a&h;)b=b&d|b<<1&p>>>1|f(),s=s<<1^d,a=(a^d)<<1|d|1;y=s,m=1+a-s}let w=r-4;return g.map(t=>{switch(t-w){case 3:return w+65792+(e[a++]<<16|e[a++]<<8|e[a++]);case 2:return w+256+(e[a++]<<8|e[a++]);case 1:return w+e[a++];default:return t-1}})}(function(e){let t=[];[...\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\"].forEach((e,n)=>t[e.charCodeAt(0)]=n);let n=e.length,r=new Uint8Array(6*n>>3);for(let o=0,i=0,s=0,a=0;o<n;o++)a=a<<6|t[e.charCodeAt(o)],s+=6,s>=8&&(r[i++]=a>>(s-=8));return r}(e)))}function F(e){return 1&e?~e>>1:e>>1}function z(e,t){let n=Array(e);for(let r=0,o=0;r<e;r++)n[r]=o+=F(t());return n}function j(e,t=0){let n=[];for(;;){let r=e(),o=e();if(!o)break;t+=r;for(let e=0;e<o;e++)n.push(t+e);t+=o+1}return n}function L(e){return _(()=>{let t=j(e);if(t.length)return t})}function D(e){let t=[];for(;;){let n=e();if(0==n)break;t.push(G(n,e))}for(;;){let n=e()-1;if(n<0)break;t.push(Q(n,e))}return t.flat()}function _(e){let t=[];for(;;){let n=e(t.length);if(!n)break;t.push(n)}return t}function $(e,t,n){let r=Array(e).fill().map(()=>[]);for(let o=0;o<t;o++)z(e,n).forEach((e,t)=>r[t].push(e));return r}function G(e,t){let n=1+t(),r=t(),o=_(t);return $(o.length,1+e,t).flatMap((e,t)=>{let[i,...s]=e;return Array(o[t]).fill().map((e,t)=>{let o=t*r;return[i+t*n,s.map(e=>e+o)]})})}function Q(e,t){return $(1+t(),1+e,t).map(e=>[e[0],e.slice(1)])}function H(e){return`{${function(e){return e.toString(16).toUpperCase().padStart(2,\"0\")}(e)}}`}function q(e){let t=[];for(let n=0,r=e.length;n<r;){let r=e.codePointAt(n);n+=r<65536?1:2,t.push(r)}return t}function V(e){let t=e.length;if(t<4096)return String.fromCodePoint(...e);let n=[];for(let r=0;r<t;)n.push(String.fromCodePoint(...e.slice(r,r+=4096)));return n.join(\"\")}function J(e,t){let n=e.length,r=n-t.length;for(let o=0;0==r&&o<n;o++)r=e[o]-t[o];return r}const K=44032,W=4352,Z=4449,Y=4519,X=28,ee=588;function te(e){return e>>24&255}function ne(e){return 16777215&e}let re,oe,ie,se;function ae(e){return e>=K&&e<55204}function ce(e,t){if(e>=W&&e<4371&&t>=Z&&t<4470)return K+(e-W)*ee+(t-Z)*X;if(ae(e)&&t>Y&&t<4547&&(e-K)%X==0)return e+(t-Y);{let n=se.get(e);return n&&(n=n.get(t),n)?n:-1}}function ue(e){re||function(){let e=R(\"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\");re=new Map(L(e).flatMap((e,t)=>e.map(e=>[e,t+1<<24]))),oe=new Set(j(e)),ie=new Map,se=new Map;for(let[t,n]of D(e)){if(!oe.has(t)&&2==n.length){let[e,r]=n,o=se.get(e);o||(o=new Map,se.set(e,o)),o.set(r,t)}ie.set(t,n.reverse())}}();let t=[],n=[],r=!1;function o(e){let n=re.get(e);n&&(r=!0,e|=n),t.push(e)}for(let r of e)for(;;){if(r<128)t.push(r);else if(ae(r)){let e=r-K,t=e%ee/X|0,n=e%X;o(W+(e/ee|0)),o(Z+t),n>0&&o(Y+n)}else{let e=ie.get(r);e?n.push(...e):o(r)}if(!n.length)break;r=n.pop()}if(r&&t.length>1){let e=te(t[0]);for(let n=1;n<t.length;n++){let r=te(t[n]);if(0==r||e<=r){e=r;continue}let o=n-1;for(;;){let n=t[o+1];if(t[o+1]=t[o],t[o]=n,!o)break;if(e=te(t[--o]),e<=r)break}e=te(t[n])}}return t}function fe(e){return ue(e).map(ne)}function le(e){return function(e){let t=[],n=[],r=-1,o=0;for(let i of e){let e=te(i),s=ne(i);if(-1==r)0==e?r=s:t.push(s);else if(o>0&&o>=e)0==e?(t.push(r,...n),n.length=0,r=s):n.push(s),o=e;else{let i=ce(r,s);i>=0?r=i:0==o&&0==e?(t.push(r),r=s):(n.push(s),o=e)}}return r>=0&&t.push(r,...n),t}(ue(e))}const de=\".\",he=e=>Array.from(e);function pe(e,t){return e.P.has(t)||e.Q.has(t)}class be extends Array{get is_emoji(){return!0}}let ge,ye,me,we,ve,Ae,xe,Ee,Be,Pe,Ie,Ce;function ke(){if(ge)return;let e=R(\"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\");const t=()=>j(e),n=()=>new Set(t()),r=(e,t)=>t.forEach(t=>e.add(t));ge=new Map(D(e)),ye=n(),me=t(),we=new Set(t().map(e=>me[e])),me=new Set(me),ve=n(),Ae=n();let o=L(e),i=e();const s=()=>{let e=new Set;return t().forEach(t=>r(e,o[t])),r(e,t()),e};xe=_(t=>{let n=_(e).map(e=>e+96);if(n.length){let r=t>=i;return n[0]-=32,n=V(n),r&&(n=`Restricted[${n}]`),{N:n,P:s(),Q:s(),M:!e(),R:r}}}),Ee=n(),Be=new Map;let a=t().concat(he(Ee)).sort((e,t)=>e-t);a.forEach((t,n)=>{let r=e(),o=a[n]=r?a[n-r]:{V:[],M:new Map};o.V.push(t),Ee.has(t)||Be.set(t,o)});for(let{V:e,M:t}of new Set(Be.values())){let n=[];for(let t of e){let e=xe.filter(e=>pe(e,t)),o=n.find(({G:t})=>e.some(e=>t.has(e)));o||(o={G:new Set,V:[]},n.push(o)),o.V.push(t),r(o.G,e)}let o=n.flatMap(e=>he(e.G));for(let{G:e,V:r}of n){let n=new Set(o.filter(t=>!e.has(t)));for(let e of r)t.set(e,n)}}Pe=new Set;let c=new Set;const u=e=>Pe.has(e)?c.add(e):Pe.add(e);for(let e of xe){for(let t of e.P)u(t);for(let t of e.Q)u(t)}for(let e of Pe)Be.has(e)||c.has(e)||Be.set(e,1);r(Pe,fe(Pe)),Ie=function(e){let t=[],n=j(e);return function e({S:n,B:r},o,i){if(!(4&n&&i===o[o.length-1])){2&n&&(i=o[o.length-1]),1&n&&t.push(o);for(let t of r)for(let n of t.Q)e(t,[...o,n],i)}}(function t(r){return{S:e(),B:_(()=>{let r=j(e).map(e=>n[e]);if(r.length)return t(r)}),Q:r}}([]),[]),t}(e).map(e=>be.from(e)).sort(J),Ce=new Map;for(let e of Ie){let t=[Ce];for(let n of e){let e=t.map(e=>{let t=e.get(n);return t||(t=new Map,e.set(n,t)),t});65039===n?t.push(...e):t=e}for(let n of t)n.V=e}}function Me(e){return(Se(e)?\"\":`${Oe(Ne([e]))} `)+H(e)}function Oe(e){return`\"${e}\"‎`}function Ne(e,t=1/0,n=H){let r=[];var o,i;o=e[0],ke(),(i?we.has(o):me.has(o))&&r.push(\"◌\"),e.length>t&&(t>>=1,e=[...e.slice(0,t),8230,...e.slice(-t)]);let s=0,a=e.length;for(let t=0;t<a;t++){let o=e[t];Se(o)&&(r.push(V(e.slice(s,t))),r.push(n(o)),s=t+1)}return r.push(V(e.slice(s,a))),r.join(\"\")}function Se(e){return ke(),ve.has(e)}function Te(e,t,n){if(!e)return[];ke();let r=0;return e.split(de).map(e=>{let o=q(e),i={input:o,offset:r};r+=o.length+1;try{let e,r=i.tokens=je(o,t,n),s=r.length;if(!s)throw new Error(\"empty label\");let a=i.output=r.flat();if(function(e){for(let t=e.lastIndexOf(95);t>0;)if(95!==e[--t])throw new Error(\"underscore allowed only at start\")}(a),!(i.emoji=s>1||r[0].is_emoji)&&a.every(e=>e<128))!function(e){if(e.length>=4&&45==e[2]&&45==e[3])throw new Error(`invalid label extension: \"${V(e.slice(0,4))}\"`)}(a),e=\"ASCII\";else{let t=r.flatMap(e=>e.is_emoji?[]:e);if(t.length){if(me.has(a[0]))throw ze(\"leading combining mark\");for(let e=1;e<s;e++){let t=r[e];if(!t.is_emoji&&me.has(t[0]))throw ze(`emoji + combining mark: \"${V(r[e-1])} + ${Ne([t[0]])}\"`)}!function(e){let t=e[0],n=U.get(t);if(n)throw ze(`leading ${n}`);let r=e.length,o=-1;for(let i=1;i<r;i++){t=e[i];let r=U.get(t);if(r){if(o==i)throw ze(`${n} + ${r}`);o=i+1,n=r}}if(o==r)throw ze(`trailing ${n}`)}(a);let n=he(new Set(t)),[o]=function(e){let t=xe;for(let n of e){let e=t.filter(e=>pe(e,n));if(!e.length)throw xe.some(e=>pe(e,n))?Fe(t[0],n):Re(n);if(t=e,1==e.length)break}return t}(n);!function(e,t){for(let n of t)if(!pe(e,n))throw Fe(e,n);if(e.M){let e=fe(t);for(let t=1,n=e.length;t<n;t++)if(we.has(e[t])){let r=t+1;for(let o;r<n&&we.has(o=e[r]);r++)for(let n=t;n<r;n++)if(e[n]==o)throw new Error(`duplicate non-spacing marks: ${Me(o)}`);if(r-t>4)throw new Error(`excessive non-spacing marks: ${Oe(Ne(e.slice(t-1,r)))} (${r-t}/4)`);t=r}}}(o,t),function(e,t){let n,r=[];for(let e of t){let t=Be.get(e);if(1===t)return;if(t){let r=t.M.get(e);if(n=n?n.filter(e=>r.has(e)):he(r),!n.length)return}else r.push(e)}if(n)for(let t of n)if(r.every(e=>pe(t,e)))throw new Error(`whole-script confusable: ${e.N}/${t.N}`)}(o,n),e=o.N}else e=\"Emoji\"}i.type=e}catch(e){i.error=e}return i})}function Ue(e){return e.map(({input:t,error:n,output:r})=>{if(n){let r=n.message;throw new Error(1==e.length?r:`Invalid label ${Oe(Ne(t,63))}: ${r}`)}return V(r)}).join(de)}function Re(e){return new Error(`disallowed character: ${Me(e)}`)}function Fe(e,t){let n=Me(t),r=xe.find(e=>e.P.has(t));return r&&(n=`${r.N} ${n}`),new Error(`illegal mixture: ${e.N} + ${n}`)}function ze(e){return new Error(`illegal placement: ${e}`)}function je(e,t,n){let r=[],o=[];for(e=e.slice().reverse();e.length;){let i=De(e);if(i)o.length&&(r.push(t(o)),o=[]),r.push(n(i));else{let t=e.pop();if(Pe.has(t))o.push(t);else{let e=ge.get(t);if(e)o.push(...e);else if(!ye.has(t))throw Re(t)}}}return o.length&&r.push(t(o)),r}function Le(e){return e.filter(e=>65039!=e)}function De(e,t){let n,r=Ce,o=e.length;for(;o&&(r=r.get(e[--o]),r);){let{V:i}=r;i&&(n=i,t&&t.push(...e.slice(o).reverse()),e.length=o)}return n}function _e(e){return function(e){return Ue(Te(e,le,Le))}(e)}const $e=n(8442).sc;var Ge=n(2531);function Qe(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&\"Uint8Array\"===e.constructor.name}function He(e,...t){if(!Qe(e))throw new Error(\"Uint8Array expected\");if(t.length>0&&!t.includes(e.length))throw new Error(\"Uint8Array expected of length \"+t+\", got length=\"+e.length)}function qe(e,t){return!!Array.isArray(t)&&(0===t.length||(e?t.every(e=>\"string\"==typeof e):t.every(e=>Number.isSafeInteger(e))))}function Ve(e){if(\"function\"!=typeof e)throw new Error(\"function expected\");return!0}function Je(e,t){if(\"string\"!=typeof t)throw new Error(`${e}: string expected`);return!0}function Ke(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function We(e){if(!Array.isArray(e))throw new Error(\"array expected\")}function Ze(e,t){if(!qe(!0,t))throw new Error(`${e}: array of strings expected`)}function Ye(e,t){if(!qe(!1,t))throw new Error(`${e}: array of numbers expected`)}function Xe(...e){const t=e=>e,n=(e,t)=>n=>e(t(n));return{encode:e.map(e=>e.encode).reduceRight(n,t),decode:e.map(e=>e.decode).reduce(n,t)}}function et(e){const t=\"string\"==typeof e?e.split(\"\"):e,n=t.length;Ze(\"alphabet\",t);const r=new Map(t.map((e,t)=>[e,t]));return{encode:r=>(We(r),r.map(r=>{if(!Number.isSafeInteger(r)||r<0||r>=n)throw new Error(`alphabet.encode: digit index outside alphabet \"${r}\". Allowed: ${e}`);return t[r]})),decode:t=>(We(t),t.map(t=>{Je(\"alphabet.decode\",t);const n=r.get(t);if(void 0===n)throw new Error(`Unknown letter: \"${t}\". Allowed: ${e}`);return n}))}}function tt(e=\"\"){return Je(\"join\",e),{encode:t=>(Ze(\"join.decode\",t),t.join(e)),decode:t=>(Je(\"join.decode\",t),t.split(e))}}function nt(e,t=\"=\"){return Ke(e),Je(\"padding\",t),{encode(n){for(Ze(\"padding.encode\",n);n.length*e%8;)n.push(t);return n},decode(n){Ze(\"padding.decode\",n);let r=n.length;if(r*e%8)throw new Error(\"padding: invalid, string should have whole number of bytes\");for(;r>0&&n[r-1]===t;r--){if((r-1)*e%8==0)throw new Error(\"padding: invalid, string has too much padding\")}return n.slice(0,r)}}}function rt(e){return Ve(e),{encode:e=>e,decode:t=>e(t)}}function ot(e,t,n){if(t<2)throw new Error(`convertRadix: invalid from=${t}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: invalid to=${n}, base cannot be less than 2`);if(We(e),!e.length)return[];let r=0;const o=[],i=Array.from(e,e=>{if(Ke(e),e<0||e>=t)throw new Error(`invalid integer: ${e}`);return e}),s=i.length;for(;;){let e=0,a=!0;for(let o=r;o<s;o++){const s=i[o],c=t*e,u=c+s;if(!Number.isSafeInteger(u)||c/t!==e||u-s!==c)throw new Error(\"convertRadix: carry overflow\");const f=u/n;e=u%n;const l=Math.floor(f);if(i[o]=l,!Number.isSafeInteger(l)||l*n+e!==u)throw new Error(\"convertRadix: carry overflow\");a&&(l?a=!1:r=o)}if(o.push(e),a)break}for(let t=0;t<e.length-1&&0===e[t];t++)o.push(0);return o.reverse()}const it=(e,t)=>0===t?e:it(t,e%t),st=(e,t)=>e+(t-it(e,t)),at=(()=>{let e=[];for(let t=0;t<40;t++)e.push(2**t);return e})();function ct(e,t,n,r){if(We(e),t<=0||t>32)throw new Error(`convertRadix2: wrong from=${t}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if(st(t,n)>32)throw new Error(`convertRadix2: carry overflow from=${t} to=${n} carryBits=${st(t,n)}`);let o=0,i=0;const s=at[t],a=at[n]-1,c=[];for(const r of e){if(Ke(r),r>=s)throw new Error(`convertRadix2: invalid data word=${r} from=${t}`);if(o=o<<t|r,i+t>32)throw new Error(`convertRadix2: carry overflow pos=${i} from=${t}`);for(i+=t;i>=n;i-=n)c.push((o>>i-n&a)>>>0);const e=at[i];if(void 0===e)throw new Error(\"invalid carry\");o&=e-1}if(o=o<<n-i&a,!r&&i>=t)throw new Error(\"Excess padding\");if(!r&&o>0)throw new Error(`Non-zero padding: ${o}`);return r&&i>0&&c.push(o>>>0),c}function ut(e){Ke(e);return{encode:t=>{if(!Qe(t))throw new Error(\"radix.encode input should be Uint8Array\");return ot(Array.from(t),256,e)},decode:t=>(Ye(\"radix.decode\",t),Uint8Array.from(ot(t,e,256)))}}function ft(e,t=!1){if(Ke(e),e<=0||e>32)throw new Error(\"radix2: bits should be in (0..32]\");if(st(8,e)>32||st(e,8)>32)throw new Error(\"radix2: carry overflow\");return{encode:n=>{if(!Qe(n))throw new Error(\"radix2.encode input should be Uint8Array\");return ct(Array.from(n),8,e,!t)},decode:n=>(Ye(\"radix2.decode\",n),Uint8Array.from(ct(n,e,8,t)))}}function lt(e){return Ve(e),function(...t){try{return e.apply(null,t)}catch(e){}}}function dt(e,t){return Ke(e),Ve(t),{encode(n){if(!Qe(n))throw new Error(\"checksum.encode: input should be Uint8Array\");const r=t(n).slice(0,e),o=new Uint8Array(n.length+e);return o.set(n),o.set(r,n.length),o},decode(n){if(!Qe(n))throw new Error(\"checksum.decode: input should be Uint8Array\");const r=n.slice(0,-e),o=n.slice(-e),i=t(r).slice(0,e);for(let t=0;t<e;t++)if(i[t]!==o[t])throw new Error(\"Invalid checksum\");return r}}}const ht=Xe(ft(4),et(\"0123456789ABCDEF\"),tt(\"\")),pt=Xe(ft(5),et(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567\"),nt(5),tt(\"\")),bt=(Xe(ft(5),et(\"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567\"),tt(\"\")),Xe(ft(5),et(\"0123456789ABCDEFGHIJKLMNOPQRSTUV\"),nt(5),tt(\"\")),Xe(ft(5),et(\"0123456789ABCDEFGHIJKLMNOPQRSTUV\"),tt(\"\")),Xe(ft(5),et(\"0123456789ABCDEFGHJKMNPQRSTVWXYZ\"),tt(\"\"),rt(e=>e.toUpperCase().replace(/O/g,\"0\").replace(/[IL]/g,\"1\"))),\"function\"==typeof Uint8Array.from([]).toBase64&&\"function\"==typeof Uint8Array.fromBase64),gt=(e,t)=>{Je(\"base64\",e);const n=t?/^[A-Za-z0-9=_-]+$/:/^[A-Za-z0-9=+/]+$/,r=t?\"base64url\":\"base64\";if(e.length>0&&!n.test(e))throw new Error(\"invalid base64\");return Uint8Array.fromBase64(e,{alphabet:r,lastChunkHandling:\"strict\"})},yt=bt?{encode:e=>(He(e),e.toBase64()),decode:e=>gt(e,!1)}:Xe(ft(6),et(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\"),nt(6),tt(\"\")),mt=(Xe(ft(6),et(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/\"),tt(\"\")),bt?{encode:e=>(He(e),e.toBase64({alphabet:\"base64url\"})),decode:e=>gt(e,!0)}:Xe(ft(6),et(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\"),nt(6),tt(\"\"))),wt=(Xe(ft(6),et(\"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_\"),tt(\"\")),e=>Xe(ut(58),et(e),tt(\"\"))),vt=wt(\"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz\"),At=(wt(\"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ\"),wt(\"rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz\"),[0,2,3,5,6,7,9,10,11]),xt={encode(e){let t=\"\";for(let n=0;n<e.length;n+=8){const r=e.subarray(n,n+8);t+=vt.encode(r).padStart(At[r.length],\"1\")}return t},decode(e){let t=[];for(let n=0;n<e.length;n+=11){const r=e.slice(n,n+11),o=At.indexOf(r.length),i=vt.decode(r);for(let e=0;e<i.length-o;e++)if(0!==i[e])throw new Error(\"base58xmr: wrong padding\");t=t.concat(Array.from(i.slice(i.length-o)))}return Uint8Array.from(t)}},Et=e=>Xe(dt(4,t=>e(e(t))),vt),Bt=Xe(et(\"qpzry9x8gf2tvdw0s3jn54khce6mua7l\"),tt(\"\")),Pt=[996825010,642813549,513874426,1027748829,705979059];function It(e){const t=e>>25;let n=(33554431&e)<<5;for(let e=0;e<Pt.length;e++)1==(t>>e&1)&&(n^=Pt[e]);return n}function Ct(e,t,n=1){const r=e.length;let o=1;for(let t=0;t<r;t++){const n=e.charCodeAt(t);if(n<33||n>126)throw new Error(`Invalid prefix (${e})`);o=It(o)^n>>5}o=It(o);for(let t=0;t<r;t++)o=It(o)^31&e.charCodeAt(t);for(let e of t)o=It(o)^e;for(let e=0;e<6;e++)o=It(o);return o^=n,Bt.encode(ct([o%at[30]],30,5,!1))}function kt(e){const t=\"bech32\"===e?1:734539939,n=ft(5),r=n.decode,o=n.encode,i=lt(r);function s(e,n,r=90){Je(\"bech32.encode prefix\",e),Qe(n)&&(n=Array.from(n)),Ye(\"bech32.encode\",n);const o=e.length;if(0===o)throw new TypeError(`Invalid prefix length ${o}`);const i=o+7+n.length;if(!1!==r&&i>r)throw new TypeError(`Length ${i} exceeds limit ${r}`);const s=e.toLowerCase(),a=Ct(s,n,t);return`${s}1${Bt.encode(n)}${a}`}function a(e,n=90){Je(\"bech32.decode input\",e);const r=e.length;if(r<8||!1!==n&&r>n)throw new TypeError(`invalid string length: ${r} (${e}). Expected (8..${n})`);const o=e.toLowerCase();if(e!==o&&e!==e.toUpperCase())throw new Error(\"String must be lowercase or uppercase\");const i=o.lastIndexOf(\"1\");if(0===i||-1===i)throw new Error('Letter \"1\" must be present between prefix and data only');const s=o.slice(0,i),a=o.slice(i+1);if(a.length<6)throw new Error(\"Data must be at least 6 characters long\");const c=Bt.decode(a).slice(0,-6),u=Ct(s,c,t);if(!a.endsWith(u))throw new Error(`Invalid checksum in ${e}: expected \"${u}\"`);return{prefix:s,words:c}}return{encode:s,decode:a,encodeFromBytes:function(e,t){return s(e,o(t))},decodeToBytes:function(e){const{prefix:t,words:n}=a(e,!1);return{prefix:t,words:n,bytes:r(n)}},decodeUnsafe:lt(a),fromWords:r,fromWordsUnsafe:i,toWords:o}}const Mt=kt(\"bech32\"),Ot=kt(\"bech32m\"),Nt={encode:e=>(new TextDecoder).decode(e),decode:e=>(new TextEncoder).encode(e)},St=(\"function\"==typeof Uint8Array.from([]).toHex&&\"function\"==typeof Uint8Array.fromHex||Xe(ft(4),et(\"0123456789abcdef\"),tt(\"\"),rt(e=>{if(\"string\"!=typeof e||e.length%2!=0)throw new TypeError(`hex.decode: expected string, got ${typeof e} with length ${e.length}`);return e.toLowerCase()})),vt),Tt=St.encode,Ut=(St.decode,Et($e)),Rt=Ut.encode,Ft=Ut.decode,zt=[new Uint8Array([0])],jt=[new Uint8Array([5])],Lt=(({hrp:e,p2pkhVersions:t,p2shVersions:n})=>{const r=(e=>t=>{let n=t[0];if(n>=81&&n<=96)n-=80;else if(0!==n)throw new Error(\"Unrecognised address format\");let r=[];return n>0&&n<17?(r=[n].concat(Ot.toWords(t.slice(2,t[1]+2))),Ot.encode(e,r)):(r=[n].concat(Mt.toWords(t.slice(2,t[1]+2))),Mt.encode(e,r))})(e),o=(i=t[0],s=n[0],e=>{if(118===e[0]){if(169!==e[1]||136!==e[e.length-2]||172!==e[e.length-1])throw new Error(\"Unrecognised address format\");return Rt((0,Ge.Id)(i,e.slice(3,3+e[2])))}if(169===e[0]){if(135!==e[e.length-1])throw new Error(\"Unrecognised address format\");return Rt((0,Ge.Id)(s,e.slice(2,2+e[1])))}throw new Error(\"Unrecognised address format\")});var i,s;return e=>{try{return o(e)}catch{return r(e)}}})({hrp:\"bc\",p2pkhVersions:zt,p2shVersions:jt}),Dt=((({hrp:e,p2pkhVersions:t,p2shVersions:n})=>{const r=(e=>t=>{const n=Mt.decodeUnsafe(t)||Ot.decodeUnsafe(t);if(!n)throw new Error(\"Unrecognised address format\");const{prefix:r,words:o}=n;if(r!==e)throw new Error(\"Unexpected human-readable part in bech32 encoded address\");const i=Mt.fromWords(o.slice(1));let s=o[0];return s>0&&(s+=80),(0,Ge.Id)(new Uint8Array([s,i.length]),new Uint8Array(i))})(e),o=((e,t)=>n=>{const r=Ft(n),o=e=>e.every((e,t)=>t<r.length&&e===r[t]);if(e.some(o))return(0,Ge.Id)(new Uint8Array([118,169,20]),r.slice(e[0].length),new Uint8Array([136,172]));if(t.some(o))return(0,Ge.Id)(new Uint8Array([169,20]),r.slice(t[0].length),new Uint8Array([135]));throw new Error(\"Unrecognised address format\")})(t,n)})({hrp:\"bc\",p2pkhVersions:zt,p2shVersions:jt}),e=>{if(32!==e.length)throw new Error(\"Unrecognised address format\");const t=Tt(e);if(t.length<32||t.length>44)throw new Error(\"Unrecognised address format\");return t}),_t=Rt;function $t(e,t){return Gt(e,\"pattern\",n=>t.test(n)||`Expected a ${e.type} matching \\`/${t.source}/\\` but received \"${n}\"`)}function Gt(e,t,n){return new c({...e,*refiner(r,o){yield*e.refiner(r,o);const i=s(n(r,o),o,e,r);for(const e of i)yield{...e,refinement:t}}})}function Qt(){return f(\"string\",e=>\"string\"==typeof e||`Expected a string, but received: ${o(e)}`)}var Ht=n(7238),qt=n(2543);function Vt(e,t){return n=e,Boolean(\"string\"==typeof n?.prototype?.constructor?.name)?new e({message:t}):e({message:t});var n}class Jt extends Error{constructor(e){super(e.message),this.code=\"ERR_ASSERTION\"}}function Kt(e,t=\"Assertion failed.\",n=Jt){if(!e){if(t instanceof Error)throw t;throw Vt(n,t)}}const{memoize:Wt}=qt,Zt=/^(?:0x)?[0-9a-f]+$/iu,Yt=/^0x[0-9a-f]+$/iu,Xt=/^0x[0-9a-f]{40}$/u,en=/^0x[0-9a-fA-F]{40}$/u,tn=($t(Qt(),Zt),$t(Qt(),Yt),$t(Qt(),Xt),$t(Qt(),en),e=>\"string\"==typeof e);function nn(e){return tn(e)&&en.test(e)}function rn(e){Kt(function(e){return tn(e)&&Zt.test(e)}(e),\"Value must be a hexadecimal string.\")}const on=Wt(function(e){Kt(nn(e),\"Invalid hex address.\");const t=an(e).toLowerCase(),n=(0,Ht.lY)(t),{length:r}=t,o=new Array(r);for(let e=0;e<r;e++){const r=1&e,i=n[e>>1],s=0===r?i>>4:15&i;o[e]=s>=8?t[e].toUpperCase():t[e]}return`0x${o.join(\"\")}`});const sn=Wt(function(e){return!!nn(e)&&on(e)===e});Wt(function(e){return tn(t=e)&&Xt.test(t)||sn(e);var t});function an(e){return e.startsWith(\"0x\")||e.startsWith(\"0X\")?e.substring(2):e}n(8287).hp;!function(){const e=[]}();function cn(e){if(\"0x\"===e?.toLowerCase?.())return new Uint8Array;rn(e);const t=an(e).toLowerCase(),n=t.length%2==0?t:`0${t}`,r=new Uint8Array(n.length/2);for(let e=0;e<r.length;e++){const t=n.charCodeAt(2*e),o=n.charCodeAt(2*e+1),i=t-(t<58?48:87),s=o-(o<58?48:87);r[e]=16*i+s}return r}var un=n(3033);let fn,ln=256;function dn(e=11){if(!fn||ln+e>512){fn=\"\",ln=0;for(let e=0;e<256;e++)fn+=(256+256*Math.random()|0).toString(16).substring(1)}return fn.substring(ln,ln+++e)}var hn=n(4823),pn=n(6652),bn=n(8503),gn=n(9985),yn=n(8583),mn=n(4192),wn=n(8863);function vn(e){if(!(e instanceof I.C))return!1;const t=e.walk(e=>e instanceof wn.M);return t instanceof wn.M&&(\"HttpError\"===t.data?.errorName||(\"ResolverError\"===t.data?.errorName||(\"ResolverNotContract\"===t.data?.errorName||(\"ResolverNotFound\"===t.data?.errorName||(\"ReverseAddressMismatch\"===t.data?.errorName||\"UnsupportedResolverProfile\"===t.data?.errorName)))))}var An=n(2592),xn=n(5419),En=n(4706),Bn=n(2040),Pn=n(6394);function In(e){if(66!==e.length)return null;if(0!==e.indexOf(\"[\"))return null;if(65!==e.indexOf(\"]\"))return null;const t=`0x${e.slice(1,65)}`;return(0,Pn.q)(t)?t:null}function Cn(e){let t=new Uint8Array(32).fill(0);if(!e)return(0,mn.My)(t);const n=e.split(\".\");for(let e=n.length-1;e>=0;e-=1){const r=In(n[e]),o=r?(0,En.ZJ)(r):(0,Bn.S)((0,En.Af)(n[e]),\"bytes\");t=(0,Bn.S)((0,xn.xW)([t,o]),\"bytes\")}return(0,mn.My)(t)}function kn(e){return`[${e.slice(2)}]`}function Mn(e){const t=new Uint8Array(32).fill(0);return e?In(e)||(0,Bn.S)((0,En.Af)(e)):(0,mn.My)(t)}function On(e){const t=e.replace(/^\\.|\\.$/gm,\"\");if(0===t.length)return new Uint8Array(1);const n=new Uint8Array((0,En.Af)(t).byteLength+2);let r=0;const o=t.split(\".\");for(let e=0;e<o.length;e++){let t=(0,En.Af)(o[e]);t.byteLength>255&&(t=(0,En.Af)(kn(Mn(o[e])))),n[r]=t.length,n.set(t,r+1),r+=t.length+1}return n.byteLength!==r+1?n.slice(0,r+1):n}function Nn(e,t,n){const r=e[t.name];if(\"function\"==typeof r)return r;const o=e[n];return\"function\"==typeof o?o:n=>t(e,n)}var Sn=n(7372),Tn=n(6595);class Un extends I.C{constructor(e,{code:t,docsPath:n,metaMessages:r,name:o,shortMessage:i}){super(i,{cause:e,docsPath:n,metaMessages:r||e?.metaMessages,name:o||\"RpcError\"}),Object.defineProperty(this,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.name=o||e.name,this.code=e instanceof Tn.J8?e.code:t??-1}}class Rn extends Un{constructor(e,t){super(e,t),Object.defineProperty(this,\"data\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.data=t.data}}class Fn extends Un{constructor(e){super(e,{code:Fn.code,name:\"ParseRpcError\",shortMessage:\"Invalid JSON was received by the server. An error occurred on the server while parsing the JSON text.\"})}}Object.defineProperty(Fn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32700});class zn extends Un{constructor(e){super(e,{code:zn.code,name:\"InvalidRequestRpcError\",shortMessage:\"JSON is not a valid request object.\"})}}Object.defineProperty(zn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32600});class jn extends Un{constructor(e,{method:t}={}){super(e,{code:jn.code,name:\"MethodNotFoundRpcError\",shortMessage:`The method${t?` \"${t}\"`:\"\"} does not exist / is not available.`})}}Object.defineProperty(jn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32601});class Ln extends Un{constructor(e){super(e,{code:Ln.code,name:\"InvalidParamsRpcError\",shortMessage:[\"Invalid parameters were provided to the RPC method.\",\"Double check you have provided the correct parameters.\"].join(\"\\n\")})}}Object.defineProperty(Ln,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32602});class Dn extends Un{constructor(e){super(e,{code:Dn.code,name:\"InternalRpcError\",shortMessage:\"An internal error was received.\"})}}Object.defineProperty(Dn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32603});class _n extends Un{constructor(e){super(e,{code:_n.code,name:\"InvalidInputRpcError\",shortMessage:[\"Missing or invalid parameters.\",\"Double check you have provided the correct parameters.\"].join(\"\\n\")})}}Object.defineProperty(_n,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32e3});class $n extends Un{constructor(e){super(e,{code:$n.code,name:\"ResourceNotFoundRpcError\",shortMessage:\"Requested resource not found.\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"ResourceNotFoundRpcError\"})}}Object.defineProperty($n,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32001});class Gn extends Un{constructor(e){super(e,{code:Gn.code,name:\"ResourceUnavailableRpcError\",shortMessage:\"Requested resource not available.\"})}}Object.defineProperty(Gn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32002});class Qn extends Un{constructor(e){super(e,{code:Qn.code,name:\"TransactionRejectedRpcError\",shortMessage:\"Transaction creation failed.\"})}}Object.defineProperty(Qn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32003});class Hn extends Un{constructor(e,{method:t}={}){super(e,{code:Hn.code,name:\"MethodNotSupportedRpcError\",shortMessage:`Method${t?` \"${t}\"`:\"\"} is not supported.`})}}Object.defineProperty(Hn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32004});class qn extends Un{constructor(e){super(e,{code:qn.code,name:\"LimitExceededRpcError\",shortMessage:\"Request exceeds defined limit.\"})}}Object.defineProperty(qn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32005});class Vn extends Un{constructor(e){super(e,{code:Vn.code,name:\"JsonRpcVersionUnsupportedError\",shortMessage:\"Version of JSON-RPC protocol is not supported.\"})}}Object.defineProperty(Vn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:-32006});class Jn extends Rn{constructor(e){super(e,{code:Jn.code,name:\"UserRejectedRequestError\",shortMessage:\"User rejected the request.\"})}}Object.defineProperty(Jn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4001});class Kn extends Rn{constructor(e){super(e,{code:Kn.code,name:\"UnauthorizedProviderError\",shortMessage:\"The requested method and/or account has not been authorized by the user.\"})}}Object.defineProperty(Kn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4100});class Wn extends Rn{constructor(e,{method:t}={}){super(e,{code:Wn.code,name:\"UnsupportedProviderMethodError\",shortMessage:`The Provider does not support the requested method${t?` \" ${t}\"`:\"\"}.`})}}Object.defineProperty(Wn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4200});class Zn extends Rn{constructor(e){super(e,{code:Zn.code,name:\"ProviderDisconnectedError\",shortMessage:\"The Provider is disconnected from all chains.\"})}}Object.defineProperty(Zn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4900});class Yn extends Rn{constructor(e){super(e,{code:Yn.code,name:\"ChainDisconnectedError\",shortMessage:\"The Provider is not connected to the requested chain.\"})}}Object.defineProperty(Yn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4901});class Xn extends Rn{constructor(e){super(e,{code:Xn.code,name:\"SwitchChainError\",shortMessage:\"An error occurred when attempting to switch chain.\"})}}Object.defineProperty(Xn,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:4902});class er extends Rn{constructor(e){super(e,{code:er.code,name:\"UnsupportedNonOptionalCapabilityError\",shortMessage:\"This Wallet does not support a capability that was not marked as optional.\"})}}Object.defineProperty(er,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5700});class tr extends Rn{constructor(e){super(e,{code:tr.code,name:\"UnsupportedChainIdError\",shortMessage:\"This Wallet does not support the requested chain ID.\"})}}Object.defineProperty(tr,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5710});class nr extends Rn{constructor(e){super(e,{code:nr.code,name:\"DuplicateIdError\",shortMessage:\"There is already a bundle submitted with this ID.\"})}}Object.defineProperty(nr,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5720});class rr extends Rn{constructor(e){super(e,{code:rr.code,name:\"UnknownBundleIdError\",shortMessage:\"This bundle id is unknown / has not been submitted\"})}}Object.defineProperty(rr,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5730});class or extends Rn{constructor(e){super(e,{code:or.code,name:\"BundleTooLargeError\",shortMessage:\"The call bundle is too large for the Wallet to process.\"})}}Object.defineProperty(or,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5740});class ir extends Rn{constructor(e){super(e,{code:ir.code,name:\"AtomicReadyWalletRejectedUpgradeError\",shortMessage:\"The Wallet can support atomicity after an upgrade, but the user rejected the upgrade.\"})}}Object.defineProperty(ir,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5750});class sr extends Rn{constructor(e){super(e,{code:sr.code,name:\"AtomicityNotSupportedError\",shortMessage:\"The wallet does not support atomic execution but the request requires it.\"})}}Object.defineProperty(sr,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:5760});class ar extends Rn{constructor(e){super(e,{code:ar.code,name:\"WalletConnectSessionSettlementError\",shortMessage:\"WalletConnect session settlement failed.\"})}}Object.defineProperty(ar,\"code\",{enumerable:!0,configurable:!0,writable:!0,value:7e3});class cr extends Un{constructor(e){super(e,{name:\"UnknownRpcError\",shortMessage:\"An unknown RPC error occurred.\"})}}const ur=3;function fr(e,{abi:t,address:n,args:r,docsPath:o,functionName:i,sender:s}){const a=e instanceof wn.$S?e:e instanceof I.C?e.walk(e=>\"data\"in e)||e.walk():{},{code:c,data:u,details:f,message:l,shortMessage:d}=a,h=e instanceof Sn.O?new wn.rR({functionName:i,cause:e}):[ur,Dn.code].includes(c)&&(u||f||l||d)||c===_n.code&&\"execution reverted\"===f&&u?new wn.M({abi:t,data:\"object\"==typeof u?u.data:u,functionName:i,message:a instanceof Tn.J8?f:d??l,cause:e}):e;return new wn.bG(h,{abi:t,args:r,contractAddress:n,docsPath:o,functionName:i,sender:s})}var lr=n(3275);async function dr(e,t){const{abi:n,address:r,args:o,functionName:i,...s}=t,a=(0,bn.p)({abi:n,args:o,functionName:i});try{const{data:t}=await Nn(e,lr.T,\"call\")({...s,data:a,to:r});return(0,pn.e)({abi:n,args:o,functionName:i,data:t||\"0x\"})}catch(e){throw fr(e,{abi:n,address:r,args:o,docsPath:\"/docs/contract/readContract\",functionName:i})}}const hr=/(?<protocol>https?:\\/\\/[^/]*|ipfs:\\/|ipns:\\/|ar:\\/)?(?<root>\\/)?(?<subpath>ipfs\\/|ipns\\/)?(?<target>[\\w\\-.]+)(?<subtarget>\\/.*)?/,pr=/^(Qm[1-9A-HJ-NP-Za-km-z]{44,}|b[A-Za-z2-7]{58,}|B[A-Z2-7]{58,}|z[1-9A-HJ-NP-Za-km-z]{48,}|F[0-9A-F]{50,})(\\/(?<target>[\\w\\-.]+))?(?<subtarget>\\/.*)?$/,br=/^data:([a-zA-Z\\-/+]*);base64,([^\"].*)/,gr=/^data:([a-zA-Z\\-/+]*)?(;[a-zA-Z0-9].*?)?(,)/;function yr(e,t){return e?e.endsWith(\"/\")?e.slice(0,-1):e:t}function mr({uri:e,gatewayUrls:t}){const n=br.test(e);if(n)return{uri:e,isOnChain:!0,isEncoded:n};const r=yr(t?.ipfs,\"https://ipfs.io\"),o=yr(t?.arweave,\"https://arweave.net\"),i=e.match(hr),{protocol:s,subpath:a,target:c,subtarget:u=\"\"}=i?.groups||{},f=\"ipns:/\"===s||\"ipns/\"===a,l=\"ipfs:/\"===s||\"ipfs/\"===a||pr.test(e);if(e.startsWith(\"http\")&&!f&&!l){let n=e;return t?.arweave&&(n=e.replace(/https:\\/\\/arweave.net/g,t?.arweave)),{uri:n,isOnChain:!1,isEncoded:!1}}if((f||l)&&c)return{uri:`${r}/${f?\"ipns\":\"ipfs\"}/${c}${u}`,isOnChain:!1,isEncoded:!1};if(\"ar:/\"===s&&c)return{uri:`${o}/${c}${u||\"\"}`,isOnChain:!1,isEncoded:!1};let d=e.replace(gr,\"\");if(d.startsWith(\"<svg\")&&(d=`data:image/svg+xml;base64,${btoa(d)}`),d.startsWith(\"data:\")||d.startsWith(\"{\"))return{uri:d,isOnChain:!0,isEncoded:!1};throw new M({uri:e})}function wr(e){if(\"object\"!=typeof e||!(\"image\"in e)&&!(\"image_url\"in e)&&!(\"image_data\"in e))throw new C({data:e});return e.image||e.image_url||e.image_data}async function vr({gatewayUrls:e,uri:t}){const{uri:n,isOnChain:r}=mr({uri:t,gatewayUrls:e});if(r)return n;const o=await async function(e){try{const t=await fetch(e,{method:\"HEAD\"});if(200===t.status){const e=t.headers.get(\"content-type\");return e?.startsWith(\"image/\")}return!1}catch(t){return(\"object\"!=typeof t||void 0===t.response)&&!!Object.hasOwn(globalThis,\"Image\")&&new Promise(t=>{const n=new Image;n.onload=()=>{t(!0)},n.onerror=()=>{t(!1)},n.src=e})}}(n);if(o)return n;throw new M({uri:t})}async function Ar(e,{gatewayUrls:t,record:n}){return/eip155:/i.test(n)?async function(e,{gatewayUrls:t,record:n}){const r=function(e){let t=e;t.startsWith(\"did:nft:\")&&(t=t.replace(\"did:nft:\",\"\").replace(/_/g,\"/\"));const[n,r,o]=t.split(\"/\"),[i,s]=n.split(\":\"),[a,c]=r.split(\":\");if(!i||\"eip155\"!==i.toLowerCase())throw new k({reason:\"Only EIP-155 supported\"});if(!s)throw new k({reason:\"Chain ID not found\"});if(!c)throw new k({reason:\"Contract address not found\"});if(!o)throw new k({reason:\"Token ID not found\"});if(!a)throw new k({reason:\"ERC namespace not found\"});return{chainID:Number.parseInt(s,10),namespace:a.toLowerCase(),contractAddress:c,tokenID:o}}(n),o=await async function(e,{nft:t}){if(\"erc721\"===t.namespace)return dr(e,{address:t.contractAddress,abi:[{name:\"tokenURI\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"tokenId\",type:\"uint256\"}],outputs:[{name:\"\",type:\"string\"}]}],functionName:\"tokenURI\",args:[BigInt(t.tokenID)]});if(\"erc1155\"===t.namespace)return dr(e,{address:t.contractAddress,abi:[{name:\"uri\",type:\"function\",stateMutability:\"view\",inputs:[{name:\"_id\",type:\"uint256\"}],outputs:[{name:\"\",type:\"string\"}]}],functionName:\"uri\",args:[BigInt(t.tokenID)]});throw new O({namespace:t.namespace})}(e,{nft:r}),{uri:i,isOnChain:s,isEncoded:a}=mr({uri:o,gatewayUrls:t});if(s&&(i.includes(\"data:application/json;base64,\")||i.startsWith(\"{\"))){const e=a?atob(i.replace(\"data:application/json;base64,\",\"\")):i;return vr({uri:wr(JSON.parse(e)),gatewayUrls:t})}let c=r.tokenID;\"erc1155\"===r.namespace&&(c=c.replace(\"0x\",\"\").padStart(64,\"0\"));return async function({gatewayUrls:e,uri:t}){try{const n=await fetch(t).then(e=>e.json());return await vr({gatewayUrls:e,uri:wr(n)})}catch{throw new M({uri:t})}}({gatewayUrls:t,uri:i.replace(/(?:0x)?{id}/,c)})}(e,{gatewayUrls:t,record:n}):vr({uri:n,gatewayUrls:t})}async function xr(e,t){const{blockNumber:n,blockTag:r,key:o,name:i,gatewayUrls:s,strict:a}=t,{chain:c}=e,u=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return(0,gn.M)({blockNumber:n,chain:c,contract:\"ensUniversalResolver\"})})(),f=c?.ensTlds;if(f&&!f.some(e=>i.endsWith(e)))return null;try{const t={address:u,abi:hn.Ag,args:[(0,mn.nj)(On(i)),(0,bn.p)({abi:hn.SJ,functionName:\"text\",args:[Cn(i),o]}),s??[An.J]],functionName:\"resolveWithGateways\",blockNumber:n,blockTag:r},a=Nn(e,dr,\"readContract\"),c=await a(t);if(\"0x\"===c[0])return null;const f=(0,pn.e)({abi:hn.SJ,functionName:\"text\",data:c[0]});return\"\"===f?null:f}catch(e){if(a)throw e;if(vn(e))return null;throw e}}var Er=n(8684),Br=n(9789),Pr=n(7671),Ir=n(332);async function Cr(e,t){const{account:n=e.account,blockNumber:r,blockTag:o=\"latest\",blobs:i,data:s,gas:a,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:f,maxPriorityFeePerGas:l,to:d,value:h,...p}=t,b=n?(0,un.J)(n):void 0;try{(0,Ir.c)(t);const n=(\"bigint\"==typeof r?(0,mn.cK)(r):void 0)||o,g=e.chain?.formatters?.transactionRequest?.format,y=(g||Pr.Bv)({...(0,Br.o)(p,{format:g}),account:b,blobs:i,data:s,gas:a,gasPrice:c,maxFeePerBlobGas:u,maxFeePerGas:f,maxPriorityFeePerGas:l,to:d,value:h},\"createAccessList\"),m=await e.request({method:\"eth_createAccessList\",params:[y,n]});return{accessList:m.accessList,gasUsed:BigInt(m.gasUsed)}}catch(n){throw(0,Er.d)(n,{...t,account:b,chain:e.chain})}}function kr(e,{method:t}){const n={};return\"fallback\"===e.transport.type&&e.transport.onResponse?.(({method:e,response:r,status:o,transport:i})=>{\"success\"===o&&t===e&&(n[r]=i.request)}),t=>n[t]||e.request}class Mr extends I.C{constructor(e){super(`Filter type \"${e}\" is not supported.`,{name:\"FilterTypeNotSupportedError\"})}}var Or=n(9777),Nr=n(4531),Sr=n(5167),Tr=n(4586);const Ur=\"/docs/contract/encodeEventTopics\";function Rr(e){const{abi:t,eventName:n,args:r}=e;let o=t[0];if(n){const e=(0,Tr.iY)({abi:t,name:n});if(!e)throw new Sn.M_(n,{docsPath:Ur});o=e}if(\"event\"!==o.type)throw new Sn.M_(void 0,{docsPath:Ur});const i=(0,Sr.B)(o),s=(0,Or.h)(i);let a=[];if(r&&\"inputs\"in o){const e=o.inputs?.filter(e=>\"indexed\"in e&&e.indexed),t=Array.isArray(r)?r:Object.values(r).length>0?e?.map(e=>r[e.name])??[]:[];t.length>0&&(a=e?.map((e,n)=>Array.isArray(t[n])?t[n].map((r,o)=>Fr({param:e,value:t[n][o]})):void 0!==t[n]&&null!==t[n]?Fr({param:e,value:t[n]}):null)??[])}return[s,...a]}function Fr({param:e,value:t}){if(\"string\"===e.type||\"bytes\"===e.type)return(0,Bn.S)((0,En.ZJ)(t));if(\"tuple\"===e.type||e.type.match(/^(.*)\\[(\\d+)?\\]$/))throw new Mr(e.type);return(0,Nr.h)([e],[t])}async function zr(e,t){const{address:n,abi:r,args:o,eventName:i,fromBlock:s,strict:a,toBlock:c}=t,u=kr(e,{method:\"eth_newFilter\"}),f=i?Rr({abi:r,args:o,eventName:i}):void 0,l=await e.request({method:\"eth_newFilter\",params:[{address:n,fromBlock:\"bigint\"==typeof s?(0,mn.cK)(s):s,toBlock:\"bigint\"==typeof c?(0,mn.cK)(c):c,topics:f}]});return{abi:r,args:o,eventName:i,id:l,request:u(l),strict:Boolean(a),type:\"event\"}}async function jr(e,{address:t,args:n,event:r,events:o,fromBlock:i,strict:s,toBlock:a}={}){const c=o??(r?[r]:void 0),u=kr(e,{method:\"eth_newFilter\"});let f=[];if(c){const e=c.flatMap(e=>Rr({abi:[e],eventName:e.name,args:n}));f=[e],r&&(f=f[0])}const l=await e.request({method:\"eth_newFilter\",params:[{address:t,fromBlock:\"bigint\"==typeof i?(0,mn.cK)(i):i,toBlock:\"bigint\"==typeof a?(0,mn.cK)(a):a,...f.length?{topics:f}:{}}]});return{abi:c,args:n,eventName:r?r.name:void 0,fromBlock:i,id:l,request:u(l),strict:Boolean(s),toBlock:a,type:\"event\"}}async function Lr(e){const t=kr(e,{method:\"eth_newPendingTransactionFilter\"}),n=await e.request({method:\"eth_newPendingTransactionFilter\"});return{id:n,request:t(n),type:\"transaction\"}}var Dr=n(5182),_r=n(6675);function $r(e){if(0===e||1===e)return e;if(27===e)return 0;if(28===e)return 1;throw new Error(\"Invalid yParityOrV value\")}async function Gr({hash:e,signature:t}){return function(e){const t=(0,Bn.S)(`0x${e.substring(4)}`).substring(26);return(0,T.o)(`0x${t}`)}(await async function({hash:e,signature:t}){const r=(0,Pn.q)(e)?e:(0,mn.nj)(e),{secp256k1:o}=await Promise.resolve().then(n.bind(n,6799));return`0x${(()=>{if(\"object\"==typeof t&&\"r\"in t&&\"s\"in t){const{r:e,s:n,v:r,yParity:i}=t,s=$r(Number(i??r));return new o.Signature((0,_r.uU)(e),(0,_r.uU)(n)).addRecoveryBit(s)}const e=(0,Pn.q)(t)?t:(0,mn.nj)(t);if(65!==(0,Dr.E)(e))throw new Error(\"invalid signature length\");const n=$r((0,_r.ME)(`0x${e.slice(130)}`));return o.Signature.fromCompact(e.substring(2,130)).addRecoveryBit(n)})().recoverPublicKey(r.substring(2)).toHex(!1)}`}({hash:e,signature:t}))}var Qr=n(5834);function Hr(e,t=\"hex\"){const n=qr(e),r=(0,Qr.l)(new Uint8Array(n.length));return n.encode(r),\"hex\"===t?(0,mn.My)(r.bytes):r.bytes}function qr(e){return Array.isArray(e)?function(e){const t=e.reduce((e,t)=>e+t.length,0),n=Vr(t);return{length:t<=55?1+t:1+n+t,encode(r){t<=55?r.pushByte(192+t):(r.pushByte(247+n),1===n?r.pushUint8(t):2===n?r.pushUint16(t):3===n?r.pushUint24(t):r.pushUint32(t));for(const{encode:t}of e)t(r)}}}(e.map(e=>qr(e))):function(e){const t=\"string\"==typeof e?(0,En.aT)(e):e,n=Vr(t.length),r=1===t.length&&t[0]<128?1:t.length<=55?1+t.length:1+n+t.length;return{length:r,encode(e){1===t.length&&t[0]<128?e.pushBytes(t):t.length<=55?(e.pushByte(128+t.length),e.pushBytes(t)):(e.pushByte(183+n),1===n?e.pushUint8(t.length):2===n?e.pushUint16(t.length):3===n?e.pushUint24(t.length):e.pushUint32(t.length),e.pushBytes(t))}}}(e)}function Vr(e){if(e<256)return 1;if(e<65536)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new I.C(\"Length is too large.\")}function Jr(e){const{chainId:t,nonce:n,to:r}=e,o=e.contractAddress??e.address,i=(0,Bn.S)((0,xn.aP)([\"0x05\",Hr([t?(0,mn.cK)(t):\"0x\",o,n?(0,mn.cK)(n):\"0x\"])]));return\"bytes\"===r?(0,En.aT)(i):i}async function Kr(e){const{authorization:t,signature:n}=e;return Gr({hash:Jr(t),signature:n??t})}var Wr=n(9436),Zr=n(9670),Yr=n(8990);class Xr extends I.C{constructor(e,{account:t,docsPath:n,chain:r,data:o,gas:i,gasPrice:s,maxFeePerGas:a,maxPriorityFeePerGas:c,nonce:u,to:f,value:l}){const d=(0,Yr.aO)({from:t?.address,to:f,value:void 0!==l&&`${(0,Wr.c)(l)} ${r?.nativeCurrency?.symbol||\"ETH\"}`,data:o,gas:i,gasPrice:void 0!==s&&`${(0,Zr.Q)(s)} gwei`,maxFeePerGas:void 0!==a&&`${(0,Zr.Q)(a)} gwei`,maxPriorityFeePerGas:void 0!==c&&`${(0,Zr.Q)(c)} gwei`,nonce:u});super(e.shortMessage,{cause:e,docsPath:n,metaMessages:[...e.metaMessages?[...e.metaMessages,\" \"]:[],\"Estimate Gas Arguments:\",d].filter(Boolean),name:\"EstimateGasExecutionError\"}),Object.defineProperty(this,\"cause\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=e}}var eo=n(211),to=n(1772);var no=n(5547);class ro extends I.C{constructor(){super(\"`baseFeeMultiplier` must be greater than 1.\",{name:\"BaseFeeScalarError\"})}}class oo extends I.C{constructor(){super(\"Chain does not support EIP-1559 fees.\",{name:\"Eip1559FeesNotSupportedError\"})}}class io extends I.C{constructor({maxPriorityFeePerGas:e}){super(`\\`maxFeePerGas\\` cannot be less than the \\`maxPriorityFeePerGas\\` (${(0,Zr.Q)(e)} gwei).`,{name:\"MaxFeePerGasTooLowError\"})}}class so extends I.C{constructor({blockHash:e,blockNumber:t}){let n=\"Block\";e&&(n=`Block at hash \"${e}\"`),t&&(n=`Block at number \"${t}\"`),super(`${n} could not be found.`,{name:\"BlockNotFoundError\"})}}const ao={\"0x0\":\"legacy\",\"0x1\":\"eip2930\",\"0x2\":\"eip1559\",\"0x3\":\"eip4844\",\"0x4\":\"eip7702\"};function co(e,t){const n={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,chainId:e.chainId?(0,_r.ME)(e.chainId):void 0,gas:e.gas?BigInt(e.gas):void 0,gasPrice:e.gasPrice?BigInt(e.gasPrice):void 0,maxFeePerBlobGas:e.maxFeePerBlobGas?BigInt(e.maxFeePerBlobGas):void 0,maxFeePerGas:e.maxFeePerGas?BigInt(e.maxFeePerGas):void 0,maxPriorityFeePerGas:e.maxPriorityFeePerGas?BigInt(e.maxPriorityFeePerGas):void 0,nonce:e.nonce?(0,_r.ME)(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?ao[e.type]:void 0,typeHex:e.type?e.type:void 0,value:e.value?BigInt(e.value):void 0,v:e.v?BigInt(e.v):void 0};return e.authorizationList&&(n.authorizationList=e.authorizationList.map(e=>({address:e.address,chainId:Number(e.chainId),nonce:Number(e.nonce),r:e.r,s:e.s,yParity:Number(e.yParity)}))),n.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(\"bigint\"==typeof n.v){if(0n===n.v||27n===n.v)return 0;if(1n===n.v||28n===n.v)return 1;if(n.v>=35n)return n.v%2n==0n?1:0}})(),\"legacy\"===n.type&&(delete n.accessList,delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas,delete n.yParity),\"eip2930\"===n.type&&(delete n.maxFeePerBlobGas,delete n.maxFeePerGas,delete n.maxPriorityFeePerGas),\"eip1559\"===n.type&&delete n.maxFeePerBlobGas,n}function uo(e,t){const n=(e.transactions??[]).map(e=>\"string\"==typeof e?e:co(e));return{...e,baseFeePerGas:e.baseFeePerGas?BigInt(e.baseFeePerGas):null,blobGasUsed:e.blobGasUsed?BigInt(e.blobGasUsed):void 0,difficulty:e.difficulty?BigInt(e.difficulty):void 0,excessBlobGas:e.excessBlobGas?BigInt(e.excessBlobGas):void 0,gasLimit:e.gasLimit?BigInt(e.gasLimit):void 0,gasUsed:e.gasUsed?BigInt(e.gasUsed):void 0,hash:e.hash?e.hash:null,logsBloom:e.logsBloom?e.logsBloom:null,nonce:e.nonce?e.nonce:null,number:e.number?BigInt(e.number):null,size:e.size?BigInt(e.size):void 0,timestamp:e.timestamp?BigInt(e.timestamp):void 0,transactions:n,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}async function fo(e,{blockHash:t,blockNumber:n,blockTag:r=e.experimental_blockTag??\"latest\",includeTransactions:o}={}){const i=o??!1,s=void 0!==n?(0,mn.cK)(n):void 0;let a=null;if(a=t?await e.request({method:\"eth_getBlockByHash\",params:[t,i]},{dedupe:!0}):await e.request({method:\"eth_getBlockByNumber\",params:[s||r,i]},{dedupe:Boolean(s)}),!a)throw new so({blockHash:t,blockNumber:n});return(e.chain?.formatters?.block?.format||uo)(a,\"getBlock\")}async function lo(e){const t=await e.request({method:\"eth_gasPrice\"});return BigInt(t)}async function ho(e,t){const{block:n,chain:r=e.chain,request:o}=t||{};try{const t=r?.fees?.maxPriorityFeePerGas??r?.fees?.defaultPriorityFee;if(\"function\"==typeof t){const r=n||await Nn(e,fo,\"getBlock\")({}),i=await t({block:r,client:e,request:o});if(null===i)throw new Error;return i}if(void 0!==t)return t;const i=await e.request({method:\"eth_maxPriorityFeePerGas\"});return(0,_r.uU)(i)}catch{const[t,r]=await Promise.all([n?Promise.resolve(n):Nn(e,fo,\"getBlock\")({}),Nn(e,lo,\"getGasPrice\")({})]);if(\"bigint\"!=typeof t.baseFeePerGas)throw new oo;const o=r-t.baseFeePerGas;return o<0n?0n:o}}async function po(e,t){const{block:n,chain:r=e.chain,request:o,type:i=\"eip1559\"}=t||{},s=await(async()=>\"function\"==typeof r?.fees?.baseFeeMultiplier?r.fees.baseFeeMultiplier({block:n,client:e,request:o}):r?.fees?.baseFeeMultiplier??1.2)();if(s<1)throw new ro;const a=10**(s.toString().split(\".\")[1]?.length??0),c=e=>e*BigInt(Math.ceil(s*a))/BigInt(a),u=n||await Nn(e,fo,\"getBlock\")({});if(\"function\"==typeof r?.fees?.estimateFeesPerGas){const t=await r.fees.estimateFeesPerGas({block:n,client:e,multiply:c,request:o,type:i});if(null!==t)return t}if(\"eip1559\"===i){if(\"bigint\"!=typeof u.baseFeePerGas)throw new oo;const t=\"bigint\"==typeof o?.maxPriorityFeePerGas?o.maxPriorityFeePerGas:await ho(e,{block:u,chain:r,request:o}),n=c(u.baseFeePerGas);return{maxFeePerGas:o?.maxFeePerGas??n+t,maxPriorityFeePerGas:t}}return{gasPrice:o?.gasPrice??c(await Nn(e,lo,\"getGasPrice\")({}))}}async function bo(e,{address:t,blockTag:n=\"latest\",blockNumber:r}){const o=await e.request({method:\"eth_getTransactionCount\",params:[t,\"bigint\"==typeof r?(0,mn.cK)(r):n]},{dedupe:Boolean(r)});return(0,_r.ME)(o)}function go(e){const{kzg:t}=e,n=e.to??(\"string\"==typeof e.blobs[0]?\"hex\":\"bytes\"),r=\"string\"==typeof e.blobs[0]?e.blobs.map(e=>(0,En.aT)(e)):e.blobs,o=[];for(const e of r)o.push(Uint8Array.from(t.blobToKzgCommitment(e)));return\"bytes\"===n?o:o.map(e=>(0,mn.My)(e))}function yo(e){const{kzg:t}=e,n=e.to??(\"string\"==typeof e.blobs[0]?\"hex\":\"bytes\"),r=\"string\"==typeof e.blobs[0]?e.blobs.map(e=>(0,En.aT)(e)):e.blobs,o=\"string\"==typeof e.commitments[0]?e.commitments.map(e=>(0,En.aT)(e)):e.commitments,i=[];for(let e=0;e<r.length;e++){const n=r[e],s=o[e];i.push(Uint8Array.from(t.computeBlobKzgProof(n,s)))}return\"bytes\"===n?i:i.map(e=>(0,mn.My)(e))}function mo(e){const{commitment:t,version:n=1}=e,r=e.to??(\"string\"==typeof t?\"hex\":\"bytes\"),o=function(e,t){const n=t||\"hex\",r=$e((0,Pn.q)(e,{strict:!1})?(0,En.ZJ)(e):e);return\"bytes\"===n?r:(0,mn.nj)(r)}(t,\"bytes\");return o.set([n],0),\"bytes\"===r?o:(0,mn.My)(o)}const wo=4096,vo=131072,Ao=761855;class xo extends I.C{constructor({maxSize:e,size:t}){super(\"Blob size is too large.\",{metaMessages:[`Max: ${e} bytes`,`Given: ${t} bytes`],name:\"BlobSizeTooLargeError\"})}}class Eo extends I.C{constructor(){super(\"Blob data must not be empty.\",{name:\"EmptyBlobError\"})}}I.C;I.C;function Bo(e){const{data:t,kzg:n,to:r}=e,o=e.blobs??function(e){const t=e.to??(\"string\"==typeof e.data?\"hex\":\"bytes\"),n=\"string\"==typeof e.data?(0,En.aT)(e.data):e.data,r=(0,Dr.E)(n);if(!r)throw new Eo;if(r>Ao)throw new xo({maxSize:Ao,size:r});const o=[];let i=!0,s=0;for(;i;){const e=(0,Qr.l)(new Uint8Array(vo));let t=0;for(;t<wo;){const r=n.slice(s,s+31);if(e.pushByte(0),e.pushBytes(r),r.length<31){e.pushByte(128),i=!1;break}t++,s+=31}o.push(e)}return\"bytes\"===t?o.map(e=>e.bytes):o.map(e=>(0,mn.My)(e.bytes))}({data:t,to:r}),i=e.commitments??go({blobs:o,kzg:n,to:r}),s=e.proofs??yo({blobs:o,commitments:i,kzg:n,to:r}),a=[];for(let e=0;e<o.length;e++)a.push({blob:o[e],commitment:i[e],proof:s[e]});return a}var Po=n(6447);async function Io(e){const t=await e.request({method:\"eth_chainId\"},{dedupe:!0});return(0,_r.ME)(t)}async function Co(e,t){const{account:n=e.account,accessList:r,authorizationList:o,chain:i=e.chain,blobVersionedHashes:s,blobs:a,data:c,gas:u,gasPrice:f,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:h,nonce:p,nonceManager:b,to:g,type:y,value:m,...w}=t,v=await(async()=>{if(!n)return p;if(!b)return p;if(void 0!==p)return p;const t=(0,un.J)(n),r=i?i.id:await Nn(e,Io,\"getChainId\")({});return await b.consume({address:t.address,chainId:r,client:e})})();(0,Ir.c)(t);const A=i?.formatters?.transactionRequest?.format,x=(A||Pr.Bv)({...(0,Br.o)(w,{format:A}),account:n?(0,un.J)(n):void 0,accessList:r,authorizationList:o,blobs:a,blobVersionedHashes:s,data:c,gas:u,gasPrice:f,maxFeePerBlobGas:l,maxFeePerGas:d,maxPriorityFeePerGas:h,nonce:v,to:g,type:y,value:m},\"fillTransaction\");try{const n=await e.request({method:\"eth_fillTransaction\",params:[x]}),r=(i?.formatters?.transaction?.format||co)(n.tx);delete r.blockHash,delete r.blockNumber,delete r.r,delete r.s,delete r.transactionIndex,delete r.v,delete r.yParity,r.data=r.input,r.gas&&(r.gas=t.gas??r.gas),r.gasPrice&&(r.gasPrice=t.gasPrice??r.gasPrice),r.maxFeePerBlobGas&&(r.maxFeePerBlobGas=t.maxFeePerBlobGas??r.maxFeePerBlobGas),r.maxFeePerGas&&(r.maxFeePerGas=t.maxFeePerGas??r.maxFeePerGas),r.maxPriorityFeePerGas&&(r.maxPriorityFeePerGas=t.maxPriorityFeePerGas??r.maxPriorityFeePerGas),void 0!==r.nonce&&(r.nonce=t.nonce??r.nonce);const o=await(async()=>{if(\"function\"==typeof i?.fees?.baseFeeMultiplier){const n=await Nn(e,fo,\"getBlock\")({});return i.fees.baseFeeMultiplier({block:n,client:e,request:t})}return i?.fees?.baseFeeMultiplier??1.2})();if(o<1)throw new ro;const s=10**(o.toString().split(\".\")[1]?.length??0),a=e=>e*BigInt(Math.ceil(o*s))/BigInt(s);return r.feePayerSignature||(r.maxFeePerGas&&!t.maxFeePerGas&&(r.maxFeePerGas=a(r.maxFeePerGas)),r.gasPrice&&!t.gasPrice&&(r.gasPrice=a(r.gasPrice))),{raw:n.raw,transaction:{from:x.from,...r},...n.capabilities?{capabilities:n.capabilities}:{}}}catch(n){throw function(e,{docsPath:t,...n}){const r=(()=>{const t=(0,to.l)(e,n);return t instanceof eo.RM?e:t})();return new Yr.$s(r,{docsPath:t,...n})}(n,{...t,chain:e.chain})}}const ko=[\"blobVersionedHashes\",\"chainId\",\"fees\",\"gas\",\"nonce\",\"type\"],Mo=new Map,Oo=new Po.A(128);async function No(e,t){let n=t;n.account??=e.account,n.parameters??=ko;const{account:r,chain:o=e.chain,nonceManager:i,parameters:s}=n,a=\"function\"==typeof o?.prepareTransactionRequest?{fn:o.prepareTransactionRequest,runAt:[\"beforeFillTransaction\"]}:Array.isArray(o?.prepareTransactionRequest)?{fn:o.prepareTransactionRequest[0],runAt:o.prepareTransactionRequest[1].runAt}:void 0;let c;async function u(){if(c)return c;if(void 0!==n.chainId)return n.chainId;if(o)return o.id;const t=await Nn(e,Io,\"getChainId\")({});return c=t,c}const f=r?(0,un.J)(r):r;let l=n.nonce;if(s.includes(\"nonce\")&&void 0===l&&f&&i){const t=await u();l=await i.consume({address:f.address,chainId:t,client:e})}a?.fn&&a.runAt?.includes(\"beforeFillTransaction\")&&(n=await a.fn({...n,chain:o},{phase:\"beforeFillTransaction\"}),l??=n.nonce);const d=(()=>{if((s.includes(\"blobVersionedHashes\")||s.includes(\"sidecars\"))&&n.kzg&&n.blobs)return!1;if(!1===Oo.get(e.uid))return!1;return!![\"fees\",\"gas\"].some(e=>s.includes(e))&&(!(!s.includes(\"chainId\")||\"number\"==typeof n.chainId)||(!(!s.includes(\"nonce\")||\"number\"==typeof l)||(!(!s.includes(\"fees\")||\"bigint\"==typeof n.gasPrice||\"bigint\"==typeof n.maxFeePerGas&&\"bigint\"==typeof n.maxPriorityFeePerGas)||!(!s.includes(\"gas\")||\"bigint\"==typeof n.gas))))})()?await Nn(e,Co,\"fillTransaction\")({...n,nonce:l}).then(t=>{const{chainId:r,from:o,gas:i,gasPrice:s,nonce:a,maxFeePerBlobGas:c,maxFeePerGas:u,maxPriorityFeePerGas:f,type:l,...d}=t.transaction;return Oo.set(e.uid,!0),{...n,...o?{from:o}:{},...l&&!n.type?{type:l}:{},...void 0!==r?{chainId:r}:{},...void 0!==i?{gas:i}:{},...void 0!==s?{gasPrice:s}:{},...void 0!==a?{nonce:a}:{},...void 0!==c&&\"legacy\"!==n.type&&\"eip2930\"!==n.type?{maxFeePerBlobGas:c}:{},...void 0!==u&&\"legacy\"!==n.type&&\"eip2930\"!==n.type?{maxFeePerGas:u}:{},...void 0!==f&&\"legacy\"!==n.type&&\"eip2930\"!==n.type?{maxPriorityFeePerGas:f}:{},...\"nonceKey\"in d&&void 0!==d.nonceKey?{nonceKey:d.nonceKey}:{},...\"keyAuthorization\"in d&&void 0!==d.keyAuthorization&&null!==d.keyAuthorization&&!(\"keyAuthorization\"in n)?{keyAuthorization:d.keyAuthorization}:{},...\"feePayerSignature\"in d&&void 0!==d.feePayerSignature&&null!==d.feePayerSignature?{feePayerSignature:d.feePayerSignature}:{},...\"feeToken\"in d&&void 0!==d.feeToken&&null!==d.feeToken&&!(\"feeToken\"in n)?{feeToken:d.feeToken}:{},...t.capabilities?{_capabilities:t.capabilities}:{}}}).catch(t=>{const r=t;if(\"TransactionExecutionError\"!==r.name)return n;const o=r.walk?.(e=>\"ExecutionRevertedError\"===e.name);if(o)throw t;const i=r.walk?.(e=>{const t=e;return\"MethodNotFoundRpcError\"===t.name||\"MethodNotSupportedRpcError\"===t.name||t.message?.includes(\"eth_fillTransaction is not available\")});return i&&Oo.set(e.uid,!1),n}):n;l??=d.nonce,n={...d,...f?{from:f?.address}:{},...void 0!==l?{nonce:l}:{}};const{blobs:h,gas:p,kzg:b,type:g}=n;let y;async function m(){return y||(y=await Nn(e,fo,\"getBlock\")({blockTag:\"latest\"}),y)}if(a?.fn&&a.runAt?.includes(\"beforeFillParameters\")&&(n=await a.fn({...n,chain:o},{phase:\"beforeFillParameters\"})),s.includes(\"nonce\")&&void 0===l&&f&&!i&&(n.nonce=await Nn(e,bo,\"getTransactionCount\")({address:f.address,blockTag:\"pending\"})),(s.includes(\"blobVersionedHashes\")||s.includes(\"sidecars\"))&&h&&b){const e=go({blobs:h,kzg:b});if(s.includes(\"blobVersionedHashes\")){const t=function(e){const{commitments:t,version:n}=e,r=e.to??(\"string\"==typeof t[0]?\"hex\":\"bytes\"),o=[];for(const e of t)o.push(mo({commitment:e,to:r,version:n}));return o}({commitments:e,to:\"hex\"});n.blobVersionedHashes=t}if(s.includes(\"sidecars\")){const t=Bo({blobs:h,commitments:e,proofs:yo({blobs:h,commitments:e,kzg:b}),to:\"hex\"});n.sidecars=t}}if(s.includes(\"chainId\")&&(n.chainId=await u()),(s.includes(\"fees\")||s.includes(\"type\"))&&void 0===g)try{n.type=function(e){if(e.type)return e.type;if(void 0!==e.authorizationList)return\"eip7702\";if(void 0!==e.blobs||void 0!==e.blobVersionedHashes||void 0!==e.maxFeePerBlobGas||void 0!==e.sidecars)return\"eip4844\";if(void 0!==e.maxFeePerGas||void 0!==e.maxPriorityFeePerGas)return\"eip1559\";if(void 0!==e.gasPrice)return void 0!==e.accessList?\"eip2930\":\"legacy\";throw new Yr.Vg({transaction:e})}(n)}catch{let t=Mo.get(e.uid);if(void 0===t){const n=await m();t=\"bigint\"==typeof n?.baseFeePerGas,Mo.set(e.uid,t)}n.type=t?\"eip1559\":\"legacy\"}if(s.includes(\"fees\"))if(\"legacy\"!==n.type&&\"eip2930\"!==n.type){if(void 0===n.maxFeePerGas||void 0===n.maxPriorityFeePerGas){const t=await m(),{maxFeePerGas:r,maxPriorityFeePerGas:i}=await po(e,{block:t,chain:o,request:n});if(void 0===n.maxPriorityFeePerGas&&n.maxFeePerGas&&n.maxFeePerGas<i)throw new io({maxPriorityFeePerGas:i});n.maxPriorityFeePerGas=i,n.maxFeePerGas=r}}else{if(void 0!==n.maxFeePerGas||void 0!==n.maxPriorityFeePerGas)throw new oo;if(void 0===n.gasPrice){const t=await m(),{gasPrice:r}=await po(e,{block:t,chain:o,request:n,type:\"legacy\"});n.gasPrice=r}}return s.includes(\"gas\")&&void 0===p&&(n.gas=await Nn(e,So,\"estimateGas\")({...n,account:f,prepare:\"local\"===f?.type?[]:[\"blobVersionedHashes\"]})),a?.fn&&a.runAt?.includes(\"afterFillParameters\")&&(n=await a.fn({...n,chain:o},{phase:\"afterFillParameters\"})),(0,Ir.c)(n),delete n.parameters,n}async function So(e,t){const{account:n=e.account,prepare:r=!0}=t,o=n?(0,un.J)(n):void 0,i=Array.isArray(r)?r:\"local\"!==o?.type?[\"blobVersionedHashes\"]:void 0;try{const n=await(async()=>t.to?t.to:t.authorizationList&&t.authorizationList.length>0?await Kr({authorization:t.authorizationList[0]}).catch(()=>{throw new I.C(\"`to` is required. Could not infer from `authorizationList`\")}):void 0)(),{accessList:s,authorizationList:a,blobs:c,blobVersionedHashes:u,blockNumber:f,blockTag:l,data:d,gas:h,gasPrice:p,maxFeePerBlobGas:b,maxFeePerGas:g,maxPriorityFeePerGas:y,nonce:m,value:w,stateOverride:v,...A}=r?await No(e,{...t,parameters:i,to:n}):t;if(h&&t.gas!==h)return h;const x=(\"bigint\"==typeof f?(0,mn.cK)(f):void 0)||l,E=(0,no.yH)(v);(0,Ir.c)(t);const B=e.chain?.formatters?.transactionRequest?.format,P=(B||Pr.Bv)({...(0,Br.o)(A,{format:B}),account:o,accessList:s,authorizationList:a,blobs:c,blobVersionedHashes:u,data:d,gasPrice:p,maxFeePerBlobGas:b,maxFeePerGas:g,maxPriorityFeePerGas:y,nonce:m,to:n,value:w},\"estimateGas\");return BigInt(await e.request({method:\"eth_estimateGas\",params:E?[P,x??e.experimental_blockTag??\"latest\",E]:x?[P,x]:[P]}))}catch(n){throw function(e,{docsPath:t,...n}){const r=(()=>{const t=(0,to.l)(e,n);return t instanceof eo.RM?e:t})();return new Xr(r,{docsPath:t,...n})}(n,{...t,account:o,chain:e.chain})}}const To=new Map,Uo=new Map;async function Ro(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){const r=function(e){const t=(e,t)=>({clear:()=>t.delete(e),get:()=>t.get(e),set:n=>t.set(e,n)}),n=t(e,To),r=t(e,Uo);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}(t),o=r.response.get();if(o&&n>0){if(Date.now()-o.created.getTime()<n)return o.data}let i=r.promise.get();i||(i=e(),r.promise.set(i));try{const e=await i;return r.response.set({created:new Date,data:e}),e}finally{r.promise.clear()}}const Fo=e=>`blockNumber.${e}`;async function zo(e,{cacheTime:t=e.cacheTime}={}){const n=await Ro(()=>e.request({method:\"eth_blockNumber\"}),{cacheKey:Fo(e.uid),cacheTime:t});return BigInt(n)}async function jo(e,{address:t,blockNumber:n,blockTag:r=\"latest\"}){const o=void 0!==n?(0,mn.cK)(n):void 0,i=await e.request({method:\"eth_getCode\",params:[t,o||r]},{dedupe:Boolean(o)});if(\"0x\"!==i)return i}var Lo=n(2589);function Do(e,{args:t,eventName:n}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):null===e.blockTimestamp?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...n?{args:t,eventName:n}:{}}}var _o=n(8146),$o=n(1965);const Go=\"/docs/contract/decodeEventLog\";function Qo(e){const{abi:t,data:n,strict:r,topics:o}=e,i=r??!0,[s,...a]=o;if(!s)throw new Sn._z({docsPath:Go});const c=t.find(e=>\"event\"===e.type&&s===(0,Or.h)((0,Sr.B)(e)));if(!c||!(\"name\"in c)||\"event\"!==c.type)throw new Sn.kE(s,{docsPath:Go});const{name:u,inputs:f}=c,l=f?.some(e=>!(\"name\"in e&&e.name)),d=l?[]:{},h=f.map((e,t)=>[e,t]).filter(([e])=>\"indexed\"in e&&e.indexed),p=[];for(let e=0;e<h.length;e++){const[t,n]=h[e],r=a[e];if(r)d[l?n:t.name||n]=Ho({param:t,value:r});else{if(i)throw new Sn.l3({abiItem:c,param:t});p.push([t,n])}}const b=f.filter(e=>!(\"indexed\"in e&&e.indexed)),g=i?b:[...p.map(([e])=>e),...b];if(g.length>0)if(n&&\"0x\"!==n)try{const e=(0,$o.n)(g,n);if(e){let t=0;if(!i)for(const[n,r]of p)d[l?r:n.name||r]=e[t++];if(l)for(let n=0;n<f.length;n++)void 0===d[n]&&t<e.length&&(d[n]=e[t++]);else for(let n=0;n<b.length;n++)d[b[n].name]=e[t++]}}catch(e){if(i){if(e instanceof Sn.Iy||e instanceof _o.SK)throw new Sn.fo({abiItem:c,data:n,params:g,size:(0,Dr.E)(n)});throw e}}else if(i)throw new Sn.fo({abiItem:c,data:\"0x\",params:g,size:0});return{eventName:u,args:Object.values(d).length>0?d:void 0}}function Ho({param:e,value:t}){if(\"string\"===e.type||\"bytes\"===e.type||\"tuple\"===e.type||e.type.match(/^(.*)\\[(\\d+)?\\]$/))return t;return((0,$o.n)([e],t)||[])[0]}function qo(e){const{abi:t,args:n,logs:r,strict:o=!0}=e,i=(()=>{if(e.eventName)return Array.isArray(e.eventName)?e.eventName:[e.eventName]})(),s=t.filter(e=>\"event\"===e.type).map(e=>({abi:e,selector:(0,Or.h)(e)}));return r.map(e=>{const t=\"string\"==typeof e.blockNumber?Do(e):e,r=s.filter(e=>t.topics[0]===e.selector);if(0===r.length)return null;let a,c;for(const e of r)try{a=Qo({...t,abi:[e.abi],strict:!0}),c=e;break}catch{}if(!a&&!o){c=r[0];try{a=Qo({data:t.data,topics:t.topics,abi:[c.abi],strict:!1})}catch{const e=c.abi.inputs?.some(e=>!(\"name\"in e&&e.name));return{...t,args:e?[]:{},eventName:c.abi.name}}}return a&&c?i&&!i.includes(a.eventName)?null:function(e){const{args:t,inputs:n,matchArgs:r}=e;if(!r)return!0;if(!t)return!1;function o(e,t,n){try{return\"address\"===e.type?(0,Lo.h)(t,n):\"string\"===e.type||\"bytes\"===e.type?(0,Bn.S)((0,En.ZJ)(t))===n:t===n}catch{return!1}}if(Array.isArray(t)&&Array.isArray(r))return r.every((e,r)=>{if(null==e)return!0;const i=n[r];if(!i)return!1;return(Array.isArray(e)?e:[e]).some(e=>o(i,e,t[r]))});return\"object\"==typeof t&&!Array.isArray(t)&&\"object\"==typeof r&&!Array.isArray(r)&&Object.entries(r).every(([e,r])=>{if(null==r)return!0;const i=n.find(t=>t.name===e);if(!i)return!1;return(Array.isArray(r)?r:[r]).some(n=>o(i,n,t[e]))})}({args:a.args,inputs:c.abi.inputs,matchArgs:n})?{...a,...t}:null:null}).filter(Boolean)}async function Vo(e,{address:t,blockHash:n,fromBlock:r,toBlock:o,event:i,events:s,args:a,strict:c}={}){const u=c??!1,f=s??(i?[i]:void 0);let l,d=[];if(f){const e=f.flatMap(e=>Rr({abi:[e],eventName:e.name,args:s?void 0:a}));d=[e],i&&(d=d[0])}l=n?await e.request({method:\"eth_getLogs\",params:[{address:t,topics:d,blockHash:n}]}):await e.request({method:\"eth_getLogs\",params:[{address:t,topics:d,fromBlock:\"bigint\"==typeof r?(0,mn.cK)(r):r,toBlock:\"bigint\"==typeof o?(0,mn.cK)(o):o}]});const h=l.map(e=>Do(e));return f?qo({abi:f,args:a,logs:h,strict:u}):h}async function Jo(e,t){const{abi:n,address:r,args:o,blockHash:i,eventName:s,fromBlock:a,toBlock:c,strict:u}=t,f=s?(0,Tr.iY)({abi:n,name:s}):void 0,l=f?void 0:n.filter(e=>\"event\"===e.type);return Nn(e,Vo,\"getLogs\")({address:r,args:o,blockHash:i,event:f,events:l,fromBlock:a,toBlock:c,strict:u})}var Ko=n(3577);class Wo extends I.C{constructor({address:e}){super(`No EIP-712 domain found on contract \"${e}\".`,{metaMessages:[\"Ensure that:\",`- The contract is deployed at the address \"${e}\".`,\"- `eip712Domain()` function exists on the contract.\",\"- `eip712Domain()` function matches signature to ERC-5267 specification.\"],name:\"Eip712DomainNotFoundError\"})}}const Zo=[{inputs:[],name:\"eip712Domain\",outputs:[{name:\"fields\",type:\"bytes1\"},{name:\"name\",type:\"string\"},{name:\"version\",type:\"string\"},{name:\"chainId\",type:\"uint256\"},{name:\"verifyingContract\",type:\"address\"},{name:\"salt\",type:\"bytes32\"},{name:\"extensions\",type:\"uint256[]\"}],stateMutability:\"view\",type:\"function\"}];async function Yo(e,{blockCount:t,blockNumber:n,blockTag:r=\"latest\",rewardPercentiles:o}){const i=\"bigint\"==typeof n?(0,mn.cK)(n):void 0;return function(e){return{baseFeePerGas:e.baseFeePerGas.map(e=>BigInt(e)),gasUsedRatio:e.gasUsedRatio,oldestBlock:BigInt(e.oldestBlock),reward:e.reward?.map(e=>e.map(e=>BigInt(e)))}}(await e.request({method:\"eth_feeHistory\",params:[(0,mn.cK)(t),i||r,o]},{dedupe:Boolean(i)}))}async function Xo(e,{filter:t}){const n=\"strict\"in t&&t.strict,r=await t.request({method:\"eth_getFilterChanges\",params:[t.id]});if(\"string\"==typeof r[0])return r;const o=r.map(e=>Do(e));return\"abi\"in t&&t.abi?qo({abi:t.abi,logs:o,strict:n}):o}async function ei(e,{address:t,blockNumber:n,blockTag:r,storageKeys:o}){const i=r??\"latest\",s=void 0!==n?(0,mn.cK)(n):void 0;return function(e){return{...e,balance:e.balance?BigInt(e.balance):void 0,nonce:e.nonce?(0,_r.ME)(e.nonce):void 0,storageProof:e.storageProof?(t=e.storageProof,t.map(e=>({...e,value:BigInt(e.value)}))):void 0};var t}(await e.request({method:\"eth_getProof\",params:[t,o,s||i]}))}async function ti(e,{blockHash:t,blockNumber:n,blockTag:r,hash:o,index:i,sender:s,nonce:a}){const c=r||\"latest\",u=void 0!==n?(0,mn.cK)(n):void 0;let f=null;if(o?f=await e.request({method:\"eth_getTransactionByHash\",params:[o]},{dedupe:!0}):t?f=await e.request({method:\"eth_getTransactionByBlockHashAndIndex\",params:[t,(0,mn.cK)(i)]},{dedupe:!0}):(u||c)&&\"number\"==typeof i?f=await e.request({method:\"eth_getTransactionByBlockNumberAndIndex\",params:[u||c,(0,mn.cK)(i)]},{dedupe:Boolean(u)}):s&&\"number\"==typeof a&&(f=await e.request({method:\"eth_getTransactionBySenderAndNonce\",params:[s,(0,mn.cK)(a)]},{dedupe:!0})),!f)throw new Yr.Kz({blockHash:t,blockNumber:n,blockTag:c,hash:o,index:i});return(e.chain?.formatters?.transaction?.format||co)(f,\"getTransaction\")}const ni={\"0x0\":\"reverted\",\"0x1\":\"success\"};function ri(e,t){const n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs?e.logs.map(e=>Do(e)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?(0,_r.ME)(e.transactionIndex):null,status:e.status?ni[e.status]:null,type:e.type?ao[e.type]||e.type:null};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),n}async function oi(e,{hash:t}){const n=await e.request({method:\"eth_getTransactionReceipt\",params:[t]},{dedupe:!0});if(!n)throw new Yr.Kc({hash:t});return(e.chain?.formatters?.transactionReceipt?.format||ri)(n,\"getTransactionReceipt\")}var ii=n(5945);var si=n(1717);async function ai(e,t){const{blockNumber:n,blockTag:r=e.experimental_blockTag??\"latest\",blocks:o,returnFullTransactions:i,traceTransfers:s,validation:a}=t;try{const t=[];for(const e of o){const n=e.blockOverrides?si.J(e.blockOverrides):void 0,r=e.calls.map(e=>{const t=e,n=t.account?(0,un.J)(t.account):void 0,r=t.abi?(0,bn.p)(t):t.data,o={...t,account:n,data:t.dataSuffix?(0,xn.xW)([r||\"0x\",t.dataSuffix]):r,from:t.from??n?.address};return(0,Ir.c)(o),(0,Pr.Bv)(o)}),o=e.stateOverrides?(0,no.yH)(e.stateOverrides):void 0;t.push({blockOverrides:n,calls:r,stateOverrides:o})}const c=(\"bigint\"==typeof n?(0,mn.cK)(n):void 0)||r;return(await e.request({method:\"eth_simulateV1\",params:[{blockStateCalls:t,returnFullTransactions:i,traceTransfers:s,validation:a},c]})).map((e,t)=>({...uo(e),calls:e.calls.map((e,n)=>{const{abi:r,args:i,functionName:s,to:a}=o[t].calls[n],c=e.error?.data??e.returnData,u=BigInt(e.gasUsed),f=e.logs?.map(e=>Do(e)),l=\"0x1\"===e.status?\"success\":\"failure\",d=r&&\"success\"===l&&\"0x\"!==c?(0,pn.e)({abi:r,data:c,functionName:s}):null,h=(()=>{if(\"success\"===l)return;let e;return\"0x\"===c?e=new Sn.O:c&&(e=new wn.$S({data:c})),e?fr(e,{abi:r??[],address:a??\"0x\",args:i,functionName:s??\"<unknown>\"}):void 0})();return{data:c,gasUsed:u,logs:f,status:l,...\"success\"===l?{result:d}:{error:h}}})}))}catch(e){const t=e,n=(0,to.l)(t,{});if(n instanceof eo.RM)throw t;throw n}}class ci extends Error{constructor(e,t={}){const n=t.cause instanceof ci?t.cause.details:t.cause?.message?t.cause.message:t.details,r=t.cause instanceof ci&&t.cause.docsPath||t.docsPath;super([e||\"An error occurred.\",\"\",...t.metaMessages?[...t.metaMessages,\"\"]:[],...r?[`Docs: https://abitype.dev${r}`]:[],...n?[`Details: ${n}`]:[],\"Version: abitype@1.2.4\"].join(\"\\n\")),Object.defineProperty(this,\"details\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"docsPath\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"metaMessages\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"shortMessage\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiTypeError\"}),t.cause&&(this.cause=t.cause),this.details=n,this.docsPath=r,this.metaMessages=t.metaMessages,this.shortMessage=e}}class ui extends ci{constructor({signature:e}){super(\"Failed to parse ABI item.\",{details:`parseAbiItem(${JSON.stringify(e,null,2)})`,docsPath:\"/api/human#parseabiitem-1\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiItemError\"})}}class fi extends ci{constructor({type:e}){super(\"Unknown type.\",{metaMessages:[`Type \"${e}\" is not a valid ABI type. Perhaps you forgot to include a struct signature?`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownTypeError\"})}}class li extends ci{constructor({type:e}){super(\"Unknown type.\",{metaMessages:[`Type \"${e}\" is not a valid ABI type.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSolidityTypeError\"})}}function di(e,t){const n=e.exec(t);return n?.groups}const hi=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,pi=/^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)?$/,bi=/^\\(.+?\\).*?$/,gi=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)$/;const yi=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)$/;const mi=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\\((?<parameters>.*?)\\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\\s?\\((?<returns>.*?)\\))?$/;const wi=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \\{(?<properties>.*?)\\}$/;function vi(e){return wi.test(e)}function Ai(e){return di(wi,e)}const xi=/^constructor\\((?<parameters>.*?)\\)(?:\\s(?<stateMutability>payable{1}))?$/;const Ei=/^fallback\\(\\) external(?:\\s(?<stateMutability>payable{1}))?$/;const Bi=/^receive\\(\\) external payable$/;const Pi=new Set([\"memory\",\"indexed\",\"storage\",\"calldata\"]),Ii=new Set([\"indexed\"]),Ci=new Set([\"calldata\",\"memory\",\"storage\"]);class ki extends ci{constructor({params:e}){super(\"Failed to parse ABI parameters.\",{details:`parseAbiParameters(${JSON.stringify(e,null,2)})`,docsPath:\"/api/human#parseabiparameters-1\"}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiParametersError\"})}}class Mi extends ci{constructor({param:e}){super(\"Invalid ABI parameter.\",{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParameterError\"})}}class Oi extends ci{constructor({param:e,name:t}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`\"${t}\" is a protected Solidity keyword. More info: https://docs.soliditylang.org/en/latest/cheatsheet.html`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SolidityProtectedKeywordError\"})}}class Ni extends ci{constructor({param:e,type:t,modifier:n}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`Modifier \"${n}\" not allowed${t?` in \"${t}\" type`:\"\"}.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidModifierError\"})}}class Si extends ci{constructor({param:e,type:t,modifier:n}){super(\"Invalid ABI parameter.\",{details:e,metaMessages:[`Modifier \"${n}\" not allowed${t?` in \"${t}\" type`:\"\"}.`,`Data location can only be specified for array, struct, or mapping types, but \"${n}\" was given.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidFunctionModifierError\"})}}class Ti extends ci{constructor({abiParameter:e}){super(\"Invalid ABI parameter.\",{details:JSON.stringify(e,null,2),metaMessages:[\"ABI parameter type is invalid.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidAbiTypeParameterError\"})}}class Ui extends ci{constructor({signature:e,type:t}){super(`Invalid ${t} signature.`,{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidSignatureError\"})}}class Ri extends ci{constructor({signature:e}){super(\"Unknown signature.\",{details:e}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"UnknownSignatureError\"})}}class Fi extends ci{constructor({signature:e}){super(\"Invalid struct signature.\",{details:e,metaMessages:[\"No properties exist.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidStructSignatureError\"})}}class zi extends ci{constructor({type:e}){super(\"Circular reference detected.\",{metaMessages:[`Struct \"${e}\" is a circular reference.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"CircularReferenceError\"})}}class ji extends ci{constructor({current:e,depth:t}){super(\"Unbalanced parentheses.\",{metaMessages:[`\"${e.trim()}\" has too many ${t>0?\"opening\":\"closing\"} parentheses.`],details:`Depth \"${t}\"`}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"InvalidParenthesisError\"})}}const Li=new Map([[\"address\",{type:\"address\"}],[\"bool\",{type:\"bool\"}],[\"bytes\",{type:\"bytes\"}],[\"bytes32\",{type:\"bytes32\"}],[\"int\",{type:\"int256\"}],[\"int256\",{type:\"int256\"}],[\"string\",{type:\"string\"}],[\"uint\",{type:\"uint256\"}],[\"uint8\",{type:\"uint8\"}],[\"uint16\",{type:\"uint16\"}],[\"uint24\",{type:\"uint24\"}],[\"uint32\",{type:\"uint32\"}],[\"uint64\",{type:\"uint64\"}],[\"uint96\",{type:\"uint96\"}],[\"uint112\",{type:\"uint112\"}],[\"uint160\",{type:\"uint160\"}],[\"uint192\",{type:\"uint192\"}],[\"uint256\",{type:\"uint256\"}],[\"address owner\",{type:\"address\",name:\"owner\"}],[\"address to\",{type:\"address\",name:\"to\"}],[\"bool approved\",{type:\"bool\",name:\"approved\"}],[\"bytes _data\",{type:\"bytes\",name:\"_data\"}],[\"bytes data\",{type:\"bytes\",name:\"data\"}],[\"bytes signature\",{type:\"bytes\",name:\"signature\"}],[\"bytes32 hash\",{type:\"bytes32\",name:\"hash\"}],[\"bytes32 r\",{type:\"bytes32\",name:\"r\"}],[\"bytes32 root\",{type:\"bytes32\",name:\"root\"}],[\"bytes32 s\",{type:\"bytes32\",name:\"s\"}],[\"string name\",{type:\"string\",name:\"name\"}],[\"string symbol\",{type:\"string\",name:\"symbol\"}],[\"string tokenURI\",{type:\"string\",name:\"tokenURI\"}],[\"uint tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint8 v\",{type:\"uint8\",name:\"v\"}],[\"uint256 balance\",{type:\"uint256\",name:\"balance\"}],[\"uint256 tokenId\",{type:\"uint256\",name:\"tokenId\"}],[\"uint256 value\",{type:\"uint256\",name:\"value\"}],[\"event:address indexed from\",{type:\"address\",name:\"from\",indexed:!0}],[\"event:address indexed to\",{type:\"address\",name:\"to\",indexed:!0}],[\"event:uint indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}],[\"event:uint256 indexed tokenId\",{type:\"uint256\",name:\"tokenId\",indexed:!0}]]);function Di(e,t={}){if(function(e){return mi.test(e)}(e))return function(e,t={}){const n=function(e){return di(mi,e)}(e);if(!n)throw new Ui({signature:e,type:\"function\"});const r=Hi(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(Qi(r[e],{modifiers:Ci,structs:t,type:\"function\"}));const s=[];if(n.returns){const e=Hi(n.returns),r=e.length;for(let n=0;n<r;n++)s.push(Qi(e[n],{modifiers:Ci,structs:t,type:\"function\"}))}return{name:n.name,type:\"function\",stateMutability:n.stateMutability??\"nonpayable\",inputs:o,outputs:s}}(e,t);if(function(e){return yi.test(e)}(e))return function(e,t={}){const n=function(e){return di(yi,e)}(e);if(!n)throw new Ui({signature:e,type:\"event\"});const r=Hi(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(Qi(r[e],{modifiers:Ii,structs:t,type:\"event\"}));return{name:n.name,type:\"event\",inputs:o}}(e,t);if(function(e){return gi.test(e)}(e))return function(e,t={}){const n=function(e){return di(gi,e)}(e);if(!n)throw new Ui({signature:e,type:\"error\"});const r=Hi(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(Qi(r[e],{structs:t,type:\"error\"}));return{name:n.name,type:\"error\",inputs:o}}(e,t);if(function(e){return xi.test(e)}(e))return function(e,t={}){const n=function(e){return di(xi,e)}(e);if(!n)throw new Ui({signature:e,type:\"constructor\"});const r=Hi(n.parameters),o=[],i=r.length;for(let e=0;e<i;e++)o.push(Qi(r[e],{structs:t,type:\"constructor\"}));return{type:\"constructor\",stateMutability:n.stateMutability??\"nonpayable\",inputs:o}}(e,t);if(function(e){return Ei.test(e)}(e))return function(e){const t=function(e){return di(Ei,e)}(e);if(!t)throw new Ui({signature:e,type:\"fallback\"});return{type:\"fallback\",stateMutability:t.stateMutability??\"nonpayable\"}}(e);if(function(e){return Bi.test(e)}(e))return{type:\"receive\",stateMutability:\"payable\"};throw new Ri({signature:e})}const _i=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\\spayable)?)(?<array>(?:\\[\\d*?\\])+?)?(?:\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,$i=/^\\((?<type>.+?)\\)(?<array>(?:\\[\\d*?\\])+?)?(?:\\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,Gi=/^u?int$/;function Qi(e,t){const n=function(e,t,n){let r=\"\";if(n)for(const e of Object.entries(n)){if(!e)continue;let t=\"\";for(const n of e[1])t+=`[${n.type}${n.name?`:${n.name}`:\"\"}]`;r+=`(${e[0]}{${t}})`}return t?`${t}:${e}${r}`:`${e}${r}`}(e,t?.type,t?.structs);if(Li.has(n))return Li.get(n);const r=bi.test(e),o=di(r?$i:_i,e);if(!o)throw new Mi({param:e});if(o.name&&function(e){return\"address\"===e||\"bool\"===e||\"function\"===e||\"string\"===e||\"tuple\"===e||hi.test(e)||pi.test(e)||Vi.test(e)}(o.name))throw new Oi({param:e,name:o.name});const i=o.name?{name:o.name}:{},s=\"indexed\"===o.modifier?{indexed:!0}:{},a=t?.structs??{};let c,u={};if(r){c=\"tuple\";const e=Hi(o.type),t=[],n=e.length;for(let r=0;r<n;r++)t.push(Qi(e[r],{structs:a}));u={components:t}}else if(o.type in a)c=\"tuple\",u={components:a[o.type]};else if(Gi.test(o.type))c=`${o.type}256`;else if(\"address payable\"===o.type)c=\"address\";else if(c=o.type,\"struct\"!==t?.type&&!qi(c))throw new li({type:c});if(o.modifier){if(!t?.modifiers?.has?.(o.modifier))throw new Ni({param:e,type:t?.type,modifier:o.modifier});if(Ci.has(o.modifier)&&!function(e,t){return t||\"bytes\"===e||\"string\"===e||\"tuple\"===e}(c,!!o.array))throw new Si({param:e,type:t?.type,modifier:o.modifier})}const f={type:`${c}${o.array??\"\"}`,...i,...s,...u};return Li.set(n,f),f}function Hi(e,t=[],n=\"\",r=0){const o=e.trim().length;for(let i=0;i<o;i++){const o=e[i],s=e.slice(i+1);switch(o){case\",\":return 0===r?Hi(s,[...t,n.trim()]):Hi(s,t,`${n}${o}`,r);case\"(\":return Hi(s,t,`${n}${o}`,r+1);case\")\":return Hi(s,t,`${n}${o}`,r-1);default:return Hi(s,t,`${n}${o}`,r)}}if(\"\"===n)return t;if(0!==r)throw new ji({current:n,depth:r});return t.push(n.trim()),t}function qi(e){return\"address\"===e||\"bool\"===e||\"function\"===e||\"string\"===e||hi.test(e)||pi.test(e)}const Vi=/^(?:after|alias|anonymous|apply|auto|byte|calldata|case|catch|constant|copyof|default|defined|error|event|external|false|final|function|immutable|implements|in|indexed|inline|internal|let|mapping|match|memory|mutable|null|of|override|partial|private|promise|public|pure|reference|relocatable|return|returns|sizeof|static|storage|struct|super|supports|switch|this|true|try|typedef|typeof|var|view|virtual)$/;function Ji(e){const t={},n=e.length;for(let r=0;r<n;r++){const n=e[r];if(!vi(n))continue;const o=Ai(n);if(!o)throw new Ui({signature:n,type:\"struct\"});const i=o.properties.split(\";\"),s=[],a=i.length;for(let e=0;e<a;e++){const t=i[e].trim();if(!t)continue;const n=Qi(t,{type:\"struct\"});s.push(n)}if(!s.length)throw new Fi({signature:n});t[o.name]=s}const r={},o=Object.entries(t),i=o.length;for(let e=0;e<i;e++){const[n,i]=o[e];r[n]=Wi(i,t)}return r}const Ki=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\\[\\d*?\\])+?)?$/;function Wi(e=[],t={},n=new Set){const r=[],o=e.length;for(let i=0;i<o;i++){const o=e[i];if(bi.test(o.type))r.push(o);else{const e=di(Ki,o.type);if(!e?.type)throw new Ti({abiParameter:o});const{array:i,type:s}=e;if(s in t){if(n.has(s))throw new zi({type:s});r.push({...o,type:`tuple${i??\"\"}`,components:Wi(t[s],t,new Set([...n,s]))})}else{if(!qi(s))throw new fi({type:s});r.push(o)}}}return r}function Zi(e){let t;if(\"string\"==typeof e)t=Di(e);else{const n=Ji(e),r=e.length;for(let o=0;o<r;o++){const r=e[o];if(!vi(r)){t=Di(r,n);break}}}if(!t)throw new ui({signature:e});return t}const Yi=/^tuple(?<array>(\\[(\\d*)\\])*)$/;function Xi(e){let t=e.type;if(Yi.test(e.type)&&\"components\"in e){t=\"(\";const n=e.components.length;for(let r=0;r<n;r++){t+=Xi(e.components[r]),r<n-1&&(t+=\", \")}const r=di(Yi,e.type);return t+=`)${r?.array||\"\"}`,Xi({...e,type:t})}return\"indexed\"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function es(e){let t=\"\";const n=e.length;for(let r=0;r<n;r++){t+=Xi(e[r]),r!==n-1&&(t+=\", \")}return t}function ts(e){return\"function\"===e.type?`function ${e.name}(${es(e.inputs)})${e.stateMutability&&\"nonpayable\"!==e.stateMutability?` ${e.stateMutability}`:\"\"}${e.outputs?.length?` returns (${es(e.outputs)})`:\"\"}`:\"event\"===e.type?`event ${e.name}(${es(e.inputs)})`:\"error\"===e.type?`error ${e.name}(${es(e.inputs)})`:\"constructor\"===e.type?`constructor(${es(e.inputs)})${\"payable\"===e.stateMutability?\" payable\":\"\"}`:\"fallback\"===e.type?\"fallback() external\"+(\"payable\"===e.stateMutability?\" payable\":\"\"):\"receive() external payable\"}var ns=n(7521),rs=n(1999);function os(e,t){if(vs(e)>t)throw new ks({givenSize:vs(e),maxSize:t})}const is=48,ss=57,as=65,cs=70,us=97,fs=102;function ls(e){return e>=is&&e<=ss?e-is:e>=as&&e<=cs?e-(as-10):e>=us&&e<=fs?e-(us-10):void 0}function ds(e,t={}){const{dir:n=\"left\"}=t;let r=e,o=0;for(let e=0;e<r.length-1&&\"0\"===r[\"left\"===n?e:r.length-e-1].toString();e++)o++;return r=\"left\"===n?r.slice(o):r.slice(0,r.length-o),r}var hs=n(6475),ps=n(3702);const bs=new TextDecoder,gs=new TextEncoder;function ys(e){return e instanceof Uint8Array?e:\"string\"==typeof e?ms(e):function(e){return e instanceof Uint8Array?e:new Uint8Array(e)}(e)}function ms(e,t={}){const{size:n}=t;let r=e;n&&(hs.Sl(e,n),r=rs.M7(e,n));let o=r.slice(2);o.length%2&&(o=`0${o}`);const i=o.length/2,s=new Uint8Array(i);for(let e=0,t=0;e<i;e++){const n=ls(o.charCodeAt(t++)),r=ls(o.charCodeAt(t++));if(void 0===n||void 0===r)throw new ns.C(`Invalid byte sequence (\"${o[t-2]}${o[t-1]}\" in \"${o}\").`);s[e]=n<<4|r}return s}function ws(e,t={}){const{size:n}=t,r=gs.encode(e);return\"number\"==typeof n?(os(r,n),function(e,t){return function(e,t={}){const{dir:n,size:r=32}=t;if(0===r)return e;if(e.length>r)throw new Os({size:e.length,targetSize:r,type:\"Bytes\"});const o=new Uint8Array(r);for(let t=0;t<r;t++){const i=\"right\"===n;o[i?t:r-t-1]=e[i?t:e.length-t-1]}return o}(e,{dir:\"right\",size:t})}(r,n)):r}function vs(e){return e.length}function As(e,t,n,r={}){const{strict:o}=r;!function(e,t){if(\"number\"==typeof t&&t>0&&t>vs(e)-1)throw new Ms({offset:t,position:\"start\",size:vs(e)})}(e,t);const i=e.slice(t,n);return o&&function(e,t,n){if(\"number\"==typeof t&&\"number\"==typeof n&&vs(e)!==n-t)throw new Ms({offset:n,position:\"end\",size:vs(e)})}(i,t,n),i}function xs(e,t={}){const{size:n}=t;void 0!==n&&os(e,n);const r=rs.uK(e,t);return rs.Dg(r,t)}function Es(e,t={}){const{size:n}=t;let r=e;if(void 0!==n&&(os(r,n),r=Is(r)),r.length>1||r[0]>1)throw new Cs(r);return Boolean(r[0])}function Bs(e,t={}){const{size:n}=t;void 0!==n&&os(e,n);const r=rs.uK(e,t);return rs.Ro(r,t)}function Ps(e,t={}){const{size:n}=t;let r=e;return void 0!==n&&(os(r,n),r=ds(r,{dir:\"right\"})),bs.decode(r)}function Is(e){return ds(e,{dir:\"left\"})}class Cs extends ns.C{constructor(e){super(`Bytes value \\`${e}\\` is not a valid boolean.`,{metaMessages:[\"The bytes array must contain a single byte of either a `0` or `1` value.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.InvalidBytesBooleanError\"})}}ns.C;class ks extends ns.C{constructor({givenSize:e,maxSize:t}){super(`Size cannot exceed \\`${t}\\` bytes. Given size: \\`${e}\\` bytes.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeOverflowError\"})}}class Ms extends ns.C{constructor({offset:e,position:t,size:n}){super(`Slice ${\"start\"===t?\"starting\":\"ending\"} at offset \\`${e}\\` is out-of-bounds (size: \\`${n}\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SliceOffsetOutOfBoundsError\"})}}class Os extends ns.C{constructor({size:e,targetSize:t,type:n}){super(`${n.charAt(0).toUpperCase()}${n.slice(1).toLowerCase()} size (\\`${e}\\`) exceeds padding size (\\`${t}\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Bytes.SizeExceedsPaddingSizeError\"})}}function Ns(e,t={}){const{as:n=(\"string\"==typeof e?\"Hex\":\"Bytes\")}=t,r=(0,Ht.lY)(ys(e));return\"Bytes\"===n?r:rs.uK(r)}class Ss extends Map{constructor(e){super(),Object.defineProperty(this,\"maxSize\",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=e}get(e){const t=super.get(e);return super.has(e)&&void 0!==t&&(this.delete(e),super.set(e,t)),t}set(e,t){if(super.set(e,t),this.maxSize&&this.size>this.maxSize){const e=this.keys().next().value;e&&this.delete(e)}return this}}const Ts={checksum:new Ss(8192)},Us=Ts.checksum;const Rs=/^0x[a-fA-F0-9]{40}$/;function Fs(e,t={}){const{strict:n=!0}=t;if(!Rs.test(e))throw new Ls({address:e,cause:new Ds});if(n){if(e.toLowerCase()===e)return;if(zs(e)!==e)throw new Ls({address:e,cause:new _s})}}function zs(e){if(Us.has(e))return Us.get(e);Fs(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=Ns(ws(t),{as:\"Bytes\"}),r=t.split(\"\");for(let e=0;e<40;e+=2)n[e>>1]>>4>=8&&r[e]&&(r[e]=r[e].toUpperCase()),(15&n[e>>1])>=8&&r[e+1]&&(r[e+1]=r[e+1].toUpperCase());const o=`0x${r.join(\"\")}`;return Us.set(e,o),o}function js(e,t={}){const{strict:n=!0}=t??{};try{return Fs(e,{strict:n}),!0}catch{return!1}}class Ls extends ns.C{constructor({address:e,cause:t}){super(`Address \"${e}\" is invalid.`,{cause:t}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidAddressError\"})}}class Ds extends ns.C{constructor(){super(\"Address is not a 20 byte (40 hexadecimal character) value.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidInputError\"})}}class _s extends ns.C{constructor(){super(\"Address does not match its checksum counterpart.\"),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Address.InvalidChecksumError\"})}}function $s(e){let t=!0,n=\"\",r=0,o=\"\",i=!1;for(let s=0;s<e.length;s++){const a=e[s];if([\"(\",\")\",\",\"].includes(a)&&(t=!0),\"(\"===a&&r++,\")\"===a&&r--,t)if(0!==r)\" \"!==a?(o+=a,n+=a):\",\"!==e[s-1]&&\",\"!==n&&\",(\"!==n&&(n=\"\",t=!1);else if(\" \"===a&&[\"event\",\"function\",\"error\",\"\"].includes(o))o=\"\";else if(o+=a,\")\"===a){i=!0;break}}if(!i)throw new ns.C(\"Unable to normalize signature.\");return o}function Gs(e,t){const n=typeof e,r=t.type;switch(r){case\"address\":return js(e,{strict:!1});case\"bool\":return\"boolean\"===n;case\"function\":case\"string\":return\"string\"===n;default:return\"tuple\"===r&&\"components\"in t?Object.values(t.components).every((t,n)=>Gs(Object.values(e)[n],t)):/^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)?\"number\"===n||\"bigint\"===n:/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?\"string\"===n||e instanceof Uint8Array:!!/[a-z]+[1-9]{0,3}(\\[[0-9]{0,}\\])+$/.test(r)&&(Array.isArray(e)&&e.every(e=>Gs(e,{...t,type:r.replace(/(\\[[0-9]{0,}\\])$/,\"\")})))}}function Qs(e,t,n){for(const r in e){const o=e[r],i=t[r];if(\"tuple\"===o.type&&\"tuple\"===i.type&&\"components\"in o&&\"components\"in i)return Qs(o.components,i.components,n[r]);const s=[o.type,i.type];if((()=>!(!s.includes(\"address\")||!s.includes(\"bytes20\"))||(s.includes(\"address\")&&s.includes(\"string\")||!(!s.includes(\"address\")||!s.includes(\"bytes\")))&&js(n[r],{strict:!1}))())return s}}function Hs(e,t={}){const{prepare:n=!0}=t,r=Array.isArray(e)||\"string\"==typeof e?Zi(e):e;return{...r,...n?{hash:Js(r)}:{}}}function qs(e,t,n){const{args:r=[],prepare:o=!0}=n??{},i=rs.tf(t,{strict:!1}),s=e.filter(e=>i?\"function\"===e.type||\"error\"===e.type?Vs(e)===rs.di(t,0,4):\"event\"===e.type&&Js(e)===t:\"name\"in e&&e.name===t);if(0===s.length)throw new Ws({name:t});if(1===s.length)return{...s[0],...o?{hash:Js(s[0])}:{}};let a;for(const e of s){if(!(\"inputs\"in e))continue;if(!r||0===r.length){if(!e.inputs||0===e.inputs.length)return{...e,...o?{hash:Js(e)}:{}};continue}if(!e.inputs)continue;if(0===e.inputs.length)continue;if(e.inputs.length!==r.length)continue;const t=r.every((t,n)=>{const r=\"inputs\"in e&&e.inputs[n];return!!r&&Gs(t,r)});if(t){if(a&&\"inputs\"in a&&a.inputs){const t=Qs(e.inputs,a.inputs,r);if(t)throw new Ks({abiItem:e,type:t[0]},{abiItem:a,type:t[1]})}a=e}}const c=(()=>{if(a)return a;const[e,...t]=s;return{...e,overloads:t}})();if(!c)throw new Ws({name:t});return{...c,...o?{hash:Js(c)}:{}}}function Vs(...e){const t=(()=>{if(Array.isArray(e[0])){const[t,n]=e;return qs(t,n)}return e[0]})();return rs.di(Js(t),0,4)}function Js(...e){const t=(()=>{if(Array.isArray(e[0])){const[t,n]=e;return qs(t,n)}return e[0]})();return\"string\"!=typeof t&&\"hash\"in t&&t.hash?t.hash:Ns(rs.sH(function(...e){const t=(()=>{if(Array.isArray(e[0])){const[t,n]=e;return qs(t,n)}return e[0]})();return $s(\"string\"==typeof t?t:ts(t))}(t)))}class Ks extends ns.C{constructor(e,t){super(\"Found ambiguous types in overloaded ABI Items.\",{metaMessages:[`\\`${e.type}\\` in \\`${$s(ts(e.abiItem))}\\`, and`,`\\`${t.type}\\` in \\`${$s(ts(t.abiItem))}\\``,\"\",\"These types encode differently and cannot be distinguished at runtime.\",\"Remove one of the ambiguous items in the ABI.\"]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItem.AmbiguityError\"})}}class Ws extends ns.C{constructor({name:e,data:t,type:n=\"item\"}){super(`ABI ${n}${e?` with name \"${e}\"`:t?` with data \"${t}\"`:\"\"} not found.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiItem.NotFoundError\"})}}ns.C;function Zs(e){const t=[];if(\"string\"==typeof e){const n=Hi(e),r=n.length;for(let e=0;e<r;e++)t.push(Qi(n[e],{modifiers:Pi}))}else{const n=Ji(e),r=e.length;for(let o=0;o<r;o++){const r=e[o];if(vi(r))continue;const i=Hi(r),s=i.length;for(let e=0;e<s;e++)t.push(Qi(i[e],{modifiers:Pi,structs:n}))}}if(0===t.length)throw new ki({params:e});return t}const Ys=/^(.*)\\[([0-9]*)\\]$/,Xs=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,ea=/^(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)?$/,ta=2n**256n-1n;function na(e,t,n){const{checksumAddress:r,staticPosition:o}=n,i=aa(t.type);if(i){const[n,s]=i;return function(e,t,n){const{checksumAddress:r,length:o,staticPosition:i}=n;if(!o){const n=i+Bs(e.readBytes(oa)),o=n+ra;e.setPosition(n);const s=Bs(e.readBytes(ra)),a=ca(t);let c=0;const u=[];for(let n=0;n<s;++n){e.setPosition(o+(a?32*n:c));const[i,s]=na(e,t,{checksumAddress:r,staticPosition:o});c+=s,u.push(i)}return e.setPosition(i+32),[u,32]}if(ca(t)){const n=i+Bs(e.readBytes(oa)),s=[];for(let i=0;i<o;++i){e.setPosition(n+32*i);const[o]=na(e,t,{checksumAddress:r,staticPosition:n});s.push(o)}return e.setPosition(i+32),[s,32]}let s=0;const a=[];for(let n=0;n<o;++n){const[n,o]=na(e,t,{checksumAddress:r,staticPosition:i+s});s+=o,a.push(n)}return[a,s]}(e,{...t,type:s},{checksumAddress:r,length:n,staticPosition:o})}if(\"tuple\"===t.type)return function(e,t,n){const{checksumAddress:r,staticPosition:o}=n,i=0===t.components.length||t.components.some(({name:e})=>!e),s=i?[]:{};let a=0;if(ca(t)){const n=o+Bs(e.readBytes(oa));for(let o=0;o<t.components.length;++o){const c=t.components[o];e.setPosition(n+a);const[u,f]=na(e,c,{checksumAddress:r,staticPosition:n});a+=f,s[i?o:c?.name]=u}return e.setPosition(o+32),[s,32]}for(let n=0;n<t.components.length;++n){const c=t.components[n],[u,f]=na(e,c,{checksumAddress:r,staticPosition:o});s[i?n:c?.name]=u,a+=f}return[s,a]}(e,t,{checksumAddress:r,staticPosition:o});if(\"address\"===t.type)return function(e,t={}){const{checksum:n=!1}=t,r=e.readBytes(32),o=e=>n?zs(e):e;return[o(rs.uK(As(r,-20))),32]}(e,{checksum:r});if(\"bool\"===t.type)return function(e){return[Es(e.readBytes(32),{size:32}),32]}(e);if(t.type.startsWith(\"bytes\"))return function(e,t,{staticPosition:n}){const[r,o]=t.type.split(\"bytes\");if(!o){const t=Bs(e.readBytes(32));e.setPosition(n+t);const r=Bs(e.readBytes(32));if(0===r)return e.setPosition(n+32),[\"0x\",32];const o=e.readBytes(r);return e.setPosition(n+32),[rs.uK(o),32]}const i=rs.uK(e.readBytes(Number.parseInt(o,10),32));return[i,32]}(e,t,{staticPosition:o});if(t.type.startsWith(\"uint\")||t.type.startsWith(\"int\"))return function(e,t){const n=t.type.startsWith(\"int\"),r=Number.parseInt(t.type.split(\"int\")[1]||\"256\",10),o=e.readBytes(32);return[r>48?xs(o,{signed:n}):Bs(o,{signed:n}),32]}(e,t);if(\"string\"===t.type)return function(e,{staticPosition:t}){const n=Bs(e.readBytes(32)),r=t+n;e.setPosition(r);const o=Bs(e.readBytes(32));if(0===o)return e.setPosition(t+32),[\"\",32];const i=e.readBytes(o,32),s=Ps(Is(i));return e.setPosition(t+32),[s,32]}(e,{staticPosition:o});throw new Ea(t.type)}const ra=32,oa=32;function ia({checksumAddress:e=!1,parameter:t,value:n}){const r=t,o=aa(r.type);if(o){const[t,i]=o;return function(e,t){const{checksumAddress:n,length:r,parameter:o}=t,i=null===r;if(!Array.isArray(e))throw new xa(e);if(!i&&e.length!==r)throw new wa({expectedLength:r,givenLength:e.length,type:`${o.type}[${r}]`});let s=!1;const a=[];for(let t=0;t<e.length;t++){const r=ia({checksumAddress:n,parameter:o,value:e[t]});r.dynamic&&(s=!0),a.push(r)}if(i||s){const e=sa(a);if(i){const t=rs.oB(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?rs.xW(t,e):t}}if(s)return{dynamic:!0,encoded:e}}return{dynamic:!1,encoded:rs.xW(...a.map(({encoded:e})=>e))}}(n,{checksumAddress:e,length:t,parameter:{...r,type:i}})}if(\"tuple\"===r.type)return function(e,t){const{checksumAddress:n,parameter:r}=t;let o=!1;const i=[];for(let t=0;t<r.components.length;t++){const s=r.components[t],a=ia({checksumAddress:n,parameter:s,value:e[Array.isArray(e)?t:s.name]});i.push(a),a.dynamic&&(o=!0)}return{dynamic:o,encoded:o?sa(i):rs.xW(...i.map(({encoded:e})=>e))}}(n,{checksumAddress:e,parameter:r});if(\"address\"===r.type)return function(e,t){const{checksum:n=!1}=t;return Fs(e,{strict:n}),{dynamic:!1,encoded:rs.Ho(e.toLowerCase())}}(n,{checksum:e});if(\"bool\"===r.type)return function(e){if(\"boolean\"!=typeof e)throw new ns.C(`Invalid boolean value: \"${e}\" (type: ${typeof e}). Expected: \\`true\\` or \\`false\\`.`);return{dynamic:!1,encoded:rs.Ho(rs.xb(e))}}(n);if(r.type.startsWith(\"uint\")||r.type.startsWith(\"int\")){const e=r.type.startsWith(\"int\"),[,,t=\"256\"]=ea.exec(r.type)??[];return function(e,{signed:t,size:n}){if(\"number\"==typeof n){const r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new rs.Ty({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:rs.oB(e,{size:32,signed:t})}}(n,{signed:e,size:Number(t)})}if(r.type.startsWith(\"bytes\"))return function(e,{type:t}){const[,n]=t.split(\"bytes\"),r=rs.Ej(e);if(!n){let t=e;return r%32!=0&&(t=rs.M7(t,32*Math.ceil((e.length-2)/2/32))),{dynamic:!0,encoded:rs.xW(rs.Ho(rs.oB(r,{size:32})),t)}}if(r!==Number.parseInt(n,10))throw new va({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:rs.M7(e)}}(n,{type:r.type});if(\"string\"===r.type)return function(e){const t=rs.sH(e),n=Math.ceil(rs.Ej(t)/32),r=[];for(let e=0;e<n;e++)r.push(rs.M7(rs.di(t,32*e,32*(e+1))));return{dynamic:!0,encoded:rs.xW(rs.M7(rs.oB(rs.Ej(t),{size:32})),...r)}}(n);throw new Ea(r.type)}function sa(e){let t=0;for(let n=0;n<e.length;n++){const{dynamic:r,encoded:o}=e[n];t+=r?32:rs.Ej(o)}const n=[],r=[];let o=0;for(let i=0;i<e.length;i++){const{dynamic:s,encoded:a}=e[i];s?(n.push(rs.oB(t+o,{size:32})),r.push(a),o+=rs.Ej(a)):n.push(a)}return rs.xW(...n,...r)}function aa(e){const t=e.match(/^(.*)\\[(\\d+)?\\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function ca(e){const{type:t}=e;if(\"string\"===t)return!0;if(\"bytes\"===t)return!0;if(t.endsWith(\"[]\"))return!0;if(\"tuple\"===t)return e.components?.some(ca);const n=aa(e.type);return!(!n||!ca({...e,type:n[1]}))}const ua={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new da({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new la({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new fa({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new fa({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,255&e),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};class fa extends ns.C{constructor({offset:e}){super(`Offset \\`${e}\\` cannot be negative.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.NegativeOffsetError\"})}}class la extends ns.C{constructor({length:e,position:t}){super(`Position \\`${t}\\` is out of bounds (\\`0 < position < ${e}\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.PositionOutOfBoundsError\"})}}class da extends ns.C{constructor({count:e,limit:t}){super(`Recursive read limit of \\`${t}\\` exceeded (recursive read count: \\`${e}\\`).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Cursor.RecursiveReadLimitExceededError\"})}}function ha(e,t,n={}){const{as:r=\"Array\",checksumAddress:o=!1}=n,i=\"string\"==typeof t?ms(t):t,s=function(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(ua);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}(i);if(0===vs(i)&&e.length>0)throw new ma;if(vs(i)&&vs(i)<32)throw new ya({data:\"string\"==typeof t?t:rs.uK(t),parameters:e,size:vs(i)});let a=0;const c=\"Array\"===r?[]:{};for(let t=0;t<e.length;++t){const n=e[t];s.setPosition(a);const[i,u]=na(s,n,{checksumAddress:o,staticPosition:0});a+=u,\"Array\"===r?c.push(i):c[n.name??t]=i}return c}function pa(e,t,n){const{checksumAddress:r=!1}=n??{};if(e.length!==t.length)throw new Aa({expectedLength:e.length,givenLength:t.length});const o=function({checksumAddress:e,parameters:t,values:n}){const r=[];for(let o=0;o<t.length;o++)r.push(ia({checksumAddress:e,parameter:t[o],value:n[o]}));return r}({checksumAddress:r,parameters:e,values:t}),i=sa(o);return 0===i.length?\"0x\":i}function ba(e,t){if(e.length!==t.length)throw new Aa({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;r<e.length;r++){const o=e[r],i=t[r];n.push(ba.encode(o,i))}return rs.xW(...n)}function ga(e){return Array.isArray(e)&&\"string\"==typeof e[0]||\"string\"==typeof e?Zs(e):e}!function(e){e.encode=function e(t,n,r=!1){if(\"address\"===t){const e=n;return Fs(e),rs.Ho(e.toLowerCase(),r?32:0)}if(\"string\"===t)return rs.sH(n);if(\"bytes\"===t)return n;if(\"bool\"===t)return rs.Ho(rs.xb(n),r?32:1);const o=t.match(ea);if(o){const[e,t,i=\"256\"]=o,s=Number.parseInt(i,10)/8;return rs.oB(n,{size:r?32:s,signed:\"int\"===t})}const i=t.match(Xs);if(i){const[e,t]=i;if(Number.parseInt(t,10)!==(n.length-2)/2)throw new va({expectedSize:Number.parseInt(t,10),value:n});return rs.M7(n,r?32:0)}const s=t.match(Ys);if(s&&Array.isArray(n)){const[t,r]=s,o=[];for(let t=0;t<n.length;t++)o.push(e(r,n[t],!0));return 0===o.length?\"0x\":rs.xW(...o)}throw new Ea(t)}}(ba||(ba={}));class ya extends ns.C{constructor({data:e,parameters:t,size:n}){super(`Data size of ${n} bytes is too small for given parameters.`,{metaMessages:[`Params: (${es(t)})`,`Data:   ${e} (${n} bytes)`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.DataSizeTooSmallError\"})}}class ma extends ns.C{constructor(){super('Cannot decode zero data (\"0x\") with ABI parameters.'),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.ZeroDataError\"})}}class wa extends ns.C{constructor({expectedLength:e,givenLength:t,type:n}){super(`Array length mismatch for type \\`${n}\\`. Expected: \\`${e}\\`. Given: \\`${t}\\`.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.ArrayLengthMismatchError\"})}}class va extends ns.C{constructor({expectedSize:e,value:t}){super(`Size of bytes \"${t}\" (bytes${rs.Ej(t)}) does not match expected size (bytes${e}).`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.BytesSizeMismatchError\"})}}class Aa extends ns.C{constructor({expectedLength:e,givenLength:t}){super([\"ABI encoding parameters/values length mismatch.\",`Expected length (parameters): ${e}`,`Given length (values): ${t}`].join(\"\\n\")),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.LengthMismatchError\"})}}class xa extends ns.C{constructor(e){super(`Value \\`${e}\\` is not a valid array.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidArrayError\"})}}class Ea extends ns.C{constructor(e){super(`Type \\`${e}\\` is not a valid ABI Type.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"AbiParameters.InvalidTypeError\"})}}function Ba(e){const t=e.find(e=>\"constructor\"===e.type);if(!t)throw new Ws({name:\"constructor\"});return t}function Pa(...e){const[t,n=[]]=(()=>{if(Array.isArray(e[0])){const[t,n,r]=e;return[Ca(t,n,{args:r}),r]}const[t,n]=e;return[t,n]})(),{overloads:r}=t,o=r?Ca([t,...r],t.name,{args:n}):t,i=Vs(o);const s=n.length>0?pa(o.inputs,n):void 0;return s?rs.xW(i,s):i}function Ia(e,t={}){return Hs(e,t)}function Ca(e,t,n){const r=qs(e,t,n);if(\"function\"!==r.type)throw new Ws({name:t,type:\"function\"});return r}const ka=\"0x0000000000000000000000000000000000000000\";async function Ma(e,t){const{blockNumber:n,blockTag:r,calls:o,stateOverrides:i,traceAssetChanges:s,traceTransfers:a,validation:c}=t,u=t.account?(0,un.J)(t.account):void 0;if(s&&!u)throw new I.C(\"`account` is required when `traceAssetChanges` is true\");const f=u?function(...e){const[t,n]=(()=>{if(Array.isArray(e[0])){const[t,n]=e;return[Ba(t),n]}return e})(),{bytecode:r,args:o}=n;return rs.xW(r,t.inputs?.length&&o?.length?pa(t.inputs,o):\"0x\")}(Hs(\"constructor(bytes, bytes)\"),{bytecode:ii.LX,args:[\"0x6080604052348015600e575f80fd5b5061016d8061001c5f395ff3fe608060405234801561000f575f80fd5b5060043610610029575f3560e01c8063f8b2cb4f1461002d575b5f80fd5b610047600480360381019061004291906100db565b61005d565b604051610054919061011e565b60405180910390f35b5f8173ffffffffffffffffffffffffffffffffffffffff16319050919050565b5f80fd5b5f73ffffffffffffffffffffffffffffffffffffffff82169050919050565b5f6100aa82610081565b9050919050565b6100ba816100a0565b81146100c4575f80fd5b50565b5f813590506100d5816100b1565b92915050565b5f602082840312156100f0576100ef61007d565b5b5f6100fd848285016100c7565b91505092915050565b5f819050919050565b61011881610106565b82525050565b5f6020820190506101315f83018461010f565b9291505056fea26469706673582212203b9fe929fe995c7cf9887f0bdba8a36dd78e8b73f149b17d2d9ad7cd09d2dc6264736f6c634300081a0033\",Pa(Ia(\"function getBalance(address)\"),[u.address])]}):void 0;const l=s?await Promise.all(t.calls.map(async t=>{if(!t.data&&!t.abi)return;const{accessList:n}=await Cr(e,{account:u.address,...t,data:t.abi?(0,bn.p)(t):t.data});return n.map(({address:e,storageKeys:t})=>t.length>0?e:null)})).then(e=>e.flat().filter(Boolean)):[],d=await ai(e,{blockNumber:n,blockTag:r,blocks:[...s?[{calls:[{data:f}],stateOverrides:i},{calls:l.map((e,t)=>({abi:[Ia(\"function balanceOf(address) returns (uint256)\")],functionName:\"balanceOf\",args:[u.address],to:e,from:ka,nonce:t})),stateOverrides:[{address:ka,nonce:0}]}]:[],{calls:[...o,{to:ka}].map(e=>({...e,from:u?.address})),stateOverrides:i},...s?[{calls:[{data:f}]},{calls:l.map((e,t)=>({abi:[Ia(\"function balanceOf(address) returns (uint256)\")],functionName:\"balanceOf\",args:[u.address],to:e,from:ka,nonce:t})),stateOverrides:[{address:ka,nonce:0}]},{calls:l.map((e,t)=>({to:e,abi:[Ia(\"function decimals() returns (uint256)\")],functionName:\"decimals\",from:ka,nonce:t})),stateOverrides:[{address:ka,nonce:0}]},{calls:l.map((e,t)=>({to:e,abi:[Ia(\"function tokenURI(uint256) returns (string)\")],functionName:\"tokenURI\",args:[0n],from:ka,nonce:t})),stateOverrides:[{address:ka,nonce:0}]},{calls:l.map((e,t)=>({to:e,abi:[Ia(\"function symbol() returns (string)\")],functionName:\"symbol\",from:ka,nonce:t})),stateOverrides:[{address:ka,nonce:0}]}]:[]],traceTransfers:a,validation:c}),h=s?d[2]:d[0],[p,b,,g,y,m,w,v]=s?d:[],{calls:A,...x}=h,E=A.slice(0,-1)??[],B=[...p?.calls??[],...b?.calls??[]].map(e=>\"success\"===e.status?(0,_r.uU)(e.data):null),P=[...g?.calls??[],...y?.calls??[]].map(e=>\"success\"===e.status?(0,_r.uU)(e.data):null),C=(m?.calls??[]).map(e=>\"success\"===e.status?e.result:null),k=(v?.calls??[]).map(e=>\"success\"===e.status?e.result:null),M=(w?.calls??[]).map(e=>\"success\"===e.status?e.result:null),O=[];for(const[e,t]of P.entries()){const n=B[e];if(\"bigint\"!=typeof t)continue;if(\"bigint\"!=typeof n)continue;const r=C[e-1],o=k[e-1],i=M[e-1],s=(()=>0===e?{address:\"0xeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee\",decimals:18,symbol:\"ETH\"}:{address:l[e-1],decimals:i||r?Number(r??1):void 0,symbol:o??void 0})();O.some(e=>e.token.address===s.address)||O.push({token:s,value:{pre:n,post:t,diff:t-n}})}return{assetChanges:O,block:x,results:E}}async function Oa(e,{filter:t}){return t.request({method:\"eth_uninstallFilter\",params:[t.id]})}const Na=\"0x6492649264926492649264926492649264926492649264926492649264926492\";function Sa(e){if(rs.di(e,-32)!==Na)throw new Ta(e)}class Ta extends ns.C{constructor(e){super(`Value \\`${e}\\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureErc6492.InvalidWrappedSignatureError\"})}}function Ua(e,t={}){const{recovered:n}=t;if(void 0===e.r)throw new La({signature:e});if(void 0===e.s)throw new La({signature:e});if(n&&void 0===e.yParity)throw new La({signature:e});if(e.r<0n||e.r>ta)throw new Da({value:e.r});if(e.s<0n||e.s>ta)throw new _a({value:e.s});if(\"number\"==typeof e.yParity&&0!==e.yParity&&1!==e.yParity)throw new $a({value:e.yParity})}function Ra(e){if(130!==e.length&&132!==e.length)throw new ja({signature:e});const t=BigInt(rs.di(e,0,32)),n=BigInt(rs.di(e,32,64)),r=(()=>{const t=Number(`0x${e.slice(130)}`);if(!Number.isNaN(t))try{return za(t)}catch{throw new $a({value:t})}})();return void 0===r?{r:t,s:n}:{r:t,s:n,yParity:r}}function Fa(e){const t=\"string\"==typeof e?Ra(e):e instanceof Uint8Array?function(e){return Ra(rs.uK(e))}(e):\"string\"==typeof e.r?function(e){const t=(()=>{const t=e.v?Number(e.v):void 0;let n=e.yParity?Number(e.yParity):void 0;if(\"number\"==typeof t&&\"number\"!=typeof n&&(n=za(t)),\"number\"!=typeof n)throw new $a({value:e.yParity});return n})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}(e):e.v?function(e){return{r:e.r,s:e.s,yParity:za(e.v)}}(e):{r:e.r,s:e.s,...void 0!==e.yParity?{yParity:e.yParity}:{}};return Ua(t),t}function za(e){if(0===e||27===e)return 0;if(1===e||28===e)return 1;if(e>=35)return e%2==0?1:0;throw new Ga({value:e})}class ja extends ns.C{constructor({signature:e}){super(`Value \\`${e}\\` is an invalid signature size.`,{metaMessages:[\"Expected: 64 bytes or 65 bytes.\",`Received ${rs.Ej(rs.HT(e))} bytes.`]}),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSerializedSizeError\"})}}class La extends ns.C{constructor({signature:e}){super(`Signature \\`${ps.As(e)}\\` is missing either an \\`r\\`, \\`s\\`, or \\`yParity\\` property.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.MissingPropertiesError\"})}}class Da extends ns.C{constructor({value:e}){super(`Value \\`${e}\\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidRError\"})}}class _a extends ns.C{constructor({value:e}){super(`Value \\`${e}\\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidSError\"})}}class $a extends ns.C{constructor({value:e}){super(`Value \\`${e}\\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidYParityError\"})}}class Ga extends ns.C{constructor({value:e}){super(`Value \\`${e}\\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"Signature.InvalidVError\"})}}function Qa(e,t={}){return\"string\"==typeof e.chainId?Ha(e):{...e,...t.signature}}function Ha(e){const{address:t,chainId:n,nonce:r}=e,o=function(e){if(void 0!==e.r&&void 0!==e.s)return Fa(e)}(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...o}}const qa=\"0x8010801080108010801080108010801080108010801080108010801080108010\",Va=ga(\"(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data\");function Ja(e){if(\"string\"==typeof e){if(rs.di(e,-32)!==qa)throw new Wa(e)}else Ua(e.authorization)}function Ka(e){Ja(e);const t=rs.Ro(rs.di(e,-64,-32)),n=rs.di(e,-t-64,-64),r=rs.di(e,0,-t-64),[o,i,s]=ha(Va,n);return{authorization:Qa({address:o.delegation,chainId:Number(o.chainId),nonce:o.nonce,yParity:o.yParity,r:o.r,s:o.s}),signature:r,...s&&\"0x\"!==s?{data:s,to:i}:{}}}class Wa extends ns.C{constructor(e){super(`Value \\`${e}\\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,\"name\",{enumerable:!0,configurable:!0,writable:!0,value:\"SignatureErc8010.InvalidWrappedSignatureError\"})}}var Za=n(5842);var Ya=n(6799);async function Xa(e,t){const{address:n,chain:r=e.chain,hash:o,erc6492VerifierAddress:i=t.universalSignatureVerifierAddress??r?.contracts?.erc6492Verifier?.address,multicallAddress:s=t.multicallAddress??r?.contracts?.multicall3?.address,mode:a=\"auto\"}=t;if(r?.verifyHash)return await r.verifyHash(e,t);const c=(()=>{const e=t.signature;return(0,Pn.q)(e)?e:\"object\"==typeof e&&\"r\"in e&&\"s\"in e?function({r:e,s:t,to:n=\"hex\",v:r,yParity:o}){const i=(()=>{if(0===o||1===o)return o;if(r&&(27n===r||28n===r||r>=35n))return r%2n==0n?1:0;throw new Error(\"Invalid `v` or `yParity` value\")})(),s=`0x${new Ya.secp256k1.Signature((0,_r.uU)(e),(0,_r.uU)(t)).toCompactHex()}${0===i?\"1b\":\"1c\"}`;return\"hex\"===n?s:(0,En.aT)(s)}(e):(0,mn.My)(e)})();try{if(\"eoa\"===a)try{if((0,Lo.h)((0,T.b)(n),await Gr({hash:o,signature:c})))return!0}catch{}return function(e){try{return Ja(e),!0}catch{return!1}}(c)?await async function(e,t){const{address:n,blockNumber:r,blockTag:o,hash:i,multicallAddress:s}=t,{authorization:a,data:c,signature:u,to:f}=Ka(t.signature),l=await jo(e,{address:n,blockNumber:r,blockTag:o});if(l===(0,xn.aP)([\"0xef0100\",a.address]))return await async function(e,t){const{address:n,blockNumber:r,blockTag:o,hash:i,signature:s}=t,a=await Nn(e,dr,\"readContract\")({address:n,abi:hn.UW,args:[i,s],blockNumber:r,blockTag:o,functionName:\"isValidSignature\"}).catch(e=>{if(e instanceof wn.bG)throw new ec;throw e});if(a.startsWith(\"0x1626ba7e\"))return!0;throw new ec}(e,{address:n,blockNumber:r,blockTag:o,hash:i,signature:u});const d={address:a.address,chainId:Number(a.chainId),nonce:Number(a.nonce),r:(0,mn.cK)(a.r,{size:32}),s:(0,mn.cK)(a.s,{size:32}),yParity:a.yParity},h=await async function({address:e,authorization:t,signature:n}){return(0,Lo.h)((0,T.b)(e),await Kr({authorization:t,signature:n}))}({address:n,authorization:d});if(!h)throw new ec;const p=await Nn(e,dr,\"readContract\")({...s?{address:s}:{code:ii.Ez},authorizationList:[d],abi:hn.v2,blockNumber:r,blockTag:\"pending\",functionName:\"aggregate3\",args:[[...c?[{allowFailure:!0,target:f??n,callData:c}]:[],{allowFailure:!0,target:n,callData:(0,bn.p)({abi:hn.UW,functionName:\"isValidSignature\",args:[i,u]})}]]}),b=p[p.length-1]?.returnData;if(b?.startsWith(\"0x1626ba7e\"))return!0;throw new ec}(e,{...t,multicallAddress:s,signature:c}):await async function(e,t){const{address:n,factory:r,factoryData:o,hash:i,signature:s,verifierAddress:a,...c}=t,u=await(async()=>r||o?function(e){try{return Sa(e),!0}catch{return!1}}(s)?s:function(e){const{data:t,signature:n,to:r}=e;return rs.xW(pa(ga(\"address, bytes, bytes\"),[r,t,n]),Na)}({data:o,signature:s,to:r}):s)(),f=a?{to:a,data:(0,bn.p)({abi:hn.E5,functionName:\"isValidSig\",args:[n,i,u]}),...c}:{data:(0,Za.m)({abi:hn.E5,args:[n,i,u],bytecode:ii.fT}),...c},{data:l}=await Nn(e,lr.T,\"call\")(f).catch(e=>{if(e instanceof wn.zX)throw new ec;throw e});if((0,_r.Nx)(l??\"0x0\"))return!0;throw new ec}(e,{...t,verifierAddress:i,signature:c})}catch(e){if(\"eoa\"!==a)try{if((0,Lo.h)((0,T.b)(n),await Gr({hash:o,signature:c})))return!0}catch{}if(e instanceof ec)return!1;throw e}}class ec extends Error{}function tc(e,t){return(0,Bn.S)(function(e){const t=\"string\"==typeof e?(0,mn.i3)(e):\"string\"==typeof e.raw?e.raw:(0,mn.My)(e.raw),n=(0,mn.i3)(`\u0019Ethereum Signed Message:\\n${(0,Dr.E)(t)}`);return(0,xn.xW)([n,t])}(e),t)}var nc=n(4306),rc=n(8463);class oc extends I.C{constructor({domain:e}){super(`Invalid domain \"${(0,rc.A)(e)}\".`,{metaMessages:[\"Must be a valid EIP-712 domain.\"]})}}class ic extends I.C{constructor({primaryType:e,types:t}){super(`Invalid primary type \\`${e}\\` must be one of \\`${JSON.stringify(Object.keys(t))}\\`.`,{docsPath:\"/api/glossary/Errors#typeddatainvalidprimarytypeerror\",metaMessages:[\"Check that the primary type is a key in `types`.\"]})}}class sc extends I.C{constructor({type:e}){super(`Struct type \"${e}\" is invalid.`,{metaMessages:[\"Struct type must not be a Solidity type.\"],name:\"InvalidStructTypeError\"})}}var ac=n(9873),cc=n(8213);function uc({domain:e}){return[\"string\"==typeof e?.name&&{name:\"name\",type:\"string\"},e?.version&&{name:\"version\",type:\"string\"},(\"number\"==typeof e?.chainId||\"bigint\"==typeof e?.chainId)&&{name:\"chainId\",type:\"uint256\"},e?.verifyingContract&&{name:\"verifyingContract\",type:\"address\"},e?.salt&&{name:\"salt\",type:\"bytes32\"}].filter(Boolean)}function fc(e){if(\"address\"===e||\"bool\"===e||\"string\"===e||e.startsWith(\"bytes\")||e.startsWith(\"uint\")||e.startsWith(\"int\"))throw new sc({type:e})}function lc(e){const{domain:t={},message:n,primaryType:r}=e,o={EIP712Domain:uc({domain:t}),...e.types};!function(e){const{domain:t,message:n,primaryType:r,types:o}=e,i=(e,t)=>{for(const n of e){const{name:e,type:r}=n,s=t[e],a=r.match(cc.Ge);if(a&&(\"number\"==typeof s||\"bigint\"==typeof s)){const[e,t,n]=a;(0,mn.cK)(s,{signed:\"int\"===t,size:Number.parseInt(n,10)/8})}if(\"address\"===r&&\"string\"==typeof s&&!(0,ac.P)(s))throw new nc.M({address:s});const c=r.match(cc.BD);if(c){const[e,t]=c;if(t&&(0,Dr.E)(s)!==Number.parseInt(t,10))throw new Sn.BI({expectedSize:Number.parseInt(t,10),givenSize:(0,Dr.E)(s)})}const u=o[r];u&&(fc(r),i(u,s))}};if(o.EIP712Domain&&t){if(\"object\"!=typeof t)throw new oc({domain:t});i(o.EIP712Domain,t)}if(\"EIP712Domain\"!==r){if(!o[r])throw new ic({primaryType:r,types:o});i(o[r],n)}}({domain:t,message:n,primaryType:r,types:o});const i=[\"0x1901\"];return t&&i.push(function({domain:e,types:t}){return dc({data:e,primaryType:\"EIP712Domain\",types:t})}({domain:t,types:o})),\"EIP712Domain\"!==r&&i.push(dc({data:n,primaryType:r,types:o})),(0,Bn.S)((0,xn.xW)(i))}function dc({data:e,primaryType:t,types:n}){const r=hc({data:e,primaryType:t,types:n});return(0,Bn.S)(r)}function hc({data:e,primaryType:t,types:n}){const r=[{type:\"bytes32\"}],o=[pc({primaryType:t,types:n})];for(const i of n[t]){const[t,s]=gc({types:n,name:i.name,type:i.type,value:e[i.name]});r.push(t),o.push(s)}return(0,Nr.h)(r,o)}function pc({primaryType:e,types:t}){const n=(0,mn.nj)(function({primaryType:e,types:t}){let n=\"\";const r=bc({primaryType:e,types:t});r.delete(e);const o=[e,...Array.from(r).sort()];for(const e of o)n+=`${e}(${t[e].map(({name:e,type:t})=>`${t} ${e}`).join(\",\")})`;return n}({primaryType:e,types:t}));return(0,Bn.S)(n)}function bc({primaryType:e,types:t},n=new Set){const r=e.match(/^\\w*/u),o=r?.[0];if(n.has(o)||void 0===t[o])return n;n.add(o);for(const e of t[o])bc({primaryType:e.type,types:t},n);return n}function gc({types:e,name:t,type:n,value:r}){if(void 0!==e[n])return[{type:\"bytes32\"},(0,Bn.S)(hc({data:r,primaryType:n,types:e}))];if(\"bytes\"===n)return[{type:\"bytes32\"},(0,Bn.S)(r)];if(\"string\"===n)return[{type:\"bytes32\"},(0,Bn.S)((0,mn.nj)(r))];if(n.lastIndexOf(\"]\")===n.length-1){const o=n.slice(0,n.lastIndexOf(\"[\")),i=r.map(n=>gc({name:t,type:o,types:e,value:n}));return[{type:\"bytes32\"},(0,Bn.S)((0,Nr.h)(i.map(([e])=>e),i.map(([,e])=>e)))]}return[{type:n},r]}const yc=new Map,mc=new Map;let wc=0;function vc(e,t,n){const r=++wc,o=()=>yc.get(e)||[],i=()=>{const t=o();if(!t.some(e=>e.id===r))return;const n=mc.get(e);if(1===t.length&&n){const e=n();e instanceof Promise&&e.catch(()=>{})}(()=>{const t=o();yc.set(e,t.filter(e=>e.id!==r))})()},s=o();if(yc.set(e,[...s,{id:r,fns:t}]),s&&s.length>0)return i;const a={};for(const e in t)a[e]=(...t)=>{const n=o();if(0!==n.length)for(const r of n)r.fns[e]?.(...t)};const c=n(a);return\"function\"==typeof c&&mc.set(e,c),i}var Ac=n(9091);async function xc(e){return new Promise(t=>setTimeout(t,e))}function Ec(e,{delay:t=100,retryCount:n=2,shouldRetry:r=()=>!0}={}){return new Promise((o,i)=>{const s=async({count:a=0}={})=>{try{const t=await e();o(t)}catch(e){if(a<n&&await r({count:a,error:e}))return(async({error:e})=>{const n=\"function\"==typeof t?t({count:a,error:e}):t;n&&await xc(n),s({count:a+1})})({error:e});i(e)}};s()})}function Bc(e,{emitOnBegin:t,initialWaitTime:n,interval:r}){let o=!0;const i=()=>o=!1;return(async()=>{let s;t&&(s=await e({unpoll:i}));const a=await(n?.(s))??r;await xc(a);const c=async()=>{o&&(await e({unpoll:i}),await xc(r),c())};c()})(),i}function Pc(e,{emitOnBegin:t=!1,emitMissed:n=!1,onBlockNumber:r,onError:o,poll:i,pollingInterval:s=e.pollingInterval}){let a;return(void 0!==i?i:\"webSocket\"!==e.transport.type&&\"ipc\"!==e.transport.type&&(\"fallback\"!==e.transport.type||\"webSocket\"!==e.transport.transports[0].config.type&&\"ipc\"!==e.transport.transports[0].config.type))?vc((0,rc.A)([\"watchBlockNumber\",e.uid,t,n,s]),{onBlockNumber:r,onError:o},r=>Bc(async()=>{try{const t=await Nn(e,zo,\"getBlockNumber\")({cacheTime:0});if(void 0!==a){if(t===a)return;if(t-a>1&&n)for(let e=a+1n;e<t;e++)r.onBlockNumber(e,a),a=e}(void 0===a||t>a)&&(r.onBlockNumber(t,a),a=t)}catch(e){r.onError?.(e)}},{emitOnBegin:t,interval:s})):vc((0,rc.A)([\"watchBlockNumber\",e.uid,t,n]),{onBlockNumber:r,onError:o},t=>{let n=!0,r=()=>n=!1;return(async()=>{try{const o=(()=>{if(\"fallback\"===e.transport.type){const t=e.transport.transports.find(e=>\"webSocket\"===e.config.type||\"ipc\"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:i}=await o.subscribe({params:[\"newHeads\"],onData(e){if(!n)return;const r=(0,_r.uU)(e.result?.number);t.onBlockNumber(r,a),a=r},onError(e){t.onError?.(e)}});r=i,n||r()}catch(e){o?.(e)}})(),()=>r()})}const Ic=/^(?:(?<scheme>[a-zA-Z][a-zA-Z0-9+-.]*):\\/\\/)?(?<domain>[a-zA-Z0-9+-.]*(?::[0-9]{1,5})?) (?:wants you to sign in with your Ethereum account:\\n)(?<address>0x[a-fA-F0-9]{40})\\n\\n(?:(?<statement>.*)\\n\\n)?/,Cc=/(?:URI: (?<uri>.+))\\n(?:Version: (?<version>.+))\\n(?:Chain ID: (?<chainId>\\d+))\\n(?:Nonce: (?<nonce>[a-zA-Z0-9]+))\\n(?:Issued At: (?<issuedAt>.+))(?:\\nExpiration Time: (?<expirationTime>.+))?(?:\\nNot Before: (?<notBefore>.+))?(?:\\nRequest ID: (?<requestId>.+))?/;async function kc(e,t){const{address:n,domain:r,message:o,nonce:i,scheme:s,signature:a,time:c=new Date,...u}=t,f=function(e){const{scheme:t,statement:n,...r}=e.match(Ic)?.groups??{},{chainId:o,expirationTime:i,issuedAt:s,notBefore:a,requestId:c,...u}=e.match(Cc)?.groups??{},f=e.split(\"Resources:\")[1]?.split(\"\\n- \").slice(1);return{...r,...u,...o?{chainId:Number(o)}:{},...i?{expirationTime:new Date(i)}:{},...s?{issuedAt:new Date(s)}:{},...a?{notBefore:new Date(a)}:{},...c?{requestId:c}:{},...f?{resources:f}:{},...t?{scheme:t}:{},...n?{statement:n}:{}}}(o);if(!f.address)return!1;const l=function(e){const{address:t,domain:n,message:r,nonce:o,scheme:i,time:s=new Date}=e;if(n&&r.domain!==n)return!1;if(o&&r.nonce!==o)return!1;if(i&&r.scheme!==i)return!1;if(r.expirationTime&&s>=r.expirationTime)return!1;if(r.notBefore&&s<r.notBefore)return!1;try{if(!r.address)return!1;if(!(0,ac.P)(r.address,{strict:!1}))return!1;if(t&&!(0,Lo.h)(r.address,t))return!1}catch{return!1}return!0}({address:n,domain:r,message:f,nonce:i,scheme:s,time:c});if(!l)return!1;const d=tc(o);return Xa(e,{address:f.address,hash:d,signature:a,...u})}function Mc(e){return{call:t=>(0,lr.T)(e,t),createAccessList:t=>Cr(e,t),createBlockFilter:()=>async function(e){const t=kr(e,{method:\"eth_newBlockFilter\"}),n=await e.request({method:\"eth_newBlockFilter\"});return{id:n,request:t(n),type:\"block\"}}(e),createContractEventFilter:t=>zr(e,t),createEventFilter:t=>jr(e,t),createPendingTransactionFilter:()=>Lr(e),estimateContractGas:t=>async function(e,t){const{abi:n,address:r,args:o,functionName:i,dataSuffix:s=(\"string\"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value),...a}=t,c=(0,bn.p)({abi:n,args:o,functionName:i});try{return await Nn(e,So,\"estimateGas\")({data:`${c}${s?s.replace(\"0x\",\"\"):\"\"}`,to:r,...a})}catch(e){const t=a.account?(0,un.J)(a.account):void 0;throw fr(e,{abi:n,address:r,args:o,docsPath:\"/docs/contract/estimateContractGas\",functionName:i,sender:t?.address})}}(e,t),estimateGas:t=>So(e,t),getBalance:t=>async function(e,{address:t,blockNumber:n,blockTag:r=e.experimental_blockTag??\"latest\"}){if(e.batch?.multicall&&e.chain?.contracts?.multicall3){const o=e.chain.contracts.multicall3.address,i=(0,bn.p)({abi:hn.v2,functionName:\"getEthBalance\",args:[t]}),{data:s}=await Nn(e,lr.T,\"call\")({to:o,data:i,blockNumber:n,blockTag:r});return(0,pn.e)({abi:hn.v2,functionName:\"getEthBalance\",args:[t],data:s||\"0x\"})}const o=\"bigint\"==typeof n?(0,mn.cK)(n):void 0,i=await e.request({method:\"eth_getBalance\",params:[t,o||r]});return BigInt(i)}(e,t),getBlobBaseFee:()=>async function(e){const t=await e.request({method:\"eth_blobBaseFee\"});return BigInt(t)}(e),getBlock:t=>fo(e,t),getBlockNumber:t=>zo(e,t),getBlockTransactionCount:t=>async function(e,{blockHash:t,blockNumber:n,blockTag:r=\"latest\"}={}){const o=void 0!==n?(0,mn.cK)(n):void 0;let i;return i=t?await e.request({method:\"eth_getBlockTransactionCountByHash\",params:[t]},{dedupe:!0}):await e.request({method:\"eth_getBlockTransactionCountByNumber\",params:[o||r]},{dedupe:Boolean(o)}),(0,_r.ME)(i)}(e,t),getBytecode:t=>jo(e,t),getChainId:()=>Io(e),getCode:t=>jo(e,t),getContractEvents:t=>Jo(e,t),getDelegation:t=>async function(e,{address:t,blockNumber:n,blockTag:r=\"latest\"}){const o=await jo(e,{address:t,...void 0!==n?{blockNumber:n}:{blockTag:r}});if(o&&23===(0,Dr.E)(o)&&o.startsWith(\"0xef0100\"))return(0,T.b)((0,Ko.di)(o,3,23))}(e,t),getEip712Domain:t=>async function(e,t){const{address:n,factory:r,factoryData:o}=t;try{const[t,i,s,a,c,u,f]=await Nn(e,dr,\"readContract\")({abi:Zo,address:n,functionName:\"eip712Domain\",factory:r,factoryData:o});return{domain:{name:i,version:s,chainId:Number(a),verifyingContract:c,salt:u},extensions:f,fields:t}}catch(e){const t=e;if(\"ContractFunctionExecutionError\"===t.name&&\"ContractFunctionZeroDataError\"===t.cause.name)throw new Wo({address:n});throw t}}(e,t),getEnsAddress:t=>async function(e,t){const{blockNumber:n,blockTag:r,coinType:o,name:i,gatewayUrls:s,strict:a}=t,{chain:c}=e,u=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return(0,gn.M)({blockNumber:n,chain:c,contract:\"ensUniversalResolver\"})})(),f=c?.ensTlds;if(f&&!f.some(e=>i.endsWith(e)))return null;const l=null!=o?[Cn(i),BigInt(o)]:[Cn(i)];try{const t=(0,bn.p)({abi:hn.Rm,functionName:\"addr\",args:l}),o={address:u,abi:hn.Ag,functionName:\"resolveWithGateways\",args:[(0,mn.nj)(On(i)),t,s??[An.J]],blockNumber:n,blockTag:r},a=Nn(e,dr,\"readContract\"),c=await a(o);if(\"0x\"===c[0])return null;const f=(0,pn.e)({abi:hn.Rm,args:l,functionName:\"addr\",data:c[0]});return\"0x\"===f||\"0x00\"===(0,yn.B)(f)?null:f}catch(e){if(a)throw e;if(vn(e))return null;throw e}}(e,t),getEnsAvatar:t=>async function(e,{blockNumber:t,blockTag:n,assetGatewayUrls:r,name:o,gatewayUrls:i,strict:s,universalResolverAddress:a}){const c=await Nn(e,xr,\"getEnsText\")({blockNumber:t,blockTag:n,key:\"avatar\",name:o,universalResolverAddress:a,gatewayUrls:i,strict:s});if(!c)return null;try{return await Ar(e,{record:c,gatewayUrls:r})}catch{return null}}(e,t),getEnsName:t=>async function(e,t){const{address:n,blockNumber:r,blockTag:o,coinType:i=60n,gatewayUrls:s,strict:a}=t,{chain:c}=e,u=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!c)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return(0,gn.M)({blockNumber:r,chain:c,contract:\"ensUniversalResolver\"})})();try{const t={address:u,abi:hn.oX,args:[n,i,s??[An.J]],functionName:\"reverseWithGateways\",blockNumber:r,blockTag:o},a=Nn(e,dr,\"readContract\"),[c]=await a(t);return c||null}catch(e){if(a)throw e;if(vn(e))return null;throw e}}(e,t),getEnsResolver:t=>async function(e,t){const{blockNumber:n,blockTag:r,name:o}=t,{chain:i}=e,s=(()=>{if(t.universalResolverAddress)return t.universalResolverAddress;if(!i)throw new Error(\"client chain not configured. universalResolverAddress is required.\");return(0,gn.M)({blockNumber:n,chain:i,contract:\"ensUniversalResolver\"})})(),a=i?.ensTlds;if(a&&!a.some(e=>o.endsWith(e)))throw new Error(`${o} is not a valid ENS TLD (${a?.join(\", \")}) for chain \"${i.name}\" (id: ${i.id}).`);const[c]=await Nn(e,dr,\"readContract\")({address:s,abi:[{inputs:[{type:\"bytes\"}],name:\"findResolver\",outputs:[{type:\"address\"},{type:\"bytes32\"},{type:\"uint256\"}],stateMutability:\"view\",type:\"function\"}],functionName:\"findResolver\",args:[(0,mn.nj)(On(o))],blockNumber:n,blockTag:r});return c}(e,t),getEnsText:t=>xr(e,t),getFeeHistory:t=>Yo(e,t),estimateFeesPerGas:t=>async function(e,t){return po(e,t)}(e,t),getFilterChanges:e=>Xo(0,e),getFilterLogs:e=>async function(e,{filter:t}){const n=t.strict??!1,r=(await t.request({method:\"eth_getFilterLogs\",params:[t.id]})).map(e=>Do(e));return t.abi?qo({abi:t.abi,logs:r,strict:n}):r}(0,e),getGasPrice:()=>lo(e),getLogs:t=>Vo(e,t),getProof:t=>ei(e,t),estimateMaxPriorityFeePerGas:t=>async function(e,t){return ho(e,t)}(e,t),fillTransaction:t=>Co(e,t),getStorageAt:t=>async function(e,{address:t,blockNumber:n,blockTag:r=\"latest\",slot:o}){const i=void 0!==n?(0,mn.cK)(n):void 0;return await e.request({method:\"eth_getStorageAt\",params:[t,o,i||r]})}(e,t),getTransaction:t=>ti(e,t),getTransactionConfirmations:t=>async function(e,{hash:t,transactionReceipt:n}){const[r,o]=await Promise.all([Nn(e,zo,\"getBlockNumber\")({}),t?Nn(e,ti,\"getTransaction\")({hash:t}):void 0]),i=n?.blockNumber||o?.blockNumber;return i?r-i+1n:0n}(e,t),getTransactionCount:t=>bo(e,t),getTransactionReceipt:t=>oi(e,t),multicall:t=>async function(e,t){const{account:n,authorizationList:r,allowFailure:o=!0,blockNumber:i,blockOverrides:s,blockTag:a,stateOverride:c}=t,u=t.contracts,{batchSize:f=t.batchSize??1024,deployless:l=t.deployless??!1}=\"object\"==typeof e.batch?.multicall?e.batch.multicall:{},d=(()=>{if(t.multicallAddress)return t.multicallAddress;if(l)return null;if(e.chain)return(0,gn.M)({blockNumber:i,chain:e.chain,contract:\"multicall3\"});throw new Error(\"client chain not configured. multicallAddress is required.\")})(),h=[[]];let p=0,b=0;for(let e=0;e<u.length;e++){const{abi:t,address:r,args:i,functionName:s}=u[e];try{const e=(0,bn.p)({abi:t,args:i,functionName:s});b+=(e.length-2)/2,f>0&&b>f&&h[p].length>0&&(p++,b=(e.length-2)/2,h[p]=[]),h[p]=[...h[p],{allowFailure:!0,callData:e,target:r}]}catch(e){const a=fr(e,{abi:t,address:r,args:i,docsPath:\"/docs/contract/multicall\",functionName:s,sender:n});if(!o)throw a;h[p]=[...h[p],{allowFailure:!0,callData:\"0x\",target:r}]}}const g=await Promise.allSettled(h.map(t=>Nn(e,dr,\"readContract\")({...null===d?{code:ii.Ez}:{address:d},abi:hn.v2,account:n,args:[t],authorizationList:r,blockNumber:i,blockOverrides:s,blockTag:a,functionName:\"aggregate3\",stateOverride:c}))),y=[];for(let e=0;e<g.length;e++){const t=g[e];if(\"rejected\"===t.status){if(!o)throw t.reason;for(let n=0;n<h[e].length;n++)y.push({status:\"failure\",error:t.reason,result:void 0});continue}const n=t.value;for(let t=0;t<n.length;t++){const{returnData:r,success:i}=n[t],{callData:s}=h[e][t],{abi:a,address:c,functionName:f,args:l}=u[y.length];try{if(\"0x\"===s)throw new Sn.O;if(!i)throw new wn.$S({data:r});const e=(0,pn.e)({abi:a,args:l,data:r,functionName:f});y.push(o?{result:e,status:\"success\"}:e)}catch(e){const t=fr(e,{abi:a,address:c,args:l,docsPath:\"/docs/contract/multicall\",functionName:f});if(!o)throw t;y.push({error:t,result:void 0,status:\"failure\"})}}}if(y.length!==u.length)throw new I.C(\"multicall results mismatch\");return y}(e,t),prepareTransactionRequest:t=>No(e,t),readContract:t=>dr(e,t),sendRawTransaction:t=>async function(e,{serializedTransaction:t}){return e.request({method:\"eth_sendRawTransaction\",params:[t]},{retryCount:0})}(e,t),sendRawTransactionSync:t=>async function(e,{serializedTransaction:t,throwOnReceiptRevert:n,timeout:r}){const o=await e.request({method:\"eth_sendRawTransactionSync\",params:r?[t,r]:[t]},{retryCount:0}),i=(e.chain?.formatters?.transactionReceipt?.format||ri)(o);if(\"reverted\"===i.status&&n)throw new Yr.Sq({receipt:i});return i}(e,t),simulate:t=>ai(e,t),simulateBlocks:t=>ai(e,t),simulateCalls:t=>Ma(e,t),simulateContract:t=>async function(e,t){const{abi:n,address:r,args:o,functionName:i,dataSuffix:s=(\"string\"==typeof e.dataSuffix?e.dataSuffix:e.dataSuffix?.value),...a}=t,c=a.account?(0,un.J)(a.account):e.account,u=(0,bn.p)({abi:n,args:o,functionName:i});try{const{data:f}=await Nn(e,lr.T,\"call\")({batch:!1,data:`${u}${s?s.replace(\"0x\",\"\"):\"\"}`,to:r,...a,account:c});return{result:(0,pn.e)({abi:n,args:o,functionName:i,data:f||\"0x\"}),request:{abi:n.filter(e=>\"name\"in e&&e.name===t.functionName),address:r,args:o,dataSuffix:s,functionName:i,...a,account:c}}}catch(e){throw fr(e,{abi:n,address:r,args:o,docsPath:\"/docs/contract/simulateContract\",functionName:i,sender:c?.address})}}(e,t),verifyHash:t=>Xa(e,t),verifyMessage:t=>async function(e,{address:t,message:n,factory:r,factoryData:o,signature:i,...s}){const a=tc(n);return Nn(e,Xa,\"verifyHash\")({address:t,factory:r,factoryData:o,hash:a,signature:i,...s})}(e,t),verifySiweMessage:t=>kc(e,t),verifyTypedData:t=>async function(e,t){const{address:n,factory:r,factoryData:o,signature:i,message:s,primaryType:a,types:c,domain:u,...f}=t,l=lc({message:s,primaryType:a,types:c,domain:u});return Nn(e,Xa,\"verifyHash\")({address:n,factory:r,factoryData:o,hash:l,signature:i,...f})}(e,t),uninstallFilter:e=>Oa(0,e),waitForTransactionReceipt:t=>async function(e,t){const{checkReplacement:n=!0,confirmations:r=1,hash:o,onReplaced:i,retryCount:s=6,retryDelay:a=({count:e})=>200*(1<<e),timeout:c=18e4}=t,u=(0,rc.A)([\"waitForTransactionReceipt\",e.uid,o]),f=t.pollingInterval?t.pollingInterval:e.chain?.experimental_preconfirmationTime?e.chain.experimental_preconfirmationTime:e.pollingInterval;let l,d,h,p,b,g=!1;const{promise:y,resolve:m,reject:w}=(0,Ac.Y)(),v=c?setTimeout(()=>{b?.(),p?.(),w(new Yr.WA({hash:o}))},c):void 0;return p=vc(u,{onReplaced:i,resolve:m,reject:w},async t=>{if(h=await Nn(e,oi,\"getTransactionReceipt\")({hash:o}).catch(()=>{}),h&&r<=1)return clearTimeout(v),t.resolve(h),void p?.();b=Nn(e,Pc,\"watchBlockNumber\")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:f,async onBlockNumber(i){const c=e=>{clearTimeout(v),b?.(),e(),p?.()};let u=i;if(!g)try{if(h){if(r>1&&(!h.blockNumber||u-h.blockNumber+1n<r))return;return void c(()=>t.resolve(h))}if(n&&!l&&(g=!0,await Ec(async()=>{l=await Nn(e,ti,\"getTransaction\")({hash:o}),l.blockNumber&&(u=l.blockNumber)},{delay:a,retryCount:s}),g=!1),h=await Nn(e,oi,\"getTransactionReceipt\")({hash:o}),r>1&&(!h.blockNumber||u-h.blockNumber+1n<r))return;c(()=>t.resolve(h))}catch(n){if(n instanceof Yr.Kz||n instanceof Yr.Kc){if(!l)return void(g=!1);try{d=l,g=!0;const n=await Ec(()=>Nn(e,fo,\"getBlock\")({blockNumber:u,includeTransactions:!0}),{delay:a,retryCount:s,shouldRetry:({error:e})=>e instanceof so});g=!1;const o=n.transactions.find(({from:e,nonce:t})=>e===d.from&&t===d.nonce);if(!o)return;if(h=await Nn(e,oi,\"getTransactionReceipt\")({hash:o.hash}),r>1&&(!h.blockNumber||u-h.blockNumber+1n<r))return;let i=\"replaced\";o.to===d.to&&o.value===d.value&&o.input===d.input?i=\"repriced\":o.from===o.to&&0n===o.value&&(i=\"cancelled\"),c(()=>{t.onReplaced?.({reason:i,replacedTransaction:d,transaction:o,transactionReceipt:h}),t.resolve(h)})}catch(e){c(()=>t.reject(e))}}else c(()=>t.reject(n))}}})}),y}(e,t),watchBlocks:t=>function(e,{blockTag:t=e.experimental_blockTag??\"latest\",emitMissed:n=!1,emitOnBegin:r=!1,onBlock:o,onError:i,includeTransactions:s,poll:a,pollingInterval:c=e.pollingInterval}){const u=void 0!==a?a:\"webSocket\"!==e.transport.type&&\"ipc\"!==e.transport.type&&(\"fallback\"!==e.transport.type||\"webSocket\"!==e.transport.transports[0].config.type&&\"ipc\"!==e.transport.transports[0].config.type),f=s??!1;let l;return u?vc((0,rc.A)([\"watchBlocks\",e.uid,t,n,r,f,c]),{onBlock:o,onError:i},o=>Bc(async()=>{try{const r=await Nn(e,fo,\"getBlock\")({blockTag:t,includeTransactions:f});if(null!==r.number&&null!=l?.number){if(r.number===l.number)return;if(r.number-l.number>1&&n)for(let t=l?.number+1n;t<r.number;t++){const n=await Nn(e,fo,\"getBlock\")({blockNumber:t,includeTransactions:f});o.onBlock(n,l),l=n}}(null==l?.number||\"pending\"===t&&null==r?.number||null!==r.number&&r.number>l.number)&&(o.onBlock(r,l),l=r)}catch(e){o.onError?.(e)}},{emitOnBegin:r,interval:c})):(()=>{let n=!0,s=!0,a=()=>n=!1;return(async()=>{try{r&&Nn(e,fo,\"getBlock\")({blockTag:t,includeTransactions:f}).then(e=>{n&&s&&(o(e,void 0),s=!1)}).catch(i);const c=(()=>{if(\"fallback\"===e.transport.type){const t=e.transport.transports.find(e=>\"webSocket\"===e.config.type||\"ipc\"===e.config.type);return t?t.value:e.transport}return e.transport})(),{unsubscribe:u}=await c.subscribe({params:[\"newHeads\"],async onData(t){if(!n)return;const r=await Nn(e,fo,\"getBlock\")({blockNumber:t.result?.number,includeTransactions:f}).catch(()=>{});n&&(o(r,l),s=!1,l=r)},onError(e){i?.(e)}});a=u,n||a()}catch(e){i?.(e)}})(),()=>a()})()}(e,t),watchBlockNumber:t=>Pc(e,t),watchContractEvent:t=>function(e,t){const{abi:n,address:r,args:o,batch:i=!0,eventName:s,fromBlock:a,onError:c,onLogs:u,poll:f,pollingInterval:l=e.pollingInterval,strict:d}=t;return(void 0!==f?f:\"bigint\"==typeof a||\"webSocket\"!==e.transport.type&&\"ipc\"!==e.transport.type&&(\"fallback\"!==e.transport.type||\"webSocket\"!==e.transport.transports[0].config.type&&\"ipc\"!==e.transport.transports[0].config.type))?(()=>{const t=d??!1;return vc((0,rc.A)([\"watchContractEvent\",r,o,i,e.uid,s,l,t,a]),{onLogs:u,onError:c},c=>{let u,f;void 0!==a&&(u=a-1n);let d=!1;const h=Bc(async()=>{if(d)try{let a;if(f)a=await Nn(e,Xo,\"getFilterChanges\")({filter:f});else{const i=await Nn(e,zo,\"getBlockNumber\")({});a=u&&u<i?await Nn(e,Jo,\"getContractEvents\")({abi:n,address:r,args:o,eventName:s,fromBlock:u+1n,toBlock:i,strict:t}):[],u=i}if(0===a.length)return;if(i)c.onLogs(a);else for(const e of a)c.onLogs([e])}catch(e){f&&e instanceof _n&&(d=!1),c.onError?.(e)}else{try{f=await Nn(e,zr,\"createContractEventFilter\")({abi:n,address:r,args:o,eventName:s,strict:t,fromBlock:a})}catch{}d=!0}},{emitOnBegin:!0,interval:l});return async()=>{f&&await Nn(e,Oa,\"uninstallFilter\")({filter:f}),h()}})})():(()=>{const t=d??!1,a=(0,rc.A)([\"watchContractEvent\",r,o,i,e.uid,s,l,t]);let f=!0,h=()=>f=!1;return vc(a,{onLogs:u,onError:c},t=>((async()=>{try{const i=(()=>{if(\"fallback\"===e.transport.type){const t=e.transport.transports.find(e=>\"webSocket\"===e.config.type||\"ipc\"===e.config.type);return t?t.value:e.transport}return e.transport})(),a=s?Rr({abi:n,eventName:s,args:o}):[],{unsubscribe:c}=await i.subscribe({params:[\"logs\",{address:r,topics:a}],onData(e){if(!f)return;const r=e.result;try{const{eventName:e,args:o}=Qo({abi:n,data:r.data,topics:r.topics,strict:d}),i=Do(r,{args:o,eventName:e});t.onLogs([i])}catch(e){let n,o;if(e instanceof Sn.fo||e instanceof Sn.l3){if(d)return;n=e.abiItem.name,o=e.abiItem.inputs?.some(e=>!(\"name\"in e&&e.name))}const i=Do(r,{args:o?[]:{},eventName:n});t.onLogs([i])}},onError(e){t.onError?.(e)}});h=c,f||h()}catch(e){c?.(e)}})(),()=>h()))})()}(e,t),watchEvent:t=>function(e,{address:t,args:n,batch:r=!0,event:o,events:i,fromBlock:s,onError:a,onLogs:c,poll:u,pollingInterval:f=e.pollingInterval,strict:l}){const d=void 0!==u?u:\"bigint\"==typeof s||\"webSocket\"!==e.transport.type&&\"ipc\"!==e.transport.type&&(\"fallback\"!==e.transport.type||\"webSocket\"!==e.transport.transports[0].config.type&&\"ipc\"!==e.transport.transports[0].config.type),h=l??!1;return d?vc((0,rc.A)([\"watchEvent\",t,n,r,e.uid,o,f,s]),{onLogs:c,onError:a},a=>{let c,u;void 0!==s&&(c=s-1n);let l=!1;const d=Bc(async()=>{if(l)try{let s;if(u)s=await Nn(e,Xo,\"getFilterChanges\")({filter:u});else{const r=await Nn(e,zo,\"getBlockNumber\")({});s=c&&c!==r?await Nn(e,Vo,\"getLogs\")({address:t,args:n,event:o,events:i,fromBlock:c+1n,toBlock:r}):[],c=r}if(0===s.length)return;if(r)a.onLogs(s);else for(const e of s)a.onLogs([e])}catch(e){u&&e instanceof _n&&(l=!1),a.onError?.(e)}else{try{u=await Nn(e,jr,\"createEventFilter\")({address:t,args:n,event:o,events:i,strict:h,fromBlock:s})}catch{}l=!0}},{emitOnBegin:!0,interval:f});return async()=>{u&&await Nn(e,Oa,\"uninstallFilter\")({filter:u}),d()}}):(()=>{let r=!0,s=()=>r=!1;return(async()=>{try{const u=(()=>{if(\"fallback\"===e.transport.type){const t=e.transport.transports.find(e=>\"webSocket\"===e.config.type||\"ipc\"===e.config.type);return t?t.value:e.transport}return e.transport})(),f=i??(o?[o]:void 0);let d=[];if(f){const e=f.flatMap(e=>Rr({abi:[e],eventName:e.name,args:n}));d=[e],o&&(d=d[0])}const{unsubscribe:p}=await u.subscribe({params:[\"logs\",{address:t,topics:d}],onData(e){if(!r)return;const t=e.result;try{const{eventName:e,args:n}=Qo({abi:f??[],data:t.data,topics:t.topics,strict:h}),r=Do(t,{args:n,eventName:e});c([r])}catch(e){let n,r;if(e instanceof Sn.fo||e instanceof Sn.l3){if(l)return;n=e.abiItem.name,r=e.abiItem.inputs?.some(e=>!(\"name\"in e&&e.name))}const o=Do(t,{args:r?[]:{},eventName:n});c([o])}},onError(e){a?.(e)}});s=p,r||s()}catch(e){a?.(e)}})(),()=>s()})()}(e,t),watchPendingTransactions:t=>function(e,{batch:t=!0,onError:n,onTransactions:r,poll:o,pollingInterval:i=e.pollingInterval}){return(void 0!==o?o:\"webSocket\"!==e.transport.type&&\"ipc\"!==e.transport.type)?vc((0,rc.A)([\"watchPendingTransactions\",e.uid,t,i]),{onTransactions:r,onError:n},n=>{let r;const o=Bc(async()=>{try{if(!r)try{return void(r=await Nn(e,Lr,\"createPendingTransactionFilter\")({}))}catch(e){throw o(),e}const i=await Nn(e,Xo,\"getFilterChanges\")({filter:r});if(0===i.length)return;if(t)n.onTransactions(i);else for(const e of i)n.onTransactions([e])}catch(e){n.onError?.(e)}},{emitOnBegin:!0,interval:i});return async()=>{r&&await Nn(e,Oa,\"uninstallFilter\")({filter:r}),o()}}):(()=>{let t=!0,o=()=>t=!1;return(async()=>{try{const{unsubscribe:i}=await e.transport.subscribe({params:[\"newPendingTransactions\"],onData(e){if(!t)return;const n=e.result;r([n])},onError(e){n?.(e)}});o=i,t||o()}catch(e){n?.(e)}})(),()=>o()})()}(e,t)}}function Oc(e){const{key:t=\"public\",name:n=\"Public Client\"}=e,r=function(e){const{batch:t,chain:n,ccipRead:r,dataSuffix:o,key:i=\"base\",name:s=\"Base Client\",type:a=\"base\"}=e,c=e.experimental_blockTag??(\"number\"==typeof n?.experimental_preconfirmationTime?\"pending\":void 0),u=n?.blockTime??12e3,f=Math.min(Math.max(Math.floor(u/2),500),4e3),l=e.pollingInterval??f,d=e.cacheTime??l,h=e.account?(0,un.J)(e.account):void 0,{config:p,request:b,value:g}=e.transport({account:h,chain:n,pollingInterval:l}),y={account:h,batch:t,cacheTime:d,ccipRead:r,chain:n,dataSuffix:o,key:i,name:s,pollingInterval:l,request:b,transport:{...p,...g},type:a,uid:dn(),...c?{experimental_blockTag:c}:{}};return Object.assign(y,{extend:function e(t){return n=>{const r=n(t);for(const e in y)delete r[e];const o={...t,...r};return Object.assign(o,{extend:e(o)})}}(y)})}({...e,key:t,name:n,type:\"publicClient\"});return r.extend(Mc)}const Nc=new Po.A(8192);function Sc(e,t={}){return async(n,r={})=>{const{dedupe:o=!1,methods:i,retryDelay:s=150,retryCount:a=3,uid:c}={...t,...r},{method:u}=n;if(i?.exclude?.includes(u))throw new Hn(new Error(\"method not supported\"),{method:u});if(i?.include&&!i.include.includes(u))throw new Hn(new Error(\"method not supported\"),{method:u});const f=o?function(e,t=0){let n=3735928559^t,r=1103547991^t;for(let t=0;t<e.length;t++){const o=e.charCodeAt(t);n=Math.imul(n^o,2654435761),r=Math.imul(r^o,1597334677)}return n=Math.imul(n^n>>>16,2246822507),n^=Math.imul(r^r>>>16,3266489909),r=Math.imul(r^r>>>16,2246822507),r^=Math.imul(n^n>>>16,3266489909),(4294967296*(2097151&r)+(n>>>0)).toString(36)}(`${c}.${(0,rc.A)(n)}`):void 0;return function(e,{enabled:t=!0,id:n}){if(!t||!n)return e();if(Nc.get(n))return Nc.get(n);const r=e().finally(()=>Nc.delete(n));return Nc.set(n,r),r}(()=>Ec(async()=>{try{return await e(n)}catch(e){const t=e;switch(t.code){case Fn.code:throw new Fn(t);case zn.code:throw new zn(t);case jn.code:throw new jn(t,{method:n.method});case Ln.code:throw new Ln(t);case Dn.code:throw new Dn(t);case _n.code:throw new _n(t);case $n.code:throw new $n(t);case Gn.code:throw new Gn(t);case Qn.code:throw new Qn(t);case Hn.code:throw new Hn(t,{method:n.method});case qn.code:throw new qn(t);case Vn.code:throw new Vn(t);case Jn.code:throw new Jn(t);case Kn.code:throw new Kn(t);case Wn.code:throw new Wn(t);case Zn.code:throw new Zn(t);case Yn.code:throw new Yn(t);case Xn.code:throw new Xn(t);case er.code:throw new er(t);case tr.code:throw new tr(t);case nr.code:throw new nr(t);case rr.code:throw new rr(t);case or.code:throw new or(t);case ir.code:throw new ir(t);case sr.code:throw new sr(t);case 5e3:throw new Jn(t);case ar.code:throw new ar(t);default:if(e instanceof I.C)throw e;throw new cr(t)}}},{delay:({count:e,error:t})=>{if(t&&t instanceof Tn.Ci){const e=t?.headers?.get(\"Retry-After\");if(e?.match(/\\d/))return 1e3*Number.parseInt(e,10)}return(1<<e)*s},retryCount:a,shouldRetry:({error:e})=>function(e){if(\"code\"in e&&\"number\"==typeof e.code)return-1===e.code||(e.code===qn.code||(e.code===Dn.code||429===e.code));if(e instanceof Tn.Ci&&e.status)return 403===e.status||(408===e.status||(413===e.status||(429===e.status||(500===e.status||(502===e.status||(503===e.status||504===e.status))))));return!0}(e)}),{enabled:o,id:f})}}function Tc(e,t={}){const{key:n=\"custom\",methods:r,name:o=\"Custom Provider\",retryDelay:i}=t;return({retryCount:s})=>function({key:e,methods:t,name:n,request:r,retryCount:o=3,retryDelay:i=150,timeout:s,type:a},c){return{config:{key:e,methods:t,name:n,request:r,retryCount:o,retryDelay:i,timeout:s,type:a},request:Sc(r,{methods:t,retryCount:o,retryDelay:i,uid:dn()}),value:c}}({key:n,methods:r,name:o,request:e.request.bind(e),retryCount:t.retryCount??s,retryDelay:i,type:\"custom\"})}function Uc(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};return Object.assign(t,{extend:function e(t){return n=>{const r=\"function\"==typeof n?n(t):n,o={...t,...r};return Object.assign(o,{extend:e(o)})}}(t)})}const Rc=Uc({id:11155111,name:\"Sepolia\",nativeCurrency:{name:\"Sepolia Ether\",symbol:\"ETH\",decimals:18},rpcUrls:{default:{http:[\"https://11155111.rpc.thirdweb.com\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://sepolia.etherscan.io\",apiUrl:\"https://api-sepolia.etherscan.io/api\"}},contracts:{multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:751532},ensUniversalResolver:{address:\"0xeeeeeeee14d718c2b47d9923deab1335e144eeee\",blockCreated:8928790}},testnet:!0}),Fc=Uc({id:1,name:\"Ethereum\",nativeCurrency:{name:\"Ether\",symbol:\"ETH\",decimals:18},blockTime:12e3,rpcUrls:{default:{http:[\"https://eth.merkle.io\"]}},blockExplorers:{default:{name:\"Etherscan\",url:\"https://etherscan.io\",apiUrl:\"https://api.etherscan.io/api\"}},contracts:{ensUniversalResolver:{address:\"0xeeeeeeee14d718c2b47d9923deab1335e144eeee\",blockCreated:23085558},multicall3:{address:\"0xca11bde05977b3631167028862be2a173976ca11\",blockCreated:14353601}}});async function zc(e,t,n,r,o){const i=_e(n);if(t===x.Eip155){const t=await e.getEnsAddress({name:i,coinType:o?S(o):void 0});if(t)return{resolvedAddress:(0,T.b)(t),protocol:E,domainName:n};if(!o)return null;const r=await e.getEnsAddress({name:i});return!r||await async function(e,t){try{const n=await e.getCode({address:t,blockTag:\"pending\"});return void 0!==n&&\"0x\"!==n}catch{return console.error(\"Unable to determine if resolved ENS address is a contract. Assuming it is and returning nothing.\"),!0}}(e,r)?null:{resolvedAddress:(0,T.b)(r),protocol:\"Ethereum Name Service on Ethereum Mainnet\",domainName:n}}if(void 0===r)return null;const s=await e.getEnsAddress({name:i,coinType:BigInt(r)}),a=s&&function(e,t){const n=cn(t);switch(e){case 0:return Lt(n);case 501:return Dt(n);case 195:return _t(n);default:return null}}(r,s);return a?{resolvedAddress:a,protocol:E,domainName:n}:null}const jc=async e=>{const{chainId:t,address:n,domain:r}=e,{namespace:o,reference:i}=function(e){const t=d.exec(e);if(!t?.groups)throw new Error(\"Invalid CAIP chain ID.\");return{namespace:t.groups.namespace,reference:t.groups.reference}}(t),s=function(e){return B.includes(e)}(t),a=o===x.Eip155?parseInt(i,10):void 0,c=P[t];try{const e=await async function(e){var t,n;return await ethereum.request({method:\"wallet_switchEthereumChain\",params:[{chainId:(t=e,Kt(\"number\"==typeof t,\"Value must be a number.\"),Kt(t>=0,\"Value must be a non-negative number.\"),Kt(Number.isSafeInteger(t),\"Value is not a safe integer. Use `bigIntToHex` instead.\"),(n=t.toString(16)).startsWith(\"0x\")?n:n.startsWith(\"0X\")?`0x${n.substring(2)}`:`0x${n}`)}]}),Oc({chain:11155111===e?Rc:Fc,transport:Tc(ethereum)})}(s&&a?a:1);if(r){const t=await zc(e,o,r,c,s?void 0:a);if(t)return{resolvedAddresses:[t]}}if(n&&o===x.Eip155){const t=await async function(e,t){const n=await e.getEnsName({address:t});return n?{resolvedDomain:n,protocol:E}:null}(e,n);if(t)return{resolvedDomains:[t]}}return null}catch(e){return console.error(\"Error during name lookup:\",e),null}}})(),module.exports=r})();"}],"removable":false}