@recoilpay/intent-widget 0.1.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (112) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +89 -0
  3. package/dist/chunks/add-6QI4IE74.js +15 -0
  4. package/dist/chunks/all-wallets-THC5DP7W.js +6 -0
  5. package/dist/chunks/app-store-FS2F7VYK.js +17 -0
  6. package/dist/chunks/apple-C2QR6WKS.js +18 -0
  7. package/dist/chunks/arrow-bottom-AW5LWHGC.js +8 -0
  8. package/dist/chunks/arrow-bottom-circle-3L4ACEWX.js +11 -0
  9. package/dist/chunks/arrow-left-OKHNGLQ4.js +8 -0
  10. package/dist/chunks/arrow-right-V4EYTZ5E.js +8 -0
  11. package/dist/chunks/arrow-top-XLD7PH65.js +8 -0
  12. package/dist/chunks/bank-DT5OX7C2.js +14 -0
  13. package/dist/chunks/basic-2ESEHJO2.js +2133 -0
  14. package/dist/chunks/browser-HWASO4BM.js +14 -0
  15. package/dist/chunks/card-AWLNHRWK.js +14 -0
  16. package/dist/chunks/ccip-7WYWVY5O.js +29 -0
  17. package/dist/chunks/ccip-CJPBHIYN.js +1 -0
  18. package/dist/chunks/ccip-P2XLZ2Q3.js +1 -0
  19. package/dist/chunks/ccip-TDNDQCYX.js +1 -0
  20. package/dist/chunks/checkmark-CFJVGYKN.js +11 -0
  21. package/dist/chunks/checkmark-bold-KYZGMQZC.js +8 -0
  22. package/dist/chunks/chevron-bottom-UFI5ZQCD.js +8 -0
  23. package/dist/chunks/chevron-left-IXZPWY6V.js +8 -0
  24. package/dist/chunks/chevron-right-YBXAUXMQ.js +8 -0
  25. package/dist/chunks/chevron-top-XGVJAAGN.js +8 -0
  26. package/dist/chunks/chrome-store-V7ZFZ4HF.js +61 -0
  27. package/dist/chunks/chunk-6XSLLSJX.js +1 -0
  28. package/dist/chunks/chunk-BFNNKT2C.js +20 -0
  29. package/dist/chunks/chunk-EZRXHJOM.js +9 -0
  30. package/dist/chunks/chunk-F7HZCPX2.js +1 -0
  31. package/dist/chunks/chunk-FK7PQ7YB.js +6 -0
  32. package/dist/chunks/chunk-FL3MRXUD.js +6 -0
  33. package/dist/chunks/chunk-FYS4NW6G.js +1 -0
  34. package/dist/chunks/chunk-GPOI2YA7.js +886 -0
  35. package/dist/chunks/chunk-H5GR6EPA.js +394 -0
  36. package/dist/chunks/chunk-JYRWMYZ2.js +36 -0
  37. package/dist/chunks/chunk-LQZA24C3.js +37 -0
  38. package/dist/chunks/chunk-MYICIF4X.js +6 -0
  39. package/dist/chunks/chunk-MYQCVH5Z.js +1 -0
  40. package/dist/chunks/chunk-OKQEFB6X.js +28 -0
  41. package/dist/chunks/chunk-QOQKSUB7.js +29 -0
  42. package/dist/chunks/chunk-WYVJ6QLD.js +29 -0
  43. package/dist/chunks/chunk-Z3OIWTR5.js +1 -0
  44. package/dist/chunks/clock-5HKMPIUO.js +8 -0
  45. package/dist/chunks/close-7Q5B2HQ4.js +8 -0
  46. package/dist/chunks/coinPlaceholder-3K6ZUCBB.js +8 -0
  47. package/dist/chunks/compass-W74LSHT5.js +8 -0
  48. package/dist/chunks/copy-6Q4PP5RG.js +15 -0
  49. package/dist/chunks/core-52H33BRG.js +15 -0
  50. package/dist/chunks/cursor-HIA7HILJ.js +3 -0
  51. package/dist/chunks/cursor-transparent-3QFUBR2Y.js +12 -0
  52. package/dist/chunks/desktop-AQ4JHUBR.js +9 -0
  53. package/dist/chunks/disconnect-DAKWOTZ3.js +8 -0
  54. package/dist/chunks/discord-5FRZ3W43.js +17 -0
  55. package/dist/chunks/etherscan-JBY3FG5R.js +6 -0
  56. package/dist/chunks/exclamation-triangle-3RG2YEHW.js +4 -0
  57. package/dist/chunks/extension-KJD6T6D2.js +8 -0
  58. package/dist/chunks/external-link-4TRP536K.js +8 -0
  59. package/dist/chunks/facebook-IYUAR5JX.js +26 -0
  60. package/dist/chunks/farcaster-32VRU3TK.js +12 -0
  61. package/dist/chunks/filters-XZ2LOG4T.js +8 -0
  62. package/dist/chunks/github-4DWZB2US.js +18 -0
  63. package/dist/chunks/google-7JIWLIDN.js +18 -0
  64. package/dist/chunks/help-circle-YBXI5V2B.js +12 -0
  65. package/dist/chunks/id-RY6NX47S.js +12 -0
  66. package/dist/chunks/image-TFG7VUHL.js +4 -0
  67. package/dist/chunks/index.es-SEE33E5T.js +15 -0
  68. package/dist/chunks/info-OGTYPPEO.js +3 -0
  69. package/dist/chunks/info-circle-KH5E4LQP.js +12 -0
  70. package/dist/chunks/lightbulb-U33OSZ3X.js +3 -0
  71. package/dist/chunks/mail-RCAHKDDA.js +8 -0
  72. package/dist/chunks/mine.wasm-DWLXBUXQ.js +1 -0
  73. package/dist/chunks/mobile-RMRLWRK2.js +9 -0
  74. package/dist/chunks/more-QN5BQZLT.js +11 -0
  75. package/dist/chunks/native-ESI6QOB3.js +1 -0
  76. package/dist/chunks/native-FKR3QBFJ.js +1 -0
  77. package/dist/chunks/native-J6GYQGMC.js +1 -0
  78. package/dist/chunks/native-YYHLKJS6.js +1 -0
  79. package/dist/chunks/network-placeholder-7TZ4FX3A.js +14 -0
  80. package/dist/chunks/nftPlaceholder-5A4AUYE2.js +8 -0
  81. package/dist/chunks/off-NW3B3Z3Q.js +8 -0
  82. package/dist/chunks/play-store-NST7OJXU.js +32 -0
  83. package/dist/chunks/plus-ZJXOSK2O.js +13 -0
  84. package/dist/chunks/qr-code-KDG2JZZK.js +6 -0
  85. package/dist/chunks/recycle-horizontal-3X37MC7E.js +9 -0
  86. package/dist/chunks/refresh-GL7N6ZKZ.js +8 -0
  87. package/dist/chunks/reown-logo-EXAEIT6H.js +12 -0
  88. package/dist/chunks/search-EDSER3WT.js +8 -0
  89. package/dist/chunks/secp256k1-6A42G7KH.js +11 -0
  90. package/dist/chunks/secp256k1-ACZE2VHK.js +10 -0
  91. package/dist/chunks/secp256k1-AHJALKHB.js +11 -0
  92. package/dist/chunks/secp256k1-Z3G34S2I.js +11 -0
  93. package/dist/chunks/send-G6RI7LIU.js +15 -0
  94. package/dist/chunks/swapHorizontal-PS74G3QM.js +8 -0
  95. package/dist/chunks/swapHorizontalBold-UXWIWNWD.js +8 -0
  96. package/dist/chunks/swapHorizontalMedium-RJ2OQ4TF.js +16 -0
  97. package/dist/chunks/swapHorizontalRoundedBold-7IWPKFFP.js +8 -0
  98. package/dist/chunks/swapVertical-BQ25C2TX.js +8 -0
  99. package/dist/chunks/telegram-D2ONVLTF.js +16 -0
  100. package/dist/chunks/three-dots-WTLTFKLX.js +5 -0
  101. package/dist/chunks/twitch-YCCDDY6J.js +18 -0
  102. package/dist/chunks/twitterIcon-W26URVWN.js +6 -0
  103. package/dist/chunks/verify-4BN2QIGK.js +8 -0
  104. package/dist/chunks/verify-filled-PMCOH3ZN.js +8 -0
  105. package/dist/chunks/w3m-modal-RWMJ7KYJ.js +642 -0
  106. package/dist/chunks/wallet-2P4SEUMP.js +8 -0
  107. package/dist/chunks/wallet-placeholder-V5RSTMZ2.js +14 -0
  108. package/dist/chunks/walletconnect-VJ2EPWKZ.js +30 -0
  109. package/dist/chunks/warning-circle-HB2VR6PY.js +12 -0
  110. package/dist/chunks/x-T5WBAOG3.js +12 -0
  111. package/dist/recoilpay-intent-widget.js +925 -0
  112. package/package.json +55 -0
@@ -0,0 +1,28 @@
1
+ var x=globalThis,Q=r=>r,R=x.trustedTypes,X=R?R.createPolicy("lit-html",{createHTML:r=>r}):void 0,W="$lit$",$=`lit$${Math.random().toFixed(9).slice(2)}$`,q="?"+$,_t=`<${q}>`,y=document,P=()=>y.createComment(""),U=r=>r===null||typeof r!="object"&&typeof r!="function",K=Array.isArray,rt=r=>K(r)||typeof r?.[Symbol.iterator]=="function",V=`[
2
+ \f\r]`,w=/<(?:(!--|\/[^a-zA-Z])|(\/?[a-zA-Z][^>\s]*)|(\/?$))/g,Y=/-->/g,tt=/>/g,m=RegExp(`>|${V}(?:([^\\s"'>=/]+)(${V}*=${V}*(?:[^
3
+ \f\r"'\`<>=]|("|')|))|$)`,"g"),et=/'/g,st=/"/g,ot=/^(?:script|style|textarea|title)$/i,F=r=>(t,...e)=>({_$litType$:r,strings:t,values:e}),xt=F(1),Pt=F(2),Ut=F(3),v=Symbol.for("lit-noChange"),p=Symbol.for("lit-nothing"),it=new WeakMap,g=y.createTreeWalker(y,129);function nt(r,t){if(!K(r)||!r.hasOwnProperty("raw"))throw Error("invalid template strings array");return X!==void 0?X.createHTML(t):t}var ht=(r,t)=>{let e=r.length-1,s=[],i,o=t===2?"<svg>":t===3?"<math>":"",n=w;for(let l=0;l<e;l++){let h=r[l],c,d,a=-1,u=0;for(;u<h.length&&(n.lastIndex=u,d=n.exec(h),d!==null);)u=n.lastIndex,n===w?d[1]==="!--"?n=Y:d[1]!==void 0?n=tt:d[2]!==void 0?(ot.test(d[2])&&(i=RegExp("</"+d[2],"g")),n=m):d[3]!==void 0&&(n=m):n===m?d[0]===">"?(n=i??w,a=-1):d[1]===void 0?a=-2:(a=n.lastIndex-d[2].length,c=d[1],n=d[3]===void 0?m:d[3]==='"'?st:et):n===st||n===et?n=m:n===Y||n===tt?n=w:(n=m,i=void 0);let f=n===m&&r[l+1].startsWith("/>")?" ":"";o+=n===w?h+_t:a>=0?(s.push(c),h.slice(0,a)+W+h.slice(a)+$+f):h+$+(a===-2?l:f)}return[nt(r,o+(r[e]||"<?>")+(t===2?"</svg>":t===3?"</math>":"")),s]},O=class r{constructor({strings:t,_$litType$:e},s){let i;this.parts=[];let o=0,n=0,l=t.length-1,h=this.parts,[c,d]=ht(t,e);if(this.el=r.createElement(c,s),g.currentNode=this.el.content,e===2||e===3){let a=this.el.content.firstChild;a.replaceWith(...a.childNodes)}for(;(i=g.nextNode())!==null&&h.length<l;){if(i.nodeType===1){if(i.hasAttributes())for(let a of i.getAttributeNames())if(a.endsWith(W)){let u=d[n++],f=i.getAttribute(a).split($),T=/([.?@])?(.*)/.exec(u);h.push({type:1,index:o,name:T[2],strings:f,ctor:T[1]==="."?k:T[1]==="?"?D:T[1]==="@"?j:E}),i.removeAttribute(a)}else a.startsWith($)&&(h.push({type:6,index:o}),i.removeAttribute(a));if(ot.test(i.tagName)){let a=i.textContent.split($),u=a.length-1;if(u>0){i.textContent=R?R.emptyScript:"";for(let f=0;f<u;f++)i.append(a[f],P()),g.nextNode(),h.push({type:2,index:++o});i.append(a[u],P())}}}else if(i.nodeType===8)if(i.data===q)h.push({type:2,index:o});else{let a=-1;for(;(a=i.data.indexOf($,a+1))!==-1;)h.push({type:7,index:o}),a+=$.length-1}o++}}static createElement(t,e){let s=y.createElement("template");return s.innerHTML=t,s}};function S(r,t,e=r,s){if(t===v)return t;let i=s!==void 0?e._$Co?.[s]:e._$Cl,o=U(t)?void 0:t._$litDirective$;return i?.constructor!==o&&(i?._$AO?.(!1),o===void 0?i=void 0:(i=new o(r),i._$AT(r,e,s)),s!==void 0?(e._$Co??(e._$Co=[]))[s]=i:e._$Cl=i),i!==void 0&&(t=S(r,i._$AS(r,t.values),i,s)),t}var L=class{constructor(t,e){this._$AV=[],this._$AN=void 0,this._$AD=t,this._$AM=e}get parentNode(){return this._$AM.parentNode}get _$AU(){return this._$AM._$AU}u(t){let{el:{content:e},parts:s}=this._$AD,i=(t?.creationScope??y).importNode(e,!0);g.currentNode=i;let o=g.nextNode(),n=0,l=0,h=s[0];for(;h!==void 0;){if(n===h.index){let c;h.type===2?c=new b(o,o.nextSibling,this,t):h.type===1?c=new h.ctor(o,h.name,h.strings,this,t):h.type===6&&(c=new B(o,this,t)),this._$AV.push(c),h=s[++l]}n!==h?.index&&(o=g.nextNode(),n++)}return g.currentNode=y,i}p(t){let e=0;for(let s of this._$AV)s!==void 0&&(s.strings!==void 0?(s._$AI(t,s,e),e+=s.strings.length-2):s._$AI(t[e])),e++}},b=class r{get _$AU(){return this._$AM?._$AU??this._$Cv}constructor(t,e,s,i){this.type=2,this._$AH=p,this._$AN=void 0,this._$AA=t,this._$AB=e,this._$AM=s,this.options=i,this._$Cv=i?.isConnected??!0}get parentNode(){let t=this._$AA.parentNode,e=this._$AM;return e!==void 0&&t?.nodeType===11&&(t=e.parentNode),t}get startNode(){return this._$AA}get endNode(){return this._$AB}_$AI(t,e=this){t=S(this,t,e),U(t)?t===p||t==null||t===""?(this._$AH!==p&&this._$AR(),this._$AH=p):t!==this._$AH&&t!==v&&this._(t):t._$litType$!==void 0?this.$(t):t.nodeType!==void 0?this.T(t):rt(t)?this.k(t):this._(t)}O(t){return this._$AA.parentNode.insertBefore(t,this._$AB)}T(t){this._$AH!==t&&(this._$AR(),this._$AH=this.O(t))}_(t){this._$AH!==p&&U(this._$AH)?this._$AA.nextSibling.data=t:this.T(y.createTextNode(t)),this._$AH=t}$(t){let{values:e,_$litType$:s}=t,i=typeof s=="number"?this._$AC(t):(s.el===void 0&&(s.el=O.createElement(nt(s.h,s.h[0]),this.options)),s);if(this._$AH?._$AD===i)this._$AH.p(e);else{let o=new L(i,this),n=o.u(this.options);o.p(e),this.T(n),this._$AH=o}}_$AC(t){let e=it.get(t.strings);return e===void 0&&it.set(t.strings,e=new O(t)),e}k(t){K(this._$AH)||(this._$AH=[],this._$AR());let e=this._$AH,s,i=0;for(let o of t)i===e.length?e.push(s=new r(this.O(P()),this.O(P()),this,this.options)):s=e[i],s._$AI(o),i++;i<e.length&&(this._$AR(s&&s._$AB.nextSibling,i),e.length=i)}_$AR(t=this._$AA.nextSibling,e){for(this._$AP?.(!1,!0,e);t!==this._$AB;){let s=Q(t).nextSibling;Q(t).remove(),t=s}}setConnected(t){this._$AM===void 0&&(this._$Cv=t,this._$AP?.(t))}},E=class{get tagName(){return this.element.tagName}get _$AU(){return this._$AM._$AU}constructor(t,e,s,i,o){this.type=1,this._$AH=p,this._$AN=void 0,this.element=t,this.name=e,this._$AM=i,this.options=o,s.length>2||s[0]!==""||s[1]!==""?(this._$AH=Array(s.length-1).fill(new String),this.strings=s):this._$AH=p}_$AI(t,e=this,s,i){let o=this.strings,n=!1;if(o===void 0)t=S(this,t,e,0),n=!U(t)||t!==this._$AH&&t!==v,n&&(this._$AH=t);else{let l=t,h,c;for(t=o[0],h=0;h<o.length-1;h++)c=S(this,l[s+h],e,h),c===v&&(c=this._$AH[h]),n||(n=!U(c)||c!==this._$AH[h]),c===p?t=p:t!==p&&(t+=(c??"")+o[h+1]),this._$AH[h]=c}n&&!i&&this.j(t)}j(t){t===p?this.element.removeAttribute(this.name):this.element.setAttribute(this.name,t??"")}},k=class extends E{constructor(){super(...arguments),this.type=3}j(t){this.element[this.name]=t===p?void 0:t}},D=class extends E{constructor(){super(...arguments),this.type=4}j(t){this.element.toggleAttribute(this.name,!!t&&t!==p)}},j=class extends E{constructor(t,e,s,i,o){super(t,e,s,i,o),this.type=5}_$AI(t,e=this){if((t=S(this,t,e,0)??p)===v)return;let s=this._$AH,i=t===p&&s!==p||t.capture!==s.capture||t.once!==s.once||t.passive!==s.passive,o=t!==p&&(s===p||i);i&&this.element.removeEventListener(this.name,this,s),o&&this.element.addEventListener(this.name,this,t),this._$AH=t}handleEvent(t){typeof this._$AH=="function"?this._$AH.call(this.options?.host??this.element,t):this._$AH.handleEvent(t)}},B=class{constructor(t,e,s){this.element=t,this.type=6,this._$AN=void 0,this._$AM=e,this.options=s}get _$AU(){return this._$AM._$AU}_$AI(t){S(this,t)}},Ot={M:W,P:$,A:q,C:1,L:ht,R:L,D:rt,V:S,I:b,H:E,N:D,U:j,B:k,F:B},ft=x.litHtmlPolyfillSupport;ft?.(O,b),(x.litHtmlVersions??(x.litHtmlVersions=[])).push("3.3.3");var at=(r,t,e)=>{let s=e?.renderBefore??t,i=s._$litPart$;if(i===void 0){let o=e?.renderBefore??null;s._$litPart$=i=new b(t.insertBefore(P(),o),o,void 0,e??{})}return i._$AI(r),i};var z=globalThis,I=z.ShadowRoot&&(z.ShadyCSS===void 0||z.ShadyCSS.nativeShadow)&&"adoptedStyleSheets"in Document.prototype&&"replace"in CSSStyleSheet.prototype,J=Symbol(),lt=new WeakMap,H=class{constructor(t,e,s){if(this._$cssResult$=!0,s!==J)throw Error("CSSResult is not constructable. Use `unsafeCSS` or `css` instead.");this.cssText=t,this.t=e}get styleSheet(){let t=this.o,e=this.t;if(I&&t===void 0){let s=e!==void 0&&e.length===1;s&&(t=lt.get(e)),t===void 0&&((this.o=t=new CSSStyleSheet).replaceSync(this.cssText),s&&lt.set(e,t))}return t}toString(){return this.cssText}},ct=r=>new H(typeof r=="string"?r:r+"",void 0,J),At=(r,...t)=>{let e=r.length===1?r[0]:t.reduce((s,i,o)=>s+(n=>{if(n._$cssResult$===!0)return n.cssText;if(typeof n=="number")return n;throw Error("Value passed to 'css' function must be a 'css' function result: "+n+". Use 'unsafeCSS' to pass non-literal values, but take care to ensure page security.")})(i)+r[o+1],r[0]);return new H(e,r,J)},pt=(r,t)=>{if(I)r.adoptedStyleSheets=t.map(e=>e instanceof CSSStyleSheet?e:e.styleSheet);else for(let e of t){let s=document.createElement("style"),i=z.litNonce;i!==void 0&&s.setAttribute("nonce",i),s.textContent=e.cssText,r.appendChild(s)}},Z=I?r=>r:r=>r instanceof CSSStyleSheet?(t=>{let e="";for(let s of t.cssRules)e+=s.cssText;return ct(e)})(r):r;var{is:mt,defineProperty:gt,getOwnPropertyDescriptor:yt,getOwnPropertyNames:vt,getOwnPropertySymbols:St,getPrototypeOf:Et}=Object,A=globalThis,dt=A.trustedTypes,bt=dt?dt.emptyScript:"",Ct=A.reactiveElementPolyfillSupport,M=(r,t)=>r,G={toAttribute(r,t){switch(t){case Boolean:r=r?bt:null;break;case Object:case Array:r=r==null?r:JSON.stringify(r)}return r},fromAttribute(r,t){let e=r;switch(t){case Boolean:e=r!==null;break;case Number:e=r===null?null:Number(r);break;case Object:case Array:try{e=JSON.parse(r)}catch{e=null}}return e}},$t=(r,t)=>!mt(r,t),ut={attribute:!0,type:String,converter:G,reflect:!1,useDefault:!1,hasChanged:$t};Symbol.metadata??(Symbol.metadata=Symbol("metadata")),A.litPropertyMetadata??(A.litPropertyMetadata=new WeakMap);var _=class extends HTMLElement{static addInitializer(t){this._$Ei(),(this.l??(this.l=[])).push(t)}static get observedAttributes(){return this.finalize(),this._$Eh&&[...this._$Eh.keys()]}static createProperty(t,e=ut){if(e.state&&(e.attribute=!1),this._$Ei(),this.prototype.hasOwnProperty(t)&&((e=Object.create(e)).wrapped=!0),this.elementProperties.set(t,e),!e.noAccessor){let s=Symbol(),i=this.getPropertyDescriptor(t,s,e);i!==void 0&&gt(this.prototype,t,i)}}static getPropertyDescriptor(t,e,s){let{get:i,set:o}=yt(this.prototype,t)??{get(){return this[e]},set(n){this[e]=n}};return{get:i,set(n){let l=i?.call(this);o?.call(this,n),this.requestUpdate(t,l,s)},configurable:!0,enumerable:!0}}static getPropertyOptions(t){return this.elementProperties.get(t)??ut}static _$Ei(){if(this.hasOwnProperty(M("elementProperties")))return;let t=Et(this);t.finalize(),t.l!==void 0&&(this.l=[...t.l]),this.elementProperties=new Map(t.elementProperties)}static finalize(){if(this.hasOwnProperty(M("finalized")))return;if(this.finalized=!0,this._$Ei(),this.hasOwnProperty(M("properties"))){let e=this.properties,s=[...vt(e),...St(e)];for(let i of s)this.createProperty(i,e[i])}let t=this[Symbol.metadata];if(t!==null){let e=litPropertyMetadata.get(t);if(e!==void 0)for(let[s,i]of e)this.elementProperties.set(s,i)}this._$Eh=new Map;for(let[e,s]of this.elementProperties){let i=this._$Eu(e,s);i!==void 0&&this._$Eh.set(i,e)}this.elementStyles=this.finalizeStyles(this.styles)}static finalizeStyles(t){let e=[];if(Array.isArray(t)){let s=new Set(t.flat(1/0).reverse());for(let i of s)e.unshift(Z(i))}else t!==void 0&&e.push(Z(t));return e}static _$Eu(t,e){let s=e.attribute;return s===!1?void 0:typeof s=="string"?s:typeof t=="string"?t.toLowerCase():void 0}constructor(){super(),this._$Ep=void 0,this.isUpdatePending=!1,this.hasUpdated=!1,this._$Em=null,this._$Ev()}_$Ev(){this._$ES=new Promise(t=>this.enableUpdating=t),this._$AL=new Map,this._$E_(),this.requestUpdate(),this.constructor.l?.forEach(t=>t(this))}addController(t){(this._$EO??(this._$EO=new Set)).add(t),this.renderRoot!==void 0&&this.isConnected&&t.hostConnected?.()}removeController(t){this._$EO?.delete(t)}_$E_(){let t=new Map,e=this.constructor.elementProperties;for(let s of e.keys())this.hasOwnProperty(s)&&(t.set(s,this[s]),delete this[s]);t.size>0&&(this._$Ep=t)}createRenderRoot(){let t=this.shadowRoot??this.attachShadow(this.constructor.shadowRootOptions);return pt(t,this.constructor.elementStyles),t}connectedCallback(){this.renderRoot??(this.renderRoot=this.createRenderRoot()),this.enableUpdating(!0),this._$EO?.forEach(t=>t.hostConnected?.())}enableUpdating(t){}disconnectedCallback(){this._$EO?.forEach(t=>t.hostDisconnected?.())}attributeChangedCallback(t,e,s){this._$AK(t,s)}_$ET(t,e){let s=this.constructor.elementProperties.get(t),i=this.constructor._$Eu(t,s);if(i!==void 0&&s.reflect===!0){let o=(s.converter?.toAttribute!==void 0?s.converter:G).toAttribute(e,s.type);this._$Em=t,o==null?this.removeAttribute(i):this.setAttribute(i,o),this._$Em=null}}_$AK(t,e){let s=this.constructor,i=s._$Eh.get(t);if(i!==void 0&&this._$Em!==i){let o=s.getPropertyOptions(i),n=typeof o.converter=="function"?{fromAttribute:o.converter}:o.converter?.fromAttribute!==void 0?o.converter:G;this._$Em=i;let l=n.fromAttribute(e,o.type);this[i]=l??this._$Ej?.get(i)??l,this._$Em=null}}requestUpdate(t,e,s,i=!1,o){if(t!==void 0){let n=this.constructor;if(i===!1&&(o=this[t]),s??(s=n.getPropertyOptions(t)),!((s.hasChanged??$t)(o,e)||s.useDefault&&s.reflect&&o===this._$Ej?.get(t)&&!this.hasAttribute(n._$Eu(t,s))))return;this.C(t,e,s)}this.isUpdatePending===!1&&(this._$ES=this._$EP())}C(t,e,{useDefault:s,reflect:i,wrapped:o},n){s&&!(this._$Ej??(this._$Ej=new Map)).has(t)&&(this._$Ej.set(t,n??e??this[t]),o!==!0||n!==void 0)||(this._$AL.has(t)||(this.hasUpdated||s||(e=void 0),this._$AL.set(t,e)),i===!0&&this._$Em!==t&&(this._$Eq??(this._$Eq=new Set)).add(t))}async _$EP(){this.isUpdatePending=!0;try{await this._$ES}catch(e){Promise.reject(e)}let t=this.scheduleUpdate();return t!=null&&await t,!this.isUpdatePending}scheduleUpdate(){return this.performUpdate()}performUpdate(){if(!this.isUpdatePending)return;if(!this.hasUpdated){if(this.renderRoot??(this.renderRoot=this.createRenderRoot()),this._$Ep){for(let[i,o]of this._$Ep)this[i]=o;this._$Ep=void 0}let s=this.constructor.elementProperties;if(s.size>0)for(let[i,o]of s){let{wrapped:n}=o,l=this[i];n!==!0||this._$AL.has(i)||l===void 0||this.C(i,void 0,o,l)}}let t=!1,e=this._$AL;try{t=this.shouldUpdate(e),t?(this.willUpdate(e),this._$EO?.forEach(s=>s.hostUpdate?.()),this.update(e)):this._$EM()}catch(s){throw t=!1,this._$EM(),s}t&&this._$AE(e)}willUpdate(t){}_$AE(t){this._$EO?.forEach(e=>e.hostUpdated?.()),this.hasUpdated||(this.hasUpdated=!0,this.firstUpdated(t)),this.updated(t)}_$EM(){this._$AL=new Map,this.isUpdatePending=!1}get updateComplete(){return this.getUpdateComplete()}getUpdateComplete(){return this._$ES}shouldUpdate(t){return!0}update(t){this._$Eq&&(this._$Eq=this._$Eq.forEach(e=>this._$ET(e,this[e]))),this._$EM()}updated(t){}firstUpdated(t){}};_.elementStyles=[],_.shadowRootOptions={mode:"open"},_[M("elementProperties")]=new Map,_[M("finalized")]=new Map,Ct?.({ReactiveElement:_}),(A.reactiveElementVersions??(A.reactiveElementVersions=[])).push("2.1.2");var N=globalThis,C=class extends _{constructor(){super(...arguments),this.renderOptions={host:this},this._$Do=void 0}createRenderRoot(){var e;let t=super.createRenderRoot();return(e=this.renderOptions).renderBefore??(e.renderBefore=t.firstChild),t}update(t){let e=this.render();this.hasUpdated||(this.renderOptions.isConnected=this.isConnected),super.update(t),this._$Do=at(e,this.renderRoot,this.renderOptions)}connectedCallback(){super.connectedCallback(),this._$Do?.setConnected(!0)}disconnectedCallback(){super.disconnectedCallback(),this._$Do?.setConnected(!1)}render(){return v}};C._$litElement$=!0,C.finalized=!0,N.litElementHydrateSupport?.({LitElement:C});var wt=N.litElementPolyfillSupport;wt?.({LitElement:C});(N.litElementVersions??(N.litElementVersions=[])).push("4.2.2");export{ct as a,At as b,G as c,$t as d,xt as e,Pt as f,v as g,p as h,Ot as i,C as j};
4
+ /*! Bundled license information:
5
+
6
+ lit-html/lit-html.js:
7
+ @lit/reactive-element/reactive-element.js:
8
+ lit-element/lit-element.js:
9
+ (**
10
+ * @license
11
+ * Copyright 2017 Google LLC
12
+ * SPDX-License-Identifier: BSD-3-Clause
13
+ *)
14
+
15
+ @lit/reactive-element/css-tag.js:
16
+ (**
17
+ * @license
18
+ * Copyright 2019 Google LLC
19
+ * SPDX-License-Identifier: BSD-3-Clause
20
+ *)
21
+
22
+ lit-html/is-server.js:
23
+ (**
24
+ * @license
25
+ * Copyright 2022 Google LLC
26
+ * SPDX-License-Identifier: BSD-3-Clause
27
+ *)
28
+ */
@@ -0,0 +1,29 @@
1
+ import{a as Tt,b as an,d as Bt,e as un,f as cn,i as kt,j as Ot,k as pn,m as dn,n as fn,o as ln}from"./chunk-MYICIF4X.js";var mn="1.0.8";var x=class e extends Error{constructor(t,n={}){let r=n.cause instanceof e?n.cause.details:n.cause?.message?n.cause.message:n.details,o=n.cause instanceof e&&n.cause.docsPath||n.docsPath,i=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${mn}`].join(`
2
+ `);super(i),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"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}};function v(e,t){return e.exec(t)?.groups}var zt=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Ct=/^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)?$/,Me=/^\(.+?\).*?$/;var yn=/^tuple(?<array>(\[(\d*)\])*)$/;function Ee(e){let t=e.type;if(yn.test(e.type)&&"components"in e){t="(";let n=e.components.length;for(let o=0;o<n;o++){let i=e.components[o];t+=Ee(i),o<n-1&&(t+=", ")}let r=v(yn,e.type);return t+=`)${r?.array??""}`,Ee({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function V(e){let t="",n=e.length;for(let r=0;r<n;r++){let o=e[r];t+=Ee(o),r!==n-1&&(t+=", ")}return t}function Rt(e){return e.type==="function"?`function ${e.name}(${V(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${V(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${V(e.inputs)})`:e.type==="error"?`error ${e.name}(${V(e.inputs)})`:e.type==="constructor"?`constructor(${V(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}var bn=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function hn(e){return bn.test(e)}function xn(e){return v(bn,e)}var gn=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function wn(e){return gn.test(e)}function vn(e){return v(gn,e)}var $n=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function An(e){return $n.test(e)}function Pn(e){return v($n,e)}var In=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function Te(e){return In.test(e)}function Sn(e){return v(In,e)}var Mn=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function En(e){return Mn.test(e)}function Tn(e){return v(Mn,e)}var Bn=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function kn(e){return Bn.test(e)}function On(e){return v(Bn,e)}var Kr=/^receive\(\) external payable$/;function zn(e){return Kr.test(e)}var Cn=new Set(["indexed"]),Be=new Set(["calldata","memory","storage"]);var ke=class extends x{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" 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"})}},Oe=class extends x{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}};var ze=class extends x{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}},Ce=class extends x{constructor({param:t,name:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${n}" 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"})}},Re=class extends x{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}},je=class extends x{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}},Ue=class extends x{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}};var E=class extends x{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}},Fe=class extends x{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}},Le=class extends x{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}};var De=class extends x{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}};var Ne=class extends x{constructor({current:t,depth:n}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}};function Rn(e,t,n){let r="";if(n)for(let o of Object.entries(n)){if(!o)continue;let i="";for(let s of o[1])i+=`[${s.type}${s.name?`:${s.name}`:""}]`;r+=`(${o[0]}{${i}})`}return t?`${t}:${e}${r}`:e}var He=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 jn(e,t={}){if(An(e))return Xr(e,t);if(wn(e))return Jr(e,t);if(hn(e))return Yr(e,t);if(En(e))return qr(e,t);if(kn(e))return Qr(e);if(zn(e))return{type:"receive",stateMutability:"payable"};throw new Fe({signature:e})}function Xr(e,t={}){let n=Pn(e);if(!n)throw new E({signature:e,type:"function"});let r=S(n.parameters),o=[],i=r.length;for(let a=0;a<i;a++)o.push(R(r[a],{modifiers:Be,structs:t,type:"function"}));let s=[];if(n.returns){let a=S(n.returns),c=a.length;for(let p=0;p<c;p++)s.push(R(a[p],{modifiers:Be,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:o,outputs:s}}function Jr(e,t={}){let n=vn(e);if(!n)throw new E({signature:e,type:"event"});let r=S(n.parameters),o=[],i=r.length;for(let s=0;s<i;s++)o.push(R(r[s],{modifiers:Cn,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:o}}function Yr(e,t={}){let n=xn(e);if(!n)throw new E({signature:e,type:"error"});let r=S(n.parameters),o=[],i=r.length;for(let s=0;s<i;s++)o.push(R(r[s],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:o}}function qr(e,t={}){let n=Tn(e);if(!n)throw new E({signature:e,type:"constructor"});let r=S(n.parameters),o=[],i=r.length;for(let s=0;s<i;s++)o.push(R(r[s],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:o}}function Qr(e){let t=On(e);if(!t)throw new E({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}var eo=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,to=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,no=/^u?int$/;function R(e,t){let n=Rn(e,t?.type,t?.structs);if(He.has(n))return He.get(n);let r=Me.test(e),o=v(r?to:eo,e);if(!o)throw new ze({param:e});if(o.name&&oo(o.name))throw new Ce({param:e,name:o.name});let i=o.name?{name:o.name}:{},s=o.modifier==="indexed"?{indexed:!0}:{},a=t?.structs??{},c,p={};if(r){c="tuple";let l=S(o.type),m=[],f=l.length;for(let b=0;b<f;b++)m.push(R(l[b],{structs:a}));p={components:m}}else if(o.type in a)c="tuple",p={components:a[o.type]};else if(no.test(o.type))c=`${o.type}256`;else if(c=o.type,t?.type!=="struct"&&!jt(c))throw new Oe({type:c});if(o.modifier){if(!t?.modifiers?.has?.(o.modifier))throw new Re({param:e,type:t?.type,modifier:o.modifier});if(Be.has(o.modifier)&&!so(c,!!o.array))throw new je({param:e,type:t?.type,modifier:o.modifier})}let d={type:`${c}${o.array??""}`,...i,...s,...p};return He.set(n,d),d}function S(e,t=[],n="",r=0){let o=e.trim().length;for(let i=0;i<o;i++){let s=e[i],a=e.slice(i+1);switch(s){case",":return r===0?S(a,[...t,n.trim()]):S(a,t,`${n}${s}`,r);case"(":return S(a,t,`${n}${s}`,r+1);case")":return S(a,t,`${n}${s}`,r-1);default:return S(a,t,`${n}${s}`,r)}}if(n==="")return t;if(r!==0)throw new Ne({current:n,depth:r});return t.push(n.trim()),t}function jt(e){return e==="address"||e==="bool"||e==="function"||e==="string"||zt.test(e)||Ct.test(e)}var ro=/^(?: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 oo(e){return e==="address"||e==="bool"||e==="function"||e==="string"||e==="tuple"||zt.test(e)||Ct.test(e)||ro.test(e)}function so(e,t){return t||e==="bytes"||e==="string"||e==="tuple"}function Un(e){let t={},n=e.length;for(let s=0;s<n;s++){let a=e[s];if(!Te(a))continue;let c=Sn(a);if(!c)throw new E({signature:a,type:"struct"});let p=c.properties.split(";"),d=[],l=p.length;for(let m=0;m<l;m++){let b=p[m].trim();if(!b)continue;let w=R(b,{type:"struct"});d.push(w)}if(!d.length)throw new Le({signature:a});t[c.name]=d}let r={},o=Object.entries(t),i=o.length;for(let s=0;s<i;s++){let[a,c]=o[s];r[a]=Fn(c,t)}return r}var io=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function Fn(e,t,n=new Set){let r=[],o=e.length;for(let i=0;i<o;i++){let s=e[i];if(Me.test(s.type))r.push(s);else{let c=v(io,s.type);if(!c?.type)throw new Ue({abiParameter:s});let{array:p,type:d}=c;if(d in t){if(n.has(d))throw new De({type:d});r.push({...s,type:`tuple${p??""}`,components:Fn(t[d]??[],t,new Set([...n,d]))})}else if(jt(d))r.push(s);else throw new ke({type:d})}}return r}function _e(e){let t=Un(e),n=[],r=e.length;for(let o=0;o<r;o++){let i=e[o];Te(i)||n.push(jn(i,t))}return n}function W(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}var Ut=[{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"}],Ln=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],Ks=[...Ln,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",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"}]}],Xs=[...Ln,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}];var Dn="0x82ad56cb";var Nn="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",Hn="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe";var Ft="2.23.2";var Lt={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${Ft}`};var u=class e extends Error{constructor(t,n={}){let r=n.cause instanceof e?n.cause.details:n.cause?.message?n.cause.message:n.details,o=n.cause instanceof e&&n.cause.docsPath||n.docsPath,i=Lt.getDocsUrl?.({...n,docsPath:o}),s=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${i}`]:[],...r?[`Details: ${r}`]:[],...Lt.version?[`Version: ${Lt.version}`]:[]].join(`
3
+ `);super(s,n.cause?{cause:n.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=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=Ft}walk(t){return _n(this,t)}};function _n(e,t){return t?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?_n(e.cause,t):t?null:e}var N=class extends u{constructor({blockNumber:t,chain:n,contract:r}){super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}};var fe=class extends u{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}};var Gn={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},Vn={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function H(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new Ve(e.type);return`${e.name}(${Ge(e.inputs,{includeName:t})})`}function Ge(e,{includeName:t=!1}={}){return e?e.map(n=>ao(n,{includeName:t})).join(t?", ":","):""}function ao(e,{includeName:t}){return e.type.startsWith("tuple")?`(${Ge(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}function A(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function h(e){return A(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var We=class extends u{constructor({docsPath:t}){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(`
4
+ `),{docsPath:t,name:"AbiConstructorNotFoundError"})}},le=class extends u{constructor({docsPath:t}){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(`
5
+ `),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}};var Ze=class extends u{constructor({data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(`
6
+ `),{metaMessages:[`Params: (${Ge(n,{includeName:!0})})`,`Data: ${t} (${r} 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=t,this.params=n,this.size=r}},Z=class extends u{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}},Ke=class extends u{constructor({expectedLength:t,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join(`
7
+ `),{name:"AbiEncodingArrayLengthMismatchError"})}},Xe=class extends u{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${h(n)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}},Je=class extends u{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(`
8
+ `),{name:"AbiEncodingLengthMismatchError"})}};var Ye=class extends u{constructor(t,{docsPath:n}){super([`Encoded error signature "${t}" 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://openchain.xyz/signatures?query=${t}.`].join(`
9
+ `),{docsPath:n,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}};var j=class extends u{constructor(t,{docsPath:n}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
10
+ `),{docsPath:n,name:"AbiFunctionNotFoundError"})}},qe=class extends u{constructor(t,{docsPath:n}){super([`Function "${t}" 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(`
11
+ `),{docsPath:n,name:"AbiFunctionOutputsNotFoundError"})}};var Qe=class extends u{constructor(t,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${H(t.abiItem)}\`, and`,`\`${n.type}\` in \`${H(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}};var et=class extends u{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
12
+ `),{docsPath:n,name:"InvalidAbiEncodingType"})}},tt=class extends u{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
13
+ `),{docsPath:n,name:"InvalidAbiDecodingType"})}},nt=class extends u{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
14
+ `),{name:"InvalidArrayError"})}},Ve=class extends u{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
15
+ `),{name:"InvalidDefinitionTypeError"})}};var me=class extends u{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}},ye=class extends u{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}},be=class extends u{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${t} ${r} long.`,{name:"InvalidBytesLengthError"})}};function _(e,t,n,{strict:r}={}){return A(e,{strict:!1})?uo(e,t,n,{strict:r}):Dt(e,t,n,{strict:r})}function Wn(e,t){if(typeof t=="number"&&t>0&&t>h(e)-1)throw new me({offset:t,position:"start",size:h(e)})}function Zn(e,t,n){if(typeof t=="number"&&typeof n=="number"&&h(e)!==n-t)throw new me({offset:n,position:"end",size:h(e)})}function Dt(e,t,n,{strict:r}={}){Wn(e,t);let o=e.slice(t,n);return r&&Zn(o,t,n),o}function uo(e,t,n,{strict:r}={}){Wn(e,t);let o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&Zn(o,t,n),o}function U(e,{dir:t,size:n=32}={}){return typeof e=="string"?B(e,{dir:t,size:n}):co(e,{dir:t,size:n})}function B(e,{dir:t,size:n=32}={}){if(n===null)return e;let r=e.replace("0x","");if(r.length>n*2)throw new ye({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[t==="right"?"padEnd":"padStart"](n*2,"0")}`}function co(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new ye({size:e.length,targetSize:n,type:"bytes"});let r=new Uint8Array(n);for(let o=0;o<n;o++){let i=t==="right";r[i?o:n-o-1]=e[i?o:e.length-o-1]}return r}var K=class extends u{constructor({max:t,min:n,signed:r,size:o,value:i}){super(`Number "${i}" is not in safe ${o?`${o*8}-bit ${r?"signed":"unsigned"} `:""}integer range ${t?`(${n} to ${t})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},rt=class extends u{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}};var ot=class extends u{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}};function he(e,{dir:t="left"}={}){let n=typeof e=="string"?e.replace("0x",""):e,r=0;for(let o=0;o<n.length-1&&n[t==="left"?o:n.length-o-1].toString()==="0";o++)r++;return n=t==="left"?n.slice(r):n.slice(0,n.length-r),typeof e=="string"?(n.length===1&&t==="right"&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}function $(e,{size:t}){if(h(e)>t)throw new ot({givenSize:h(e),maxSize:t})}function Nt(e,t={}){let{signed:n}=t;t.size&&$(e,{size:t.size});let r=BigInt(e);if(!n)return r;let o=(e.length-2)/2,i=(1n<<BigInt(o)*8n-1n)-1n;return r<=i?r:r-BigInt(`0x${"f".padStart(o*2,"f")}`)-1n}function Kn(e,t={}){return Number(Nt(e,t))}var po=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Xn(e,t={}){return typeof e=="number"||typeof e=="bigint"?y(e,t):typeof e=="string"?_t(e,t):typeof e=="boolean"?Ht(e,t):P(e,t)}function Ht(e,t={}){let n=`0x${Number(e)}`;return typeof t.size=="number"?($(n,{size:t.size}),U(n,{size:t.size})):n}function P(e,t={}){let n="";for(let o=0;o<e.length;o++)n+=po[e[o]];let r=`0x${n}`;return typeof t.size=="number"?($(r,{size:t.size}),U(r,{dir:"right",size:t.size})):r}function y(e,t={}){let{signed:n,size:r}=t,o=BigInt(e),i;r?n?i=(1n<<BigInt(r)*8n-1n)-1n:i=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(i=BigInt(Number.MAX_SAFE_INTEGER));let s=typeof i=="bigint"&&n?-i-1n:0;if(i&&o>i||o<s){let c=typeof e=="bigint"?"n":"";throw new K({max:i?`${i}${c}`:void 0,min:`${s}${c}`,signed:n,size:r,value:`${e}${c}`})}let a=`0x${(n&&o<0?(1n<<BigInt(r*8))+BigInt(o):o).toString(16)}`;return r?U(a,{size:r}):a}var fo=new TextEncoder;function _t(e,t={}){let n=fo.encode(e);return P(n,t)}var lo=new TextEncoder;function st(e,t={}){return typeof e=="number"||typeof e=="bigint"?yo(e,t):typeof e=="boolean"?mo(e,t):A(e)?it(e,t):Gt(e,t)}function mo(e,t={}){let n=new Uint8Array(1);return n[0]=Number(e),typeof t.size=="number"?($(n,{size:t.size}),U(n,{size:t.size})):n}var k={zero:48,nine:57,A:65,F:70,a:97,f:102};function Jn(e){if(e>=k.zero&&e<=k.nine)return e-k.zero;if(e>=k.A&&e<=k.F)return e-(k.A-10);if(e>=k.a&&e<=k.f)return e-(k.a-10)}function it(e,t={}){let n=e;t.size&&($(n,{size:t.size}),n=U(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);let o=r.length/2,i=new Uint8Array(o);for(let s=0,a=0;s<o;s++){let c=Jn(r.charCodeAt(a++)),p=Jn(r.charCodeAt(a++));if(c===void 0||p===void 0)throw new u(`Invalid byte sequence ("${r[a-2]}${r[a-1]}" in "${r}").`);i[s]=c*16+p}return i}function yo(e,t){let n=y(e,t);return it(n)}function Gt(e,t={}){let n=lo.encode(e);return typeof t.size=="number"?($(n,{size:t.size}),U(n,{dir:"right",size:t.size})):n}var at=BigInt(4294967295),Yn=BigInt(32);function bo(e,t=!1){return t?{h:Number(e&at),l:Number(e>>Yn&at)}:{h:Number(e>>Yn&at)|0,l:Number(e&at)|0}}function qn(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:i,l:s}=bo(e[o],t);[n[o],r[o]]=[i,s]}return[n,r]}var Qn=(e,t,n)=>e<<n|t>>>32-n,er=(e,t,n)=>t<<n|e>>>32-n,tr=(e,t,n)=>t<<n-32|e>>>64-n,nr=(e,t,n)=>e<<n-32|t>>>64-n;var sr=[],ir=[],ar=[],ho=BigInt(0),xe=BigInt(1),xo=BigInt(2),go=BigInt(7),wo=BigInt(256),vo=BigInt(113);for(let e=0,t=xe,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],sr.push(2*(5*r+n)),ir.push((e+1)*(e+2)/2%64);let o=ho;for(let i=0;i<7;i++)t=(t<<xe^(t>>go)*vo)%wo,t&xo&&(o^=xe<<(xe<<BigInt(i))-xe);ar.push(o)}var[$o,Ao]=qn(ar,!0),rr=(e,t,n)=>n>32?tr(e,t,n):Qn(e,t,n),or=(e,t,n)=>n>32?nr(e,t,n):er(e,t,n);function Po(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let s=0;s<10;s++)n[s]=e[s]^e[s+10]^e[s+20]^e[s+30]^e[s+40];for(let s=0;s<10;s+=2){let a=(s+8)%10,c=(s+2)%10,p=n[c],d=n[c+1],l=rr(p,d,1)^n[a],m=or(p,d,1)^n[a+1];for(let f=0;f<50;f+=10)e[s+f]^=l,e[s+f+1]^=m}let o=e[2],i=e[3];for(let s=0;s<24;s++){let a=ir[s],c=rr(o,i,a),p=or(o,i,a),d=sr[s];o=e[d],i=e[d+1],e[d]=c,e[d+1]=p}for(let s=0;s<50;s+=10){for(let a=0;a<10;a++)n[a]=e[s+a];for(let a=0;a<10;a++)e[s+a]^=~n[(a+2)%10]&n[(a+4)%10]}e[0]^=$o[r],e[1]^=Ao[r]}n.fill(0)}var ut=class e extends dn{constructor(t,n,r,o=!1,i=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Tt(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=cn(this.state)}keccak(){kt||Ot(this.state32),Po(this.state32,this.rounds),kt||Ot(this.state32),this.posOut=0,this.pos=0}update(t){Bt(this);let{blockLen:n,state:r}=this;t=pn(t);let o=t.length;for(let i=0;i<o;){let s=Math.min(n-this.pos,o-i);for(let a=0;a<s;a++)r[this.pos++]^=t[i++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:n,pos:r,blockLen:o}=this;t[r]^=n,(n&128)!==0&&r===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){Bt(this,!1),an(t),this.finish();let n=this.state,{blockLen:r}=this;for(let o=0,i=t.length;o<i;){this.posOut>=r&&this.keccak();let s=Math.min(r-this.posOut,i-o);t.set(n.subarray(this.posOut,this.posOut+s),o),this.posOut+=s,o+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return Tt(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(un(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:o,rounds:i,enableXOF:s}=this;return t||(t=new e(n,r,o,s,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=o,t.enableXOF=s,t.destroyed=this.destroyed,t}},F=(e,t,n)=>fn(()=>new ut(t,e,n)),_i=F(6,144,224/8),Gi=F(6,136,256/8),Vi=F(6,104,384/8),Wi=F(6,72,512/8),Zi=F(1,144,224/8),ur=F(1,136,256/8),Ki=F(1,104,384/8),Xi=F(1,72,512/8),cr=(e,t,n)=>ln((r={})=>new ut(t,e,r.dkLen===void 0?n:r.dkLen,!0)),Ji=cr(31,168,128/8),Yi=cr(31,136,256/8);function ct(e,t){let n=t||"hex",r=ur(A(e,{strict:!1})?st(e):e);return n==="bytes"?r:Xn(r)}var Io=e=>ct(st(e));function pr(e){return Io(e)}function dr(e){let t=!0,n="",r=0,o="",i=!1;for(let s=0;s<e.length;s++){let a=e[s];if(["(",")",","].includes(a)&&(t=!0),a==="("&&r++,a===")"&&r--,!!t){if(r===0){if(a===" "&&["event","function",""].includes(o))o="";else if(o+=a,a===")"){i=!0;break}continue}if(a===" "){e[s-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}o+=a,n+=a}}if(!i)throw new u("Unable to normalize signature.");return o}var fr=e=>{let t=typeof e=="string"?e:Rt(e);return dr(t)};function pt(e){return pr(fr(e))}var X=e=>_(pt(e),0,4);var I=class extends u{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}};var J=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){let r=this.keys().next().value;r&&this.delete(r)}return this}};var So=/^0x[a-fA-F0-9]{40}$/,Vt=new J(8192);function g(e,t){let{strict:n=!0}=t??{},r=`${e}.${n}`;if(Vt.has(r))return Vt.get(r);let o=So.test(e)?e.toLowerCase()===e?!0:n?dt(e)===e:!0:!1;return Vt.set(r,o),o}var Wt=new J(8192);function dt(e,t){if(Wt.has(`${e}.${t}`))return Wt.get(`${e}.${t}`);let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=ct(Gt(n),"bytes"),o=(t?n.substring(`${t}0x`.length):n).split("");for(let s=0;s<40;s+=2)r[s>>1]>>4>=8&&o[s]&&(o[s]=o[s].toUpperCase()),(r[s>>1]&15)>=8&&o[s+1]&&(o[s+1]=o[s+1].toUpperCase());let i=`0x${o.join("")}`;return Wt.set(`${e}.${t}`,i),i}var ge=class extends u{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},ft=class extends u{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},lt=class extends u{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};var Mo={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 lt({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new ft({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new ge({offset:e});let 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 ge({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let 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,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function lr(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(Mo);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function mr(e,t={}){typeof t.size<"u"&&$(e,{size:t.size});let n=P(e,t);return Nt(n,t)}function yr(e,t={}){let n=e;if(typeof t.size<"u"&&($(n,{size:t.size}),n=he(n)),n.length>1||n[0]>1)throw new rt(n);return!!n[0]}function T(e,t={}){typeof t.size<"u"&&$(e,{size:t.size});let n=P(e,t);return Kn(n,t)}function br(e,t={}){let n=e;return typeof t.size<"u"&&($(n,{size:t.size}),n=he(n,{dir:"right"})),new TextDecoder().decode(n)}function O(e){return typeof e[0]=="string"?we(e):Eo(e)}function Eo(e){let t=0;for(let o of e)t+=o.length;let n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function we(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}var hr=/^(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)?$/;function Y(e,t){if(e.length!==t.length)throw new Je({expectedLength:e.length,givenLength:t.length});let n=To({params:e,values:t}),r=Kt(n);return r.length===0?"0x":r}function To({params:e,values:t}){let n=[];for(let r=0;r<e.length;r++)n.push(Zt({param:e[r],value:t[r]}));return n}function Zt({param:e,value:t}){let n=mt(e.type);if(n){let[r,o]=n;return ko(t,{length:r,param:{...e,type:o}})}if(e.type==="tuple")return jo(t,{param:e});if(e.type==="address")return Bo(t);if(e.type==="bool")return zo(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){let r=e.type.startsWith("int"),[,,o="256"]=hr.exec(e.type)??[];return Co(t,{signed:r,size:Number(o)})}if(e.type.startsWith("bytes"))return Oo(t,{param:e});if(e.type==="string")return Ro(t);throw new et(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Kt(e){let t=0;for(let i=0;i<e.length;i++){let{dynamic:s,encoded:a}=e[i];s?t+=32:t+=h(a)}let n=[],r=[],o=0;for(let i=0;i<e.length;i++){let{dynamic:s,encoded:a}=e[i];s?(n.push(y(t+o,{size:32})),r.push(a),o+=h(a)):n.push(a)}return O([...n,...r])}function Bo(e){if(!g(e))throw new I({address:e});return{dynamic:!1,encoded:B(e.toLowerCase())}}function ko(e,{length:t,param:n}){let r=t===null;if(!Array.isArray(e))throw new nt(e);if(!r&&e.length!==t)throw new Ke({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let o=!1,i=[];for(let s=0;s<e.length;s++){let a=Zt({param:n,value:e[s]});a.dynamic&&(o=!0),i.push(a)}if(r||o){let s=Kt(i);if(r){let a=y(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?O([a,s]):a}}if(o)return{dynamic:!0,encoded:s}}return{dynamic:!1,encoded:O(i.map(({encoded:s})=>s))}}function Oo(e,{param:t}){let[,n]=t.type.split("bytes"),r=h(e);if(!n){let o=e;return r%32!==0&&(o=B(o,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:O([B(y(r,{size:32})),o])}}if(r!==Number.parseInt(n))throw new Xe({expectedSize:Number.parseInt(n),value:e});return{dynamic:!1,encoded:B(e,{dir:"right"})}}function zo(e){if(typeof e!="boolean")throw new u(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:B(Ht(e))}}function Co(e,{signed:t,size:n=256}){if(typeof n=="number"){let r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new K({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:y(e,{size:32,signed:t})}}function Ro(e){let t=_t(e),n=Math.ceil(h(t)/32),r=[];for(let o=0;o<n;o++)r.push(B(_(t,o*32,(o+1)*32),{dir:"right"}));return{dynamic:!0,encoded:O([B(y(h(t),{size:32})),...r])}}function jo(e,{param:t}){let n=!1,r=[];for(let o=0;o<t.components.length;o++){let i=t.components[o],s=Array.isArray(e)?o:i.name,a=Zt({param:i,value:e[s]});r.push(a),a.dynamic&&(n=!0)}return{dynamic:n,encoded:n?Kt(r):O(r.map(({encoded:o})=>o))}}function mt(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function yt(e,t){let n=typeof t=="string"?it(t):t,r=lr(n);if(h(n)===0&&e.length>0)throw new Z;if(h(t)&&h(t)<32)throw new Ze({data:typeof t=="string"?t:P(t),params:e,size:h(t)});let o=0,i=[];for(let s=0;s<e.length;++s){let a=e[s];r.setPosition(o);let[c,p]=q(r,a,{staticPosition:0});o+=p,i.push(c)}return i}function q(e,t,{staticPosition:n}){let r=mt(t.type);if(r){let[o,i]=r;return Fo(e,{...t,type:i},{length:o,staticPosition:n})}if(t.type==="tuple")return Ho(e,t,{staticPosition:n});if(t.type==="address")return Uo(e);if(t.type==="bool")return Lo(e);if(t.type.startsWith("bytes"))return Do(e,t,{staticPosition:n});if(t.type.startsWith("uint")||t.type.startsWith("int"))return No(e,t);if(t.type==="string")return _o(e,{staticPosition:n});throw new tt(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}var xr=32,Xt=32;function Uo(e){let t=e.readBytes(32);return[dt(P(Dt(t,-20))),32]}function Fo(e,t,{length:n,staticPosition:r}){if(!n){let s=T(e.readBytes(Xt)),a=r+s,c=a+xr;e.setPosition(a);let p=T(e.readBytes(xr)),d=ve(t),l=0,m=[];for(let f=0;f<p;++f){e.setPosition(c+(d?f*32:l));let[b,w]=q(e,t,{staticPosition:c});l+=w,m.push(b)}return e.setPosition(r+32),[m,32]}if(ve(t)){let s=T(e.readBytes(Xt)),a=r+s,c=[];for(let p=0;p<n;++p){e.setPosition(a+p*32);let[d]=q(e,t,{staticPosition:a});c.push(d)}return e.setPosition(r+32),[c,32]}let o=0,i=[];for(let s=0;s<n;++s){let[a,c]=q(e,t,{staticPosition:r+o});o+=c,i.push(a)}return[i,o]}function Lo(e){return[yr(e.readBytes(32),{size:32}),32]}function Do(e,t,{staticPosition:n}){let[r,o]=t.type.split("bytes");if(!o){let s=T(e.readBytes(32));e.setPosition(n+s);let a=T(e.readBytes(32));if(a===0)return e.setPosition(n+32),["0x",32];let c=e.readBytes(a);return e.setPosition(n+32),[P(c),32]}return[P(e.readBytes(Number.parseInt(o),32)),32]}function No(e,t){let n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256"),o=e.readBytes(32);return[r>48?mr(o,{signed:n}):T(o,{signed:n}),32]}function Ho(e,t,{staticPosition:n}){let r=t.components.length===0||t.components.some(({name:s})=>!s),o=r?[]:{},i=0;if(ve(t)){let s=T(e.readBytes(Xt)),a=n+s;for(let c=0;c<t.components.length;++c){let p=t.components[c];e.setPosition(a+i);let[d,l]=q(e,p,{staticPosition:a});i+=l,o[r?c:p?.name]=d}return e.setPosition(n+32),[o,32]}for(let s=0;s<t.components.length;++s){let a=t.components[s],[c,p]=q(e,a,{staticPosition:n});o[r?s:a?.name]=c,i+=p}return[o,i]}function _o(e,{staticPosition:t}){let n=T(e.readBytes(32)),r=t+n;e.setPosition(r);let o=T(e.readBytes(32));if(o===0)return e.setPosition(t+32),["",32];let i=e.readBytes(o,32),s=br(he(i));return e.setPosition(t+32),[s,32]}function ve(e){let{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return e.components?.some(ve);let n=mt(e.type);return!!(n&&ve({...e,type:n[1]}))}function gr(e){let{abi:t,data:n}=e,r=_(n,0,4);if(r==="0x")throw new Z;let i=[...t||[],Gn,Vn].find(s=>s.type==="error"&&r===X(H(s)));if(!i)throw new Ye(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:i,args:"inputs"in i&&i.inputs&&i.inputs.length>0?yt(i.inputs,_(n,4)):void 0,errorName:i.name}}var Q=(e,t,n)=>JSON.stringify(e,(r,o)=>{let i=typeof o=="bigint"?o.toString():o;return typeof t=="function"?t(r,i):i},n);var wr=pt;function bt(e){let{abi:t,args:n=[],name:r}=e,o=A(r,{strict:!1}),i=t.filter(a=>o?a.type==="function"?X(a)===r:a.type==="event"?wr(a)===r:!1:"name"in a&&a.name===r);if(i.length===0)return;if(i.length===1)return i[0];let s;for(let a of i){if(!("inputs"in a))continue;if(!n||n.length===0){if(!a.inputs||a.inputs.length===0)return a;continue}if(!a.inputs||a.inputs.length===0||a.inputs.length!==n.length)continue;if(n.every((p,d)=>{let l="inputs"in a&&a.inputs[d];return l?Jt(p,l):!1})){if(s&&"inputs"in s&&s.inputs){let p=vr(a.inputs,s.inputs,n);if(p)throw new Qe({abiItem:a,type:p[0]},{abiItem:s,type:p[1]})}s=a}}return s||i[0]}function Jt(e,t){let n=typeof e,r=t.type;switch(r){case"address":return g(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((o,i)=>Jt(Object.values(e)[i],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)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(o=>Jt(o,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function vr(e,t,n){for(let r in e){let o=e[r],i=t[r];if(o.type==="tuple"&&i.type==="tuple"&&"components"in o&&"components"in i)return vr(o.components,i.components,n[r]);let s=[o.type,i.type];if(s.includes("address")&&s.includes("bytes20")?!0:s.includes("address")&&s.includes("string")?g(n[r],{strict:!1}):s.includes("address")&&s.includes("bytes")?g(n[r],{strict:!1}):!1)return s}}var $r={gwei:9,wei:18},Ar={ether:-9,wei:9};function ht(e,t){let n=e.toString(),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}`:""}`}function Pr(e,t="wei"){return ht(e,$r[t])}function z(e,t="wei"){return ht(e,Ar[t])}var xt=class extends u{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}},gt=class extends u{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}};function Ir(e){return e.reduce((t,{slot:n,value:r})=>`${t} ${n}: ${r}
16
+ `,"")}function Sr(e){return e.reduce((t,{address:n,...r})=>{let o=`${t} ${n}:
17
+ `;return r.nonce&&(o+=` nonce: ${r.nonce}
18
+ `),r.balance&&(o+=` balance: ${r.balance}
19
+ `),r.code&&(o+=` code: ${r.code}
20
+ `),r.state&&(o+=` state:
21
+ `,o+=Ir(r.state)),r.stateDiff&&(o+=` stateDiff:
22
+ `,o+=Ir(r.stateDiff)),o},` State Override:
23
+ `).slice(0,-1)}function Mr(e){let t=Object.entries(e).map(([r,o])=>o===void 0||o===!1?null:[r,o]).filter(Boolean),n=t.reduce((r,[o])=>Math.max(r,o.length),0);return t.map(([r,o])=>` ${`${r}:`.padEnd(n+1)} ${o}`).join(`
24
+ `)}var wt=class extends u{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
25
+ `),{name:"FeeConflictError"})}};var $e=e=>e;var vt=class extends u{constructor(t,{account:n,docsPath:r,chain:o,data:i,gas:s,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:p,nonce:d,to:l,value:m,stateOverride:f}){let b=n?W(n):void 0,w=Mr({from:b?.address,to:l,value:typeof m<"u"&&`${Pr(m)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:s,gasPrice:typeof a<"u"&&`${z(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${z(c)} gwei`,maxPriorityFeePerGas:typeof p<"u"&&`${z(p)} gwei`,nonce:d});f&&(w+=`
26
+ ${Sr(f)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",w].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}};var $t=class extends u{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory "${t}".`:""}`,{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"})}},At=class extends u{constructor({data:t,message:n}){super(n||"",{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=t}};var Yt="/docs/contract/decodeFunctionResult";function Er(e){let{abi:t,args:n,functionName:r,data:o}=e,i=t[0];if(r){let a=bt({abi:t,args:n,name:r});if(!a)throw new j(r,{docsPath:Yt});i=a}if(i.type!=="function")throw new j(void 0,{docsPath:Yt});if(!i.outputs)throw new qe(i.name,{docsPath:Yt});let s=yt(i.outputs,o);if(s&&s.length>1)return s;if(s&&s.length===1)return s[0]}var qt="/docs/contract/encodeDeployData";function Qt(e){let{abi:t,args:n,bytecode:r}=e;if(!n||n.length===0)return r;let o=t.find(s=>"type"in s&&s.type==="constructor");if(!o)throw new We({docsPath:qt});if(!("inputs"in o))throw new le({docsPath:qt});if(!o.inputs||o.inputs.length===0)throw new le({docsPath:qt});let i=Y(o.inputs,n);return we([r,i])}var Tr="/docs/contract/encodeFunctionData";function Br(e){let{abi:t,args:n,functionName:r}=e,o=t[0];if(r){let i=bt({abi:t,args:n,name:r});if(!i)throw new j(r,{docsPath:Tr});o=i}if(o.type!=="function")throw new j(void 0,{docsPath:Tr});return{abi:[o],functionName:X(H(o))}}function kr(e){let{args:t}=e,{abi:n,functionName:r}=e.abi.length===1&&e.functionName?.startsWith("0x")?e:Br(e),o=n[0],i=r,s="inputs"in o&&o.inputs?Y(o.inputs,t??[]):void 0;return we([i,s??"0x"])}function Or({blockNumber:e,chain:t,contract:n}){let r=t?.contracts?.[n];if(!r)throw new N({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new N({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}var C=class extends u{constructor({cause:t,message:n}={}){let r=n?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}};Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(C,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});var L=class extends u{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${z(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}};Object.defineProperty(L,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});var ee=class extends u{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${z(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}};Object.defineProperty(ee,"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/});var te=class extends u{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}};Object.defineProperty(te,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});var ne=class extends u{constructor({cause:t,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
27
+ `),{cause:t,name:"NonceTooLowError"})}};Object.defineProperty(ne,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});var re=class extends u{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}};Object.defineProperty(re,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});var oe=class extends u{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
28
+ `),{cause:t,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(oe,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});var se=class extends u{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}};Object.defineProperty(se,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});var ie=class extends u{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}};Object.defineProperty(ie,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});var ae=class extends u{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}};Object.defineProperty(ae,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});var D=class extends u{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${z(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${z(r)} gwei`:""}).`].join(`
29
+ `),{cause:t,name:"TipAboveFeeCapError"})}};Object.defineProperty(D,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});var ue=class extends u{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:"UnknownNodeError"})}};var Ae=class extends u{constructor({body:t,cause:n,details:r,headers:o,status:i,url:s}){super("HTTP request failed.",{cause:n,details:r,metaMessages:[i&&`Status: ${i}`,`URL: ${$e(s)}`,t&&`Request body: ${Q(t)}`].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=t,this.headers=o,this.status=i,this.url=s}};function zr(e,t){let n=(e.details||"").toLowerCase(),r=e instanceof u?e.walk(o=>o?.code===C.code):e;return r instanceof u?new C({cause:e,message:r.details}):C.nodeMessage.test(n)?new C({cause:e,message:e.details}):L.nodeMessage.test(n)?new L({cause:e,maxFeePerGas:t?.maxFeePerGas}):ee.nodeMessage.test(n)?new ee({cause:e,maxFeePerGas:t?.maxFeePerGas}):te.nodeMessage.test(n)?new te({cause:e,nonce:t?.nonce}):ne.nodeMessage.test(n)?new ne({cause:e,nonce:t?.nonce}):re.nodeMessage.test(n)?new re({cause:e,nonce:t?.nonce}):oe.nodeMessage.test(n)?new oe({cause:e}):se.nodeMessage.test(n)?new se({cause:e,gas:t?.gas}):ie.nodeMessage.test(n)?new ie({cause:e,gas:t?.gas}):ae.nodeMessage.test(n)?new ae({cause:e}):D.nodeMessage.test(n)?new D({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new ue({cause:e})}function Cr(e,{docsPath:t,...n}){let r=(()=>{let o=zr(e,n);return o instanceof ue?e:o})();return new vt(r,{docsPath:t,...n})}function Rr(e,{format:t}){if(!t)return{};let n={};function r(i){let s=Object.keys(i);for(let a of s)a in e&&(n[a]=e[a]),i[a]&&typeof i[a]=="object"&&!Array.isArray(i[a])&&r(i[a])}let o=t(e||{});return r(o),n}var Go={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function jr(e){let t={};return typeof e.authorizationList<"u"&&(t.authorizationList=Vo(e.authorizationList)),typeof e.accessList<"u"&&(t.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(t.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?t.blobs=e.blobs.map(n=>P(n)):t.blobs=e.blobs),typeof e.data<"u"&&(t.data=e.data),typeof e.from<"u"&&(t.from=e.from),typeof e.gas<"u"&&(t.gas=y(e.gas)),typeof e.gasPrice<"u"&&(t.gasPrice=y(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(t.maxFeePerBlobGas=y(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(t.maxFeePerGas=y(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=y(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(t.nonce=y(e.nonce)),typeof e.to<"u"&&(t.to=e.to),typeof e.type<"u"&&(t.type=Go[e.type]),typeof e.value<"u"&&(t.value=y(e.value)),t}function Vo(e){return e.map(t=>({address:t.contractAddress,r:t.r,s:t.s,chainId:y(t.chainId),nonce:y(t.nonce),...typeof t.yParity<"u"?{yParity:y(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:y(t.v)}:{}}))}function Ur(){let e=()=>{},t=()=>{};return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}var en=new Map;function Fr({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){let i=async()=>{let d=c();s();let l=d.map(({args:m})=>m);l.length!==0&&e(l).then(m=>{o&&Array.isArray(m)&&m.sort(o);for(let f=0;f<d.length;f++){let{resolve:b}=d[f];b?.([m[f],m])}}).catch(m=>{for(let f=0;f<d.length;f++){let{reject:b}=d[f];b?.(m)}})},s=()=>en.delete(t),a=()=>c().map(({args:d})=>d),c=()=>en.get(t)||[],p=d=>en.set(t,[...c(),d]);return{flush:s,async schedule(d){let{promise:l,resolve:m,reject:f}=Ur();return n?.([...a(),d])&&i(),c().length>0?(p({args:d,resolve:m,reject:f}),l):(p({args:d,resolve:m,reject:f}),setTimeout(i,r),l)}}}function Lr(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:r})=>{if(n.length!==66)throw new be({size:n.length,targetSize:66,type:"hex"});if(r.length!==66)throw new be({size:r.length,targetSize:66,type:"hex"});return t[n]=r,t},{})}function Wo(e){let{balance:t,nonce:n,state:r,stateDiff:o,code:i}=e,s={};if(i!==void 0&&(s.code=i),t!==void 0&&(s.balance=y(t)),n!==void 0&&(s.nonce=y(n)),r!==void 0&&(s.state=Lr(r)),o!==void 0){if(s.state)throw new gt;s.stateDiff=Lr(o)}return s}function Dr(e){if(!e)return;let t={};for(let{address:n,...r}of e){if(!g(n,{strict:!1}))throw new I({address:n});if(t[n])throw new xt({address:n});t[n]=Wo(r)}return t}var Rc=2n**(8n-1n)-1n,jc=2n**(16n-1n)-1n,Uc=2n**(24n-1n)-1n,Fc=2n**(32n-1n)-1n,Lc=2n**(40n-1n)-1n,Dc=2n**(48n-1n)-1n,Nc=2n**(56n-1n)-1n,Hc=2n**(64n-1n)-1n,_c=2n**(72n-1n)-1n,Gc=2n**(80n-1n)-1n,Vc=2n**(88n-1n)-1n,Wc=2n**(96n-1n)-1n,Zc=2n**(104n-1n)-1n,Kc=2n**(112n-1n)-1n,Xc=2n**(120n-1n)-1n,Jc=2n**(128n-1n)-1n,Yc=2n**(136n-1n)-1n,qc=2n**(144n-1n)-1n,Qc=2n**(152n-1n)-1n,ep=2n**(160n-1n)-1n,tp=2n**(168n-1n)-1n,np=2n**(176n-1n)-1n,rp=2n**(184n-1n)-1n,op=2n**(192n-1n)-1n,sp=2n**(200n-1n)-1n,ip=2n**(208n-1n)-1n,ap=2n**(216n-1n)-1n,up=2n**(224n-1n)-1n,cp=2n**(232n-1n)-1n,pp=2n**(240n-1n)-1n,dp=2n**(248n-1n)-1n,fp=2n**(256n-1n)-1n,lp=-(2n**(8n-1n)),mp=-(2n**(16n-1n)),yp=-(2n**(24n-1n)),bp=-(2n**(32n-1n)),hp=-(2n**(40n-1n)),xp=-(2n**(48n-1n)),gp=-(2n**(56n-1n)),wp=-(2n**(64n-1n)),vp=-(2n**(72n-1n)),$p=-(2n**(80n-1n)),Ap=-(2n**(88n-1n)),Pp=-(2n**(96n-1n)),Ip=-(2n**(104n-1n)),Sp=-(2n**(112n-1n)),Mp=-(2n**(120n-1n)),Ep=-(2n**(128n-1n)),Tp=-(2n**(136n-1n)),Bp=-(2n**(144n-1n)),kp=-(2n**(152n-1n)),Op=-(2n**(160n-1n)),zp=-(2n**(168n-1n)),Cp=-(2n**(176n-1n)),Rp=-(2n**(184n-1n)),jp=-(2n**(192n-1n)),Up=-(2n**(200n-1n)),Fp=-(2n**(208n-1n)),Lp=-(2n**(216n-1n)),Dp=-(2n**(224n-1n)),Np=-(2n**(232n-1n)),Hp=-(2n**(240n-1n)),_p=-(2n**(248n-1n)),Gp=-(2n**(256n-1n)),Vp=2n**8n-1n,Wp=2n**16n-1n,Zp=2n**24n-1n,Kp=2n**32n-1n,Xp=2n**40n-1n,Jp=2n**48n-1n,Yp=2n**56n-1n,qp=2n**64n-1n,Qp=2n**72n-1n,e0=2n**80n-1n,t0=2n**88n-1n,n0=2n**96n-1n,r0=2n**104n-1n,o0=2n**112n-1n,s0=2n**120n-1n,i0=2n**128n-1n,a0=2n**136n-1n,u0=2n**144n-1n,c0=2n**152n-1n,p0=2n**160n-1n,d0=2n**168n-1n,f0=2n**176n-1n,l0=2n**184n-1n,m0=2n**192n-1n,y0=2n**200n-1n,b0=2n**208n-1n,h0=2n**216n-1n,x0=2n**224n-1n,g0=2n**232n-1n,w0=2n**240n-1n,v0=2n**248n-1n,Nr=2n**256n-1n;function Hr(e){let{account:t,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:o,to:i}=e,s=t?W(t):void 0;if(s&&!g(s.address))throw new I({address:s.address});if(i&&!g(i))throw new I({address:i});if(typeof n<"u"&&(typeof r<"u"||typeof o<"u"))throw new wt;if(r&&r>Nr)throw new L({maxFeePerGas:r});if(o&&r&&o>r)throw new D({maxFeePerGas:r,maxPriorityFeePerGas:o})}async function _r(e,t){let{account:n=e.account,batch:r=!!e.batch?.multicall,blockNumber:o,blockTag:i="latest",accessList:s,blobs:a,code:c,data:p,factory:d,factoryData:l,gas:m,gasPrice:f,maxFeePerBlobGas:b,maxFeePerGas:w,maxPriorityFeePerGas:ce,nonce:pe,to:M,value:Pe,stateOverride:Vr,...Wr}=t,tn=n?W(n):void 0;if(c&&(d||l))throw new u("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(c&&M)throw new u("Cannot provide both `code` & `to` as parameters.");let nn=c&&p,rn=d&&l&&M&&p,on=nn||rn,Zr=nn?Xo({code:c,data:p}):rn?Jo({data:p,factory:d,factoryData:l,to:M}):p;try{Hr(t);let G=(o?y(o):void 0)||i,de=Dr(Vr),Ie=e.chain?.formatters?.transactionRequest?.format,Se=(Ie||jr)({...Rr(Wr,{format:Ie}),from:tn?.address,accessList:s,blobs:a,data:Zr,gas:m,gasPrice:f,maxFeePerBlobGas:b,maxFeePerGas:w,maxPriorityFeePerGas:ce,nonce:pe,to:on?void 0:M,value:Pe});if(r&&Zo({request:Se})&&!de)try{return await Ko(e,{...Se,blockNumber:o,blockTag:i})}catch(Et){if(!(Et instanceof fe)&&!(Et instanceof N))throw Et}let sn=await e.request({method:"eth_call",params:de?[Se,G,de]:[Se,G]});return sn==="0x"?{data:void 0}:{data:sn}}catch(Mt){let G=Yo(Mt),{offchainLookup:de,offchainLookupSignature:Ie}=await import("./ccip-P2XLZ2Q3.js");if(e.ccipRead!==!1&&G?.slice(0,10)===Ie&&M)return{data:await de(e,{data:G,to:M})};throw on&&G?.slice(0,10)==="0x101bb98d"?new $t({factory:d}):Cr(Mt,{...t,account:tn,chain:e.chain})}}function Zo({request:e}){let{data:t,to:n,...r}=e;return!(!t||t.startsWith(Dn)||!n||Object.values(r).filter(o=>typeof o<"u").length>0)}async function Ko(e,t){let{batchSize:n=1024,wait:r=0}=typeof e.batch?.multicall=="object"?e.batch.multicall:{},{blockNumber:o,blockTag:i="latest",data:s,multicallAddress:a,to:c}=t,p=a;if(!p){if(!e.chain)throw new fe;p=Or({blockNumber:o,chain:e.chain,contract:"multicall3"})}let l=(o?y(o):void 0)||i,{schedule:m}=Fr({id:`${e.uid}.${l}`,wait:r,shouldSplitBatch(w){return w.reduce((pe,{data:M})=>pe+(M.length-2),0)>n*2},fn:async w=>{let ce=w.map(Pe=>({allowFailure:!0,callData:Pe.data,target:Pe.to})),pe=kr({abi:Ut,args:[ce],functionName:"aggregate3"}),M=await e.request({method:"eth_call",params:[{data:pe,to:p},l]});return Er({abi:Ut,args:[ce],functionName:"aggregate3",data:M||"0x"})}}),[{returnData:f,success:b}]=await m({data:s,to:c});if(!b)throw new At({data:f});return f==="0x"?{data:void 0}:{data:f}}function Xo(e){let{code:t,data:n}=e;return Qt({abi:_e(["constructor(bytes, bytes)"]),bytecode:Nn,args:[t,n]})}function Jo(e){let{data:t,factory:n,factoryData:r,to:o}=e;return Qt({abi:_e(["constructor(address, bytes, address, bytes)"]),bytecode:Hn,args:[o,t,n,r]})}function Yo(e){if(!(e instanceof u))return;let t=e.walk();return typeof t?.data=="object"?t.data?.data:t.data}var Pt=class extends u{constructor({callbackSelector:t,cause:n,data:r,extraData:o,sender:i,urls:s}){super(n.shortMessage||"An error occurred while fetching for an offchain result.",{cause:n,metaMessages:[...n.metaMessages||[],n.metaMessages?.length?"":[],"Offchain Gateway Call:",s&&[" Gateway URL(s):",...s.map(a=>` ${$e(a)}`)],` Sender: ${i}`,` Data: ${r}`,` Callback selector: ${t}`,` Extra data: ${o}`].flat(),name:"OffchainLookupError"})}},It=class extends u{constructor({result:t,url:n}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${$e(n)}`,`Response: ${Q(t)}`],name:"OffchainLookupResponseMalformedError"})}},St=class extends u{constructor({sender:t,to:n}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${n}`,`OffchainLookup sender address: ${t}`],name:"OffchainLookupSenderMismatchError"})}};function Gr(e,t){if(!g(e,{strict:!1}))throw new I({address:e});if(!g(t,{strict:!1}))throw new I({address:t});return e.toLowerCase()===t.toLowerCase()}var fd="0x556f1830",qo={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 ld(e,{blockNumber:t,blockTag:n,data:r,to:o}){let{args:i}=gr({data:r,abi:[qo]}),[s,a,c,p,d]=i,{ccipRead:l}=e,m=l&&typeof l?.request=="function"?l.request:Qo;try{if(!Gr(o,s))throw new St({sender:s,to:o});let f=await m({data:c,sender:s,urls:a}),{data:b}=await _r(e,{blockNumber:t,blockTag:n,data:O([p,Y([{type:"bytes"},{type:"bytes"}],[f,d])]),to:o});return b}catch(f){throw new Pt({callbackSelector:p,cause:f,data:r,extraData:d,sender:s,urls:a})}}async function Qo({data:e,sender:t,urls:n}){let r=new Error("An unknown error occurred.");for(let o=0;o<n.length;o++){let i=n[o],s=i.includes("{data}")?"GET":"POST",a=s==="POST"?{data:e,sender:t}:void 0,c=s==="POST"?{"Content-Type":"application/json"}:{};try{let p=await fetch(i.replace("{sender}",t).replace("{data}",e),{body:JSON.stringify(a),headers:c,method:s}),d;if(p.headers.get("Content-Type")?.startsWith("application/json")?d=(await p.json()).data:d=await p.text(),!p.ok){r=new Ae({body:a,details:d?.error?Q(d.error):p.statusText,headers:p.headers,status:p.status,url:i});continue}if(!A(d)){r=new It({result:d,url:i});continue}return d}catch(p){r=new Ae({body:a,details:p.message,url:i})}}throw r}export{A as a,Nt as b,Kn as c,Xn as d,ct as e,dt as f,fd as g,qo as h,ld as i,Qo as j};
@@ -0,0 +1,29 @@
1
+ import{a as Tt,b as an,d as Bt,e as un,f as cn,i as kt,j as Ot,k as pn,m as dn,n as fn,o as ln}from"./chunk-FK7PQ7YB.js";var mn="1.0.8";var x=class e extends Error{constructor(t,n={}){let r=n.cause instanceof e?n.cause.details:n.cause?.message?n.cause.message:n.details,o=n.cause instanceof e&&n.cause.docsPath||n.docsPath,i=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...o?[`Docs: https://abitype.dev${o}`]:[],...r?[`Details: ${r}`]:[],`Version: abitype@${mn}`].join(`
2
+ `);super(i),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"}),n.cause&&(this.cause=n.cause),this.details=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.shortMessage=t}};function v(e,t){return e.exec(t)?.groups}var zt=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Ct=/^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)?$/,Me=/^\(.+?\).*?$/;var yn=/^tuple(?<array>(\[(\d*)\])*)$/;function Ee(e){let t=e.type;if(yn.test(e.type)&&"components"in e){t="(";let n=e.components.length;for(let o=0;o<n;o++){let i=e.components[o];t+=Ee(i),o<n-1&&(t+=", ")}let r=v(yn,e.type);return t+=`)${r?.array??""}`,Ee({...e,type:t})}return"indexed"in e&&e.indexed&&(t=`${t} indexed`),e.name?`${t} ${e.name}`:t}function V(e){let t="",n=e.length;for(let r=0;r<n;r++){let o=e[r];t+=Ee(o),r!==n-1&&(t+=", ")}return t}function Rt(e){return e.type==="function"?`function ${e.name}(${V(e.inputs)})${e.stateMutability&&e.stateMutability!=="nonpayable"?` ${e.stateMutability}`:""}${e.outputs?.length?` returns (${V(e.outputs)})`:""}`:e.type==="event"?`event ${e.name}(${V(e.inputs)})`:e.type==="error"?`error ${e.name}(${V(e.inputs)})`:e.type==="constructor"?`constructor(${V(e.inputs)})${e.stateMutability==="payable"?" payable":""}`:e.type==="fallback"?`fallback() external${e.stateMutability==="payable"?" payable":""}`:"receive() external payable"}var bn=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function hn(e){return bn.test(e)}function xn(e){return v(bn,e)}var gn=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function wn(e){return gn.test(e)}function vn(e){return v(gn,e)}var $n=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function An(e){return $n.test(e)}function Pn(e){return v($n,e)}var In=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function Te(e){return In.test(e)}function Sn(e){return v(In,e)}var Mn=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function En(e){return Mn.test(e)}function Tn(e){return v(Mn,e)}var Bn=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function kn(e){return Bn.test(e)}function On(e){return v(Bn,e)}var Kr=/^receive\(\) external payable$/;function zn(e){return Kr.test(e)}var Cn=new Set(["indexed"]),Be=new Set(["calldata","memory","storage"]);var ke=class extends x{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" 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"})}},Oe=class extends x{constructor({type:t}){super("Unknown type.",{metaMessages:[`Type "${t}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}};var ze=class extends x{constructor({param:t}){super("Invalid ABI parameter.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}},Ce=class extends x{constructor({param:t,name:n}){super("Invalid ABI parameter.",{details:t,metaMessages:[`"${n}" 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"})}},Re=class extends x{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}},je=class extends x{constructor({param:t,type:n,modifier:r}){super("Invalid ABI parameter.",{details:t,metaMessages:[`Modifier "${r}" not allowed${n?` in "${n}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${r}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}},Ue=class extends x{constructor({abiParameter:t}){super("Invalid ABI parameter.",{details:JSON.stringify(t,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}};var E=class extends x{constructor({signature:t,type:n}){super(`Invalid ${n} signature.`,{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}},Fe=class extends x{constructor({signature:t}){super("Unknown signature.",{details:t}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}},Le=class extends x{constructor({signature:t}){super("Invalid struct signature.",{details:t,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}};var De=class extends x{constructor({type:t}){super("Circular reference detected.",{metaMessages:[`Struct "${t}" is a circular reference.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"CircularReferenceError"})}};var Ne=class extends x{constructor({current:t,depth:n}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${n>0?"opening":"closing"} parentheses.`],details:`Depth "${n}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}};function Rn(e,t,n){let r="";if(n)for(let o of Object.entries(n)){if(!o)continue;let i="";for(let s of o[1])i+=`[${s.type}${s.name?`:${s.name}`:""}]`;r+=`(${o[0]}{${i}})`}return t?`${t}:${e}${r}`:e}var He=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 jn(e,t={}){if(An(e))return Xr(e,t);if(wn(e))return Jr(e,t);if(hn(e))return Yr(e,t);if(En(e))return qr(e,t);if(kn(e))return Qr(e);if(zn(e))return{type:"receive",stateMutability:"payable"};throw new Fe({signature:e})}function Xr(e,t={}){let n=Pn(e);if(!n)throw new E({signature:e,type:"function"});let r=S(n.parameters),o=[],i=r.length;for(let a=0;a<i;a++)o.push(R(r[a],{modifiers:Be,structs:t,type:"function"}));let s=[];if(n.returns){let a=S(n.returns),c=a.length;for(let p=0;p<c;p++)s.push(R(a[p],{modifiers:Be,structs:t,type:"function"}))}return{name:n.name,type:"function",stateMutability:n.stateMutability??"nonpayable",inputs:o,outputs:s}}function Jr(e,t={}){let n=vn(e);if(!n)throw new E({signature:e,type:"event"});let r=S(n.parameters),o=[],i=r.length;for(let s=0;s<i;s++)o.push(R(r[s],{modifiers:Cn,structs:t,type:"event"}));return{name:n.name,type:"event",inputs:o}}function Yr(e,t={}){let n=xn(e);if(!n)throw new E({signature:e,type:"error"});let r=S(n.parameters),o=[],i=r.length;for(let s=0;s<i;s++)o.push(R(r[s],{structs:t,type:"error"}));return{name:n.name,type:"error",inputs:o}}function qr(e,t={}){let n=Tn(e);if(!n)throw new E({signature:e,type:"constructor"});let r=S(n.parameters),o=[],i=r.length;for(let s=0;s<i;s++)o.push(R(r[s],{structs:t,type:"constructor"}));return{type:"constructor",stateMutability:n.stateMutability??"nonpayable",inputs:o}}function Qr(e){let t=On(e);if(!t)throw new E({signature:e,type:"fallback"});return{type:"fallback",stateMutability:t.stateMutability??"nonpayable"}}var eo=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,to=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,no=/^u?int$/;function R(e,t){let n=Rn(e,t?.type,t?.structs);if(He.has(n))return He.get(n);let r=Me.test(e),o=v(r?to:eo,e);if(!o)throw new ze({param:e});if(o.name&&oo(o.name))throw new Ce({param:e,name:o.name});let i=o.name?{name:o.name}:{},s=o.modifier==="indexed"?{indexed:!0}:{},a=t?.structs??{},c,p={};if(r){c="tuple";let l=S(o.type),m=[],f=l.length;for(let b=0;b<f;b++)m.push(R(l[b],{structs:a}));p={components:m}}else if(o.type in a)c="tuple",p={components:a[o.type]};else if(no.test(o.type))c=`${o.type}256`;else if(c=o.type,t?.type!=="struct"&&!jt(c))throw new Oe({type:c});if(o.modifier){if(!t?.modifiers?.has?.(o.modifier))throw new Re({param:e,type:t?.type,modifier:o.modifier});if(Be.has(o.modifier)&&!so(c,!!o.array))throw new je({param:e,type:t?.type,modifier:o.modifier})}let d={type:`${c}${o.array??""}`,...i,...s,...p};return He.set(n,d),d}function S(e,t=[],n="",r=0){let o=e.trim().length;for(let i=0;i<o;i++){let s=e[i],a=e.slice(i+1);switch(s){case",":return r===0?S(a,[...t,n.trim()]):S(a,t,`${n}${s}`,r);case"(":return S(a,t,`${n}${s}`,r+1);case")":return S(a,t,`${n}${s}`,r-1);default:return S(a,t,`${n}${s}`,r)}}if(n==="")return t;if(r!==0)throw new Ne({current:n,depth:r});return t.push(n.trim()),t}function jt(e){return e==="address"||e==="bool"||e==="function"||e==="string"||zt.test(e)||Ct.test(e)}var ro=/^(?: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 oo(e){return e==="address"||e==="bool"||e==="function"||e==="string"||e==="tuple"||zt.test(e)||Ct.test(e)||ro.test(e)}function so(e,t){return t||e==="bytes"||e==="string"||e==="tuple"}function Un(e){let t={},n=e.length;for(let s=0;s<n;s++){let a=e[s];if(!Te(a))continue;let c=Sn(a);if(!c)throw new E({signature:a,type:"struct"});let p=c.properties.split(";"),d=[],l=p.length;for(let m=0;m<l;m++){let b=p[m].trim();if(!b)continue;let w=R(b,{type:"struct"});d.push(w)}if(!d.length)throw new Le({signature:a});t[c.name]=d}let r={},o=Object.entries(t),i=o.length;for(let s=0;s<i;s++){let[a,c]=o[s];r[a]=Fn(c,t)}return r}var io=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function Fn(e,t,n=new Set){let r=[],o=e.length;for(let i=0;i<o;i++){let s=e[i];if(Me.test(s.type))r.push(s);else{let c=v(io,s.type);if(!c?.type)throw new Ue({abiParameter:s});let{array:p,type:d}=c;if(d in t){if(n.has(d))throw new De({type:d});r.push({...s,type:`tuple${p??""}`,components:Fn(t[d]??[],t,new Set([...n,d]))})}else if(jt(d))r.push(s);else throw new ke({type:d})}}return r}function _e(e){let t=Un(e),n=[],r=e.length;for(let o=0;o<r;o++){let i=e[o];Te(i)||n.push(jn(i,t))}return n}function W(e){return typeof e=="string"?{address:e,type:"json-rpc"}:e}var Ut=[{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"}],Ln=[{inputs:[],name:"ResolverNotFound",type:"error"},{inputs:[],name:"ResolverWildcardNotSupported",type:"error"},{inputs:[],name:"ResolverNotContract",type:"error"},{inputs:[{name:"returnData",type:"bytes"}],name:"ResolverError",type:"error"},{inputs:[{components:[{name:"status",type:"uint16"},{name:"message",type:"string"}],name:"errors",type:"tuple[]"}],name:"HttpError",type:"error"}],Ks=[...Ln,{name:"resolve",type:"function",stateMutability:"view",inputs:[{name:"name",type:"bytes"},{name:"data",type:"bytes"}],outputs:[{name:"",type:"bytes"},{name:"address",type:"address"}]},{name:"resolve",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"}]}],Xs=[...Ln,{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]},{name:"reverse",type:"function",stateMutability:"view",inputs:[{type:"bytes",name:"reverseName"},{type:"string[]",name:"gateways"}],outputs:[{type:"string",name:"resolvedName"},{type:"address",name:"resolvedAddress"},{type:"address",name:"reverseResolver"},{type:"address",name:"resolver"}]}];var Dn="0x82ad56cb";var Nn="0x608060405234801561001057600080fd5b5060405161018e38038061018e83398101604081905261002f91610124565b6000808351602085016000f59050803b61004857600080fd5b6000808351602085016000855af16040513d6000823e81610067573d81fd5b3d81f35b634e487b7160e01b600052604160045260246000fd5b600082601f83011261009257600080fd5b81516001600160401b038111156100ab576100ab61006b565b604051601f8201601f19908116603f011681016001600160401b03811182821017156100d9576100d961006b565b6040528181528382016020018510156100f157600080fd5b60005b82811015610110576020818601810151838301820152016100f4565b506000918101602001919091529392505050565b6000806040838503121561013757600080fd5b82516001600160401b0381111561014d57600080fd5b61015985828601610081565b602085015190935090506001600160401b0381111561017757600080fd5b61018385828601610081565b915050925092905056fe",Hn="0x608060405234801561001057600080fd5b506040516102c03803806102c083398101604081905261002f916101e6565b836001600160a01b03163b6000036100e457600080836001600160a01b03168360405161005c9190610270565b6000604051808303816000865af19150503d8060008114610099576040519150601f19603f3d011682016040523d82523d6000602084013e61009e565b606091505b50915091508115806100b857506001600160a01b0386163b155b156100e1578060405163101bb98d60e01b81526004016100d8919061028c565b60405180910390fd5b50505b6000808451602086016000885af16040513d6000823e81610103573d81fd5b3d81f35b80516001600160a01b038116811461011e57600080fd5b919050565b634e487b7160e01b600052604160045260246000fd5b60005b8381101561015457818101518382015260200161013c565b50506000910152565b600082601f83011261016e57600080fd5b81516001600160401b0381111561018757610187610123565b604051601f8201601f19908116603f011681016001600160401b03811182821017156101b5576101b5610123565b6040528181528382016020018510156101cd57600080fd5b6101de826020830160208701610139565b949350505050565b600080600080608085870312156101fc57600080fd5b61020585610107565b60208601519094506001600160401b0381111561022157600080fd5b61022d8782880161015d565b93505061023c60408601610107565b60608601519092506001600160401b0381111561025857600080fd5b6102648782880161015d565b91505092959194509250565b60008251610282818460208701610139565b9190910192915050565b60208152600082518060208401526102ab816040850160208701610139565b601f01601f1916919091016040019291505056fe";var Ft="2.23.2";var Lt={getDocsUrl:({docsBaseUrl:e,docsPath:t="",docsSlug:n})=>t?`${e??"https://viem.sh"}${t}${n?`#${n}`:""}`:void 0,version:`viem@${Ft}`};var u=class e extends Error{constructor(t,n={}){let r=n.cause instanceof e?n.cause.details:n.cause?.message?n.cause.message:n.details,o=n.cause instanceof e&&n.cause.docsPath||n.docsPath,i=Lt.getDocsUrl?.({...n,docsPath:o}),s=[t||"An error occurred.","",...n.metaMessages?[...n.metaMessages,""]:[],...i?[`Docs: ${i}`]:[],...r?[`Details: ${r}`]:[],...Lt.version?[`Version: ${Lt.version}`]:[]].join(`
3
+ `);super(s,n.cause?{cause:n.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=r,this.docsPath=o,this.metaMessages=n.metaMessages,this.name=n.name??this.name,this.shortMessage=t,this.version=Ft}walk(t){return _n(this,t)}};function _n(e,t){return t?.(e)?e:e&&typeof e=="object"&&"cause"in e&&e.cause!==void 0?_n(e.cause,t):t?null:e}var N=class extends u{constructor({blockNumber:t,chain:n,contract:r}){super(`Chain "${n.name}" does not support contract "${r.name}".`,{metaMessages:["This could be due to any of the following:",...t&&r.blockCreated&&r.blockCreated>t?[`- The contract "${r.name}" was not deployed until block ${r.blockCreated} (current block ${t}).`]:[`- The chain does not have the contract "${r.name}" configured.`]],name:"ChainDoesNotSupportContract"})}};var fe=class extends u{constructor(){super("No chain was provided to the Client.",{name:"ClientChainNotConfiguredError"})}};var Gn={inputs:[{name:"message",type:"string"}],name:"Error",type:"error"},Vn={inputs:[{name:"reason",type:"uint256"}],name:"Panic",type:"error"};function H(e,{includeName:t=!1}={}){if(e.type!=="function"&&e.type!=="event"&&e.type!=="error")throw new Ve(e.type);return`${e.name}(${Ge(e.inputs,{includeName:t})})`}function Ge(e,{includeName:t=!1}={}){return e?e.map(n=>ao(n,{includeName:t})).join(t?", ":","):""}function ao(e,{includeName:t}){return e.type.startsWith("tuple")?`(${Ge(e.components,{includeName:t})})${e.type.slice(5)}`:e.type+(t&&e.name?` ${e.name}`:"")}function A(e,{strict:t=!0}={}){return!e||typeof e!="string"?!1:t?/^0x[0-9a-fA-F]*$/.test(e):e.startsWith("0x")}function h(e){return A(e,{strict:!1})?Math.ceil((e.length-2)/2):e.length}var We=class extends u{constructor({docsPath:t}){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(`
4
+ `),{docsPath:t,name:"AbiConstructorNotFoundError"})}},le=class extends u{constructor({docsPath:t}){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(`
5
+ `),{docsPath:t,name:"AbiConstructorParamsNotFoundError"})}};var Ze=class extends u{constructor({data:t,params:n,size:r}){super([`Data size of ${r} bytes is too small for given parameters.`].join(`
6
+ `),{metaMessages:[`Params: (${Ge(n,{includeName:!0})})`,`Data: ${t} (${r} 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=t,this.params=n,this.size=r}},Z=class extends u{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.',{name:"AbiDecodingZeroDataError"})}},Ke=class extends u{constructor({expectedLength:t,givenLength:n,type:r}){super([`ABI encoding array length mismatch for type ${r}.`,`Expected length: ${t}`,`Given length: ${n}`].join(`
7
+ `),{name:"AbiEncodingArrayLengthMismatchError"})}},Xe=class extends u{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${h(n)}) does not match expected size (bytes${t}).`,{name:"AbiEncodingBytesSizeMismatchError"})}},Je=class extends u{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding params/values length mismatch.",`Expected length (params): ${t}`,`Given length (values): ${n}`].join(`
8
+ `),{name:"AbiEncodingLengthMismatchError"})}};var Ye=class extends u{constructor(t,{docsPath:n}){super([`Encoded error signature "${t}" 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://openchain.xyz/signatures?query=${t}.`].join(`
9
+ `),{docsPath:n,name:"AbiErrorSignatureNotFoundError"}),Object.defineProperty(this,"signature",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.signature=t}};var j=class extends u{constructor(t,{docsPath:n}={}){super([`Function ${t?`"${t}" `:""}not found on ABI.`,"Make sure you are using the correct ABI and that the function exists on it."].join(`
10
+ `),{docsPath:n,name:"AbiFunctionNotFoundError"})}},qe=class extends u{constructor(t,{docsPath:n}){super([`Function "${t}" 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(`
11
+ `),{docsPath:n,name:"AbiFunctionOutputsNotFoundError"})}};var Qe=class extends u{constructor(t,n){super("Found ambiguous types in overloaded ABI items.",{metaMessages:[`\`${t.type}\` in \`${H(t.abiItem)}\`, and`,`\`${n.type}\` in \`${H(n.abiItem)}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."],name:"AbiItemAmbiguityError"})}};var et=class extends u{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid encoding type.`,"Please provide a valid ABI type."].join(`
12
+ `),{docsPath:n,name:"InvalidAbiEncodingType"})}},tt=class extends u{constructor(t,{docsPath:n}){super([`Type "${t}" is not a valid decoding type.`,"Please provide a valid ABI type."].join(`
13
+ `),{docsPath:n,name:"InvalidAbiDecodingType"})}},nt=class extends u{constructor(t){super([`Value "${t}" is not a valid array.`].join(`
14
+ `),{name:"InvalidArrayError"})}},Ve=class extends u{constructor(t){super([`"${t}" is not a valid definition type.`,'Valid types: "function", "event", "error"'].join(`
15
+ `),{name:"InvalidDefinitionTypeError"})}};var me=class extends u{constructor({offset:t,position:n,size:r}){super(`Slice ${n==="start"?"starting":"ending"} at offset "${t}" is out-of-bounds (size: ${r}).`,{name:"SliceOffsetOutOfBoundsError"})}},ye=class extends u{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} size (${t}) exceeds padding size (${n}).`,{name:"SizeExceedsPaddingSizeError"})}},be=class extends u{constructor({size:t,targetSize:n,type:r}){super(`${r.charAt(0).toUpperCase()}${r.slice(1).toLowerCase()} is expected to be ${n} ${r} long, but is ${t} ${r} long.`,{name:"InvalidBytesLengthError"})}};function _(e,t,n,{strict:r}={}){return A(e,{strict:!1})?uo(e,t,n,{strict:r}):Dt(e,t,n,{strict:r})}function Wn(e,t){if(typeof t=="number"&&t>0&&t>h(e)-1)throw new me({offset:t,position:"start",size:h(e)})}function Zn(e,t,n){if(typeof t=="number"&&typeof n=="number"&&h(e)!==n-t)throw new me({offset:n,position:"end",size:h(e)})}function Dt(e,t,n,{strict:r}={}){Wn(e,t);let o=e.slice(t,n);return r&&Zn(o,t,n),o}function uo(e,t,n,{strict:r}={}){Wn(e,t);let o=`0x${e.replace("0x","").slice((t??0)*2,(n??e.length)*2)}`;return r&&Zn(o,t,n),o}function U(e,{dir:t,size:n=32}={}){return typeof e=="string"?B(e,{dir:t,size:n}):co(e,{dir:t,size:n})}function B(e,{dir:t,size:n=32}={}){if(n===null)return e;let r=e.replace("0x","");if(r.length>n*2)throw new ye({size:Math.ceil(r.length/2),targetSize:n,type:"hex"});return`0x${r[t==="right"?"padEnd":"padStart"](n*2,"0")}`}function co(e,{dir:t,size:n=32}={}){if(n===null)return e;if(e.length>n)throw new ye({size:e.length,targetSize:n,type:"bytes"});let r=new Uint8Array(n);for(let o=0;o<n;o++){let i=t==="right";r[i?o:n-o-1]=e[i?o:e.length-o-1]}return r}var K=class extends u{constructor({max:t,min:n,signed:r,size:o,value:i}){super(`Number "${i}" is not in safe ${o?`${o*8}-bit ${r?"signed":"unsigned"} `:""}integer range ${t?`(${n} to ${t})`:`(above ${n})`}`,{name:"IntegerOutOfRangeError"})}},rt=class extends u{constructor(t){super(`Bytes value "${t}" is not a valid boolean. The bytes array must contain a single byte of either a 0 or 1 value.`,{name:"InvalidBytesBooleanError"})}};var ot=class extends u{constructor({givenSize:t,maxSize:n}){super(`Size cannot exceed ${n} bytes. Given size: ${t} bytes.`,{name:"SizeOverflowError"})}};function he(e,{dir:t="left"}={}){let n=typeof e=="string"?e.replace("0x",""):e,r=0;for(let o=0;o<n.length-1&&n[t==="left"?o:n.length-o-1].toString()==="0";o++)r++;return n=t==="left"?n.slice(r):n.slice(0,n.length-r),typeof e=="string"?(n.length===1&&t==="right"&&(n=`${n}0`),`0x${n.length%2===1?`0${n}`:n}`):n}function $(e,{size:t}){if(h(e)>t)throw new ot({givenSize:h(e),maxSize:t})}function Nt(e,t={}){let{signed:n}=t;t.size&&$(e,{size:t.size});let r=BigInt(e);if(!n)return r;let o=(e.length-2)/2,i=(1n<<BigInt(o)*8n-1n)-1n;return r<=i?r:r-BigInt(`0x${"f".padStart(o*2,"f")}`)-1n}function Kn(e,t={}){return Number(Nt(e,t))}var po=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function Xn(e,t={}){return typeof e=="number"||typeof e=="bigint"?y(e,t):typeof e=="string"?_t(e,t):typeof e=="boolean"?Ht(e,t):P(e,t)}function Ht(e,t={}){let n=`0x${Number(e)}`;return typeof t.size=="number"?($(n,{size:t.size}),U(n,{size:t.size})):n}function P(e,t={}){let n="";for(let o=0;o<e.length;o++)n+=po[e[o]];let r=`0x${n}`;return typeof t.size=="number"?($(r,{size:t.size}),U(r,{dir:"right",size:t.size})):r}function y(e,t={}){let{signed:n,size:r}=t,o=BigInt(e),i;r?n?i=(1n<<BigInt(r)*8n-1n)-1n:i=2n**(BigInt(r)*8n)-1n:typeof e=="number"&&(i=BigInt(Number.MAX_SAFE_INTEGER));let s=typeof i=="bigint"&&n?-i-1n:0;if(i&&o>i||o<s){let c=typeof e=="bigint"?"n":"";throw new K({max:i?`${i}${c}`:void 0,min:`${s}${c}`,signed:n,size:r,value:`${e}${c}`})}let a=`0x${(n&&o<0?(1n<<BigInt(r*8))+BigInt(o):o).toString(16)}`;return r?U(a,{size:r}):a}var fo=new TextEncoder;function _t(e,t={}){let n=fo.encode(e);return P(n,t)}var lo=new TextEncoder;function st(e,t={}){return typeof e=="number"||typeof e=="bigint"?yo(e,t):typeof e=="boolean"?mo(e,t):A(e)?it(e,t):Gt(e,t)}function mo(e,t={}){let n=new Uint8Array(1);return n[0]=Number(e),typeof t.size=="number"?($(n,{size:t.size}),U(n,{size:t.size})):n}var k={zero:48,nine:57,A:65,F:70,a:97,f:102};function Jn(e){if(e>=k.zero&&e<=k.nine)return e-k.zero;if(e>=k.A&&e<=k.F)return e-(k.A-10);if(e>=k.a&&e<=k.f)return e-(k.a-10)}function it(e,t={}){let n=e;t.size&&($(n,{size:t.size}),n=U(n,{dir:"right",size:t.size}));let r=n.slice(2);r.length%2&&(r=`0${r}`);let o=r.length/2,i=new Uint8Array(o);for(let s=0,a=0;s<o;s++){let c=Jn(r.charCodeAt(a++)),p=Jn(r.charCodeAt(a++));if(c===void 0||p===void 0)throw new u(`Invalid byte sequence ("${r[a-2]}${r[a-1]}" in "${r}").`);i[s]=c*16+p}return i}function yo(e,t){let n=y(e,t);return it(n)}function Gt(e,t={}){let n=lo.encode(e);return typeof t.size=="number"?($(n,{size:t.size}),U(n,{dir:"right",size:t.size})):n}var at=BigInt(4294967295),Yn=BigInt(32);function bo(e,t=!1){return t?{h:Number(e&at),l:Number(e>>Yn&at)}:{h:Number(e>>Yn&at)|0,l:Number(e&at)|0}}function qn(e,t=!1){let n=new Uint32Array(e.length),r=new Uint32Array(e.length);for(let o=0;o<e.length;o++){let{h:i,l:s}=bo(e[o],t);[n[o],r[o]]=[i,s]}return[n,r]}var Qn=(e,t,n)=>e<<n|t>>>32-n,er=(e,t,n)=>t<<n|e>>>32-n,tr=(e,t,n)=>t<<n-32|e>>>64-n,nr=(e,t,n)=>e<<n-32|t>>>64-n;var sr=[],ir=[],ar=[],ho=BigInt(0),xe=BigInt(1),xo=BigInt(2),go=BigInt(7),wo=BigInt(256),vo=BigInt(113);for(let e=0,t=xe,n=1,r=0;e<24;e++){[n,r]=[r,(2*n+3*r)%5],sr.push(2*(5*r+n)),ir.push((e+1)*(e+2)/2%64);let o=ho;for(let i=0;i<7;i++)t=(t<<xe^(t>>go)*vo)%wo,t&xo&&(o^=xe<<(xe<<BigInt(i))-xe);ar.push(o)}var[$o,Ao]=qn(ar,!0),rr=(e,t,n)=>n>32?tr(e,t,n):Qn(e,t,n),or=(e,t,n)=>n>32?nr(e,t,n):er(e,t,n);function Po(e,t=24){let n=new Uint32Array(10);for(let r=24-t;r<24;r++){for(let s=0;s<10;s++)n[s]=e[s]^e[s+10]^e[s+20]^e[s+30]^e[s+40];for(let s=0;s<10;s+=2){let a=(s+8)%10,c=(s+2)%10,p=n[c],d=n[c+1],l=rr(p,d,1)^n[a],m=or(p,d,1)^n[a+1];for(let f=0;f<50;f+=10)e[s+f]^=l,e[s+f+1]^=m}let o=e[2],i=e[3];for(let s=0;s<24;s++){let a=ir[s],c=rr(o,i,a),p=or(o,i,a),d=sr[s];o=e[d],i=e[d+1],e[d]=c,e[d+1]=p}for(let s=0;s<50;s+=10){for(let a=0;a<10;a++)n[a]=e[s+a];for(let a=0;a<10;a++)e[s+a]^=~n[(a+2)%10]&n[(a+4)%10]}e[0]^=$o[r],e[1]^=Ao[r]}n.fill(0)}var ut=class e extends dn{constructor(t,n,r,o=!1,i=24){if(super(),this.blockLen=t,this.suffix=n,this.outputLen=r,this.enableXOF=o,this.rounds=i,this.pos=0,this.posOut=0,this.finished=!1,this.destroyed=!1,Tt(r),0>=this.blockLen||this.blockLen>=200)throw new Error("Sha3 supports only keccak-f1600 function");this.state=new Uint8Array(200),this.state32=cn(this.state)}keccak(){kt||Ot(this.state32),Po(this.state32,this.rounds),kt||Ot(this.state32),this.posOut=0,this.pos=0}update(t){Bt(this);let{blockLen:n,state:r}=this;t=pn(t);let o=t.length;for(let i=0;i<o;){let s=Math.min(n-this.pos,o-i);for(let a=0;a<s;a++)r[this.pos++]^=t[i++];this.pos===n&&this.keccak()}return this}finish(){if(this.finished)return;this.finished=!0;let{state:t,suffix:n,pos:r,blockLen:o}=this;t[r]^=n,(n&128)!==0&&r===o-1&&this.keccak(),t[o-1]^=128,this.keccak()}writeInto(t){Bt(this,!1),an(t),this.finish();let n=this.state,{blockLen:r}=this;for(let o=0,i=t.length;o<i;){this.posOut>=r&&this.keccak();let s=Math.min(r-this.posOut,i-o);t.set(n.subarray(this.posOut,this.posOut+s),o),this.posOut+=s,o+=s}return t}xofInto(t){if(!this.enableXOF)throw new Error("XOF is not possible for this instance");return this.writeInto(t)}xof(t){return Tt(t),this.xofInto(new Uint8Array(t))}digestInto(t){if(un(t,this),this.finished)throw new Error("digest() was already called");return this.writeInto(t),this.destroy(),t}digest(){return this.digestInto(new Uint8Array(this.outputLen))}destroy(){this.destroyed=!0,this.state.fill(0)}_cloneInto(t){let{blockLen:n,suffix:r,outputLen:o,rounds:i,enableXOF:s}=this;return t||(t=new e(n,r,o,s,i)),t.state32.set(this.state32),t.pos=this.pos,t.posOut=this.posOut,t.finished=this.finished,t.rounds=i,t.suffix=r,t.outputLen=o,t.enableXOF=s,t.destroyed=this.destroyed,t}},F=(e,t,n)=>fn(()=>new ut(t,e,n)),_i=F(6,144,224/8),Gi=F(6,136,256/8),Vi=F(6,104,384/8),Wi=F(6,72,512/8),Zi=F(1,144,224/8),ur=F(1,136,256/8),Ki=F(1,104,384/8),Xi=F(1,72,512/8),cr=(e,t,n)=>ln((r={})=>new ut(t,e,r.dkLen===void 0?n:r.dkLen,!0)),Ji=cr(31,168,128/8),Yi=cr(31,136,256/8);function ct(e,t){let n=t||"hex",r=ur(A(e,{strict:!1})?st(e):e);return n==="bytes"?r:Xn(r)}var Io=e=>ct(st(e));function pr(e){return Io(e)}function dr(e){let t=!0,n="",r=0,o="",i=!1;for(let s=0;s<e.length;s++){let a=e[s];if(["(",")",","].includes(a)&&(t=!0),a==="("&&r++,a===")"&&r--,!!t){if(r===0){if(a===" "&&["event","function",""].includes(o))o="";else if(o+=a,a===")"){i=!0;break}continue}if(a===" "){e[s-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}o+=a,n+=a}}if(!i)throw new u("Unable to normalize signature.");return o}var fr=e=>{let t=typeof e=="string"?e:Rt(e);return dr(t)};function pt(e){return pr(fr(e))}var X=e=>_(pt(e),0,4);var I=class extends u{constructor({address:t}){super(`Address "${t}" is invalid.`,{metaMessages:["- Address must be a hex value of 20 bytes (40 hex characters).","- Address must match its checksum counterpart."],name:"InvalidAddressError"})}};var J=class extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){let n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){let r=this.keys().next().value;r&&this.delete(r)}return this}};var So=/^0x[a-fA-F0-9]{40}$/,Vt=new J(8192);function g(e,t){let{strict:n=!0}=t??{},r=`${e}.${n}`;if(Vt.has(r))return Vt.get(r);let o=So.test(e)?e.toLowerCase()===e?!0:n?dt(e)===e:!0:!1;return Vt.set(r,o),o}var Wt=new J(8192);function dt(e,t){if(Wt.has(`${e}.${t}`))return Wt.get(`${e}.${t}`);let n=t?`${t}${e.toLowerCase()}`:e.substring(2).toLowerCase(),r=ct(Gt(n),"bytes"),o=(t?n.substring(`${t}0x`.length):n).split("");for(let s=0;s<40;s+=2)r[s>>1]>>4>=8&&o[s]&&(o[s]=o[s].toUpperCase()),(r[s>>1]&15)>=8&&o[s+1]&&(o[s+1]=o[s+1].toUpperCase());let i=`0x${o.join("")}`;return Wt.set(`${e}.${t}`,i),i}var ge=class extends u{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`,{name:"NegativeOffsetError"})}},ft=class extends u{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`,{name:"PositionOutOfBoundsError"})}},lt=class extends u{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`,{name:"RecursiveReadLimitExceededError"})}};var Mo={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 lt({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new ft({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new ge({offset:e});let 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 ge({offset:e});let t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){let n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){let t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){let t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){let t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){let 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,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();let e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();let n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();let e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();let e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();let e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();let e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){let t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;let e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function lr(e,{recursiveReadLimit:t=8192}={}){let n=Object.create(Mo);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}function mr(e,t={}){typeof t.size<"u"&&$(e,{size:t.size});let n=P(e,t);return Nt(n,t)}function yr(e,t={}){let n=e;if(typeof t.size<"u"&&($(n,{size:t.size}),n=he(n)),n.length>1||n[0]>1)throw new rt(n);return!!n[0]}function T(e,t={}){typeof t.size<"u"&&$(e,{size:t.size});let n=P(e,t);return Kn(n,t)}function br(e,t={}){let n=e;return typeof t.size<"u"&&($(n,{size:t.size}),n=he(n,{dir:"right"})),new TextDecoder().decode(n)}function O(e){return typeof e[0]=="string"?we(e):Eo(e)}function Eo(e){let t=0;for(let o of e)t+=o.length;let n=new Uint8Array(t),r=0;for(let o of e)n.set(o,r),r+=o.length;return n}function we(e){return`0x${e.reduce((t,n)=>t+n.replace("0x",""),"")}`}var hr=/^(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)?$/;function Y(e,t){if(e.length!==t.length)throw new Je({expectedLength:e.length,givenLength:t.length});let n=To({params:e,values:t}),r=Kt(n);return r.length===0?"0x":r}function To({params:e,values:t}){let n=[];for(let r=0;r<e.length;r++)n.push(Zt({param:e[r],value:t[r]}));return n}function Zt({param:e,value:t}){let n=mt(e.type);if(n){let[r,o]=n;return ko(t,{length:r,param:{...e,type:o}})}if(e.type==="tuple")return jo(t,{param:e});if(e.type==="address")return Bo(t);if(e.type==="bool")return zo(t);if(e.type.startsWith("uint")||e.type.startsWith("int")){let r=e.type.startsWith("int"),[,,o="256"]=hr.exec(e.type)??[];return Co(t,{signed:r,size:Number(o)})}if(e.type.startsWith("bytes"))return Oo(t,{param:e});if(e.type==="string")return Ro(t);throw new et(e.type,{docsPath:"/docs/contract/encodeAbiParameters"})}function Kt(e){let t=0;for(let i=0;i<e.length;i++){let{dynamic:s,encoded:a}=e[i];s?t+=32:t+=h(a)}let n=[],r=[],o=0;for(let i=0;i<e.length;i++){let{dynamic:s,encoded:a}=e[i];s?(n.push(y(t+o,{size:32})),r.push(a),o+=h(a)):n.push(a)}return O([...n,...r])}function Bo(e){if(!g(e))throw new I({address:e});return{dynamic:!1,encoded:B(e.toLowerCase())}}function ko(e,{length:t,param:n}){let r=t===null;if(!Array.isArray(e))throw new nt(e);if(!r&&e.length!==t)throw new Ke({expectedLength:t,givenLength:e.length,type:`${n.type}[${t}]`});let o=!1,i=[];for(let s=0;s<e.length;s++){let a=Zt({param:n,value:e[s]});a.dynamic&&(o=!0),i.push(a)}if(r||o){let s=Kt(i);if(r){let a=y(i.length,{size:32});return{dynamic:!0,encoded:i.length>0?O([a,s]):a}}if(o)return{dynamic:!0,encoded:s}}return{dynamic:!1,encoded:O(i.map(({encoded:s})=>s))}}function Oo(e,{param:t}){let[,n]=t.type.split("bytes"),r=h(e);if(!n){let o=e;return r%32!==0&&(o=B(o,{dir:"right",size:Math.ceil((e.length-2)/2/32)*32})),{dynamic:!0,encoded:O([B(y(r,{size:32})),o])}}if(r!==Number.parseInt(n))throw new Xe({expectedSize:Number.parseInt(n),value:e});return{dynamic:!1,encoded:B(e,{dir:"right"})}}function zo(e){if(typeof e!="boolean")throw new u(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:B(Ht(e))}}function Co(e,{signed:t,size:n=256}){if(typeof n=="number"){let r=2n**(BigInt(n)-(t?1n:0n))-1n,o=t?-r-1n:0n;if(e>r||e<o)throw new K({max:r.toString(),min:o.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:y(e,{size:32,signed:t})}}function Ro(e){let t=_t(e),n=Math.ceil(h(t)/32),r=[];for(let o=0;o<n;o++)r.push(B(_(t,o*32,(o+1)*32),{dir:"right"}));return{dynamic:!0,encoded:O([B(y(h(t),{size:32})),...r])}}function jo(e,{param:t}){let n=!1,r=[];for(let o=0;o<t.components.length;o++){let i=t.components[o],s=Array.isArray(e)?o:i.name,a=Zt({param:i,value:e[s]});r.push(a),a.dynamic&&(n=!0)}return{dynamic:n,encoded:n?Kt(r):O(r.map(({encoded:o})=>o))}}function mt(e){let t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function yt(e,t){let n=typeof t=="string"?it(t):t,r=lr(n);if(h(n)===0&&e.length>0)throw new Z;if(h(t)&&h(t)<32)throw new Ze({data:typeof t=="string"?t:P(t),params:e,size:h(t)});let o=0,i=[];for(let s=0;s<e.length;++s){let a=e[s];r.setPosition(o);let[c,p]=q(r,a,{staticPosition:0});o+=p,i.push(c)}return i}function q(e,t,{staticPosition:n}){let r=mt(t.type);if(r){let[o,i]=r;return Fo(e,{...t,type:i},{length:o,staticPosition:n})}if(t.type==="tuple")return Ho(e,t,{staticPosition:n});if(t.type==="address")return Uo(e);if(t.type==="bool")return Lo(e);if(t.type.startsWith("bytes"))return Do(e,t,{staticPosition:n});if(t.type.startsWith("uint")||t.type.startsWith("int"))return No(e,t);if(t.type==="string")return _o(e,{staticPosition:n});throw new tt(t.type,{docsPath:"/docs/contract/decodeAbiParameters"})}var xr=32,Xt=32;function Uo(e){let t=e.readBytes(32);return[dt(P(Dt(t,-20))),32]}function Fo(e,t,{length:n,staticPosition:r}){if(!n){let s=T(e.readBytes(Xt)),a=r+s,c=a+xr;e.setPosition(a);let p=T(e.readBytes(xr)),d=ve(t),l=0,m=[];for(let f=0;f<p;++f){e.setPosition(c+(d?f*32:l));let[b,w]=q(e,t,{staticPosition:c});l+=w,m.push(b)}return e.setPosition(r+32),[m,32]}if(ve(t)){let s=T(e.readBytes(Xt)),a=r+s,c=[];for(let p=0;p<n;++p){e.setPosition(a+p*32);let[d]=q(e,t,{staticPosition:a});c.push(d)}return e.setPosition(r+32),[c,32]}let o=0,i=[];for(let s=0;s<n;++s){let[a,c]=q(e,t,{staticPosition:r+o});o+=c,i.push(a)}return[i,o]}function Lo(e){return[yr(e.readBytes(32),{size:32}),32]}function Do(e,t,{staticPosition:n}){let[r,o]=t.type.split("bytes");if(!o){let s=T(e.readBytes(32));e.setPosition(n+s);let a=T(e.readBytes(32));if(a===0)return e.setPosition(n+32),["0x",32];let c=e.readBytes(a);return e.setPosition(n+32),[P(c),32]}return[P(e.readBytes(Number.parseInt(o),32)),32]}function No(e,t){let n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256"),o=e.readBytes(32);return[r>48?mr(o,{signed:n}):T(o,{signed:n}),32]}function Ho(e,t,{staticPosition:n}){let r=t.components.length===0||t.components.some(({name:s})=>!s),o=r?[]:{},i=0;if(ve(t)){let s=T(e.readBytes(Xt)),a=n+s;for(let c=0;c<t.components.length;++c){let p=t.components[c];e.setPosition(a+i);let[d,l]=q(e,p,{staticPosition:a});i+=l,o[r?c:p?.name]=d}return e.setPosition(n+32),[o,32]}for(let s=0;s<t.components.length;++s){let a=t.components[s],[c,p]=q(e,a,{staticPosition:n});o[r?s:a?.name]=c,i+=p}return[o,i]}function _o(e,{staticPosition:t}){let n=T(e.readBytes(32)),r=t+n;e.setPosition(r);let o=T(e.readBytes(32));if(o===0)return e.setPosition(t+32),["",32];let i=e.readBytes(o,32),s=br(he(i));return e.setPosition(t+32),[s,32]}function ve(e){let{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return e.components?.some(ve);let n=mt(e.type);return!!(n&&ve({...e,type:n[1]}))}function gr(e){let{abi:t,data:n}=e,r=_(n,0,4);if(r==="0x")throw new Z;let i=[...t||[],Gn,Vn].find(s=>s.type==="error"&&r===X(H(s)));if(!i)throw new Ye(r,{docsPath:"/docs/contract/decodeErrorResult"});return{abiItem:i,args:"inputs"in i&&i.inputs&&i.inputs.length>0?yt(i.inputs,_(n,4)):void 0,errorName:i.name}}var Q=(e,t,n)=>JSON.stringify(e,(r,o)=>{let i=typeof o=="bigint"?o.toString():o;return typeof t=="function"?t(r,i):i},n);var wr=pt;function bt(e){let{abi:t,args:n=[],name:r}=e,o=A(r,{strict:!1}),i=t.filter(a=>o?a.type==="function"?X(a)===r:a.type==="event"?wr(a)===r:!1:"name"in a&&a.name===r);if(i.length===0)return;if(i.length===1)return i[0];let s;for(let a of i){if(!("inputs"in a))continue;if(!n||n.length===0){if(!a.inputs||a.inputs.length===0)return a;continue}if(!a.inputs||a.inputs.length===0||a.inputs.length!==n.length)continue;if(n.every((p,d)=>{let l="inputs"in a&&a.inputs[d];return l?Jt(p,l):!1})){if(s&&"inputs"in s&&s.inputs){let p=vr(a.inputs,s.inputs,n);if(p)throw new Qe({abiItem:a,type:p[0]},{abiItem:s,type:p[1]})}s=a}}return s||i[0]}function Jt(e,t){let n=typeof e,r=t.type;switch(r){case"address":return g(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((o,i)=>Jt(Object.values(e)[i],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)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(o=>Jt(o,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function vr(e,t,n){for(let r in e){let o=e[r],i=t[r];if(o.type==="tuple"&&i.type==="tuple"&&"components"in o&&"components"in i)return vr(o.components,i.components,n[r]);let s=[o.type,i.type];if(s.includes("address")&&s.includes("bytes20")?!0:s.includes("address")&&s.includes("string")?g(n[r],{strict:!1}):s.includes("address")&&s.includes("bytes")?g(n[r],{strict:!1}):!1)return s}}var $r={gwei:9,wei:18},Ar={ether:-9,wei:9};function ht(e,t){let n=e.toString(),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}`:""}`}function Pr(e,t="wei"){return ht(e,$r[t])}function z(e,t="wei"){return ht(e,Ar[t])}var xt=class extends u{constructor({address:t}){super(`State for account "${t}" is set multiple times.`,{name:"AccountStateConflictError"})}},gt=class extends u{constructor(){super("state and stateDiff are set on the same account.",{name:"StateAssignmentConflictError"})}};function Ir(e){return e.reduce((t,{slot:n,value:r})=>`${t} ${n}: ${r}
16
+ `,"")}function Sr(e){return e.reduce((t,{address:n,...r})=>{let o=`${t} ${n}:
17
+ `;return r.nonce&&(o+=` nonce: ${r.nonce}
18
+ `),r.balance&&(o+=` balance: ${r.balance}
19
+ `),r.code&&(o+=` code: ${r.code}
20
+ `),r.state&&(o+=` state:
21
+ `,o+=Ir(r.state)),r.stateDiff&&(o+=` stateDiff:
22
+ `,o+=Ir(r.stateDiff)),o},` State Override:
23
+ `).slice(0,-1)}function Mr(e){let t=Object.entries(e).map(([r,o])=>o===void 0||o===!1?null:[r,o]).filter(Boolean),n=t.reduce((r,[o])=>Math.max(r,o.length),0);return t.map(([r,o])=>` ${`${r}:`.padEnd(n+1)} ${o}`).join(`
24
+ `)}var wt=class extends u{constructor(){super(["Cannot specify both a `gasPrice` and a `maxFeePerGas`/`maxPriorityFeePerGas`.","Use `maxFeePerGas`/`maxPriorityFeePerGas` for EIP-1559 compatible networks, and `gasPrice` for others."].join(`
25
+ `),{name:"FeeConflictError"})}};var $e=e=>e;var vt=class extends u{constructor(t,{account:n,docsPath:r,chain:o,data:i,gas:s,gasPrice:a,maxFeePerGas:c,maxPriorityFeePerGas:p,nonce:d,to:l,value:m,stateOverride:f}){let b=n?W(n):void 0,w=Mr({from:b?.address,to:l,value:typeof m<"u"&&`${Pr(m)} ${o?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:s,gasPrice:typeof a<"u"&&`${z(a)} gwei`,maxFeePerGas:typeof c<"u"&&`${z(c)} gwei`,maxPriorityFeePerGas:typeof p<"u"&&`${z(p)} gwei`,nonce:d});f&&(w+=`
26
+ ${Sr(f)}`),super(t.shortMessage,{cause:t,docsPath:r,metaMessages:[...t.metaMessages?[...t.metaMessages," "]:[],"Raw Call Arguments:",w].filter(Boolean),name:"CallExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=t}};var $t=class extends u{constructor({factory:t}){super(`Deployment for counterfactual contract call failed${t?` for factory "${t}".`:""}`,{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"})}},At=class extends u{constructor({data:t,message:n}){super(n||"",{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=t}};var Yt="/docs/contract/decodeFunctionResult";function Er(e){let{abi:t,args:n,functionName:r,data:o}=e,i=t[0];if(r){let a=bt({abi:t,args:n,name:r});if(!a)throw new j(r,{docsPath:Yt});i=a}if(i.type!=="function")throw new j(void 0,{docsPath:Yt});if(!i.outputs)throw new qe(i.name,{docsPath:Yt});let s=yt(i.outputs,o);if(s&&s.length>1)return s;if(s&&s.length===1)return s[0]}var qt="/docs/contract/encodeDeployData";function Qt(e){let{abi:t,args:n,bytecode:r}=e;if(!n||n.length===0)return r;let o=t.find(s=>"type"in s&&s.type==="constructor");if(!o)throw new We({docsPath:qt});if(!("inputs"in o))throw new le({docsPath:qt});if(!o.inputs||o.inputs.length===0)throw new le({docsPath:qt});let i=Y(o.inputs,n);return we([r,i])}var Tr="/docs/contract/encodeFunctionData";function Br(e){let{abi:t,args:n,functionName:r}=e,o=t[0];if(r){let i=bt({abi:t,args:n,name:r});if(!i)throw new j(r,{docsPath:Tr});o=i}if(o.type!=="function")throw new j(void 0,{docsPath:Tr});return{abi:[o],functionName:X(H(o))}}function kr(e){let{args:t}=e,{abi:n,functionName:r}=e.abi.length===1&&e.functionName?.startsWith("0x")?e:Br(e),o=n[0],i=r,s="inputs"in o&&o.inputs?Y(o.inputs,t??[]):void 0;return we([i,s??"0x"])}function Or({blockNumber:e,chain:t,contract:n}){let r=t?.contracts?.[n];if(!r)throw new N({chain:t,contract:{name:n}});if(e&&r.blockCreated&&r.blockCreated>e)throw new N({blockNumber:e,chain:t,contract:{name:n,blockCreated:r.blockCreated}});return r.address}var C=class extends u{constructor({cause:t,message:n}={}){let r=n?.replace("execution reverted: ","")?.replace("execution reverted","");super(`Execution reverted ${r?`with reason: ${r}`:"for an unknown reason"}.`,{cause:t,name:"ExecutionRevertedError"})}};Object.defineProperty(C,"code",{enumerable:!0,configurable:!0,writable:!0,value:3});Object.defineProperty(C,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/execution reverted/});var L=class extends u{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${z(n)} gwei`:""}) cannot be higher than the maximum allowed value (2^256-1).`,{cause:t,name:"FeeCapTooHighError"})}};Object.defineProperty(L,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max fee per gas higher than 2\^256-1|fee cap higher than 2\^256-1/});var ee=class extends u{constructor({cause:t,maxFeePerGas:n}={}){super(`The fee cap (\`maxFeePerGas\`${n?` = ${z(n)}`:""} gwei) cannot be lower than the block base fee.`,{cause:t,name:"FeeCapTooLowError"})}};Object.defineProperty(ee,"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/});var te=class extends u{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}is higher than the next one expected.`,{cause:t,name:"NonceTooHighError"})}};Object.defineProperty(te,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too high/});var ne=class extends u{constructor({cause:t,nonce:n}={}){super([`Nonce provided for the transaction ${n?`(${n}) `:""}is lower than the current nonce of the account.`,"Try increasing the nonce or find the latest nonce with `getTransactionCount`."].join(`
27
+ `),{cause:t,name:"NonceTooLowError"})}};Object.defineProperty(ne,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce too low|transaction already imported|already known/});var re=class extends u{constructor({cause:t,nonce:n}={}){super(`Nonce provided for the transaction ${n?`(${n}) `:""}exceeds the maximum allowed nonce.`,{cause:t,name:"NonceMaxValueError"})}};Object.defineProperty(re,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/nonce has max value/});var oe=class extends u{constructor({cause:t}={}){super(["The total cost (gas * gas fee + value) of executing this transaction exceeds the balance of the account."].join(`
28
+ `),{cause:t,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(oe,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/insufficient funds|exceeds transaction sender account balance/});var se=class extends u{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction exceeds the limit allowed for the block.`,{cause:t,name:"IntrinsicGasTooHighError"})}};Object.defineProperty(se,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too high|gas limit reached/});var ie=class extends u{constructor({cause:t,gas:n}={}){super(`The amount of gas ${n?`(${n}) `:""}provided for the transaction is too low.`,{cause:t,name:"IntrinsicGasTooLowError"})}};Object.defineProperty(ie,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/intrinsic gas too low/});var ae=class extends u{constructor({cause:t}){super("The transaction type is not supported for this chain.",{cause:t,name:"TransactionTypeNotSupportedError"})}};Object.defineProperty(ae,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/transaction type not valid/});var D=class extends u{constructor({cause:t,maxPriorityFeePerGas:n,maxFeePerGas:r}={}){super([`The provided tip (\`maxPriorityFeePerGas\`${n?` = ${z(n)} gwei`:""}) cannot be higher than the fee cap (\`maxFeePerGas\`${r?` = ${z(r)} gwei`:""}).`].join(`
29
+ `),{cause:t,name:"TipAboveFeeCapError"})}};Object.defineProperty(D,"nodeMessage",{enumerable:!0,configurable:!0,writable:!0,value:/max priority fee per gas higher than max fee per gas|tip higher than fee cap/});var ue=class extends u{constructor({cause:t}){super(`An error occurred while executing: ${t?.shortMessage}`,{cause:t,name:"UnknownNodeError"})}};var Ae=class extends u{constructor({body:t,cause:n,details:r,headers:o,status:i,url:s}){super("HTTP request failed.",{cause:n,details:r,metaMessages:[i&&`Status: ${i}`,`URL: ${$e(s)}`,t&&`Request body: ${Q(t)}`].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=t,this.headers=o,this.status=i,this.url=s}};function zr(e,t){let n=(e.details||"").toLowerCase(),r=e instanceof u?e.walk(o=>o?.code===C.code):e;return r instanceof u?new C({cause:e,message:r.details}):C.nodeMessage.test(n)?new C({cause:e,message:e.details}):L.nodeMessage.test(n)?new L({cause:e,maxFeePerGas:t?.maxFeePerGas}):ee.nodeMessage.test(n)?new ee({cause:e,maxFeePerGas:t?.maxFeePerGas}):te.nodeMessage.test(n)?new te({cause:e,nonce:t?.nonce}):ne.nodeMessage.test(n)?new ne({cause:e,nonce:t?.nonce}):re.nodeMessage.test(n)?new re({cause:e,nonce:t?.nonce}):oe.nodeMessage.test(n)?new oe({cause:e}):se.nodeMessage.test(n)?new se({cause:e,gas:t?.gas}):ie.nodeMessage.test(n)?new ie({cause:e,gas:t?.gas}):ae.nodeMessage.test(n)?new ae({cause:e}):D.nodeMessage.test(n)?new D({cause:e,maxFeePerGas:t?.maxFeePerGas,maxPriorityFeePerGas:t?.maxPriorityFeePerGas}):new ue({cause:e})}function Cr(e,{docsPath:t,...n}){let r=(()=>{let o=zr(e,n);return o instanceof ue?e:o})();return new vt(r,{docsPath:t,...n})}function Rr(e,{format:t}){if(!t)return{};let n={};function r(i){let s=Object.keys(i);for(let a of s)a in e&&(n[a]=e[a]),i[a]&&typeof i[a]=="object"&&!Array.isArray(i[a])&&r(i[a])}let o=t(e||{});return r(o),n}var Go={legacy:"0x0",eip2930:"0x1",eip1559:"0x2",eip4844:"0x3",eip7702:"0x4"};function jr(e){let t={};return typeof e.authorizationList<"u"&&(t.authorizationList=Vo(e.authorizationList)),typeof e.accessList<"u"&&(t.accessList=e.accessList),typeof e.blobVersionedHashes<"u"&&(t.blobVersionedHashes=e.blobVersionedHashes),typeof e.blobs<"u"&&(typeof e.blobs[0]!="string"?t.blobs=e.blobs.map(n=>P(n)):t.blobs=e.blobs),typeof e.data<"u"&&(t.data=e.data),typeof e.from<"u"&&(t.from=e.from),typeof e.gas<"u"&&(t.gas=y(e.gas)),typeof e.gasPrice<"u"&&(t.gasPrice=y(e.gasPrice)),typeof e.maxFeePerBlobGas<"u"&&(t.maxFeePerBlobGas=y(e.maxFeePerBlobGas)),typeof e.maxFeePerGas<"u"&&(t.maxFeePerGas=y(e.maxFeePerGas)),typeof e.maxPriorityFeePerGas<"u"&&(t.maxPriorityFeePerGas=y(e.maxPriorityFeePerGas)),typeof e.nonce<"u"&&(t.nonce=y(e.nonce)),typeof e.to<"u"&&(t.to=e.to),typeof e.type<"u"&&(t.type=Go[e.type]),typeof e.value<"u"&&(t.value=y(e.value)),t}function Vo(e){return e.map(t=>({address:t.contractAddress,r:t.r,s:t.s,chainId:y(t.chainId),nonce:y(t.nonce),...typeof t.yParity<"u"?{yParity:y(t.yParity)}:{},...typeof t.v<"u"&&typeof t.yParity>"u"?{v:y(t.v)}:{}}))}function Ur(){let e=()=>{},t=()=>{};return{promise:new Promise((r,o)=>{e=r,t=o}),resolve:e,reject:t}}var en=new Map;function Fr({fn:e,id:t,shouldSplitBatch:n,wait:r=0,sort:o}){let i=async()=>{let d=c();s();let l=d.map(({args:m})=>m);l.length!==0&&e(l).then(m=>{o&&Array.isArray(m)&&m.sort(o);for(let f=0;f<d.length;f++){let{resolve:b}=d[f];b?.([m[f],m])}}).catch(m=>{for(let f=0;f<d.length;f++){let{reject:b}=d[f];b?.(m)}})},s=()=>en.delete(t),a=()=>c().map(({args:d})=>d),c=()=>en.get(t)||[],p=d=>en.set(t,[...c(),d]);return{flush:s,async schedule(d){let{promise:l,resolve:m,reject:f}=Ur();return n?.([...a(),d])&&i(),c().length>0?(p({args:d,resolve:m,reject:f}),l):(p({args:d,resolve:m,reject:f}),setTimeout(i,r),l)}}}function Lr(e){if(!(!e||e.length===0))return e.reduce((t,{slot:n,value:r})=>{if(n.length!==66)throw new be({size:n.length,targetSize:66,type:"hex"});if(r.length!==66)throw new be({size:r.length,targetSize:66,type:"hex"});return t[n]=r,t},{})}function Wo(e){let{balance:t,nonce:n,state:r,stateDiff:o,code:i}=e,s={};if(i!==void 0&&(s.code=i),t!==void 0&&(s.balance=y(t)),n!==void 0&&(s.nonce=y(n)),r!==void 0&&(s.state=Lr(r)),o!==void 0){if(s.state)throw new gt;s.stateDiff=Lr(o)}return s}function Dr(e){if(!e)return;let t={};for(let{address:n,...r}of e){if(!g(n,{strict:!1}))throw new I({address:n});if(t[n])throw new xt({address:n});t[n]=Wo(r)}return t}var Rc=2n**(8n-1n)-1n,jc=2n**(16n-1n)-1n,Uc=2n**(24n-1n)-1n,Fc=2n**(32n-1n)-1n,Lc=2n**(40n-1n)-1n,Dc=2n**(48n-1n)-1n,Nc=2n**(56n-1n)-1n,Hc=2n**(64n-1n)-1n,_c=2n**(72n-1n)-1n,Gc=2n**(80n-1n)-1n,Vc=2n**(88n-1n)-1n,Wc=2n**(96n-1n)-1n,Zc=2n**(104n-1n)-1n,Kc=2n**(112n-1n)-1n,Xc=2n**(120n-1n)-1n,Jc=2n**(128n-1n)-1n,Yc=2n**(136n-1n)-1n,qc=2n**(144n-1n)-1n,Qc=2n**(152n-1n)-1n,ep=2n**(160n-1n)-1n,tp=2n**(168n-1n)-1n,np=2n**(176n-1n)-1n,rp=2n**(184n-1n)-1n,op=2n**(192n-1n)-1n,sp=2n**(200n-1n)-1n,ip=2n**(208n-1n)-1n,ap=2n**(216n-1n)-1n,up=2n**(224n-1n)-1n,cp=2n**(232n-1n)-1n,pp=2n**(240n-1n)-1n,dp=2n**(248n-1n)-1n,fp=2n**(256n-1n)-1n,lp=-(2n**(8n-1n)),mp=-(2n**(16n-1n)),yp=-(2n**(24n-1n)),bp=-(2n**(32n-1n)),hp=-(2n**(40n-1n)),xp=-(2n**(48n-1n)),gp=-(2n**(56n-1n)),wp=-(2n**(64n-1n)),vp=-(2n**(72n-1n)),$p=-(2n**(80n-1n)),Ap=-(2n**(88n-1n)),Pp=-(2n**(96n-1n)),Ip=-(2n**(104n-1n)),Sp=-(2n**(112n-1n)),Mp=-(2n**(120n-1n)),Ep=-(2n**(128n-1n)),Tp=-(2n**(136n-1n)),Bp=-(2n**(144n-1n)),kp=-(2n**(152n-1n)),Op=-(2n**(160n-1n)),zp=-(2n**(168n-1n)),Cp=-(2n**(176n-1n)),Rp=-(2n**(184n-1n)),jp=-(2n**(192n-1n)),Up=-(2n**(200n-1n)),Fp=-(2n**(208n-1n)),Lp=-(2n**(216n-1n)),Dp=-(2n**(224n-1n)),Np=-(2n**(232n-1n)),Hp=-(2n**(240n-1n)),_p=-(2n**(248n-1n)),Gp=-(2n**(256n-1n)),Vp=2n**8n-1n,Wp=2n**16n-1n,Zp=2n**24n-1n,Kp=2n**32n-1n,Xp=2n**40n-1n,Jp=2n**48n-1n,Yp=2n**56n-1n,qp=2n**64n-1n,Qp=2n**72n-1n,e0=2n**80n-1n,t0=2n**88n-1n,n0=2n**96n-1n,r0=2n**104n-1n,o0=2n**112n-1n,s0=2n**120n-1n,i0=2n**128n-1n,a0=2n**136n-1n,u0=2n**144n-1n,c0=2n**152n-1n,p0=2n**160n-1n,d0=2n**168n-1n,f0=2n**176n-1n,l0=2n**184n-1n,m0=2n**192n-1n,y0=2n**200n-1n,b0=2n**208n-1n,h0=2n**216n-1n,x0=2n**224n-1n,g0=2n**232n-1n,w0=2n**240n-1n,v0=2n**248n-1n,Nr=2n**256n-1n;function Hr(e){let{account:t,gasPrice:n,maxFeePerGas:r,maxPriorityFeePerGas:o,to:i}=e,s=t?W(t):void 0;if(s&&!g(s.address))throw new I({address:s.address});if(i&&!g(i))throw new I({address:i});if(typeof n<"u"&&(typeof r<"u"||typeof o<"u"))throw new wt;if(r&&r>Nr)throw new L({maxFeePerGas:r});if(o&&r&&o>r)throw new D({maxFeePerGas:r,maxPriorityFeePerGas:o})}async function _r(e,t){let{account:n=e.account,batch:r=!!e.batch?.multicall,blockNumber:o,blockTag:i="latest",accessList:s,blobs:a,code:c,data:p,factory:d,factoryData:l,gas:m,gasPrice:f,maxFeePerBlobGas:b,maxFeePerGas:w,maxPriorityFeePerGas:ce,nonce:pe,to:M,value:Pe,stateOverride:Vr,...Wr}=t,tn=n?W(n):void 0;if(c&&(d||l))throw new u("Cannot provide both `code` & `factory`/`factoryData` as parameters.");if(c&&M)throw new u("Cannot provide both `code` & `to` as parameters.");let nn=c&&p,rn=d&&l&&M&&p,on=nn||rn,Zr=nn?Xo({code:c,data:p}):rn?Jo({data:p,factory:d,factoryData:l,to:M}):p;try{Hr(t);let G=(o?y(o):void 0)||i,de=Dr(Vr),Ie=e.chain?.formatters?.transactionRequest?.format,Se=(Ie||jr)({...Rr(Wr,{format:Ie}),from:tn?.address,accessList:s,blobs:a,data:Zr,gas:m,gasPrice:f,maxFeePerBlobGas:b,maxFeePerGas:w,maxPriorityFeePerGas:ce,nonce:pe,to:on?void 0:M,value:Pe});if(r&&Zo({request:Se})&&!de)try{return await Ko(e,{...Se,blockNumber:o,blockTag:i})}catch(Et){if(!(Et instanceof fe)&&!(Et instanceof N))throw Et}let sn=await e.request({method:"eth_call",params:de?[Se,G,de]:[Se,G]});return sn==="0x"?{data:void 0}:{data:sn}}catch(Mt){let G=Yo(Mt),{offchainLookup:de,offchainLookupSignature:Ie}=await import("./ccip-TDNDQCYX.js");if(e.ccipRead!==!1&&G?.slice(0,10)===Ie&&M)return{data:await de(e,{data:G,to:M})};throw on&&G?.slice(0,10)==="0x101bb98d"?new $t({factory:d}):Cr(Mt,{...t,account:tn,chain:e.chain})}}function Zo({request:e}){let{data:t,to:n,...r}=e;return!(!t||t.startsWith(Dn)||!n||Object.values(r).filter(o=>typeof o<"u").length>0)}async function Ko(e,t){let{batchSize:n=1024,wait:r=0}=typeof e.batch?.multicall=="object"?e.batch.multicall:{},{blockNumber:o,blockTag:i="latest",data:s,multicallAddress:a,to:c}=t,p=a;if(!p){if(!e.chain)throw new fe;p=Or({blockNumber:o,chain:e.chain,contract:"multicall3"})}let l=(o?y(o):void 0)||i,{schedule:m}=Fr({id:`${e.uid}.${l}`,wait:r,shouldSplitBatch(w){return w.reduce((pe,{data:M})=>pe+(M.length-2),0)>n*2},fn:async w=>{let ce=w.map(Pe=>({allowFailure:!0,callData:Pe.data,target:Pe.to})),pe=kr({abi:Ut,args:[ce],functionName:"aggregate3"}),M=await e.request({method:"eth_call",params:[{data:pe,to:p},l]});return Er({abi:Ut,args:[ce],functionName:"aggregate3",data:M||"0x"})}}),[{returnData:f,success:b}]=await m({data:s,to:c});if(!b)throw new At({data:f});return f==="0x"?{data:void 0}:{data:f}}function Xo(e){let{code:t,data:n}=e;return Qt({abi:_e(["constructor(bytes, bytes)"]),bytecode:Nn,args:[t,n]})}function Jo(e){let{data:t,factory:n,factoryData:r,to:o}=e;return Qt({abi:_e(["constructor(address, bytes, address, bytes)"]),bytecode:Hn,args:[o,t,n,r]})}function Yo(e){if(!(e instanceof u))return;let t=e.walk();return typeof t?.data=="object"?t.data?.data:t.data}var Pt=class extends u{constructor({callbackSelector:t,cause:n,data:r,extraData:o,sender:i,urls:s}){super(n.shortMessage||"An error occurred while fetching for an offchain result.",{cause:n,metaMessages:[...n.metaMessages||[],n.metaMessages?.length?"":[],"Offchain Gateway Call:",s&&[" Gateway URL(s):",...s.map(a=>` ${$e(a)}`)],` Sender: ${i}`,` Data: ${r}`,` Callback selector: ${t}`,` Extra data: ${o}`].flat(),name:"OffchainLookupError"})}},It=class extends u{constructor({result:t,url:n}){super("Offchain gateway response is malformed. Response data must be a hex value.",{metaMessages:[`Gateway URL: ${$e(n)}`,`Response: ${Q(t)}`],name:"OffchainLookupResponseMalformedError"})}},St=class extends u{constructor({sender:t,to:n}){super("Reverted sender address does not match target contract address (`to`).",{metaMessages:[`Contract address: ${n}`,`OffchainLookup sender address: ${t}`],name:"OffchainLookupSenderMismatchError"})}};function Gr(e,t){if(!g(e,{strict:!1}))throw new I({address:e});if(!g(t,{strict:!1}))throw new I({address:t});return e.toLowerCase()===t.toLowerCase()}var fd="0x556f1830",qo={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 ld(e,{blockNumber:t,blockTag:n,data:r,to:o}){let{args:i}=gr({data:r,abi:[qo]}),[s,a,c,p,d]=i,{ccipRead:l}=e,m=l&&typeof l?.request=="function"?l.request:Qo;try{if(!Gr(o,s))throw new St({sender:s,to:o});let f=await m({data:c,sender:s,urls:a}),{data:b}=await _r(e,{blockNumber:t,blockTag:n,data:O([p,Y([{type:"bytes"},{type:"bytes"}],[f,d])]),to:o});return b}catch(f){throw new Pt({callbackSelector:p,cause:f,data:r,extraData:d,sender:s,urls:a})}}async function Qo({data:e,sender:t,urls:n}){let r=new Error("An unknown error occurred.");for(let o=0;o<n.length;o++){let i=n[o],s=i.includes("{data}")?"GET":"POST",a=s==="POST"?{data:e,sender:t}:void 0,c=s==="POST"?{"Content-Type":"application/json"}:{};try{let p=await fetch(i.replace("{sender}",t).replace("{data}",e),{body:JSON.stringify(a),headers:c,method:s}),d;if(p.headers.get("Content-Type")?.startsWith("application/json")?d=(await p.json()).data:d=await p.text(),!p.ok){r=new Ae({body:a,details:d?.error?Q(d.error):p.statusText,headers:p.headers,status:p.status,url:i});continue}if(!A(d)){r=new It({result:d,url:i});continue}return d}catch(p){r=new Ae({body:a,details:p.message,url:i})}}throw r}export{A as a,Nt as b,Kn as c,Xn as d,ct as e,dt as f,fd as g,qo as h,ld as i,Qo as j};
@@ -0,0 +1 @@
1
+ import{a as wr}from"./chunk-F7HZCPX2.js";import{$ as ze,Aa as me,B as se,Ba as Tr,C,D as mr,E as fr,F as ur,Fa as O,G as _,H as pr,Ia as fe,J as dr,K as lr,L as xr,Ma as vr,Na as Pr,Oa as oe,Q as S,Qa as Br,R as G,S as hr,T as yr,U as br,V as gr,W as k,X,Y as ae,Z as Re,_ as Fe,a as J,aa as Ue,b as R,ba as He,c as b,ca as q,d as er,da as Q,e as rr,ea as Le,f as Y,fa as Ge,g as Ae,ga as ee,h as F,ha as re,i as z,ia as ce,j as B,ja as Ne,k as h,ka as V,l as tr,la as De,m as U,ma as ke,n as or,na as Me,o as H,oa as _e,p as nr,pa as qe,q as Ce,qa as Ve,ra as Oe,s as L,sa as $e,ta as je,u as Z,ua as Ke,v as ir,va as We,w as sr,wa as Je,x as ar,xa as te,ya as Er,z as cr,za as Ir}from"./chunk-JYRWMYZ2.js";var ue=256,pe;function de(e=11){if(!pe||ue+e>256*2){pe="",ue=0;for(let r=0;r<256;r++)pe+=(256+Math.random()*256|0).toString(16).substring(1)}return pe.substring(ue,ue+++e)}function st(e){let{batch:r,chain:t,ccipRead:o,dataSuffix:n,key:i="base",name:s="Base Client",tokens:c,type:a="base"}=e,d=e.experimental_blockTag??(typeof t?.experimental_preconfirmationTime=="number"?"pending":void 0),f=t?.blockTime??12e3,l=Math.min(Math.max(Math.floor(f/2),500),4e3),u=e.pollingInterval??l,m=e.cacheTime??u,E=e.account?cr(e.account):void 0,{config:p,request:x,value:w}=e.transport({account:E,chain:t,pollingInterval:u}),v={...p,...w},y={account:E,batch:r,cacheTime:m,ccipRead:o,chain:t,dataSuffix:n,key:i,name:s,pollingInterval:u,request:x,tokens:c,transport:v,type:a,uid:de(),...d?{experimental_blockTag:d}:{}};function I(g){return T=>{let P=T(g);for(let N in y)delete P[N];let A={...g,...P};for(let N in P){let W=g[N],ie=P[N];Sr(W)&&Sr(ie)&&(A[N]={...W,...ie})}return Object.assign(A,{extend:I(A)})}}return Object.assign(y,{extend:I(y)})}function Sr(e){if(typeof e!="object"||e===null)return!1;let r=Object.getPrototypeOf(e);return r===Object.prototype||r===null}var le=new nr(8192);function Ar(e,{enabled:r=!0,id:t}){if(!r||!t)return e();if(le.get(t))return le.get(t);let o=e().finally(()=>le.delete(t));return le.set(t,o),o}async function xe(e,{signal:r}={}){return new Promise((t,o)=>{if(r?.aborted){o(S(r));return}let n=()=>r?.removeEventListener("abort",s),i=setTimeout(()=>{n(),t()},e),s=()=>{clearTimeout(i),n(),o(S(r))};r?.addEventListener("abort",s,{once:!0})})}function Cr(e,{delay:r=100,retryCount:t=2,shouldRetry:o=()=>!0,signal:n}={}){return new Promise((i,s)=>{let c=async({count:a=0}={})=>{if(n?.aborted){s(S(n));return}let d=async({error:f})=>{let l=typeof r=="function"?r({count:a,error:f}):r;if(l)try{await xe(l,{signal:n})}catch(u){s(u);return}return c({count:a+1})};try{let f=await e();i(f)}catch(f){if(n?.aborted){s(S(n));return}if(G(f)){s(f);return}if(a<t&&await o({count:a,error:f}))return d({error:f});s(f)}};c().catch(s)})}function Rr(e,r={}){return async(t,o={})=>{let{dedupe:n=!1,methods:i,retryDelay:s=150,retryCount:c=3,signal:a,uid:d}={...r,...o},{method:f}=t;if(i?.exclude?.includes(f))throw new re(new Error("method not supported"),{method:f});if(i?.include&&!i.include.includes(f))throw new re(new Error("method not supported"),{method:f});if(a?.aborted)throw S(a);let l=n?ct(`${d}.${C(t)}`):void 0;return Ar(()=>Cr(async()=>{try{return await e(t,a?{signal:a}:void 0)}catch(u){if(a?.aborted)throw S(a);if(G(u))throw u;let m=u;switch(m.code){case Fe.code:throw new Fe(m);case ze.code:throw new ze(m);case Ue.code:throw new Ue(m,{method:t.method});case He.code:throw new He(m);case q.code:throw new q(m);case Q.code:throw new Q(m);case Le.code:throw new Le(m);case Ge.code:throw new Ge(m);case ee.code:throw new ee(m);case re.code:throw new re(m,{method:t.method});case ce.code:throw new ce(m);case Ne.code:throw new Ne(m);case V.code:throw new V(m);case De.code:throw new De(m);case ke.code:throw new ke(m);case Me.code:throw new Me(m);case _e.code:throw new _e(m);case qe.code:throw new qe(m);case Ve.code:throw new Ve(m);case Oe.code:throw new Oe(m);case $e.code:throw new $e(m);case je.code:throw new je(m);case Ke.code:throw new Ke(m);case We.code:throw new We(m);case Je.code:throw new Je(m);case 5e3:throw new V(m);case te.code:throw new te(m);default:throw u instanceof b?u:new Er(m)}}},{delay:({count:u,error:m})=>{if(m&&m instanceof k){let E=m?.headers?.get("Retry-After");if(E?.match(/\d/))return Number.parseInt(E,10)*1e3}return~~(1<<u)*s},retryCount:c,signal:a,shouldRetry:({error:u})=>at(u)}),{enabled:n,id:l})}}function at(e){return G(e)?!1:"code"in e&&typeof e.code=="number"?e.code===-1||e.code===ce.code||e.code===q.code||e.code===429||e.code===-32007:e instanceof k&&e.status?e.status===403||e.status===408||e.status===413||e.status===429||e.status===500||e.status===502||e.status===503||e.status===504:!0}function ct(e,r=0){let t=3735928559^r,o=1103547991^r;for(let n=0;n<e.length;n++){let i=e.charCodeAt(n);t=Math.imul(t^i,2654435761),o=Math.imul(o^i,1597334677)}return t=Math.imul(t^t>>>16,2246822507),t^=Math.imul(o^o>>>16,3266489909),o=Math.imul(o^o>>>16,2246822507),o^=Math.imul(t^t>>>16,3266489909),(4294967296*(2097151&o)+(t>>>0)).toString(36)}function $({key:e,methods:r,name:t,request:o,retryCount:n=3,retryDelay:i=150,timeout:s,type:c},a){let d=de();return{config:{key:e,methods:r,name:t,request:o,retryCount:n,retryDelay:i,timeout:s,type:c},request:Rr(o,{methods:r,retryCount:n,retryDelay:i,uid:d}),value:a}}function mt(e,r={}){let{key:t="custom",methods:o,name:n="Custom Provider",retryDelay:i}=r;return({retryCount:s})=>$({key:t,methods:o,name:n,request:e.request.bind(e),retryCount:r.retryCount??s,retryDelay:i,type:"custom"})}function ft(e,r={}){let{key:t="fallback",name:o="Fallback",rank:n=!1,shouldThrow:i=Fr,retryCount:s,retryDelay:c}=r;return(({chain:a,pollingInterval:d=4e3,timeout:f,...l})=>{let u=e,m=()=>{},E=$({key:t,name:o,async request({method:p,params:x}){let w,v=async(y=0)=>{let I=u[y]({...l,chain:a,retryCount:0,timeout:f});try{let g=await I.request({method:p,params:x});return m({method:p,params:x,response:g,transport:I,status:"success"}),g}catch(g){if(m({error:g,method:p,params:x,transport:I,status:"error"}),i(g)||y===u.length-1||(w??(w=u.slice(y+1).some(T=>{let{include:P,exclude:A}=T({chain:a}).config.methods||{};return P?P.includes(p):A?!A.includes(p):!0})),!w))throw g;return v(y+1)}};return v()},retryCount:s,retryDelay:c,type:"fallback"},{onResponse:p=>m=p,transports:u.map(p=>p({chain:a,retryCount:0}))});if(n){let p=typeof n=="object"?n:{};ut({chain:a,interval:p.interval??d,onTransports:x=>u=x,ping:p.ping,sampleCount:p.sampleCount,timeout:p.timeout,transports:u,weights:p.weights})}return E})}function Fr(e){return!!("code"in e&&typeof e.code=="number"&&(e.code===ee.code||e.code===V.code||e.code===te.code||Ir.nodeMessage.test(e.message)||e.code===5e3))}function ut({chain:e,interval:r=4e3,onTransports:t,ping:o,sampleCount:n=10,timeout:i=1e3,transports:s,weights:c={}}){let{stability:a=.7,latency:d=.3}=c,f=[],l=async()=>{let u=await Promise.all(s.map(async p=>{let x=p({chain:e,retryCount:0,timeout:i}),w=Date.now(),v,y;try{await(o?o({transport:x}):x.request({method:"net_listening"})),y=1}catch{y=0}finally{v=Date.now()}return{latency:v-w,success:y}}));f.push(u),f.length>n&&f.shift();let m=Math.max(...f.map(p=>Math.max(...p.map(({latency:x})=>x)))),E=s.map((p,x)=>{let w=f.map(T=>T[x].latency),y=1-w.reduce((T,P)=>T+P,0)/w.length/m,I=f.map(T=>T[x].success),g=I.reduce((T,P)=>T+P,0)/I.length;return g===0?[0,x]:[d*y+a*g,x]}).sort((p,x)=>x[0]-p[0]);t(E.map(([,p])=>s[p])),await xe(r),l()};l()}var he=class extends b{constructor(){super("No URL was provided to the Transport. Please provide a valid RPC URL to the Transport.",{docsPath:"/docs/clients/intro",name:"UrlRequiredError"})}};function zr(e,{errorInstance:r=new Error("timed out"),timeout:t,signal:o}){return new Promise((n,i)=>{(async()=>{let s,c=new AbortController;try{t>0&&(s=setTimeout(()=>{o?c.abort():i(r)},t)),n(await e({signal:c?.signal||null}))}catch(a){if(c?.signal.aborted&&G(a)){i(r);return}i(a)}finally{clearTimeout(s)}})()})}function pt(){return{current:0,take(){return this.current++},reset(){this.current=0}}}var Ye=pt();var dt=10485760;function Ur(e,r={}){let{url:t,headers:o}=xt(e);return{async request(n){let{body:i,fetchFn:s=r.fetchFn??fetch,maxResponseBodySize:c=r.maxResponseBodySize??dt,onRequest:a=r.onRequest,onResponse:d=r.onResponse,timeout:f=r.timeout??1e4}=n,l={...r.fetchOptions??{},...n.fetchOptions??{}},{headers:u,method:m,signal:E}=l;try{let p=await zr(async({signal:v})=>{let y={...l,body:Array.isArray(i)?C(i.map(P=>({jsonrpc:"2.0",id:P.id??Ye.take(),...P}))):C({jsonrpc:"2.0",id:i.id??Ye.take(),...i}),headers:{...o,"Content-Type":"application/json",...u},method:m||"POST",signal:E||(f>0?v:null)},I=new Request(t,y),g=await a?.(I,y)??{...y,url:t};return await s(g.url??t,g)},{errorInstance:new Re({body:i,url:t}),timeout:f,signal:!0});d&&await d(p);let x,w=await lt(p,{maxResponseBodySize:c});if(p.headers.get("Content-Type")?.startsWith("application/json"))x=JSON.parse(w);else{x=w;try{x=JSON.parse(x||"{}")}catch(v){if(p.ok)throw v;x={error:x}}}if(!p.ok){if(typeof x.error?.code=="number"&&typeof x.error?.message=="string")return x;throw new k({body:i,details:C(x.error)||p.statusText,headers:p.headers,status:p.status,url:t})}return x}catch(p){throw E?.aborted?S(E):G(p)||p instanceof k||p instanceof X||p instanceof Re?p:new k({body:i,cause:p,url:t})}}}}async function lt(e,{maxResponseBodySize:r}){if(r===!1)return e.text();let t=e.headers.get("Content-Length");if(t){let c=Number(t);if(c>r)throw new X({maxSize:r,size:c})}if(!e.body){let c=await e.text(),a=new TextEncoder().encode(c).length;if(a>r)throw new X({maxSize:r,size:a});return c}let o=e.body.getReader(),n=new TextDecoder,i="",s=0;try{for(;;){let{done:c,value:a}=await o.read();if(c)break;if(s+=a.byteLength,s>r)throw await o.cancel(),new X({maxSize:r,size:s});i+=n.decode(a,{stream:!0})}return i+=n.decode(),i}finally{o.releaseLock()}}function xt(e){try{let r=new URL(e),t=(()=>{if(r.username){let o=`${decodeURIComponent(r.username)}:${decodeURIComponent(r.password)}`;return r.username="",r.password="",{url:r.toString(),headers:{Authorization:`Basic ${btoa(o)}`}}}})();return{url:r.toString(),...t}}catch{return{url:e}}}var ht=0,Hr=new WeakMap;function yt(e){if(!e)return"default";let r=Hr.get(e);if(r!==void 0)return r;let t=ht++;return Hr.set(e,t),t}function bt(e,r={}){let{batch:t,fetchFn:o,fetchOptions:n,key:i="http",maxResponseBodySize:s,methods:c,name:a="HTTP JSON-RPC",onFetchRequest:d,onFetchResponse:f,retryDelay:l,raw:u}=r;return({chain:m,retryCount:E,timeout:p})=>{let{batchSize:x=1e3,wait:w=0}=typeof t=="object"?t:{},v=r.retryCount??E,y=p??r.timeout??1e4,I=e||m?.rpcUrls.default.http[0];if(!I)throw new he;let g=Ur(I,{fetchFn:o,fetchOptions:n,maxResponseBodySize:s,onRequest:d,onResponse:f,timeout:y});return $({key:i,methods:c,name:a,async request({method:T,params:P},A){let N={method:T,params:P},W=A?.signal?{signal:A.signal}:void 0,{schedule:ie}=Br({id:`${I}.${yt(A?.signal)}`,wait:w,shouldSplitBatch(D){return D.length>x},fn:D=>g.request({body:D,fetchOptions:W}),sort:(D,it)=>D.id-it.id}),nt=async D=>t?ie(D):[await g.request({body:D,fetchOptions:W})],[{error:Se,result:Qe}]=await nt(N);if(u)return{error:Se,result:Qe};if(Se)throw new ae({body:N,error:Se,url:I});return Qe},retryCount:v,retryDelay:l,timeout:y,type:"http"},{fetchOptions:n,url:I})}}var gt=3;function Do(e,{abi:r,address:t,args:o,docsPath:n,functionName:i,sender:s}){let c=e instanceof gr?e:e instanceof b?e.walk(E=>"data"in E)||e.walk():{},{code:a,data:d,details:f,message:l,shortMessage:u}=c,m=e instanceof er?new br({functionName:i,cause:e}):[gt,q.code].includes(a)&&(d||f||l||u)||a===Q.code&&f==="execution reverted"&&d?new yr({abi:r,data:typeof d=="object"?d.data:d,functionName:i,message:c instanceof ae?f:u??l,cause:e}):e;return new hr(m,{abi:r,args:o,contractAddress:t,docsPath:n,functionName:i,sender:s})}function Lr(e){let r=or(`0x${e.substring(4)}`).substring(26);return Ce(`0x${r}`)}async function Nr({hash:e,signature:r}){let t=J(e)?e:z(e),{secp256k1:o}=await import("./secp256k1-ACZE2VHK.js");return`0x${(()=>{if(typeof r=="object"&&"r"in r&&"s"in r){let{r:d,s:f,v:l,yParity:u}=r,m=Number(u??l),E=Gr(m);return new o.Signature(Ae(d),Ae(f)).addRecoveryBit(E)}let s=J(r)?r:z(r);if(R(s)!==65)throw new Error("invalid signature length");let c=F(`0x${s.slice(130)}`),a=Gr(c);return o.Signature.fromCompact(s.substring(2,130)).addRecoveryBit(a)})().recoverPublicKey(t.substring(2)).toHex(!1)}`}function Gr(e){if(e===0||e===1)return e;if(e===27)return 0;if(e===28)return 1;throw new Error("Invalid yParityOrV value")}async function Yo({hash:e,signature:r}){return Lr(await Nr({hash:e,signature:r}))}function M(e,r="hex"){let t=Dr(e),o=se(new Uint8Array(t.length));return t.encode(o),r==="hex"?B(o.bytes):o.bytes}function Dr(e){return Array.isArray(e)?Et(e.map(r=>Dr(r))):wt(e)}function Et(e){let r=e.reduce((n,i)=>n+i.length,0),t=kr(r);return{length:r<=55?1+r:1+t+r,encode(n){r<=55?n.pushByte(192+r):(n.pushByte(247+t),t===1?n.pushUint8(r):t===2?n.pushUint16(r):t===3?n.pushUint24(r):n.pushUint32(r));for(let{encode:i}of e)i(n)}}}function wt(e){let r=typeof e=="string"?U(e):e,t=kr(r.length);return{length:r.length===1&&r[0]<128?1:r.length<=55?1+r.length:1+t+r.length,encode(n){r.length===1&&r[0]<128?n.pushBytes(r):r.length<=55?(n.pushByte(128+r.length),n.pushBytes(r)):(n.pushByte(183+t),t===1?n.pushUint8(r.length):t===2?n.pushUint16(r.length):t===3?n.pushUint24(r.length):n.pushUint32(r.length),n.pushBytes(r))}}}function kr(e){if(e<2**8)return 1;if(e<2**16)return 2;if(e<2**24)return 3;if(e<2**32)return 4;throw new b("Length is too large.")}var Mr=class extends b{constructor(r,{account:t,docsPath:o,chain:n,data:i,gas:s,gasPrice:c,maxFeePerGas:a,maxPriorityFeePerGas:d,nonce:f,to:l,value:u}){let m=pr({from:t?.address,to:l,value:typeof u<"u"&&`${ur(u)} ${n?.nativeCurrency?.symbol||"ETH"}`,data:i,gas:s,gasPrice:typeof c<"u"&&`${_(c)} gwei`,maxFeePerGas:typeof a<"u"&&`${_(a)} gwei`,maxPriorityFeePerGas:typeof d<"u"&&`${_(d)} gwei`,nonce:f});super(r.shortMessage,{cause:r,docsPath:o,metaMessages:[...r.metaMessages?[...r.metaMessages," "]:[],"Estimate Gas Arguments:",m].filter(Boolean),name:"EstimateGasExecutionError"}),Object.defineProperty(this,"cause",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.cause=r}};var _r=class extends b{constructor(){super("`baseFeeMultiplier` must be greater than 1.",{name:"BaseFeeScalarError"})}},qr=class extends b{constructor(){super("Chain does not support EIP-1559 fees.",{name:"Eip1559FeesNotSupportedError"})}},Vr=class extends b{constructor({maxPriorityFeePerGas:r}){super(`\`maxFeePerGas\` cannot be less than the \`maxPriorityFeePerGas\` (${_(r)} gwei).`,{name:"MaxFeePerGasTooLowError"})}};var Or=class extends b{constructor({blockHash:r,blockNumber:t}){let o="Block";r&&(o=`Block at hash "${r}"`),t&&(o=`Block at number "${t}"`),super(`${o} could not be found.`,{name:"BlockNotFoundError"})}};var Ze={"0x0":"legacy","0x1":"eip2930","0x2":"eip1559","0x3":"eip4844","0x4":"eip7702"};function Xe(e,r){let t={...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,...e.blockTimestamp!=null&&{blockTimestamp:BigInt(e.blockTimestamp)},chainId:e.chainId?F(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?F(e.nonce):void 0,to:e.to?e.to:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,type:e.type?Ze[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&&(t.authorizationList=It(e.authorizationList)),t.yParity=(()=>{if(e.yParity)return Number(e.yParity);if(typeof t.v=="bigint"){if(t.v===0n||t.v===27n)return 0;if(t.v===1n||t.v===28n)return 1;if(t.v>=35n)return t.v%2n===0n?1:0}})(),t.type==="legacy"&&(delete t.accessList,delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas,delete t.yParity),t.type==="eip2930"&&(delete t.maxFeePerBlobGas,delete t.maxFeePerGas,delete t.maxPriorityFeePerGas),t.type==="eip1559"&&delete t.maxFeePerBlobGas,t}var hn=O("transaction",Xe);function It(e){return e.map(r=>({address:r.address,chainId:Number(r.chainId),nonce:Number(r.nonce),r:r.r,s:r.s,yParity:Number(r.yParity)}))}function Tt(e,r){let t=(e.transactions??[]).map(o=>typeof o=="string"?o:Xe(o));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:t,totalDifficulty:e.totalDifficulty?BigInt(e.totalDifficulty):null}}var En=O("block",Tt);function ye(e){let{kzg:r}=e,t=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),o=typeof e.blobs[0]=="string"?e.blobs.map(i=>U(i)):e.blobs,n=[];for(let i of o)n.push(Uint8Array.from(r.blobToKzgCommitment(i)));return t==="bytes"?n:n.map(i=>B(i))}function be(e){let{kzg:r}=e,t=e.to??(typeof e.blobs[0]=="string"?"hex":"bytes"),o=typeof e.blobs[0]=="string"?e.blobs.map(s=>U(s)):e.blobs,n=typeof e.commitments[0]=="string"?e.commitments.map(s=>U(s)):e.commitments,i=[];for(let s=0;s<o.length;s++){let c=o[s],a=n[s];i.push(Uint8Array.from(r.computeBlobKzgProof(c,a)))}return t==="bytes"?i:i.map(s=>B(s))}var $r=wr;function jr(e,r){let t=r||"hex",o=$r(J(e,{strict:!1})?tr(e):e);return t==="bytes"?o:z(o)}function Kr(e){let{commitment:r,version:t=1}=e,o=e.to??(typeof r=="string"?"hex":"bytes"),n=jr(r,"bytes");return n.set([t],0),o==="bytes"?n:B(n)}function Wr(e){let{commitments:r,version:t}=e,o=e.to??(typeof r[0]=="string"?"hex":"bytes"),n=[];for(let i of r)n.push(Kr({commitment:i,to:o,version:t}));return n}var ge=class extends b{constructor({maxSize:r,size:t}){super("Blob size is too large.",{metaMessages:[`Max: ${r} bytes`,`Given: ${t} bytes`],name:"BlobSizeTooLargeError"})}},j=class extends b{constructor(){super("Blob data must not be empty.",{name:"EmptyBlobError"})}},Ee=class extends b{constructor({hash:r,size:t}){super(`Versioned hash "${r}" size is invalid.`,{metaMessages:["Expected: 32",`Received: ${t}`],name:"InvalidVersionedHashSizeError"})}},we=class extends b{constructor({hash:r,version:t}){super(`Versioned hash "${r}" version is invalid.`,{metaMessages:[`Expected: ${1}`,`Received: ${t}`],name:"InvalidVersionedHashVersionError"})}};function Jr(e){let r=e.to??(typeof e.data=="string"?"hex":"bytes"),t=typeof e.data=="string"?U(e.data):e.data,o=R(t);if(!o)throw new j;if(o>761855)throw new ge({maxSize:761855,size:o});let n=[],i=!0,s=0;for(;i;){let c=se(new Uint8Array(131072)),a=0;for(;a<4096;){let d=t.slice(s,s+31);if(c.pushByte(0),c.pushBytes(d),d.length<31){c.pushByte(128),i=!1;break}a++,s+=31}n.push(c)}return r==="bytes"?n.map(c=>c.bytes):n.map(c=>B(c.bytes))}function Yr(e){let{data:r,kzg:t,to:o}=e,n=e.blobs??Jr({data:r,to:o}),i=e.commitments??ye({blobs:n,kzg:t,to:o}),s=e.proofs??be({blobs:n,commitments:i,kzg:t,to:o}),c=[];for(let a=0;a<n.length;a++)c.push({blob:n[a],commitment:i[a],proof:s[a]});return c}function Zr(e){if(e.type)return e.type;if(typeof e.authorizationList<"u")return"eip7702";if(typeof e.blobs<"u"||typeof e.blobVersionedHashes<"u"||typeof e.maxFeePerBlobGas<"u"||typeof e.sidecars<"u")return"eip4844";if(typeof e.maxFeePerGas<"u"||typeof e.maxPriorityFeePerGas<"u")return"eip1559";if(typeof e.gasPrice<"u")return typeof e.accessList<"u"?"eip2930":"legacy";throw new lr({transaction:e})}function Xr(e,{args:r,eventName:t}={}){return{...e,blockHash:e.blockHash?e.blockHash:null,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,blockTimestamp:e.blockTimestamp?BigInt(e.blockTimestamp):e.blockTimestamp===null?null:void 0,logIndex:e.logIndex?Number(e.logIndex):null,transactionHash:e.transactionHash?e.transactionHash:null,transactionIndex:e.transactionIndex?Number(e.transactionIndex):null,...t?{args:r,eventName:t}:{}}}var Bt=new Map,St=new Map;function At(e){let r=(n,i)=>({clear:()=>i.delete(n),get:()=>i.get(n),set:s=>i.set(n,s)}),t=r(e,Bt),o=r(e,St);return{clear:()=>{t.clear(),o.clear()},promise:t,response:o}}async function ai(e,{cacheKey:r,cacheTime:t=Number.POSITIVE_INFINITY}){let o=At(r),n=o.response.get();if(n&&t>0&&Date.now()-n.created.getTime()<t)return n.data;let i=o.promise.get();i||(i=e(),o.promise.set(i));try{let s=await i;return o.response.set({created:new Date,data:s}),s}finally{o.promise.clear()}}function fi({chain:e,currentChainId:r}){if(!e)throw new Pr;if(r!==e.id)throw new vr({chain:e,currentChainId:r})}var Ct={"0x0":"reverted","0x1":"success"};function Rt(e,r){let t={...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(o=>Xr(o)):null,to:e.to?e.to:null,transactionIndex:e.transactionIndex?F(e.transactionIndex):null,status:e.status?Ct[e.status]:null,type:e.type?Ze[e.type]||e.type:null};return e.blobGasPrice&&(t.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(t.blobGasUsed=BigInt(e.blobGasUsed)),t}var hi=O("transactionReceipt",Rt);function Qr(e){let{authorizationList:r}=e;if(r)for(let t of r){let{chainId:o}=t,n=t.address;if(!L(n))throw new H({address:n});if(o<0)throw new oe({chainId:o})}Ie(e)}function et(e){let{blobVersionedHashes:r}=e;if(r){if(r.length===0)throw new j;for(let t of r){let o=R(t),n=F(ir(t,0,1));if(o!==32)throw new Ee({hash:t,size:o});if(n!==1)throw new we({hash:t,version:n})}}Ie(e)}function Ie(e){let{chainId:r,maxPriorityFeePerGas:t,maxFeePerGas:o,to:n}=e;if(r<=0)throw new oe({chainId:r});if(n&&!L(n))throw new H({address:n});if(o&&o>fe)throw new me({maxFeePerGas:o});if(t&&o&&t>o)throw new Tr({maxFeePerGas:o,maxPriorityFeePerGas:t})}function rt(e){let{chainId:r,maxPriorityFeePerGas:t,gasPrice:o,maxFeePerGas:n,to:i}=e;if(r<=0)throw new oe({chainId:r});if(i&&!L(i))throw new H({address:i});if(t||n)throw new b("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid EIP-2930 Transaction attribute.");if(o&&o>fe)throw new me({maxFeePerGas:o})}function tt(e){let{chainId:r,maxPriorityFeePerGas:t,gasPrice:o,maxFeePerGas:n,to:i}=e;if(i&&!L(i))throw new H({address:i});if(typeof r<"u"&&r<=0)throw new oe({chainId:r});if(t||n)throw new b("`maxFeePerGas`/`maxPriorityFeePerGas` is not a valid Legacy Transaction attribute.");if(o&&o>fe)throw new me({maxFeePerGas:o})}function ne(e){if(!e||e.length===0)return[];let r=[];for(let t=0;t<e.length;t++){let{address:o,storageKeys:n}=e[t];for(let i=0;i<n.length;i++)if(n[i].length-2!==64)throw new xr({storageKey:n[i]});if(!L(o,{strict:!1}))throw new H({address:o});r.push([o,n])}return r}function ji(e,r){let t=Zr(e);return t==="eip1559"?Ut(e,r):t==="eip2930"?Ht(e,r):t==="eip4844"?zt(e,r):t==="eip7702"?Ft(e,r):Lt(e,r)}function Ft(e,r){let{authorizationList:t,chainId:o,gas:n,nonce:i,to:s,value:c,maxFeePerGas:a,maxPriorityFeePerGas:d,accessList:f,data:l}=e;Qr(e);let u=ne(f),m=ot(t);return Z(["0x04",M([h(o),i?h(i):"0x",d?h(d):"0x",a?h(a):"0x",n?h(n):"0x",s??"0x",c?h(c):"0x",l??"0x",u,m,...K(e,r)])])}function zt(e,r){let{chainId:t,gas:o,nonce:n,to:i,value:s,maxFeePerBlobGas:c,maxFeePerGas:a,maxPriorityFeePerGas:d,accessList:f,data:l}=e;et(e);let u=e.blobVersionedHashes,m=e.sidecars;if(e.blobs&&(typeof u>"u"||typeof m>"u")){let y=typeof e.blobs[0]=="string"?e.blobs:e.blobs.map(T=>B(T)),I=e.kzg,g=ye({blobs:y,kzg:I});if(typeof u>"u"&&(u=Wr({commitments:g})),typeof m>"u"){let T=be({blobs:y,commitments:g,kzg:I});m=Yr({blobs:y,commitments:g,proofs:T})}}let E=ne(f),p=[h(t),n?h(n):"0x",d?h(d):"0x",a?h(a):"0x",o?h(o):"0x",i??"0x",s?h(s):"0x",l??"0x",E,c?h(c):"0x",u??[],...K(e,r)],x=[],w=[],v=[];if(m)for(let y=0;y<m.length;y++){let{blob:I,commitment:g,proof:T}=m[y];x.push(I),w.push(g),v.push(T)}return Z(["0x03",m?M([p,x,w,v]):M(p)])}function Ut(e,r){let{chainId:t,gas:o,nonce:n,to:i,value:s,maxFeePerGas:c,maxPriorityFeePerGas:a,accessList:d,data:f}=e;Ie(e);let l=ne(d),u=[h(t),n?h(n):"0x",a?h(a):"0x",c?h(c):"0x",o?h(o):"0x",i??"0x",s?h(s):"0x",f??"0x",l,...K(e,r)];return Z(["0x02",M(u)])}function Ht(e,r){let{chainId:t,gas:o,data:n,nonce:i,to:s,value:c,accessList:a,gasPrice:d}=e;rt(e);let f=ne(a),l=[h(t),i?h(i):"0x",d?h(d):"0x",o?h(o):"0x",s??"0x",c?h(c):"0x",n??"0x",f,...K(e,r)];return Z(["0x01",M(l)])}function Lt(e,r){let{chainId:t=0,gas:o,data:n,nonce:i,to:s,value:c,gasPrice:a}=e;tt(e);let d=[i?h(i):"0x",a?h(a):"0x",o?h(o):"0x",s??"0x",c?h(c):"0x",n??"0x"];if(r){let f=(()=>{if(r.v>=35n)return(r.v-35n)/2n>0?r.v:27n+(r.v===35n?0n:1n);if(t>0)return BigInt(t*2)+BigInt(35n+r.v-27n);let m=27n+(r.v===27n?0n:1n);if(r.v!==m)throw new dr({v:r.v});return m})(),l=Y(r.r),u=Y(r.s);d=[...d,h(f),l==="0x00"?"0x":l,u==="0x00"?"0x":u]}else t>0&&(d=[...d,h(t),"0x","0x"]);return M(d)}function K(e,r){let t=r??e,{v:o,yParity:n}=t;if(typeof t.r>"u")return[];if(typeof t.s>"u")return[];if(typeof o>"u"&&typeof n>"u")return[];let i=Y(t.r),s=Y(t.s);return[typeof n=="number"?n?h(1):"0x":o===0n?"0x":o===1n?h(1):o===27n?"0x":h(1),i==="0x00"?"0x":i,s==="0x00"?"0x":s]}function ot(e){if(!e||e.length===0)return[];let r=[];for(let t of e){let{chainId:o,nonce:n,...i}=t,s=t.address;r.push([o?z(o):"0x",s,n?z(n):"0x",...K({},i)])}return r}function Zi(e){let r={formatters:void 0,fees:void 0,serializers:void 0,...e};function t(o){return n=>{let i=typeof n=="function"?n(o):n,s={...o,...i};return Object.assign(s,{extend:t(s)})}}return Object.assign(r,{extend:t(r)})}var Te=class extends b{constructor({domain:r}){super(`Invalid domain "${C(r)}".`,{metaMessages:["Must be a valid EIP-712 domain."]})}},ve=class extends b{constructor({primaryType:r,types:t}){super(`Invalid primary type \`${r}\` 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`."]})}},Pe=class extends b{constructor({type:r}){super(`Struct type "${r}" is invalid.`,{metaMessages:["Struct type must not be a Solidity type."],name:"InvalidStructTypeError"})}},Be=class extends b{constructor({type:r}){let t=r.replace(/^(u?int)/,"$&256");super(`Type "${r}" is not a valid EIP-712 type.`,{metaMessages:[`Use "${t}" instead.`],name:"InvalidTypedDataTypeError"})}};function fs(e){let{domain:r,message:t,primaryType:o,types:n}=e,i=(a,d)=>{let f={...d};for(let l of a){let{name:u,type:m}=l;m==="address"&&(f[u]=f[u].toLowerCase())}return f},s=n.EIP712Domain?r?i(n.EIP712Domain,r):{}:{},c=(()=>{if(o!=="EIP712Domain")return i(n[o],t)})();return C({domain:s,message:c,primaryType:o,types:n})}function us(e){let{domain:r,message:t,primaryType:o,types:n}=e,i=(s,c)=>{for(let a of s){let{name:d,type:f}=a,l=c[d],u=f.replace(/(\[[0-9]*\])+$/,"");if(u==="int"||u==="uint")throw new Be({type:f});let m=f.match(ar);if(m&&(typeof l=="number"||typeof l=="bigint")){let[x,w,v]=m;h(l,{signed:w==="int",size:Number.parseInt(v,10)/8})}if(f==="address"&&typeof l=="string"&&!L(l))throw new H({address:l});let E=f.match(sr);if(E){let[x,w]=E;if(w&&R(l)!==Number.parseInt(w,10))throw new rr({expectedSize:Number.parseInt(w,10),givenSize:R(l)})}let p=n[f];p&&(Gt(f),i(p,l))}};if(n.EIP712Domain&&r){if(typeof r!="object")throw new Te({domain:r});i(n.EIP712Domain,r)}if(o!=="EIP712Domain")if(n[o])i(n[o],t);else throw new ve({primaryType:o,types:n})}function ps({domain:e}){return[typeof e?.name=="string"&&{name:"name",type:"string"},e?.version&&{name:"version",type:"string"},(typeof e?.chainId=="number"||typeof e?.chainId=="bigint")&&{name:"chainId",type:"uint256"},e?.verifyingContract&&{name:"verifyingContract",type:"address"},e?.salt&&{name:"salt",type:"bytes32"}].filter(Boolean)}function Gt(e){if(e==="address"||e==="bool"||e==="string"||e.startsWith("bytes")||e.startsWith("uint")||e.startsWith("int"))throw new Pe({type:e})}function Dt(e,r){return mr(e,r)}function kt(e,r){return fr(e,r)}export{Do as a,Yo as b,M as c,Mr as d,_r as e,qr as f,Vr as g,Or as h,Xe as i,hn as j,Tt as k,En as l,ye as m,be as n,Wr as o,Yr as p,Zr as q,xe as r,ai as s,fi as t,Cr as u,Rt as v,hi as w,st as x,ji as y,Zi as z,fs as A,us as B,ps as C,Dt as D,kt as E,mt as F,ft as G,bt as H};
@@ -0,0 +1,8 @@
1
+ import{f as C}from"./chunk-OKQEFB6X.js";import"./chunk-MYQCVH5Z.js";var l=C`<svg width="14" height="14" viewBox="0 0 14 14" fill="none">
2
+ <path
3
+ fill-rule="evenodd"
4
+ clip-rule="evenodd"
5
+ d="M7.00235 2C4.24 2 2.00067 4.23858 2.00067 7C2.00067 9.76142 4.24 12 7.00235 12C9.7647 12 12.004 9.76142 12.004 7C12.004 4.23858 9.7647 2 7.00235 2ZM0 7C0 3.13401 3.13506 0 7.00235 0C10.8696 0 14.0047 3.13401 14.0047 7C14.0047 10.866 10.8696 14 7.00235 14C3.13506 14 0 10.866 0 7ZM7.00235 3C7.55482 3 8.00269 3.44771 8.00269 4V6.58579L9.85327 8.43575C10.2439 8.82627 10.2439 9.45944 9.85327 9.84996C9.46262 10.2405 8.82924 10.2405 8.43858 9.84996L6.29501 7.70711C6.10741 7.51957 6.00201 7.26522 6.00201 7V4C6.00201 3.44771 6.44988 3 7.00235 3Z"
6
+ fill="currentColor"
7
+ />
8
+ </svg>`;export{l as clockSvg};
@@ -0,0 +1,8 @@
1
+ import{f as l}from"./chunk-OKQEFB6X.js";import"./chunk-MYQCVH5Z.js";var o=l`<svg fill="none" viewBox="0 0 16 16">
2
+ <path
3
+ fill="currentColor"
4
+ fill-rule="evenodd"
5
+ d="M2.54 2.54a1 1 0 0 1 1.42 0L8 6.6l4.04-4.05a1 1 0 1 1 1.42 1.42L9.4 8l4.05 4.04a1 1 0 0 1-1.42 1.42L8 9.4l-4.04 4.05a1 1 0 0 1-1.42-1.42L6.6 8 2.54 3.96a1 1 0 0 1 0-1.42Z"
6
+ clip-rule="evenodd"
7
+ />
8
+ </svg>`;export{o as closeSvg};
@@ -0,0 +1,8 @@
1
+ import{f as l}from"./chunk-OKQEFB6X.js";import"./chunk-MYQCVH5Z.js";var o=l`<svg fill="none" viewBox="0 0 20 20">
2
+ <path
3
+ fill="currentColor"
4
+ fill-rule="evenodd"
5
+ d="M10 3a7 7 0 0 0-6.85 8.44l8.29-8.3C10.97 3.06 10.49 3 10 3Zm3.49.93-9.56 9.56c.32.55.71 1.06 1.16 1.5L15 5.1a7.03 7.03 0 0 0-1.5-1.16Zm2.7 2.8-9.46 9.46a7 7 0 0 0 9.46-9.46ZM1.99 5.9A9 9 0 1 1 18 14.09 9 9 0 0 1 1.98 5.91Z"
6
+ clip-rule="evenodd"
7
+ />
8
+ </svg>`;export{o as coinPlaceholderSvg};
@@ -0,0 +1,8 @@
1
+ import{f as l}from"./chunk-OKQEFB6X.js";import"./chunk-MYQCVH5Z.js";var e=l`<svg fill="none" viewBox="0 0 16 16">
2
+ <path
3
+ fill="currentColor"
4
+ fill-rule="evenodd"
5
+ d="M8 2a6 6 0 1 0 0 12A6 6 0 0 0 8 2ZM0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm10.66-2.65a1 1 0 0 1 .23 1.06L9.83 9.24a1 1 0 0 1-.59.58l-2.83 1.06A1 1 0 0 1 5.13 9.6l1.06-2.82a1 1 0 0 1 .58-.59L9.6 5.12a1 1 0 0 1 1.06.23ZM7.9 7.89l-.13.35.35-.13.12-.35-.34.13Z"
6
+ clip-rule="evenodd"
7
+ />
8
+ </svg>`;export{e as compassSvg};