@dcl/shop 0.8.0 → 0.8.1-31010487922.commit-7e8c168

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 (235) hide show
  1. package/_assets/{Activity-BpEWDEgt.js → Activity-D0ke7CND.js} +3 -3
  2. package/_assets/{AnimatedBackground-whCeMUgc.js → AnimatedBackground-ECFAiLHT.js} +1 -1
  3. package/_assets/Assets-BF1jmHXH.js +801 -0
  4. package/_assets/{Assets.styles-DuSEfvzx.js → Assets.styles-oV1FeEer.js} +2 -2
  5. package/_assets/{Authorizations-DTC0viZ7.js → Authorizations-Cc50JSP-.js} +3 -3
  6. package/_assets/{Cart-Ccdz2uXK.js → Cart-D4Ru3hhk.js} +3 -3
  7. package/_assets/{CircularProgress-BkDrovgn.js → CircularProgress-DqnGiMZe.js} +3 -3
  8. package/_assets/{Collection-LGp9HIwD.js → Collection-YEjRwps6.js} +10 -10
  9. package/_assets/{CollectionCarousel-CnR1So5p.js → CollectionCarousel-BeRnGCYD.js} +32 -32
  10. package/_assets/{ConstantsUtil-Di3dRDAF.js → ConstantsUtil-BkhvNc68.js} +1 -1
  11. package/_assets/{ContentClient-CRr9ZuRH.js → ContentClient-CGWTGqN4.js} +1 -1
  12. package/_assets/Creator-D__6ZkY9.js +306 -0
  13. package/_assets/{DeploymentBuilder-DYNbIRzZ.js → DeploymentBuilder-CFls_09j.js} +1 -1
  14. package/_assets/{ErrorNotice-BXWX_0E4.js → ErrorNotice-Q_ppMazV.js} +1 -1
  15. package/_assets/{ExchangeController-C_NxeYpZ.js → ExchangeController-qVRplriS.js} +1 -1
  16. package/_assets/{Faq-BXT0tU5Q.js → Faq-cnUUa754.js} +1 -1
  17. package/_assets/{GetCredits-CiVv6zS4.js → GetCredits-B0kU7FuE.js} +19 -19
  18. package/_assets/{Grow-d2ucdHqS.js → Grow-HgGzFpE3.js} +1 -1
  19. package/_assets/{HelpersUtil-BsEaPmaI.js → HelpersUtil-Ew-F4vBT.js} +1 -1
  20. package/_assets/{ItemDetail-BxGSP-it.js → ItemDetail-qqSyfKPj.js} +13 -13
  21. package/_assets/LazyEmoteControls-DNXHFm3g.js +2 -0
  22. package/_assets/{LoadMore-DcIHY8Kf.js → LoadMore-DSHozISi.js} +1 -1
  23. package/_assets/{ManaPricingBanner.styles-CxOm66Fo.js → ManaPricingBanner.styles-UwzPqB3A.js} +1 -1
  24. package/_assets/{MyAssets-BozGMHXd.js → MyAssets-fpg41I4K.js} +1 -1
  25. package/_assets/{MyFavorites-wLuasEwD.js → MyFavorites-Cd7TlT9w.js} +2 -2
  26. package/_assets/{NetworkUtil-EoWQDMpU.js → NetworkUtil-CO-1nCx-.js} +1 -1
  27. package/_assets/{NotFound-D9deZR03.js → NotFound-CTSrHIhr.js} +1 -1
  28. package/_assets/{NotificationsBell-DULYJmKs.js → NotificationsBell-DabycGGR.js} +1 -1
  29. package/_assets/{OutfitDetail-B28zoBrk.js → OutfitDetail-BCQPpfUl.js} +15 -15
  30. package/_assets/{OutfitPreview-GRiCEESc.js → OutfitPreview-CNVm-Mmy.js} +2 -2
  31. package/_assets/{OutfitStudio-D7500MAI.js → OutfitStudio-DF2ScfYx.js} +13 -13
  32. package/_assets/{StoreSettings-DK8rP1ia.js → StoreSettings-rrOuug9U.js} +9 -9
  33. package/_assets/{Success-zZ3HkHoh.js → Success-D8XBSWq_.js} +13 -13
  34. package/_assets/{SwapController-LhvwgYfv.js → SwapController-ZQOTT4HD.js} +1 -1
  35. package/_assets/{Tooltip-Dh6dtNV3.js → Tooltip-xIVvDLOp.js} +2 -2
  36. package/_assets/{TradeService-DjBvwlyu.js → TradeService-DmCFIQne.js} +1 -1
  37. package/_assets/{W3MFrameProviderSingleton-DyHElSGY.js → W3MFrameProviderSingleton-CRZ8AP2Q.js} +3 -3
  38. package/_assets/{WebCryptoP256-CGMChTjg.js → WebCryptoP256-DXjlDDMT.js} +1 -1
  39. package/_assets/authorizations-BixBV4TD.js +1 -0
  40. package/_assets/{basic-BwriZEC-.js → basic-CcERZRfI.js} +1 -1
  41. package/_assets/{biconomy-CeViGwXz.js → biconomy-BIgRCmes.js} +1 -1
  42. package/_assets/{browser-CqsLPmeb.js → browser-DrmA6_0y.js} +1 -1
  43. package/_assets/{browser-ponyfill-I5CKtKME.js → browser-ponyfill-fSxUcg6c.js} +1 -1
  44. package/_assets/{builder-CYMYImB0.js → builder-yYkfVnmO.js} +1 -1
  45. package/_assets/buy-C6t8EdJL.js +1 -0
  46. package/_assets/{buy-gasless-DIfZSqYX.js → buy-gasless-uXmROTXZ.js} +1 -1
  47. package/_assets/{categories-BbYXk3ti.js → categories-CGxAQH-_.js} +45 -33
  48. package/_assets/{ccip-CwIu0LfN.js → ccip-ClC71LrZ.js} +1 -1
  49. package/_assets/{ccip-Sex5PzD_.js → ccip-TCYs1z3C.js} +1 -1
  50. package/_assets/{chains-DPlhC0Sw.js → chains-BqVOrxrG.js} +1 -1
  51. package/_assets/{collectionPage.styles-CHbJGgda.js → collectionPage.styles-DxfKkCjZ.js} +4 -4
  52. package/_assets/{common-CNwVQ4p9.js → common-CkYiP-7J.js} +1 -1
  53. package/_assets/{controller-DfTp5YOO.js → controller-CAD_Ncxd.js} +2 -2
  54. package/_assets/{core-BEK9pA3q.js → core-C5ZUevur.js} +4 -4
  55. package/_assets/{createSvgIcon-CU05oHiV.js → createSvgIcon-DsB10OiJ.js} +4 -4
  56. package/_assets/{custom-BhGswfT_.js → custom-CizQsxK3.js} +1 -1
  57. package/_assets/{data-capture-nvuZRuzg.js → data-capture-Bwsb_w-3.js} +1 -1
  58. package/_assets/decimals-DO67KSdi.js +1 -0
  59. package/_assets/{decimals-B3pg7hp8.js → decimals-DyjR4aoq.js} +1 -1
  60. package/_assets/{detectExtension-DEjVJeUh.js → detectExtension-DWfhzRDC.js} +1 -1
  61. package/_assets/{disposePreview-B96DpOZy.js → disposePreview-flulL6RX.js} +1 -1
  62. package/_assets/{email-CieTjR51.js → email-CUebz27I.js} +1 -1
  63. package/_assets/{embedded-wallet-CI-r3uDX.js → embedded-wallet-DHuEKb2B.js} +1 -1
  64. package/_assets/{emotion-styled.browser.esm-BlQXcSKx.js → emotion-styled.browser.esm-CVKaLYZX.js} +1 -1
  65. package/_assets/{engine-CHP2eI44.js → engine-CwQ6coYl.js} +1 -1
  66. package/_assets/errors-CBUUj0FX.js +1 -0
  67. package/_assets/estimate-l1-fee-BJpzTLgk.js +1 -0
  68. package/_assets/eth_estimateGas-CZdRIIy4.js +1 -0
  69. package/_assets/{eth_getStorageAt-BUYdIAYw.js → eth_getStorageAt-C4Yqzc5m.js} +1 -1
  70. package/_assets/eth_getTransactionCount-W_BA_-db.js +1 -0
  71. package/_assets/{ethereum-CliiIOgc.js → ethereum-DFU7Vz3W.js} +1 -1
  72. package/_assets/{ethers-DejfrZ8i.js → ethers-lk3HAbPB.js} +1 -1
  73. package/_assets/{execute-BJuyrz_X.js → execute-BkwPHs5d.js} +2 -2
  74. package/_assets/{extractIPFS-CUaS-9Rs.js → extractIPFS-DzfSqAlh.js} +1 -1
  75. package/_assets/{features-B9o2bxOE.js → features-COoncQLs.js} +1 -1
  76. package/_assets/{fetchTokenMetadata-DeEXEM9T.js → fetchTokenMetadata-DVdGF8SH.js} +2 -2
  77. package/_assets/{field.styles-BYH2xB5-.js → field.styles-ChGQv28p.js} +1 -1
  78. package/_assets/{fortmatic-EI5cNLV0.js → fortmatic-9W3d2zrH.js} +1 -1
  79. package/_assets/{get-bytecode-knYex1Eu.js → get-bytecode-BsB9WanS.js} +1 -1
  80. package/_assets/get-ecosystem-wallet-info-BpyDXVOG.js +1 -0
  81. package/_assets/{getBalance-pkY6oxRI.js → getBalance-NmIU2b2O.js} +2 -2
  82. package/_assets/{getInstalledModules-tywfzr6y.js → getInstalledModules-BE5-ES5I.js} +1 -1
  83. package/_assets/{getNFT-CYm9n3Xd.js → getNFT-BGxpYRoe.js} +2 -2
  84. package/_assets/getNFT-YEPEG38f.js +1 -0
  85. package/_assets/{grid.styles-DoBUqqdT.js → grid.styles-D2J96SwT.js} +1 -1
  86. package/_assets/{hashTypedData-DpkGfcdz.js → hashTypedData-CApfLnos.js} +1 -1
  87. package/_assets/{hashTypedData-ONHChmVW.js → hashTypedData-CcYMI56c.js} +1 -1
  88. package/_assets/{in-app-GxZkDa12.js → in-app-CKc3O4Sv.js} +1 -1
  89. package/_assets/{in-app-wallet-calls-B91UMKOr.js → in-app-wallet-calls-n0DVkHti.js} +1 -1
  90. package/_assets/index-0kdmGL8P.js +3390 -0
  91. package/_assets/index-3QPqSkja.js +1 -0
  92. package/_assets/{index-DEPPVv3y.js → index-4iaG5DfH.js} +1 -1
  93. package/_assets/{index-DOxWmjOH.js → index-6S3FMUEk.js} +1 -1
  94. package/_assets/{index-5GNI01Ww.js → index-6X3q9jcE.js} +1 -1
  95. package/_assets/{index-CSlo2BeJ.js → index-7vaOJntM.js} +1 -1
  96. package/_assets/{index-BJM0Y8Dj.js → index-9ZdEDnsf.js} +1 -1
  97. package/_assets/{index-L36hhrTC.js → index-B0Nj1Xpe.js} +1 -1
  98. package/_assets/{index-CMV7iaeR.js → index-B7SwXBLX.js} +1 -1
  99. package/_assets/{index-L_H5aHd6.js → index-BAuvCwBS.js} +1 -1
  100. package/_assets/{index-BACQuryf.js → index-BBAMyxaq.js} +1 -1
  101. package/_assets/{index-JweqbyGF.js → index-BKGDTHnI.js} +2 -2
  102. package/_assets/{index-BsE741-i.js → index-BW8WltKr.js} +1 -1
  103. package/_assets/{index-B49Ra42Y.js → index-Be2ZgTC2.js} +2 -2
  104. package/_assets/{index-C33PRPh0.js → index-BhB231bL.js} +1 -1
  105. package/_assets/{index-BkDtNpJ9.js → index-BhLXJT-A.js} +1 -1
  106. package/_assets/{index-Bk7mlw_4.js → index-BiCSZsIb.js} +1 -1
  107. package/_assets/{index-_943ql8C.js → index-BkyUhgF6.js} +1 -1
  108. package/_assets/{index-CRQCirWA.js → index-Bm2p-zGj.js} +1 -1
  109. package/_assets/{index-DMNGIYYv.js → index-BmnaNalD.js} +1 -1
  110. package/_assets/{index-Cv1Bu0gQ.js → index-BsSKIwHD.js} +1 -1
  111. package/_assets/{index-Bzt1xZyM.js → index-BxR_qhCB.js} +1 -1
  112. package/_assets/{index-__99MHKr.js → index-BxmGjj2a.js} +2 -2
  113. package/_assets/{index-CTpdUOYC.js → index-BzcwOGk4.js} +1 -1
  114. package/_assets/{index-OxDwxhIP.js → index-BzkS1G6W.js} +1 -1
  115. package/_assets/{index-BpBengnA.js → index-C3Stq5lv.js} +1 -1
  116. package/_assets/{index-BH5LU_4T.js → index-C59CJSbo.js} +1 -1
  117. package/_assets/{index-l4-9ZZLe.js → index-C6MGFWmE.js} +3 -3
  118. package/_assets/{index-B-FT9tly.js → index-C7RtdG3Z.js} +1 -1
  119. package/_assets/{index-DxSEHau1.js → index-CA4L-7AN.js} +1 -1
  120. package/_assets/{index--dDDhPCb.js → index-CBeTDdme.js} +1 -1
  121. package/_assets/{index-DftqIOqz.js → index-CC3KVZ-C.js} +1 -1
  122. package/_assets/{index-t0T-6ZrA.js → index-CF7r6gRE.js} +1 -1
  123. package/_assets/{index-DI-3MKLG.js → index-CJEkcTww.js} +1 -1
  124. package/_assets/{index-Cu9CgJO0.js → index-CLpv_ZJ-.js} +1 -1
  125. package/_assets/{index-OqCfgEJv.js → index-CMEuS0ny.js} +1 -1
  126. package/_assets/{index-BX8-GtYO.js → index-CVOcWyr3.js} +3 -3
  127. package/_assets/{index-INHGq5Es.js → index-CcVPLkSq.js} +1 -1
  128. package/_assets/{index-CIQQJerR.js → index-CczTfLT1.js} +1 -1
  129. package/_assets/{index-B6MX4qjW.js → index-CgeqYqkT.js} +3 -3
  130. package/_assets/{index-BFFeuHAN.js → index-CpR4TF12.js} +1 -1
  131. package/_assets/{index-Bmq5dKA-.js → index-CtdnhIV0.js} +1 -1
  132. package/_assets/{index-73vZ1csI.js → index-CxzejZj0.js} +1 -1
  133. package/_assets/{index-B_JiruyT.js → index-CydESP8d.js} +1 -1
  134. package/_assets/{index-D4Aqu34H.js → index-D0cG_Wab.js} +1 -1
  135. package/_assets/{index-B4d9kGHc.js → index-DGxvuwYE.js} +1 -1
  136. package/_assets/{index-DOiEVNYb.js → index-DN1EN0BQ.js} +1 -1
  137. package/_assets/{index-G6kG-9qx.js → index-DRT-S6qO.js} +1 -1
  138. package/_assets/{index-DPmmgd_P.js → index-DaUjgiMa.js} +2 -2
  139. package/_assets/{index-Bk_uITsR.js → index-DhLM0XTE.js} +1 -1
  140. package/_assets/{index-C5F4093w.js → index-DmMFljl8.js} +1 -1
  141. package/_assets/{index-BYlZ9YbP.js → index-DxEnMKm3.js} +1 -1
  142. package/_assets/{index-DhNV3-07.js → index-DxQd7A0J.js} +1 -1
  143. package/_assets/{index-BkMwrTJ3.js → index-DzGUGKu8.js} +1 -1
  144. package/_assets/{index-E7P9-xl1.js → index-IpNLzHgx.js} +1 -1
  145. package/_assets/{index-Dfv984cL.js → index-KJ7hHQUO.js} +1 -1
  146. package/_assets/{index-CtybxktV.js → index-U0B_ruvX.js} +1 -1
  147. package/_assets/{index-BWh4oQv2.js → index-Y97601kH.js} +1 -1
  148. package/_assets/{index-Cakc_FOK.js → index-Yr43kIYd.js} +1 -1
  149. package/_assets/{index-DGI43LaB.js → index-_jZ2ge8B.js} +1 -1
  150. package/_assets/{index-D3BUTCsu.js → index-c7dUn7oS.js} +1 -1
  151. package/_assets/{index-De1oZcbD.js → index-hCVFHVic.js} +11 -11
  152. package/_assets/{index-CrYXAQF7.js → index-mRgaZ-_k.js} +1 -1
  153. package/_assets/{index-8TbyLPoA.js → index-wnob8aZw.js} +2 -2
  154. package/_assets/{index.es-DD8zy1OU.js → index.es-Bt1vrHLy.js} +1 -1
  155. package/_assets/{index.es-7bD3vSL6.js → index.es-CQZWy8u6.js} +4 -4
  156. package/_assets/{index.es-DdtYF7po.js → index.es-DrGoY9Xx.js} +1 -1
  157. package/_assets/{index.es-DQ3AciL_.js → index.es-DrfFlp1M.js} +1 -1
  158. package/_assets/{linkAccount-BodpWbRq.js → linkAccount-CNeA4_rd.js} +1 -1
  159. package/_assets/{localBatchGatewayRequest-Cqcm6wSH.js → localBatchGatewayRequest-DjDL8c_C.js} +1 -1
  160. package/_assets/{native-DfrS-44q.js → native-D1Bt7nPF.js} +1 -1
  161. package/_assets/{networks-BsQOwKdI.js → networks-BICt4Cqn.js} +1 -1
  162. package/_assets/{onramp-CutBYUPg.js → onramp-DG7xtPwJ.js} +1 -1
  163. package/_assets/{openzeppelin-K-AgEyIf.js → openzeppelin-DT5thYhO.js} +1 -1
  164. package/_assets/{ownerOf-Dw2VC0ue.js → ownerOf-CSle-7WO.js} +1 -1
  165. package/_assets/parseNft-DeY1x__c.js +2 -0
  166. package/_assets/{parseSignature-DnyPA3OO.js → parseSignature-BwH4RvfH.js} +1 -1
  167. package/_assets/{parseSignature-BrLHTUOQ.js → parseSignature-C3vshYUJ.js} +3 -3
  168. package/_assets/{passkeys-zi3xVlV1.js → passkeys-BL7MgzVl.js} +1 -1
  169. package/_assets/{pay-with-exchange-pvINEHpN.js → pay-with-exchange-qF0q90BH.js} +1 -1
  170. package/_assets/{prepare-contract-call-BnXbUbQT.js → prepare-contract-call-Nm9e1q7x.js} +1 -1
  171. package/_assets/{qr-overlay-CLKlyiw2.js → qr-overlay-hZqIuLIW.js} +3 -3
  172. package/_assets/{react-DehiWSvs.js → react-OEOSdkUk.js} +1 -1
  173. package/_assets/{receive-BLXAcZ6B.js → receive-COE1EvWZ.js} +1 -1
  174. package/_assets/{resolveImplementation-CfgIWk0L.js → resolveImplementation-HLbNG2Vp.js} +1 -1
  175. package/_assets/{rpc-C2ZJH6qL.js → rpc-lGsIPm3Z.js} +1 -1
  176. package/_assets/{secp256k1-DQNL-k-L.js → secp256k1-BBTaGZ_Y.js} +1 -1
  177. package/_assets/{secp256k1-BPdRWJXL.js → secp256k1-CQZtwuUm.js} +1 -1
  178. package/_assets/{secp256k1--GaGebUJ.js → secp256k1-GE4zGOQU.js} +1 -1
  179. package/_assets/{send-Cl_aA-ga.js → send-BJWcTbds.js} +1 -1
  180. package/_assets/{send-batch-transaction-1ElceULH.js → send-batch-transaction-Ba7JslR9.js} +1 -1
  181. package/_assets/{send-eip712-transaction-BV_DsAbU.js → send-eip712-transaction-BSFP8vKh.js} +2 -2
  182. package/_assets/send-gasless-transaction-dOOl0_oC.js +2 -0
  183. package/_assets/{send-transaction-DWimy5qX.js → send-transaction-CMc6wANs.js} +2 -2
  184. package/_assets/{sendMetaTransaction-B6HBQ8NH.js → sendMetaTransaction-DqzmtvVe.js} +1 -1
  185. package/_assets/{sendRawTransaction-6C6FbT-9.js → sendRawTransaction-zYZQ5Tfd.js} +3 -3
  186. package/_assets/{sentry-973sfbO9.js → sentry-B60WY-np.js} +1 -1
  187. package/_assets/{serializeTransaction-DJpTnAzh.js → serializeTransaction-CDXHLkZy.js} +1 -1
  188. package/_assets/{session-proposal-B1fE_9QJ.js → session-proposal-B6LJtMoi.js} +1 -1
  189. package/_assets/{session-request-DVlIT2Cz.js → session-request-B2L7VQbP.js} +2 -2
  190. package/_assets/{sha256--PXCNFKm.js → sha256-B3W1x8Ou.js} +1 -1
  191. package/_assets/{signing-C2OtEE_7.js → signing-DH8o0qgI.js} +3 -3
  192. package/_assets/{socials-CwiK-Oz5.js → socials-De6pYslK.js} +1 -1
  193. package/_assets/{styled-INC_AiMB.js → styled-Dlzz4gCY.js} +2 -2
  194. package/_assets/{swaps-Cz6uslns.js → swaps-C1ulCDV2.js} +1 -1
  195. package/_assets/{thirdweb-QagPg_5G.js → thirdweb-BB9WKhiC.js} +3 -3
  196. package/_assets/{to-serializable-transaction-CI3ePtUl.js → to-serializable-transaction-BxPcLWhE.js} +2 -2
  197. package/_assets/{totalSupply-DEpB2B-R.js → totalSupply-BfIXxtR1.js} +1 -1
  198. package/_assets/{transaction-BRB0QRZP.js → transaction-C7nbuBwl.js} +1 -1
  199. package/_assets/{transactionReceipt-B2jt8_c5.js → transactionReceipt-D9BW4O3E.js} +1 -1
  200. package/_assets/{transactions-DuxoNdoM.js → transactions-CA_3u_cG.js} +1 -1
  201. package/_assets/{useCreditPacks-CeoLpXxe.js → useCreditPacks-D4YqwUaM.js} +1 -1
  202. package/_assets/useImportable-B7DZOe6X.js +1 -0
  203. package/_assets/{useInfiniteGrid-D9jUBgv1.js → useInfiniteGrid-DDAFkDbL.js} +1 -1
  204. package/_assets/useTheme-jEgFLoWg.js +1 -0
  205. package/_assets/useUrlFilters-DABDXRpV.js +1 -0
  206. package/_assets/{utils-B9hEgCzc.js → utils-BkRfOA0C.js} +1 -1
  207. package/_assets/{verifyHash-BWYK-_oQ.js → verifyHash-CfhhiiiM.js} +1 -1
  208. package/_assets/{w3m-modal-C_cXhjYQ.js → w3m-modal-Dgkl_pUo.js} +1 -1
  209. package/_assets/{w3m-modal-DeCOfGwP.js → w3m-modal-oirp7A4F.js} +1 -1
  210. package/_assets/{wait-for-tx-receipt-D52q1hNL.js → wait-for-tx-receipt-DJ9PgMUD.js} +1 -1
  211. package/_assets/{wallets-BiRgfoDB.js → wallets-Bj-wvS3Z.js} +5 -5
  212. package/_assets/{web-connector-CI1NmWV2.js → web-connector-Djk4hyaT.js} +3 -3
  213. package/_assets/{writeContract-J3cBsNY4.js → writeContract-oXMRoqds.js} +1 -1
  214. package/_assets/{zora-sepolia-Dv22rzxP.js → zora-sepolia-DOetv30E.js} +1 -1
  215. package/_assets/{zoraTestnet-zRF1Vikt.js → zoraTestnet-nCZwff13.js} +1 -1
  216. package/index.html +11 -11
  217. package/package.json +2 -2
  218. package/_assets/Assets-CH4B54Xy.js +0 -801
  219. package/_assets/Creator-2jJw01qB.js +0 -306
  220. package/_assets/LazyEmoteControls-D7IWhRxC.js +0 -2
  221. package/_assets/authorizations-w-yCHVpU.js +0 -1
  222. package/_assets/buy-DIVuBMot.js +0 -1
  223. package/_assets/decimals-BpjIyOut.js +0 -1
  224. package/_assets/errors-BAqCaL6O.js +0 -1
  225. package/_assets/estimate-l1-fee-D_pdXw9y.js +0 -1
  226. package/_assets/eth_estimateGas-BmR_JMy9.js +0 -1
  227. package/_assets/eth_getTransactionCount-riJ8hG2K.js +0 -1
  228. package/_assets/get-ecosystem-wallet-info-C5KzHIh2.js +0 -1
  229. package/_assets/getNFT-BXJA28mr.js +0 -1
  230. package/_assets/index-CcbRdBPP.js +0 -1
  231. package/_assets/index-DbCMsBDL.js +0 -3504
  232. package/_assets/parseNft-pYm9OVKe.js +0 -2
  233. package/_assets/send-gasless-transaction-eTi92Rfc.js +0 -2
  234. package/_assets/useImportable-CHlGR9sz.js +0 -1
  235. package/_assets/useTheme-HGI9qk_L.js +0 -1
@@ -1,4 +1,4 @@
1
- import{cq as Qe,cm as et,u as tt,ab as H,ac as L,cr as Me,ad as nt,cs as rt,aa as Pe,o as ue,T as ot,c1 as it}from"./index-DbCMsBDL.js";import{r as s,j as I,R as W,f as st}from"./react-DehiWSvs.js";import{C as we,c as C,a as le,g as at,b as ut}from"./clsx-WwvpwSg0.js";import{e as lt,s as ce}from"./styled-INC_AiMB.js";import{S as ge}from"./emotion-styled.browser.esm-BlQXcSKx.js";function Ie(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ie(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ct(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ie(e))&&(r&&(r+=" "),r+=t);return r}const pt=["className","component"];function ft(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Qe("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(et);return s.forwardRef(function(l,p){const d=tt(n),m=lt(l),{className:b,component:y="div"}=m,h=H(m,pt);return I.jsx(i,L({as:y,ref:p,className:ct(b,o?o(r):r),theme:t&&d[t]||d},h))})}function dt(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ht(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function mt(e,t){return()=>null}function bt(e,t){var n,r;return s.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Ne(e){return e&&e.ownerDocument||document}function gt(e){return Ne(e).defaultView||window}function yt(e,t){return()=>null}function Ve(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Rt(e,t,n,r,o){return null}function xt({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=s.useRef(e!==void 0),[i,a]=s.useState(t),c=o?e:i,l=s.useCallback(p=>{o||a(p)},[]);return[c,l]}function X(e){const t=s.useRef(e);return Me(()=>{t.current=e}),s.useRef((...n)=>(0,t.current)(...n)).current}function oe(...e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ve(n,t)})},e)}const ye={};function Et(e,t){const n=s.useRef(ye);return n.current===ye&&(n.current=e(t)),n}const vt=[];function Tt(e){s.useEffect(e,vt)}class G{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new G}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Ct(){const e=Et(G.create).current;return Tt(e.disposeEffect),e}let Z=!0,ie=!1;const Mt=new G,Pt={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function wt(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Pt[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function It(e){e.metaKey||e.altKey||e.ctrlKey||(Z=!0)}function ne(){Z=!1}function Nt(){this.visibilityState==="hidden"&&ie&&(Z=!0)}function Vt(e){e.addEventListener("keydown",It,!0),e.addEventListener("mousedown",ne,!0),e.addEventListener("pointerdown",ne,!0),e.addEventListener("touchstart",ne,!0),e.addEventListener("visibilitychange",Nt,!0)}function St(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Z||wt(t)}function Se(){const e=s.useCallback(o=>{o!=null&&Vt(o.ownerDocument)},[]),t=s.useRef(!1);function n(){return t.current?(ie=!0,Mt.start(100,()=>{ie=!1}),t.current=!1,!0):!1}function r(o){return St(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Bt(e,t){function n(r,o){return I.jsx(ge,L({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=ge.muiName,s.memo(s.forwardRef(n))}const _t={configure:e=>{we.configure(e)}},Dt=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nt,createChainedFunction:dt,createSvgIcon:Bt,debounce:ht,deprecatedPropType:mt,isMuiElement:bt,ownerDocument:Ne,ownerWindow:gt,requirePropFactory:yt,setRef:Ve,unstable_ClassNameGenerator:_t,unstable_useEnhancedEffect:Me,unstable_useId:rt,unsupportedProp:Rt,useControlled:xt,useEventCallback:X,useForkRef:oe,useIsFocusVisible:Se},Symbol.toStringTag,{value:"Module"}));function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},se(e,t)}function Ft(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,se(e,t)}const Re=W.createContext(null);function Lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pe(e,t){var n=function(i){return t&&s.isValidElement(i)?t(i):i},r=Object.create(null);return e&&s.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function jt(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var p=r[l][a];c[r[l][a]]=n(p)}c[l]=n(l)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function F(e,t,n){return n[t]!=null?n[t]:e.props[t]}function $t(e,t){return pe(e.children,function(n){return s.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:F(n,"appear",e),enter:F(n,"enter",e),exit:F(n,"exit",e)})})}function kt(e,t,n){var r=pe(e.children),o=jt(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(s.isValidElement(a)){var c=i in t,l=i in r,p=t[i],d=s.isValidElement(p)&&!p.props.in;l&&(!c||d)?o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:F(a,"exit",e),enter:F(a,"enter",e)}):!l&&c&&!d?o[i]=s.cloneElement(a,{in:!1}):l&&c&&s.isValidElement(p)&&(o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:F(a,"exit",e),enter:F(a,"enter",e)}))}}),o}var Ot=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ut={component:"div",childFactory:function(t){return t}},fe=(function(e){Ft(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(Lt(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,l=i.firstRender;return{children:l?$t(o,c):kt(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=pe(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var l=L({},c.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=H(o,["component","childFactory"]),l=this.state.contextValue,p=Ot(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?W.createElement(Re.Provider,{value:l},p):W.createElement(Re.Provider,{value:l},W.createElement(i,c,p))},t})(W.Component);fe.propTypes={};fe.defaultProps=Ut;function Kt(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:l,timeout:p}=e,[d,m]=s.useState(!1),b=C(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},h=C(n.child,d&&n.childLeaving,r&&n.childPulsate);return!c&&!d&&m(!0),s.useEffect(()=>{if(!c&&l!=null){const R=setTimeout(l,p);return()=>{clearTimeout(R)}}},[l,c,p]),I.jsx("span",{className:b,style:y,children:I.jsx("span",{className:h})})}const g=le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zt=["center","classes","className"];let J=e=>e,xe,Ee,ve,Te;const ae=550,At=80,Wt=ue(xe||(xe=J`
1
+ import{ct as Qe,cp as et,u as tt,ae as H,af as L,cu as Me,ag as nt,cv as rt,ad as we,w as ue,T as ot,c4 as it}from"./index-0kdmGL8P.js";import{r as s,j as I,R as W,f as st}from"./react-OEOSdkUk.js";import{C as Pe,c as C,a as le,g as at,b as ut}from"./clsx-WwvpwSg0.js";import{e as lt,s as ce}from"./styled-Dlzz4gCY.js";import{S as ge}from"./emotion-styled.browser.esm-CVKaLYZX.js";function Ie(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ie(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ct(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ie(e))&&(r&&(r+=" "),r+=t);return r}const pt=["className","component"];function ft(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Qe("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(et);return s.forwardRef(function(l,p){const d=tt(n),m=lt(l),{className:b,component:y="div"}=m,h=H(m,pt);return I.jsx(i,L({as:y,ref:p,className:ct(b,o?o(r):r),theme:t&&d[t]||d},h))})}function dt(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ht(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function mt(e,t){return()=>null}function bt(e,t){var n,r;return s.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Ne(e){return e&&e.ownerDocument||document}function gt(e){return Ne(e).defaultView||window}function yt(e,t){return()=>null}function Ve(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Rt(e,t,n,r,o){return null}function xt({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=s.useRef(e!==void 0),[i,a]=s.useState(t),c=o?e:i,l=s.useCallback(p=>{o||a(p)},[]);return[c,l]}function X(e){const t=s.useRef(e);return Me(()=>{t.current=e}),s.useRef((...n)=>(0,t.current)(...n)).current}function oe(...e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ve(n,t)})},e)}const ye={};function vt(e,t){const n=s.useRef(ye);return n.current===ye&&(n.current=e(t)),n}const Et=[];function Tt(e){s.useEffect(e,Et)}class G{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new G}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Ct(){const e=vt(G.create).current;return Tt(e.disposeEffect),e}let Z=!0,ie=!1;const Mt=new G,wt={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Pt(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&wt[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function It(e){e.metaKey||e.altKey||e.ctrlKey||(Z=!0)}function ne(){Z=!1}function Nt(){this.visibilityState==="hidden"&&ie&&(Z=!0)}function Vt(e){e.addEventListener("keydown",It,!0),e.addEventListener("mousedown",ne,!0),e.addEventListener("pointerdown",ne,!0),e.addEventListener("touchstart",ne,!0),e.addEventListener("visibilitychange",Nt,!0)}function St(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Z||Pt(t)}function Se(){const e=s.useCallback(o=>{o!=null&&Vt(o.ownerDocument)},[]),t=s.useRef(!1);function n(){return t.current?(ie=!0,Mt.start(100,()=>{ie=!1}),t.current=!1,!0):!1}function r(o){return St(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Bt(e,t){function n(r,o){return I.jsx(ge,L({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=ge.muiName,s.memo(s.forwardRef(n))}const _t={configure:e=>{Pe.configure(e)}},Dt=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nt,createChainedFunction:dt,createSvgIcon:Bt,debounce:ht,deprecatedPropType:mt,isMuiElement:bt,ownerDocument:Ne,ownerWindow:gt,requirePropFactory:yt,setRef:Ve,unstable_ClassNameGenerator:_t,unstable_useEnhancedEffect:Me,unstable_useId:rt,unsupportedProp:Rt,useControlled:xt,useEventCallback:X,useForkRef:oe,useIsFocusVisible:Se},Symbol.toStringTag,{value:"Module"}));function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},se(e,t)}function Ft(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,se(e,t)}const Re=W.createContext(null);function Lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pe(e,t){var n=function(i){return t&&s.isValidElement(i)?t(i):i},r=Object.create(null);return e&&s.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function jt(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var p=r[l][a];c[r[l][a]]=n(p)}c[l]=n(l)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function F(e,t,n){return n[t]!=null?n[t]:e.props[t]}function $t(e,t){return pe(e.children,function(n){return s.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:F(n,"appear",e),enter:F(n,"enter",e),exit:F(n,"exit",e)})})}function kt(e,t,n){var r=pe(e.children),o=jt(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(s.isValidElement(a)){var c=i in t,l=i in r,p=t[i],d=s.isValidElement(p)&&!p.props.in;l&&(!c||d)?o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:F(a,"exit",e),enter:F(a,"enter",e)}):!l&&c&&!d?o[i]=s.cloneElement(a,{in:!1}):l&&c&&s.isValidElement(p)&&(o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:F(a,"exit",e),enter:F(a,"enter",e)}))}}),o}var Ot=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ut={component:"div",childFactory:function(t){return t}},fe=(function(e){Ft(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(Lt(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,l=i.firstRender;return{children:l?$t(o,c):kt(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=pe(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var l=L({},c.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=H(o,["component","childFactory"]),l=this.state.contextValue,p=Ot(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?W.createElement(Re.Provider,{value:l},p):W.createElement(Re.Provider,{value:l},W.createElement(i,c,p))},t})(W.Component);fe.propTypes={};fe.defaultProps=Ut;function Kt(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:l,timeout:p}=e,[d,m]=s.useState(!1),b=C(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},h=C(n.child,d&&n.childLeaving,r&&n.childPulsate);return!c&&!d&&m(!0),s.useEffect(()=>{if(!c&&l!=null){const R=setTimeout(l,p);return()=>{clearTimeout(R)}}},[l,c,p]),I.jsx("span",{className:b,style:y,children:I.jsx("span",{className:h})})}const g=le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zt=["center","classes","className"];let J=e=>e,xe,ve,Ee,Te;const ae=550,At=80,Wt=ue(xe||(xe=J`
2
2
  0% {
3
3
  transform: scale(0);
4
4
  opacity: 0.1;
@@ -8,7 +8,7 @@ import{cq as Qe,cm as et,u as tt,ab as H,ac as L,cr as Me,ad as nt,cs as rt,aa a
8
8
  transform: scale(1);
9
9
  opacity: 0.3;
10
10
  }
11
- `)),Xt=ue(Ee||(Ee=J`
11
+ `)),Xt=ue(ve||(ve=J`
12
12
  0% {
13
13
  opacity: 1;
14
14
  }
@@ -16,7 +16,7 @@ import{cq as Qe,cm as et,u as tt,ab as H,ac as L,cr as Me,ad as nt,cs as rt,aa a
16
16
  100% {
17
17
  opacity: 0;
18
18
  }
19
- `)),Yt=ue(ve||(ve=J`
19
+ `)),Yt=ue(Ee||(Ee=J`
20
20
  0% {
21
21
  transform: scale(1);
22
22
  }
@@ -71,4 +71,4 @@ import{cq as Qe,cm as et,u as tt,ab as H,ac as L,cr as Me,ad as nt,cs as rt,aa a
71
71
  animation-iteration-count: infinite;
72
72
  animation-delay: 200ms;
73
73
  }
74
- `),g.rippleVisible,Wt,ae,({theme:e})=>e.transitions.easing.easeInOut,g.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,g.child,g.childLeaving,Xt,ae,({theme:e})=>e.transitions.easing.easeInOut,g.childPulsate,Yt,({theme:e})=>e.transitions.easing.easeInOut),Gt=s.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,c=H(r,zt),[l,p]=s.useState([]),d=s.useRef(0),m=s.useRef(null);s.useEffect(()=>{m.current&&(m.current(),m.current=null)},[l]);const b=s.useRef(!1),y=Ct(),h=s.useRef(null),R=s.useRef(null),O=s.useCallback(f=>{const{pulsate:x,rippleX:E,rippleY:B,rippleSize:k,cb:K}=f;p(v=>[...v,I.jsx(Ht,{classes:{ripple:C(i.ripple,g.ripple),rippleVisible:C(i.rippleVisible,g.rippleVisible),ripplePulsate:C(i.ripplePulsate,g.ripplePulsate),child:C(i.child,g.child),childLeaving:C(i.childLeaving,g.childLeaving),childPulsate:C(i.childPulsate,g.childPulsate)},timeout:ae,pulsate:x,rippleX:E,rippleY:B,rippleSize:k},d.current)]),d.current+=1,m.current=K},[i]),j=s.useCallback((f={},x={},E=()=>{})=>{const{pulsate:B=!1,center:k=o||x.pulsate,fakeElement:K=!1}=x;if((f==null?void 0:f.type)==="mousedown"&&b.current){b.current=!1;return}(f==null?void 0:f.type)==="touchstart"&&(b.current=!0);const v=K?null:R.current,N=v?v.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,V,S;if(k||f===void 0||f.clientX===0&&f.clientY===0||!f.clientX&&!f.touches)M=Math.round(N.width/2),V=Math.round(N.height/2);else{const{clientX:_,clientY:P}=f.touches&&f.touches.length>0?f.touches[0]:f;M=Math.round(_-N.left),V=Math.round(P-N.top)}if(k)S=Math.sqrt((2*N.width**2+N.height**2)/3),S%2===0&&(S+=1);else{const _=Math.max(Math.abs((v?v.clientWidth:0)-M),M)*2+2,P=Math.max(Math.abs((v?v.clientHeight:0)-V),V)*2+2;S=Math.sqrt(_**2+P**2)}f!=null&&f.touches?h.current===null&&(h.current=()=>{O({pulsate:B,rippleX:M,rippleY:V,rippleSize:S,cb:E})},y.start(At,()=>{h.current&&(h.current(),h.current=null)})):O({pulsate:B,rippleX:M,rippleY:V,rippleSize:S,cb:E})},[o,O,y]),U=s.useCallback(()=>{j({},{pulsate:!0})},[j]),$=s.useCallback((f,x)=>{if(y.clear(),(f==null?void 0:f.type)==="touchend"&&h.current){h.current(),h.current=null,y.start(0,()=>{$(f,x)});return}h.current=null,p(E=>E.length>0?E.slice(1):E),m.current=x},[y]);return s.useImperativeHandle(n,()=>({pulsate:U,start:j,stop:$}),[U,j,$]),I.jsx(qt,L({className:C(g.root,i.root,a),ref:R},c,{children:I.jsx(fe,{component:null,exit:!0,children:l})}))});function Zt(e){return at("MuiButtonBase",e)}const Jt=le("MuiButtonBase",["root","disabled","focusVisible"]),Qt=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],en=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=ut({root:["root",t&&"disabled",n&&"focusVisible"]},Zt,o);return n&&r&&(a.root+=` ${r}`),a},tn=ce("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Jt.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fn=s.forwardRef(function(t,n){const r=Pe({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:c,component:l="button",disabled:p=!1,disableRipple:d=!1,disableTouchRipple:m=!1,focusRipple:b=!1,LinkComponent:y="a",onBlur:h,onClick:R,onContextMenu:O,onDragLeave:j,onFocus:U,onFocusVisible:$,onKeyDown:f,onKeyUp:x,onMouseDown:E,onMouseLeave:B,onMouseUp:k,onTouchEnd:K,onTouchMove:v,onTouchStart:N,tabIndex:M=0,TouchRippleProps:V,touchRippleRef:S,type:_}=r,P=H(r,Qt),z=s.useRef(null),T=s.useRef(null),Be=oe(T,S),{isFocusVisibleRef:de,onFocus:_e,onBlur:De,ref:Fe}=Se(),[D,Y]=s.useState(!1);p&&D&&Y(!1),s.useImperativeHandle(o,()=>({focusVisible:()=>{Y(!0),z.current.focus()}}),[]);const[Q,Le]=s.useState(!1);s.useEffect(()=>{Le(!0)},[]);const je=Q&&!d&&!p;s.useEffect(()=>{D&&b&&!d&&Q&&T.current.pulsate()},[d,b,D,Q]);function w(u,me,Je=m){return X(be=>(me&&me(be),!Je&&T.current&&T.current[u](be),!0))}const $e=w("start",E),ke=w("stop",O),Oe=w("stop",j),Ue=w("stop",k),Ke=w("stop",u=>{D&&u.preventDefault(),B&&B(u)}),ze=w("start",N),Ae=w("stop",K),We=w("stop",v),Xe=w("stop",u=>{De(u),de.current===!1&&Y(!1),h&&h(u)},!1),Ye=X(u=>{z.current||(z.current=u.currentTarget),_e(u),de.current===!0&&(Y(!0),$&&$(u)),U&&U(u)}),ee=()=>{const u=z.current;return l&&l!=="button"&&!(u.tagName==="A"&&u.href)},te=s.useRef(!1),qe=X(u=>{b&&!te.current&&D&&T.current&&u.key===" "&&(te.current=!0,T.current.stop(u,()=>{T.current.start(u)})),u.target===u.currentTarget&&ee()&&u.key===" "&&u.preventDefault(),f&&f(u),u.target===u.currentTarget&&ee()&&u.key==="Enter"&&!p&&(u.preventDefault(),R&&R(u))}),He=X(u=>{b&&u.key===" "&&T.current&&D&&!u.defaultPrevented&&(te.current=!1,T.current.stop(u,()=>{T.current.pulsate(u)})),x&&x(u),R&&u.target===u.currentTarget&&ee()&&u.key===" "&&!u.defaultPrevented&&R(u)});let q=l;q==="button"&&(P.href||P.to)&&(q=y);const A={};q==="button"?(A.type=_===void 0?"button":_,A.disabled=p):(!P.href&&!P.to&&(A.role="button"),p&&(A["aria-disabled"]=p));const Ge=oe(n,Fe,z),he=L({},r,{centerRipple:i,component:l,disabled:p,disableRipple:d,disableTouchRipple:m,focusRipple:b,tabIndex:M,focusVisible:D}),Ze=en(he);return I.jsxs(tn,L({as:q,className:C(Ze.root,c),ownerState:he,onBlur:Xe,onClick:R,onContextMenu:ke,onFocus:Ye,onKeyDown:qe,onKeyUp:He,onMouseDown:$e,onMouseLeave:Ke,onMouseUp:Ue,onDragLeave:Oe,onTouchEnd:Ae,onTouchMove:We,onTouchStart:ze,ref:Ge,tabIndex:p?-1:M,type:_},A,P,{children:[a,je?I.jsx(Gt,L({ref:Be,center:i},V)):null]}))}),nn=le("MuiBox",["root"]),rn=it(),dn=ft({themeId:ot,defaultTheme:rn,defaultClassName:nn.root,generateClassName:we.generate});var re={};const on=st(Dt);var Ce;function hn(){return Ce||(Ce=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=on})(re)),re}export{fn as B,Re as T,Ft as _,Ct as a,X as b,xt as c,Se as d,dn as e,G as f,Ne as o,hn as r,Ve as s,oe as u};
74
+ `),g.rippleVisible,Wt,ae,({theme:e})=>e.transitions.easing.easeInOut,g.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,g.child,g.childLeaving,Xt,ae,({theme:e})=>e.transitions.easing.easeInOut,g.childPulsate,Yt,({theme:e})=>e.transitions.easing.easeInOut),Gt=s.forwardRef(function(t,n){const r=we({props:t,name:"MuiTouchRipple"}),{center:o=!1,classes:i={},className:a}=r,c=H(r,zt),[l,p]=s.useState([]),d=s.useRef(0),m=s.useRef(null);s.useEffect(()=>{m.current&&(m.current(),m.current=null)},[l]);const b=s.useRef(!1),y=Ct(),h=s.useRef(null),R=s.useRef(null),O=s.useCallback(f=>{const{pulsate:x,rippleX:v,rippleY:B,rippleSize:k,cb:K}=f;p(E=>[...E,I.jsx(Ht,{classes:{ripple:C(i.ripple,g.ripple),rippleVisible:C(i.rippleVisible,g.rippleVisible),ripplePulsate:C(i.ripplePulsate,g.ripplePulsate),child:C(i.child,g.child),childLeaving:C(i.childLeaving,g.childLeaving),childPulsate:C(i.childPulsate,g.childPulsate)},timeout:ae,pulsate:x,rippleX:v,rippleY:B,rippleSize:k},d.current)]),d.current+=1,m.current=K},[i]),j=s.useCallback((f={},x={},v=()=>{})=>{const{pulsate:B=!1,center:k=o||x.pulsate,fakeElement:K=!1}=x;if((f==null?void 0:f.type)==="mousedown"&&b.current){b.current=!1;return}(f==null?void 0:f.type)==="touchstart"&&(b.current=!0);const E=K?null:R.current,N=E?E.getBoundingClientRect():{width:0,height:0,left:0,top:0};let M,V,S;if(k||f===void 0||f.clientX===0&&f.clientY===0||!f.clientX&&!f.touches)M=Math.round(N.width/2),V=Math.round(N.height/2);else{const{clientX:_,clientY:w}=f.touches&&f.touches.length>0?f.touches[0]:f;M=Math.round(_-N.left),V=Math.round(w-N.top)}if(k)S=Math.sqrt((2*N.width**2+N.height**2)/3),S%2===0&&(S+=1);else{const _=Math.max(Math.abs((E?E.clientWidth:0)-M),M)*2+2,w=Math.max(Math.abs((E?E.clientHeight:0)-V),V)*2+2;S=Math.sqrt(_**2+w**2)}f!=null&&f.touches?h.current===null&&(h.current=()=>{O({pulsate:B,rippleX:M,rippleY:V,rippleSize:S,cb:v})},y.start(At,()=>{h.current&&(h.current(),h.current=null)})):O({pulsate:B,rippleX:M,rippleY:V,rippleSize:S,cb:v})},[o,O,y]),U=s.useCallback(()=>{j({},{pulsate:!0})},[j]),$=s.useCallback((f,x)=>{if(y.clear(),(f==null?void 0:f.type)==="touchend"&&h.current){h.current(),h.current=null,y.start(0,()=>{$(f,x)});return}h.current=null,p(v=>v.length>0?v.slice(1):v),m.current=x},[y]);return s.useImperativeHandle(n,()=>({pulsate:U,start:j,stop:$}),[U,j,$]),I.jsx(qt,L({className:C(g.root,i.root,a),ref:R},c,{children:I.jsx(fe,{component:null,exit:!0,children:l})}))});function Zt(e){return at("MuiButtonBase",e)}const Jt=le("MuiButtonBase",["root","disabled","focusVisible"]),Qt=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],en=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:o}=e,a=ut({root:["root",t&&"disabled",n&&"focusVisible"]},Zt,o);return n&&r&&(a.root+=` ${r}`),a},tn=ce("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},[`&.${Jt.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),fn=s.forwardRef(function(t,n){const r=we({props:t,name:"MuiButtonBase"}),{action:o,centerRipple:i=!1,children:a,className:c,component:l="button",disabled:p=!1,disableRipple:d=!1,disableTouchRipple:m=!1,focusRipple:b=!1,LinkComponent:y="a",onBlur:h,onClick:R,onContextMenu:O,onDragLeave:j,onFocus:U,onFocusVisible:$,onKeyDown:f,onKeyUp:x,onMouseDown:v,onMouseLeave:B,onMouseUp:k,onTouchEnd:K,onTouchMove:E,onTouchStart:N,tabIndex:M=0,TouchRippleProps:V,touchRippleRef:S,type:_}=r,w=H(r,Qt),z=s.useRef(null),T=s.useRef(null),Be=oe(T,S),{isFocusVisibleRef:de,onFocus:_e,onBlur:De,ref:Fe}=Se(),[D,Y]=s.useState(!1);p&&D&&Y(!1),s.useImperativeHandle(o,()=>({focusVisible:()=>{Y(!0),z.current.focus()}}),[]);const[Q,Le]=s.useState(!1);s.useEffect(()=>{Le(!0)},[]);const je=Q&&!d&&!p;s.useEffect(()=>{D&&b&&!d&&Q&&T.current.pulsate()},[d,b,D,Q]);function P(u,me,Je=m){return X(be=>(me&&me(be),!Je&&T.current&&T.current[u](be),!0))}const $e=P("start",v),ke=P("stop",O),Oe=P("stop",j),Ue=P("stop",k),Ke=P("stop",u=>{D&&u.preventDefault(),B&&B(u)}),ze=P("start",N),Ae=P("stop",K),We=P("stop",E),Xe=P("stop",u=>{De(u),de.current===!1&&Y(!1),h&&h(u)},!1),Ye=X(u=>{z.current||(z.current=u.currentTarget),_e(u),de.current===!0&&(Y(!0),$&&$(u)),U&&U(u)}),ee=()=>{const u=z.current;return l&&l!=="button"&&!(u.tagName==="A"&&u.href)},te=s.useRef(!1),qe=X(u=>{b&&!te.current&&D&&T.current&&u.key===" "&&(te.current=!0,T.current.stop(u,()=>{T.current.start(u)})),u.target===u.currentTarget&&ee()&&u.key===" "&&u.preventDefault(),f&&f(u),u.target===u.currentTarget&&ee()&&u.key==="Enter"&&!p&&(u.preventDefault(),R&&R(u))}),He=X(u=>{b&&u.key===" "&&T.current&&D&&!u.defaultPrevented&&(te.current=!1,T.current.stop(u,()=>{T.current.pulsate(u)})),x&&x(u),R&&u.target===u.currentTarget&&ee()&&u.key===" "&&!u.defaultPrevented&&R(u)});let q=l;q==="button"&&(w.href||w.to)&&(q=y);const A={};q==="button"?(A.type=_===void 0?"button":_,A.disabled=p):(!w.href&&!w.to&&(A.role="button"),p&&(A["aria-disabled"]=p));const Ge=oe(n,Fe,z),he=L({},r,{centerRipple:i,component:l,disabled:p,disableRipple:d,disableTouchRipple:m,focusRipple:b,tabIndex:M,focusVisible:D}),Ze=en(he);return I.jsxs(tn,L({as:q,className:C(Ze.root,c),ownerState:he,onBlur:Xe,onClick:R,onContextMenu:ke,onFocus:Ye,onKeyDown:qe,onKeyUp:He,onMouseDown:$e,onMouseLeave:Ke,onMouseUp:Ue,onDragLeave:Oe,onTouchEnd:Ae,onTouchMove:We,onTouchStart:ze,ref:Ge,tabIndex:p?-1:M,type:_},A,w,{children:[a,je?I.jsx(Gt,L({ref:Be,center:i},V)):null]}))}),nn=le("MuiBox",["root"]),rn=it(),dn=ft({themeId:ot,defaultTheme:rn,defaultClassName:nn.root,generateClassName:Pe.generate});var re={};const on=st(Dt);var Ce;function hn(){return Ce||(Ce=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=on})(re)),re}export{fn as B,Re as T,Ft as _,Ct as a,X as b,xt as c,Se as d,dn as e,G as f,Ne as o,hn as r,Ve as s,oe as u};
@@ -1 +1 @@
1
- import{aD as z,aV as G,a3 as E,aE as Q,a4 as H,aF as Y,b9 as T,a8 as J,bT as W,q as X,bh as Z,bU as K,az as tt,aq as et,bi as nt}from"./sendRawTransaction-6C6FbT-9.js";import{af as q,am as C,a7 as at,ax as rt,B as st,ad as M}from"./NetworkUtil-EoWQDMpU.js";import{P as S,w as A,Q as ot,c as ct}from"./W3MFrameProviderSingleton-DyHElSGY.js";const v=new Map,D=new Map;let it=0;function _(t,n,a){const e=++it,r=()=>v.get(t)||[],s=()=>{const l=r().filter(o=>o.id!==e);if(l.length===0){v.delete(t),D.delete(t);return}v.set(t,l)},f=()=>{const p=r();if(!p.some(o=>o.id===e))return;const l=D.get(t);if(p.length===1&&l){const o=l();o instanceof Promise&&o.catch(()=>{})}s()},b=r();if(v.set(t,[...b,{id:e,fns:n}]),b&&b.length>0)return f;const i={};for(const p in n)i[p]=((...l)=>{var c,u;const o=r();if(o.length!==0)for(const d of o)(u=(c=d.fns)[p])==null||u.call(c,...l)});const g=a(i);return typeof g=="function"&&D.set(t,g),f}function U(t,{emitOnBegin:n,initialWaitTime:a,interval:e}){let r=!0;const s=()=>r=!1;return(async()=>{let b;n&&(b=await t({unpoll:s}));const i=await(a==null?void 0:a(b))??e;await S(i);const g=async()=>{r&&(await t({unpoll:s}),await S(e),g())};g()})(),s}function ut(t,{method:n}){var e,r;const a={};return t.transport.type==="fallback"&&((r=(e=t.transport).onResponse)==null||r.call(e,({method:s,response:f,status:b,transport:i})=>{b==="success"&&n===s&&(a[f]=i.request)})),(s=>a[s]||t.request)}const lt=new Map,ft=new Map;function pt(t){const n=(r,s)=>({clear:()=>s.delete(r),get:()=>s.get(r),set:f=>s.set(r,f)}),a=n(t,lt),e=n(t,ft);return{clear:()=>{a.clear(),e.clear()},promise:a,response:e}}async function dt(t,{cacheKey:n,cacheTime:a=Number.POSITIVE_INFINITY}){const e=pt(n),r=e.response.get();if(r&&a>0&&Date.now()-r.created.getTime()<a)return r.data;let s=e.promise.get();s||(s=t(),e.promise.set(s));try{const f=await s;return e.response.set({created:new Date,data:f}),f}finally{e.promise.clear()}}const bt=t=>`blockNumber.${t}`;async function gt(t,{cacheTime:n=t.cacheTime}={}){const a=await dt(()=>t.request({method:"eth_blockNumber"}),{cacheKey:bt(t.uid),cacheTime:n});return BigInt(a)}async function mt(t,{filter:n}){const a="strict"in n&&n.strict,e=await n.request({method:"eth_getFilterChanges",params:[n.id]});if(typeof e[0]=="string")return e;const r=e.map(s=>z(s));return!("abi"in n)||!n.abi?r:G({abi:n.abi,logs:r,strict:a})}async function ht(t,{filter:n}){return n.request({method:"eth_uninstallFilter",params:[n.id]})}async function yt(t,{blockHash:n,blockNumber:a,blockTag:e,hash:r,index:s,sender:f,nonce:b}){var o,c,u;const i=e||"latest",g=a!==void 0?q(a):void 0;let p=null;if(r?p=await t.request({method:"eth_getTransactionByHash",params:[r]},{dedupe:!0}):n?p=await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[n,q(s)]},{dedupe:!0}):typeof s=="number"?p=await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[g||i,q(s)]},{dedupe:!!g}):f&&typeof b=="number"&&(p=await t.request({method:"eth_getTransactionBySenderAndNonce",params:[f,q(b)]},{dedupe:!0})),!p)throw new E({blockHash:n,blockNumber:a,blockTag:i,hash:r,index:s});return(((u=(c=(o=t.chain)==null?void 0:o.formatters)==null?void 0:c.transaction)==null?void 0:u.format)||Q)(p,"getTransaction")}async function O(t,{hash:n}){var r,s,f;const a=await t.request({method:"eth_getTransactionReceipt",params:[n]},{dedupe:!0});if(!a)throw new H({hash:n});return(((f=(s=(r=t.chain)==null?void 0:r.formatters)==null?void 0:s.transactionReceipt)==null?void 0:f.format)||Y)(a,"getTransactionReceipt")}function wt(t,{emitOnBegin:n=!1,emitMissed:a=!1,onBlockNumber:e,onError:r,poll:s,pollingInterval:f=t.pollingInterval}){const b=typeof s<"u"?s:!(t.transport.type==="webSocket"||t.transport.type==="ipc"||t.transport.type==="fallback"&&(t.transport.transports[0].config.type==="webSocket"||t.transport.transports[0].config.type==="ipc"));let i;return b?(()=>{const l=C(["watchBlockNumber",t.uid,n,a,f]);return _(l,{onBlockNumber:e,onError:r},o=>U(async()=>{var c;try{const u=await T(t,gt,"getBlockNumber")({cacheTime:0});if(i!==void 0){if(u===i)return;if(u-i>1&&a)for(let d=i+1n;d<u;d++)o.onBlockNumber(d,i),i=d}(i===void 0||u>i)&&(o.onBlockNumber(u,i),i=u)}catch(u){(c=o.onError)==null||c.call(o,u)}},{emitOnBegin:n,interval:f}))})():(()=>{const l=C(["watchBlockNumber",t.uid,n,a]);return _(l,{onBlockNumber:e,onError:r},o=>{let c=!0,u=()=>c=!1;return(async()=>{try{const d=(()=>{if(t.transport.type==="fallback"){const N=t.transport.transports.find(h=>h.config.type==="webSocket"||h.config.type==="ipc");return N?N.value:t.transport}return t.transport})(),{unsubscribe:w}=await d.subscribe({params:["newHeads"],onData(N){var I;if(!c)return;const h=at((I=N.result)==null?void 0:I.number);o.onBlockNumber(h,i),i=h},onError(N){var h;(h=o.onError)==null||h.call(o,N)}});u=w,c||u()}catch(d){r==null||r(d)}})(),()=>u()})})()}async function Rt(t,n){const{checkReplacement:a=!0,confirmations:e=1,hash:r,onReplaced:s,retryCount:f=6,retryDelay:b=({count:m})=>~~(1<<m)*200,timeout:i=18e4}=n,g=C(["waitForTransactionReceipt",t.uid,r]),p=(()=>{var m;return n.pollingInterval?n.pollingInterval:(m=t.chain)!=null&&m.experimental_preconfirmationTime?t.chain.experimental_preconfirmationTime:t.pollingInterval})();let l,o,c,u=!1,d,w;const{promise:N,resolve:h,reject:I}=rt(),F=i?setTimeout(()=>{w==null||w(),d==null||d(),I(new J({hash:r}))},i):void 0;return d=_(g,{onReplaced:s,resolve:h,reject:I},async m=>{if(c=await T(t,O,"getTransactionReceipt")({hash:r}).catch(()=>{}),c&&e<=1){clearTimeout(F),m.resolve(c),d==null||d();return}w=T(t,wt,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber($){const B=k=>{clearTimeout(F),w==null||w(),k(),d==null||d()};let R=$;if(!u)try{if(c){if(e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c));return}if(a&&!l&&(u=!0,await A(async()=>{l=await T(t,yt,"getTransaction")({hash:r}),l.blockNumber&&(R=l.blockNumber)},{delay:b,retryCount:f}),u=!1),c=await T(t,O,"getTransactionReceipt")({hash:r}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c))}catch(k){if(k instanceof E||k instanceof H){if(!l){u=!1;return}try{o=l,u=!0;const P=await A(()=>T(t,W,"getBlock")({blockNumber:R,includeTransactions:!0}),{delay:b,retryCount:f,shouldRetry:({error:x})=>x instanceof X});u=!1;const y=P.transactions.find(({from:x,nonce:V})=>x===o.from&&V===o.nonce);if(!y||(c=await T(t,O,"getTransactionReceipt")({hash:y.hash}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e)))return;let j="replaced";y.to===o.to&&y.value===o.value&&y.input===o.input?j="repriced":y.from===y.to&&y.value===0n&&(j="cancelled"),B(()=>{var x;(x=m.onReplaced)==null||x.call(m,{reason:j,replacedTransaction:o,transaction:y,transactionReceipt:c}),m.resolve(c)})}catch(P){B(()=>m.reject(P))}}else B(()=>m.reject(k))}}})}),N}class kt extends st{constructor({value:n}){super(`Number \`${n}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Pt(t,n){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new kt({value:t});let[a,e="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),e=e.replace(/(0+)$/,""),n===0)Math.round(+`.${e}`)===1&&(a=`${BigInt(a)+1n}`),e="";else if(e.length>n){const[s,f,b]=[e.slice(0,n-1),e.slice(n-1,n),e.slice(n)],i=Math.round(+`${f}.${b}`);i>9?e=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):e=`${s}${i}`,e.length>n&&(e=e.slice(1),a=`${BigInt(a)+1n}`),e=e.slice(0,n)}else e=e.padEnd(n,"0");return BigInt(`${r?"-":""}${a}${e}`)}function xt(t){const{batch:n,chain:a,ccipRead:e,dataSuffix:r,key:s="base",name:f="Base Client",tokens:b,type:i="base"}=t,g=t.experimental_blockTag??(typeof(a==null?void 0:a.experimental_preconfirmationTime)=="number"?"pending":void 0),p=(a==null?void 0:a.blockTime)??12e3,l=Math.min(Math.max(Math.floor(p/2),500),4e3),o=t.pollingInterval??l,c=t.cacheTime??o,u=t.account?Z(t.account):void 0,{config:d,request:w,value:N}=t.transport({account:u,chain:a,pollingInterval:o}),h={...d,...N},I={account:u,batch:n,cacheTime:c,ccipRead:e,chain:a,dataSuffix:r,key:s,name:f,pollingInterval:o,request:w,tokens:b,transport:h,type:i,uid:ot(),...g?{experimental_blockTag:g}:{}};function F(m){return $=>{const B=$(m);for(const k in I)delete B[k];const R={...m,...B};for(const k in B){const P=m[k],y=B[k];L(P)&&L(y)&&(R[k]={...P,...y})}return Object.assign(R,{extend:F(R)})}}return Object.assign(I,{extend:F(I)})}function L(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}function Ft(t,n){const a=(e={})=>n(t,e);for(const e of["call","calls","callWithPeriod","estimateGas","simulate"])if(Object.hasOwn(n,e)){const r=n[e];a[e]=(s={})=>r.length>=2?r(t,s):r.length===0?r():r(s)}for(const e of["extractEvent","extractEvents"])Object.hasOwn(n,e)&&(a[e]=n[e]);return a}async function Tt(t){const n=ut(t,{method:"eth_newPendingTransactionFilter"}),a=await t.request({method:"eth_newPendingTransactionFilter"});return{id:a,request:n(a),type:"transaction"}}async function qt(t,{address:n,blockHash:a,blockNumber:e,blockTag:r=t.experimental_blockTag??"latest",requireCanonical:s}){var i,g,p;const f=K({blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});if((i=t.batch)!=null&&i.multicall&&((p=(g=t.chain)==null?void 0:g.contracts)!=null&&p.multicall3)){const l=t.chain.contracts.multicall3.address,o=tt({abi:M,functionName:"getEthBalance",args:[n]}),{data:c}=await T(t,nt,"call")({to:l,data:o,blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});return et({abi:M,functionName:"getEthBalance",args:[n],data:c||"0x"})}const b=await t.request({method:"eth_getBalance",params:[n,f]});return BigInt(b)}function vt(t,{batch:n=!0,onError:a,onTransactions:e,poll:r,pollingInterval:s=t.pollingInterval}){return(typeof r<"u"?r:t.transport.type!=="webSocket"&&t.transport.type!=="ipc")?(()=>{const g=C(["watchPendingTransactions",t.uid,n,s]);return _(g,{onTransactions:e,onError:a},p=>{let l;const o=U(async()=>{var c;try{if(!l)try{l=await T(t,Tt,"createPendingTransactionFilter")({});return}catch(d){throw o(),d}const u=await T(t,mt,"getFilterChanges")({filter:l});if(u.length===0)return;if(n)p.onTransactions(u);else for(const d of u)p.onTransactions([d])}catch(u){(c=p.onError)==null||c.call(p,u)}},{emitOnBegin:!0,interval:s});return async()=>{l&&await T(t,ht,"uninstallFilter")({filter:l}),o()}})})():(()=>{let g=!0,p=()=>g=!1;return(async()=>{try{const{unsubscribe:l}=await t.transport.subscribe({params:["newPendingTransactions"],onData(o){if(!g)return;const c=o.result;e([c])},onError(o){a==null||a(o)}});p=l,g||p()}catch(l){a==null||a(l)}})(),()=>p()})()}function Ct(t,n={}){const{key:a="custom",methods:e,name:r="Custom Provider",retryDelay:s}=n;return({retryCount:f})=>ct({key:a,methods:e,name:r,request:t.request.bind(t),retryCount:n.retryCount??f,retryDelay:s,type:"custom"})}export{kt as I,Ct as a,Rt as b,xt as c,yt as d,vt as e,U as f,qt as g,ut as h,mt as i,gt as j,wt as k,O as l,Tt as m,Ft as n,_ as o,Pt as p,ht as u,dt as w};
1
+ import{aD as z,aV as G,a3 as E,aE as Q,a4 as H,aF as Y,b9 as T,a8 as J,bT as W,q as X,bh as Z,bU as K,az as tt,aq as et,bi as nt}from"./sendRawTransaction-zYZQ5Tfd.js";import{af as q,am as C,a7 as at,ax as rt,B as st,ad as M}from"./NetworkUtil-CO-1nCx-.js";import{P as S,w as A,Q as ot,c as ct}from"./W3MFrameProviderSingleton-CRZ8AP2Q.js";const v=new Map,D=new Map;let it=0;function _(t,n,a){const e=++it,r=()=>v.get(t)||[],s=()=>{const l=r().filter(o=>o.id!==e);if(l.length===0){v.delete(t),D.delete(t);return}v.set(t,l)},f=()=>{const p=r();if(!p.some(o=>o.id===e))return;const l=D.get(t);if(p.length===1&&l){const o=l();o instanceof Promise&&o.catch(()=>{})}s()},b=r();if(v.set(t,[...b,{id:e,fns:n}]),b&&b.length>0)return f;const i={};for(const p in n)i[p]=((...l)=>{var c,u;const o=r();if(o.length!==0)for(const d of o)(u=(c=d.fns)[p])==null||u.call(c,...l)});const g=a(i);return typeof g=="function"&&D.set(t,g),f}function U(t,{emitOnBegin:n,initialWaitTime:a,interval:e}){let r=!0;const s=()=>r=!1;return(async()=>{let b;n&&(b=await t({unpoll:s}));const i=await(a==null?void 0:a(b))??e;await S(i);const g=async()=>{r&&(await t({unpoll:s}),await S(e),g())};g()})(),s}function ut(t,{method:n}){var e,r;const a={};return t.transport.type==="fallback"&&((r=(e=t.transport).onResponse)==null||r.call(e,({method:s,response:f,status:b,transport:i})=>{b==="success"&&n===s&&(a[f]=i.request)})),(s=>a[s]||t.request)}const lt=new Map,ft=new Map;function pt(t){const n=(r,s)=>({clear:()=>s.delete(r),get:()=>s.get(r),set:f=>s.set(r,f)}),a=n(t,lt),e=n(t,ft);return{clear:()=>{a.clear(),e.clear()},promise:a,response:e}}async function dt(t,{cacheKey:n,cacheTime:a=Number.POSITIVE_INFINITY}){const e=pt(n),r=e.response.get();if(r&&a>0&&Date.now()-r.created.getTime()<a)return r.data;let s=e.promise.get();s||(s=t(),e.promise.set(s));try{const f=await s;return e.response.set({created:new Date,data:f}),f}finally{e.promise.clear()}}const bt=t=>`blockNumber.${t}`;async function gt(t,{cacheTime:n=t.cacheTime}={}){const a=await dt(()=>t.request({method:"eth_blockNumber"}),{cacheKey:bt(t.uid),cacheTime:n});return BigInt(a)}async function mt(t,{filter:n}){const a="strict"in n&&n.strict,e=await n.request({method:"eth_getFilterChanges",params:[n.id]});if(typeof e[0]=="string")return e;const r=e.map(s=>z(s));return!("abi"in n)||!n.abi?r:G({abi:n.abi,logs:r,strict:a})}async function ht(t,{filter:n}){return n.request({method:"eth_uninstallFilter",params:[n.id]})}async function yt(t,{blockHash:n,blockNumber:a,blockTag:e,hash:r,index:s,sender:f,nonce:b}){var o,c,u;const i=e||"latest",g=a!==void 0?q(a):void 0;let p=null;if(r?p=await t.request({method:"eth_getTransactionByHash",params:[r]},{dedupe:!0}):n?p=await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[n,q(s)]},{dedupe:!0}):typeof s=="number"?p=await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[g||i,q(s)]},{dedupe:!!g}):f&&typeof b=="number"&&(p=await t.request({method:"eth_getTransactionBySenderAndNonce",params:[f,q(b)]},{dedupe:!0})),!p)throw new E({blockHash:n,blockNumber:a,blockTag:i,hash:r,index:s});return(((u=(c=(o=t.chain)==null?void 0:o.formatters)==null?void 0:c.transaction)==null?void 0:u.format)||Q)(p,"getTransaction")}async function O(t,{hash:n}){var r,s,f;const a=await t.request({method:"eth_getTransactionReceipt",params:[n]},{dedupe:!0});if(!a)throw new H({hash:n});return(((f=(s=(r=t.chain)==null?void 0:r.formatters)==null?void 0:s.transactionReceipt)==null?void 0:f.format)||Y)(a,"getTransactionReceipt")}function wt(t,{emitOnBegin:n=!1,emitMissed:a=!1,onBlockNumber:e,onError:r,poll:s,pollingInterval:f=t.pollingInterval}){const b=typeof s<"u"?s:!(t.transport.type==="webSocket"||t.transport.type==="ipc"||t.transport.type==="fallback"&&(t.transport.transports[0].config.type==="webSocket"||t.transport.transports[0].config.type==="ipc"));let i;return b?(()=>{const l=C(["watchBlockNumber",t.uid,n,a,f]);return _(l,{onBlockNumber:e,onError:r},o=>U(async()=>{var c;try{const u=await T(t,gt,"getBlockNumber")({cacheTime:0});if(i!==void 0){if(u===i)return;if(u-i>1&&a)for(let d=i+1n;d<u;d++)o.onBlockNumber(d,i),i=d}(i===void 0||u>i)&&(o.onBlockNumber(u,i),i=u)}catch(u){(c=o.onError)==null||c.call(o,u)}},{emitOnBegin:n,interval:f}))})():(()=>{const l=C(["watchBlockNumber",t.uid,n,a]);return _(l,{onBlockNumber:e,onError:r},o=>{let c=!0,u=()=>c=!1;return(async()=>{try{const d=(()=>{if(t.transport.type==="fallback"){const N=t.transport.transports.find(h=>h.config.type==="webSocket"||h.config.type==="ipc");return N?N.value:t.transport}return t.transport})(),{unsubscribe:w}=await d.subscribe({params:["newHeads"],onData(N){var I;if(!c)return;const h=at((I=N.result)==null?void 0:I.number);o.onBlockNumber(h,i),i=h},onError(N){var h;(h=o.onError)==null||h.call(o,N)}});u=w,c||u()}catch(d){r==null||r(d)}})(),()=>u()})})()}async function Rt(t,n){const{checkReplacement:a=!0,confirmations:e=1,hash:r,onReplaced:s,retryCount:f=6,retryDelay:b=({count:m})=>~~(1<<m)*200,timeout:i=18e4}=n,g=C(["waitForTransactionReceipt",t.uid,r]),p=(()=>{var m;return n.pollingInterval?n.pollingInterval:(m=t.chain)!=null&&m.experimental_preconfirmationTime?t.chain.experimental_preconfirmationTime:t.pollingInterval})();let l,o,c,u=!1,d,w;const{promise:N,resolve:h,reject:I}=rt(),F=i?setTimeout(()=>{w==null||w(),d==null||d(),I(new J({hash:r}))},i):void 0;return d=_(g,{onReplaced:s,resolve:h,reject:I},async m=>{if(c=await T(t,O,"getTransactionReceipt")({hash:r}).catch(()=>{}),c&&e<=1){clearTimeout(F),m.resolve(c),d==null||d();return}w=T(t,wt,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber($){const B=k=>{clearTimeout(F),w==null||w(),k(),d==null||d()};let R=$;if(!u)try{if(c){if(e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c));return}if(a&&!l&&(u=!0,await A(async()=>{l=await T(t,yt,"getTransaction")({hash:r}),l.blockNumber&&(R=l.blockNumber)},{delay:b,retryCount:f}),u=!1),c=await T(t,O,"getTransactionReceipt")({hash:r}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c))}catch(k){if(k instanceof E||k instanceof H){if(!l){u=!1;return}try{o=l,u=!0;const P=await A(()=>T(t,W,"getBlock")({blockNumber:R,includeTransactions:!0}),{delay:b,retryCount:f,shouldRetry:({error:x})=>x instanceof X});u=!1;const y=P.transactions.find(({from:x,nonce:V})=>x===o.from&&V===o.nonce);if(!y||(c=await T(t,O,"getTransactionReceipt")({hash:y.hash}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e)))return;let j="replaced";y.to===o.to&&y.value===o.value&&y.input===o.input?j="repriced":y.from===y.to&&y.value===0n&&(j="cancelled"),B(()=>{var x;(x=m.onReplaced)==null||x.call(m,{reason:j,replacedTransaction:o,transaction:y,transactionReceipt:c}),m.resolve(c)})}catch(P){B(()=>m.reject(P))}}else B(()=>m.reject(k))}}})}),N}class kt extends st{constructor({value:n}){super(`Number \`${n}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Pt(t,n){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new kt({value:t});let[a,e="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),e=e.replace(/(0+)$/,""),n===0)Math.round(+`.${e}`)===1&&(a=`${BigInt(a)+1n}`),e="";else if(e.length>n){const[s,f,b]=[e.slice(0,n-1),e.slice(n-1,n),e.slice(n)],i=Math.round(+`${f}.${b}`);i>9?e=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):e=`${s}${i}`,e.length>n&&(e=e.slice(1),a=`${BigInt(a)+1n}`),e=e.slice(0,n)}else e=e.padEnd(n,"0");return BigInt(`${r?"-":""}${a}${e}`)}function xt(t){const{batch:n,chain:a,ccipRead:e,dataSuffix:r,key:s="base",name:f="Base Client",tokens:b,type:i="base"}=t,g=t.experimental_blockTag??(typeof(a==null?void 0:a.experimental_preconfirmationTime)=="number"?"pending":void 0),p=(a==null?void 0:a.blockTime)??12e3,l=Math.min(Math.max(Math.floor(p/2),500),4e3),o=t.pollingInterval??l,c=t.cacheTime??o,u=t.account?Z(t.account):void 0,{config:d,request:w,value:N}=t.transport({account:u,chain:a,pollingInterval:o}),h={...d,...N},I={account:u,batch:n,cacheTime:c,ccipRead:e,chain:a,dataSuffix:r,key:s,name:f,pollingInterval:o,request:w,tokens:b,transport:h,type:i,uid:ot(),...g?{experimental_blockTag:g}:{}};function F(m){return $=>{const B=$(m);for(const k in I)delete B[k];const R={...m,...B};for(const k in B){const P=m[k],y=B[k];L(P)&&L(y)&&(R[k]={...P,...y})}return Object.assign(R,{extend:F(R)})}}return Object.assign(I,{extend:F(I)})}function L(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}function Ft(t,n){const a=(e={})=>n(t,e);for(const e of["call","calls","callWithPeriod","estimateGas","simulate"])if(Object.hasOwn(n,e)){const r=n[e];a[e]=(s={})=>r.length>=2?r(t,s):r.length===0?r():r(s)}for(const e of["extractEvent","extractEvents"])Object.hasOwn(n,e)&&(a[e]=n[e]);return a}async function Tt(t){const n=ut(t,{method:"eth_newPendingTransactionFilter"}),a=await t.request({method:"eth_newPendingTransactionFilter"});return{id:a,request:n(a),type:"transaction"}}async function qt(t,{address:n,blockHash:a,blockNumber:e,blockTag:r=t.experimental_blockTag??"latest",requireCanonical:s}){var i,g,p;const f=K({blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});if((i=t.batch)!=null&&i.multicall&&((p=(g=t.chain)==null?void 0:g.contracts)!=null&&p.multicall3)){const l=t.chain.contracts.multicall3.address,o=tt({abi:M,functionName:"getEthBalance",args:[n]}),{data:c}=await T(t,nt,"call")({to:l,data:o,blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});return et({abi:M,functionName:"getEthBalance",args:[n],data:c||"0x"})}const b=await t.request({method:"eth_getBalance",params:[n,f]});return BigInt(b)}function vt(t,{batch:n=!0,onError:a,onTransactions:e,poll:r,pollingInterval:s=t.pollingInterval}){return(typeof r<"u"?r:t.transport.type!=="webSocket"&&t.transport.type!=="ipc")?(()=>{const g=C(["watchPendingTransactions",t.uid,n,s]);return _(g,{onTransactions:e,onError:a},p=>{let l;const o=U(async()=>{var c;try{if(!l)try{l=await T(t,Tt,"createPendingTransactionFilter")({});return}catch(d){throw o(),d}const u=await T(t,mt,"getFilterChanges")({filter:l});if(u.length===0)return;if(n)p.onTransactions(u);else for(const d of u)p.onTransactions([d])}catch(u){(c=p.onError)==null||c.call(p,u)}},{emitOnBegin:!0,interval:s});return async()=>{l&&await T(t,ht,"uninstallFilter")({filter:l}),o()}})})():(()=>{let g=!0,p=()=>g=!1;return(async()=>{try{const{unsubscribe:l}=await t.transport.subscribe({params:["newPendingTransactions"],onData(o){if(!g)return;const c=o.result;e([c])},onError(o){a==null||a(o)}});p=l,g||p()}catch(l){a==null||a(l)}})(),()=>p()})()}function Ct(t,n={}){const{key:a="custom",methods:e,name:r="Custom Provider",retryDelay:s}=n;return({retryCount:f})=>ct({key:a,methods:e,name:r,request:t.request.bind(t),retryCount:n.retryCount??f,retryDelay:s,type:"custom"})}export{kt as I,Ct as a,Rt as b,xt as c,yt as d,vt as e,U as f,qt as g,ut as h,mt as i,gt as j,wt as k,O as l,Tt as m,Ft as n,_ as o,Pt as p,ht as u,dt as w};
@@ -1,4 +1,4 @@
1
- import{a as y,i as $,b as l}from"./lit-element-B3y9oplH.js";import{n as S,r as u}from"./class-map-CxwNmq0D.js";import"./index-BX8-GtYO.js";import{c as x,U as _}from"./index-OxDwxhIP.js";import{W as E}from"./index-BFFeuHAN.js";import{O as m,R as p,C as f,S as h,v as C,x as R}from"./W3MFrameProviderSingleton-DyHElSGY.js";import{ReownAuthentication as v}from"./features-B9o2bxOE.js";import"./index-DbCMsBDL.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-DejfrZ8i.js";import"./intl-CBcMB1D2.js";import"./index-JweqbyGF.js";import"./events-DQ172AOg.js";import"./index-INHGq5Es.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-BACQuryf.js";import"./index.es-DdtYF7po.js";import"./browser-ponyfill-I5CKtKME.js";import"./NetworkUtil-EoWQDMpU.js";import"./index-DOiEVNYb.js";import"./index-BJM0Y8Dj.js";const D=y`
1
+ import{a as y,i as $,b as l}from"./lit-element-B3y9oplH.js";import{n as S,r as u}from"./class-map-CxwNmq0D.js";import"./index-CVOcWyr3.js";import{c as x,U as _}from"./index-BzkS1G6W.js";import{W as E}from"./index-CpR4TF12.js";import{O as m,R as p,C as f,S as h,v as C,x as R}from"./W3MFrameProviderSingleton-CRZ8AP2Q.js";import{ReownAuthentication as v}from"./features-COoncQLs.js";import"./index-0kdmGL8P.js";import"./react-OEOSdkUk.js";import"./sentry-B60WY-np.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-lk3HAbPB.js";import"./intl-CBcMB1D2.js";import"./index-BKGDTHnI.js";import"./events-DQ172AOg.js";import"./index-CcVPLkSq.js";import"./index-CJEkcTww.js";import"./index-nibyPLVP.js";import"./index-BBAMyxaq.js";import"./index.es-DrGoY9Xx.js";import"./browser-ponyfill-fSxUcg6c.js";import"./NetworkUtil-CO-1nCx-.js";import"./index-DN1EN0BQ.js";import"./index-9ZdEDnsf.js";const D=y`
2
2
  .email-sufixes {
3
3
  display: flex;
4
4
  flex-direction: row;
@@ -0,0 +1 @@
1
+ import{w as r}from"./utils-BkRfOA0C.js";import{d as a}from"./decimals-DyjR4aoq.js";import"./sentry-B60WY-np.js";import"./react-OEOSdkUk.js";import"./prepare-contract-call-Nm9e1q7x.js";async function o(c){return r(()=>a(c),{cacheKey:`${c.contract.chain.id}:${c.contract.address}:decimals`,cacheTime:Number.POSITIVE_INFINITY})}export{o as decimals};
@@ -1 +1 @@
1
- import{r as c}from"./prepare-contract-call-BnXbUbQT.js";const n="0x313ce567",o=[],r=[{type:"uint8"}];async function s(t){return c({contract:t.contract,method:[n,o,r],params:[]})}export{s as d};
1
+ import{r as c}from"./prepare-contract-call-Nm9e1q7x.js";const n="0x313ce567",o=[],r=[{type:"uint8"}];async function s(t){return c({contract:t.contract,method:[n,o,r],params:[]})}export{s as d};
@@ -1 +1 @@
1
- import{t as r}from"./prepare-contract-call-BnXbUbQT.js";function o(e){const t=Array.isArray(e.method)?e.method[0]:r(e.method);return e.availableSelectors.includes(t)}export{o as d};
1
+ import{t as r}from"./prepare-contract-call-Nm9e1q7x.js";function o(e){const t=Array.isArray(e.method)?e.method[0]:r(e.method);return e.availableSelectors.includes(t)}export{o as d};
@@ -1 +1 @@
1
- import{r}from"./react-DehiWSvs.js";import{p as n}from"./dcl-schemas-CmtP3U6y.js";function f(){const e=r.useRef(null),[o,c]=r.useState(!0);return r.useEffect(()=>{const t=e.current;if(!t||typeof IntersectionObserver>"u")return;const s=new IntersectionObserver(i=>c(i.some(a=>a.isIntersecting)),{rootMargin:"200px"});return s.observe(t),()=>s.disconnect()},[]),{ref:e,active:o}}function d(e){if(e)try{n.sendMessage(e,n.PreviewMessageType.CONTROLLER_REQUEST,{id:`dispose-${Date.now()}`,namespace:"scene",method:"cleanup",params:[]})}catch{}}export{d,f as u};
1
+ import{r}from"./react-OEOSdkUk.js";import{p as n}from"./dcl-schemas-CmtP3U6y.js";function f(){const e=r.useRef(null),[o,c]=r.useState(!0);return r.useEffect(()=>{const t=e.current;if(!t||typeof IntersectionObserver>"u")return;const s=new IntersectionObserver(i=>c(i.some(a=>a.isIntersecting)),{rootMargin:"200px"});return s.observe(t),()=>s.disconnect()},[]),{ref:e,active:o}}function d(e){if(e)try{n.sendMessage(e,n.PreviewMessageType.CONTROLLER_REQUEST,{id:`dispose-${Date.now()}`,namespace:"scene",method:"cleanup",params:[]})}catch{}}export{d,f as u};
@@ -1,4 +1,4 @@
1
- import{d as S}from"./index-BX8-GtYO.js";import{c as d}from"./index-OxDwxhIP.js";import{W as C}from"./index-BFFeuHAN.js";import{C as D,k as g,O as h,E as c,M as _,R as s,S as f,b,o as m,y as $}from"./W3MFrameProviderSingleton-DyHElSGY.js";import{i as y,b as u,a as W}from"./lit-element-B3y9oplH.js";import{r as E}from"./class-map-CxwNmq0D.js";import"./index-DxSEHau1.js";import"./index-DOiEVNYb.js";import{e as P,n as N}from"./ref-BsAZ42-h.js";import"./index-CMV7iaeR.js";import"./index-_943ql8C.js";import{au as T}from"./NetworkUtil-EoWQDMpU.js";import"./index-DbCMsBDL.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-DejfrZ8i.js";import"./intl-CBcMB1D2.js";import"./index-JweqbyGF.js";import"./events-DQ172AOg.js";import"./index-INHGq5Es.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-BACQuryf.js";import"./index.es-DdtYF7po.js";import"./browser-ponyfill-I5CKtKME.js";import"./index-BJM0Y8Dj.js";import"./async-directive-BRxn_Py3.js";import"./index-D3BUTCsu.js";var F=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(i=(n<3?a(i):n>3?a(e,t,i):a(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i};let I=class extends C{constructor(){super(...arguments),this.onOtpSubmit=async e=>{var t,r;try{if(this.authConnector){const n=D.state.activeChain,i=g.getConnections(n),a=(t=h.state.remoteFeatures)==null?void 0:t.multiWallet,l=i.length>0;if(await this.authConnector.provider.connectOtp({otp:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),n)await g.connectExternal(this.authConnector,n);else throw new Error("Active chain is not set on ChainController");if((r=h.state.remoteFeatures)!=null&&r.emailCapture)return;if(h.state.siwx){_.close();return}if(l&&a){s.replace("ProfileWallets"),f.showSuccess("New Wallet Added");return}_.close()}}catch(n){throw c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:b.parseError(n)}}),n}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};I=F([d("w3m-email-verify-otp-view")],I);const U=S`
1
+ import{d as S}from"./index-CVOcWyr3.js";import{c as d}from"./index-BzkS1G6W.js";import{W as C}from"./index-CpR4TF12.js";import{C as D,k as g,O as h,E as c,M as _,R as s,S as f,b,o as m,y as $}from"./W3MFrameProviderSingleton-CRZ8AP2Q.js";import{i as y,b as u,a as W}from"./lit-element-B3y9oplH.js";import{r as E}from"./class-map-CxwNmq0D.js";import"./index-CA4L-7AN.js";import"./index-DN1EN0BQ.js";import{e as P,n as N}from"./ref-BsAZ42-h.js";import"./index-B7SwXBLX.js";import"./index-BkyUhgF6.js";import{au as T}from"./NetworkUtil-CO-1nCx-.js";import"./index-0kdmGL8P.js";import"./react-OEOSdkUk.js";import"./sentry-B60WY-np.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-lk3HAbPB.js";import"./intl-CBcMB1D2.js";import"./index-BKGDTHnI.js";import"./events-DQ172AOg.js";import"./index-CcVPLkSq.js";import"./index-CJEkcTww.js";import"./index-nibyPLVP.js";import"./index-BBAMyxaq.js";import"./index.es-DrGoY9Xx.js";import"./browser-ponyfill-fSxUcg6c.js";import"./index-9ZdEDnsf.js";import"./async-directive-BRxn_Py3.js";import"./index-c7dUn7oS.js";var F=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(i=(n<3?a(i):n>3?a(e,t,i):a(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i};let I=class extends C{constructor(){super(...arguments),this.onOtpSubmit=async e=>{var t,r;try{if(this.authConnector){const n=D.state.activeChain,i=g.getConnections(n),a=(t=h.state.remoteFeatures)==null?void 0:t.multiWallet,l=i.length>0;if(await this.authConnector.provider.connectOtp({otp:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),n)await g.connectExternal(this.authConnector,n);else throw new Error("Active chain is not set on ChainController");if((r=h.state.remoteFeatures)!=null&&r.emailCapture)return;if(h.state.siwx){_.close();return}if(l&&a){s.replace("ProfileWallets"),f.showSuccess("New Wallet Added");return}_.close()}}catch(n){throw c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:b.parseError(n)}}),n}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};I=F([d("w3m-email-verify-otp-view")],I);const U=S`
2
2
  wui-icon-box {
3
3
  height: ${({spacing:o})=>o[16]};
4
4
  width: ${({spacing:o})=>o[16]};
@@ -1,4 +1,4 @@
1
- import{a as Y,i as g,b as c}from"./lit-element-B3y9oplH.js";import{r as d,n as l,o as K}from"./class-map-CxwNmq0D.js";import{d as E,r as z,e as B}from"./index-BX8-GtYO.js";import{c as w}from"./index-OxDwxhIP.js";import{M as W,O as G,o as _,T as j,H as L,d as N,C as m,I as V,l as C,W as h,k as q,J as X,K as v,b as k,E as O,S as J,R as Q}from"./W3MFrameProviderSingleton-DyHElSGY.js";import"./index-B-FT9tly.js";import{au as D}from"./NetworkUtil-EoWQDMpU.js";import{e as Z,n as ee}from"./ref-BsAZ42-h.js";import"./index-BJM0Y8Dj.js";import{H as I}from"./HelpersUtil-BsEaPmaI.js";import"./index-D3BUTCsu.js";import"./index-L_H5aHd6.js";import"./index-CMV7iaeR.js";import"./index-DxSEHau1.js";import"./index-DOiEVNYb.js";import{N as te}from"./NavigationUtil-DmfK5sOV.js";import"./index-DbCMsBDL.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-DejfrZ8i.js";import"./intl-CBcMB1D2.js";import"./index-JweqbyGF.js";import"./events-DQ172AOg.js";import"./index-INHGq5Es.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-BACQuryf.js";import"./index.es-DdtYF7po.js";import"./browser-ponyfill-I5CKtKME.js";import"./async-directive-BRxn_Py3.js";import"./ConstantsUtil-Di3dRDAF.js";const ie=Y`
1
+ import{a as Y,i as g,b as c}from"./lit-element-B3y9oplH.js";import{r as d,n as l,o as K}from"./class-map-CxwNmq0D.js";import{d as E,r as z,e as B}from"./index-CVOcWyr3.js";import{c as w}from"./index-BzkS1G6W.js";import{M as W,O as G,o as _,T as j,H as L,d as N,C as m,I as V,l as C,W as h,k as q,J as X,K as v,b as k,E as O,S as J,R as Q}from"./W3MFrameProviderSingleton-CRZ8AP2Q.js";import"./index-C7RtdG3Z.js";import{au as D}from"./NetworkUtil-CO-1nCx-.js";import{e as Z,n as ee}from"./ref-BsAZ42-h.js";import"./index-9ZdEDnsf.js";import{H as I}from"./HelpersUtil-Ew-F4vBT.js";import"./index-c7dUn7oS.js";import"./index-BAuvCwBS.js";import"./index-B7SwXBLX.js";import"./index-CA4L-7AN.js";import"./index-DN1EN0BQ.js";import{N as te}from"./NavigationUtil-DmfK5sOV.js";import"./index-0kdmGL8P.js";import"./react-OEOSdkUk.js";import"./sentry-B60WY-np.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-lk3HAbPB.js";import"./intl-CBcMB1D2.js";import"./index-BKGDTHnI.js";import"./events-DQ172AOg.js";import"./index-CcVPLkSq.js";import"./index-CJEkcTww.js";import"./index-nibyPLVP.js";import"./index-BBAMyxaq.js";import"./index.es-DrGoY9Xx.js";import"./browser-ponyfill-fSxUcg6c.js";import"./async-directive-BRxn_Py3.js";import"./ConstantsUtil-BkhvNc68.js";const ie=Y`
2
2
  div {
3
3
  width: 100%;
4
4
  }
@@ -1 +1 @@
1
- import{aa as k,ab as A,ac as $,ad as P,aZ as O,a_ as B,a$ as M,b0 as U,b1 as D,b2 as V,b3 as q,b4 as G}from"./index-DbCMsBDL.js";import{r as y,j as N}from"./react-DehiWSvs.js";import{g as L,a as W,c as Z,b as H}from"./clsx-WwvpwSg0.js";import{s as J}from"./styled-INC_AiMB.js";function K(o){return L("MuiSvgIcon",o)}W("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Q=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],X=o=>{const{color:e,fontSize:r,classes:a}=o,t={root:["root",e!=="inherit"&&`color${P(e)}`,`fontSize${P(r)}`]};return H(t,K,a)},Y=J("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.color!=="inherit"&&e[`color${P(r.color)}`],e[`fontSize${P(r.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var r,a,t,l,d,m,g,f,u,i,p,h,c;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(a=r.create)==null?void 0:a.call(r,"fill",{duration:(t=o.transitions)==null||(t=t.duration)==null?void 0:t.shorter}),fontSize:{inherit:"inherit",small:((l=o.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,20))||"1.25rem",medium:((m=o.typography)==null||(g=m.pxToRem)==null?void 0:g.call(m,24))||"1.5rem",large:((f=o.typography)==null||(u=f.pxToRem)==null?void 0:u.call(f,35))||"2.1875rem"}[e.fontSize],color:(i=(p=(o.vars||o).palette)==null||(p=p[e.color])==null?void 0:p.main)!=null?i:{action:(h=(o.vars||o).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.disabled,inherit:void 0}[e.color]}}),ee=y.forwardRef(function(e,r){const a=k({props:e,name:"MuiSvgIcon"}),{children:t,className:l,color:d="inherit",component:m="svg",fontSize:g="medium",htmlColor:f,inheritViewBox:u=!1,titleAccess:i,viewBox:p="0 0 24 24"}=a,h=A(a,Q),c=y.isValidElement(t)&&t.type==="svg",s=$({},a,{color:d,component:m,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:c}),n={};u||(n.viewBox=p);const v=X(s);return N.jsxs(Y,$({as:m,className:Z(v.root,l),focusable:"false",color:f,"aria-hidden":i?void 0:!0,role:i?"img":void 0,ref:r},n,h,c&&t.props,{ownerState:s,children:[c?t.props.children:t,i?N.jsx("title",{children:i}):null]}))});ee.muiName="SvgIcon";var te=O,oe=function(e){return e!=="theme"},T=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?te:oe},E=function(e,r,a){var t;if(r){var l=r.shouldForwardProp;t=e.__emotion_forwardProp&&l?function(d){return e.__emotion_forwardProp(d)&&l(d)}:l}return typeof t!="function"&&a&&(t=e.__emotion_forwardProp),t},re=function(e){var r=e.cache,a=e.serialized,t=e.isStringTag;return V(r,a,t),q(function(){return G(r,a,t)}),null},ae=function o(e,r){var a=e.__emotion_real===e,t=a&&e.__emotion_base||e,l,d;r!==void 0&&(l=r.label,d=r.target);var m=E(e,r,a),g=m||T(t),f=!g("as");return function(){var u=arguments,i=a&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(l!==void 0&&i.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)i.push.apply(i,u);else{var p=u[0];i.push(p[0]);for(var h=u.length,c=1;c<h;c++)i.push(u[c],p[c])}var s=B(function(n,v,_){var z=f&&n.as||t,S="",C=[],b=n;if(n.theme==null){b={};for(var I in n)b[I]=n[I];b.theme=y.useContext(M)}typeof n.className=="string"?S=U(v.registered,C,n.className):n.className!=null&&(S=n.className+" ");var F=D(i.concat(C),v.registered,b);S+=v.key+"-"+F.name,d!==void 0&&(S+=" "+d);var j=f&&m===void 0?T(z):g,w={};for(var x in n)f&&x==="as"||j(x)&&(w[x]=n[x]);return w.className=S,_&&(w.ref=_),y.createElement(y.Fragment,null,y.createElement(re,{cache:v,serialized:F,isStringTag:typeof z=="string"}),y.createElement(z,w))});return s.displayName=l!==void 0?l:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",s.defaultProps=e.defaultProps,s.__emotion_real=s,s.__emotion_base=t,s.__emotion_styles=i,s.__emotion_forwardProp=m,Object.defineProperty(s,"toString",{value:function(){return"."+d}}),s.withComponent=function(n,v){var _=o(n,$({},r,v,{shouldForwardProp:E(s,v,!0)}));return _.apply(void 0,i)},s}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],R=ae.bind(null);ne.forEach(function(o){R[o]=R(o)});export{ee as S,R as n};
1
+ import{ad as k,ae as A,af as C,ag as P,b0 as O,b1 as B,b2 as M,b3 as U,b4 as D,b5 as V,b6 as q,b7 as G}from"./index-0kdmGL8P.js";import{r as y,j as N}from"./react-OEOSdkUk.js";import{g as L,a as W,c as H,b as J}from"./clsx-WwvpwSg0.js";import{s as K}from"./styled-Dlzz4gCY.js";function Q(o){return L("MuiSvgIcon",o)}W("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const X=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Y=o=>{const{color:e,fontSize:r,classes:a}=o,t={root:["root",e!=="inherit"&&`color${P(e)}`,`fontSize${P(r)}`]};return J(t,Q,a)},Z=K("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.color!=="inherit"&&e[`color${P(r.color)}`],e[`fontSize${P(r.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var r,a,t,l,d,m,g,f,u,i,p,h,c;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(a=r.create)==null?void 0:a.call(r,"fill",{duration:(t=o.transitions)==null||(t=t.duration)==null?void 0:t.shorter}),fontSize:{inherit:"inherit",small:((l=o.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,20))||"1.25rem",medium:((m=o.typography)==null||(g=m.pxToRem)==null?void 0:g.call(m,24))||"1.5rem",large:((f=o.typography)==null||(u=f.pxToRem)==null?void 0:u.call(f,35))||"2.1875rem"}[e.fontSize],color:(i=(p=(o.vars||o).palette)==null||(p=p[e.color])==null?void 0:p.main)!=null?i:{action:(h=(o.vars||o).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.disabled,inherit:void 0}[e.color]}}),ee=y.forwardRef(function(e,r){const a=k({props:e,name:"MuiSvgIcon"}),{children:t,className:l,color:d="inherit",component:m="svg",fontSize:g="medium",htmlColor:f,inheritViewBox:u=!1,titleAccess:i,viewBox:p="0 0 24 24"}=a,h=A(a,X),c=y.isValidElement(t)&&t.type==="svg",s=C({},a,{color:d,component:m,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:c}),n={};u||(n.viewBox=p);const v=Y(s);return N.jsxs(Z,C({as:m,className:H(v.root,l),focusable:"false",color:f,"aria-hidden":i?void 0:!0,role:i?"img":void 0,ref:r},n,h,c&&t.props,{ownerState:s,children:[c?t.props.children:t,i?N.jsx("title",{children:i}):null]}))});ee.muiName="SvgIcon";var te=O,oe=function(e){return e!=="theme"},T=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?te:oe},E=function(e,r,a){var t;if(r){var l=r.shouldForwardProp;t=e.__emotion_forwardProp&&l?function(d){return e.__emotion_forwardProp(d)&&l(d)}:l}return typeof t!="function"&&a&&(t=e.__emotion_forwardProp),t},re=function(e){var r=e.cache,a=e.serialized,t=e.isStringTag;return V(r,a,t),q(function(){return G(r,a,t)}),null},ae=function o(e,r){var a=e.__emotion_real===e,t=a&&e.__emotion_base||e,l,d;r!==void 0&&(l=r.label,d=r.target);var m=E(e,r,a),g=m||T(t),f=!g("as");return function(){var u=arguments,i=a&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(l!==void 0&&i.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)i.push.apply(i,u);else{var p=u[0];i.push(p[0]);for(var h=u.length,c=1;c<h;c++)i.push(u[c],p[c])}var s=B(function(n,v,b){var z=f&&n.as||t,S="",$=[],_=n;if(n.theme==null){_={};for(var I in n)_[I]=n[I];_.theme=y.useContext(M)}typeof n.className=="string"?S=U(v.registered,$,n.className):n.className!=null&&(S=n.className+" ");var F=D(i.concat($),v.registered,_);S+=v.key+"-"+F.name,d!==void 0&&(S+=" "+d);var j=f&&m===void 0?T(z):g,w={};for(var x in n)f&&x==="as"||j(x)&&(w[x]=n[x]);return w.className=S,b&&(w.ref=b),y.createElement(y.Fragment,null,y.createElement(re,{cache:v,serialized:F,isStringTag:typeof z=="string"}),y.createElement(z,w))});return s.displayName=l!==void 0?l:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",s.defaultProps=e.defaultProps,s.__emotion_real=s,s.__emotion_base=t,s.__emotion_styles=i,s.__emotion_forwardProp=m,Object.defineProperty(s,"toString",{value:function(){return"."+d}}),s.withComponent=function(n,v){var b=o(n,C({},r,v,{shouldForwardProp:E(s,v,!0)}));return b.apply(void 0,i)},s}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],R=ae.bind(null);ne.forEach(function(o){R[o]=R(o)});export{ee as S,R as n};
@@ -1 +1 @@
1
- import{g as p}from"./to-serializable-transaction-CI3ePtUl.js";import{s as w,r as y}from"./prepare-contract-call-BnXbUbQT.js";import{w as h}from"./wait-for-tx-receipt-D52q1hNL.js";import"./index-DbCMsBDL.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-DejfrZ8i.js";import"./intl-CBcMB1D2.js";import"./transaction-BRB0QRZP.js";import"./utils-B9hEgCzc.js";import"./transactionReceipt-B2jt8_c5.js";import"./sleep-mAKpSMLY.js";async function f({account:t,serializableTransaction:e,transaction:r,gasless:n}){const a=p({address:n.relayerForwarderAddress,chain:r.chain,client:r.client}),s=await y({contract:a,method:"function getNonce(address) view returns (uint256)",params:[t.address]}),[o,i]=await(async()=>{if(!e.to)throw new Error("engine transactions must have a 'to' address");if(!e.gas)throw new Error("engine transactions must have a 'gas' value");if(!e.data)throw new Error("engine transactions must have a 'data' value");if(n.experimentalChainlessSupport){const d={chainid:BigInt(r.chain.id),data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:a.address,version:"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:l}}),d]}const c={data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{chainId:r.chain.id,name:n.domainName??"GSNv2 Forwarder",verifyingContract:a.address,version:n.domainVersion??"0.0.1"},message:c,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),c]})();return{message:i,messageType:"forward",signature:o}}const g=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],l=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}];async function N(t){const{message:e,messageType:r,signature:n}=await f(t),a=await fetch(t.gasless.relayerUrl,{body:w({forwarderAddress:t.gasless.relayerForwarderAddress,request:e,signature:n,type:r}),headers:{"Content-Type":"application/json"},method:"POST"});if(!a.ok)throw new Error(`Failed to send transaction: ${await a.text()}`);const s=await a.json();if(!s.result)throw new Error(`Relay transaction failed: ${s.message}`);const o=s.result.queueId,i=6e4,m=1e3,c=Date.now()+i;for(;Date.now()<c;){const d=await v({options:t,queueId:o});if(d)return{chain:t.transaction.chain,client:t.transaction.client,transactionHash:d.transactionHash};await new Promise(u=>setTimeout(u,m))}throw new Error(`Failed to find relayed transaction after ${i}ms`)}async function v(t){const{options:e,queueId:r}=t,n=e.gasless.relayerUrl.split("/relayer/")[0],a=await fetch(`${n}/transaction/status/${r}`,{method:"GET"}),s=await a.json();if(!a.ok)return null;const o=s.result;if(!o)return null;switch(o.status){case"errored":throw new Error(`Transaction errored with reason: ${o.errorMessage}`);case"cancelled":throw new Error("Transaction execution cancelled.");case"mined":return await h({chain:e.transaction.chain,client:e.transaction.client,transactionHash:o.transactionHash});default:return null}}export{f as prepareEngineTransaction,N as relayEngineTransaction};
1
+ import{g as p}from"./to-serializable-transaction-BxPcLWhE.js";import{s as w,r as y}from"./prepare-contract-call-Nm9e1q7x.js";import{w as h}from"./wait-for-tx-receipt-DJ9PgMUD.js";import"./index-0kdmGL8P.js";import"./react-OEOSdkUk.js";import"./sentry-B60WY-np.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-lk3HAbPB.js";import"./intl-CBcMB1D2.js";import"./transaction-C7nbuBwl.js";import"./utils-BkRfOA0C.js";import"./transactionReceipt-D9BW4O3E.js";import"./sleep-mAKpSMLY.js";async function f({account:t,serializableTransaction:e,transaction:r,gasless:n}){const a=p({address:n.relayerForwarderAddress,chain:r.chain,client:r.client}),s=await y({contract:a,method:"function getNonce(address) view returns (uint256)",params:[t.address]}),[o,i]=await(async()=>{if(!e.to)throw new Error("engine transactions must have a 'to' address");if(!e.gas)throw new Error("engine transactions must have a 'gas' value");if(!e.data)throw new Error("engine transactions must have a 'data' value");if(n.experimentalChainlessSupport){const d={chainid:BigInt(r.chain.id),data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:a.address,version:"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:l}}),d]}const c={data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{chainId:r.chain.id,name:n.domainName??"GSNv2 Forwarder",verifyingContract:a.address,version:n.domainVersion??"0.0.1"},message:c,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),c]})();return{message:i,messageType:"forward",signature:o}}const g=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],l=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}];async function N(t){const{message:e,messageType:r,signature:n}=await f(t),a=await fetch(t.gasless.relayerUrl,{body:w({forwarderAddress:t.gasless.relayerForwarderAddress,request:e,signature:n,type:r}),headers:{"Content-Type":"application/json"},method:"POST"});if(!a.ok)throw new Error(`Failed to send transaction: ${await a.text()}`);const s=await a.json();if(!s.result)throw new Error(`Relay transaction failed: ${s.message}`);const o=s.result.queueId,i=6e4,m=1e3,c=Date.now()+i;for(;Date.now()<c;){const d=await v({options:t,queueId:o});if(d)return{chain:t.transaction.chain,client:t.transaction.client,transactionHash:d.transactionHash};await new Promise(u=>setTimeout(u,m))}throw new Error(`Failed to find relayed transaction after ${i}ms`)}async function v(t){const{options:e,queueId:r}=t,n=e.gasless.relayerUrl.split("/relayer/")[0],a=await fetch(`${n}/transaction/status/${r}`,{method:"GET"}),s=await a.json();if(!a.ok)return null;const o=s.result;if(!o)return null;switch(o.status){case"errored":throw new Error(`Transaction errored with reason: ${o.errorMessage}`);case"cancelled":throw new Error("Transaction execution cancelled.");case"mined":return await h({chain:e.transaction.chain,client:e.transaction.client,transactionHash:o.transactionHash});default:return null}}export{f as prepareEngineTransaction,N as relayEngineTransaction};
@@ -0,0 +1 @@
1
+ import{b as n,i as o,d as s,e as u,C as a}from"./index-0kdmGL8P.js";function c(r){const e=r;return e.code===4001||e.name==="AbortError"||/reject|denied|cancel/i.test(e.message??"")}function d(r){const e=r;return e.code===402||e.status===402||(e.message??"").toLowerCase().includes("insufficient")}function l(r,e,i={}){if(c(r))return n("errors.rejected");if(o(r))return n("errors.wrongNetwork",{current:s(r.current),required:s(r.required)});if(u(r))return n("errors.walletUnauthorized");if(i.sale){const t=(r.message??"").toLowerCase();if(t.includes("insufficient"))return n("errors.insufficient",{currency:a.name});if(/not for sale|not found|no active listing|404/.test(t))return n("errors.soldOrRemoved");if(t.includes("your own listing"))return n("errors.cantBuyOwn")}return e}export{d as a,l as f,c as i};
@@ -0,0 +1 @@
1
+ import{g as s,t as n}from"./to-serializable-transaction-BxPcLWhE.js";import{r as c}from"./prepare-contract-call-Nm9e1q7x.js";import{s as m}from"./signing-DH8o0qgI.js";import"./index-0kdmGL8P.js";import"./react-OEOSdkUk.js";import"./sentry-B60WY-np.js";import"./dcl-schemas-CmtP3U6y.js";import"./ethers-lk3HAbPB.js";import"./intl-CBcMB1D2.js";import"./transaction-C7nbuBwl.js";import"./utils-BkRfOA0C.js";import"./get-bytecode-BsB9WanS.js";const p="0x420000000000000000000000000000000000000F";async function O(r){const{transaction:t,gasPriceOracleAddress:a}=r,i=s({address:a||p,chain:t.chain,client:t.client}),{gasPrice:l,...e}=await n({transaction:t}),o=m({transaction:e});return c({contract:i,method:"function getL1Fee(bytes memory _data) view returns (uint256)",params:[o]})}export{O as estimateL1Fee};
@@ -0,0 +1 @@
1
+ import{h as i}from"./prepare-contract-call-Nm9e1q7x.js";import"./utils-BkRfOA0C.js";import"./sentry-B60WY-np.js";import"./react-OEOSdkUk.js";async function n(t,e){const a=await t({method:"eth_estimateGas",params:[e]});return i(a)}export{n as eth_estimateGas};
@@ -1 +1 @@
1
- import{g as o}from"./prepare-contract-call-BnXbUbQT.js";async function r(e,t){return await e({method:"eth_getStorageAt",params:[o(t.address),t.position,t.blockTag??"latest"]})}export{r as e};
1
+ import{g as o}from"./prepare-contract-call-Nm9e1q7x.js";async function r(e,t){return await e({method:"eth_getStorageAt",params:[o(t.address),t.position,t.blockTag??"latest"]})}export{r as e};
@@ -0,0 +1 @@
1
+ import{n as e,a as r}from"./prepare-contract-call-Nm9e1q7x.js";import"./utils-BkRfOA0C.js";import"./sentry-B60WY-np.js";import"./react-OEOSdkUk.js";async function m(t,o){const n=await t({method:"eth_getTransactionCount",params:[o.address,o.blockNumber?e(o.blockNumber):o.blockTag||"pending"]});return r(n)}export{m as eth_getTransactionCount};
@@ -1 +1 @@
1
- import{d as e}from"./utils-B9hEgCzc.js";const n=e({blockExplorers:[{name:"Etherscan",url:"https://etherscan.io"}],id:1,name:"Ethereum",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"}}),t=n;export{n as e,t as m};
1
+ import{d as e}from"./utils-BkRfOA0C.js";const n=e({blockExplorers:[{name:"Etherscan",url:"https://etherscan.io"}],id:1,name:"Ethereum",nativeCurrency:{decimals:18,name:"Ether",symbol:"ETH"}}),t=n;export{n as e,t as m};
@@ -1,4 +1,4 @@
1
- import{g as Zr,c as fa}from"./react-DehiWSvs.js";import{p as mi,g as A0}from"./sentry-973sfbO9.js";var Nn={exports:{}},yi={},E0;function ca(){return E0||(E0=1,(function(n){Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e={},t={};t.byteLength=w,t.toByteArray=C,t.fromByteArray=k;for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,x=s.length;c<x;++c)r[c]=s[c],i[s.charCodeAt(c)]=c;i[45]=62,i[95]=63;function g(D){var U=D.length;if(U%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var q=D.indexOf("=");q===-1&&(q=U);var z=q===U?0:4-q%4;return[q,z]}function w(D){var U=g(D),q=U[0],z=U[1];return(q+z)*3/4-z}function M(D,U,q){return(U+q)*3/4-q}function C(D){var U,q=g(D),z=q[0],j=q[1],Y=new o(M(D,z,j)),X=0,ie=j>0?z-4:z,se;for(se=0;se<ie;se+=4)U=i[D.charCodeAt(se)]<<18|i[D.charCodeAt(se+1)]<<12|i[D.charCodeAt(se+2)]<<6|i[D.charCodeAt(se+3)],Y[X++]=U>>16&255,Y[X++]=U>>8&255,Y[X++]=U&255;return j===2&&(U=i[D.charCodeAt(se)]<<2|i[D.charCodeAt(se+1)]>>4,Y[X++]=U&255),j===1&&(U=i[D.charCodeAt(se)]<<10|i[D.charCodeAt(se+1)]<<4|i[D.charCodeAt(se+2)]>>2,Y[X++]=U>>8&255,Y[X++]=U&255),Y}function G(D){return r[D>>18&63]+r[D>>12&63]+r[D>>6&63]+r[D&63]}function H(D,U,q){for(var z,j=[],Y=U;Y<q;Y+=3)z=(D[Y]<<16&16711680)+(D[Y+1]<<8&65280)+(D[Y+2]&255),j.push(G(z));return j.join("")}function k(D){for(var U,q=D.length,z=q%3,j=[],Y=16383,X=0,ie=q-z;X<ie;X+=Y)j.push(H(D,X,X+Y>ie?ie:X+Y));return z===1?(U=D[q-1],j.push(r[U>>2]+r[U<<4&63]+"==")):z===2&&(U=(D[q-2]<<8)+D[q-1],j.push(r[U>>10]+r[U>>4&63]+r[U<<2&63]+"=")),j.join("")}var S={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */S.read=function(D,U,q,z,j){var Y,X,ie=j*8-z-1,se=(1<<ie)-1,ne=se>>1,P=-7,m=q?j-1:0,a=q?-1:1,d=D[U+m];for(m+=a,Y=d&(1<<-P)-1,d>>=-P,P+=ie;P>0;Y=Y*256+D[U+m],m+=a,P-=8);for(X=Y&(1<<-P)-1,Y>>=-P,P+=z;P>0;X=X*256+D[U+m],m+=a,P-=8);if(Y===0)Y=1-ne;else{if(Y===se)return X?NaN:(d?-1:1)*(1/0);X=X+Math.pow(2,z),Y=Y-ne}return(d?-1:1)*X*Math.pow(2,Y-z)},S.write=function(D,U,q,z,j,Y){var X,ie,se,ne=Y*8-j-1,P=(1<<ne)-1,m=P>>1,a=j===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=z?0:Y-1,b=z?1:-1,y=U<0||U===0&&1/U<0?1:0;for(U=Math.abs(U),isNaN(U)||U===1/0?(ie=isNaN(U)?1:0,X=P):(X=Math.floor(Math.log(U)/Math.LN2),U*(se=Math.pow(2,-X))<1&&(X--,se*=2),X+m>=1?U+=a/se:U+=a*Math.pow(2,1-m),U*se>=2&&(X++,se/=2),X+m>=P?(ie=0,X=P):X+m>=1?(ie=(U*se-1)*Math.pow(2,j),X=X+m):(ie=U*Math.pow(2,m-1)*Math.pow(2,j),X=0));j>=8;D[q+d]=ie&255,d+=b,ie/=256,j-=8);for(X=X<<j|ie,ne+=j;ne>0;D[q+d]=X&255,d+=b,X/=256,ne-=8);D[q+d-b]|=y*128};/*!
1
+ import{g as Zr,c as fa}from"./react-OEOSdkUk.js";import{p as mi,g as A0}from"./sentry-B60WY-np.js";var Nn={exports:{}},yi={},E0;function ca(){return E0||(E0=1,(function(n){Object.defineProperties(n,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});var e={},t={};t.byteLength=w,t.toByteArray=C,t.fromByteArray=k;for(var r=[],i=[],o=typeof Uint8Array<"u"?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",c=0,x=s.length;c<x;++c)r[c]=s[c],i[s.charCodeAt(c)]=c;i[45]=62,i[95]=63;function g(D){var U=D.length;if(U%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var q=D.indexOf("=");q===-1&&(q=U);var z=q===U?0:4-q%4;return[q,z]}function w(D){var U=g(D),q=U[0],z=U[1];return(q+z)*3/4-z}function M(D,U,q){return(U+q)*3/4-q}function C(D){var U,q=g(D),z=q[0],j=q[1],Y=new o(M(D,z,j)),X=0,ie=j>0?z-4:z,se;for(se=0;se<ie;se+=4)U=i[D.charCodeAt(se)]<<18|i[D.charCodeAt(se+1)]<<12|i[D.charCodeAt(se+2)]<<6|i[D.charCodeAt(se+3)],Y[X++]=U>>16&255,Y[X++]=U>>8&255,Y[X++]=U&255;return j===2&&(U=i[D.charCodeAt(se)]<<2|i[D.charCodeAt(se+1)]>>4,Y[X++]=U&255),j===1&&(U=i[D.charCodeAt(se)]<<10|i[D.charCodeAt(se+1)]<<4|i[D.charCodeAt(se+2)]>>2,Y[X++]=U>>8&255,Y[X++]=U&255),Y}function G(D){return r[D>>18&63]+r[D>>12&63]+r[D>>6&63]+r[D&63]}function H(D,U,q){for(var z,j=[],Y=U;Y<q;Y+=3)z=(D[Y]<<16&16711680)+(D[Y+1]<<8&65280)+(D[Y+2]&255),j.push(G(z));return j.join("")}function k(D){for(var U,q=D.length,z=q%3,j=[],Y=16383,X=0,ie=q-z;X<ie;X+=Y)j.push(H(D,X,X+Y>ie?ie:X+Y));return z===1?(U=D[q-1],j.push(r[U>>2]+r[U<<4&63]+"==")):z===2&&(U=(D[q-2]<<8)+D[q-1],j.push(r[U>>10]+r[U>>4&63]+r[U<<2&63]+"=")),j.join("")}var S={};/*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh <https://feross.org/opensource> */S.read=function(D,U,q,z,j){var Y,X,ie=j*8-z-1,se=(1<<ie)-1,ne=se>>1,P=-7,m=q?j-1:0,a=q?-1:1,d=D[U+m];for(m+=a,Y=d&(1<<-P)-1,d>>=-P,P+=ie;P>0;Y=Y*256+D[U+m],m+=a,P-=8);for(X=Y&(1<<-P)-1,Y>>=-P,P+=z;P>0;X=X*256+D[U+m],m+=a,P-=8);if(Y===0)Y=1-ne;else{if(Y===se)return X?NaN:(d?-1:1)*(1/0);X=X+Math.pow(2,z),Y=Y-ne}return(d?-1:1)*X*Math.pow(2,Y-z)},S.write=function(D,U,q,z,j,Y){var X,ie,se,ne=Y*8-j-1,P=(1<<ne)-1,m=P>>1,a=j===23?Math.pow(2,-24)-Math.pow(2,-77):0,d=z?0:Y-1,b=z?1:-1,y=U<0||U===0&&1/U<0?1:0;for(U=Math.abs(U),isNaN(U)||U===1/0?(ie=isNaN(U)?1:0,X=P):(X=Math.floor(Math.log(U)/Math.LN2),U*(se=Math.pow(2,-X))<1&&(X--,se*=2),X+m>=1?U+=a/se:U+=a*Math.pow(2,1-m),U*se>=2&&(X++,se/=2),X+m>=P?(ie=0,X=P):X+m>=1?(ie=(U*se-1)*Math.pow(2,j),X=X+m):(ie=U*Math.pow(2,m-1)*Math.pow(2,j),X=0));j>=8;D[q+d]=ie&255,d+=b,ie/=256,j-=8);for(X=X<<j|ie,ne+=j;ne>0;D[q+d]=X&255,d+=b,X/=256,ne-=8);D[q+d-b]|=y*128};/*!
2
2
  * The buffer module from node.js, for the browser.
3
3
  *
4
4
  * @author Feross Aboukhadijeh <https://feross.org>
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-B6MX4qjW.js","_assets/index-DbCMsBDL.js","_assets/react-DehiWSvs.js","_assets/sentry-973sfbO9.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/ethers-DejfrZ8i.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/ethereum-CliiIOgc.js","_assets/utils-B9hEgCzc.js","_assets/types-DC0Zmj1B.js","_assets/get-bytecode-knYex1Eu.js","_assets/prepare-contract-call-BnXbUbQT.js","_assets/to-serializable-transaction-CI3ePtUl.js","_assets/transaction-BRB0QRZP.js","_assets/web-connector-CI1NmWV2.js","_assets/linkAccount-BodpWbRq.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/sleep-mAKpSMLY.js","_assets/detectExtension-DEjVJeUh.js"])))=>i.map(i=>d[i]);
2
- import{u as x,o as F,s as M,a5 as $}from"./prepare-contract-call-BnXbUbQT.js";import{_ as E}from"./index-DbCMsBDL.js";import{w as V,c as H,h as K,a as j}from"./utils-B9hEgCzc.js";import{d as B}from"./detectExtension-DEjVJeUh.js";function oe(e=32){return x(z(e))}function z(e=32){return globalThis.crypto.getRandomValues(new Uint8Array(e))}async function b(e){const{client:t,ecosystem:n,walletType:a,walletAddress:c,chainId:h}=e;return F({client:t,data:{action:"connect",chainId:h,source:"connectWallet",walletAddress:c,walletType:a},ecosystem:n})}const re={async getItem(e){try{if(typeof window<"u"&&window.localStorage)return localStorage.getItem(e)}catch{}return null},async removeItem(e){typeof window<"u"&&window.localStorage&&localStorage.removeItem(e)},async setItem(e,t){try{typeof window<"u"&&window.localStorage&&localStorage.setItem(e,t)}catch{}}};function X(){const e=new Map;return{emit(t,n){const a=e.get(t);if(a)for(const c of a)c(n)},subscribe(t,n){var a;return e.has(t)?(a=e.get(t))==null||a.add(n):e.set(t,new Set([n])),()=>{const c=e.get(t);c&&c.delete(n)}}}}function Y(){return X()}async function Z(e){return V(async()=>{var a;const n=await(await fetch(`${H("inAppWallet")}/api/2024-05-05/ecosystem-wallet`,{headers:{"x-ecosystem-id":e}})).json();if(!n||n.code==="UNAUTHORIZED")throw new Error(n.message||`Could not find ecosystem wallet with id ${e}, please check your ecosystem wallet configuration.`);return(a=n.authOptions)!=null&&a.includes("siwe")&&(n.authOptions=n.authOptions.filter(c=>c!=="siwe"),n.authOptions.push("wallet")),n},{cacheKey:`ecosystem-wallet-options-${e}`,cacheTime:1e3*60*5})}const v=new Map;async function g(e,t,n){var h;const a=M({clientId:e.clientId,ecosystem:n,partialSecretKey:(h=e.secretKey)==null?void 0:h.slice(0,5)});if(v.has(a))return v.get(a);const c=await t(e);return v.set(a,c),c}function q(e){const{createOptions:t,connectorFactory:n,ecosystem:a}=e,c=a?a.id:"inApp",h=Y();let o=t,l,I,i,f,A=null;const C=async s=>{if(a){const r=await Z(a.id),u=r==null?void 0:r.smartAccountOptions;if(u)if(r.smartAccountOptions.executionMode==="EIP7702")o={...o,executionMode:{mode:"EIP7702",sponsorGas:u.sponsorGas}};else{const{defaultChainId:y}=r.smartAccountOptions,m=(s==null?void 0:s.chain)??(y?j(y):void 0);if(!m)throw new Error("A chain must be provided either via 'chain' in connect options or 'defaultChainId' in ecosystem configuration. Please pass it via connect() or update the ecosystem configuration.");o={...o,smartAccount:{chain:m,factoryAddress:u.accountFactoryAddress,sponsorGas:u.sponsorGas}}}}};return{autoConnect:async s=>{const{autoConnectInAppWallet:r}=await E(async()=>{const{autoConnectInAppWallet:d}=await import("./index-B6MX4qjW.js").then(_=>_.n);return{autoConnectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},connect:async s=>{const{connectInAppWallet:r}=await E(async()=>{const{connectInAppWallet:d}=await import("./index-B6MX4qjW.js").then(_=>_.n);return{connectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},disconnect:async()=>{if(f&&!(await(await g(f,n,a)).logout()).success)throw new Error("Failed to logout");l=void 0,I=void 0,i=void 0,A=null,h.emit("disconnect",void 0)},getAccount:()=>l,getAdminAccount:()=>I,getAuthToken:()=>A,getChain(){if(i)return i=K(i.id)||i,i},getConfig:()=>o,id:c,subscribe:h.subscribe,switchChain:async s=>{var r;if((o!=null&&o.smartAccount||((r=o==null?void 0:o.executionMode)==null?void 0:r.mode)==="EIP4337")&&f&&l){const{autoConnectInAppWallet:u}=await E(async()=>{const{autoConnectInAppWallet:_}=await import("./index-B6MX4qjW.js").then(G=>G.n);return{autoConnectInAppWallet:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),p=await g(f,n,a);await C({chain:s});const{account:y,chain:m,adminAccount:d}=await u({chain:s,client:f},o,p);I=d,l=y,i=m}else i=s;h.emit("chainChanged",s)}}}function ie(e){return q({connectorFactory:async t=>{var a;const{InAppWebConnector:n}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-CI1NmWV2.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new n({client:t,passkeyDomain:(a=e==null?void 0:e.auth)==null?void 0:a.passkeyDomain,storage:e==null?void 0:e.storage})},createOptions:e})}async function w(e,t){return g(e,async n=>{const{InAppWebConnector:a}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-CI1NmWV2.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new a({client:n,ecosystem:t})},t)}async function R(e){const{client:t,ecosystem:n}=e,c=await(await w(t,n)).getUser();switch(c.status){case"Logged In, Wallet Initialized":return c}}async function ue(e){const t=await R(e);if(t&&"email"in t.authDetails)return t.authDetails.email}async function le(e){const t=await R(e);if(t&&"phoneNumber"in t.authDetails)return t.authDetails.phoneNumber}async function de(e){return(await w(e.client,e.ecosystem)).preAuthenticate(e)}async function he(e){return(await w(e.client,e.ecosystem)).authenticate(e)}async function ye(e){const t=await w(e.client,e.ecosystem);if(!t.authenticateWithRedirect)throw new Error("authenticateWithRedirect is not supported on this platform");return t.authenticateWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function me(e){const t=await w(e.client,e.ecosystem);if(!t.linkProfileWithRedirect)throw new Error("linkProfileWithRedirect is not supported on this platform");return t.linkProfileWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function we(e){return await(await w(e.client,e.ecosystem)).linkProfile(e)}async function fe(e){return await(await w(e.client,e.ecosystem)).unlinkProfile(e.profileToUnlink,e.allowAccountDeletion)}async function Ae(e){return(await w(e.client,e.ecosystem)).getProfiles()}const pe="/sdk/2022-08-12/embedded-wallet",S=e=>`thirdwebEwsWalletUserId-${e}`,J="walletToken",k=e=>`${J}-${e}`,T=e=>`passkey-credential-id-${e}`,Q="a",P=(e,t)=>`${Q}-${e}-${t}`,W=e=>`walletConnectSessions-${e}`,L=e=>`thirdweb_guest_session_id_${e}`,O=new Map;class Ie{constructor({storage:t,clientId:n,ecosystem:a}){Object.defineProperty(this,"key",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"storage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ecosystem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.storage=t,this.key=ee(n,a==null?void 0:a.id),this.ecosystem=a}async getItem(t){return this.storage?this.storage.getItem(t):O.get(t)??null}async setItem(t,n){if(this.storage)return this.storage.setItem(t,n);O.set(t,n)}async removeItem(t){const n=await this.getItem(t);return this.storage&&n?(this.storage.removeItem(t),!0):!1}async getWalletConnectSessions(){return this.getItem(W(this.key))}async saveWalletConnectSessions(t){await this.setItem(W(this.key),t)}async savePasskeyCredentialId(t){await this.setItem(T(this.key),t)}async getPasskeyCredentialId(){return this.getItem(T(this.key))}async saveAuthCookie(t){await this.setItem(k(this.key),t)}async getAuthCookie(){return this.getItem(k(this.key))}async removeAuthCookie(){return this.removeItem(k(this.key))}async saveDeviceShare(t,n){await this.saveWalletUserId(n),await this.setItem(P(this.key,n),t)}async getDeviceShare(){const t=await this.getWalletUserId();return t?this.getItem(P(this.key,t)):null}async removeDeviceShare(){const t=await this.getWalletUserId();return t?this.removeItem(P(this.key,t)):!1}async getWalletUserId(){return this.getItem(S(this.key))}async saveWalletUserId(t){await this.setItem(S(this.key),t)}async removeWalletUserId(){return this.removeItem(S(this.key))}async getGuestSessionId(){return this.getItem(L(this.key))}async saveGuestSessionId(t){await this.setItem(L(this.key),t)}}const ee=(e,t)=>`${e}${t?`-${t}`:""}`;function te(e){let t;return()=>(t||(t=e()),t)}const U="0x3f707e6b",N=[{type:"tuple[]",name:"calls",components:[{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}]}],D=[];function _e(e){return B({availableSelectors:e,method:[U,N,D]})}function ge(e){const t=te(async()=>"asyncParams"in e?await e.asyncParams():e);return $({contract:e.contract,method:[U,N,D],params:async()=>[(await t()).calls],value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.value},accessList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.accessList},gas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gas},gasPrice:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gasPrice},maxFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxFeePerGas},maxPriorityFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxPriorityFeePerGas},nonce:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.nonce},extraGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.extraGas},erc20Value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.erc20Value},authorizationList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.authorizationList}})}export{Ie as C,pe as I,ue as a,he as b,Ae as c,le as d,ge as e,_e as f,Z as g,me as h,ie as i,Y as j,q as k,we as l,ye as m,te as o,de as p,oe as r,b as t,fe as u,re as w};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-CgeqYqkT.js","_assets/index-0kdmGL8P.js","_assets/react-OEOSdkUk.js","_assets/sentry-B60WY-np.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/ethers-lk3HAbPB.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/ethereum-DFU7Vz3W.js","_assets/utils-BkRfOA0C.js","_assets/types-DC0Zmj1B.js","_assets/get-bytecode-BsB9WanS.js","_assets/prepare-contract-call-Nm9e1q7x.js","_assets/to-serializable-transaction-BxPcLWhE.js","_assets/transaction-C7nbuBwl.js","_assets/web-connector-Djk4hyaT.js","_assets/linkAccount-CNeA4_rd.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/sleep-mAKpSMLY.js","_assets/detectExtension-DWfhzRDC.js"])))=>i.map(i=>d[i]);
2
+ import{u as x,o as F,s as M,a5 as $}from"./prepare-contract-call-Nm9e1q7x.js";import{_ as E}from"./index-0kdmGL8P.js";import{w as V,c as H,h as K,a as j}from"./utils-BkRfOA0C.js";import{d as B}from"./detectExtension-DWfhzRDC.js";function oe(e=32){return x(z(e))}function z(e=32){return globalThis.crypto.getRandomValues(new Uint8Array(e))}async function b(e){const{client:t,ecosystem:n,walletType:a,walletAddress:c,chainId:h}=e;return F({client:t,data:{action:"connect",chainId:h,source:"connectWallet",walletAddress:c,walletType:a},ecosystem:n})}const re={async getItem(e){try{if(typeof window<"u"&&window.localStorage)return localStorage.getItem(e)}catch{}return null},async removeItem(e){typeof window<"u"&&window.localStorage&&localStorage.removeItem(e)},async setItem(e,t){try{typeof window<"u"&&window.localStorage&&localStorage.setItem(e,t)}catch{}}};function X(){const e=new Map;return{emit(t,n){const a=e.get(t);if(a)for(const c of a)c(n)},subscribe(t,n){var a;return e.has(t)?(a=e.get(t))==null||a.add(n):e.set(t,new Set([n])),()=>{const c=e.get(t);c&&c.delete(n)}}}}function Y(){return X()}async function Z(e){return V(async()=>{var a;const n=await(await fetch(`${H("inAppWallet")}/api/2024-05-05/ecosystem-wallet`,{headers:{"x-ecosystem-id":e}})).json();if(!n||n.code==="UNAUTHORIZED")throw new Error(n.message||`Could not find ecosystem wallet with id ${e}, please check your ecosystem wallet configuration.`);return(a=n.authOptions)!=null&&a.includes("siwe")&&(n.authOptions=n.authOptions.filter(c=>c!=="siwe"),n.authOptions.push("wallet")),n},{cacheKey:`ecosystem-wallet-options-${e}`,cacheTime:1e3*60*5})}const v=new Map;async function g(e,t,n){var h;const a=M({clientId:e.clientId,ecosystem:n,partialSecretKey:(h=e.secretKey)==null?void 0:h.slice(0,5)});if(v.has(a))return v.get(a);const c=await t(e);return v.set(a,c),c}function q(e){const{createOptions:t,connectorFactory:n,ecosystem:a}=e,c=a?a.id:"inApp",h=Y();let o=t,l,I,i,f,A=null;const C=async s=>{if(a){const r=await Z(a.id),u=r==null?void 0:r.smartAccountOptions;if(u)if(r.smartAccountOptions.executionMode==="EIP7702")o={...o,executionMode:{mode:"EIP7702",sponsorGas:u.sponsorGas}};else{const{defaultChainId:y}=r.smartAccountOptions,m=(s==null?void 0:s.chain)??(y?j(y):void 0);if(!m)throw new Error("A chain must be provided either via 'chain' in connect options or 'defaultChainId' in ecosystem configuration. Please pass it via connect() or update the ecosystem configuration.");o={...o,smartAccount:{chain:m,factoryAddress:u.accountFactoryAddress,sponsorGas:u.sponsorGas}}}}};return{autoConnect:async s=>{const{autoConnectInAppWallet:r}=await E(async()=>{const{autoConnectInAppWallet:d}=await import("./index-CgeqYqkT.js").then(_=>_.n);return{autoConnectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},connect:async s=>{const{connectInAppWallet:r}=await E(async()=>{const{connectInAppWallet:d}=await import("./index-CgeqYqkT.js").then(_=>_.n);return{connectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},disconnect:async()=>{if(f&&!(await(await g(f,n,a)).logout()).success)throw new Error("Failed to logout");l=void 0,I=void 0,i=void 0,A=null,h.emit("disconnect",void 0)},getAccount:()=>l,getAdminAccount:()=>I,getAuthToken:()=>A,getChain(){if(i)return i=K(i.id)||i,i},getConfig:()=>o,id:c,subscribe:h.subscribe,switchChain:async s=>{var r;if((o!=null&&o.smartAccount||((r=o==null?void 0:o.executionMode)==null?void 0:r.mode)==="EIP4337")&&f&&l){const{autoConnectInAppWallet:u}=await E(async()=>{const{autoConnectInAppWallet:_}=await import("./index-CgeqYqkT.js").then(G=>G.n);return{autoConnectInAppWallet:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),p=await g(f,n,a);await C({chain:s});const{account:y,chain:m,adminAccount:d}=await u({chain:s,client:f},o,p);I=d,l=y,i=m}else i=s;h.emit("chainChanged",s)}}}function ie(e){return q({connectorFactory:async t=>{var a;const{InAppWebConnector:n}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-Djk4hyaT.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new n({client:t,passkeyDomain:(a=e==null?void 0:e.auth)==null?void 0:a.passkeyDomain,storage:e==null?void 0:e.storage})},createOptions:e})}async function w(e,t){return g(e,async n=>{const{InAppWebConnector:a}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-Djk4hyaT.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new a({client:n,ecosystem:t})},t)}async function R(e){const{client:t,ecosystem:n}=e,c=await(await w(t,n)).getUser();switch(c.status){case"Logged In, Wallet Initialized":return c}}async function ue(e){const t=await R(e);if(t&&"email"in t.authDetails)return t.authDetails.email}async function le(e){const t=await R(e);if(t&&"phoneNumber"in t.authDetails)return t.authDetails.phoneNumber}async function de(e){return(await w(e.client,e.ecosystem)).preAuthenticate(e)}async function he(e){return(await w(e.client,e.ecosystem)).authenticate(e)}async function ye(e){const t=await w(e.client,e.ecosystem);if(!t.authenticateWithRedirect)throw new Error("authenticateWithRedirect is not supported on this platform");return t.authenticateWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function me(e){const t=await w(e.client,e.ecosystem);if(!t.linkProfileWithRedirect)throw new Error("linkProfileWithRedirect is not supported on this platform");return t.linkProfileWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function we(e){return await(await w(e.client,e.ecosystem)).linkProfile(e)}async function fe(e){return await(await w(e.client,e.ecosystem)).unlinkProfile(e.profileToUnlink,e.allowAccountDeletion)}async function Ae(e){return(await w(e.client,e.ecosystem)).getProfiles()}const pe="/sdk/2022-08-12/embedded-wallet",S=e=>`thirdwebEwsWalletUserId-${e}`,J="walletToken",k=e=>`${J}-${e}`,T=e=>`passkey-credential-id-${e}`,Q="a",P=(e,t)=>`${Q}-${e}-${t}`,W=e=>`walletConnectSessions-${e}`,L=e=>`thirdweb_guest_session_id_${e}`,O=new Map;class Ie{constructor({storage:t,clientId:n,ecosystem:a}){Object.defineProperty(this,"key",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"storage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ecosystem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.storage=t,this.key=ee(n,a==null?void 0:a.id),this.ecosystem=a}async getItem(t){return this.storage?this.storage.getItem(t):O.get(t)??null}async setItem(t,n){if(this.storage)return this.storage.setItem(t,n);O.set(t,n)}async removeItem(t){const n=await this.getItem(t);return this.storage&&n?(this.storage.removeItem(t),!0):!1}async getWalletConnectSessions(){return this.getItem(W(this.key))}async saveWalletConnectSessions(t){await this.setItem(W(this.key),t)}async savePasskeyCredentialId(t){await this.setItem(T(this.key),t)}async getPasskeyCredentialId(){return this.getItem(T(this.key))}async saveAuthCookie(t){await this.setItem(k(this.key),t)}async getAuthCookie(){return this.getItem(k(this.key))}async removeAuthCookie(){return this.removeItem(k(this.key))}async saveDeviceShare(t,n){await this.saveWalletUserId(n),await this.setItem(P(this.key,n),t)}async getDeviceShare(){const t=await this.getWalletUserId();return t?this.getItem(P(this.key,t)):null}async removeDeviceShare(){const t=await this.getWalletUserId();return t?this.removeItem(P(this.key,t)):!1}async getWalletUserId(){return this.getItem(S(this.key))}async saveWalletUserId(t){await this.setItem(S(this.key),t)}async removeWalletUserId(){return this.removeItem(S(this.key))}async getGuestSessionId(){return this.getItem(L(this.key))}async saveGuestSessionId(t){await this.setItem(L(this.key),t)}}const ee=(e,t)=>`${e}${t?`-${t}`:""}`;function te(e){let t;return()=>(t||(t=e()),t)}const U="0x3f707e6b",N=[{type:"tuple[]",name:"calls",components:[{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}]}],D=[];function _e(e){return B({availableSelectors:e,method:[U,N,D]})}function ge(e){const t=te(async()=>"asyncParams"in e?await e.asyncParams():e);return $({contract:e.contract,method:[U,N,D],params:async()=>[(await t()).calls],value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.value},accessList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.accessList},gas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gas},gasPrice:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gasPrice},maxFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxFeePerGas},maxPriorityFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxPriorityFeePerGas},nonce:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.nonce},extraGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.extraGas},erc20Value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.erc20Value},authorizationList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.authorizationList}})}export{Ie as C,pe as I,ue as a,he as b,Ae as c,le as d,ge as e,_e as f,Z as g,me as h,ie as i,Y as j,q as k,we as l,ye as m,te as o,de as p,oe as r,b as t,fe as u,re as w};
@@ -1 +1 @@
1
- import{f as _,H as L}from"./prepare-contract-call-BnXbUbQT.js";import"./utils-B9hEgCzc.js";import"./sentry-973sfbO9.js";import"./react-DehiWSvs.js";const V="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",U=V.length,M=V.charAt(0),z=Math.log(256)/Math.log(U);function F(t){if(!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length===0)return"";let e=0,i=0,n=0;const s=t.length;for(;n!==s&&t[n]===0;)n++,e++;const c=(s-n)*z+1>>>0,a=new Uint8Array(c);for(;n!==s;){let d=t[n]||0,w=0;for(let h=c-1;(d!==0||w<i)&&h!==-1;h--,w++)d+=256*(a[h]||0)>>>0,a[h]=d%U>>>0,d=d/U>>>0;if(d!==0)throw new Error("Non-zero carry");i=w,n++}let l=c-i;for(;l!==c&&a[l]===0;)l++;let u=M.repeat(e);for(;l<c;++l)u+=V.charAt(a[l]||0);return u}let o,E,r=0,j={},b,N;const D=0;let C=0,S,R,H;const $={mapsAsObjects:!0,useRecords:!1};function I(t){let e;if(t<16&&(e=T(t)))return e;if(t>64&&decoder)return decoder.decode(o.subarray(r,r+=t));const i=r+t,n=[];for(e="";r<i;){const s=o[r++];if((s&128)===0)n.push(s);else if((s&224)===192){const c=o[r++]&63;n.push((s&31)<<6|c)}else if((s&240)===224){const c=o[r++]&63,a=o[r++]&63;n.push((s&31)<<12|c<<6|a)}else if((s&248)===240){const c=o[r++]&63,a=o[r++]&63,l=o[r++]&63;let u=(s&7)<<18|c<<12|a<<6|l;u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u)}else n.push(s);n.length>=4096&&(e+=x.apply(String,n),n.length=0)}return n.length>0&&(e+=x.apply(String,n)),e}class O{constructor(){Object.assign(this,$)}decodeKey(e){return e}decode(e,i=-1){E=i>-1?i:e.length,r=0,C=0,N=null,S=null,o=e;try{H=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw o=null,e instanceof Uint8Array?n:new Error(`Source must be a Uint8Array or Buffer but was a ${e&&typeof e=="object"?e.constructor.name:typeof e}`)}return this instanceof O?(j=this,this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),(!b||b.length>0)&&(b=[])):(j=$,(!b||b.length>0)&&(b=[])),v()}}function v(){try{const t=g();if(S){if(r>=S.postBundlePosition){const e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}r=S.postBundlePosition,S=null}if(r===E)b=null,o=null,R&&(R=null);else if(r>E){const e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else throw new Error("Data read, but end of buffer not reached");return t}catch(t){throw q(),(t instanceof RangeError||t.message.startsWith("Unexpected end of buffer"))&&(t.incomplete=!0),t}}function g(){let t=o[r++];const e=t>>5;if(t=t&31,t>23)switch(t){case 24:t=o[r++];break;default:throw new Error(`Unknown token ${t}`)}switch(e){case 0:return t;case 1:return~t;case 2:return W(t);case 3:if(C>=r)return N.slice(r-D,(r+=t)-D);if(C===0&&E<140&&t<32){const i=t<16?T(t):K(t);if(i!==null)return i}return I(t);case 4:{const i=new Array(t);for(let n=0;n<t;n++)i[n]=g();return i}case 5:{const i={};for(let n=0;n<t;n++)i[J(g())]=g();return i}default:if(Number.isNaN(t)){const i=new Error("Unexpected end of CBOR data");throw i.incomplete=!0,i}throw new Error(`Unknown CBOR token ${t}`)}}function J(t){if(typeof t=="string")return t==="__proto__"?"__proto_":t;if(typeof t!="object")return t.toString();throw new Error(`Invalid property name type ${typeof t}`)}const x=String.fromCharCode;function K(t){const e=r,i=new Array(t);for(let n=0;n<t;n++){const s=o[r++];if((s&128)>0){r=e;return}i[n]=s}return x.apply(String,i)}function T(t){if(t<4){if(t<2){if(t===0)return"";const k=o[r++];if((k&128)>1){r-=1;return}return x(k)}const f=o[r++],p=o[r++];if((f&128)>0||(p&128)>0){r-=2;return}if(t<3)return x(f,p);const y=o[r++];if((y&128)>0){r-=3;return}return x(f,p,y)}const e=o[r++],i=o[r++],n=o[r++],s=o[r++];if((e&128)>0||(i&128)>0||(n&128)>0||(s&128)>0){r-=4;return}if(t<6){if(t===4)return x(e,i,n,s);const f=o[r++];if((f&128)>0){r-=5;return}return x(e,i,n,s,f)}if(t<8){const f=o[r++],p=o[r++];if((f&128)>0||(p&128)>0){r-=6;return}if(t<7)return x(e,i,n,s,f,p);const y=o[r++];if((y&128)>0){r-=7;return}return x(e,i,n,s,f,p,y)}const c=o[r++],a=o[r++],l=o[r++],u=o[r++];if((c&128)>0||(a&128)>0||(l&128)>0||(u&128)>0){r-=8;return}if(t<10){if(t===8)return x(e,i,n,s,c,a,l,u);const f=o[r++];if((f&128)>0){r-=9;return}return x(e,i,n,s,c,a,l,u,f)}if(t<12){const f=o[r++],p=o[r++];if((f&128)>0||(p&128)>0){r-=10;return}if(t<11)return x(e,i,n,s,c,a,l,u,f,p);const y=o[r++];if((y&128)>0){r-=11;return}return x(e,i,n,s,c,a,l,u,f,p,y)}const d=o[r++],w=o[r++],h=o[r++],m=o[r++];if((d&128)>0||(w&128)>0||(h&128)>0||(m&128)>0){r-=12;return}if(t<14){if(t===12)return x(e,i,n,s,c,a,l,u,d,w,h,m);const f=o[r++];if((f&128)>0){r-=13;return}return x(e,i,n,s,c,a,l,u,d,w,h,m,f)}const A=o[r++],B=o[r++];if((A&128)>0||(B&128)>0){r-=14;return}if(t<15)return x(e,i,n,s,c,a,l,u,d,w,h,m,A,B);const P=o[r++];if((P&128)>0){r-=15;return}return x(e,i,n,s,c,a,l,u,d,w,h,m,A,B,P)}function W(t){return j.copyBuffers?Uint8Array.prototype.slice.call(o,r,r+=t):o.subarray(r,r+=t)}function q(){o=null,R=null,b=null}const G=new Array(147);for(let t=0;t<256;t++)G[t]=+`1e${Math.floor(45.15-t*.30103)}`;const Q=new O,X=Q.decode;function Y(t){return _(t,{strict:!1})?t:`0x${t}`}function nt(t){const e=L(Y(t)),i=e[e.length-2]*256+e[e.length-1],n=e.length-2-i;if(n<0||n>e.length)return;const s=e.slice(n,-2),c=X(s);if("ipfs"in c)return`ipfs://${F(c.ipfs)}`}export{nt as extractIPFSUri};
1
+ import{f as _,H as L}from"./prepare-contract-call-Nm9e1q7x.js";import"./utils-BkRfOA0C.js";import"./sentry-B60WY-np.js";import"./react-OEOSdkUk.js";const V="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz",U=V.length,M=V.charAt(0),z=Math.log(256)/Math.log(U);function F(t){if(!(t instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(t.length===0)return"";let e=0,i=0,n=0;const s=t.length;for(;n!==s&&t[n]===0;)n++,e++;const c=(s-n)*z+1>>>0,a=new Uint8Array(c);for(;n!==s;){let d=t[n]||0,w=0;for(let h=c-1;(d!==0||w<i)&&h!==-1;h--,w++)d+=256*(a[h]||0)>>>0,a[h]=d%U>>>0,d=d/U>>>0;if(d!==0)throw new Error("Non-zero carry");i=w,n++}let l=c-i;for(;l!==c&&a[l]===0;)l++;let u=M.repeat(e);for(;l<c;++l)u+=V.charAt(a[l]||0);return u}let o,E,r=0,j={},b,N;const D=0;let C=0,S,R,H;const $={mapsAsObjects:!0,useRecords:!1};function I(t){let e;if(t<16&&(e=T(t)))return e;if(t>64&&decoder)return decoder.decode(o.subarray(r,r+=t));const i=r+t,n=[];for(e="";r<i;){const s=o[r++];if((s&128)===0)n.push(s);else if((s&224)===192){const c=o[r++]&63;n.push((s&31)<<6|c)}else if((s&240)===224){const c=o[r++]&63,a=o[r++]&63;n.push((s&31)<<12|c<<6|a)}else if((s&248)===240){const c=o[r++]&63,a=o[r++]&63,l=o[r++]&63;let u=(s&7)<<18|c<<12|a<<6|l;u>65535&&(u-=65536,n.push(u>>>10&1023|55296),u=56320|u&1023),n.push(u)}else n.push(s);n.length>=4096&&(e+=x.apply(String,n),n.length=0)}return n.length>0&&(e+=x.apply(String,n)),e}class O{constructor(){Object.assign(this,$)}decodeKey(e){return e}decode(e,i=-1){E=i>-1?i:e.length,r=0,C=0,N=null,S=null,o=e;try{H=e.dataView||(e.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength))}catch(n){throw o=null,e instanceof Uint8Array?n:new Error(`Source must be a Uint8Array or Buffer but was a ${e&&typeof e=="object"?e.constructor.name:typeof e}`)}return this instanceof O?(j=this,this.sharedValues&&(this.pack?new Array(this.maxPrivatePackedValues||16).concat(this.sharedValues):this.sharedValues),(!b||b.length>0)&&(b=[])):(j=$,(!b||b.length>0)&&(b=[])),v()}}function v(){try{const t=g();if(S){if(r>=S.postBundlePosition){const e=new Error("Unexpected bundle position");throw e.incomplete=!0,e}r=S.postBundlePosition,S=null}if(r===E)b=null,o=null,R&&(R=null);else if(r>E){const e=new Error("Unexpected end of CBOR data");throw e.incomplete=!0,e}else throw new Error("Data read, but end of buffer not reached");return t}catch(t){throw q(),(t instanceof RangeError||t.message.startsWith("Unexpected end of buffer"))&&(t.incomplete=!0),t}}function g(){let t=o[r++];const e=t>>5;if(t=t&31,t>23)switch(t){case 24:t=o[r++];break;default:throw new Error(`Unknown token ${t}`)}switch(e){case 0:return t;case 1:return~t;case 2:return W(t);case 3:if(C>=r)return N.slice(r-D,(r+=t)-D);if(C===0&&E<140&&t<32){const i=t<16?T(t):K(t);if(i!==null)return i}return I(t);case 4:{const i=new Array(t);for(let n=0;n<t;n++)i[n]=g();return i}case 5:{const i={};for(let n=0;n<t;n++)i[J(g())]=g();return i}default:if(Number.isNaN(t)){const i=new Error("Unexpected end of CBOR data");throw i.incomplete=!0,i}throw new Error(`Unknown CBOR token ${t}`)}}function J(t){if(typeof t=="string")return t==="__proto__"?"__proto_":t;if(typeof t!="object")return t.toString();throw new Error(`Invalid property name type ${typeof t}`)}const x=String.fromCharCode;function K(t){const e=r,i=new Array(t);for(let n=0;n<t;n++){const s=o[r++];if((s&128)>0){r=e;return}i[n]=s}return x.apply(String,i)}function T(t){if(t<4){if(t<2){if(t===0)return"";const k=o[r++];if((k&128)>1){r-=1;return}return x(k)}const f=o[r++],p=o[r++];if((f&128)>0||(p&128)>0){r-=2;return}if(t<3)return x(f,p);const y=o[r++];if((y&128)>0){r-=3;return}return x(f,p,y)}const e=o[r++],i=o[r++],n=o[r++],s=o[r++];if((e&128)>0||(i&128)>0||(n&128)>0||(s&128)>0){r-=4;return}if(t<6){if(t===4)return x(e,i,n,s);const f=o[r++];if((f&128)>0){r-=5;return}return x(e,i,n,s,f)}if(t<8){const f=o[r++],p=o[r++];if((f&128)>0||(p&128)>0){r-=6;return}if(t<7)return x(e,i,n,s,f,p);const y=o[r++];if((y&128)>0){r-=7;return}return x(e,i,n,s,f,p,y)}const c=o[r++],a=o[r++],l=o[r++],u=o[r++];if((c&128)>0||(a&128)>0||(l&128)>0||(u&128)>0){r-=8;return}if(t<10){if(t===8)return x(e,i,n,s,c,a,l,u);const f=o[r++];if((f&128)>0){r-=9;return}return x(e,i,n,s,c,a,l,u,f)}if(t<12){const f=o[r++],p=o[r++];if((f&128)>0||(p&128)>0){r-=10;return}if(t<11)return x(e,i,n,s,c,a,l,u,f,p);const y=o[r++];if((y&128)>0){r-=11;return}return x(e,i,n,s,c,a,l,u,f,p,y)}const d=o[r++],w=o[r++],h=o[r++],m=o[r++];if((d&128)>0||(w&128)>0||(h&128)>0||(m&128)>0){r-=12;return}if(t<14){if(t===12)return x(e,i,n,s,c,a,l,u,d,w,h,m);const f=o[r++];if((f&128)>0){r-=13;return}return x(e,i,n,s,c,a,l,u,d,w,h,m,f)}const A=o[r++],B=o[r++];if((A&128)>0||(B&128)>0){r-=14;return}if(t<15)return x(e,i,n,s,c,a,l,u,d,w,h,m,A,B);const P=o[r++];if((P&128)>0){r-=15;return}return x(e,i,n,s,c,a,l,u,d,w,h,m,A,B,P)}function W(t){return j.copyBuffers?Uint8Array.prototype.slice.call(o,r,r+=t):o.subarray(r,r+=t)}function q(){o=null,R=null,b=null}const G=new Array(147);for(let t=0;t<256;t++)G[t]=+`1e${Math.floor(45.15-t*.30103)}`;const Q=new O,X=Q.decode;function Y(t){return _(t,{strict:!1})?t:`0x${t}`}function nt(t){const e=L(Y(t)),i=e[e.length-2]*256+e[e.length-1],n=e.length-2-i;if(n<0||n>e.length)return;const s=e.slice(n,-2),c=X(s);if("ipfs"in c)return`ipfs://${F(c.ipfs)}`}export{nt as extractIPFSUri};
@@ -1,4 +1,4 @@
1
- import{C as g,x as y,a6 as k,v as u,B as S,z as w}from"./W3MFrameProviderSingleton-DyHElSGY.js";import{az as A,au as m}from"./NetworkUtil-EoWQDMpU.js";import"./dcl-schemas-CmtP3U6y.js";import"./index-DI-3MKLG.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./index-JweqbyGF.js";import"./events-DQ172AOg.js";import"./index-DbCMsBDL.js";import"./ethers-DejfrZ8i.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-I5CKtKME.js";class N{constructor(e){this.getNonce=e.getNonce}async createMessage(e){const t={accountAddress:e.accountAddress,chainId:e.chainId,version:"1",domain:typeof document>"u"?"Unknown Domain":document.location.host,uri:typeof document>"u"?"Unknown URI":document.location.href,resources:this.resources,nonce:await this.getNonce(e),issuedAt:this.stringifyDate(new Date),statement:void 0,expirationTime:void 0,notBefore:void 0};return Object.assign(t,{toString:()=>this.stringify(t)})}stringify(e){var n;const t=this.getNetworkName(e.chainId);return[`${e.domain} wants you to sign in with your ${t} account:`,e.accountAddress,e.statement?`
1
+ import{C as g,x as y,a6 as k,v as u,B as S,z as w}from"./W3MFrameProviderSingleton-CRZ8AP2Q.js";import{az as A,au as m}from"./NetworkUtil-CO-1nCx-.js";import"./dcl-schemas-CmtP3U6y.js";import"./index-CJEkcTww.js";import"./react-OEOSdkUk.js";import"./sentry-B60WY-np.js";import"./index-BKGDTHnI.js";import"./events-DQ172AOg.js";import"./index-0kdmGL8P.js";import"./ethers-lk3HAbPB.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-fSxUcg6c.js";class N{constructor(e){this.getNonce=e.getNonce}async createMessage(e){const t={accountAddress:e.accountAddress,chainId:e.chainId,version:"1",domain:typeof document>"u"?"Unknown Domain":document.location.host,uri:typeof document>"u"?"Unknown URI":document.location.href,resources:this.resources,nonce:await this.getNonce(e),issuedAt:this.stringifyDate(new Date),statement:void 0,expirationTime:void 0,notBefore:void 0};return Object.assign(t,{toString:()=>this.stringify(t)})}stringify(e){var n;const t=this.getNetworkName(e.chainId);return[`${e.domain} wants you to sign in with your ${t} account:`,e.accountAddress,e.statement?`
2
2
  ${e.statement}
3
3
  `:"",`URI: ${e.uri}`,`Version: ${e.version}`,`Chain ID: ${e.chainId}`,`Nonce: ${e.nonce}`,e.issuedAt&&`Issued At: ${e.issuedAt}`,e.expirationTime&&`Expiration Time: ${e.expirationTime}`,e.notBefore&&`Not Before: ${e.notBefore}`,e.requestId&&`Request ID: ${e.requestId}`,((n=e.resources)==null?void 0:n.length)&&e.resources.reduce((o,s)=>`${o}
4
4
  - ${s}`,"Resources:")].filter(o=>typeof o=="string").join(`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/to-serializable-transaction-CI3ePtUl.js","_assets/index-DbCMsBDL.js","_assets/react-DehiWSvs.js","_assets/sentry-973sfbO9.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/ethers-DejfrZ8i.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/prepare-contract-call-BnXbUbQT.js","_assets/utils-B9hEgCzc.js","_assets/transaction-BRB0QRZP.js"])))=>i.map(i=>d[i]);
2
- import{_ as c}from"./index-DbCMsBDL.js";import{b as s}from"./uint8-array-CjVHUazS.js";import{n as d}from"./prepare-contract-call-BnXbUbQT.js";const f="data:application/json;base64";function u(r){return!!r.toLowerCase().startsWith(f)}function l(r){const n=r.indexOf(","),o=r.slice(n+1);return s(o)}const h="data:application/json;utf-8";function w(r){return!!r.toLowerCase().startsWith(h)}function m(r){const n=r.indexOf(","),o=r.slice(n+1);try{return decodeURIComponent(o)}catch{return o}}async function y(r){const{client:n,tokenId:o,tokenUri:e}=r;if(u(e))try{return JSON.parse(l(e))}catch(t){throw console.error("Failed to fetch base64 encoded NFT",{tokenId:o,tokenUri:e},t),t}if(w(e))try{return JSON.parse(m(e))}catch(t){throw console.error("Failed to fetch utf8 encoded NFT",{tokenId:o,tokenUri:e},t),t}const{download:a}=await c(async()=>{const{download:t}=await import("./to-serializable-transaction-CI3ePtUl.js").then(i=>i.L);return{download:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]));try{if(!e.includes("{id}"))return await(await a({client:n,uri:e})).json()}catch(t){throw console.error("Failed to fetch non-dynamic NFT",{tokenId:o,tokenUri:e},t),t}try{try{return await(await a({client:n,uri:e.replace("{id}",d(o,{size:32}).slice(2))})).json()}catch{return await(await a({client:n,uri:e.replace("{id}",o.toString())})).json()}}catch(t){throw console.error("Failed to fetch dynamic NFT",{tokenId:o,tokenUri:e},t),t}}export{y as f};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/to-serializable-transaction-BxPcLWhE.js","_assets/index-0kdmGL8P.js","_assets/react-OEOSdkUk.js","_assets/sentry-B60WY-np.js","_assets/dcl-schemas-CmtP3U6y.js","_assets/ethers-lk3HAbPB.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/prepare-contract-call-Nm9e1q7x.js","_assets/utils-BkRfOA0C.js","_assets/transaction-C7nbuBwl.js"])))=>i.map(i=>d[i]);
2
+ import{_ as c}from"./index-0kdmGL8P.js";import{b as s}from"./uint8-array-CjVHUazS.js";import{n as d}from"./prepare-contract-call-Nm9e1q7x.js";const f="data:application/json;base64";function u(r){return!!r.toLowerCase().startsWith(f)}function l(r){const n=r.indexOf(","),o=r.slice(n+1);return s(o)}const h="data:application/json;utf-8";function w(r){return!!r.toLowerCase().startsWith(h)}function m(r){const n=r.indexOf(","),o=r.slice(n+1);try{return decodeURIComponent(o)}catch{return o}}async function y(r){const{client:n,tokenId:o,tokenUri:e}=r;if(u(e))try{return JSON.parse(l(e))}catch(t){throw console.error("Failed to fetch base64 encoded NFT",{tokenId:o,tokenUri:e},t),t}if(w(e))try{return JSON.parse(m(e))}catch(t){throw console.error("Failed to fetch utf8 encoded NFT",{tokenId:o,tokenUri:e},t),t}const{download:a}=await c(async()=>{const{download:t}=await import("./to-serializable-transaction-BxPcLWhE.js").then(i=>i.L);return{download:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]));try{if(!e.includes("{id}"))return await(await a({client:n,uri:e})).json()}catch(t){throw console.error("Failed to fetch non-dynamic NFT",{tokenId:o,tokenUri:e},t),t}try{try{return await(await a({client:n,uri:e.replace("{id}",d(o,{size:32}).slice(2))})).json()}catch{return await(await a({client:n,uri:e.replace("{id}",o.toString())})).json()}}catch(t){throw console.error("Failed to fetch dynamic NFT",{tokenId:o,tokenUri:e},t),t}}export{y as f};
@@ -1,4 +1,4 @@
1
- import{t,s as o}from"./index-DbCMsBDL.js";const{colors:e}=t,r=o.input`
1
+ import{t,s as o}from"./index-0kdmGL8P.js";const{colors:e}=t,r=o.input`
2
2
  --box: 17.143px;
3
3
  position: relative;
4
4
  appearance: none;