@dcl/shop 1.4.2-31321510979.commit-eaccdfa → 1.4.2-31321833858.commit-d05a541

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 (220) hide show
  1. package/_assets/Activity-DsalM-e5.js +378 -0
  2. package/_assets/{AnimatedBackground-cJyJ3k37.js → AnimatedBackground-BOrNsqN1.js} +1 -1
  3. package/_assets/{Assets-CgKshhdA.js → Assets-QOoWiQL0.js} +2 -2
  4. package/_assets/{Assets.styles-C7r9wHQF.js → Assets.styles-CSP5Wb2u.js} +1 -1
  5. package/_assets/{Authorizations-BJbX0ZkC.js → Authorizations-C7ZkQpU3.js} +1 -1
  6. package/_assets/{Cart-DK4zdt7W.js → Cart-CwXY-en-.js} +1 -1
  7. package/_assets/{CircularProgress-BI-Efq9-.js → CircularProgress-DJGW52uC.js} +1 -1
  8. package/_assets/{Collection-Cf172utI.js → Collection-Dw81a56N.js} +4 -4
  9. package/_assets/{CollectionCarousel-BxoPvgOg.js → CollectionCarousel-mhAYGnTb.js} +19 -19
  10. package/_assets/{Confetti-D2X3FtD_.js → Confetti-BJzwqwTF.js} +1 -1
  11. package/_assets/{ConstantsUtil-BYkVBz19.js → ConstantsUtil-S9Rc8iab.js} +1 -1
  12. package/_assets/{ContentClient-BkLWw6Rk.js → ContentClient-ljReoKyO.js} +1 -1
  13. package/_assets/{Creator-BFj8KtJ0.js → Creator-D9b4j61f.js} +1 -1
  14. package/_assets/{DeploymentBuilder-8E575y44.js → DeploymentBuilder-DSxp43uX.js} +1 -1
  15. package/_assets/{ErrorNotice-BYO5Bvyc.js → ErrorNotice-B_DnZnpz.js} +1 -1
  16. package/_assets/{ExchangeController-BA0Eliky.js → ExchangeController-BnL43Mxg.js} +1 -1
  17. package/_assets/{Faq-CaXi1BNV.js → Faq-BkoPMwLV.js} +1 -1
  18. package/_assets/{GetCredits-khV-GXU_.js → GetCredits-CetTDoCs.js} +1 -1
  19. package/_assets/{Grow-DVmpJZOV.js → Grow-DL6epSiS.js} +1 -1
  20. package/_assets/{HelpersUtil-DynUp31-.js → HelpersUtil-BL1YqLJc.js} +1 -1
  21. package/_assets/{ItemDetail-DDdnprOE.js → ItemDetail-VFYUF0mL.js} +1 -1
  22. package/_assets/LazyEmoteControls-BGRwSFAr.js +2 -0
  23. package/_assets/{LoadMore-CYVBsAhd.js → LoadMore-DAmGHMVW.js} +1 -1
  24. package/_assets/{ManaPricingBanner.styles-C44WWkRh.js → ManaPricingBanner.styles-2dMknEFN.js} +1 -1
  25. package/_assets/{MyAssets-ogqvhbaY.js → MyAssets-BSO8VWKY.js} +2 -2
  26. package/_assets/{MyFavorites-D8erMGcd.js → MyFavorites-DHhBkxx8.js} +1 -1
  27. package/_assets/{NetworkUtil-BsEXGHJo.js → NetworkUtil-CmFj23VB.js} +1 -1
  28. package/_assets/{NotFound-D5seDwlz.js → NotFound-DH7CCo8Z.js} +1 -1
  29. package/_assets/{NotificationsBell-uJCcRX8e.js → NotificationsBell-C-ZXxEiI.js} +1 -1
  30. package/_assets/{OutfitDetail-Cnd07GLk.js → OutfitDetail-CFY6HZm6.js} +1 -1
  31. package/_assets/{OutfitPreview-BADnZcBi.js → OutfitPreview-DS6GhxsN.js} +1 -1
  32. package/_assets/{OutfitStudio-DsQnrk15.js → OutfitStudio-NVNd-hvf.js} +8 -8
  33. package/_assets/{StoreSettings-Du81JVhq.js → StoreSettings-CrZZUE9j.js} +1 -1
  34. package/_assets/{Success-CSByCd9s.js → Success-B-MnwiE5.js} +1 -1
  35. package/_assets/{SwapController-Dl69afRt.js → SwapController-Dbqbv3yv.js} +1 -1
  36. package/_assets/{Tooltip-Cz34W2WD.js → Tooltip-BV1YJ2nx.js} +1 -1
  37. package/_assets/{TradeService-DYWoUp2O.js → TradeService-BDhWL-iC.js} +1 -1
  38. package/_assets/{W3MFrameProviderSingleton-DMgnEflU.js → W3MFrameProviderSingleton-DkDY_Uhq.js} +3 -3
  39. package/_assets/{WebCryptoP256-DvJwZjAY.js → WebCryptoP256-dZsiPxua.js} +1 -1
  40. package/_assets/authorizations-DdXEl4SH.js +1 -0
  41. package/_assets/{basic-CgCNtuea.js → basic-BxS4xyCI.js} +1 -1
  42. package/_assets/{biconomy-ChCoIucR.js → biconomy-ChyCaDhZ.js} +1 -1
  43. package/_assets/{builder-UN5pIfno.js → builder-aNj3KtnQ.js} +1 -1
  44. package/_assets/{buy-BsMK5C0W.js → buy-ITSy499E.js} +1 -1
  45. package/_assets/buy-gasless-Qwo4-LdH.js +1 -0
  46. package/_assets/{categories-BoH_BcuN.js → categories-C_3TBHB6.js} +1 -1
  47. package/_assets/{ccip-BoCyT5Kw.js → ccip-DSAZ1Drq.js} +1 -1
  48. package/_assets/{ccip-ci60pO9_.js → ccip-q9rBWRrW.js} +1 -1
  49. package/_assets/{chains-BXxRVqOL.js → chains-C3ogoGMY.js} +1 -1
  50. package/_assets/{collectionPage.styles-BK-K9Hp7.js → collectionPage.styles-lQ1i3kYb.js} +4 -4
  51. package/_assets/{common-pfIErvdh.js → common-Du-luxO1.js} +1 -1
  52. package/_assets/{controller-Bmdml4vJ.js → controller-CjHTogUM.js} +2 -2
  53. package/_assets/{core-DSyHKtkv.js → core-BLRurbyU.js} +4 -4
  54. package/_assets/{createSvgIcon-B7oSzltn.js → createSvgIcon-DPRU4ebA.js} +1 -1
  55. package/_assets/{custom-CpeFfUh_.js → custom-DESM1TBo.js} +1 -1
  56. package/_assets/{data-capture-D82nwrKY.js → data-capture-Xahs7XND.js} +1 -1
  57. package/_assets/decimals-CA4WCN0k.js +1 -0
  58. package/_assets/{decimals-CufGxqGB.js → decimals-CN36TWfs.js} +1 -1
  59. package/_assets/{detectExtension-DJir-uLI.js → detectExtension-D5bfb7Ei.js} +1 -1
  60. package/_assets/{email-B3_G7aNG.js → email-BnVyGQjo.js} +1 -1
  61. package/_assets/{embedded-wallet-CbWrcRQY.js → embedded-wallet-BZeoh5V4.js} +1 -1
  62. package/_assets/{emotion-styled.browser.esm-mKrb76ZC.js → emotion-styled.browser.esm-ScvFm9x7.js} +1 -1
  63. package/_assets/{engine-Ck8sAaZu.js → engine-B-fLoDkH.js} +1 -1
  64. package/_assets/{errors-CvYDNXLT.js → errors-DXSAwVw4.js} +1 -1
  65. package/_assets/{estimate-l1-fee-BrAAemAM.js → estimate-l1-fee-BjJ_4KQn.js} +1 -1
  66. package/_assets/{eth_estimateGas-D9Pu3PNx.js → eth_estimateGas-VGXN9rx1.js} +1 -1
  67. package/_assets/{eth_getStorageAt-BSkNzsMl.js → eth_getStorageAt-xHOtLw9t.js} +1 -1
  68. package/_assets/{eth_getTransactionCount-DpXnQ6cd.js → eth_getTransactionCount-DeOan_M2.js} +1 -1
  69. package/_assets/{ethereum-D1MZ_SH0.js → ethereum-wAQ6oI96.js} +1 -1
  70. package/_assets/{ethers-BKEzvwKN.js → ethers-CHvw3dSr.js} +1 -1
  71. package/_assets/{execute-DFgCeynW.js → execute-DA2F3yom.js} +2 -2
  72. package/_assets/{extractIPFS-DuxYPj2T.js → extractIPFS-DYEe95Fe.js} +1 -1
  73. package/_assets/{features-CAYyw2t4.js → features-P2l_M4a9.js} +1 -1
  74. package/_assets/{fetchTokenMetadata-CpttgW84.js → fetchTokenMetadata-C1e9utql.js} +2 -2
  75. package/_assets/{field.styles-DKv8B53l.js → field.styles-DUhp2XSE.js} +1 -1
  76. package/_assets/{get-bytecode-CL7QG9KN.js → get-bytecode-C_QCCMoR.js} +1 -1
  77. package/_assets/get-ecosystem-wallet-info-D6ZqL22k.js +1 -0
  78. package/_assets/{getBalance-B2ObTKo9.js → getBalance-BRp_O879.js} +2 -2
  79. package/_assets/{getInstalledModules-OWhC7ilZ.js → getInstalledModules-TqMZVwQW.js} +1 -1
  80. package/_assets/getNFT-CxoCzDMN.js +1 -0
  81. package/_assets/{getNFT-DEL-8DlX.js → getNFT-D5BgP1-B.js} +2 -2
  82. package/_assets/{grid.styles-CLaodk5Q.js → grid.styles-8zRUQugb.js} +1 -1
  83. package/_assets/{hashTypedData-l-4TMklh.js → hashTypedData-BVfCehOr.js} +1 -1
  84. package/_assets/{hashTypedData-DejwI0fC.js → hashTypedData-DYCRMzzm.js} +1 -1
  85. package/_assets/{in-app-CAxC4Ivh.js → in-app-DkcHZ10N.js} +1 -1
  86. package/_assets/{in-app-wallet-calls-B4qBtbAF.js → in-app-wallet-calls-gnS8ZYX9.js} +1 -1
  87. package/_assets/{index-DqhO9Fg3.js → index--uTyu0uz.js} +1 -1
  88. package/_assets/{index-eNelMLKH.js → index-1ZLnfNGq.js} +1 -1
  89. package/_assets/{index-DakB46KR.js → index-2mvOLhCu.js} +1 -1
  90. package/_assets/{index-CEyMhxNB.js → index-B-uyLfLW.js} +1 -1
  91. package/_assets/{index-DEJfCl92.js → index-BElLBIDw.js} +1 -1
  92. package/_assets/{index-BxnUk4ME.js → index-BHVZE5-w.js} +1 -1
  93. package/_assets/{index-Bv9rCbrF.js → index-BHiuk7dd.js} +1 -1
  94. package/_assets/{index-BVi-9LKN.js → index-BKE2sklY.js} +1 -1
  95. package/_assets/{index-DP6QK5zD.js → index-BR-AXZqF.js} +1 -1
  96. package/_assets/{index-CRzzQfOr.js → index-BTUwiZLK.js} +1 -1
  97. package/_assets/{index-Bh6adykR.js → index-BVWvbmB_.js} +12 -12
  98. package/_assets/{index-Dhix6rUc.js → index-BYvgoigv.js} +1 -1
  99. package/_assets/{index-BYLXLXoc.js → index-B_1v6F0h.js} +1 -1
  100. package/_assets/{index-DvYOZ9Sr.js → index-B_3Ca4N6.js} +2 -2
  101. package/_assets/{index-Cmjegovo.js → index-BcxEq2Er.js} +1 -1
  102. package/_assets/{index-BMx0J1W7.js → index-BhcJRwSw.js} +1 -1
  103. package/_assets/{index-CK61l8v-.js → index-BiNtOaPH.js} +1 -1
  104. package/_assets/{index-DUOQXffc.js → index-Bl3tllG2.js} +1 -1
  105. package/_assets/{index-hKJudHRw.js → index-BqTYxdMG.js} +1 -1
  106. package/_assets/{index-DKT5zOvs.js → index-BsZqUcMW.js} +1 -1
  107. package/_assets/{index-DkPrBpEu.js → index-BtXchQlE.js} +1 -1
  108. package/_assets/{index-BLuTTbXE.js → index-CA_m9eDM.js} +1 -1
  109. package/_assets/{index-Zf4oaxuE.js → index-CEBe8Ks-.js} +1 -1
  110. package/_assets/{index-BfOmf_Cp.js → index-CI91n7ZK.js} +1 -1
  111. package/_assets/{index-1QstDrwj.js → index-CKQ7PP9t.js} +1 -1
  112. package/_assets/{index-9KWmRLJY.js → index-CNjkfqno.js} +1 -1
  113. package/_assets/{index-DFBE_Qdk.js → index-CSuR3VTG.js} +1 -1
  114. package/_assets/{index-DOLSZTRS.js → index-CVdDq8EF.js} +1 -1
  115. package/_assets/{index-R9nHgWvM.js → index-CYTl2aV_.js} +1 -1
  116. package/_assets/{index-Cumq3JZH.js → index-CaWADU3A.js} +3 -3
  117. package/_assets/{index-EF_jUQ8k.js → index-ChtghJjk.js} +1 -1
  118. package/_assets/{index-CzLF63y-.js → index-CstxEm24.js} +1 -1
  119. package/_assets/{index-BKv8igl6.js → index-CtmBq3lY.js} +1 -1
  120. package/_assets/{index-BJSqjAz5.js → index-CtnJfdje.js} +1 -1
  121. package/_assets/{index-BkyZYtvZ.js → index-CuEcRXk2.js} +1 -1
  122. package/_assets/{index-Cg55UGkV.js → index-Cy3K6TbO.js} +1 -1
  123. package/_assets/{index-DGlvMnC6.js → index-D0Sno89y.js} +1 -1
  124. package/_assets/{index-ChXE0-3A.js → index-D3Cq4bqb.js} +1 -1
  125. package/_assets/{index-DPwpeXbZ.js → index-DBV70okV.js} +1 -1
  126. package/_assets/{index-BHsHyxTp.js → index-DFbLJk0v.js} +1 -1
  127. package/_assets/{index-Bf9Jh6ty.js → index-DIXd4yr6.js} +3 -3
  128. package/_assets/{index-DiWnKuWQ.js → index-DJj7DNI5.js} +2 -2
  129. package/_assets/{index-BWHG3_yU.js → index-DKik1tqf.js} +1 -1
  130. package/_assets/{index-tslnPDXe.js → index-DNaUH0hG.js} +1 -1
  131. package/_assets/{index-Dcr_mOap.js → index-DOUhX2vd.js} +1 -1
  132. package/_assets/{index-CXVjVFyf.js → index-DWB648gE.js} +2 -2
  133. package/_assets/{index-BoAHsqWZ.js → index-DbCIRxku.js} +3 -3
  134. package/_assets/{index-BvqQC62-.js → index-DfVwZLZv.js} +1 -1
  135. package/_assets/{index-PKeNbFmQ.js → index-Di93FjoO.js} +1 -1
  136. package/_assets/{index-BeR8agGt.js → index-DoPvIZFo.js} +1 -1
  137. package/_assets/{index-D7lxJ3dw.js → index-Dziv-ztL.js} +1 -1
  138. package/_assets/{index-DawlAKc2.js → index-KCnWqTid.js} +1 -1
  139. package/_assets/{index-BbVTIE6o.js → index-LLZCscV-.js} +1 -1
  140. package/_assets/{index-DVLRWBza.js → index-RzZ2o1PM.js} +1 -1
  141. package/_assets/{index-D5hR2snR.js → index-UKBE5ufT.js} +1 -1
  142. package/_assets/{index-DiIBE3vJ.js → index-WtEb8Dou.js} +1 -1
  143. package/_assets/{index-BS30HDvk.js → index-XsdlViAm.js} +1 -1
  144. package/_assets/{index-C0Q2Xw9m.js → index-hraIPyUK.js} +2 -2
  145. package/_assets/{index-1hFNP4-J.js → index-nyMFoZlx.js} +1 -1
  146. package/_assets/{index-CPeIXfrM.js → index-oGGEVx4e.js} +1 -1
  147. package/_assets/{index-DHGhfu2F.js → index-pGuWMonI.js} +1 -1
  148. package/_assets/{index-Uf7j7Muh.js → index-xmwrM1gX.js} +1 -1
  149. package/_assets/{index.es-CpRZxgSI.js → index.es-1C-91fa0.js} +1 -1
  150. package/_assets/{index.es-mC-IwkBp.js → index.es-BSWBrpQe.js} +4 -4
  151. package/_assets/{index.es-BrdXKoNI.js → index.es-dMv11h1g.js} +1 -1
  152. package/_assets/{linkAccount-BC_9YSzE.js → linkAccount-BPOjpDQF.js} +1 -1
  153. package/_assets/{localBatchGatewayRequest-Sqedi9_T.js → localBatchGatewayRequest-DQhTBRSh.js} +1 -1
  154. package/_assets/{native-Dc2tC-qn.js → native-DDD_yqs5.js} +1 -1
  155. package/_assets/{networks-D1KxTI6W.js → networks-DuFCMSqt.js} +1 -1
  156. package/_assets/{onramp-DoImupnC.js → onramp-CB-lwIcL.js} +1 -1
  157. package/_assets/{openzeppelin-BgxtMme5.js → openzeppelin-BEzK-ytM.js} +1 -1
  158. package/_assets/{ownerOf-3KXrH0u3.js → ownerOf-CR0b_ZWL.js} +1 -1
  159. package/_assets/{parseNft-PSXPX8Qm.js → parseNft-CeR_0mFl.js} +2 -2
  160. package/_assets/{parseSignature-CYlDxQ9k.js → parseSignature-BXY4fDlp.js} +3 -3
  161. package/_assets/{parseSignature-DTi4uU4Z.js → parseSignature-DvIu4faj.js} +1 -1
  162. package/_assets/{passkeys-5lnypzRC.js → passkeys-DoXc4Xy7.js} +1 -1
  163. package/_assets/{pay-with-exchange-CWcjyYs3.js → pay-with-exchange-D3YRwRnQ.js} +1 -1
  164. package/_assets/{prepare-contract-call-Bc4Cpa9D.js → prepare-contract-call-CuOouwzZ.js} +1 -1
  165. package/_assets/{qr-overlay-NPhJDGVq.js → qr-overlay-BKsCOIA8.js} +1 -1
  166. package/_assets/{receive-VPgnkZS_.js → receive-B1KBfflU.js} +1 -1
  167. package/_assets/{resolveImplementation-fHRuJM82.js → resolveImplementation-rJZA8R7-.js} +1 -1
  168. package/_assets/{rpc-DZP--mgd.js → rpc-z-_gajTg.js} +1 -1
  169. package/_assets/{secp256k1-oNvcpUA1.js → secp256k1-CEt2uVIa.js} +1 -1
  170. package/_assets/{secp256k1-sqjfgWa7.js → secp256k1-DzPEUahX.js} +1 -1
  171. package/_assets/{secp256k1-C3Qb75Qb.js → secp256k1-Eu_UrDZQ.js} +1 -1
  172. package/_assets/{send-yMlzgxV3.js → send-BP56Pjq2.js} +1 -1
  173. package/_assets/{send-batch-transaction-C5BOzhrb.js → send-batch-transaction-E8tR0aO1.js} +1 -1
  174. package/_assets/{send-eip712-transaction-BfXD1pXX.js → send-eip712-transaction-6B8BaRp6.js} +2 -2
  175. package/_assets/send-gasless-transaction-BC0vYYGz.js +2 -0
  176. package/_assets/{send-transaction-DLLBmyZ2.js → send-transaction-Cyj6alac.js} +2 -2
  177. package/_assets/{sendMetaTransaction-DCqRrKxD.js → sendMetaTransaction-CxjN2iMp.js} +1 -1
  178. package/_assets/{sendRawTransaction-k2Sfh7AJ.js → sendRawTransaction-BZMjypDx.js} +3 -3
  179. package/_assets/{sentry-1ai9esXb.js → sentry-CUdtSPei.js} +1 -1
  180. package/_assets/{serializeTransaction-CwlY06pE.js → serializeTransaction-DdLuDvZh.js} +1 -1
  181. package/_assets/{session-proposal-BR4gno3D.js → session-proposal-Cb_IdGgx.js} +1 -1
  182. package/_assets/{session-request-DelvKYtg.js → session-request-CuiTHTkf.js} +2 -2
  183. package/_assets/{sha256-CeTmPq_Q.js → sha256-DsP9u1VJ.js} +1 -1
  184. package/_assets/{signing-DBPT8c_m.js → signing-B_TMY__g.js} +3 -3
  185. package/_assets/{skeleton.styles-S0BlHaZF.js → skeleton.styles-BZ8ZgFLU.js} +1 -1
  186. package/_assets/{socials-HhtoVIIu.js → socials-DDD9uvpM.js} +1 -1
  187. package/_assets/{styled-9SIjAP06.js → styled-KLwzgdoB.js} +1 -1
  188. package/_assets/{swaps-BzqeewT0.js → swaps-CjqUbBfb.js} +1 -1
  189. package/_assets/{thirdweb-YIX7a_02.js → thirdweb-0rujUNSl.js} +3 -3
  190. package/_assets/{to-serializable-transaction-DqDYMKiS.js → to-serializable-transaction-NCusZ8xl.js} +2 -2
  191. package/_assets/{totalSupply-7X9a1Ctp.js → totalSupply-u5fgMBD-.js} +1 -1
  192. package/_assets/{transaction-DcVIFcB7.js → transaction-C8mfivVb.js} +1 -1
  193. package/_assets/{transactionReceipt-CdHeShcY.js → transactionReceipt-BHjPvP-A.js} +1 -1
  194. package/_assets/{transactions-DG7v8Ic7.js → transactions-D0YLE766.js} +1 -1
  195. package/_assets/{useCreditPacks-vq0qzOlC.js → useCreditPacks-DhRruCBh.js} +1 -1
  196. package/_assets/{useImportable-BJCj_pDd.js → useImportable-COXp75Oi.js} +1 -1
  197. package/_assets/{useInfiniteGrid-BzWCN8NZ.js → useInfiniteGrid-CPaNhKNU.js} +1 -1
  198. package/_assets/{useStore-CQ5asPEA.js → useStore-a0qe_EW2.js} +2 -2
  199. package/_assets/useTheme-DgGKATWA.js +1 -0
  200. package/_assets/{utils-DPjdBMrV.js → utils-ClNpRN95.js} +1 -1
  201. package/_assets/{verifyHash-B6Vh-Wda.js → verifyHash-Czkmjbtb.js} +1 -1
  202. package/_assets/{w3m-modal-BBx0I47s.js → w3m-modal-CCQZ28h5.js} +1 -1
  203. package/_assets/{w3m-modal-DSuObTMF.js → w3m-modal-XkqIwsWW.js} +1 -1
  204. package/_assets/{wait-for-tx-receipt-dL7u4t_k.js → wait-for-tx-receipt-umHQbgNk.js} +1 -1
  205. package/_assets/{wallets-DUR60lPP.js → wallets-dFWYb-aD.js} +5 -5
  206. package/_assets/{web-connector-CehjxsVA.js → web-connector-B6I8EGFj.js} +3 -3
  207. package/_assets/{writeContract-C0-n2OaV.js → writeContract-C2tbGQyL.js} +1 -1
  208. package/_assets/{zora-sepolia-k6yl8DpC.js → zora-sepolia-CIZA49Ti.js} +1 -1
  209. package/_assets/{zoraTestnet-7xxdYXjY.js → zoraTestnet-Chf9u3j4.js} +1 -1
  210. package/index.html +11 -11
  211. package/package.json +2 -2
  212. package/_assets/Activity-Du3v4d55.js +0 -378
  213. package/_assets/LazyEmoteControls-BlgXCM-V.js +0 -2
  214. package/_assets/authorizations-CHiv1Pa7.js +0 -1
  215. package/_assets/buy-gasless-CChLhkv0.js +0 -1
  216. package/_assets/decimals-C8Nkd-f-.js +0 -1
  217. package/_assets/get-ecosystem-wallet-info-ClVaJBNf.js +0 -1
  218. package/_assets/getNFT-BSQnVoEz.js +0 -1
  219. package/_assets/send-gasless-transaction-DTd_ER_v.js +0 -2
  220. package/_assets/useTheme-BzrLLDZ8.js +0 -1
@@ -1,4 +1,4 @@
1
- import{e as ot}from"./index-CXVjVFyf.js";import{f as nn}from"./react-BYHuwl8r.js";import{p as Se,g as ge}from"./sentry-1ai9esXb.js";import{c as on}from"./index-BWHG3_yU.js";var Pe={};/*! *****************************************************************************
1
+ import{e as ot}from"./index-DWB648gE.js";import{f as nn}from"./react-BYHuwl8r.js";import{p as Se,g as ge}from"./sentry-CUdtSPei.js";import{c as on}from"./index-DKik1tqf.js";var Pe={};/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -1,4 +1,4 @@
1
- import{f as Vv,g as Wv}from"./react-BYHuwl8r.js";import{r as Kv}from"./index-BV8s6ez1.js";import{n as Zv}from"./native-Dc2tC-qn.js";import{r as Yv}from"./events-DQ172AOg.js";function Jv(e,r){for(var n=0;n<r.length;n++){const t=r[n];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(t,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Nd={},Wn={},Nt={},sn={},xr={},Kn={},Zn={},Tl;function wg(){if(Tl)return Zn;Tl=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.getSDKVersion=void 0;const e=()=>"9.1.0";return Zn.getSDKVersion=e,Zn}var Yn={},Sl;function Xv(){if(Sl)return Yn;Sl=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.generateRequestId=void 0;const e=t=>t.toString(16).padStart(2,"0"),r=t=>{const o=new Uint8Array(t/2);return window.crypto.getRandomValues(o),Array.from(o,e).join("")},n=()=>typeof window<"u"?r(10):new Date().getTime().toString(36);return Yn.generateRequestId=n,Yn}var Il;function Pg(){if(Il)return Kn;Il=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.MessageFormatter=void 0;const e=wg(),r=Xv();class n{}return Kn.MessageFormatter=n,n.makeRequest=(t,o)=>({id:(0,r.generateRequestId)(),method:t,params:o,env:{sdkVersion:(0,e.getSDKVersion)()}}),n.makeResponse=(t,o,s)=>({id:t,success:!0,version:s,data:o}),n.makeErrorResponse=(t,o,s)=>({id:t,success:!1,error:o,version:s}),Kn}var qr={},Rl;function Kr(){if(Rl)return qr;Rl=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.RestrictedMethods=qr.Methods=void 0;var e;(function(n){n.sendTransactions="sendTransactions",n.rpcCall="rpcCall",n.getChainInfo="getChainInfo",n.getSafeInfo="getSafeInfo",n.getTxBySafeTxHash="getTxBySafeTxHash",n.getSafeBalances="getSafeBalances",n.signMessage="signMessage",n.signTypedMessage="signTypedMessage",n.getEnvironmentInfo="getEnvironmentInfo",n.getOffChainSignature="getOffChainSignature",n.requestAddressBook="requestAddressBook",n.wallet_getPermissions="wallet_getPermissions",n.wallet_requestPermissions="wallet_requestPermissions"})(e||(qr.Methods=e={}));var r;return(function(n){n.requestAddressBook="requestAddressBook"})(r||(qr.RestrictedMethods=r={})),qr}var Bl;function Qv(){return Bl||(Bl=1,(function(e){var r=xr&&xr.__createBinding||(Object.create?(function(s,a,i,c){c===void 0&&(c=i);var d=Object.getOwnPropertyDescriptor(a,i);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(s,c,d)}):(function(s,a,i,c){c===void 0&&(c=i),s[c]=a[i]})),n=xr&&xr.__exportStar||function(s,a){for(var i in s)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&r(a,s,i)};Object.defineProperty(e,"__esModule",{value:!0});const t=Pg();class o{constructor(a=null,i=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:c,data:d,source:f})=>{const l=!d,m=!this.isServer&&f===window.parent,y=typeof d.version<"u"&&parseInt(d.version.split(".")[0]),h=typeof y=="number"&&y>=1;let b=!0;return Array.isArray(this.allowedOrigins)&&(b=this.allowedOrigins.find(E=>E.test(c))!==void 0),!l&&m&&h&&b},this.logIncomingMessage=c=>{console.info(`Safe Apps SDK v1: A message was received from origin ${c.origin}. `,c.data)},this.onParentMessage=c=>{this.isValidMessage(c)&&(this.debugMode&&this.logIncomingMessage(c),this.handleIncomingMessage(c.data))},this.handleIncomingMessage=c=>{const{id:d}=c,f=this.callbacks.get(d);f&&(f(c),this.callbacks.delete(d))},this.send=(c,d)=>{const f=t.MessageFormatter.makeRequest(c,d);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(f,"*"),new Promise((l,m)=>{this.callbacks.set(f.id,y=>{if(!y.success){m(new Error(y.error));return}l(y)})})},this.allowedOrigins=a,this.debugMode=i,this.isServer||window.addEventListener("message",this.onParentMessage)}}e.default=o,n(Kr(),e)})(xr)),xr}var Jn={},Mr={},Xn={},Ol;function e6(){if(Ol)return Xn;Ol=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.isObjectEIP712TypedData=void 0;const e=r=>typeof r=="object"&&r!=null&&"domain"in r&&"types"in r&&"message"in r;return Xn.isObjectEIP712TypedData=e,Xn}var $d={},Cl;function t6(){return Cl||(Cl=1,Object.defineProperty($d,"__esModule",{value:!0})),$d}var zd={},xl;function r6(){return xl||(xl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferDirection=e.TransactionStatus=e.TokenType=e.Operation=void 0;var r=Kv();Object.defineProperty(e,"Operation",{enumerable:!0,get:function(){return r.Operation}}),Object.defineProperty(e,"TokenType",{enumerable:!0,get:function(){return r.TokenType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return r.TransactionStatus}}),Object.defineProperty(e,"TransferDirection",{enumerable:!0,get:function(){return r.TransferDirection}})})(zd)),zd}var Ld={},ql;function n6(){return ql||(ql=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Kr()),Ld}var Ml;function gf(){return Ml||(Ml=1,(function(e){var r=Mr&&Mr.__createBinding||(Object.create?(function(t,o,s,a){a===void 0&&(a=s);var i=Object.getOwnPropertyDescriptor(o,s);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(t,a,i)}):(function(t,o,s,a){a===void 0&&(a=s),t[a]=o[s]})),n=Mr&&Mr.__exportStar||function(t,o){for(var s in t)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,t,s)};Object.defineProperty(e,"__esModule",{value:!0}),n(e6(),e),n(t6(),e),n(r6(),e),n(n6(),e)})(Mr)),Mr}var kl;function o6(){if(kl)return Jn;kl=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.TXs=void 0;const e=Kr(),r=gf();class n{constructor(o){this.communicator=o}async getBySafeTxHash(o){if(!o)throw new Error("Invalid safeTxHash");return(await this.communicator.send(e.Methods.getTxBySafeTxHash,{safeTxHash:o})).data}async signMessage(o){const s={message:o};return(await this.communicator.send(e.Methods.signMessage,s)).data}async signTypedMessage(o){if(!(0,r.isObjectEIP712TypedData)(o))throw new Error("Invalid typed data");return(await this.communicator.send(e.Methods.signTypedMessage,{typedData:o})).data}async send({txs:o,params:s}){if(!o||!o.length)throw new Error("No transactions were passed");const a={txs:o,params:s};return(await this.communicator.send(e.Methods.sendTransactions,a)).data}}return Jn.TXs=n,Jn}var Qn={},eo={},Hl;function _f(){return Hl||(Hl=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.RPC_CALLS=void 0,eo.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}),eo}var Fl;function a6(){if(Fl)return Qn;Fl=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.Eth=void 0;const e=_f(),r=Kr(),n={defaultBlockParam:(o="latest")=>o,returnFullTxObjectParam:(o=!1)=>o,blockNumberToHex:o=>Number.isInteger(o)?`0x${o.toString(16)}`:o};class t{constructor(s){this.communicator=s,this.call=this.buildRequest({call:e.RPC_CALLS.eth_call,formatters:[null,n.defaultBlockParam]}),this.getBalance=this.buildRequest({call:e.RPC_CALLS.eth_getBalance,formatters:[null,n.defaultBlockParam]}),this.getCode=this.buildRequest({call:e.RPC_CALLS.eth_getCode,formatters:[null,n.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:e.RPC_CALLS.eth_getStorageAt,formatters:[null,n.blockNumberToHex,n.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:e.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByHash,formatters:[null,n.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByNumber,formatters:[n.blockNumberToHex,n.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionCount,formatters:[null,n.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:e.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=a=>this.buildRequest({call:e.RPC_CALLS.eth_estimateGas})([a]),this.setSafeSettings=this.buildRequest({call:e.RPC_CALLS.safe_setSettings})}buildRequest(s){const{call:a,formatters:i}=s;return async c=>{i&&Array.isArray(c)&&i.forEach((l,m)=>{l&&(c[m]=l(c[m]))});const d={call:a,params:c||[]};return(await this.communicator.send(r.Methods.rpcCall,d)).data}}}return Qn.Eth=t,Qn}var $t={},Ud={},Dd={},to={},ro={},Nl;function i6(){return Nl||(Nl=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.version=void 0,ro.version="1.2.3"),ro}var $l;function Bn(){if($l)return to;$l=1,Object.defineProperty(to,"__esModule",{value:!0}),to.BaseError=void 0;const e=i6();class r extends Error{constructor(t,o={}){var c;const s=o.cause instanceof r?o.cause.details:(c=o.cause)!=null&&c.message?o.cause.message:o.details,a=o.cause instanceof r&&o.cause.docsPath||o.docsPath,i=[t||"An error occurred.","",...o.metaMessages?[...o.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...s?[`Details: ${s}`]:[],`Version: abitype@${e.version}`].join(`
1
+ import{f as Vv,g as Wv}from"./react-BYHuwl8r.js";import{r as Kv}from"./index-BV8s6ez1.js";import{n as Zv}from"./native-DDD_yqs5.js";import{r as Yv}from"./events-DQ172AOg.js";function Jv(e,r){for(var n=0;n<r.length;n++){const t=r[n];if(typeof t!="string"&&!Array.isArray(t)){for(const o in t)if(o!=="default"&&!(o in e)){const s=Object.getOwnPropertyDescriptor(t,o);s&&Object.defineProperty(e,o,s.get?s:{enumerable:!0,get:()=>t[o]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var Nd={},Wn={},Nt={},sn={},xr={},Kn={},Zn={},Tl;function wg(){if(Tl)return Zn;Tl=1,Object.defineProperty(Zn,"__esModule",{value:!0}),Zn.getSDKVersion=void 0;const e=()=>"9.1.0";return Zn.getSDKVersion=e,Zn}var Yn={},Sl;function Xv(){if(Sl)return Yn;Sl=1,Object.defineProperty(Yn,"__esModule",{value:!0}),Yn.generateRequestId=void 0;const e=t=>t.toString(16).padStart(2,"0"),r=t=>{const o=new Uint8Array(t/2);return window.crypto.getRandomValues(o),Array.from(o,e).join("")},n=()=>typeof window<"u"?r(10):new Date().getTime().toString(36);return Yn.generateRequestId=n,Yn}var Il;function Pg(){if(Il)return Kn;Il=1,Object.defineProperty(Kn,"__esModule",{value:!0}),Kn.MessageFormatter=void 0;const e=wg(),r=Xv();class n{}return Kn.MessageFormatter=n,n.makeRequest=(t,o)=>({id:(0,r.generateRequestId)(),method:t,params:o,env:{sdkVersion:(0,e.getSDKVersion)()}}),n.makeResponse=(t,o,s)=>({id:t,success:!0,version:s,data:o}),n.makeErrorResponse=(t,o,s)=>({id:t,success:!1,error:o,version:s}),Kn}var qr={},Rl;function Kr(){if(Rl)return qr;Rl=1,Object.defineProperty(qr,"__esModule",{value:!0}),qr.RestrictedMethods=qr.Methods=void 0;var e;(function(n){n.sendTransactions="sendTransactions",n.rpcCall="rpcCall",n.getChainInfo="getChainInfo",n.getSafeInfo="getSafeInfo",n.getTxBySafeTxHash="getTxBySafeTxHash",n.getSafeBalances="getSafeBalances",n.signMessage="signMessage",n.signTypedMessage="signTypedMessage",n.getEnvironmentInfo="getEnvironmentInfo",n.getOffChainSignature="getOffChainSignature",n.requestAddressBook="requestAddressBook",n.wallet_getPermissions="wallet_getPermissions",n.wallet_requestPermissions="wallet_requestPermissions"})(e||(qr.Methods=e={}));var r;return(function(n){n.requestAddressBook="requestAddressBook"})(r||(qr.RestrictedMethods=r={})),qr}var Bl;function Qv(){return Bl||(Bl=1,(function(e){var r=xr&&xr.__createBinding||(Object.create?(function(s,a,i,c){c===void 0&&(c=i);var d=Object.getOwnPropertyDescriptor(a,i);(!d||("get"in d?!a.__esModule:d.writable||d.configurable))&&(d={enumerable:!0,get:function(){return a[i]}}),Object.defineProperty(s,c,d)}):(function(s,a,i,c){c===void 0&&(c=i),s[c]=a[i]})),n=xr&&xr.__exportStar||function(s,a){for(var i in s)i!=="default"&&!Object.prototype.hasOwnProperty.call(a,i)&&r(a,s,i)};Object.defineProperty(e,"__esModule",{value:!0});const t=Pg();class o{constructor(a=null,i=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:c,data:d,source:f})=>{const l=!d,m=!this.isServer&&f===window.parent,y=typeof d.version<"u"&&parseInt(d.version.split(".")[0]),h=typeof y=="number"&&y>=1;let b=!0;return Array.isArray(this.allowedOrigins)&&(b=this.allowedOrigins.find(E=>E.test(c))!==void 0),!l&&m&&h&&b},this.logIncomingMessage=c=>{console.info(`Safe Apps SDK v1: A message was received from origin ${c.origin}. `,c.data)},this.onParentMessage=c=>{this.isValidMessage(c)&&(this.debugMode&&this.logIncomingMessage(c),this.handleIncomingMessage(c.data))},this.handleIncomingMessage=c=>{const{id:d}=c,f=this.callbacks.get(d);f&&(f(c),this.callbacks.delete(d))},this.send=(c,d)=>{const f=t.MessageFormatter.makeRequest(c,d);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(f,"*"),new Promise((l,m)=>{this.callbacks.set(f.id,y=>{if(!y.success){m(new Error(y.error));return}l(y)})})},this.allowedOrigins=a,this.debugMode=i,this.isServer||window.addEventListener("message",this.onParentMessage)}}e.default=o,n(Kr(),e)})(xr)),xr}var Jn={},Mr={},Xn={},Ol;function e6(){if(Ol)return Xn;Ol=1,Object.defineProperty(Xn,"__esModule",{value:!0}),Xn.isObjectEIP712TypedData=void 0;const e=r=>typeof r=="object"&&r!=null&&"domain"in r&&"types"in r&&"message"in r;return Xn.isObjectEIP712TypedData=e,Xn}var $d={},Cl;function t6(){return Cl||(Cl=1,Object.defineProperty($d,"__esModule",{value:!0})),$d}var zd={},xl;function r6(){return xl||(xl=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.TransferDirection=e.TransactionStatus=e.TokenType=e.Operation=void 0;var r=Kv();Object.defineProperty(e,"Operation",{enumerable:!0,get:function(){return r.Operation}}),Object.defineProperty(e,"TokenType",{enumerable:!0,get:function(){return r.TokenType}}),Object.defineProperty(e,"TransactionStatus",{enumerable:!0,get:function(){return r.TransactionStatus}}),Object.defineProperty(e,"TransferDirection",{enumerable:!0,get:function(){return r.TransferDirection}})})(zd)),zd}var Ld={},ql;function n6(){return ql||(ql=1,Object.defineProperty(Ld,"__esModule",{value:!0}),Kr()),Ld}var Ml;function gf(){return Ml||(Ml=1,(function(e){var r=Mr&&Mr.__createBinding||(Object.create?(function(t,o,s,a){a===void 0&&(a=s);var i=Object.getOwnPropertyDescriptor(o,s);(!i||("get"in i?!o.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return o[s]}}),Object.defineProperty(t,a,i)}):(function(t,o,s,a){a===void 0&&(a=s),t[a]=o[s]})),n=Mr&&Mr.__exportStar||function(t,o){for(var s in t)s!=="default"&&!Object.prototype.hasOwnProperty.call(o,s)&&r(o,t,s)};Object.defineProperty(e,"__esModule",{value:!0}),n(e6(),e),n(t6(),e),n(r6(),e),n(n6(),e)})(Mr)),Mr}var kl;function o6(){if(kl)return Jn;kl=1,Object.defineProperty(Jn,"__esModule",{value:!0}),Jn.TXs=void 0;const e=Kr(),r=gf();class n{constructor(o){this.communicator=o}async getBySafeTxHash(o){if(!o)throw new Error("Invalid safeTxHash");return(await this.communicator.send(e.Methods.getTxBySafeTxHash,{safeTxHash:o})).data}async signMessage(o){const s={message:o};return(await this.communicator.send(e.Methods.signMessage,s)).data}async signTypedMessage(o){if(!(0,r.isObjectEIP712TypedData)(o))throw new Error("Invalid typed data");return(await this.communicator.send(e.Methods.signTypedMessage,{typedData:o})).data}async send({txs:o,params:s}){if(!o||!o.length)throw new Error("No transactions were passed");const a={txs:o,params:s};return(await this.communicator.send(e.Methods.sendTransactions,a)).data}}return Jn.TXs=n,Jn}var Qn={},eo={},Hl;function _f(){return Hl||(Hl=1,Object.defineProperty(eo,"__esModule",{value:!0}),eo.RPC_CALLS=void 0,eo.RPC_CALLS={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"}),eo}var Fl;function a6(){if(Fl)return Qn;Fl=1,Object.defineProperty(Qn,"__esModule",{value:!0}),Qn.Eth=void 0;const e=_f(),r=Kr(),n={defaultBlockParam:(o="latest")=>o,returnFullTxObjectParam:(o=!1)=>o,blockNumberToHex:o=>Number.isInteger(o)?`0x${o.toString(16)}`:o};class t{constructor(s){this.communicator=s,this.call=this.buildRequest({call:e.RPC_CALLS.eth_call,formatters:[null,n.defaultBlockParam]}),this.getBalance=this.buildRequest({call:e.RPC_CALLS.eth_getBalance,formatters:[null,n.defaultBlockParam]}),this.getCode=this.buildRequest({call:e.RPC_CALLS.eth_getCode,formatters:[null,n.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:e.RPC_CALLS.eth_getStorageAt,formatters:[null,n.blockNumberToHex,n.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:e.RPC_CALLS.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByHash,formatters:[null,n.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:e.RPC_CALLS.eth_getBlockByNumber,formatters:[n.blockNumberToHex,n.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:e.RPC_CALLS.eth_getTransactionCount,formatters:[null,n.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:e.RPC_CALLS.eth_gasPrice}),this.getEstimateGas=a=>this.buildRequest({call:e.RPC_CALLS.eth_estimateGas})([a]),this.setSafeSettings=this.buildRequest({call:e.RPC_CALLS.safe_setSettings})}buildRequest(s){const{call:a,formatters:i}=s;return async c=>{i&&Array.isArray(c)&&i.forEach((l,m)=>{l&&(c[m]=l(c[m]))});const d={call:a,params:c||[]};return(await this.communicator.send(r.Methods.rpcCall,d)).data}}}return Qn.Eth=t,Qn}var $t={},Ud={},Dd={},to={},ro={},Nl;function i6(){return Nl||(Nl=1,Object.defineProperty(ro,"__esModule",{value:!0}),ro.version=void 0,ro.version="1.2.3"),ro}var $l;function Bn(){if($l)return to;$l=1,Object.defineProperty(to,"__esModule",{value:!0}),to.BaseError=void 0;const e=i6();class r extends Error{constructor(t,o={}){var c;const s=o.cause instanceof r?o.cause.details:(c=o.cause)!=null&&c.message?o.cause.message:o.details,a=o.cause instanceof r&&o.cause.docsPath||o.docsPath,i=[t||"An error occurred.","",...o.metaMessages?[...o.metaMessages,""]:[],...a?[`Docs: https://abitype.dev${a}`]:[],...s?[`Details: ${s}`]:[],`Version: abitype@${e.version}`].join(`
2
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"}),o.cause&&(this.cause=o.cause),this.details=s,this.docsPath=a,this.metaMessages=o.metaMessages,this.shortMessage=t}}return to.BaseError=r,to}var Ia={},zl;function s6(){if(zl)return Ia;zl=1,Object.defineProperty(Ia,"__esModule",{value:!0}),Ia.narrow=e;function e(r){return r}return Ia}var Ra={},Ba={},Oa={},Ca={},qt={},Ll;function Ku(){if(Ll)return qt;Ll=1,Object.defineProperty(qt,"__esModule",{value:!0}),qt.isTupleRegex=qt.integerRegex=qt.bytesRegex=void 0,qt.execTyped=e;function e(r,n){const t=r.exec(n);return t==null?void 0:t.groups}return qt.bytesRegex=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,qt.integerRegex=/^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)?$/,qt.isTupleRegex=/^\(.+?\).*?$/,qt}var Ul;function Ag(){if(Ul)return Ca;Ul=1,Object.defineProperty(Ca,"__esModule",{value:!0}),Ca.formatAbiParameter=n;const e=Ku(),r=/^tuple(?<array>(\[(\d*)\])*)$/;function n(t){let o=t.type;if(r.test(t.type)&&"components"in t){o="(";const s=t.components.length;for(let i=0;i<s;i++){const c=t.components[i];o+=n(c),i<s-1&&(o+=", ")}const a=(0,e.execTyped)(r,t.type);return o+=`)${(a==null?void 0:a.array)||""}`,n({...t,type:o})}return"indexed"in t&&t.indexed&&(o=`${o} indexed`),t.name?`${o} ${t.name}`:o}return Ca}var Dl;function Tg(){if(Dl)return Oa;Dl=1,Object.defineProperty(Oa,"__esModule",{value:!0}),Oa.formatAbiParameters=r;const e=Ag();function r(n){let t="";const o=n.length;for(let s=0;s<o;s++){const a=n[s];t+=(0,e.formatAbiParameter)(a),s!==o-1&&(t+=", ")}return t}return Oa}var Gl;function Sg(){if(Gl)return Ba;Gl=1,Object.defineProperty(Ba,"__esModule",{value:!0}),Ba.formatAbiItem=r;const e=Tg();function r(n){var t;return n.type==="function"?`function ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})${n.stateMutability&&n.stateMutability!=="nonpayable"?` ${n.stateMutability}`:""}${(t=n.outputs)!=null&&t.length?` returns (${(0,e.formatAbiParameters)(n.outputs)})`:""}`:n.type==="event"?`event ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})`:n.type==="error"?`error ${n.name}(${(0,e.formatAbiParameters)(n.inputs)})`:n.type==="constructor"?`constructor(${(0,e.formatAbiParameters)(n.inputs)})${n.stateMutability==="payable"?" payable":""}`:n.type==="fallback"?`fallback() external${n.stateMutability==="payable"?" payable":""}`:"receive() external payable"}return Ba}var Vl;function c6(){if(Vl)return Ra;Vl=1,Object.defineProperty(Ra,"__esModule",{value:!0}),Ra.formatAbi=r;const e=Sg();function r(n){const t=[],o=n.length;for(let s=0;s<o;s++){const a=n[s],i=(0,e.formatAbiItem)(a);t.push(i)}return t}return Ra}var xa={},Ce={},Wl;function On(){if(Wl)return Ce;Wl=1,Object.defineProperty(Ce,"__esModule",{value:!0}),Ce.functionModifiers=Ce.eventModifiers=Ce.modifiers=void 0,Ce.isErrorSignature=n,Ce.execErrorSignature=t,Ce.isEventSignature=s,Ce.execEventSignature=a,Ce.isFunctionSignature=c,Ce.execFunctionSignature=d,Ce.isStructSignature=l,Ce.execStructSignature=m,Ce.isConstructorSignature=h,Ce.execConstructorSignature=b,Ce.isFallbackSignature=g,Ce.execFallbackSignature=v,Ce.isReceiveSignature=u;const e=Ku(),r=/^error (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function n(w){return r.test(w)}function t(w){return(0,e.execTyped)(r,w)}const o=/^event (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)$/;function s(w){return o.test(w)}function a(w){return(0,e.execTyped)(o,w)}const i=/^function (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*)\((?<parameters>.*?)\)(?: (?<scope>external|public{1}))?(?: (?<stateMutability>pure|view|nonpayable|payable{1}))?(?: returns\s?\((?<returns>.*?)\))?$/;function c(w){return i.test(w)}function d(w){return(0,e.execTyped)(i,w)}const f=/^struct (?<name>[a-zA-Z$_][a-zA-Z0-9$_]*) \{(?<properties>.*?)\}$/;function l(w){return f.test(w)}function m(w){return(0,e.execTyped)(f,w)}const y=/^constructor\((?<parameters>.*?)\)(?:\s(?<stateMutability>payable{1}))?$/;function h(w){return y.test(w)}function b(w){return(0,e.execTyped)(y,w)}const E=/^fallback\(\) external(?:\s(?<stateMutability>payable{1}))?$/;function g(w){return E.test(w)}function v(w){return(0,e.execTyped)(E,w)}const P=/^receive\(\) external payable$/;function u(w){return P.test(w)}return Ce.modifiers=new Set(["memory","indexed","storage","calldata"]),Ce.eventModifiers=new Set(["indexed"]),Ce.functionModifiers=new Set(["calldata","memory","storage"]),Ce}var qa={},zt={},Kl;function Zu(){if(Kl)return zt;Kl=1,Object.defineProperty(zt,"__esModule",{value:!0}),zt.UnknownSolidityTypeError=zt.UnknownTypeError=zt.InvalidAbiItemError=void 0;const e=Bn();class r extends e.BaseError{constructor({signature:s}){super("Failed to parse ABI item.",{details:`parseAbiItem(${JSON.stringify(s,null,2)})`,docsPath:"/api/human#parseabiitem-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiItemError"})}}zt.InvalidAbiItemError=r;class n extends e.BaseError{constructor({type:s}){super("Unknown type.",{metaMessages:[`Type "${s}" 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"})}}zt.UnknownTypeError=n;class t extends e.BaseError{constructor({type:s}){super("Unknown type.",{metaMessages:[`Type "${s}" is not a valid ABI type.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSolidityTypeError"})}}return zt.UnknownSolidityTypeError=t,zt}var Fe={},Zl;function Qo(){if(Zl)return Fe;Zl=1,Object.defineProperty(Fe,"__esModule",{value:!0}),Fe.InvalidAbiTypeParameterError=Fe.InvalidFunctionModifierError=Fe.InvalidModifierError=Fe.SolidityProtectedKeywordError=Fe.InvalidParameterError=Fe.InvalidAbiParametersError=Fe.InvalidAbiParameterError=void 0;const e=Bn();class r extends e.BaseError{constructor({param:d}){super("Failed to parse ABI parameter.",{details:`parseAbiParameter(${JSON.stringify(d,null,2)})`,docsPath:"/api/human#parseabiparameter-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParameterError"})}}Fe.InvalidAbiParameterError=r;class n extends e.BaseError{constructor({params:d}){super("Failed to parse ABI parameters.",{details:`parseAbiParameters(${JSON.stringify(d,null,2)})`,docsPath:"/api/human#parseabiparameters-1"}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiParametersError"})}}Fe.InvalidAbiParametersError=n;class t extends e.BaseError{constructor({param:d}){super("Invalid ABI parameter.",{details:d}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParameterError"})}}Fe.InvalidParameterError=t;class o extends e.BaseError{constructor({param:d,name:f}){super("Invalid ABI parameter.",{details:d,metaMessages:[`"${f}" 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"})}}Fe.SolidityProtectedKeywordError=o;class s extends e.BaseError{constructor({param:d,type:f,modifier:l}){super("Invalid ABI parameter.",{details:d,metaMessages:[`Modifier "${l}" not allowed${f?` in "${f}" type`:""}.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidModifierError"})}}Fe.InvalidModifierError=s;class a extends e.BaseError{constructor({param:d,type:f,modifier:l}){super("Invalid ABI parameter.",{details:d,metaMessages:[`Modifier "${l}" not allowed${f?` in "${f}" type`:""}.`,`Data location can only be specified for array, struct, or mapping types, but "${l}" was given.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidFunctionModifierError"})}}Fe.InvalidFunctionModifierError=a;class i extends e.BaseError{constructor({abiParameter:d}){super("Invalid ABI parameter.",{details:JSON.stringify(d,null,2),metaMessages:["ABI parameter type is invalid."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidAbiTypeParameterError"})}}return Fe.InvalidAbiTypeParameterError=i,Fe}var Lt={},Yl;function vf(){if(Yl)return Lt;Yl=1,Object.defineProperty(Lt,"__esModule",{value:!0}),Lt.InvalidStructSignatureError=Lt.UnknownSignatureError=Lt.InvalidSignatureError=void 0;const e=Bn();class r extends e.BaseError{constructor({signature:s,type:a}){super(`Invalid ${a} signature.`,{details:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidSignatureError"})}}Lt.InvalidSignatureError=r;class n extends e.BaseError{constructor({signature:s}){super("Unknown signature.",{details:s}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"UnknownSignatureError"})}}Lt.UnknownSignatureError=n;class t extends e.BaseError{constructor({signature:s}){super("Invalid struct signature.",{details:s,metaMessages:["No properties exist."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidStructSignatureError"})}}return Lt.InvalidStructSignatureError=t,Lt}var no={},Jl;function Ig(){if(Jl)return no;Jl=1,Object.defineProperty(no,"__esModule",{value:!0}),no.CircularReferenceError=void 0;const e=Bn();class r extends e.BaseError{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"})}}return no.CircularReferenceError=r,no}var at={},oo={},Xl;function Rg(){if(Xl)return oo;Xl=1,Object.defineProperty(oo,"__esModule",{value:!0}),oo.InvalidParenthesisError=void 0;const e=Bn();class r extends e.BaseError{constructor({current:t,depth:o}){super("Unbalanced parentheses.",{metaMessages:[`"${t.trim()}" has too many ${o>0?"opening":"closing"} parentheses.`],details:`Depth "${o}"`}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"InvalidParenthesisError"})}}return oo.InvalidParenthesisError=r,oo}var cn={},Ql;function u6(){if(Ql)return cn;Ql=1,Object.defineProperty(cn,"__esModule",{value:!0}),cn.parameterCache=void 0,cn.getParameterCacheKey=e;function e(r,n,t){let o="";if(t)for(const s of Object.entries(t)){if(!s)continue;let a="";for(const i of s[1])a+=`[${i.type}${i.name?`:${i.name}`:""}]`;o+=`(${s[0]}{${a}})`}return n?`${n}:${r}${o}`:`${r}${o}`}return cn.parameterCache=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}]]),cn}var e0;function Rn(){if(e0)return at;e0=1,Object.defineProperty(at,"__esModule",{value:!0}),at.parseSignature=i,at.parseFunctionSignature=c,at.parseEventSignature=d,at.parseErrorSignature=f,at.parseConstructorSignature=l,at.parseFallbackSignature=m,at.parseAbiParameter=E,at.splitParameters=g,at.isSolidityType=v,at.isSolidityKeyword=u,at.isValidDataLocation=w;const e=Ku(),r=Zu(),n=Qo(),t=vf(),o=Rg(),s=u6(),a=On();function i(_,p={}){if((0,a.isFunctionSignature)(_))return c(_,p);if((0,a.isEventSignature)(_))return d(_,p);if((0,a.isErrorSignature)(_))return f(_,p);if((0,a.isConstructorSignature)(_))return l(_,p);if((0,a.isFallbackSignature)(_))return m(_);if((0,a.isReceiveSignature)(_))return{type:"receive",stateMutability:"payable"};throw new t.UnknownSignatureError({signature:_})}function c(_,p={}){const S=(0,a.execFunctionSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"function"});const A=g(S.parameters),T=[],O=A.length;for(let R=0;R<O;R++)T.push(E(A[R],{modifiers:a.functionModifiers,structs:p,type:"function"}));const I=[];if(S.returns){const R=g(S.returns),H=R.length;for(let F=0;F<H;F++)I.push(E(R[F],{modifiers:a.functionModifiers,structs:p,type:"function"}))}return{name:S.name,type:"function",stateMutability:S.stateMutability??"nonpayable",inputs:T,outputs:I}}function d(_,p={}){const S=(0,a.execEventSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"event"});const A=g(S.parameters),T=[],O=A.length;for(let I=0;I<O;I++)T.push(E(A[I],{modifiers:a.eventModifiers,structs:p,type:"event"}));return{name:S.name,type:"event",inputs:T}}function f(_,p={}){const S=(0,a.execErrorSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"error"});const A=g(S.parameters),T=[],O=A.length;for(let I=0;I<O;I++)T.push(E(A[I],{structs:p,type:"error"}));return{name:S.name,type:"error",inputs:T}}function l(_,p={}){const S=(0,a.execConstructorSignature)(_);if(!S)throw new t.InvalidSignatureError({signature:_,type:"constructor"});const A=g(S.parameters),T=[],O=A.length;for(let I=0;I<O;I++)T.push(E(A[I],{structs:p,type:"constructor"}));return{type:"constructor",stateMutability:S.stateMutability??"nonpayable",inputs:T}}function m(_){const p=(0,a.execFallbackSignature)(_);if(!p)throw new t.InvalidSignatureError({signature:_,type:"fallback"});return{type:"fallback",stateMutability:p.stateMutability??"nonpayable"}}const y=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*(?:\spayable)?)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,h=/^\((?<type>.+?)\)(?<array>(?:\[\d*?\])+?)?(?:\s(?<modifier>calldata|indexed|memory|storage{1}))?(?:\s(?<name>[a-zA-Z$_][a-zA-Z0-9$_]*))?$/,b=/^u?int$/;function E(_,p){var j,k;const S=(0,s.getParameterCacheKey)(_,p==null?void 0:p.type,p==null?void 0:p.structs);if(s.parameterCache.has(S))return s.parameterCache.get(S);const A=e.isTupleRegex.test(_),T=(0,e.execTyped)(A?h:y,_);if(!T)throw new n.InvalidParameterError({param:_});if(T.name&&u(T.name))throw new n.SolidityProtectedKeywordError({param:_,name:T.name});const O=T.name?{name:T.name}:{},I=T.modifier==="indexed"?{indexed:!0}:{},R=(p==null?void 0:p.structs)??{};let H,F={};if(A){H="tuple";const B=g(T.type),C=[],q=B.length;for(let M=0;M<q;M++)C.push(E(B[M],{structs:R}));F={components:C}}else if(T.type in R)H="tuple",F={components:R[T.type]};else if(b.test(T.type))H=`${T.type}256`;else if(T.type==="address payable")H="address";else if(H=T.type,(p==null?void 0:p.type)!=="struct"&&!v(H))throw new r.UnknownSolidityTypeError({type:H});if(T.modifier){if(!((k=(j=p==null?void 0:p.modifiers)==null?void 0:j.has)!=null&&k.call(j,T.modifier)))throw new n.InvalidModifierError({param:_,type:p==null?void 0:p.type,modifier:T.modifier});if(a.functionModifiers.has(T.modifier)&&!w(H,!!T.array))throw new n.InvalidFunctionModifierError({param:_,type:p==null?void 0:p.type,modifier:T.modifier})}const x={type:`${H}${T.array??""}`,...O,...I,...F};return s.parameterCache.set(S,x),x}function g(_,p=[],S="",A=0){const T=_.trim().length;for(let O=0;O<T;O++){const I=_[O],R=_.slice(O+1);switch(I){case",":return A===0?g(R,[...p,S.trim()]):g(R,p,`${S}${I}`,A);case"(":return g(R,p,`${S}${I}`,A+1);case")":return g(R,p,`${S}${I}`,A-1);default:return g(R,p,`${S}${I}`,A)}}if(S==="")return p;if(A!==0)throw new o.InvalidParenthesisError({current:S,depth:A});return p.push(S.trim()),p}function v(_){return _==="address"||_==="bool"||_==="function"||_==="string"||e.bytesRegex.test(_)||e.integerRegex.test(_)}const P=/^(?: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 u(_){return _==="address"||_==="bool"||_==="function"||_==="string"||_==="tuple"||e.bytesRegex.test(_)||e.integerRegex.test(_)||P.test(_)}function w(_,p){return p||_==="bytes"||_==="string"||_==="tuple"}return at}var t0;function Yu(){if(t0)return qa;t0=1,Object.defineProperty(qa,"__esModule",{value:!0}),qa.parseStructs=i;const e=Ku(),r=Zu(),n=Qo(),t=vf(),o=Ig(),s=On(),a=Rn();function i(f){const l={},m=f.length;for(let E=0;E<m;E++){const g=f[E];if(!(0,s.isStructSignature)(g))continue;const v=(0,s.execStructSignature)(g);if(!v)throw new t.InvalidSignatureError({signature:g,type:"struct"});const P=v.properties.split(";"),u=[],w=P.length;for(let _=0;_<w;_++){const S=P[_].trim();if(!S)continue;const A=(0,a.parseAbiParameter)(S,{type:"struct"});u.push(A)}if(!u.length)throw new t.InvalidStructSignatureError({signature:g});l[v.name]=u}const y={},h=Object.entries(l),b=h.length;for(let E=0;E<b;E++){const[g,v]=h[E];y[g]=d(v,l)}return y}const c=/^(?<type>[a-zA-Z$_][a-zA-Z0-9$_]*)(?<array>(?:\[\d*?\])+?)?$/;function d(f=[],l={},m=new Set){const y=[],h=f.length;for(let b=0;b<h;b++){const E=f[b];if(e.isTupleRegex.test(E.type))y.push(E);else{const v=(0,e.execTyped)(c,E.type);if(!(v!=null&&v.type))throw new n.InvalidAbiTypeParameterError({abiParameter:E});const{array:P,type:u}=v;if(u in l){if(m.has(u))throw new o.CircularReferenceError({type:u});y.push({...E,type:`tuple${P??""}`,components:d(l[u],l,new Set([...m,u]))})}else if((0,a.isSolidityType)(u))y.push(E);else throw new r.UnknownTypeError({type:u})}}return y}return qa}var r0;function d6(){if(r0)return xa;r0=1,Object.defineProperty(xa,"__esModule",{value:!0}),xa.parseAbi=t;const e=On(),r=Yu(),n=Rn();function t(o){const s=(0,r.parseStructs)(o),a=[],i=o.length;for(let c=0;c<i;c++){const d=o[c];(0,e.isStructSignature)(d)||a.push((0,n.parseSignature)(d,s))}return a}return xa}var Ma={},n0;function f6(){if(n0)return Ma;n0=1,Object.defineProperty(Ma,"__esModule",{value:!0}),Ma.parseAbiItem=o;const e=Zu(),r=On(),n=Yu(),t=Rn();function o(s){let a;if(typeof s=="string")a=(0,t.parseSignature)(s);else{const i=(0,n.parseStructs)(s),c=s.length;for(let d=0;d<c;d++){const f=s[d];if(!(0,r.isStructSignature)(f)){a=(0,t.parseSignature)(f,i);break}}}if(!a)throw new e.InvalidAbiItemError({signature:s});return a}return Ma}var ka={},o0;function l6(){if(o0)return ka;o0=1,Object.defineProperty(ka,"__esModule",{value:!0}),ka.parseAbiParameter=o;const e=Qo(),r=On(),n=Yu(),t=Rn();function o(s){let a;if(typeof s=="string")a=(0,t.parseAbiParameter)(s,{modifiers:r.modifiers});else{const i=(0,n.parseStructs)(s),c=s.length;for(let d=0;d<c;d++){const f=s[d];if(!(0,r.isStructSignature)(f)){a=(0,t.parseAbiParameter)(f,{modifiers:r.modifiers,structs:i});break}}}if(!a)throw new e.InvalidAbiParameterError({param:s});return a}return ka}var Ha={},a0;function b6(){if(a0)return Ha;a0=1,Object.defineProperty(Ha,"__esModule",{value:!0}),Ha.parseAbiParameters=s;const e=Qo(),r=On(),n=Yu(),t=Rn(),o=Rn();function s(a){const i=[];if(typeof a=="string"){const c=(0,t.splitParameters)(a),d=c.length;for(let f=0;f<d;f++)i.push((0,o.parseAbiParameter)(c[f],{modifiers:r.modifiers}))}else{const c=(0,n.parseStructs)(a),d=a.length;for(let f=0;f<d;f++){const l=a[f];if((0,r.isStructSignature)(l))continue;const m=(0,t.splitParameters)(l),y=m.length;for(let h=0;h<y;h++)i.push((0,o.parseAbiParameter)(m[h],{modifiers:r.modifiers,structs:c}))}}if(i.length===0)throw new e.InvalidAbiParametersError({params:a});return i}return Ha}var i0;function hr(){return i0||(i0=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.CircularReferenceError=e.InvalidParenthesisError=e.UnknownSignatureError=e.InvalidSignatureError=e.InvalidStructSignatureError=e.InvalidAbiParameterError=e.InvalidAbiParametersError=e.InvalidParameterError=e.SolidityProtectedKeywordError=e.InvalidModifierError=e.InvalidFunctionModifierError=e.InvalidAbiTypeParameterError=e.UnknownSolidityTypeError=e.InvalidAbiItemError=e.UnknownTypeError=e.parseAbiParameters=e.parseAbiParameter=e.parseAbiItem=e.parseAbi=e.formatAbiParameters=e.formatAbiParameter=e.formatAbiItem=e.formatAbi=e.narrow=e.BaseError=void 0;var r=Bn();Object.defineProperty(e,"BaseError",{enumerable:!0,get:function(){return r.BaseError}});var n=s6();Object.defineProperty(e,"narrow",{enumerable:!0,get:function(){return n.narrow}});var t=c6();Object.defineProperty(e,"formatAbi",{enumerable:!0,get:function(){return t.formatAbi}});var o=Sg();Object.defineProperty(e,"formatAbiItem",{enumerable:!0,get:function(){return o.formatAbiItem}});var s=Ag();Object.defineProperty(e,"formatAbiParameter",{enumerable:!0,get:function(){return s.formatAbiParameter}});var a=Tg();Object.defineProperty(e,"formatAbiParameters",{enumerable:!0,get:function(){return a.formatAbiParameters}});var i=d6();Object.defineProperty(e,"parseAbi",{enumerable:!0,get:function(){return i.parseAbi}});var c=f6();Object.defineProperty(e,"parseAbiItem",{enumerable:!0,get:function(){return c.parseAbiItem}});var d=l6();Object.defineProperty(e,"parseAbiParameter",{enumerable:!0,get:function(){return d.parseAbiParameter}});var f=b6();Object.defineProperty(e,"parseAbiParameters",{enumerable:!0,get:function(){return f.parseAbiParameters}});var l=Zu();Object.defineProperty(e,"UnknownTypeError",{enumerable:!0,get:function(){return l.UnknownTypeError}}),Object.defineProperty(e,"InvalidAbiItemError",{enumerable:!0,get:function(){return l.InvalidAbiItemError}}),Object.defineProperty(e,"UnknownSolidityTypeError",{enumerable:!0,get:function(){return l.UnknownSolidityTypeError}});var m=Qo();Object.defineProperty(e,"InvalidAbiTypeParameterError",{enumerable:!0,get:function(){return m.InvalidAbiTypeParameterError}}),Object.defineProperty(e,"InvalidFunctionModifierError",{enumerable:!0,get:function(){return m.InvalidFunctionModifierError}}),Object.defineProperty(e,"InvalidModifierError",{enumerable:!0,get:function(){return m.InvalidModifierError}}),Object.defineProperty(e,"SolidityProtectedKeywordError",{enumerable:!0,get:function(){return m.SolidityProtectedKeywordError}}),Object.defineProperty(e,"InvalidParameterError",{enumerable:!0,get:function(){return m.InvalidParameterError}}),Object.defineProperty(e,"InvalidAbiParametersError",{enumerable:!0,get:function(){return m.InvalidAbiParametersError}}),Object.defineProperty(e,"InvalidAbiParameterError",{enumerable:!0,get:function(){return m.InvalidAbiParameterError}});var y=vf();Object.defineProperty(e,"InvalidStructSignatureError",{enumerable:!0,get:function(){return y.InvalidStructSignatureError}}),Object.defineProperty(e,"InvalidSignatureError",{enumerable:!0,get:function(){return y.InvalidSignatureError}}),Object.defineProperty(e,"UnknownSignatureError",{enumerable:!0,get:function(){return y.UnknownSignatureError}});var h=Rg();Object.defineProperty(e,"InvalidParenthesisError",{enumerable:!0,get:function(){return h.InvalidParenthesisError}});var b=Ig();Object.defineProperty(e,"CircularReferenceError",{enumerable:!0,get:function(){return b.CircularReferenceError}})})(Dd)),Dd}var un={},Fa={},s0;function me(){if(s0)return Fa;s0=1,Object.defineProperty(Fa,"__esModule",{value:!0}),Fa.getAction=e;function e(r,n,t){const o=r[n.name];if(typeof o=="function")return o;const s=r[t];return typeof s=="function"?s:a=>n(r,a)}return Fa}var Na={},$a={},se={},ao={},c0;function er(){if(c0)return ao;c0=1,Object.defineProperty(ao,"__esModule",{value:!0}),ao.formatAbiItem=r,ao.formatAbiParams=n;const e=Be();function r(o,{includeName:s=!1}={}){if(o.type!=="function"&&o.type!=="event"&&o.type!=="error")throw new e.InvalidDefinitionTypeError(o.type);return`${o.name}(${n(o.inputs,{includeName:s})})`}function n(o,{includeName:s=!1}={}){return o?o.map(a=>t(a,{includeName:s})).join(s?", ":","):""}function t(o,{includeName:s}){return o.type.startsWith("tuple")?`(${n(o.components,{includeName:s})})${o.type.slice(5)}`:o.type+(s&&o.name?` ${o.name}`:"")}return ao}var za={},La={},u0;function Qe(){if(u0)return La;u0=1,Object.defineProperty(La,"__esModule",{value:!0}),La.isHex=e;function e(r,{strict:n=!0}={}){return!r||typeof r!="string"?!1:n?/^0x[0-9a-fA-F]*$/.test(r):r.startsWith("0x")}return La}var d0;function De(){if(d0)return za;d0=1,Object.defineProperty(za,"__esModule",{value:!0}),za.size=r;const e=Qe();function r(n){return(0,e.isHex)(n,{strict:!1})?Math.ceil((n.length-2)/2):n.length}return za}var dn={},io={},f0;function m6(){return f0||(f0=1,Object.defineProperty(io,"__esModule",{value:!0}),io.version=void 0,io.version="2.54.1"),io}var l0;function ue(){if(l0)return dn;l0=1,Object.defineProperty(dn,"__esModule",{value:!0}),dn.BaseError=void 0,dn.setErrorConfig=n;const e=m6();let r={getDocsUrl:({docsBaseUrl:s,docsPath:a="",docsSlug:i})=>a?`${s??"https://viem.sh"}${a}${i?`#${i}`:""}`:void 0,version:`viem@${e.version}`};function n(s){r=s}class t extends Error{constructor(a,i={}){var m;const c=(()=>{var y;return i.cause instanceof t?i.cause.details:(y=i.cause)!=null&&y.message?i.cause.message:i.details})(),d=i.cause instanceof t&&i.cause.docsPath||i.docsPath,f=(m=r.getDocsUrl)==null?void 0:m.call(r,{...i,docsPath:d}),l=[a||"An error occurred.","",...i.metaMessages?[...i.metaMessages,""]:[],...f?[`Docs: ${f}`]:[],...c?[`Details: ${c}`]:[],...r.version?[`Version: ${r.version}`]:[]].join(`
3
3
  `);super(l,i.cause?{cause:i.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=c,this.docsPath=d,this.metaMessages=i.metaMessages,this.name=i.name??this.name,this.shortMessage=a,this.version=e.version}walk(a){return o(this,a)}}dn.BaseError=t;function o(s,a){return a!=null&&a(s)?s:s&&typeof s=="object"&&"cause"in s&&s.cause!==void 0?o(s.cause,a):a?null:s}return dn}var b0;function Be(){if(b0)return se;b0=1,Object.defineProperty(se,"__esModule",{value:!0}),se.UnsupportedPackedAbiType=se.InvalidDefinitionTypeError=se.InvalidArrayError=se.InvalidAbiDecodingTypeError=se.InvalidAbiEncodingTypeError=se.DecodeLogTopicsMismatch=se.DecodeLogDataMismatch=se.BytesSizeMismatchError=se.AbiItemAmbiguityError=se.AbiFunctionSignatureNotFoundError=se.AbiFunctionOutputsNotFoundError=se.AbiFunctionNotFoundError=se.AbiEventNotFoundError=se.AbiEventSignatureNotFoundError=se.AbiEventSignatureEmptyTopicsError=se.AbiErrorSignatureNotFoundError=se.AbiErrorNotFoundError=se.AbiErrorInputsNotFoundError=se.AbiEncodingLengthMismatchError=se.AbiEncodingBytesSizeMismatchError=se.AbiEncodingArrayLengthMismatchError=se.AbiDecodingZeroDataError=se.AbiDecodingDataSizeTooSmallError=se.AbiDecodingDataSizeInvalidError=se.AbiConstructorParamsNotFoundError=se.AbiConstructorNotFoundError=void 0;const e=er(),r=De(),n=ue();class t extends n.BaseError{constructor({docsPath:H}){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
4
  `),{docsPath:H,name:"AbiConstructorNotFoundError"})}}se.AbiConstructorNotFoundError=t;class o extends n.BaseError{constructor({docsPath:H}){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(`
@@ -1,4 +1,4 @@
1
- import{i as b,b as l,a as O}from"./lit-element-B3y9oplH.js";import{n as h,r as d}from"./class-map-CxwNmq0D.js";import{d as C,r as E,e as P}from"./index-BoAHsqWZ.js";import{c as v,U as x}from"./index-BfOmf_Cp.js";import"./index-DP6QK5zD.js";import"./index-Zf4oaxuE.js";import{u as g,R as S,o as $,b as R,S as T}from"./W3MFrameProviderSingleton-DMgnEflU.js";const L=C`
1
+ import{i as b,b as l,a as O}from"./lit-element-B3y9oplH.js";import{n as h,r as d}from"./class-map-CxwNmq0D.js";import{d as C,r as E,e as P}from"./index-DbCIRxku.js";import{c as v,U as x}from"./index-CI91n7ZK.js";import"./index-BR-AXZqF.js";import"./index-CEBe8Ks-.js";import{u as g,R as S,o as $,b as R,S as T}from"./W3MFrameProviderSingleton-DkDY_Uhq.js";const L=C`
2
2
  :host {
3
3
  position: relative;
4
4
  display: inline-block;
@@ -1,4 +1,4 @@
1
- import{i as g,b as e}from"./lit-element-B3y9oplH.js";import{r as f,n as w,o as v}from"./class-map-CxwNmq0D.js";import{d as y,r as k,e as P}from"./index-BoAHsqWZ.js";import{c as b}from"./index-BfOmf_Cp.js";import"./index-DOLSZTRS.js";import{H as x}from"./HelpersUtil-DynUp31-.js";import{R as u,E as A}from"./W3MFrameProviderSingleton-DMgnEflU.js";import"./index-D5hR2snR.js";import"./index-CPeIXfrM.js";const I=y`
1
+ import{i as g,b as e}from"./lit-element-B3y9oplH.js";import{r as f,n as w,o as v}from"./class-map-CxwNmq0D.js";import{d as y,r as k,e as P}from"./index-DbCIRxku.js";import{c as b}from"./index-CI91n7ZK.js";import"./index-CVdDq8EF.js";import{H as x}from"./HelpersUtil-BL1YqLJc.js";import{R as u,E as A}from"./W3MFrameProviderSingleton-DkDY_Uhq.js";import"./index-UKBE5ufT.js";import"./index-oGGEVx4e.js";const I=y`
2
2
  :host {
3
3
  display: block;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{j as e,b as ce,r as p,L as pe}from"./react-BYHuwl8r.js";import{t as A,s as n,x as he,z as ge,b as a,C as N,B as P,bS as re,A as O,Z as xe,bt as U,k as K,Q as me,v as ue,D as fe,bs as we,I as G,aa as be,ac as ye,bT as ve,bU as je,bV as ke,F as V}from"./index-Bh6adykR.js";import{c as $e,i as Ce,R as Ie,u as Se}from"./useImportable-BJCj_pDd.js";import{S as Te,C as Le}from"./ManaPricingBanner.styles-C44WWkRh.js";import{F as H}from"./Faq-CaXi1BNV.js";import{C as Y}from"./field.styles-DKv8B53l.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-1ai9esXb.js";import"./ethers-BKEzvwKN.js";import"./intl-CBcMB1D2.js";import"./buy-BsMK5C0W.js";import"./authorizations-CHiv1Pa7.js";import"./sendMetaTransaction-DCqRrKxD.js";function ze({size:s=12,...d}){return e.jsx("svg",{viewBox:"0 0 20 20",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ae({size:s=84.837,...d}){return e.jsxs("svg",{viewBox:"0 0 84.837 84.837",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:[e.jsxs("g",{stroke:A.colors.errStrong,strokeWidth:"6.08696",strokeLinecap:"round",children:[e.jsx("circle",{cx:"42.4185",cy:"42.4185",r:"39.375"}),e.jsx("path",{d:"M42.4185 22.5V47.5"})]}),e.jsx("circle",{cx:"42.4185",cy:"60.75",r:"3.8",fill:A.colors.errStrong})]})}const{colors:R,radius:Re,z:Fe}=A,_e=he`
1
+ import{j as e,b as ce,r as p,L as pe}from"./react-BYHuwl8r.js";import{t as A,s as n,x as he,z as ge,b as a,C as N,B as P,bS as re,A as O,Z as xe,bt as U,h as K,Q as me,v as ue,D as fe,bs as we,I as G,aa as be,ac as ye,bT as ve,bU as je,bV as ke,F as V}from"./index-BVWvbmB_.js";import{c as $e,i as Ce,R as Ie,u as Se}from"./useImportable-COXp75Oi.js";import{S as Te,C as Le}from"./ManaPricingBanner.styles-2dMknEFN.js";import{F as H}from"./Faq-BkoPMwLV.js";import{C as Y}from"./field.styles-DUhp2XSE.js";import"./dcl-schemas-CmtP3U6y.js";import"./sentry-CUdtSPei.js";import"./ethers-CHvw3dSr.js";import"./intl-CBcMB1D2.js";import"./buy-ITSy499E.js";import"./authorizations-DdXEl4SH.js";import"./sendMetaTransaction-CxjN2iMp.js";function ze({size:s=12,...d}){return e.jsx("svg",{viewBox:"0 0 20 20",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function Ae({size:s=84.837,...d}){return e.jsxs("svg",{viewBox:"0 0 84.837 84.837",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:[e.jsxs("g",{stroke:A.colors.errStrong,strokeWidth:"6.08696",strokeLinecap:"round",children:[e.jsx("circle",{cx:"42.4185",cy:"42.4185",r:"39.375"}),e.jsx("path",{d:"M42.4185 22.5V47.5"})]}),e.jsx("circle",{cx:"42.4185",cy:"60.75",r:"3.8",fill:A.colors.errStrong})]})}const{colors:R,radius:Re,z:Fe}=A,_e=he`
2
2
  0% {
3
3
  transform: scale(0);
4
4
  opacity: 0;
@@ -1,4 +1,4 @@
1
- import{i as u,b as h}from"./lit-element-B3y9oplH.js";import{n as d,o as f}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-BfOmf_Cp.js";import{d as g,r as m,e as b}from"./index-BoAHsqWZ.js";const y=g`
1
+ import{i as u,b as h}from"./lit-element-B3y9oplH.js";import{n as d,o as f}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-CI91n7ZK.js";import{d as g,r as m,e as b}from"./index-DbCIRxku.js";const y=g`
2
2
  :host {
3
3
  display: inline-flex;
4
4
  justify-content: center;
@@ -1 +1 @@
1
- import{c as r}from"./parseSignature-DTi4uU4Z.js";import{B as y,E as f,a as v,b as A,F as S,W as I,d as F,e as R,f as x,g as C,p as B,l as N,n as P,p as D,h as U,s as w,z as L}from"./parseSignature-DTi4uU4Z.js";import{I as H,c as k,a as z,p as q,w as V}from"./custom-CpeFfUh_.js";import{h as s}from"./W3MFrameProviderSingleton-DMgnEflU.js";import{U as G,c as j,f as W,s as K,w as Z,a as J}from"./W3MFrameProviderSingleton-DMgnEflU.js";import{A as X,a as Y,B as _,b as $,C as aa,D as ra,E as oa,F as sa,c as ea,H as ta,I as ia,d as na,e as ca,f as da,g as Ea,h as pa,i as ua,j as la,k as ma,l as Ta,J as ga,L as ba,M as ha,m as ya,N as fa,n as va,o as Aa,P as Sa,p as Ia,q as Fa,R as Ra,r as xa,s as Ca,t as Ba,u as Na,S as Pa,v as Da,w as Ua,x as wa,T as La,y as Ma,z as Ha,G as ka,U as za,K as qa,O as Va,Q as Oa,V as Ga,W as ja,X as Wa,Y as Ka,Z as Za,_ as Ja,$ as Qa,a0 as Xa,a1 as Ya,a2 as _a,a3 as $a,a4 as ar,a5 as rr,a6 as or,a7 as sr,a8 as er,a9 as tr,aa as ir,ab as nr,ac as cr,ad as dr,ae as Er,af as pr,ag as ur,ah as lr,ai as mr,aj as Tr,ak as gr,al as br,am as hr,an as yr,ao as fr,ap as vr,a1 as Ar}from"./NetworkUtil-BsEXGHJo.js";import{A as Ir,a as Fr,b as Rr,c as xr,d as Cr,e as Br,f as Nr,g as Pr,h as Dr,i as Ur,j as wr,k as Lr,l as Mr,m as Hr,n as kr,o as zr,p as qr,B as Vr,q as Or,r as Gr,C as jr,s as Wr,t as Kr,u as Zr,v as Jr,w as Qr,x as Xr,y as Yr,z as _r,D as $r,E as ao,F as ro,G as oo,H as so,I as eo,J as to,K as io,L as no,M as co,N as Eo,O as po,P as uo,Q as lo,R as mo,S as To,T as go,U as bo,V as ho,W as yo,X as fo,Y as vo,Z as Ao,_ as So,$ as Io,a0 as Fo,a1 as Ro,a2 as xo,a3 as Co,a4 as Bo,a5 as No,a6 as Po,a7 as Do,a8 as Uo,a9 as wo,aa as Lo,ab as Mo,ac as Ho,ad as ko,ae as zo,af as qo,ag as Vo,ah as Oo,ai as Go,aj as jo,ak as Wo,al as Ko,am as Zo,an as Jo,ao as Qo,ap as Xo,aq as Yo,ar as _o,as as $o,at as as,au as rs,av as os,aw as ss,ax as es,ay as ts,az as is,aA as ns,aB as cs,aC as ds,aD as Es,aE as ps,aF as us,aG as ls,aH as ms,aI as Ts,aJ as gs,aK as bs,aL as hs,aM as ys,aN as fs,aM as vs,aO as As,aP as Ss,aQ as Is,aR as Fs,aS as Rs,aT as xs,aU as Cs,aV as Bs,aW as Ns,aX as Ps,aY as Ds,aZ as Us,a_ as ws,a$ as Ls,b0 as Ms,b1 as Hs,b2 as ks,b3 as zs,b4 as qs,aL as Vs,aM as Os,b4 as Gs,aN as js,aM as Ws,b5 as Ks,b6 as Zs,aA as Js}from"./sendRawTransaction-k2Sfh7AJ.js";import{I as Xs,a as Ys,b as _s,g as $s,h as ae,c as re,d as oe,e as se,p as ee,t as te,v as ie}from"./hashTypedData-l-4TMklh.js";import{d as ce,e as de,a as Ee}from"./localBatchGatewayRequest-Sqedi9_T.js";import{ccipRequest as ue,ccipRequest as le,offchainLookup as me,offchainLookupAbiItem as Te,offchainLookupSignature as ge}from"./ccip-BoCyT5Kw.js";import{d as t}from"./verifyHash-B6Vh-Wda.js";import{e as he,p as ye,a as fe,s as ve,s as Ae}from"./verifyHash-B6Vh-Wda.js";import{a as Ie,b as Fe,c as Re,s as xe,d as Ce}from"./serializeTransaction-CwlY06pE.js";import"./secp256k1-C3Qb75Qb.js";import"./dcl-schemas-CmtP3U6y.js";import"./index-BWHG3_yU.js";import"./react-BYHuwl8r.js";import"./sentry-1ai9esXb.js";import"./index-CXVjVFyf.js";import"./events-DQ172AOg.js";import"./index-Bh6adykR.js";import"./ethers-BKEzvwKN.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-Dj0kiq3a.js";export{Ir as AbiConstructorNotFoundError,Fr as AbiConstructorParamsNotFoundError,Rr as AbiDecodingDataSizeTooSmallError,xr as AbiDecodingZeroDataError,Cr as AbiEncodingArrayLengthMismatchError,Br as AbiEncodingBytesSizeMismatchError,Nr as AbiEncodingLengthMismatchError,Pr as AbiErrorInputsNotFoundError,Dr as AbiErrorNotFoundError,Ur as AbiErrorSignatureNotFoundError,wr as AbiEventNotFoundError,Lr as AbiEventSignatureEmptyTopicsError,Mr as AbiEventSignatureNotFoundError,Hr as AbiFunctionNotFoundError,kr as AbiFunctionOutputsNotFoundError,zr as AbiFunctionSignatureNotFoundError,qr as AccountStateConflictError,X as AtomicReadyWalletRejectedUpgradeError,Y as AtomicityNotSupportedError,_ as BaseError,Vr as BaseFeeScalarError,Or as BlockNotFoundError,y as BundleFailedError,$ as BundleTooLargeError,Gr as BytesSizeMismatchError,jr as CallExecutionError,aa as ChainDisconnectedError,Wr as ChainDoesNotSupportContract,Kr as ChainMismatchError,Zr as ChainNotFoundError,Jr as CircularReferenceError,Qr as ClientChainNotConfiguredError,Xr as ContractFunctionExecutionError,Yr as ContractFunctionRevertedError,_r as ContractFunctionZeroDataError,$r as CounterfactualDeploymentFailedError,ao as DecodeLogDataMismatch,ro as DecodeLogTopicsMismatch,ra as DuplicateIdError,oo as Eip1559FeesNotSupportedError,f as EnsAvatarInvalidNftUriError,v as EnsAvatarUnsupportedNamespaceError,A as EnsAvatarUriResolutionError,so as EstimateGasExecutionError,oa as ExecutionRevertedError,sa as FeeCapTooHighError,ea as FeeCapTooLowError,S as FilterTypeNotSupportedError,ta as HttpRequestError,ia as InsufficientFundsError,na as IntegerOutOfRangeError,ca as InternalRpcError,da as IntrinsicGasTooHighError,Ea as IntrinsicGasTooLowError,eo as InvalidAbiDecodingTypeError,to as InvalidAbiEncodingTypeError,io as InvalidAbiItemError,no as InvalidAbiParametersError,co as InvalidAbiTypeParameterError,Eo as InvalidAddressError,po as InvalidArrayError,pa as InvalidBytesBooleanError,uo as InvalidChainIdError,H as InvalidDecimalNumberError,lo as InvalidDefinitionTypeError,Xs as InvalidDomainError,mo as InvalidFunctionModifierError,ua as InvalidHexBooleanError,la as InvalidInputRpcError,To as InvalidLegacyVError,go as InvalidModifierError,bo as InvalidParameterError,ma as InvalidParamsRpcError,ho as InvalidParenthesisError,Ys as InvalidPrimaryTypeError,Ta as InvalidRequestRpcError,yo as InvalidSerializableTransactionError,fo as InvalidSignatureError,vo as InvalidStorageKeySizeError,Ao as InvalidStructSignatureError,_s as InvalidStructTypeError,ga as JsonRpcVersionUnsupportedError,ba as LimitExceededRpcError,So as MaxFeePerGasTooLowError,ha as MethodNotFoundRpcError,ya as MethodNotSupportedRpcError,fa as NonceMaxValueError,va as NonceTooHighError,Aa as NonceTooLowError,Sa as ParseRpcError,Ia as ProviderDisconnectedError,Fa as ProviderRpcError,Io as RawContractError,Ra as ResourceNotFoundRpcError,xa as ResourceUnavailableRpcError,Ca as ResponseBodyTooLargeError,Ba as RpcError,Na as RpcRequestError,Pa as SizeExceedsPaddingSizeError,Da as SizeOverflowError,Ua as SliceOffsetOutOfBoundsError,Fo as SolidityProtectedKeywordError,Ro as StateAssignmentConflictError,wa as SwitchChainError,La as TimeoutError,Ma as TipAboveFeeCapError,xo as TransactionExecutionError,Co as TransactionNotFoundError,Bo as TransactionReceiptNotFoundError,Ha as TransactionRejectedRpcError,ka as TransactionTypeNotSupportedError,za as UnauthorizedProviderError,qa as UnknownBundleIdError,Va as UnknownNodeError,Oa as UnknownRpcError,No as UnknownSignatureError,Po as UnknownTypeError,Ga as UnsupportedChainIdError,ja as UnsupportedNonOptionalCapabilityError,Do as UnsupportedPackedAbiType,Wa as UnsupportedProviderMethodError,G as UrlRequiredError,Ka as UserRejectedRequestError,I as WaitForCallsStatusTimeoutError,Uo as WaitForTransactionReceiptTimeoutError,wo as assertCurrentChain,Lo as assertRequest,Ie as assertTransactionEIP1559,Fe as assertTransactionEIP2930,Re as assertTransactionLegacy,Mo as blobsToCommitments,Ho as blobsToProofs,Za as boolToBytes,Ja as boolToHex,ko as bytesToBigInt,zo as bytesToBool,Qa as bytesToHex,qo as bytesToNumber,Vo as bytesToString,ue as ccipFetch,le as ccipRequest,Oo as checksumAddress,Go as commitmentToVersionedHash,jo as commitmentsToVersionedHashes,Wo as concat,Ko as concatBytes,Zo as concatHex,k as createClient,F as createNonceManager,r as createPublicClient,j as createTransport,z as custom,Jo as decodeAbiParameters,Qo as decodeErrorResult,Xo as decodeEventLog,ce as decodeFunctionData,Yo as decodeFunctionResult,_o as defineBlock,t as defineChain,$o as defineTransaction,as as defineTransactionReceipt,rs as defineTransactionRequest,os as deploylessCallViaBytecodeBytecode,ss as deploylessCallViaFactoryBytecode,es as encodeAbiParameters,ts as encodeDeployData,de as encodeErrorResult,R as encodeEventTopics,is as encodeFunctionData,Ee as encodeFunctionResult,x as encodePacked,Xa as erc20Abi,Ya as erc6492SignatureValidatorAbi,ns as erc6492SignatureValidatorByteCode,C as ethAddress,_a as etherUnits,he as extendSchema,W as fallback,cs as formatBlock,ds as formatEther,$a as formatGwei,Es as formatLog,ps as formatTransaction,us as formatTransactionReceipt,ls as formatTransactionRequest,ar as formatUnits,rr as fromHex,ms as getAbiItem,Ts as getAddress,gs as getChainContractAddress,bs as getContractError,hs as getEventSelector,ys as getEventSignature,fs as getFunctionSelector,vs as getFunctionSignature,As as getTransactionType,$s as getTypesForEIP712Domain,or as gweiUnits,ae as hashDomain,re as hashMessage,oe as hashStruct,se as hashTypedData,sr as hexToBigInt,er as hexToBool,tr as hexToBytes,ir as hexToNumber,B as hexToSignature,nr as hexToString,s as http,Ss as isAddress,Is as isAddressEqual,cr as isHex,Fs as keccak256,N as labelhash,Rs as maxUint16,xs as maxUint256,dr as multicall3Abi,P as namehash,Er as numberToBytes,pr as numberToHex,me as offchainLookup,Te as offchainLookupAbiItem,ge as offchainLookupSignature,ur as pad,lr as padBytes,mr as padHex,Cs as parseAbi,ye as parseAbiItem,fe as parseAbiParameters,Bs as parseEventLogs,D as parseSignature,q as parseUnits,Ns as prepareEncodeFunctionData,ee as presignMessagePrefix,U as publicActions,Ps as recoverAddress,Ds as recoverPublicKey,Us as rpcTransactionType,xe as serializeAccessList,w as serializeErc6492Signature,ve as serializeSignature,Ce as serializeTransaction,ws as sha256,K as shouldThrow,Ae as signatureToHex,Tr as size,Ls as slice,Ms as sliceBytes,Hs as sliceHex,gr as stringToBytes,br as stringToHex,hr as stringify,ks as toBlobSidecars,zs as toBlobs,yr as toBytes,qs as toEventHash,Vs as toEventSelector,Os as toEventSignature,Gs as toFunctionHash,js as toFunctionSelector,Ws as toFunctionSignature,fr as toHex,te as toPrefixedMessage,Ks as toRlp,Zs as transactionType,vr as trim,Ar as universalSignatureValidatorAbi,Js as universalSignatureValidatorByteCode,ie as validateTypedData,V as withCache,Z as withRetry,J as withTimeout,L as zeroAddress};
1
+ import{c as r}from"./parseSignature-DvIu4faj.js";import{B as y,E as f,a as v,b as A,F as S,W as I,d as F,e as R,f as x,g as C,p as B,l as N,n as P,p as D,h as U,s as w,z as L}from"./parseSignature-DvIu4faj.js";import{I as H,c as k,a as z,p as q,w as V}from"./custom-DESM1TBo.js";import{h as s}from"./W3MFrameProviderSingleton-DkDY_Uhq.js";import{U as G,c as j,f as W,s as K,w as Z,a as J}from"./W3MFrameProviderSingleton-DkDY_Uhq.js";import{A as X,a as Y,B as _,b as $,C as aa,D as ra,E as oa,F as sa,c as ea,H as ta,I as ia,d as na,e as ca,f as da,g as Ea,h as pa,i as ua,j as la,k as ma,l as Ta,J as ga,L as ba,M as ha,m as ya,N as fa,n as va,o as Aa,P as Sa,p as Ia,q as Fa,R as Ra,r as xa,s as Ca,t as Ba,u as Na,S as Pa,v as Da,w as Ua,x as wa,T as La,y as Ma,z as Ha,G as ka,U as za,K as qa,O as Va,Q as Oa,V as Ga,W as ja,X as Wa,Y as Ka,Z as Za,_ as Ja,$ as Qa,a0 as Xa,a1 as Ya,a2 as _a,a3 as $a,a4 as ar,a5 as rr,a6 as or,a7 as sr,a8 as er,a9 as tr,aa as ir,ab as nr,ac as cr,ad as dr,ae as Er,af as pr,ag as ur,ah as lr,ai as mr,aj as Tr,ak as gr,al as br,am as hr,an as yr,ao as fr,ap as vr,a1 as Ar}from"./NetworkUtil-CmFj23VB.js";import{A as Ir,a as Fr,b as Rr,c as xr,d as Cr,e as Br,f as Nr,g as Pr,h as Dr,i as Ur,j as wr,k as Lr,l as Mr,m as Hr,n as kr,o as zr,p as qr,B as Vr,q as Or,r as Gr,C as jr,s as Wr,t as Kr,u as Zr,v as Jr,w as Qr,x as Xr,y as Yr,z as _r,D as $r,E as ao,F as ro,G as oo,H as so,I as eo,J as to,K as io,L as no,M as co,N as Eo,O as po,P as uo,Q as lo,R as mo,S as To,T as go,U as bo,V as ho,W as yo,X as fo,Y as vo,Z as Ao,_ as So,$ as Io,a0 as Fo,a1 as Ro,a2 as xo,a3 as Co,a4 as Bo,a5 as No,a6 as Po,a7 as Do,a8 as Uo,a9 as wo,aa as Lo,ab as Mo,ac as Ho,ad as ko,ae as zo,af as qo,ag as Vo,ah as Oo,ai as Go,aj as jo,ak as Wo,al as Ko,am as Zo,an as Jo,ao as Qo,ap as Xo,aq as Yo,ar as _o,as as $o,at as as,au as rs,av as os,aw as ss,ax as es,ay as ts,az as is,aA as ns,aB as cs,aC as ds,aD as Es,aE as ps,aF as us,aG as ls,aH as ms,aI as Ts,aJ as gs,aK as bs,aL as hs,aM as ys,aN as fs,aM as vs,aO as As,aP as Ss,aQ as Is,aR as Fs,aS as Rs,aT as xs,aU as Cs,aV as Bs,aW as Ns,aX as Ps,aY as Ds,aZ as Us,a_ as ws,a$ as Ls,b0 as Ms,b1 as Hs,b2 as ks,b3 as zs,b4 as qs,aL as Vs,aM as Os,b4 as Gs,aN as js,aM as Ws,b5 as Ks,b6 as Zs,aA as Js}from"./sendRawTransaction-BZMjypDx.js";import{I as Xs,a as Ys,b as _s,g as $s,h as ae,c as re,d as oe,e as se,p as ee,t as te,v as ie}from"./hashTypedData-BVfCehOr.js";import{d as ce,e as de,a as Ee}from"./localBatchGatewayRequest-DQhTBRSh.js";import{ccipRequest as ue,ccipRequest as le,offchainLookup as me,offchainLookupAbiItem as Te,offchainLookupSignature as ge}from"./ccip-DSAZ1Drq.js";import{d as t}from"./verifyHash-Czkmjbtb.js";import{e as he,p as ye,a as fe,s as ve,s as Ae}from"./verifyHash-Czkmjbtb.js";import{a as Ie,b as Fe,c as Re,s as xe,d as Ce}from"./serializeTransaction-DdLuDvZh.js";import"./secp256k1-Eu_UrDZQ.js";import"./dcl-schemas-CmtP3U6y.js";import"./index-DKik1tqf.js";import"./react-BYHuwl8r.js";import"./sentry-CUdtSPei.js";import"./index-DWB648gE.js";import"./events-DQ172AOg.js";import"./index-BVWvbmB_.js";import"./ethers-CHvw3dSr.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-Dj0kiq3a.js";export{Ir as AbiConstructorNotFoundError,Fr as AbiConstructorParamsNotFoundError,Rr as AbiDecodingDataSizeTooSmallError,xr as AbiDecodingZeroDataError,Cr as AbiEncodingArrayLengthMismatchError,Br as AbiEncodingBytesSizeMismatchError,Nr as AbiEncodingLengthMismatchError,Pr as AbiErrorInputsNotFoundError,Dr as AbiErrorNotFoundError,Ur as AbiErrorSignatureNotFoundError,wr as AbiEventNotFoundError,Lr as AbiEventSignatureEmptyTopicsError,Mr as AbiEventSignatureNotFoundError,Hr as AbiFunctionNotFoundError,kr as AbiFunctionOutputsNotFoundError,zr as AbiFunctionSignatureNotFoundError,qr as AccountStateConflictError,X as AtomicReadyWalletRejectedUpgradeError,Y as AtomicityNotSupportedError,_ as BaseError,Vr as BaseFeeScalarError,Or as BlockNotFoundError,y as BundleFailedError,$ as BundleTooLargeError,Gr as BytesSizeMismatchError,jr as CallExecutionError,aa as ChainDisconnectedError,Wr as ChainDoesNotSupportContract,Kr as ChainMismatchError,Zr as ChainNotFoundError,Jr as CircularReferenceError,Qr as ClientChainNotConfiguredError,Xr as ContractFunctionExecutionError,Yr as ContractFunctionRevertedError,_r as ContractFunctionZeroDataError,$r as CounterfactualDeploymentFailedError,ao as DecodeLogDataMismatch,ro as DecodeLogTopicsMismatch,ra as DuplicateIdError,oo as Eip1559FeesNotSupportedError,f as EnsAvatarInvalidNftUriError,v as EnsAvatarUnsupportedNamespaceError,A as EnsAvatarUriResolutionError,so as EstimateGasExecutionError,oa as ExecutionRevertedError,sa as FeeCapTooHighError,ea as FeeCapTooLowError,S as FilterTypeNotSupportedError,ta as HttpRequestError,ia as InsufficientFundsError,na as IntegerOutOfRangeError,ca as InternalRpcError,da as IntrinsicGasTooHighError,Ea as IntrinsicGasTooLowError,eo as InvalidAbiDecodingTypeError,to as InvalidAbiEncodingTypeError,io as InvalidAbiItemError,no as InvalidAbiParametersError,co as InvalidAbiTypeParameterError,Eo as InvalidAddressError,po as InvalidArrayError,pa as InvalidBytesBooleanError,uo as InvalidChainIdError,H as InvalidDecimalNumberError,lo as InvalidDefinitionTypeError,Xs as InvalidDomainError,mo as InvalidFunctionModifierError,ua as InvalidHexBooleanError,la as InvalidInputRpcError,To as InvalidLegacyVError,go as InvalidModifierError,bo as InvalidParameterError,ma as InvalidParamsRpcError,ho as InvalidParenthesisError,Ys as InvalidPrimaryTypeError,Ta as InvalidRequestRpcError,yo as InvalidSerializableTransactionError,fo as InvalidSignatureError,vo as InvalidStorageKeySizeError,Ao as InvalidStructSignatureError,_s as InvalidStructTypeError,ga as JsonRpcVersionUnsupportedError,ba as LimitExceededRpcError,So as MaxFeePerGasTooLowError,ha as MethodNotFoundRpcError,ya as MethodNotSupportedRpcError,fa as NonceMaxValueError,va as NonceTooHighError,Aa as NonceTooLowError,Sa as ParseRpcError,Ia as ProviderDisconnectedError,Fa as ProviderRpcError,Io as RawContractError,Ra as ResourceNotFoundRpcError,xa as ResourceUnavailableRpcError,Ca as ResponseBodyTooLargeError,Ba as RpcError,Na as RpcRequestError,Pa as SizeExceedsPaddingSizeError,Da as SizeOverflowError,Ua as SliceOffsetOutOfBoundsError,Fo as SolidityProtectedKeywordError,Ro as StateAssignmentConflictError,wa as SwitchChainError,La as TimeoutError,Ma as TipAboveFeeCapError,xo as TransactionExecutionError,Co as TransactionNotFoundError,Bo as TransactionReceiptNotFoundError,Ha as TransactionRejectedRpcError,ka as TransactionTypeNotSupportedError,za as UnauthorizedProviderError,qa as UnknownBundleIdError,Va as UnknownNodeError,Oa as UnknownRpcError,No as UnknownSignatureError,Po as UnknownTypeError,Ga as UnsupportedChainIdError,ja as UnsupportedNonOptionalCapabilityError,Do as UnsupportedPackedAbiType,Wa as UnsupportedProviderMethodError,G as UrlRequiredError,Ka as UserRejectedRequestError,I as WaitForCallsStatusTimeoutError,Uo as WaitForTransactionReceiptTimeoutError,wo as assertCurrentChain,Lo as assertRequest,Ie as assertTransactionEIP1559,Fe as assertTransactionEIP2930,Re as assertTransactionLegacy,Mo as blobsToCommitments,Ho as blobsToProofs,Za as boolToBytes,Ja as boolToHex,ko as bytesToBigInt,zo as bytesToBool,Qa as bytesToHex,qo as bytesToNumber,Vo as bytesToString,ue as ccipFetch,le as ccipRequest,Oo as checksumAddress,Go as commitmentToVersionedHash,jo as commitmentsToVersionedHashes,Wo as concat,Ko as concatBytes,Zo as concatHex,k as createClient,F as createNonceManager,r as createPublicClient,j as createTransport,z as custom,Jo as decodeAbiParameters,Qo as decodeErrorResult,Xo as decodeEventLog,ce as decodeFunctionData,Yo as decodeFunctionResult,_o as defineBlock,t as defineChain,$o as defineTransaction,as as defineTransactionReceipt,rs as defineTransactionRequest,os as deploylessCallViaBytecodeBytecode,ss as deploylessCallViaFactoryBytecode,es as encodeAbiParameters,ts as encodeDeployData,de as encodeErrorResult,R as encodeEventTopics,is as encodeFunctionData,Ee as encodeFunctionResult,x as encodePacked,Xa as erc20Abi,Ya as erc6492SignatureValidatorAbi,ns as erc6492SignatureValidatorByteCode,C as ethAddress,_a as etherUnits,he as extendSchema,W as fallback,cs as formatBlock,ds as formatEther,$a as formatGwei,Es as formatLog,ps as formatTransaction,us as formatTransactionReceipt,ls as formatTransactionRequest,ar as formatUnits,rr as fromHex,ms as getAbiItem,Ts as getAddress,gs as getChainContractAddress,bs as getContractError,hs as getEventSelector,ys as getEventSignature,fs as getFunctionSelector,vs as getFunctionSignature,As as getTransactionType,$s as getTypesForEIP712Domain,or as gweiUnits,ae as hashDomain,re as hashMessage,oe as hashStruct,se as hashTypedData,sr as hexToBigInt,er as hexToBool,tr as hexToBytes,ir as hexToNumber,B as hexToSignature,nr as hexToString,s as http,Ss as isAddress,Is as isAddressEqual,cr as isHex,Fs as keccak256,N as labelhash,Rs as maxUint16,xs as maxUint256,dr as multicall3Abi,P as namehash,Er as numberToBytes,pr as numberToHex,me as offchainLookup,Te as offchainLookupAbiItem,ge as offchainLookupSignature,ur as pad,lr as padBytes,mr as padHex,Cs as parseAbi,ye as parseAbiItem,fe as parseAbiParameters,Bs as parseEventLogs,D as parseSignature,q as parseUnits,Ns as prepareEncodeFunctionData,ee as presignMessagePrefix,U as publicActions,Ps as recoverAddress,Ds as recoverPublicKey,Us as rpcTransactionType,xe as serializeAccessList,w as serializeErc6492Signature,ve as serializeSignature,Ce as serializeTransaction,ws as sha256,K as shouldThrow,Ae as signatureToHex,Tr as size,Ls as slice,Ms as sliceBytes,Hs as sliceHex,gr as stringToBytes,br as stringToHex,hr as stringify,ks as toBlobSidecars,zs as toBlobs,yr as toBytes,qs as toEventHash,Vs as toEventSelector,Os as toEventSignature,Gs as toFunctionHash,js as toFunctionSelector,Ws as toFunctionSignature,fr as toHex,te as toPrefixedMessage,Ks as toRlp,Zs as transactionType,vr as trim,Ar as universalSignatureValidatorAbi,Js as universalSignatureValidatorByteCode,ie as validateTypedData,V as withCache,Z as withRetry,J as withTimeout,L as zeroAddress};
@@ -1,4 +1,4 @@
1
- import{C as l,E as g,R as h,o as m,S as w,b as c,r as E,t as _}from"./W3MFrameProviderSingleton-DMgnEflU.js";import{au as R}from"./NetworkUtil-BsEXGHJo.js";import{i as b,b as y}from"./lit-element-B3y9oplH.js";import{n as d,o as O}from"./class-map-CxwNmq0D.js";import{c as v}from"./index-BfOmf_Cp.js";import{d as C,r as S,e as $}from"./index-BoAHsqWZ.js";function I(){try{return c.returnOpenHref(`${R.SECURE_SITE_SDK_ORIGIN}/loading`,"popupWindow","width=600,height=800,scrollbars=yes")}catch{throw new Error("Could not open social popup")}}async function L(){h.push("ConnectingFarcaster");const e=m.getAuthConnector();if(e){const o=l.getAccountData();if(!(o!=null&&o.farcasterUrl))try{const{url:t}=await e.provider.getFarcasterUri();l.setAccountProp("farcasterUrl",t,l.state.activeChain)}catch(t){h.goBack(),w.showError(t)}}}async function T(e){h.push("ConnectingSocial");const o=m.getAuthConnector();let t=null;try{const i=setTimeout(()=>{throw new Error("Social login timed out. Please try again.")},45e3);if(o&&e){if(c.isTelegram()||(t=I()),t)l.setAccountProp("socialWindow",E(t),l.state.activeChain);else if(!c.isTelegram())throw new Error("Could not create social popup");const{uri:n}=await o.provider.getSocialRedirectUri({provider:e});if(!n)throw t==null||t.close(),new Error("Could not fetch the social redirect uri");if(t&&(t.location.href=n),c.isTelegram()){_.setTelegramSocialProvider(e);const r=c.formatTelegramSocialLoginUrl(n);c.openHref(r,"_top")}clearTimeout(i)}}catch(i){t==null||t.close();const n=c.parseError(i);w.showError(n),g.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:e,message:n}})}}async function G(e){l.setAccountProp("socialProvider",e,l.state.activeChain),g.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}}),e==="farcaster"?await L():await T(e)}const U=C`
1
+ import{C as l,E as g,R as h,o as m,S as w,b as c,r as E,t as _}from"./W3MFrameProviderSingleton-DkDY_Uhq.js";import{au as R}from"./NetworkUtil-CmFj23VB.js";import{i as b,b as y}from"./lit-element-B3y9oplH.js";import{n as d,o as O}from"./class-map-CxwNmq0D.js";import{c as v}from"./index-CI91n7ZK.js";import{d as C,r as S,e as $}from"./index-DbCIRxku.js";function I(){try{return c.returnOpenHref(`${R.SECURE_SITE_SDK_ORIGIN}/loading`,"popupWindow","width=600,height=800,scrollbars=yes")}catch{throw new Error("Could not open social popup")}}async function L(){h.push("ConnectingFarcaster");const e=m.getAuthConnector();if(e){const o=l.getAccountData();if(!(o!=null&&o.farcasterUrl))try{const{url:t}=await e.provider.getFarcasterUri();l.setAccountProp("farcasterUrl",t,l.state.activeChain)}catch(t){h.goBack(),w.showError(t)}}}async function T(e){h.push("ConnectingSocial");const o=m.getAuthConnector();let t=null;try{const i=setTimeout(()=>{throw new Error("Social login timed out. Please try again.")},45e3);if(o&&e){if(c.isTelegram()||(t=I()),t)l.setAccountProp("socialWindow",E(t),l.state.activeChain);else if(!c.isTelegram())throw new Error("Could not create social popup");const{uri:n}=await o.provider.getSocialRedirectUri({provider:e});if(!n)throw t==null||t.close(),new Error("Could not fetch the social redirect uri");if(t&&(t.location.href=n),c.isTelegram()){_.setTelegramSocialProvider(e);const r=c.formatTelegramSocialLoginUrl(n);c.openHref(r,"_top")}clearTimeout(i)}}catch(i){t==null||t.close();const n=c.parseError(i);w.showError(n),g.sendEvent({type:"track",event:"SOCIAL_LOGIN_ERROR",properties:{provider:e,message:n}})}}async function G(e){l.setAccountProp("socialProvider",e,l.state.activeChain),g.sendEvent({type:"track",event:"SOCIAL_LOGIN_STARTED",properties:{provider:e}}),e==="farcaster"?await L():await T(e)}const U=C`
2
2
  :host {
3
3
  display: flex;
4
4
  justify-content: center;
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/native-Dc2tC-qn.js","_assets/sentry-1ai9esXb.js","_assets/react-BYHuwl8r.js"])))=>i.map(i=>d[i]);
2
- import{p as gt,b as Yt,i as Qt,I as Zt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as me,x as Z,y as le,z as fe,B as he,C as $,D as pe,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as K,a0 as _e,a1 as Bt,a2 as Re,a3 as qe,a4 as mt,a5 as Fe,a6 as Ue,a7 as Be,a8 as ke,a9 as Ne,aa as kt,ab as Le}from"./parseSignature-CYlDxQ9k.js";import{ac as Pr,ad as _r,ae as Rr,af as qr,ag as Fr,ah as Ur,ai as Br,aj as kr,ak as Nr,al as Lr,am as Mr,an as Dr,ao as zr,ap as Gr,aq as $r,ar as Hr,as as Or,at as jr,au as Wr,av as Vr,aw as Kr,ax as Jr,ay as Yr,az as Qr,aA as Zr,aB as Xr,aC as ts,aD as es,aE as as,aF as ns,aG as rs,aH as ss,aI as os,aJ as is,aK as cs,aL as us,aM as ds,aN as ms,aO as ls,aP as fs,aQ as hs,aR as ps,aS as ys,aT as gs,aU as bs,aV as ws,aW as xs,aX as Es,aY as Is,aZ as Ts,a_ as Cs,a$ as vs,b0 as Ss,b1 as As,b2 as Ps,b3 as _s,b4 as Rs,b5 as qs,b6 as Fs,b7 as Us,b8 as Bs,b9 as ks,ba as Ns,bb as Ls,bc as Ms,bd as Ds,be as zs,bf as Gs,bg as $s,bh as Hs,bi as Os,bj as js,bk as Ws,bl as Vs,bm as Ks,bn as Js,bo as Ys,bp as Qs,bq as Zs,br as Xs,bs as to,bt as eo,bu as ao,bv as no,bw as ro,bx as so,by as oo,bz as io,br as co,bA as uo,bB as mo,bC as lo,bD as fo,bE as ho,bF as po,bG as yo,bH as go,bH as bo,bI as wo,bJ as xo,bi as Eo,bj as Io,bK as To,bL as Co,bM as vo,bN as So,bO as Ao}from"./parseSignature-CYlDxQ9k.js";import{R as k,b3 as B,S as Me,x as Y,a7 as De,w as ze,b4 as Ge,U as H,V as ct,W as G,B as lt,q as E,E as $e,a2 as He,b5 as j,a1 as wt,G as Nt,b6 as Lt,d as Mt,A as R,m as F,b7 as A,C as Oe,I as je,b8 as We,b9 as xt,y as Ve,ba as Ke,bb as Je,bc as Ye,bd as Et}from"./prepare-contract-call-Bc4Cpa9D.js";import{be as _o,O as Ro,a8 as qo,bf as Fo,bg as Uo,bh as Bo,bi as ko,bj as No,a9 as Lo,bk as Mo,J as Do,M as zo,bl as Go,bm as $o,bn as Ho,F as Oo,Q as jo,N as Wo,bo as Vo,bp as Ko,bq as Jo,br as Yo,bs as Qo,bt as Zo,bu as Xo,bv as ti,bw as ei,bx as ai,by as ni,bz as ri,bA as si,bB as oi,bC as ii,bD as ci,bE as ui,bF as di,bG as mi,bH as li,j as fi,bI as hi,bJ as pi,bK as yi,bL as gi,K as bi,bM as wi,t as xi,bM as Ei,bN as Ii,bO as Ti,bP as Ci,bQ as vi,bR as Si,bS as Ai,bT as Pi,bU as _i,K as Ri,bM as qi,bU as Fi,t as Ui,bM as Bi}from"./prepare-contract-call-Bc4Cpa9D.js";import{u as ft}from"./to-serializable-transaction-DqDYMKiS.js";import{b as Ni,B as Li,C as Mi,D as Di,E as zi,m as Gi,n as $i,F as Hi,s as Oi,a as ji}from"./to-serializable-transaction-DqDYMKiS.js";import{w as Qe,h as Ze,g as Xe,v as ta,s as ea}from"./hashTypedData-DejwI0fC.js";import{I as Vi,a as Ki,b as Ji,d as Yi,c as Qi,e as Zi}from"./hashTypedData-DejwI0fC.js";import{T as aa,a as Q,W as It,b as na,U as ra,R as sa}from"./rpc-DZP--mgd.js";import{A as tc,c as ec,B as ac,C as nc,D as rc,H as sc,I as oc,d as ic,e as cc,f as uc,J as dc,L as mc,M as lc,h as fc,P as hc,i as pc,j as yc,k as gc,l as bc,m as wc,S as xc,n as Ec,o as Ic,p as Tc,q as Cc,r as vc,s as Sc}from"./rpc-DZP--mgd.js";import{_ as oa}from"./index-Bh6adykR.js";import{t as ia,H as ca}from"./sha256-CeTmPq_Q.js";import{b as Pc,h as _c,a as Rc,c as qc,d as Fc,e as Uc,f as Bc,g as kc,i as Nc,j as Lc,k as Mc,l as Dc,n as zc,o as Gc,p as $c,q as Hc,r as Oc,u as jc,v as Wc,w as Vc,x as Kc,y as Jc,z as Yc,A as Qc,B as Zc,C as Xc,D as tu,E as eu,F as au,G as nu,I as ru,J as su,K as ou,L as iu,M as cu,N as uu,O as du,P as mu,Q as lu,R as fu,S as hu,m as pu,T as yu,U as gu,V as bu,W as wu,X as xu,Y as Eu,Z as Iu,_ as Tu,$ as Cu,a0 as vu,a1 as Su,a2 as Au,a3 as Pu,a4 as _u,a5 as Ru,a6 as qu,a7 as Fu,a8 as Uu,a9 as Bu,aa as ku,ab as Nu,ac as Lu,ad as Mu,ae as Du,af as zu,ag as Gu,ah as $u,ai as Hu,aj as Ou,ak as ju,al as Wu,am as Vu,an as Ku,ao as Ju,ap as Yu,aq as Qu,ar as Zu,as as Xu,at as td,au as ed,av as ad,aw as nd,ax as rd,ay as sd,az as od,aA as id,aB as cd,aC as ud,aD as dd,aE as md,aF as ld,aG as fd,aH as hd,aI as pd,aJ as yd,aK as gd,s as bd}from"./sha256-CeTmPq_Q.js";import{i as ht}from"./get-bytecode-CL7QG9KN.js";import{d as xd,a as Ed}from"./get-bytecode-CL7QG9KN.js";import{ccipRequest as Td,ccipRequest as Cd,offchainLookup as vd,offchainLookupAbiItem as Sd,offchainLookupSignature as Ad}from"./ccip-ci60pO9_.js";import{d as _d,a as Rd,f as qd}from"./transactionReceipt-CdHeShcY.js";import"./utils-DPjdBMrV.js";import"./sentry-1ai9esXb.js";import"./react-BYHuwl8r.js";import"./transaction-DcVIFcB7.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-BKEzvwKN.js";import"./intl-CBcMB1D2.js";function Qn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Qt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Zt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:l,...h}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,p=Xt({abi:u,args:i,functionName:l});try{return await U(a,n,r)({data:`${p}${f?f.replace("0x",""):""}`,to:c,account:o,...h})}catch(m){throw te(m,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:l,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Zn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,l=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?i=!0:f=!0:h.type==="event"&&(l=!0),i&&f&&l)break;return u&&(i&&(c.read=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:m,...y})}}})),f&&(c.simulate=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:m,...y})}}})),l&&(c.createEventFilter=new Proxy({},{get(h,o){return(...p)=>{const m=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,m);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(h,o){return(...p)=>{const m=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,m);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(h,o){return(...p)=>{const m=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,m);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:m,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:m,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Xn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=k(B(t.from));let a=k(t.nonce);return a[0]===0&&(a=new Uint8Array([])),B(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=k(B(t.from)),a=Me(Tt(t.salt)?t.salt:k(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:k(t.bytecodeHash):Y(t.bytecode,"bytes");return B(De(Y(ze([k("0xff"),e,a,n])),12))}function tr({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return ma(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new lt("Invalid RLP prefix")}function ma(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function la(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ha=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[ha]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),pa=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,l=this.h4|0,h=l;for(let o=0;o<5;o++){const p=4-o,m=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=pa[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+m,C[x])+l|0;n=l,l=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(p,u,c,f)+V[g[x]]+y,b[x])+h|0;r=h,h=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+h|0,this.h3+l+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function er(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?k(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let l=0;const{schedule:h}=ie({id:i,fn:async()=>{const m=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&l<d){if(b)return;b=!0,l++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else m.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of m.values())(v=S.onError)==null||v.call(S,new Q({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Q({url:s}));x()},onError(v){var P,S;w=v;for(const _ of m.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,l=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:m,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};m.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Qe(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:m,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[p]]=await h();return p}async function J(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-Dc2tC-qn.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",l),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function l({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const p=JSON.parse(o);d(p)}catch(p){s(p)}}i.addEventListener("close",f),i.addEventListener("message",l),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,p)=>{i&&(i.onopen=o,i.onerror=p)});const{close:h}=i;return Object.assign(i,{close(){h.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Q({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Q({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await J(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function ar(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function nr(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=me(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Z({hash:le(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Z({hash:Ze({domain:e,message:a,primaryType:n,types:s}),signature:r})}function rr(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:H(s)}async function sr({address:t,hash:e,signature:a}){return ht(B(t),await Z({hash:e,signature:a}))}async function or({address:t,message:e,signature:a}){return ht(B(t),await Sa({message:e,signature:a}))}async function ir(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return ht(B(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new he({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):Ba(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,l,h,o,p]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:l,...e.length>9?{v:h,r:o,s:p}:{}},serializedTransaction:t,type:"eip7702"});const m={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(m.to=d),E(u)&&u!=="0x"&&(m.gas=A(u)),E(i)&&i!=="0x"&&(m.data=i),E(n)&&(m.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(m.value=A(c)),E(s)&&s!=="0x"&&(m.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(m.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(m.accessList=tt(f)),l.length!==0&&l!=="0x"&&(m.authorizationList=ka(l)),we(m),{...e.length===13?O(e):void 0,...m}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,l,h,o,p,m,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:l,data:h,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:m,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(h)&&h!=="0x"&&(I.data=h),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(l)&&l!=="0x"&&(I.value=A(l)),E(p)&&p!=="0x"&&(I.maxFeePerBlobGas=A(p)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,l,h,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:l,r:h,s:o}:{}},serializedTransaction:t,type:"eip1559"});const p={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(p.to=d),E(u)&&u!=="0x"&&(p.gas=A(u)),E(i)&&i!=="0x"&&(p.data=i),E(n)&&(p.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(p.value=A(c)),E(s)&&s!=="0x"&&(p.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(p.accessList=tt(f)),pe(p),{...e.length===12?O(e):void 0,...p}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,l,h]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:l,s:h}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function Ba(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const l={type:"legacy"};if(E(s)&&s!=="0x"&&(l.to=s),E(r)&&r!=="0x"&&(l.gas=A(r)),E(d)&&d!=="0x"&&(l.data=d),E(a)&&(l.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(l.value=A(u)),E(n)&&n!=="0x"&&(l.gasPrice=A(n)),xe(l),e.length===6)return l;const h=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return h>0&&(l.chainId=Number(h)),l;const o=h,p=Number((o-35n)/2n);if(p>0)l.chainId=p;else if(o!==27n&&o!==28n)throw new Ee({v:o});return l.v=o,l.s=f,l.r=i,l.yParity=o%2n===0n?1:0,l}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>la(s)?s:We(s))})}return e}function ka(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends lt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function cr(t,e="wei"){return Wt(t,Ie[e])}function ur(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ka(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ja(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:l,...h}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,m=(o||ft)({...St(h,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:l},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[m]})}async function Qa(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Za(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function mn(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function ln(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function hn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ka(a,n),revert:n=>Ja(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Qa(a,n),setBalance:n=>Za(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>mn(a,n),snapshot:()=>ln(a),stopImpersonatingAccount:n=>fn(a,n)}}}function dr(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...hn({mode:n})(s)}))}async function pn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,l]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=l}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>B(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Ke(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:l,maxPriorityFeePerGas:h,nonce:o,pollingInterval:p,throwOnReceiptRevert:m,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new lt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ft)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:l,maxPriorityFeePerGas:h,nonce:o,to:P,type:y,value:w},"sendTransaction"),pt=ot.get(t.uid),Kt=pt?"wallet_sendTransaction":"eth_sendTransaction",Jt=await(async()=>{try{return await t.request({method:Kt,params:[z]},{retryCount:0})}catch(yt){if(pt===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Jt,pollingInterval:p,timeout:C});if(m&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:l,maxPriorityFeePerGas:h,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:m})}throw(b==null?void 0:b.type)==="smart"?new K({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new K({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof K?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new K({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await Bt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Je(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,l,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ft;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(h=(l=t.chain)==null?void 0:l.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>pn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>Bt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function mr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function lr(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>mt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function fr(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...l})=>{let h=t,o=()=>{};const p=mt({key:a,name:n,async request({method:m,params:y}){let w;const g=async(C=0)=>{const b=h[C]({...l,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:m,params:y});return o({method:m,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:m,params:y,transport:b,status:"error"}),s(x)||C===h.length-1||(w??(w=h.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(m):v?!v.includes(m):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:m=>o=m,transports:h.map(m=>m({chain:c,retryCount:0}))});if(r){const m=typeof r=="object"?r:{};Un({chain:c,interval:m.interval??i,onTransports:y=>h=y,ping:m.ping,sampleCount:m.sampleCount,timeout:m.timeout,transports:h,weights:m.weights})}return p})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],l=async()=>{const h=await Promise.all(u.map(async m=>{const y=m({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(h),f.length>r&&f.shift();const o=Math.max(...f.map(m=>Math.max(...m.map(({latency:y})=>y)))),p=u.map((m,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((m,y)=>y[0]-m[0]);a(p.map(([,m])=>u[m])),await Ue(e),l()};l()}function hr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var m;const l=e.retryCount??i,h=f??e.timeout??1e4,o=t||((m=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:m[0]),p={keepAlive:a,reconnect:u};if(!o)throw new Be;return mt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await J(o,p),{error:b,result:x}=await C.requestAsync({body:g,timeout:h});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:l,retryDelay:d,timeout:h,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return J(o,p)},async subscribe({params:y,onData:w,onError:g}){const C=await J(o,p),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class pr extends Error{constructor(e,a){super(a),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=a}}const it="/docs/contract/decodeDeployData";function yr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function gr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const l=c.readByte();if(l===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(l)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function br(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(ke({commitment:s,to:n,version:a}));return r}const Bn=2147483648;function wr(t){if(t===1)return 60n;if(t>=Bn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function kn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function xr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return kn(t)}function Er({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function Ir(t){const{r:e,s:a}=kt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function Tr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Z({hash:Y(s),signature:r})}function Cr({r:t,yParityAndS:e}){return`0x${new kt.Signature(A(t),A(e)).toCompactHex()}`}function vr(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,_o as AbiDecodingDataSizeInvalidError,Ro as AbiDecodingDataSizeTooSmallError,qo as AbiDecodingZeroDataError,Fo as AbiEncodingArrayLengthMismatchError,Uo as AbiEncodingBytesSizeMismatchError,Bo as AbiEncodingLengthMismatchError,ko as AbiErrorInputsNotFoundError,No as AbiErrorNotFoundError,Lo as AbiErrorSignatureNotFoundError,Mo as AbiEventNotFoundError,Do as AbiEventSignatureEmptyTopicsError,zo as AbiEventSignatureNotFoundError,Go as AbiFunctionNotFoundError,$o as AbiFunctionOutputsNotFoundError,Ho as AbiFunctionSignatureNotFoundError,Pr as AccountStateConflictError,tc as AtomicReadyWalletRejectedUpgradeError,ec as AtomicityNotSupportedError,lt as BaseError,_r as BaseFeeScalarError,Rr as BlockNotFoundError,qr as BundleFailedError,ac as BundleTooLargeError,Oo as BytesSizeMismatchError,Fr as CallExecutionError,nc as ChainDisconnectedError,Ur as ChainDoesNotSupportContract,Br as ChainMismatchError,kr as ChainNotFoundError,Nr as CircularReferenceError,Lr as ClientChainNotConfiguredError,Mr as ContractFunctionExecutionError,Dr as ContractFunctionRevertedError,zr as ContractFunctionZeroDataError,Gr as CounterfactualDeploymentFailedError,jo as DecodeLogDataMismatch,Wo as DecodeLogTopicsMismatch,rc as DuplicateIdError,pr as EIP1193ProviderRpcError,$r as Eip1559FeesNotSupportedError,Hr as EnsAvatarInvalidNftUriError,Or as EnsAvatarUnsupportedNamespaceError,jr as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,Wr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Vr as FeeCapTooHighError,Kr as FeeCapTooLowError,Jr as FeeConflictError,Vo as FilterTypeNotSupportedError,sc as HttpRequestError,Yr as InsufficientFundsError,Ko as IntegerOutOfRangeError,oc as InternalRpcError,Qr as IntrinsicGasTooHighError,Zr as IntrinsicGasTooLowError,Jo as InvalidAbiDecodingTypeError,Yo as InvalidAbiEncodingTypeError,Xr as InvalidAbiItemError,Zt as InvalidAbiParameterError,ts as InvalidAbiParametersError,es as InvalidAbiTypeParameterError,je as InvalidAddressError,Qo as InvalidArrayError,Zo as InvalidBytesBooleanError,as as InvalidChainIdError,Na as InvalidDecimalNumberError,Xo as InvalidDefinitionTypeError,Vi as InvalidDomainError,ns as InvalidFunctionModifierError,ti as InvalidHexBooleanError,Ge as InvalidHexValueError,ic as InvalidInputRpcError,Ee as InvalidLegacyVError,rs as InvalidModifierError,ss as InvalidParameterError,cc as InvalidParamsRpcError,os as InvalidParenthesisError,Ki as InvalidPrimaryTypeError,uc as InvalidRequestRpcError,is as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,cs as InvalidSignatureError,us as InvalidStorageKeySizeError,ds as InvalidStructSignatureError,Ji as InvalidStructTypeError,dc as JsonRpcVersionUnsupportedError,mc as LimitExceededRpcError,ms as MaxFeePerGasTooLowError,lc as MethodNotFoundRpcError,fc as MethodNotSupportedRpcError,ls as NonceMaxValueError,fs as NonceTooHighError,hs as NonceTooLowError,hc as ParseRpcError,pc as ProviderDisconnectedError,yc as ProviderRpcError,ps as RawContractError,gc as ResourceNotFoundRpcError,bc as ResourceUnavailableRpcError,wc as RpcError,sa as RpcRequestError,ei as SizeExceedsPaddingSizeError,ai as SizeOverflowError,ni as SliceOffsetOutOfBoundsError,Q as SocketClosedError,ys as SolidityProtectedKeywordError,gs as StateAssignmentConflictError,xc as SwitchChainError,aa as TimeoutError,bs as TipAboveFeeCapError,ws as TransactionExecutionError,xs as TransactionNotFoundError,Es as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,Is as TransactionTypeNotSupportedError,Ec as UnauthorizedProviderError,Ic as UnknownBundleIdError,Ts as UnknownNodeError,Tc as UnknownRpcError,Cs as UnknownSignatureError,vs as UnknownTypeError,Cc as UnsupportedChainIdError,vc as UnsupportedNonOptionalCapabilityError,ri as UnsupportedPackedAbiType,Sc as UnsupportedProviderMethodError,Be as UrlRequiredError,ra as UserRejectedRequestError,Ss as WaitForCallsStatusTimeoutError,As as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,Ps as blobsToCommitments,_s as blobsToProofs,si as boolToBytes,oi as boolToHex,ii as bytesToBigInt,ci as bytesToBool,G as bytesToHex,ui as bytesToNumber,Pc as bytesToRlp,di as bytesToString,Td as ccipFetch,Cd as ccipRequest,Ve as checksumAddress,ke as commitmentToVersionedHash,Rs as commitmentsToVersionedHashes,Cr as compactSignatureToHex,Er as compactSignatureToSignature,ze as concat,mi as concatBytes,li as concatHex,At as createClient,qs as createNonceManager,Fs as createPublicClient,dr as createTestClient,mt as createTransport,mr as createWalletClient,lr as custom,Mt as decodeAbiParameters,yr as decodeDeployData,Ni as decodeErrorResult,xd as decodeEventLog,Us as decodeFunctionData,Bs as decodeFunctionResult,Li as defineBlock,Mi as defineChain,kn as defineKzg,Di as defineTransaction,_d as defineTransactionReceipt,zi as defineTransactionRequest,ks as deploylessCallViaBytecodeBytecode,Ns as deploylessCallViaFactoryBytecode,Yi as domainSeparator,fi as encodeAbiParameters,Ce as encodeDeployData,Ls as encodeErrorResult,hi as encodeEventTopics,Xt as encodeFunctionData,Ms as encodeFunctionResult,Ds as encodePacked,zs as erc1155Abi,Gs as erc20Abi,$s as erc20Abi_bytes32,Hs as erc4626Abi,Os as erc6492SignatureValidatorAbi,js as erc6492SignatureValidatorByteCode,Ws as erc721Abi,Vs as ethAddress,Ie as etherUnits,tr as extractChain,fr as fallback,Gi as formatBlock,Ks as formatEther,Js as formatGwei,Rd as formatLog,$i as formatTransaction,qd as formatTransactionReceipt,ft as formatTransactionRequest,Ys as formatUnits,gr as fromBlobs,pi as fromBytes,yi as fromHex,Dt as fromRlp,gi as getAbiItem,B as getAddress,Qs as getChainContractAddress,Zn as getContract,Xn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,bi as getEventSelector,wi as getEventSignature,xi as getFunctionSelector,Ei as getFunctionSignature,Pa as getSerializedTransactionType,Zs as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Qi as hashDomain,le as hashMessage,Zi as hashStruct,Ze as hashTypedData,A as hexToBigInt,Ii as hexToBool,H as hexToBytes,Ir as hexToCompactSignature,F as hexToNumber,_c as hexToRlp,Xs as hexToSignature,Ti as hexToString,to as http,Oe as isAddress,ht as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,la as isHash,E as isHex,Y as keccak256,eo as labelhash,Rc as maxInt104,qc as maxInt112,Fc as maxInt120,Uc as maxInt128,Bc as maxInt136,kc as maxInt144,Nc as maxInt152,Lc as maxInt16,Mc as maxInt160,Dc as maxInt168,zc as maxInt176,Gc as maxInt184,$c as maxInt192,Hc as maxInt200,Oc as maxInt208,jc as maxInt216,Wc as maxInt224,Vc as maxInt232,Kc as maxInt24,Jc as maxInt240,Yc as maxInt248,Qc as maxInt256,Zc as maxInt32,Xc as maxInt40,tu as maxInt48,eu as maxInt56,au as maxInt64,nu as maxInt72,ru as maxInt8,su as maxInt80,ou as maxInt88,iu as maxInt96,cu as maxUint104,uu as maxUint112,du as maxUint120,mu as maxUint128,lu as maxUint136,fu as maxUint144,hu as maxUint152,pu as maxUint16,yu as maxUint160,gu as maxUint168,bu as maxUint176,wu as maxUint184,xu as maxUint192,Eu as maxUint200,Iu as maxUint208,Tu as maxUint216,Cu as maxUint224,vu as maxUint232,Su as maxUint24,Au as maxUint240,Pu as maxUint248,_u as maxUint256,Ru as maxUint32,qu as maxUint40,Fu as maxUint48,Uu as maxUint56,Bu as maxUint64,ku as maxUint72,Nu as maxUint8,Lu as maxUint80,Mu as maxUint88,Du as maxUint96,zu as minInt104,Gu as minInt112,$u as minInt120,Hu as minInt128,Ou as minInt136,ju as minInt144,Wu as minInt152,Vu as minInt16,Ku as minInt160,Ju as minInt168,Yu as minInt176,Qu as minInt184,Zu as minInt192,Xu as minInt200,td as minInt208,ed as minInt216,ad as minInt224,nd as minInt232,rd as minInt24,sd as minInt240,od as minInt248,id as minInt256,cd as minInt32,ud as minInt40,dd as minInt48,md as minInt56,ld as minInt64,fd as minInt72,hd as minInt8,pd as minInt80,yd as minInt88,gd as minInt96,ao as multicall3Abi,no as namehash,ro as nonceManager,Ci as numberToBytes,R as numberToHex,vd as offchainLookup,Sd as offchainLookupAbiItem,Ad as offchainLookupSignature,Me as pad,vi as padBytes,xt as padHex,so as parseAbi,oo as parseAbiItem,Qn as parseAbiParameter,io as parseAbiParameters,Ir as parseCompactSignature,ar as parseErc6492Signature,nr as parseErc8010Signature,cr as parseEther,Ed as parseEventLogs,ur as parseGwei,co as parseSignature,_a as parseTransaction,Wt as parseUnits,uo as prepareEncodeFunctionData,mo as presignMessagePrefix,lo as publicActions,Z as recoverAddress,Sa as recoverMessageAddress,fo as recoverPublicKey,Tr as recoverTransactionAddress,Aa as recoverTypedDataAddress,er as ripemd160,ho as rpcSchema,Hi as rpcTransactionType,po as serializeAccessList,Cr as serializeCompactSignature,yo as serializeErc6492Signature,rr as serializeErc8010Signature,go as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Si as setErrorConfig,xr as setupKzg,bd as sha256,Fn as shouldThrow,br as sidecarsToVersionedHashes,vr as signatureToCompactSignature,bo as signatureToHex,$e as size,De as slice,Ai as sliceBytes,Lt as sliceHex,Pi as stringToBytes,Je as stringToHex,Oi as stringify,hn as testActions,ge as toBlobSidecars,wo as toBlobs,k as toBytes,wr as toCoinType,_i as toEventHash,Ri as toEventSelector,qi as toEventSignature,Fi as toFunctionHash,Ui as toFunctionSelector,Bi as toFunctionSignature,Nt as toHex,xo as toPrefixedMessage,ia as toRlp,ji as transactionType,We as trim,Eo as universalSignatureValidatorAbi,Io as universalSignatureValidatorByteCode,ta as validateTypedData,sr as verifyHash,or as verifyMessage,ir as verifyTypedData,qn as walletActions,hr as webSocket,To as weiUnits,Co as withCache,vo as withRetry,Qe as withTimeout,So as zeroAddress,Ao as zeroHash};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/native-DDD_yqs5.js","_assets/sentry-CUdtSPei.js","_assets/react-BYHuwl8r.js"])))=>i.map(i=>d[i]);
2
+ import{p as gt,b as Yt,i as Qt,I as Zt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as me,x as Z,y as le,z as fe,B as he,C as $,D as pe,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as K,a0 as _e,a1 as Bt,a2 as Re,a3 as qe,a4 as mt,a5 as Fe,a6 as Ue,a7 as Be,a8 as ke,a9 as Ne,aa as kt,ab as Le}from"./parseSignature-BXY4fDlp.js";import{ac as Pr,ad as _r,ae as Rr,af as qr,ag as Fr,ah as Ur,ai as Br,aj as kr,ak as Nr,al as Lr,am as Mr,an as Dr,ao as zr,ap as Gr,aq as $r,ar as Hr,as as Or,at as jr,au as Wr,av as Vr,aw as Kr,ax as Jr,ay as Yr,az as Qr,aA as Zr,aB as Xr,aC as ts,aD as es,aE as as,aF as ns,aG as rs,aH as ss,aI as os,aJ as is,aK as cs,aL as us,aM as ds,aN as ms,aO as ls,aP as fs,aQ as hs,aR as ps,aS as ys,aT as gs,aU as bs,aV as ws,aW as xs,aX as Es,aY as Is,aZ as Ts,a_ as Cs,a$ as vs,b0 as Ss,b1 as As,b2 as Ps,b3 as _s,b4 as Rs,b5 as qs,b6 as Fs,b7 as Us,b8 as Bs,b9 as ks,ba as Ns,bb as Ls,bc as Ms,bd as Ds,be as zs,bf as Gs,bg as $s,bh as Hs,bi as Os,bj as js,bk as Ws,bl as Vs,bm as Ks,bn as Js,bo as Ys,bp as Qs,bq as Zs,br as Xs,bs as to,bt as eo,bu as ao,bv as no,bw as ro,bx as so,by as oo,bz as io,br as co,bA as uo,bB as mo,bC as lo,bD as fo,bE as ho,bF as po,bG as yo,bH as go,bH as bo,bI as wo,bJ as xo,bi as Eo,bj as Io,bK as To,bL as Co,bM as vo,bN as So,bO as Ao}from"./parseSignature-BXY4fDlp.js";import{R as k,b3 as B,S as Me,x as Y,a7 as De,w as ze,b4 as Ge,U as H,V as ct,W as G,B as lt,q as E,E as $e,a2 as He,b5 as j,a1 as wt,G as Nt,b6 as Lt,d as Mt,A as R,m as F,b7 as A,C as Oe,I as je,b8 as We,b9 as xt,y as Ve,ba as Ke,bb as Je,bc as Ye,bd as Et}from"./prepare-contract-call-CuOouwzZ.js";import{be as _o,O as Ro,a8 as qo,bf as Fo,bg as Uo,bh as Bo,bi as ko,bj as No,a9 as Lo,bk as Mo,J as Do,M as zo,bl as Go,bm as $o,bn as Ho,F as Oo,Q as jo,N as Wo,bo as Vo,bp as Ko,bq as Jo,br as Yo,bs as Qo,bt as Zo,bu as Xo,bv as ti,bw as ei,bx as ai,by as ni,bz as ri,bA as si,bB as oi,bC as ii,bD as ci,bE as ui,bF as di,bG as mi,bH as li,j as fi,bI as hi,bJ as pi,bK as yi,bL as gi,K as bi,bM as wi,t as xi,bM as Ei,bN as Ii,bO as Ti,bP as Ci,bQ as vi,bR as Si,bS as Ai,bT as Pi,bU as _i,K as Ri,bM as qi,bU as Fi,t as Ui,bM as Bi}from"./prepare-contract-call-CuOouwzZ.js";import{u as ft}from"./to-serializable-transaction-NCusZ8xl.js";import{b as Ni,B as Li,C as Mi,D as Di,E as zi,m as Gi,n as $i,F as Hi,s as Oi,a as ji}from"./to-serializable-transaction-NCusZ8xl.js";import{w as Qe,h as Ze,g as Xe,v as ta,s as ea}from"./hashTypedData-DYCRMzzm.js";import{I as Vi,a as Ki,b as Ji,d as Yi,c as Qi,e as Zi}from"./hashTypedData-DYCRMzzm.js";import{T as aa,a as Q,W as It,b as na,U as ra,R as sa}from"./rpc-z-_gajTg.js";import{A as tc,c as ec,B as ac,C as nc,D as rc,H as sc,I as oc,d as ic,e as cc,f as uc,J as dc,L as mc,M as lc,h as fc,P as hc,i as pc,j as yc,k as gc,l as bc,m as wc,S as xc,n as Ec,o as Ic,p as Tc,q as Cc,r as vc,s as Sc}from"./rpc-z-_gajTg.js";import{_ as oa}from"./index-BVWvbmB_.js";import{t as ia,H as ca}from"./sha256-DsP9u1VJ.js";import{b as Pc,h as _c,a as Rc,c as qc,d as Fc,e as Uc,f as Bc,g as kc,i as Nc,j as Lc,k as Mc,l as Dc,n as zc,o as Gc,p as $c,q as Hc,r as Oc,u as jc,v as Wc,w as Vc,x as Kc,y as Jc,z as Yc,A as Qc,B as Zc,C as Xc,D as tu,E as eu,F as au,G as nu,I as ru,J as su,K as ou,L as iu,M as cu,N as uu,O as du,P as mu,Q as lu,R as fu,S as hu,m as pu,T as yu,U as gu,V as bu,W as wu,X as xu,Y as Eu,Z as Iu,_ as Tu,$ as Cu,a0 as vu,a1 as Su,a2 as Au,a3 as Pu,a4 as _u,a5 as Ru,a6 as qu,a7 as Fu,a8 as Uu,a9 as Bu,aa as ku,ab as Nu,ac as Lu,ad as Mu,ae as Du,af as zu,ag as Gu,ah as $u,ai as Hu,aj as Ou,ak as ju,al as Wu,am as Vu,an as Ku,ao as Ju,ap as Yu,aq as Qu,ar as Zu,as as Xu,at as td,au as ed,av as ad,aw as nd,ax as rd,ay as sd,az as od,aA as id,aB as cd,aC as ud,aD as dd,aE as md,aF as ld,aG as fd,aH as hd,aI as pd,aJ as yd,aK as gd,s as bd}from"./sha256-DsP9u1VJ.js";import{i as ht}from"./get-bytecode-C_QCCMoR.js";import{d as xd,a as Ed}from"./get-bytecode-C_QCCMoR.js";import{ccipRequest as Td,ccipRequest as Cd,offchainLookup as vd,offchainLookupAbiItem as Sd,offchainLookupSignature as Ad}from"./ccip-q9rBWRrW.js";import{d as _d,a as Rd,f as qd}from"./transactionReceipt-BHjPvP-A.js";import"./utils-ClNpRN95.js";import"./sentry-CUdtSPei.js";import"./react-BYHuwl8r.js";import"./transaction-C8mfivVb.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-CHvw3dSr.js";import"./intl-CBcMB1D2.js";function Qn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Qt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Zt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:l,...h}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,p=Xt({abi:u,args:i,functionName:l});try{return await U(a,n,r)({data:`${p}${f?f.replace("0x",""):""}`,to:c,account:o,...h})}catch(m){throw te(m,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:l,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Zn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,l=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?i=!0:f=!0:h.type==="event"&&(l=!0),i&&f&&l)break;return u&&(i&&(c.read=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:m,...y})}}})),f&&(c.simulate=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:m,...y})}}})),l&&(c.createEventFilter=new Proxy({},{get(h,o){return(...p)=>{const m=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,m);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(h,o){return(...p)=>{const m=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,m);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(h,o){return(...p)=>{const m=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,m);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:m,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(h,o){return(...p)=>{const{args:m,options:y}=W(p);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:m,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Xn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=k(B(t.from));let a=k(t.nonce);return a[0]===0&&(a=new Uint8Array([])),B(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=k(B(t.from)),a=Me(Tt(t.salt)?t.salt:k(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:k(t.bytecodeHash):Y(t.bytecode,"bytes");return B(De(Y(ze([k("0xff"),e,a,n])),12))}function tr({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return ma(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new lt("Invalid RLP prefix")}function ma(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function la(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ha=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[ha]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),pa=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,l=this.h4|0,h=l;for(let o=0;o<5;o++){const p=4-o,m=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=pa[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+m,C[x])+l|0;n=l,l=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(p,u,c,f)+V[g[x]]+y,b[x])+h|0;r=h,h=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+h|0,this.h3+l+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function er(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?k(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let l=0;const{schedule:h}=ie({id:i,fn:async()=>{const m=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&l<d){if(b)return;b=!0,l++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else m.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of m.values())(v=S.onError)==null||v.call(S,new Q({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Q({url:s}));x()},onError(v){var P,S;w=v;for(const _ of m.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,l=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:m,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};m.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Qe(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:m,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[p]]=await h();return p}async function J(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-DDD_yqs5.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",l),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function l({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const p=JSON.parse(o);d(p)}catch(p){s(p)}}i.addEventListener("close",f),i.addEventListener("message",l),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,p)=>{i&&(i.onopen=o,i.onerror=p)});const{close:h}=i;return Object.assign(i,{close(){h.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Q({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Q({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await J(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function ar(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function nr(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=me(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Z({hash:le(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Z({hash:Ze({domain:e,message:a,primaryType:n,types:s}),signature:r})}function rr(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:H(s)}async function sr({address:t,hash:e,signature:a}){return ht(B(t),await Z({hash:e,signature:a}))}async function or({address:t,message:e,signature:a}){return ht(B(t),await Sa({message:e,signature:a}))}async function ir(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return ht(B(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new he({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):Ba(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,l,h,o,p]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:l,...e.length>9?{v:h,r:o,s:p}:{}},serializedTransaction:t,type:"eip7702"});const m={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(m.to=d),E(u)&&u!=="0x"&&(m.gas=A(u)),E(i)&&i!=="0x"&&(m.data=i),E(n)&&(m.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(m.value=A(c)),E(s)&&s!=="0x"&&(m.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(m.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(m.accessList=tt(f)),l.length!==0&&l!=="0x"&&(m.authorizationList=ka(l)),we(m),{...e.length===13?O(e):void 0,...m}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,l,h,o,p,m,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:l,data:h,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:m,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(h)&&h!=="0x"&&(I.data=h),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(l)&&l!=="0x"&&(I.value=A(l)),E(p)&&p!=="0x"&&(I.maxFeePerBlobGas=A(p)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,l,h,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:l,r:h,s:o}:{}},serializedTransaction:t,type:"eip1559"});const p={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(p.to=d),E(u)&&u!=="0x"&&(p.gas=A(u)),E(i)&&i!=="0x"&&(p.data=i),E(n)&&(p.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(p.value=A(c)),E(s)&&s!=="0x"&&(p.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(p.accessList=tt(f)),pe(p),{...e.length===12?O(e):void 0,...p}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,l,h]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:l,s:h}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function Ba(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const l={type:"legacy"};if(E(s)&&s!=="0x"&&(l.to=s),E(r)&&r!=="0x"&&(l.gas=A(r)),E(d)&&d!=="0x"&&(l.data=d),E(a)&&(l.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(l.value=A(u)),E(n)&&n!=="0x"&&(l.gasPrice=A(n)),xe(l),e.length===6)return l;const h=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return h>0&&(l.chainId=Number(h)),l;const o=h,p=Number((o-35n)/2n);if(p>0)l.chainId=p;else if(o!==27n&&o!==28n)throw new Ee({v:o});return l.v=o,l.s=f,l.r=i,l.yParity=o%2n===0n?1:0,l}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>la(s)?s:We(s))})}return e}function ka(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends lt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function cr(t,e="wei"){return Wt(t,Ie[e])}function ur(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ka(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ja(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:l,...h}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,m=(o||ft)({...St(h,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:l},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[m]})}async function Qa(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Za(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function mn(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function ln(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function hn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ka(a,n),revert:n=>Ja(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Qa(a,n),setBalance:n=>Za(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>mn(a,n),snapshot:()=>ln(a),stopImpersonatingAccount:n=>fn(a,n)}}}function dr(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...hn({mode:n})(s)}))}async function pn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,l]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=l}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>B(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Ke(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:l,maxPriorityFeePerGas:h,nonce:o,pollingInterval:p,throwOnReceiptRevert:m,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new lt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ft)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:l,maxPriorityFeePerGas:h,nonce:o,to:P,type:y,value:w},"sendTransaction"),pt=ot.get(t.uid),Kt=pt?"wallet_sendTransaction":"eth_sendTransaction",Jt=await(async()=>{try{return await t.request({method:Kt,params:[z]},{retryCount:0})}catch(yt){if(pt===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Jt,pollingInterval:p,timeout:C});if(m&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:l,maxPriorityFeePerGas:h,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:m})}throw(b==null?void 0:b.type)==="smart"?new K({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new K({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof K?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new K({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await Bt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Je(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,l,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ft;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(h=(l=t.chain)==null?void 0:l.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>pn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>Bt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function mr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function lr(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>mt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function fr(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...l})=>{let h=t,o=()=>{};const p=mt({key:a,name:n,async request({method:m,params:y}){let w;const g=async(C=0)=>{const b=h[C]({...l,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:m,params:y});return o({method:m,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:m,params:y,transport:b,status:"error"}),s(x)||C===h.length-1||(w??(w=h.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(m):v?!v.includes(m):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:m=>o=m,transports:h.map(m=>m({chain:c,retryCount:0}))});if(r){const m=typeof r=="object"?r:{};Un({chain:c,interval:m.interval??i,onTransports:y=>h=y,ping:m.ping,sampleCount:m.sampleCount,timeout:m.timeout,transports:h,weights:m.weights})}return p})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],l=async()=>{const h=await Promise.all(u.map(async m=>{const y=m({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(h),f.length>r&&f.shift();const o=Math.max(...f.map(m=>Math.max(...m.map(({latency:y})=>y)))),p=u.map((m,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((m,y)=>y[0]-m[0]);a(p.map(([,m])=>u[m])),await Ue(e),l()};l()}function hr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var m;const l=e.retryCount??i,h=f??e.timeout??1e4,o=t||((m=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:m[0]),p={keepAlive:a,reconnect:u};if(!o)throw new Be;return mt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await J(o,p),{error:b,result:x}=await C.requestAsync({body:g,timeout:h});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:l,retryDelay:d,timeout:h,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return J(o,p)},async subscribe({params:y,onData:w,onError:g}){const C=await J(o,p),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class pr extends Error{constructor(e,a){super(a),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=a}}const it="/docs/contract/decodeDeployData";function yr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function gr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const l=c.readByte();if(l===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(l)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function br(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(ke({commitment:s,to:n,version:a}));return r}const Bn=2147483648;function wr(t){if(t===1)return 60n;if(t>=Bn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function kn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function xr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return kn(t)}function Er({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function Ir(t){const{r:e,s:a}=kt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function Tr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Z({hash:Y(s),signature:r})}function Cr({r:t,yParityAndS:e}){return`0x${new kt.Signature(A(t),A(e)).toCompactHex()}`}function vr(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,_o as AbiDecodingDataSizeInvalidError,Ro as AbiDecodingDataSizeTooSmallError,qo as AbiDecodingZeroDataError,Fo as AbiEncodingArrayLengthMismatchError,Uo as AbiEncodingBytesSizeMismatchError,Bo as AbiEncodingLengthMismatchError,ko as AbiErrorInputsNotFoundError,No as AbiErrorNotFoundError,Lo as AbiErrorSignatureNotFoundError,Mo as AbiEventNotFoundError,Do as AbiEventSignatureEmptyTopicsError,zo as AbiEventSignatureNotFoundError,Go as AbiFunctionNotFoundError,$o as AbiFunctionOutputsNotFoundError,Ho as AbiFunctionSignatureNotFoundError,Pr as AccountStateConflictError,tc as AtomicReadyWalletRejectedUpgradeError,ec as AtomicityNotSupportedError,lt as BaseError,_r as BaseFeeScalarError,Rr as BlockNotFoundError,qr as BundleFailedError,ac as BundleTooLargeError,Oo as BytesSizeMismatchError,Fr as CallExecutionError,nc as ChainDisconnectedError,Ur as ChainDoesNotSupportContract,Br as ChainMismatchError,kr as ChainNotFoundError,Nr as CircularReferenceError,Lr as ClientChainNotConfiguredError,Mr as ContractFunctionExecutionError,Dr as ContractFunctionRevertedError,zr as ContractFunctionZeroDataError,Gr as CounterfactualDeploymentFailedError,jo as DecodeLogDataMismatch,Wo as DecodeLogTopicsMismatch,rc as DuplicateIdError,pr as EIP1193ProviderRpcError,$r as Eip1559FeesNotSupportedError,Hr as EnsAvatarInvalidNftUriError,Or as EnsAvatarUnsupportedNamespaceError,jr as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,Wr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Vr as FeeCapTooHighError,Kr as FeeCapTooLowError,Jr as FeeConflictError,Vo as FilterTypeNotSupportedError,sc as HttpRequestError,Yr as InsufficientFundsError,Ko as IntegerOutOfRangeError,oc as InternalRpcError,Qr as IntrinsicGasTooHighError,Zr as IntrinsicGasTooLowError,Jo as InvalidAbiDecodingTypeError,Yo as InvalidAbiEncodingTypeError,Xr as InvalidAbiItemError,Zt as InvalidAbiParameterError,ts as InvalidAbiParametersError,es as InvalidAbiTypeParameterError,je as InvalidAddressError,Qo as InvalidArrayError,Zo as InvalidBytesBooleanError,as as InvalidChainIdError,Na as InvalidDecimalNumberError,Xo as InvalidDefinitionTypeError,Vi as InvalidDomainError,ns as InvalidFunctionModifierError,ti as InvalidHexBooleanError,Ge as InvalidHexValueError,ic as InvalidInputRpcError,Ee as InvalidLegacyVError,rs as InvalidModifierError,ss as InvalidParameterError,cc as InvalidParamsRpcError,os as InvalidParenthesisError,Ki as InvalidPrimaryTypeError,uc as InvalidRequestRpcError,is as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,cs as InvalidSignatureError,us as InvalidStorageKeySizeError,ds as InvalidStructSignatureError,Ji as InvalidStructTypeError,dc as JsonRpcVersionUnsupportedError,mc as LimitExceededRpcError,ms as MaxFeePerGasTooLowError,lc as MethodNotFoundRpcError,fc as MethodNotSupportedRpcError,ls as NonceMaxValueError,fs as NonceTooHighError,hs as NonceTooLowError,hc as ParseRpcError,pc as ProviderDisconnectedError,yc as ProviderRpcError,ps as RawContractError,gc as ResourceNotFoundRpcError,bc as ResourceUnavailableRpcError,wc as RpcError,sa as RpcRequestError,ei as SizeExceedsPaddingSizeError,ai as SizeOverflowError,ni as SliceOffsetOutOfBoundsError,Q as SocketClosedError,ys as SolidityProtectedKeywordError,gs as StateAssignmentConflictError,xc as SwitchChainError,aa as TimeoutError,bs as TipAboveFeeCapError,ws as TransactionExecutionError,xs as TransactionNotFoundError,Es as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,Is as TransactionTypeNotSupportedError,Ec as UnauthorizedProviderError,Ic as UnknownBundleIdError,Ts as UnknownNodeError,Tc as UnknownRpcError,Cs as UnknownSignatureError,vs as UnknownTypeError,Cc as UnsupportedChainIdError,vc as UnsupportedNonOptionalCapabilityError,ri as UnsupportedPackedAbiType,Sc as UnsupportedProviderMethodError,Be as UrlRequiredError,ra as UserRejectedRequestError,Ss as WaitForCallsStatusTimeoutError,As as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,Ps as blobsToCommitments,_s as blobsToProofs,si as boolToBytes,oi as boolToHex,ii as bytesToBigInt,ci as bytesToBool,G as bytesToHex,ui as bytesToNumber,Pc as bytesToRlp,di as bytesToString,Td as ccipFetch,Cd as ccipRequest,Ve as checksumAddress,ke as commitmentToVersionedHash,Rs as commitmentsToVersionedHashes,Cr as compactSignatureToHex,Er as compactSignatureToSignature,ze as concat,mi as concatBytes,li as concatHex,At as createClient,qs as createNonceManager,Fs as createPublicClient,dr as createTestClient,mt as createTransport,mr as createWalletClient,lr as custom,Mt as decodeAbiParameters,yr as decodeDeployData,Ni as decodeErrorResult,xd as decodeEventLog,Us as decodeFunctionData,Bs as decodeFunctionResult,Li as defineBlock,Mi as defineChain,kn as defineKzg,Di as defineTransaction,_d as defineTransactionReceipt,zi as defineTransactionRequest,ks as deploylessCallViaBytecodeBytecode,Ns as deploylessCallViaFactoryBytecode,Yi as domainSeparator,fi as encodeAbiParameters,Ce as encodeDeployData,Ls as encodeErrorResult,hi as encodeEventTopics,Xt as encodeFunctionData,Ms as encodeFunctionResult,Ds as encodePacked,zs as erc1155Abi,Gs as erc20Abi,$s as erc20Abi_bytes32,Hs as erc4626Abi,Os as erc6492SignatureValidatorAbi,js as erc6492SignatureValidatorByteCode,Ws as erc721Abi,Vs as ethAddress,Ie as etherUnits,tr as extractChain,fr as fallback,Gi as formatBlock,Ks as formatEther,Js as formatGwei,Rd as formatLog,$i as formatTransaction,qd as formatTransactionReceipt,ft as formatTransactionRequest,Ys as formatUnits,gr as fromBlobs,pi as fromBytes,yi as fromHex,Dt as fromRlp,gi as getAbiItem,B as getAddress,Qs as getChainContractAddress,Zn as getContract,Xn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,bi as getEventSelector,wi as getEventSignature,xi as getFunctionSelector,Ei as getFunctionSignature,Pa as getSerializedTransactionType,Zs as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Qi as hashDomain,le as hashMessage,Zi as hashStruct,Ze as hashTypedData,A as hexToBigInt,Ii as hexToBool,H as hexToBytes,Ir as hexToCompactSignature,F as hexToNumber,_c as hexToRlp,Xs as hexToSignature,Ti as hexToString,to as http,Oe as isAddress,ht as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,la as isHash,E as isHex,Y as keccak256,eo as labelhash,Rc as maxInt104,qc as maxInt112,Fc as maxInt120,Uc as maxInt128,Bc as maxInt136,kc as maxInt144,Nc as maxInt152,Lc as maxInt16,Mc as maxInt160,Dc as maxInt168,zc as maxInt176,Gc as maxInt184,$c as maxInt192,Hc as maxInt200,Oc as maxInt208,jc as maxInt216,Wc as maxInt224,Vc as maxInt232,Kc as maxInt24,Jc as maxInt240,Yc as maxInt248,Qc as maxInt256,Zc as maxInt32,Xc as maxInt40,tu as maxInt48,eu as maxInt56,au as maxInt64,nu as maxInt72,ru as maxInt8,su as maxInt80,ou as maxInt88,iu as maxInt96,cu as maxUint104,uu as maxUint112,du as maxUint120,mu as maxUint128,lu as maxUint136,fu as maxUint144,hu as maxUint152,pu as maxUint16,yu as maxUint160,gu as maxUint168,bu as maxUint176,wu as maxUint184,xu as maxUint192,Eu as maxUint200,Iu as maxUint208,Tu as maxUint216,Cu as maxUint224,vu as maxUint232,Su as maxUint24,Au as maxUint240,Pu as maxUint248,_u as maxUint256,Ru as maxUint32,qu as maxUint40,Fu as maxUint48,Uu as maxUint56,Bu as maxUint64,ku as maxUint72,Nu as maxUint8,Lu as maxUint80,Mu as maxUint88,Du as maxUint96,zu as minInt104,Gu as minInt112,$u as minInt120,Hu as minInt128,Ou as minInt136,ju as minInt144,Wu as minInt152,Vu as minInt16,Ku as minInt160,Ju as minInt168,Yu as minInt176,Qu as minInt184,Zu as minInt192,Xu as minInt200,td as minInt208,ed as minInt216,ad as minInt224,nd as minInt232,rd as minInt24,sd as minInt240,od as minInt248,id as minInt256,cd as minInt32,ud as minInt40,dd as minInt48,md as minInt56,ld as minInt64,fd as minInt72,hd as minInt8,pd as minInt80,yd as minInt88,gd as minInt96,ao as multicall3Abi,no as namehash,ro as nonceManager,Ci as numberToBytes,R as numberToHex,vd as offchainLookup,Sd as offchainLookupAbiItem,Ad as offchainLookupSignature,Me as pad,vi as padBytes,xt as padHex,so as parseAbi,oo as parseAbiItem,Qn as parseAbiParameter,io as parseAbiParameters,Ir as parseCompactSignature,ar as parseErc6492Signature,nr as parseErc8010Signature,cr as parseEther,Ed as parseEventLogs,ur as parseGwei,co as parseSignature,_a as parseTransaction,Wt as parseUnits,uo as prepareEncodeFunctionData,mo as presignMessagePrefix,lo as publicActions,Z as recoverAddress,Sa as recoverMessageAddress,fo as recoverPublicKey,Tr as recoverTransactionAddress,Aa as recoverTypedDataAddress,er as ripemd160,ho as rpcSchema,Hi as rpcTransactionType,po as serializeAccessList,Cr as serializeCompactSignature,yo as serializeErc6492Signature,rr as serializeErc8010Signature,go as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Si as setErrorConfig,xr as setupKzg,bd as sha256,Fn as shouldThrow,br as sidecarsToVersionedHashes,vr as signatureToCompactSignature,bo as signatureToHex,$e as size,De as slice,Ai as sliceBytes,Lt as sliceHex,Pi as stringToBytes,Je as stringToHex,Oi as stringify,hn as testActions,ge as toBlobSidecars,wo as toBlobs,k as toBytes,wr as toCoinType,_i as toEventHash,Ri as toEventSelector,qi as toEventSignature,Fi as toFunctionHash,Ui as toFunctionSelector,Bi as toFunctionSignature,Nt as toHex,xo as toPrefixedMessage,ia as toRlp,ji as transactionType,We as trim,Eo as universalSignatureValidatorAbi,Io as universalSignatureValidatorByteCode,ta as validateTypedData,sr as verifyHash,or as verifyMessage,ir as verifyTypedData,qn as walletActions,hr as webSocket,To as weiUnits,Co as withCache,vo as withRetry,Qe as withTimeout,So as zeroAddress,Ao as zeroHash};
@@ -1,4 +1,4 @@
1
- import{p as X}from"./sentry-1ai9esXb.js";import{r as Zr,a as Qr,b as it,c as at,d as ft,e as st,f as ot,g as ut}from"./index-BX3lLNL7.js";import{c as Xr,d as nr}from"./ethers-BKEzvwKN.js";import{c as Tr}from"./react-BYHuwl8r.js";var or={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Fr;function rr(){return Fr||(Fr=1,(function(e,x){var w=Xr(),h=w.Buffer;function g(l,y){for(var f in l)y[f]=l[f]}h.from&&h.alloc&&h.allocUnsafe&&h.allocUnsafeSlow?e.exports=w:(g(w,x),x.Buffer=s);function s(l,y,f){return h(l,y,f)}s.prototype=Object.create(h.prototype),g(h,s),s.from=function(l,y,f){if(typeof l=="number")throw new TypeError("Argument must not be a number");return h(l,y,f)},s.alloc=function(l,y,f){if(typeof l!="number")throw new TypeError("Argument must be a number");var p=h(l);return y!==void 0?typeof f=="string"?p.fill(y,f):p.fill(y):p.fill(0),p},s.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return h(l)},s.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return w.SlowBuffer(l)}})(or,or.exports)),or.exports}var hr,jr;function rt(){if(jr)return hr;jr=1;var e=Zr();return hr=function(w){return!!e(w)},hr}var lr,kr;function ct(){if(kr)return lr;kr=1;var e=it(),x=Qr(),w=x("TypedArray.prototype.buffer",!0),h=rt();return lr=w||function(s){if(!h(s))throw new e("Not a Typed Array");return s.buffer},lr}var dr,Dr;function ht(){if(Dr)return dr;Dr=1;var e=rr().Buffer,x=at(),w=ct(),h=ArrayBuffer.isView||function(f){try{return w(f),!0}catch{return!1}},g=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",l=s&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return dr=function(f,p){if(e.isBuffer(f))return f.constructor&&!("isBuffer"in f)?e.from(f):f;if(typeof f=="string")return e.from(f,p);if(s&&h(f)){if(f.byteLength===0)return e.alloc(0);if(l){var b=e.from(f.buffer,f.byteOffset,f.byteLength);if(b.byteLength===f.byteLength)return b}var B=f instanceof Uint8Array?f:new Uint8Array(f.buffer,f.byteOffset,f.byteLength),u=e.from(B);if(u.length===f.byteLength)return u}if(g&&f instanceof Uint8Array)return e.from(f);var S=x(f);if(S)for(var v=0;v<f.length;v+=1){var d=f[v];if(typeof d!="number"||d<0||d>255||~~d!==d)throw new RangeError("Array items must be numbers in the range 0-255.")}if(S||e.isBuffer(f)&&f.constructor&&typeof f.constructor.isBuffer=="function"&&f.constructor.isBuffer(f))return e.from(f);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},dr}var yr={},pr={},br,Ur;function lt(){if(Ur)return br;Ur=1;const e=(function*(){}).constructor;return br=()=>e,br}var _r,Nr;function dt(){if(Nr)return _r;Nr=1;var e=Qr(),x=ot(),w=x(/^\s*(?:function)?\*/),h=ft()(),g=st(),s=e("Object.prototype.toString"),l=e("Function.prototype.toString"),y=lt();return _r=function(p){if(typeof p!="function")return!1;if(w(l(p)))return!0;if(!h){var b=s(p);return b==="[object GeneratorFunction]"}if(!g)return!1;var B=y();return B&&g(p)===B.prototype},_r}var qr;function yt(){return qr||(qr=1,(function(e){var x=ut(),w=dt(),h=Zr(),g=rt();function s(i){return i.call.bind(i)}var l=typeof BigInt<"u",y=typeof Symbol<"u",f=s(Object.prototype.toString),p=s(Number.prototype.valueOf),b=s(String.prototype.valueOf),B=s(Boolean.prototype.valueOf);if(l)var u=s(BigInt.prototype.valueOf);if(y)var S=s(Symbol.prototype.valueOf);function v(i,sr){if(typeof i!="object")return!1;try{return sr(i),!0}catch{return!1}}e.isArgumentsObject=x,e.isGeneratorFunction=w,e.isTypedArray=g;function d(i){return typeof Promise<"u"&&i instanceof Promise||i!==null&&typeof i=="object"&&typeof i.then=="function"&&typeof i.catch=="function"}e.isPromise=d;function o(i){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(i):g(i)||t(i)}e.isArrayBufferView=o;function r(i){return h(i)==="Uint8Array"}e.isUint8Array=r;function c(i){return h(i)==="Uint8ClampedArray"}e.isUint8ClampedArray=c;function _(i){return h(i)==="Uint16Array"}e.isUint16Array=_;function F(i){return h(i)==="Uint32Array"}e.isUint32Array=F;function I(i){return h(i)==="Int8Array"}e.isInt8Array=I;function j(i){return h(i)==="Int16Array"}e.isInt16Array=j;function H(i){return h(i)==="Int32Array"}e.isInt32Array=H;function N(i){return h(i)==="Float32Array"}e.isFloat32Array=N;function D(i){return h(i)==="Float64Array"}e.isFloat64Array=D;function R(i){return h(i)==="BigInt64Array"}e.isBigInt64Array=R;function V(i){return h(i)==="BigUint64Array"}e.isBigUint64Array=V;function q(i){return f(i)==="[object Map]"}q.working=typeof Map<"u"&&q(new Map);function P(i){return typeof Map>"u"?!1:q.working?q(i):i instanceof Map}e.isMap=P;function $(i){return f(i)==="[object Set]"}$.working=typeof Set<"u"&&$(new Set);function L(i){return typeof Set>"u"?!1:$.working?$(i):i instanceof Set}e.isSet=L;function M(i){return f(i)==="[object WeakMap]"}M.working=typeof WeakMap<"u"&&M(new WeakMap);function k(i){return typeof WeakMap>"u"?!1:M.working?M(i):i instanceof WeakMap}e.isWeakMap=k;function W(i){return f(i)==="[object WeakSet]"}W.working=typeof WeakSet<"u"&&W(new WeakSet);function J(i){return W(i)}e.isWeakSet=J;function z(i){return f(i)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function tr(i){return typeof ArrayBuffer>"u"?!1:z.working?z(i):i instanceof ArrayBuffer}e.isArrayBuffer=tr;function Y(i){return f(i)==="[object DataView]"}Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1));function t(i){return typeof DataView>"u"?!1:Y.working?Y(i):i instanceof DataView}e.isDataView=t;var n=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function a(i){return f(i)==="[object SharedArrayBuffer]"}function E(i){return typeof n>"u"?!1:(typeof a.working>"u"&&(a.working=a(new n)),a.working?a(i):i instanceof n)}e.isSharedArrayBuffer=E;function O(i){return f(i)==="[object AsyncFunction]"}e.isAsyncFunction=O;function A(i){return f(i)==="[object Map Iterator]"}e.isMapIterator=A;function m(i){return f(i)==="[object Set Iterator]"}e.isSetIterator=m;function C(i){return f(i)==="[object Generator]"}e.isGeneratorObject=C;function T(i){return f(i)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=T;function U(i){return v(i,p)}e.isNumberObject=U;function K(i){return v(i,b)}e.isStringObject=K;function er(i){return v(i,B)}e.isBooleanObject=er;function Z(i){return l&&v(i,u)}e.isBigIntObject=Z;function ir(i){return y&&v(i,S)}e.isSymbolObject=ir;function cr(i){return U(i)||K(i)||er(i)||Z(i)||ir(i)}e.isBoxedPrimitive=cr;function fr(i){return typeof Uint8Array<"u"&&(tr(i)||E(i))}e.isAnyArrayBuffer=fr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(i){Object.defineProperty(e,i,{enumerable:!1,value:function(){throw new Error(i+" is not supported in userland")}})})})(pr)),pr}var vr,Pr;function pt(){return Pr||(Pr=1,vr=function(x){return x&&typeof x=="object"&&typeof x.copy=="function"&&typeof x.fill=="function"&&typeof x.readUInt8=="function"}),vr}var Rr;function St(){return Rr||(Rr=1,(function(e){var x={},w=Object.getOwnPropertyDescriptors||function(n){for(var a=Object.keys(n),E={},O=0;O<a.length;O++)E[a[O]]=Object.getOwnPropertyDescriptor(n,a[O]);return E},h=/%[sdj%]/g;e.format=function(t){if(!j(t)){for(var n=[],a=0;a<arguments.length;a++)n.push(y(arguments[a]));return n.join(" ")}for(var a=1,E=arguments,O=E.length,A=String(t).replace(h,function(C){if(C==="%%")return"%";if(a>=O)return C;switch(C){case"%s":return String(E[a++]);case"%d":return Number(E[a++]);case"%j":try{return JSON.stringify(E[a++])}catch{return"[Circular]"}default:return C}}),m=E[a];a<O;m=E[++a])_(m)||!R(m)?A+=" "+m:A+=" "+y(m);return A},e.deprecate=function(t,n){if(typeof X<"u"&&X.noDeprecation===!0)return t;if(typeof X>"u")return function(){return e.deprecate(t,n).apply(this,arguments)};var a=!1;function E(){if(!a){if(X.throwDeprecation)throw new Error(n);X.traceDeprecation?console.trace(n):console.error(n),a=!0}return t.apply(this,arguments)}return E};var g={},s=/^$/;if(x.NODE_DEBUG){var l=x.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+l+"$","i")}e.debuglog=function(t){if(t=t.toUpperCase(),!g[t])if(s.test(t)){var n=X.pid;g[t]=function(){var a=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,a)}}else g[t]=function(){};return g[t]};function y(t,n){var a={seen:[],stylize:p};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),c(n)?a.showHidden=n:n&&e._extend(a,n),N(a.showHidden)&&(a.showHidden=!1),N(a.depth)&&(a.depth=2),N(a.colors)&&(a.colors=!1),N(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=f),B(a,t,a.depth)}e.inspect=y,y.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(t,n){var a=y.styles[n];return a?"\x1B["+y.colors[a][0]+"m"+t+"\x1B["+y.colors[a][1]+"m":t}function p(t,n){return t}function b(t){var n={};return t.forEach(function(a,E){n[a]=!0}),n}function B(t,n,a){if(t.customInspect&&n&&P(n.inspect)&&n.inspect!==e.inspect&&!(n.constructor&&n.constructor.prototype===n)){var E=n.inspect(a,t);return j(E)||(E=B(t,E,a)),E}var O=u(t,n);if(O)return O;var A=Object.keys(n),m=b(A);if(t.showHidden&&(A=Object.getOwnPropertyNames(n)),q(n)&&(A.indexOf("message")>=0||A.indexOf("description")>=0))return S(n);if(A.length===0){if(P(n)){var C=n.name?": "+n.name:"";return t.stylize("[Function"+C+"]","special")}if(D(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(V(n))return t.stylize(Date.prototype.toString.call(n),"date");if(q(n))return S(n)}var T="",U=!1,K=["{","}"];if(r(n)&&(U=!0,K=["[","]"]),P(n)){var er=n.name?": "+n.name:"";T=" [Function"+er+"]"}if(D(n)&&(T=" "+RegExp.prototype.toString.call(n)),V(n)&&(T=" "+Date.prototype.toUTCString.call(n)),q(n)&&(T=" "+S(n)),A.length===0&&(!U||n.length==0))return K[0]+T+K[1];if(a<0)return D(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var Z;return U?Z=v(t,n,a,m,A):Z=A.map(function(ir){return d(t,n,a,m,ir,U)}),t.seen.pop(),o(Z,T,K)}function u(t,n){if(N(n))return t.stylize("undefined","undefined");if(j(n)){var a="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(a,"string")}if(I(n))return t.stylize(""+n,"number");if(c(n))return t.stylize(""+n,"boolean");if(_(n))return t.stylize("null","null")}function S(t){return"["+Error.prototype.toString.call(t)+"]"}function v(t,n,a,E,O){for(var A=[],m=0,C=n.length;m<C;++m)J(n,String(m))?A.push(d(t,n,a,E,String(m),!0)):A.push("");return O.forEach(function(T){T.match(/^\d+$/)||A.push(d(t,n,a,E,T,!0))}),A}function d(t,n,a,E,O,A){var m,C,T;if(T=Object.getOwnPropertyDescriptor(n,O)||{value:n[O]},T.get?T.set?C=t.stylize("[Getter/Setter]","special"):C=t.stylize("[Getter]","special"):T.set&&(C=t.stylize("[Setter]","special")),J(E,O)||(m="["+O+"]"),C||(t.seen.indexOf(T.value)<0?(_(a)?C=B(t,T.value,null):C=B(t,T.value,a-1),C.indexOf(`
1
+ import{p as X}from"./sentry-CUdtSPei.js";import{r as Zr,a as Qr,b as it,c as at,d as ft,e as st,f as ot,g as ut}from"./index-BX3lLNL7.js";import{c as Xr,d as nr}from"./ethers-CHvw3dSr.js";import{c as Tr}from"./react-BYHuwl8r.js";var or={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Fr;function rr(){return Fr||(Fr=1,(function(e,x){var w=Xr(),h=w.Buffer;function g(l,y){for(var f in l)y[f]=l[f]}h.from&&h.alloc&&h.allocUnsafe&&h.allocUnsafeSlow?e.exports=w:(g(w,x),x.Buffer=s);function s(l,y,f){return h(l,y,f)}s.prototype=Object.create(h.prototype),g(h,s),s.from=function(l,y,f){if(typeof l=="number")throw new TypeError("Argument must not be a number");return h(l,y,f)},s.alloc=function(l,y,f){if(typeof l!="number")throw new TypeError("Argument must be a number");var p=h(l);return y!==void 0?typeof f=="string"?p.fill(y,f):p.fill(y):p.fill(0),p},s.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return h(l)},s.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return w.SlowBuffer(l)}})(or,or.exports)),or.exports}var hr,jr;function rt(){if(jr)return hr;jr=1;var e=Zr();return hr=function(w){return!!e(w)},hr}var lr,kr;function ct(){if(kr)return lr;kr=1;var e=it(),x=Qr(),w=x("TypedArray.prototype.buffer",!0),h=rt();return lr=w||function(s){if(!h(s))throw new e("Not a Typed Array");return s.buffer},lr}var dr,Dr;function ht(){if(Dr)return dr;Dr=1;var e=rr().Buffer,x=at(),w=ct(),h=ArrayBuffer.isView||function(f){try{return w(f),!0}catch{return!1}},g=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",l=s&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return dr=function(f,p){if(e.isBuffer(f))return f.constructor&&!("isBuffer"in f)?e.from(f):f;if(typeof f=="string")return e.from(f,p);if(s&&h(f)){if(f.byteLength===0)return e.alloc(0);if(l){var b=e.from(f.buffer,f.byteOffset,f.byteLength);if(b.byteLength===f.byteLength)return b}var B=f instanceof Uint8Array?f:new Uint8Array(f.buffer,f.byteOffset,f.byteLength),u=e.from(B);if(u.length===f.byteLength)return u}if(g&&f instanceof Uint8Array)return e.from(f);var S=x(f);if(S)for(var v=0;v<f.length;v+=1){var d=f[v];if(typeof d!="number"||d<0||d>255||~~d!==d)throw new RangeError("Array items must be numbers in the range 0-255.")}if(S||e.isBuffer(f)&&f.constructor&&typeof f.constructor.isBuffer=="function"&&f.constructor.isBuffer(f))return e.from(f);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},dr}var yr={},pr={},br,Ur;function lt(){if(Ur)return br;Ur=1;const e=(function*(){}).constructor;return br=()=>e,br}var _r,Nr;function dt(){if(Nr)return _r;Nr=1;var e=Qr(),x=ot(),w=x(/^\s*(?:function)?\*/),h=ft()(),g=st(),s=e("Object.prototype.toString"),l=e("Function.prototype.toString"),y=lt();return _r=function(p){if(typeof p!="function")return!1;if(w(l(p)))return!0;if(!h){var b=s(p);return b==="[object GeneratorFunction]"}if(!g)return!1;var B=y();return B&&g(p)===B.prototype},_r}var qr;function yt(){return qr||(qr=1,(function(e){var x=ut(),w=dt(),h=Zr(),g=rt();function s(i){return i.call.bind(i)}var l=typeof BigInt<"u",y=typeof Symbol<"u",f=s(Object.prototype.toString),p=s(Number.prototype.valueOf),b=s(String.prototype.valueOf),B=s(Boolean.prototype.valueOf);if(l)var u=s(BigInt.prototype.valueOf);if(y)var S=s(Symbol.prototype.valueOf);function v(i,sr){if(typeof i!="object")return!1;try{return sr(i),!0}catch{return!1}}e.isArgumentsObject=x,e.isGeneratorFunction=w,e.isTypedArray=g;function d(i){return typeof Promise<"u"&&i instanceof Promise||i!==null&&typeof i=="object"&&typeof i.then=="function"&&typeof i.catch=="function"}e.isPromise=d;function o(i){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(i):g(i)||t(i)}e.isArrayBufferView=o;function r(i){return h(i)==="Uint8Array"}e.isUint8Array=r;function c(i){return h(i)==="Uint8ClampedArray"}e.isUint8ClampedArray=c;function _(i){return h(i)==="Uint16Array"}e.isUint16Array=_;function F(i){return h(i)==="Uint32Array"}e.isUint32Array=F;function I(i){return h(i)==="Int8Array"}e.isInt8Array=I;function j(i){return h(i)==="Int16Array"}e.isInt16Array=j;function H(i){return h(i)==="Int32Array"}e.isInt32Array=H;function N(i){return h(i)==="Float32Array"}e.isFloat32Array=N;function D(i){return h(i)==="Float64Array"}e.isFloat64Array=D;function R(i){return h(i)==="BigInt64Array"}e.isBigInt64Array=R;function V(i){return h(i)==="BigUint64Array"}e.isBigUint64Array=V;function q(i){return f(i)==="[object Map]"}q.working=typeof Map<"u"&&q(new Map);function P(i){return typeof Map>"u"?!1:q.working?q(i):i instanceof Map}e.isMap=P;function $(i){return f(i)==="[object Set]"}$.working=typeof Set<"u"&&$(new Set);function L(i){return typeof Set>"u"?!1:$.working?$(i):i instanceof Set}e.isSet=L;function M(i){return f(i)==="[object WeakMap]"}M.working=typeof WeakMap<"u"&&M(new WeakMap);function k(i){return typeof WeakMap>"u"?!1:M.working?M(i):i instanceof WeakMap}e.isWeakMap=k;function W(i){return f(i)==="[object WeakSet]"}W.working=typeof WeakSet<"u"&&W(new WeakSet);function J(i){return W(i)}e.isWeakSet=J;function z(i){return f(i)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function tr(i){return typeof ArrayBuffer>"u"?!1:z.working?z(i):i instanceof ArrayBuffer}e.isArrayBuffer=tr;function Y(i){return f(i)==="[object DataView]"}Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1));function t(i){return typeof DataView>"u"?!1:Y.working?Y(i):i instanceof DataView}e.isDataView=t;var n=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function a(i){return f(i)==="[object SharedArrayBuffer]"}function E(i){return typeof n>"u"?!1:(typeof a.working>"u"&&(a.working=a(new n)),a.working?a(i):i instanceof n)}e.isSharedArrayBuffer=E;function O(i){return f(i)==="[object AsyncFunction]"}e.isAsyncFunction=O;function A(i){return f(i)==="[object Map Iterator]"}e.isMapIterator=A;function m(i){return f(i)==="[object Set Iterator]"}e.isSetIterator=m;function C(i){return f(i)==="[object Generator]"}e.isGeneratorObject=C;function T(i){return f(i)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=T;function U(i){return v(i,p)}e.isNumberObject=U;function K(i){return v(i,b)}e.isStringObject=K;function er(i){return v(i,B)}e.isBooleanObject=er;function Z(i){return l&&v(i,u)}e.isBigIntObject=Z;function ir(i){return y&&v(i,S)}e.isSymbolObject=ir;function cr(i){return U(i)||K(i)||er(i)||Z(i)||ir(i)}e.isBoxedPrimitive=cr;function fr(i){return typeof Uint8Array<"u"&&(tr(i)||E(i))}e.isAnyArrayBuffer=fr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(i){Object.defineProperty(e,i,{enumerable:!1,value:function(){throw new Error(i+" is not supported in userland")}})})})(pr)),pr}var vr,Pr;function pt(){return Pr||(Pr=1,vr=function(x){return x&&typeof x=="object"&&typeof x.copy=="function"&&typeof x.fill=="function"&&typeof x.readUInt8=="function"}),vr}var Rr;function St(){return Rr||(Rr=1,(function(e){var x={},w=Object.getOwnPropertyDescriptors||function(n){for(var a=Object.keys(n),E={},O=0;O<a.length;O++)E[a[O]]=Object.getOwnPropertyDescriptor(n,a[O]);return E},h=/%[sdj%]/g;e.format=function(t){if(!j(t)){for(var n=[],a=0;a<arguments.length;a++)n.push(y(arguments[a]));return n.join(" ")}for(var a=1,E=arguments,O=E.length,A=String(t).replace(h,function(C){if(C==="%%")return"%";if(a>=O)return C;switch(C){case"%s":return String(E[a++]);case"%d":return Number(E[a++]);case"%j":try{return JSON.stringify(E[a++])}catch{return"[Circular]"}default:return C}}),m=E[a];a<O;m=E[++a])_(m)||!R(m)?A+=" "+m:A+=" "+y(m);return A},e.deprecate=function(t,n){if(typeof X<"u"&&X.noDeprecation===!0)return t;if(typeof X>"u")return function(){return e.deprecate(t,n).apply(this,arguments)};var a=!1;function E(){if(!a){if(X.throwDeprecation)throw new Error(n);X.traceDeprecation?console.trace(n):console.error(n),a=!0}return t.apply(this,arguments)}return E};var g={},s=/^$/;if(x.NODE_DEBUG){var l=x.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+l+"$","i")}e.debuglog=function(t){if(t=t.toUpperCase(),!g[t])if(s.test(t)){var n=X.pid;g[t]=function(){var a=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,a)}}else g[t]=function(){};return g[t]};function y(t,n){var a={seen:[],stylize:p};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),c(n)?a.showHidden=n:n&&e._extend(a,n),N(a.showHidden)&&(a.showHidden=!1),N(a.depth)&&(a.depth=2),N(a.colors)&&(a.colors=!1),N(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=f),B(a,t,a.depth)}e.inspect=y,y.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(t,n){var a=y.styles[n];return a?"\x1B["+y.colors[a][0]+"m"+t+"\x1B["+y.colors[a][1]+"m":t}function p(t,n){return t}function b(t){var n={};return t.forEach(function(a,E){n[a]=!0}),n}function B(t,n,a){if(t.customInspect&&n&&P(n.inspect)&&n.inspect!==e.inspect&&!(n.constructor&&n.constructor.prototype===n)){var E=n.inspect(a,t);return j(E)||(E=B(t,E,a)),E}var O=u(t,n);if(O)return O;var A=Object.keys(n),m=b(A);if(t.showHidden&&(A=Object.getOwnPropertyNames(n)),q(n)&&(A.indexOf("message")>=0||A.indexOf("description")>=0))return S(n);if(A.length===0){if(P(n)){var C=n.name?": "+n.name:"";return t.stylize("[Function"+C+"]","special")}if(D(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(V(n))return t.stylize(Date.prototype.toString.call(n),"date");if(q(n))return S(n)}var T="",U=!1,K=["{","}"];if(r(n)&&(U=!0,K=["[","]"]),P(n)){var er=n.name?": "+n.name:"";T=" [Function"+er+"]"}if(D(n)&&(T=" "+RegExp.prototype.toString.call(n)),V(n)&&(T=" "+Date.prototype.toUTCString.call(n)),q(n)&&(T=" "+S(n)),A.length===0&&(!U||n.length==0))return K[0]+T+K[1];if(a<0)return D(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var Z;return U?Z=v(t,n,a,m,A):Z=A.map(function(ir){return d(t,n,a,m,ir,U)}),t.seen.pop(),o(Z,T,K)}function u(t,n){if(N(n))return t.stylize("undefined","undefined");if(j(n)){var a="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(a,"string")}if(I(n))return t.stylize(""+n,"number");if(c(n))return t.stylize(""+n,"boolean");if(_(n))return t.stylize("null","null")}function S(t){return"["+Error.prototype.toString.call(t)+"]"}function v(t,n,a,E,O){for(var A=[],m=0,C=n.length;m<C;++m)J(n,String(m))?A.push(d(t,n,a,E,String(m),!0)):A.push("");return O.forEach(function(T){T.match(/^\d+$/)||A.push(d(t,n,a,E,T,!0))}),A}function d(t,n,a,E,O,A){var m,C,T;if(T=Object.getOwnPropertyDescriptor(n,O)||{value:n[O]},T.get?T.set?C=t.stylize("[Getter/Setter]","special"):C=t.stylize("[Getter]","special"):T.set&&(C=t.stylize("[Setter]","special")),J(E,O)||(m="["+O+"]"),C||(t.seen.indexOf(T.value)<0?(_(a)?C=B(t,T.value,null):C=B(t,T.value,a-1),C.indexOf(`
2
2
  `)>-1&&(A?C=C.split(`
3
3
  `).map(function(U){return" "+U}).join(`
4
4
  `).slice(2):C=`
@@ -1,4 +1,4 @@
1
- import{w as f,i as w,b as l}from"./lit-element-B3y9oplH.js";import{n as o,o as y}from"./class-map-CxwNmq0D.js";import{c as v,U as $}from"./index-BfOmf_Cp.js";import"./index-BMx0J1W7.js";import{d as b,r as x,e as z}from"./index-BoAHsqWZ.js";import"./index-D5hR2snR.js";const S=f`<svg width="86" height="96" fill="none">
1
+ import{w as f,i as w,b as l}from"./lit-element-B3y9oplH.js";import{n as o,o as y}from"./class-map-CxwNmq0D.js";import{c as v,U as $}from"./index-CI91n7ZK.js";import"./index-BhcJRwSw.js";import{d as b,r as x,e as z}from"./index-DbCIRxku.js";import"./index-UKBE5ufT.js";const S=f`<svg width="86" height="96" fill="none">
2
2
  <path
3
3
  d="M78.3244 18.926L50.1808 2.45078C45.7376 -0.150261 40.2624 -0.150262 35.8192 2.45078L7.6756 18.926C3.23322 21.5266 0.5 26.3301 0.5 31.5248V64.4752C0.5 69.6699 3.23322 74.4734 7.6756 77.074L35.8192 93.5492C40.2624 96.1503 45.7376 96.1503 50.1808 93.5492L78.3244 77.074C82.7668 74.4734 85.5 69.6699 85.5 64.4752V31.5248C85.5 26.3301 82.7668 21.5266 78.3244 18.926Z"
4
4
  />