@dcl/shop 1.17.2-36417112568.commit-e2afc81 → 1.17.2-36418293890.commit-220d68e

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 (246) hide show
  1. package/_assets/{Activity-ahc1cGJr.js → Activity-D4VBtnbk.js} +6 -6
  2. package/_assets/{AnimatedBackground-umIp23wl.js → AnimatedBackground-B69r2Bc-.js} +3 -3
  3. package/_assets/{Assets-DwelGvtu.js → Assets-CRTwcBwP.js} +9 -9
  4. package/_assets/{Cart-nnTbuXqE.js → Cart-BxDC8lj6.js} +2 -2
  5. package/_assets/{Collection-OO-CXfeg.js → Collection-Dnht-2q3.js} +2 -2
  6. package/_assets/{CollectionCarousel-Dg2NBx67.js → CollectionCarousel-C9wq2JOZ.js} +3 -3
  7. package/_assets/{Confetti-DF67ec9x.js → Confetti-BI3FtvtA.js} +4 -4
  8. package/_assets/{ConstantsUtil-C4MAR3n5.js → ConstantsUtil-AO-LLgrp.js} +2 -2
  9. package/_assets/{ContentClient-CeSQQmZ0.js → ContentClient-BTeKzo7T.js} +2 -2
  10. package/_assets/{Creator-BgQvXwOl.js → Creator-CJU_n_Ee.js} +2 -2
  11. package/_assets/{CreditPackPicker-Cksr3kzu.js → CreditPackPicker-B01NLAbL.js} +2 -2
  12. package/_assets/{CreditRate-CRu68bxJ.js → CreditRate-BvwbnBW-.js} +2 -2
  13. package/_assets/{DeploymentBuilder-7eFv_frV.js → DeploymentBuilder-HajOLjzg.js} +2 -2
  14. package/_assets/{EmotePlaybackBar-CdhQyQNk.js → EmotePlaybackBar-DEuoLg6N.js} +3 -3
  15. package/_assets/{ErrorNotice-YylntVIF.js → ErrorNotice-BmAQfVhf.js} +2 -2
  16. package/_assets/{Event-jynjm47j.js → Event-D8-9ebpv.js} +2 -2
  17. package/_assets/{ExchangeController-BPmmrC-n.js → ExchangeController-gStnDMQK.js} +2 -2
  18. package/_assets/{Faq-DuTr6ePB.js → Faq-CvfRl4yG.js} +2 -2
  19. package/_assets/{Filters-CXCCoPfU.js → Filters-LZ9snivB.js} +2 -2
  20. package/_assets/{GetCredits-CFErpq-L.js → GetCredits-y_URWWV-.js} +2 -2
  21. package/_assets/{Grow-C46NVYT_.js → Grow-BNtEtruo.js} +2 -2
  22. package/_assets/{HelpersUtil-CvEYQ_bN.js → HelpersUtil-Blp7Eq-U.js} +2 -2
  23. package/_assets/IssueModal-DfxiUimT.js +323 -0
  24. package/_assets/{ItemDetail-D9tzUCK_.js → ItemDetail-s3kjESZN.js} +2 -2
  25. package/_assets/{LoadMore-1l5kVCpI.js → LoadMore-BRW4riO-.js} +2 -2
  26. package/_assets/{ManaPricingBanner-Bpt7PE5u.js → ManaPricingBanner-dP4FGFiE.js} +2 -2
  27. package/_assets/{ManaPricingBanner.styles-DsEi0tgF.js → ManaPricingBanner.styles-8psnL7zm.js} +2 -2
  28. package/_assets/{MyAssets-BUo6c0_2.js → MyAssets-B1mV2q8F.js} +2 -2
  29. package/_assets/{MyFavorites-C6mXW5Jl.js → MyFavorites-C0aEyMBE.js} +2 -2
  30. package/_assets/MyStore-C5KnNX82.js +2122 -0
  31. package/_assets/{NetworkUtil-C4JZB8Ae.js → NetworkUtil-BKndxmAv.js} +2 -2
  32. package/_assets/{NotFound-D1YOGdVu.js → NotFound-D54GcHkx.js} +2 -2
  33. package/_assets/{NotificationsBell-BOYDhVk6.js → NotificationsBell-pH8tJXRW.js} +2 -2
  34. package/_assets/{OutfitDetail-BGIocC8Y.js → OutfitDetail-CRqnkCPP.js} +2 -2
  35. package/_assets/{OutfitPreview-tuw000fG.js → OutfitPreview-BHggnYWV.js} +2 -2
  36. package/_assets/{OutfitStudio-Cyr31rH6.js → OutfitStudio-1Di-LPT1.js} +2 -2
  37. package/_assets/{PaymentMethodStep-hPpJP-Wl.js → PaymentMethodStep-CCThKPFp.js} +5 -5
  38. package/_assets/{SaleCountdown-D75asuMy.js → SaleCountdown-CVfn_nkW.js} +2 -2
  39. package/_assets/{Spinner-BvrhyD7L.js → Spinner-CsrKVEJ6.js} +2 -2
  40. package/_assets/{StoreSettings-24Sax-kk.js → StoreSettings-C-BRsjS0.js} +2 -2
  41. package/_assets/{Success-BPEXgiYa.js → Success-BNOfkDxB.js} +2 -2
  42. package/_assets/{SwapController-DLrZ30eq.js → SwapController-CDvVpAnZ.js} +2 -2
  43. package/_assets/{Tooltip-2to0FtD5.js → Tooltip-DodLiQGn.js} +2 -2
  44. package/_assets/{TradeService-BroAtYDK.js → TradeService-CK1obPqz.js} +2 -2
  45. package/_assets/{W3MFrameProviderSingleton-DtsX-WLb.js → W3MFrameProviderSingleton-Bi11xf0a.js} +4 -4
  46. package/_assets/{WebCryptoP256-CA91XWV0.js → WebCryptoP256-DdJx12ry.js} +2 -2
  47. package/_assets/{basic-BRxJpd6n.js → basic-kYjcgNwQ.js} +2 -2
  48. package/_assets/{biconomy-C8WZJfrn.js → biconomy-DSPO7yo7.js} +2 -2
  49. package/_assets/{browseLayout.styles-DySdp3ol.js → browseLayout.styles-C0-FBoNa.js} +2 -2
  50. package/_assets/{browser-Bsk1yKVj.js → browser-BFShAaT0.js} +2 -2
  51. package/_assets/{browser-gnLUFKwX.js → browser-Br_PGSx5.js} +2 -2
  52. package/_assets/{browser-ponyfill-1RGXVE2_.js → browser-ponyfill-CrYE44xX.js} +2 -2
  53. package/_assets/{buy-DY-mMt7w.js → buy-N92V9AyQ.js} +2 -2
  54. package/_assets/{buy-gasless-BLW3WNLa.js → buy-gasless-BqyhGX44.js} +2 -2
  55. package/_assets/{ccip-CdHrlR0T.js → ccip-B_HvA8dg.js} +2 -2
  56. package/_assets/{ccip-Dhy3aii9.js → ccip-jOTW4hk8.js} +2 -2
  57. package/_assets/{chains-w-LqjG8V.js → chains-CQr46OzR.js} +2 -2
  58. package/_assets/collectionPage.styles-COfykuUv.js +41 -0
  59. package/_assets/{common-ClyopIw2.js → common-NfXKQFUO.js} +2 -2
  60. package/_assets/{controller-BLFxGiru.js → controller-uEuuhOzZ.js} +3 -3
  61. package/_assets/{core-Cgo171jk.js → core-CiORg1nl.js} +5 -5
  62. package/_assets/{createSvgIcon-DFZIXrO2.js → createSvgIcon-CJQ_wRTF.js} +2 -2
  63. package/_assets/{crumbs.styles-DNbofwyV.js → crumbs.styles-Cvt8wkkQ.js} +2 -2
  64. package/_assets/{custom-CzL3ZDy6.js → custom-BtdzOPyA.js} +2 -2
  65. package/_assets/{data-capture-oFjjsPXO.js → data-capture-CuXP8zCA.js} +2 -2
  66. package/_assets/{dcl-schemas-CIgtuOoU.js → dcl-schemas-_B0Kk1dX.js} +2 -2
  67. package/_assets/{decimals-DAXns5g7.js → decimals-DE-_bCrG.js} +2 -2
  68. package/_assets/{decimals-BEHcGzvL.js → decimals-Dl6Ac2Yr.js} +2 -2
  69. package/_assets/{detectExtension-5E6hSqod.js → detectExtension-Cwqdpc5H.js} +2 -2
  70. package/_assets/{disposePreview-DmN3QW2F.js → disposePreview-VulUR7GI.js} +2 -2
  71. package/_assets/{email-Pd0tOznC.js → email-B9mCFBNR.js} +2 -2
  72. package/_assets/{embedded-wallet-C-nyyiA9.js → embedded-wallet-Dh5zggIz.js} +2 -2
  73. package/_assets/{emotion-styled.browser.esm-C-347kjK.js → emotion-styled.browser.esm-SwDlCOIE.js} +2 -2
  74. package/_assets/{engine-DgLHXCvQ.js → engine-h-Hm5Du4.js} +2 -2
  75. package/_assets/{errors-CGpVjZew.js → errors-DADPuabe.js} +2 -2
  76. package/_assets/{estimate-l1-fee-DMNF6VY5.js → estimate-l1-fee-CLV1dz3T.js} +2 -2
  77. package/_assets/{eth_estimateGas-DU3yHXo0.js → eth_estimateGas-7d-6agbs.js} +2 -2
  78. package/_assets/{eth_getStorageAt-CZXlYseH.js → eth_getStorageAt-IXCr5ARn.js} +2 -2
  79. package/_assets/{eth_getTransactionCount-BPBkSCUe.js → eth_getTransactionCount-QrQ-YZ2_.js} +2 -2
  80. package/_assets/{ethereum-BcnV2ali.js → ethereum-Dcbgjb99.js} +2 -2
  81. package/_assets/{ethers-B_gMX7bu.js → ethers-Dp2JFZH-.js} +2 -2
  82. package/_assets/{events-Dn3_sDeB.js → events-keqiXLZy.js} +2 -2
  83. package/_assets/{execute-67mwCNiO.js → execute-CmtSq1Mi.js} +3 -3
  84. package/_assets/{extractIPFS--4ktQwdZ.js → extractIPFS-BdHt_nhV.js} +2 -2
  85. package/_assets/{features-xb712O6d.js → features-CMqxTvsM.js} +2 -2
  86. package/_assets/{fetchTokenMetadata-CROm5iEy.js → fetchTokenMetadata-D33vrFMS.js} +3 -3
  87. package/_assets/{field.styles-B7GpVroz.js → field.styles-CboGP8oE.js} +2 -2
  88. package/_assets/{fortmatic-DxnTmpwf.js → fortmatic-CTCUZGSh.js} +2 -2
  89. package/_assets/{get-bytecode-Cn7VPjuQ.js → get-bytecode-CTC9Ke-5.js} +2 -2
  90. package/_assets/{get-ecosystem-wallet-info-CziI2Mp5.js → get-ecosystem-wallet-info-v-fSB1GI.js} +2 -2
  91. package/_assets/{getBalance-CXpOqiRi.js → getBalance-bTJiiiHw.js} +3 -3
  92. package/_assets/{getInstalledModules-C97rQKkl.js → getInstalledModules-Bma4gJyX.js} +2 -2
  93. package/_assets/{getNFT-BEDez5yk.js → getNFT-BTuyVQiv.js} +2 -2
  94. package/_assets/{getNFT-CMUK9Jkt.js → getNFT-Dw3qNCM8.js} +3 -3
  95. package/_assets/{grid.styles-CTCw781a.js → grid.styles-DqJ0qNtW.js} +2 -2
  96. package/_assets/{hashTypedData-DrTnE0Uo.js → hashTypedData-0InMGzMN.js} +2 -2
  97. package/_assets/{hashTypedData-CkWSwa_M.js → hashTypedData-BDYHSIfU.js} +2 -2
  98. package/_assets/{import-C7TsYQy9.js → import-PvZhp7TH.js} +2 -2
  99. package/_assets/{in-app-XCTtPdXb.js → in-app-CQCuHufY.js} +2 -2
  100. package/_assets/{in-app-wallet-calls-Bf-KUvJ0.js → in-app-wallet-calls-0l44bAKE.js} +2 -2
  101. package/_assets/{index-B0icZDm6.js → index-2NXkxE64.js} +2 -2
  102. package/_assets/{index-C6iF-SQS.js → index-2Yvk78KZ.js} +2 -2
  103. package/_assets/{index-D6bgolKH.js → index-5PEf1C05.js} +2 -2
  104. package/_assets/{index-Bx_cH1nn.js → index-B0sEXvn2.js} +2 -2
  105. package/_assets/{index-CfRRbY4r.js → index-B0ttuhq9.js} +4 -4
  106. package/_assets/{index-Cg5J3PHn.js → index-B9kDWBV8.js} +2 -2
  107. package/_assets/{index-D0bdYV1m.js → index-BK8G6jWI.js} +2 -2
  108. package/_assets/{index-DcQgVGCL.js → index-BNVAlY49.js} +2 -2
  109. package/_assets/{index-DglMTc6w.js → index-BO9Xu_HO.js} +2 -2
  110. package/_assets/{index-pzFHM3no.js → index-BV74hnAs.js} +2 -2
  111. package/_assets/{index-ummDM-YW.js → index-B_2gQm9j.js} +2 -2
  112. package/_assets/{index-BmEcJIFr.js → index-BlCbRMtD.js} +2 -2
  113. package/_assets/{index-Bz5aUY4R.js → index-BmnUgKLP.js} +2 -2
  114. package/_assets/{index-DlYwkoh9.js → index-Bn4HqcS6.js} +2 -2
  115. package/_assets/{index-B47x5iYD.js → index-BnTx4ws4.js} +4 -4
  116. package/_assets/{index-BJQicl8s.js → index-Bp3aHt26.js} +266 -266
  117. package/_assets/{index-SnM__nMN.js → index-BpKF2zsV.js} +2 -2
  118. package/_assets/{index-Bx2Yr0I1.js → index-BrEORGwc.js} +3 -3
  119. package/_assets/{index-KtwMZa_D.js → index-BudJkUoY.js} +2 -2
  120. package/_assets/{index-D6RUnASW.js → index-Bvn260Vl.js} +2 -2
  121. package/_assets/{index-Da0OIpMQ.js → index-C2tDl-Kb.js} +2 -2
  122. package/_assets/{index-srwTpss-.js → index-C7Ja3Y6S.js} +2 -2
  123. package/_assets/{index-D_LWbA_T.js → index-C91yDpJn.js} +2 -2
  124. package/_assets/{index-BNBdrKN8.js → index-CBmC4JRa.js} +2 -2
  125. package/_assets/{index-B1mdfGb_.js → index-CC4oeKRC.js} +2 -2
  126. package/_assets/{index-rlHJmfTq.js → index-CDLnCGnN.js} +2 -2
  127. package/_assets/{index-DYNUrlyd.js → index-CJkTbUXr.js} +2 -2
  128. package/_assets/{index-lBF5zNbH.js → index-COLL-965.js} +2 -2
  129. package/_assets/{index-CYZGTT5Q.js → index-CV6n-ZpQ.js} +2 -2
  130. package/_assets/{index-D0XUi2BW.js → index-CXt0bCkh.js} +2 -2
  131. package/_assets/{index-BxZY3R6O.js → index-C_en7zzj.js} +3 -3
  132. package/_assets/{index-C8Spvg7F.js → index-CkWtWgH3.js} +2 -2
  133. package/_assets/{index-BFiJHg3T.js → index-ClLMt34W.js} +2 -2
  134. package/_assets/{index-CUbbKhDQ.js → index-Cq2mz6sF.js} +2 -2
  135. package/_assets/{index-C6lsb53t.js → index-CsmKttlZ.js} +2 -2
  136. package/_assets/{index-DwfqzD3B.js → index-Cw5-Ihj5.js} +2 -2
  137. package/_assets/{index-BiZ6sDat.js → index-CwsIKbLW.js} +2 -2
  138. package/_assets/{index-D_YK6f10.js → index-D0x4XVMx.js} +2 -2
  139. package/_assets/{index-BS1m5BmZ.js → index-D4uH2RFU.js} +2 -2
  140. package/_assets/{index-ByfsdepO.js → index-D8UMsNgI.js} +2 -2
  141. package/_assets/{index-DBhKJzP1.js → index-D8lpod0j.js} +2 -2
  142. package/_assets/{index-Dyai1waz.js → index-DGy4gD9M.js} +2 -2
  143. package/_assets/{index-nAuGEnGp.js → index-DMmXUXxd.js} +2 -2
  144. package/_assets/{index-3z3h-sWT.js → index-DOqbDyoF.js} +2 -2
  145. package/_assets/{index-Baur_xj6.js → index-DRPoZEiN.js} +2 -2
  146. package/_assets/{index-IS7z8bF7.js → index-DTkkVjsa.js} +2 -2
  147. package/_assets/{index-ZWBqYIeK.js → index-DW2SBgsT.js} +2 -2
  148. package/_assets/{index-BKceaYFO.js → index-DeYhfeYR.js} +2 -2
  149. package/_assets/{index-DIMycRNk.js → index-DitYYXq7.js} +2 -2
  150. package/_assets/{index-DVNQ3djO.js → index-DkSpWs0n.js} +2 -2
  151. package/_assets/{index-R_74jjrw.js → index-DktRaopJ.js} +2 -2
  152. package/_assets/{index-Dd-2Y9li.js → index-Dncqt9PR.js} +2 -2
  153. package/_assets/{index-KcQBXzUD.js → index-DpK4-4Ty.js} +2 -2
  154. package/_assets/{index-Dm73DTNL.js → index-DrpLxOHh.js} +2 -2
  155. package/_assets/{index-o1o23ELd.js → index-DyPX0auR.js} +2 -2
  156. package/_assets/{index-hLobvkDU.js → index-JUXp6Dlc.js} +4 -4
  157. package/_assets/{index-VGJY4m72.js → index-JbnopHfg.js} +3 -3
  158. package/_assets/{index-BLs6tbd1.js → index-LecHOKus.js} +2 -2
  159. package/_assets/{index-DJFLeIP8.js → index-M4eFYgWB.js} +2 -2
  160. package/_assets/{index-CBA4W5FG.css → index-SNOMFTTK.css} +1 -1
  161. package/_assets/{index-Ao40Rh7v.js → index-SOl7iePx.js} +2 -2
  162. package/_assets/{index-DEhC8LgS.js → index-_bAz9rUY.js} +2 -2
  163. package/_assets/{index-CF8SkK1g.js → index-d74473In.js} +2 -2
  164. package/_assets/{index-OvP5xDwc.js → index-oWE1yc71.js} +2 -2
  165. package/_assets/{index-Cx-907QR.js → index-qPXDynV3.js} +2 -2
  166. package/_assets/{index-B5aKYuFu.js → index-qR9hBR1Y.js} +2 -2
  167. package/_assets/{index-CGXb1e0C.js → index-t_DTunkm.js} +2 -2
  168. package/_assets/{index-B3d1HVPO.js → index-uD8Xwoma.js} +3 -3
  169. package/_assets/{index.es-DUGjvY5V.js → index.es-CF1TpWwB.js} +2 -2
  170. package/_assets/{index.es-BgDLSDRr.js → index.es-CafG5vDc.js} +5 -5
  171. package/_assets/{index.es-D5A8qSvl.js → index.es-DR4gl8qK.js} +2 -2
  172. package/_assets/{index.es-mH1f8Pbn.js → index.es-Dxe_tQfK.js} +2 -2
  173. package/_assets/{items-empty-C2mQWlpa.js → items-empty-BIxeTwto.js} +2 -2
  174. package/_assets/{jump-BKgEW1Uq.js → jump-YJO6VZZT.js} +2 -2
  175. package/_assets/{linkAccount-7AfjwEWc.js → linkAccount-Di1L6ODp.js} +2 -2
  176. package/_assets/{loader-logo-B2Di-_Ze.js → loader-logo-CUaLPrEf.js} +2 -2
  177. package/_assets/{localBatchGatewayRequest-Ku83V8tQ.js → localBatchGatewayRequest-D2hxnEpH.js} +2 -2
  178. package/_assets/{modal.styles-DKyrrEDx.js → modal.styles-C4pYkuZj.js} +2 -2
  179. package/_assets/{native-CUblzjFD.js → native-8vsnOJR4.js} +2 -2
  180. package/_assets/{networks-CslgB8gK.js → networks-C8S8vhv3.js} +2 -2
  181. package/_assets/{onramp-CBYpF4D5.js → onramp-wP8uPyX2.js} +2 -2
  182. package/_assets/{openzeppelin-V9W06b6g.js → openzeppelin-BZquI8jE.js} +2 -2
  183. package/_assets/{ownerOf-CaM3U2UN.js → ownerOf-CeffRJWl.js} +2 -2
  184. package/_assets/{parseNft-CQ5MCToI.js → parseNft-CJBHaSxB.js} +3 -3
  185. package/_assets/{parseSignature-B-1Tq6oP.js → parseSignature-CTywhOXZ.js} +4 -4
  186. package/_assets/{parseSignature-Bq-XGU-C.js → parseSignature-Gt-Tp49v.js} +2 -2
  187. package/_assets/{passkeys-BQJISQgw.js → passkeys-B3gs0Zat.js} +2 -2
  188. package/_assets/{pay-with-exchange-7MLwJdJf.js → pay-with-exchange-B-nQx4jw.js} +2 -2
  189. package/_assets/{prepare-contract-call-C2cYOhbO.js → prepare-contract-call-CthQ_8dx.js} +2 -2
  190. package/_assets/{qr-overlay-BLml90bO.js → qr-overlay-CmiVvxUM.js} +4 -4
  191. package/_assets/{react-4P5sGbEq.js → react-LHIQ98KR.js} +2 -2
  192. package/_assets/{receive-D2DHGMs6.js → receive-BLEP1nRX.js} +2 -2
  193. package/_assets/{resolveImplementation-LR6nB9QW.js → resolveImplementation-CsldPK8y.js} +2 -2
  194. package/_assets/{resume-buy-PRghislR.js → resume-buy-DHFmAeF4.js} +2 -2
  195. package/_assets/{resume-name-bHNOaad3.js → resume-name-ktnwHkJR.js} +2 -2
  196. package/_assets/{rpc-Cm-DpE6F.js → rpc-DoZnkyqC.js} +2 -2
  197. package/_assets/{sales-empty-CkxAX5qQ.js → sales-empty-B0QquTRo.js} +2 -2
  198. package/_assets/{search-empty-CaBq2HkU.js → search-empty-CIkPUIx0.js} +2 -2
  199. package/_assets/{secp256k1-sqPtvBok.js → secp256k1-CvS45x8t.js} +2 -2
  200. package/_assets/{secp256k1-Cp0CohWk.js → secp256k1-ir2IysjZ.js} +2 -2
  201. package/_assets/{secp256k1-CKzcFiXH.js → secp256k1-qcRCtNm7.js} +2 -2
  202. package/_assets/{send-DCOMlceB.js → send-C8Z5DKl1.js} +2 -2
  203. package/_assets/{send-batch-transaction-BsZh8Uk5.js → send-batch-transaction-DWBPL2Xd.js} +2 -2
  204. package/_assets/{send-eip712-transaction-CzOZcgLd.js → send-eip712-transaction-BPOb4Kew.js} +3 -3
  205. package/_assets/{send-gasless-transaction-B6XUAmSL.js → send-gasless-transaction-C8lkAvob.js} +3 -3
  206. package/_assets/{send-transaction-D-XocUou.js → send-transaction-6sN2gwwv.js} +3 -3
  207. package/_assets/{sendMetaTransaction-B2oQ5eKD.js → sendMetaTransaction-DqCaiE1G.js} +2 -2
  208. package/_assets/{sendRawTransaction-gnCQ4l70.js → sendRawTransaction-PWiWe9oZ.js} +4 -4
  209. package/_assets/{sentry-BhkK6fEK.js → sentry-DfhH7M7m.js} +3 -3
  210. package/_assets/{serializeTransaction-BaK3bRi1.js → serializeTransaction-BQOXshQM.js} +2 -2
  211. package/_assets/{session-proposal-Dm-Nvcz-.js → session-proposal-DiCtlfl-.js} +2 -2
  212. package/_assets/{session-request-CrQTuuP7.js → session-request-YSiBX2i8.js} +3 -3
  213. package/_assets/{sha256-DBJDpCHg.js → sha256-DTaoTGeM.js} +2 -2
  214. package/_assets/{sha3-70hRWHxs.js → sha3-DG5Rerll.js} +2 -2
  215. package/_assets/signin-empty-DnbkmKDt.js +2 -0
  216. package/_assets/{signing-DCOM6x8H.js → signing-BL8nzqUh.js} +4 -4
  217. package/_assets/{skeleton.styles-B8FT4bpt.js → skeleton.styles-BsIoB_Qm.js} +2 -2
  218. package/_assets/{socials-BPNH7uMf.js → socials-4bzF0vB9.js} +2 -2
  219. package/_assets/{styled-CdX_hwL4.js → styled-BAv1xnnT.js} +2 -2
  220. package/_assets/{swaps-DRg-0_cj.js → swaps-iSQXs6GQ.js} +2 -2
  221. package/_assets/{thirdweb-DhUWHu_Q.js → thirdweb-DFVL09cd.js} +4 -4
  222. package/_assets/{to-serializable-transaction-C68Txae9.js → to-serializable-transaction-CkE-NgmW.js} +3 -3
  223. package/_assets/{totalSupply-DGM7d1I-.js → totalSupply-qkYmzw_6.js} +2 -2
  224. package/_assets/{trade-encoding-DcVwVU4D.js → trade-encoding-ckNC4fJ-.js} +2 -2
  225. package/_assets/{transaction-DShAG0ei.js → transaction-Yvut_WEw.js} +2 -2
  226. package/_assets/{transactionReceipt-C7KPa1TY.js → transactionReceipt-bOGdURTM.js} +2 -2
  227. package/_assets/{transactions-DMCLNnvd.js → transactions-pJWMS9Al.js} +2 -2
  228. package/_assets/{useInfiniteGrid-DS-eHJl3.js → useInfiniteGrid-SY9xs2bD.js} +2 -2
  229. package/_assets/{useStore-D4vtf_uM.js → useStore-DtSFjEO-.js} +3 -3
  230. package/_assets/{useTheme-DdgO2k0Y.js → useTheme-B2sXCJMT.js} +2 -2
  231. package/_assets/{utils-Bhk-dfOy.js → utils-ZXL77_V-.js} +2 -2
  232. package/_assets/{verifyHash-COTUPfs3.js → verifyHash-BaaSBs31.js} +2 -2
  233. package/_assets/{w3m-modal-DI7gA3rB.js → w3m-modal-RMD0rXBw.js} +2 -2
  234. package/_assets/{w3m-modal-CO33DEWa.js → w3m-modal-Rzu8HJ5T.js} +2 -2
  235. package/_assets/{wait-for-tx-receipt-8S4DlVRa.js → wait-for-tx-receipt-CV57tGp2.js} +2 -2
  236. package/_assets/{wallets-n81pe2QQ.js → wallets-0RL5EqXk.js} +6 -6
  237. package/_assets/{web-connector-Cu8MU84-.js → web-connector-BrtjJDdk.js} +4 -4
  238. package/_assets/{writeContract-LG21efqR.js → writeContract-qrIA3P4r.js} +2 -2
  239. package/_assets/{zora-sepolia-h86d5KkK.js → zora-sepolia-aMaIuMFa.js} +2 -2
  240. package/_assets/{zoraTestnet-V0TYbfom.js → zoraTestnet-w7lDfHTy.js} +2 -2
  241. package/index.html +12 -12
  242. package/package.json +2 -2
  243. package/_assets/IssueModal-CdyJ5U3J.js +0 -323
  244. package/_assets/MyStore-D3H6JCYZ.js +0 -2008
  245. package/_assets/collectionPage.styles-DTKFRnJt.js +0 -41
  246. package/_assets/signin-empty-DoMTaEfj.js +0 -2
@@ -1,2 +1,2 @@
1
- import{d as u,B as re}from"./dcl-schemas-CIgtuOoU.js";import{c as _,b as x,D as ae,bi as se,l as U,M as ie,h as g,j as y,x as oe,bj as ce,g as de,bk as ue}from"./index-BJQicl8s.js";import"./react-4P5sGbEq.js";import{M as le,E as pe,s as fe}from"./sendMetaTransaction-B2oQ5eKD.js";import{C as l,M as ge,Z as z,J as ye,I as we,p as G,h as A,r as $,a as h,b as L,u as Ae,B as S}from"./ethers-B_gMX7bu.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="09f4aa1d-26fd-4b13-b5ea-eac71395704f",e._sentryDebugIdIdentifier="sentry-dbid-09f4aa1d-26fd-4b13-b5ea-eac71395704f")}catch{}})();const O="".trim().toLowerCase(),R={enabled:O!=="0"&&O!=="false",relayerUrl:_.relayerUrl};function qe(){return R.enabled}class E extends Error{constructor(t,n){super(`${t} reverted on-chain`),this.what=t,this.txHash=n,this.name="MetaTxRevertedError"}}class k extends Error{constructor(t,n,r){super(`${t} was submitted but not confirmed in time`),this.what=t,this.txHash=n,this.name="MetaTxPendingError",r&&"cause"in r&&(this.cause=r.cause)}}async function he(e,t,n){const r=p();let a;try{a=await r.waitForTransaction(e,1,(n==null?void 0:n.timeoutMs)??12e4)}catch(s){throw new k(t,e,{cause:s})}if(!a)throw new k(t,e);if(a.status===0)throw new E(t,e);return e}async function We(e){const{txHash:t,what:n,isDone:r,timeoutMs:a=10*6e4,onWaiting:s}=e,i=Math.max(e.pollMs??5e3,50),o=p(),c=Date.now();for(;Date.now()-c<a;){try{if(await r())return t}catch{}try{const d=await o.getTransactionReceipt(t);if(d){if(d.status===0)throw new E(n,t);return t}}catch(d){if(d instanceof E)throw d}s==null||s(Date.now()-c),await new Promise(d=>setTimeout(d,i))}try{if(await r())return t}catch{}throw new k(n,t)}var q=(e=>(e.Allowance="allowance",e.Approval="approval",e.Minter="minter",e))(q||{});const D=["function allowance(address owner, address spender) view returns (uint256)","function approve(address spender, uint256 amount) returns (bool)"],P=["function isApprovedForAll(address owner, address operator) view returns (bool)","function setApprovalForAll(address operator, bool approved)"],N=["function globalMinters(address minter) view returns (bool)","function setMinters(address[] minters, bool[] values)"],W=ge;function p(){return new ye(_.rpcUrl)}async function V(e,t,n){const r=p();switch(e.kind){case"allowance":{const s=await new l(e.contractAddress,D,r).allowance(t,e.spenderAddress);return n==null||n<=0n?s.gt(0):s.gte(n.toString())}case"approval":return new l(e.contractAddress,P,r).isApprovedForAll(t,e.spenderAddress);case"minter":{const a=new l(e.contractAddress,N,r);try{return await a.globalMinters(e.spenderAddress)}catch{return!1}}}}function me(e){return e.kind==="allowance"?g(y.MANAToken,e.chainId):{...g(y.ERC721CollectionV2,e.chainId),address:e.contractAddress}}function xe(e,t){const n=new we(e.kind==="allowance"?D:e.kind==="approval"?P:N);switch(e.kind){case"allowance":return n.encodeFunctionData("approve",[e.spenderAddress,t?W:z]);case"approval":return n.encodeFunctionData("setApprovalForAll",[e.spenderAddress,t]);case"minter":return n.encodeFunctionData("setMinters",[[e.spenderAddress],[t]])}}const ve=new Set(["eth_signTypedData_v4","eth_signTypedData","eth_sign","personal_sign","eth_requestAccounts","eth_accounts","eth_chainId"]);function Te(e,t){return{send:(n,r=[])=>ve.has(n)?e.send(n,r):t.send(n,r)}}async function be(e,t,n){const r=xe(e,n),a=me(e),s=p(),i=Te(t.provider,s),o=await fe(i,s,r,a,{serverURL:R.relayerUrl});await he(o,"the authorization")}function Ie(){var e;try{return((e=oe.getState().session)==null?void 0:e.providerType)??null}catch{return null}}async function Ce(e,t){try{return await ce(e.provider)===t}catch{return!1}}async function Se(e){const{auth:t,signer:n,active:r}=e;if(R.enabled)try{await be(t,n,r);return}catch(a){if(a instanceof le&&a.code===pe.USER_DENIED)throw a;const s=se(Ie()),i=s&&await Ce(n,t.chainId);if(!s||!i)throw U(a,{flow:"authorizations",step:"gasless_no_fallback",reason:s?"wrong-chain":"managed-wallet"}),a;U(a,{flow:"authorizations",step:"gasless_fallback"})}switch(await ie(n.provider,t.chainId),t.kind){case"allowance":{await(await new l(t.contractAddress,D,n).approve(t.spenderAddress,r?W:z)).wait();return}case"approval":{await(await new l(t.contractAddress,P,n).setApprovalForAll(t.spenderAddress,r)).wait();return}case"minter":{await(await new l(t.contractAddress,N,n).setMinters([t.spenderAddress],[r])).wait();return}}}async function Y(e){const t=await e.signer.getAddress();await V(e.auth,t,e.requiredWei)||await Se({auth:e.auth,signer:e.signer,active:!0})}function Ve(e,t){return ae(e)&&!t}function Ye(e,t){return{kind:"allowance",contractAddress:g(y.MANAToken,e).address,spenderAddress:t,chainId:e}}function Ee(e,t){const n=x(t);return{id:`selling:${e.toLowerCase()}`,group:"selling",kind:"approval",contractAddress:e,spenderAddress:n.address,chainId:t}}const B=e=>Math.floor(e/1e3);async function ke(e){return await de()&&await ue()?_.treasuryAddress:e}function m(e){switch(e.assetType){case u.TradeAssetType.ERC721:return e.tokenId;case u.TradeAssetType.COLLECTION_ITEM:return e.itemId;case u.TradeAssetType.ERC20:case u.TradeAssetType.USD_PEGGED_MANA:return e.amount;default:throw new Error(`Unsupported assetType ${String(e.assetType)}`)}}function Z(e){return{checks:{uses:e.checks.uses,expiration:B(e.checks.expiration),effective:B(e.checks.effective),salt:h(e.checks.salt,32),contractSignatureIndex:e.checks.contractSignatureIndex,signerSignatureIndex:e.checks.signerSignatureIndex,allowedRoot:h(e.checks.allowedRoot||"0x",32),externalChecks:(e.checks.externalChecks??[]).map(t=>({contractAddress:t.contractAddress,selector:t.selector,value:t.value?t.value:"0x",required:t.required}))},sent:e.sent.map(t=>({assetType:t.assetType,contractAddress:t.contractAddress,value:m(t),extra:t.extra?t.extra:"0x"})),received:e.received.map(t=>({assetType:t.assetType,contractAddress:t.contractAddress,value:m(t),extra:t.extra?t.extra:"0x",beneficiary:t.beneficiary}))}}const j={Trade:[{name:"checks",type:"Checks"},{name:"sent",type:"AssetWithoutBeneficiary[]"},{name:"received",type:"Asset[]"}],Asset:[{name:"assetType",type:"uint256"},{name:"contractAddress",type:"address"},{name:"value",type:"uint256"},{name:"extra",type:"bytes"},{name:"beneficiary",type:"address"}],AssetWithoutBeneficiary:[{name:"assetType",type:"uint256"},{name:"contractAddress",type:"address"},{name:"value",type:"uint256"},{name:"extra",type:"bytes"}],Checks:[{name:"uses",type:"uint256"},{name:"expiration",type:"uint256"},{name:"effective",type:"uint256"},{name:"salt",type:"bytes32"},{name:"contractSignatureIndex",type:"uint256"},{name:"signerSignatureIndex",type:"uint256"},{name:"allowedRoot",type:"bytes32"},{name:"externalChecks",type:"ExternalCheck[]"}],ExternalCheck:[{name:"contractAddress",type:"address"},{name:"selector",type:"bytes4"},{name:"value",type:"bytes"},{name:"required",type:"bool"}]},H=["function contractSignatureIndex() view returns (uint256)","function signerSignatureIndex(address) view returns (uint256)"];function J(e,t){const n=x(t);return{kind:q.Minter,contractAddress:e,spenderAddress:n.address,chainId:t}}async function Ze(e){const t=Ee(e.contractAddress,e.chainId);await Y({auth:t,signer:e.signer})}async function je(e){const{signer:t,nft:n,usdPrice:r,expiresAtMs:a,fingerprint:s=""}=e,i=(await t.getAddress()).toLowerCase(),o=x(n.chainId),c=g(y.MANAToken,n.chainId),d=new l(o.address,H,p()),T=await d.contractSignatureIndex(),b=await d.signerSignatureIndex(i),f={signer:i,network:n.network,chainId:n.chainId,type:u.TradeType.PUBLIC_NFT_ORDER,checks:{uses:1,expiration:a,effective:Date.now(),salt:A($(32)),contractSignatureIndex:T.toNumber(),signerSignatureIndex:b.toNumber(),allowedRoot:"0x",externalChecks:[]},sent:[{assetType:u.TradeAssetType.ERC721,contractAddress:n.contractAddress,tokenId:n.tokenId,extra:s}],received:[{assetType:u.TradeAssetType.USD_PEGGED_MANA,contractAddress:c.address,amount:G(String(r)).toString(),extra:"",beneficiary:await ke(i)}]},I={name:o.name,version:o.version,salt:h(A(n.chainId),32),verifyingContract:o.address},C=await t._signTypedData(I,j,Z(f));return{...f,signature:C}}async function He(e){return V(J(e.contractAddress,e.chainId),"")}async function Je(e){await Y({auth:J(e.contractAddress,e.chainId),signer:e.signer})}async function Xe(e){const{signer:t,item:n,usdPrice:r,expiresAtMs:a}=e,s=(await t.getAddress()).toLowerCase(),i=x(n.chainId),o=g(y.MANAToken,n.chainId),c=new l(i.address,H,p()),d=await c.contractSignatureIndex(),T=await c.signerSignatureIndex(s),b=Math.max(1,Math.floor(e.uses??1)),f={signer:s,network:n.network,chainId:n.chainId,type:u.TradeType.PUBLIC_ITEM_ORDER,checks:{uses:b,expiration:a,effective:Date.now(),salt:A($(32)),contractSignatureIndex:d.toNumber(),signerSignatureIndex:T.toNumber(),allowedRoot:"0x",externalChecks:[]},sent:[{assetType:u.TradeAssetType.COLLECTION_ITEM,contractAddress:n.contractAddress,itemId:n.itemId,extra:""}],received:[{assetType:u.TradeAssetType.USD_PEGGED_MANA,contractAddress:o.address,amount:G(String(r)).toString(),extra:"",beneficiary:s}]},I={name:i.name,version:i.version,salt:h(A(n.chainId),32),verifyingContract:i.address},C=await t._signTypedData(I,j,Z(f));return{...f,signature:C}}const{defaultAbiCoder:w,Interface:v,hexZeroPad:M,hexlify:Me,randomBytes:_e}=Ae,Re="tuple(address collection,uint256[] ids,uint256[] prices,address[] beneficiaries)[]",X="tuple(address signer,bytes signature,tuple(uint256 uses,uint256 expiration,uint256 effective,bytes32 salt,uint256 contractSignatureIndex,uint256 signerSignatureIndex,bytes32 allowedRoot,bytes32[] allowedProof,tuple(address contractAddress,bytes4 selector,bytes value,bool required)[] externalChecks) checks,tuple(uint256 assetType,address contractAddress,uint256 value,address beneficiary,bytes extra)[] sent,tuple(uint256 assetType,address contractAddress,uint256 value,address beneficiary,bytes extra)[] received)[]",De="tuple(bytes signature,tuple(uint256 uses,uint256 expiration,uint256 effective,bytes32 salt,uint256 contractSignatureIndex,uint256 signerSignatureIndex,bytes32 allowedRoot,bytes32[] allowedProof,tuple(address contractAddress,bytes4 selector,bytes value,bool required)[] externalChecks) checks,address couponAddress,bytes data,bytes callerData)[]",Q="0x"+"0".repeat(64),F=e=>{const t=Number(e);return t>1e12?Math.floor(t/1e3):t};function K(e,t){return{signer:e.signer,signature:e.signature,checks:ee(e.checks),sent:e.sent.map(n=>({assetType:n.assetType,contractAddress:n.contractAddress,value:m(n),beneficiary:t,extra:n.extra||"0x"})),received:e.received.map(n=>({assetType:n.assetType,contractAddress:n.contractAddress,value:m(n),beneficiary:"beneficiary"in n&&n.beneficiary?n.beneficiary:t,extra:n.extra||"0x"}))}}function Pe(e,t,n){const r=new v(n).getSighash("accept"),a=w.encode([X],[e.map(s=>K(s,t))]);return{selector:r,data:a}}function ee(e){return{uses:e.uses,expiration:F(e.expiration),effective:F(e.effective),salt:M(e.salt,32),contractSignatureIndex:e.contractSignatureIndex,signerSignatureIndex:e.signerSignatureIndex,allowedRoot:e.allowedRoot&&e.allowedRoot!=="0x"?e.allowedRoot:Q,allowedProof:[],externalChecks:(e.externalChecks??[]).map(t=>({contractAddress:t.contractAddress,selector:t.selector,value:t.value,required:t.required}))}}function Ne(e,t=1){return{signature:e.signature,checks:ee(e.checks),couponAddress:e.couponAddress,data:w.encode(["uint256","uint256","bytes32"],[e.discountType,e.discount,e.root]),callerData:w.encode(["tuple(bytes32[][] proofs)"],[{proofs:Array.from({length:Math.max(1,t)},()=>e.proof)}])}}function Ue(e,t,n,r){if(e.length!==t.length)throw new Error(`acceptWithCoupon needs one coupon per trade, got ${t.length} for ${e.length} trades`);const a=new v(r).getSighash("acceptWithCoupon"),s=w.encode([X,De],[e.map(i=>K(i,n)),t.map((i,o)=>Ne(i,e[o].sent.length))]);return{selector:a,data:s}}function Qe(e){if(e!==80002)return{};const t=L("30","gwei");return{maxPriorityFeePerGas:t,maxFeePerGas:t.add(L("50","gwei"))}}function Le(e){return e?e.startsWith("0x")?M(e,32):M("0x"+re.from(e).toString("hex"),32):Q}function Ke(e,t,n,r,a,s,i){const{selector:o,data:c}=i!=null&&i.length?Ue(n,i,r,t):Pe(n,r,t);return ne({target:e,selector:o,data:c,credits:a,maxCreditedValue:s})}function te(e,t){return e.map(n=>({collection:n.collection,ids:[n.itemId],prices:[n.priceWei],beneficiaries:[t]}))}function Oe(e,t,n){const r=new v(n).getSighash("buy"),a=w.encode([Re],[te(e,t)]);return{selector:r,data:a}}function et(e,t,n){return new v(n).encodeFunctionData("buy",[te(e,t)])}function tt(e,t,n,r,a,s){const{selector:i,data:o}=Oe(n,r,t);return ne({target:e,selector:i,data:o,credits:a,maxCreditedValue:s})}function ne(e){const{target:t,selector:n,data:r,credits:a,maxCreditedValue:s}=e,i=a.reduce((c,d)=>c.add(S.from(d.availableAmount)),S.from(0)),o=S.from(s).sub(i);return{credits:a.map(c=>({value:c.amount,expiresAt:Number(c.expiresAt),salt:Le(c.id)})),creditsSignatures:a.map(c=>c.signature),externalCall:{target:t,selector:n,data:r,expiresAt:Math.floor(Date.now()/1e3)+3600*24,salt:Me(_e(32))},customExternalCallSignature:"0x",maxUncreditedValue:o.isNegative()?"0":o.toString(),maxCreditedValue:s}}export{q as A,te as B,Le as C,E as M,j as O,Ee as a,Ze as b,Xe as c,je as d,Je as e,R as f,V as g,tt as h,He as i,Ke as j,Qe as k,K as l,k as m,Te as n,We as o,he as p,qe as q,p as r,Ye as s,Ve as t,Y as u,Se as v,Ne as w,Ue as x,Pe as y,et as z};
2
- //# sourceMappingURL=trade-encoding-DcVwVU4D.js.map
1
+ import{d as u,B as re}from"./dcl-schemas-_B0Kk1dX.js";import{c as _,b as x,D as ae,bi as se,l as U,M as ie,h as g,j as y,x as oe,bj as ce,g as de,bk as ue}from"./index-Bp3aHt26.js";import"./react-LHIQ98KR.js";import{M as le,E as pe,s as fe}from"./sendMetaTransaction-DqCaiE1G.js";import{C as l,M as ge,Z as z,J as ye,I as we,p as G,h as A,r as $,a as h,b as L,u as Ae,B as S}from"./ethers-Dp2JFZH-.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="09f4aa1d-26fd-4b13-b5ea-eac71395704f",e._sentryDebugIdIdentifier="sentry-dbid-09f4aa1d-26fd-4b13-b5ea-eac71395704f")}catch{}})();const O="".trim().toLowerCase(),R={enabled:O!=="0"&&O!=="false",relayerUrl:_.relayerUrl};function qe(){return R.enabled}class E extends Error{constructor(t,n){super(`${t} reverted on-chain`),this.what=t,this.txHash=n,this.name="MetaTxRevertedError"}}class k extends Error{constructor(t,n,r){super(`${t} was submitted but not confirmed in time`),this.what=t,this.txHash=n,this.name="MetaTxPendingError",r&&"cause"in r&&(this.cause=r.cause)}}async function he(e,t,n){const r=p();let a;try{a=await r.waitForTransaction(e,1,(n==null?void 0:n.timeoutMs)??12e4)}catch(s){throw new k(t,e,{cause:s})}if(!a)throw new k(t,e);if(a.status===0)throw new E(t,e);return e}async function We(e){const{txHash:t,what:n,isDone:r,timeoutMs:a=10*6e4,onWaiting:s}=e,i=Math.max(e.pollMs??5e3,50),o=p(),c=Date.now();for(;Date.now()-c<a;){try{if(await r())return t}catch{}try{const d=await o.getTransactionReceipt(t);if(d){if(d.status===0)throw new E(n,t);return t}}catch(d){if(d instanceof E)throw d}s==null||s(Date.now()-c),await new Promise(d=>setTimeout(d,i))}try{if(await r())return t}catch{}throw new k(n,t)}var q=(e=>(e.Allowance="allowance",e.Approval="approval",e.Minter="minter",e))(q||{});const D=["function allowance(address owner, address spender) view returns (uint256)","function approve(address spender, uint256 amount) returns (bool)"],P=["function isApprovedForAll(address owner, address operator) view returns (bool)","function setApprovalForAll(address operator, bool approved)"],N=["function globalMinters(address minter) view returns (bool)","function setMinters(address[] minters, bool[] values)"],W=ge;function p(){return new ye(_.rpcUrl)}async function V(e,t,n){const r=p();switch(e.kind){case"allowance":{const s=await new l(e.contractAddress,D,r).allowance(t,e.spenderAddress);return n==null||n<=0n?s.gt(0):s.gte(n.toString())}case"approval":return new l(e.contractAddress,P,r).isApprovedForAll(t,e.spenderAddress);case"minter":{const a=new l(e.contractAddress,N,r);try{return await a.globalMinters(e.spenderAddress)}catch{return!1}}}}function me(e){return e.kind==="allowance"?g(y.MANAToken,e.chainId):{...g(y.ERC721CollectionV2,e.chainId),address:e.contractAddress}}function xe(e,t){const n=new we(e.kind==="allowance"?D:e.kind==="approval"?P:N);switch(e.kind){case"allowance":return n.encodeFunctionData("approve",[e.spenderAddress,t?W:z]);case"approval":return n.encodeFunctionData("setApprovalForAll",[e.spenderAddress,t]);case"minter":return n.encodeFunctionData("setMinters",[[e.spenderAddress],[t]])}}const ve=new Set(["eth_signTypedData_v4","eth_signTypedData","eth_sign","personal_sign","eth_requestAccounts","eth_accounts","eth_chainId"]);function Te(e,t){return{send:(n,r=[])=>ve.has(n)?e.send(n,r):t.send(n,r)}}async function be(e,t,n){const r=xe(e,n),a=me(e),s=p(),i=Te(t.provider,s),o=await fe(i,s,r,a,{serverURL:R.relayerUrl});await he(o,"the authorization")}function Ie(){var e;try{return((e=oe.getState().session)==null?void 0:e.providerType)??null}catch{return null}}async function Ce(e,t){try{return await ce(e.provider)===t}catch{return!1}}async function Se(e){const{auth:t,signer:n,active:r}=e;if(R.enabled)try{await be(t,n,r);return}catch(a){if(a instanceof le&&a.code===pe.USER_DENIED)throw a;const s=se(Ie()),i=s&&await Ce(n,t.chainId);if(!s||!i)throw U(a,{flow:"authorizations",step:"gasless_no_fallback",reason:s?"wrong-chain":"managed-wallet"}),a;U(a,{flow:"authorizations",step:"gasless_fallback"})}switch(await ie(n.provider,t.chainId),t.kind){case"allowance":{await(await new l(t.contractAddress,D,n).approve(t.spenderAddress,r?W:z)).wait();return}case"approval":{await(await new l(t.contractAddress,P,n).setApprovalForAll(t.spenderAddress,r)).wait();return}case"minter":{await(await new l(t.contractAddress,N,n).setMinters([t.spenderAddress],[r])).wait();return}}}async function Y(e){const t=await e.signer.getAddress();await V(e.auth,t,e.requiredWei)||await Se({auth:e.auth,signer:e.signer,active:!0})}function Ve(e,t){return ae(e)&&!t}function Ye(e,t){return{kind:"allowance",contractAddress:g(y.MANAToken,e).address,spenderAddress:t,chainId:e}}function Ee(e,t){const n=x(t);return{id:`selling:${e.toLowerCase()}`,group:"selling",kind:"approval",contractAddress:e,spenderAddress:n.address,chainId:t}}const B=e=>Math.floor(e/1e3);async function ke(e){return await de()&&await ue()?_.treasuryAddress:e}function m(e){switch(e.assetType){case u.TradeAssetType.ERC721:return e.tokenId;case u.TradeAssetType.COLLECTION_ITEM:return e.itemId;case u.TradeAssetType.ERC20:case u.TradeAssetType.USD_PEGGED_MANA:return e.amount;default:throw new Error(`Unsupported assetType ${String(e.assetType)}`)}}function Z(e){return{checks:{uses:e.checks.uses,expiration:B(e.checks.expiration),effective:B(e.checks.effective),salt:h(e.checks.salt,32),contractSignatureIndex:e.checks.contractSignatureIndex,signerSignatureIndex:e.checks.signerSignatureIndex,allowedRoot:h(e.checks.allowedRoot||"0x",32),externalChecks:(e.checks.externalChecks??[]).map(t=>({contractAddress:t.contractAddress,selector:t.selector,value:t.value?t.value:"0x",required:t.required}))},sent:e.sent.map(t=>({assetType:t.assetType,contractAddress:t.contractAddress,value:m(t),extra:t.extra?t.extra:"0x"})),received:e.received.map(t=>({assetType:t.assetType,contractAddress:t.contractAddress,value:m(t),extra:t.extra?t.extra:"0x",beneficiary:t.beneficiary}))}}const j={Trade:[{name:"checks",type:"Checks"},{name:"sent",type:"AssetWithoutBeneficiary[]"},{name:"received",type:"Asset[]"}],Asset:[{name:"assetType",type:"uint256"},{name:"contractAddress",type:"address"},{name:"value",type:"uint256"},{name:"extra",type:"bytes"},{name:"beneficiary",type:"address"}],AssetWithoutBeneficiary:[{name:"assetType",type:"uint256"},{name:"contractAddress",type:"address"},{name:"value",type:"uint256"},{name:"extra",type:"bytes"}],Checks:[{name:"uses",type:"uint256"},{name:"expiration",type:"uint256"},{name:"effective",type:"uint256"},{name:"salt",type:"bytes32"},{name:"contractSignatureIndex",type:"uint256"},{name:"signerSignatureIndex",type:"uint256"},{name:"allowedRoot",type:"bytes32"},{name:"externalChecks",type:"ExternalCheck[]"}],ExternalCheck:[{name:"contractAddress",type:"address"},{name:"selector",type:"bytes4"},{name:"value",type:"bytes"},{name:"required",type:"bool"}]},H=["function contractSignatureIndex() view returns (uint256)","function signerSignatureIndex(address) view returns (uint256)"];function J(e,t){const n=x(t);return{kind:q.Minter,contractAddress:e,spenderAddress:n.address,chainId:t}}async function Ze(e){const t=Ee(e.contractAddress,e.chainId);await Y({auth:t,signer:e.signer})}async function je(e){const{signer:t,nft:n,usdPrice:r,expiresAtMs:a,fingerprint:s=""}=e,i=(await t.getAddress()).toLowerCase(),o=x(n.chainId),c=g(y.MANAToken,n.chainId),d=new l(o.address,H,p()),T=await d.contractSignatureIndex(),b=await d.signerSignatureIndex(i),f={signer:i,network:n.network,chainId:n.chainId,type:u.TradeType.PUBLIC_NFT_ORDER,checks:{uses:1,expiration:a,effective:Date.now(),salt:A($(32)),contractSignatureIndex:T.toNumber(),signerSignatureIndex:b.toNumber(),allowedRoot:"0x",externalChecks:[]},sent:[{assetType:u.TradeAssetType.ERC721,contractAddress:n.contractAddress,tokenId:n.tokenId,extra:s}],received:[{assetType:u.TradeAssetType.USD_PEGGED_MANA,contractAddress:c.address,amount:G(String(r)).toString(),extra:"",beneficiary:await ke(i)}]},I={name:o.name,version:o.version,salt:h(A(n.chainId),32),verifyingContract:o.address},C=await t._signTypedData(I,j,Z(f));return{...f,signature:C}}async function He(e){return V(J(e.contractAddress,e.chainId),"")}async function Je(e){await Y({auth:J(e.contractAddress,e.chainId),signer:e.signer})}async function Xe(e){const{signer:t,item:n,usdPrice:r,expiresAtMs:a}=e,s=(await t.getAddress()).toLowerCase(),i=x(n.chainId),o=g(y.MANAToken,n.chainId),c=new l(i.address,H,p()),d=await c.contractSignatureIndex(),T=await c.signerSignatureIndex(s),b=Math.max(1,Math.floor(e.uses??1)),f={signer:s,network:n.network,chainId:n.chainId,type:u.TradeType.PUBLIC_ITEM_ORDER,checks:{uses:b,expiration:a,effective:Date.now(),salt:A($(32)),contractSignatureIndex:d.toNumber(),signerSignatureIndex:T.toNumber(),allowedRoot:"0x",externalChecks:[]},sent:[{assetType:u.TradeAssetType.COLLECTION_ITEM,contractAddress:n.contractAddress,itemId:n.itemId,extra:""}],received:[{assetType:u.TradeAssetType.USD_PEGGED_MANA,contractAddress:o.address,amount:G(String(r)).toString(),extra:"",beneficiary:s}]},I={name:i.name,version:i.version,salt:h(A(n.chainId),32),verifyingContract:i.address},C=await t._signTypedData(I,j,Z(f));return{...f,signature:C}}const{defaultAbiCoder:w,Interface:v,hexZeroPad:M,hexlify:Me,randomBytes:_e}=Ae,Re="tuple(address collection,uint256[] ids,uint256[] prices,address[] beneficiaries)[]",X="tuple(address signer,bytes signature,tuple(uint256 uses,uint256 expiration,uint256 effective,bytes32 salt,uint256 contractSignatureIndex,uint256 signerSignatureIndex,bytes32 allowedRoot,bytes32[] allowedProof,tuple(address contractAddress,bytes4 selector,bytes value,bool required)[] externalChecks) checks,tuple(uint256 assetType,address contractAddress,uint256 value,address beneficiary,bytes extra)[] sent,tuple(uint256 assetType,address contractAddress,uint256 value,address beneficiary,bytes extra)[] received)[]",De="tuple(bytes signature,tuple(uint256 uses,uint256 expiration,uint256 effective,bytes32 salt,uint256 contractSignatureIndex,uint256 signerSignatureIndex,bytes32 allowedRoot,bytes32[] allowedProof,tuple(address contractAddress,bytes4 selector,bytes value,bool required)[] externalChecks) checks,address couponAddress,bytes data,bytes callerData)[]",Q="0x"+"0".repeat(64),F=e=>{const t=Number(e);return t>1e12?Math.floor(t/1e3):t};function K(e,t){return{signer:e.signer,signature:e.signature,checks:ee(e.checks),sent:e.sent.map(n=>({assetType:n.assetType,contractAddress:n.contractAddress,value:m(n),beneficiary:t,extra:n.extra||"0x"})),received:e.received.map(n=>({assetType:n.assetType,contractAddress:n.contractAddress,value:m(n),beneficiary:"beneficiary"in n&&n.beneficiary?n.beneficiary:t,extra:n.extra||"0x"}))}}function Pe(e,t,n){const r=new v(n).getSighash("accept"),a=w.encode([X],[e.map(s=>K(s,t))]);return{selector:r,data:a}}function ee(e){return{uses:e.uses,expiration:F(e.expiration),effective:F(e.effective),salt:M(e.salt,32),contractSignatureIndex:e.contractSignatureIndex,signerSignatureIndex:e.signerSignatureIndex,allowedRoot:e.allowedRoot&&e.allowedRoot!=="0x"?e.allowedRoot:Q,allowedProof:[],externalChecks:(e.externalChecks??[]).map(t=>({contractAddress:t.contractAddress,selector:t.selector,value:t.value,required:t.required}))}}function Ne(e,t=1){return{signature:e.signature,checks:ee(e.checks),couponAddress:e.couponAddress,data:w.encode(["uint256","uint256","bytes32"],[e.discountType,e.discount,e.root]),callerData:w.encode(["tuple(bytes32[][] proofs)"],[{proofs:Array.from({length:Math.max(1,t)},()=>e.proof)}])}}function Ue(e,t,n,r){if(e.length!==t.length)throw new Error(`acceptWithCoupon needs one coupon per trade, got ${t.length} for ${e.length} trades`);const a=new v(r).getSighash("acceptWithCoupon"),s=w.encode([X,De],[e.map(i=>K(i,n)),t.map((i,o)=>Ne(i,e[o].sent.length))]);return{selector:a,data:s}}function Qe(e){if(e!==80002)return{};const t=L("30","gwei");return{maxPriorityFeePerGas:t,maxFeePerGas:t.add(L("50","gwei"))}}function Le(e){return e?e.startsWith("0x")?M(e,32):M("0x"+re.from(e).toString("hex"),32):Q}function Ke(e,t,n,r,a,s,i){const{selector:o,data:c}=i!=null&&i.length?Ue(n,i,r,t):Pe(n,r,t);return ne({target:e,selector:o,data:c,credits:a,maxCreditedValue:s})}function te(e,t){return e.map(n=>({collection:n.collection,ids:[n.itemId],prices:[n.priceWei],beneficiaries:[t]}))}function Oe(e,t,n){const r=new v(n).getSighash("buy"),a=w.encode([Re],[te(e,t)]);return{selector:r,data:a}}function et(e,t,n){return new v(n).encodeFunctionData("buy",[te(e,t)])}function tt(e,t,n,r,a,s){const{selector:i,data:o}=Oe(n,r,t);return ne({target:e,selector:i,data:o,credits:a,maxCreditedValue:s})}function ne(e){const{target:t,selector:n,data:r,credits:a,maxCreditedValue:s}=e,i=a.reduce((c,d)=>c.add(S.from(d.availableAmount)),S.from(0)),o=S.from(s).sub(i);return{credits:a.map(c=>({value:c.amount,expiresAt:Number(c.expiresAt),salt:Le(c.id)})),creditsSignatures:a.map(c=>c.signature),externalCall:{target:t,selector:n,data:r,expiresAt:Math.floor(Date.now()/1e3)+3600*24,salt:Me(_e(32))},customExternalCallSignature:"0x",maxUncreditedValue:o.isNegative()?"0":o.toString(),maxCreditedValue:s}}export{q as A,te as B,Le as C,E as M,j as O,Ee as a,Ze as b,Xe as c,je as d,Je as e,R as f,V as g,tt as h,He as i,Ke as j,Qe as k,K as l,k as m,Te as n,We as o,he as p,qe as q,p as r,Ye as s,Ve as t,Y as u,Se as v,Ne as w,Ue as x,Pe as y,et as z};
2
+ //# sourceMappingURL=trade-encoding-ckNC4fJ-.js.map
@@ -1,2 +1,2 @@
1
- import{o as i,s as a}from"./prepare-contract-call-C2cYOhbO.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="3e3a3b85-51d3-4d46-a722-29fda8cc5e51",n._sentryDebugIdIdentifier="sentry-dbid-3e3a3b85-51d3-4d46-a722-29fda8cc5e51")}catch{}})();function l(n){var s;if(!n)return!1;const t=(typeof n=="string"?n:(n==null?void 0:n.message)||((s=n==null?void 0:n.data)==null?void 0:s.message)||"").toLowerCase();return t.includes("insufficient funds")||t.includes("insufficient balance")||t.includes("insufficient")&&(t.includes("native")||t.includes("gas"))||(n==null?void 0:n.code)==="INSUFFICIENT_FUNDS"||(n==null?void 0:n.reason)==="insufficient funds"}function d(n){var s;if(!n)return{message:"Unknown error"};const e=typeof n=="string"?n:(n==null?void 0:n.message)||((s=n==null?void 0:n.data)==null?void 0:s.message)||String(n);return{code:(n==null?void 0:n.code)||(n==null?void 0:n.reason),message:e}}async function o(n){return u({...n,action:"transaction:sent"})}function u(n){return i({client:n.client,data:{action:n.action,chainId:n.chainId,clientId:n.client.clientId,contractAddress:n.contractAddress,errorCode:a(n.error),functionName:n.functionName,gasPrice:n.gasPrice,transactionHash:n.transactionHash,walletAddress:n.walletAddress,walletType:n.walletType},ecosystem:n.ecosystem})}async function m(n){var t,s,c;const e=d(n.error);return i({client:n.client,data:{action:"transaction:insufficient_funds",chainId:n.chainId,clientId:n.client.clientId,contractAddress:n.contractAddress,errorCode:e.code?a(e.code):void 0,errorMessage:e.message,functionName:n.functionName,requiredAmount:(t=n.requiredAmount)==null?void 0:t.toString(),transactionValue:(s=n.transactionValue)==null?void 0:s.toString(),userBalance:(c=n.userBalance)==null?void 0:c.toString(),walletAddress:n.walletAddress},ecosystem:n.ecosystem})}export{m as a,l as i,o as t};
2
- //# sourceMappingURL=transaction-DShAG0ei.js.map
1
+ import{o as i,s as a}from"./prepare-contract-call-CthQ_8dx.js";(function(){try{var n=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new n.Error().stack;e&&(n._sentryDebugIds=n._sentryDebugIds||{},n._sentryDebugIds[e]="3e3a3b85-51d3-4d46-a722-29fda8cc5e51",n._sentryDebugIdIdentifier="sentry-dbid-3e3a3b85-51d3-4d46-a722-29fda8cc5e51")}catch{}})();function l(n){var s;if(!n)return!1;const t=(typeof n=="string"?n:(n==null?void 0:n.message)||((s=n==null?void 0:n.data)==null?void 0:s.message)||"").toLowerCase();return t.includes("insufficient funds")||t.includes("insufficient balance")||t.includes("insufficient")&&(t.includes("native")||t.includes("gas"))||(n==null?void 0:n.code)==="INSUFFICIENT_FUNDS"||(n==null?void 0:n.reason)==="insufficient funds"}function d(n){var s;if(!n)return{message:"Unknown error"};const e=typeof n=="string"?n:(n==null?void 0:n.message)||((s=n==null?void 0:n.data)==null?void 0:s.message)||String(n);return{code:(n==null?void 0:n.code)||(n==null?void 0:n.reason),message:e}}async function o(n){return u({...n,action:"transaction:sent"})}function u(n){return i({client:n.client,data:{action:n.action,chainId:n.chainId,clientId:n.client.clientId,contractAddress:n.contractAddress,errorCode:a(n.error),functionName:n.functionName,gasPrice:n.gasPrice,transactionHash:n.transactionHash,walletAddress:n.walletAddress,walletType:n.walletType},ecosystem:n.ecosystem})}async function m(n){var t,s,c;const e=d(n.error);return i({client:n.client,data:{action:"transaction:insufficient_funds",chainId:n.chainId,clientId:n.client.clientId,contractAddress:n.contractAddress,errorCode:e.code?a(e.code):void 0,errorMessage:e.message,functionName:n.functionName,requiredAmount:(t=n.requiredAmount)==null?void 0:t.toString(),transactionValue:(s=n.transactionValue)==null?void 0:s.toString(),userBalance:(c=n.userBalance)==null?void 0:c.toString(),walletAddress:n.walletAddress},ecosystem:n.ecosystem})}export{m as a,l as i,o as t};
2
+ //# sourceMappingURL=transaction-Yvut_WEw.js.map
@@ -1,2 +1,2 @@
1
- import{m as e}from"./prepare-contract-call-C2cYOhbO.js";import{d as b,a as r}from"./to-serializable-transaction-C68Txae9.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new s.Error().stack;l&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[l]="95f5bd38-dd6f-49d6-b722-b428085d2055",s._sentryDebugIdIdentifier="sentry-dbid-95f5bd38-dd6f-49d6-b722-b428085d2055")}catch{}})();function n(s,{args:l,eventName:d}={}){return{...s,blockHash:s.blockHash?s.blockHash:null,blockNumber:s.blockNumber?BigInt(s.blockNumber):null,logIndex:s.logIndex?Number(s.logIndex):null,transactionHash:s.transactionHash?s.transactionHash:null,transactionIndex:s.transactionIndex?Number(s.transactionIndex):null,...d?{args:l,eventName:d}:{}}}const f={"0x0":"reverted","0x1":"success"};function o(s,l){const d={...s,blockNumber:s.blockNumber?BigInt(s.blockNumber):null,contractAddress:s.contractAddress?s.contractAddress:null,cumulativeGasUsed:s.cumulativeGasUsed?BigInt(s.cumulativeGasUsed):null,effectiveGasPrice:s.effectiveGasPrice?BigInt(s.effectiveGasPrice):null,gasUsed:s.gasUsed?BigInt(s.gasUsed):null,logs:s.logs?s.logs.map(u=>n(u)):null,to:s.to?s.to:null,transactionIndex:s.transactionIndex?e(s.transactionIndex):null,status:s.status?f[s.status]:null,type:s.type?r[s.type]||s.type:null};return s.blobGasPrice&&(d.blobGasPrice=BigInt(s.blobGasPrice)),s.blobGasUsed&&(d.blobGasUsed=BigInt(s.blobGasUsed)),d}const m=b("transactionReceipt",o);export{n as a,m as d,o as f,f as r};
2
- //# sourceMappingURL=transactionReceipt-C7KPa1TY.js.map
1
+ import{m as e}from"./prepare-contract-call-CthQ_8dx.js";import{d as b,a as r}from"./to-serializable-transaction-CkE-NgmW.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},l=new s.Error().stack;l&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[l]="95f5bd38-dd6f-49d6-b722-b428085d2055",s._sentryDebugIdIdentifier="sentry-dbid-95f5bd38-dd6f-49d6-b722-b428085d2055")}catch{}})();function n(s,{args:l,eventName:d}={}){return{...s,blockHash:s.blockHash?s.blockHash:null,blockNumber:s.blockNumber?BigInt(s.blockNumber):null,logIndex:s.logIndex?Number(s.logIndex):null,transactionHash:s.transactionHash?s.transactionHash:null,transactionIndex:s.transactionIndex?Number(s.transactionIndex):null,...d?{args:l,eventName:d}:{}}}const f={"0x0":"reverted","0x1":"success"};function o(s,l){const d={...s,blockNumber:s.blockNumber?BigInt(s.blockNumber):null,contractAddress:s.contractAddress?s.contractAddress:null,cumulativeGasUsed:s.cumulativeGasUsed?BigInt(s.cumulativeGasUsed):null,effectiveGasPrice:s.effectiveGasPrice?BigInt(s.effectiveGasPrice):null,gasUsed:s.gasUsed?BigInt(s.gasUsed):null,logs:s.logs?s.logs.map(u=>n(u)):null,to:s.to?s.to:null,transactionIndex:s.transactionIndex?e(s.transactionIndex):null,status:s.status?f[s.status]:null,type:s.type?r[s.type]||s.type:null};return s.blobGasPrice&&(d.blobGasPrice=BigInt(s.blobGasPrice)),s.blobGasUsed&&(d.blobGasUsed=BigInt(s.blobGasUsed)),d}const m=b("transactionReceipt",o);export{n as a,m as d,o as f,f as r};
2
+ //# sourceMappingURL=transactionReceipt-bOGdURTM.js.map
@@ -1,4 +1,4 @@
1
- import{a as m,i as s,b as c}from"./lit-element-wjYUA6aF.js";import"./index-B47x5iYD.js";import{c as d}from"./index-B0icZDm6.js";import"./index-D_LWbA_T.js";import"./index-BJQicl8s.js";import"./react-4P5sGbEq.js";import"./dcl-schemas-CIgtuOoU.js";import"./sentry-BhkK6fEK.js";import"./ethers-B_gMX7bu.js";import"./intl-AKLEHPeO.js";import"./W3MFrameProviderSingleton-DtsX-WLb.js";import"./index-ZWBqYIeK.js";import"./index-BxZY3R6O.js";import"./events-Dn3_sDeB.js";import"./browser-ponyfill-1RGXVE2_.js";import"./NetworkUtil-C4JZB8Ae.js";import"./index-DIMycRNk.js";import"./index-OpYIGLSa.js";import"./index-DVNQ3djO.js";import"./index.es-DUGjvY5V.js";import"./class-map-BxMzgOIb.js";import"./index-rlHJmfTq.js";import"./index-Ao40Rh7v.js";import"./index-C6lsb53t.js";import"./index-lBF5zNbH.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="9b52bfc8-8dcc-426e-bbe6-b17282968619",t._sentryDebugIdIdentifier="sentry-dbid-9b52bfc8-8dcc-426e-bbe6-b17282968619")}catch{}})();const a=m`
1
+ import{a as m,i as s,b as c}from"./lit-element-wjYUA6aF.js";import"./index-BnTx4ws4.js";import{c as d}from"./index-2NXkxE64.js";import"./index-C91yDpJn.js";import"./index-Bp3aHt26.js";import"./react-LHIQ98KR.js";import"./dcl-schemas-_B0Kk1dX.js";import"./sentry-DfhH7M7m.js";import"./ethers-Dp2JFZH-.js";import"./intl-AKLEHPeO.js";import"./W3MFrameProviderSingleton-Bi11xf0a.js";import"./index-DW2SBgsT.js";import"./index-C_en7zzj.js";import"./events-keqiXLZy.js";import"./browser-ponyfill-CrYE44xX.js";import"./NetworkUtil-BKndxmAv.js";import"./index-DitYYXq7.js";import"./index-OpYIGLSa.js";import"./index-DkSpWs0n.js";import"./index.es-CF1TpWwB.js";import"./class-map-BxMzgOIb.js";import"./index-CDLnCGnN.js";import"./index-SOl7iePx.js";import"./index-CsmKttlZ.js";import"./index-COLL-965.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new t.Error().stack;e&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[e]="9b52bfc8-8dcc-426e-bbe6-b17282968619",t._sentryDebugIdIdentifier="sentry-dbid-9b52bfc8-8dcc-426e-bbe6-b17282968619")}catch{}})();const a=m`
2
2
  :host > wui-flex:first-child {
3
3
  height: 500px;
4
4
  overflow-y: auto;
@@ -14,4 +14,4 @@ import{a as m,i as s,b as c}from"./lit-element-wjYUA6aF.js";import"./index-B47x5
14
14
  <w3m-activity-list page="activity"></w3m-activity-list>
15
15
  </wui-flex>
16
16
  `}};l.styles=a;l=b([d("w3m-transactions-view")],l);export{l as W3mTransactionsView};
17
- //# sourceMappingURL=transactions-DMCLNnvd.js.map
17
+ //# sourceMappingURL=transactions-pJWMS9Al.js.map
@@ -1,2 +1,2 @@
1
- import{aC as x,aD as p,aE as b,aF as N,aG as y}from"./index-BJQicl8s.js";import"./react-4P5sGbEq.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="adde6210-2d93-441e-8e4e-4a6aa0697700",e._sentryDebugIdIdentifier="sentry-dbid-adde6210-2d93-441e-8e4e-4a6aa0697700")}catch{}})();var v=class extends x{constructor(e,r){super(e,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,r){var P,l;const{state:i}=e,t=super.createResult(e,r),{isFetching:o,isRefetching:g,isError:n,isRefetchError:h}=t,s=(l=(P=i.fetchMeta)==null?void 0:P.fetchMore)==null?void 0:l.direction,a=n&&s==="forward",d=o&&s==="forward",c=n&&s==="backward",u=o&&s==="backward";return{...t,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:b(r,i.data),hasPreviousPage:p(r,i.data),isFetchNextPageError:a,isFetchingNextPage:d,isFetchPreviousPageError:c,isFetchingPreviousPage:u,isRefetchError:h&&!a&&!c,isRefetching:g&&!d&&!u}}};function m(e,r){return N(e,v)}function F(e,r,i={}){var n,h,s;const t=m({queryKey:e,enabled:i.enabled,queryFn:({pageParam:a})=>r(a),initialPageParam:0,getNextPageParam:(a,d)=>{if(a.items.length===0)return;const c=d.reduce((u,f)=>u+f.items.length,0);return c<a.total?c:void 0},placeholderData:y}),o=(((n=t.data)==null?void 0:n.pages)??[]).flatMap(a=>a.items),g=((s=(h=t.data)==null?void 0:h.pages[0])==null?void 0:s.total)??0;return{items:o,total:g,isLoading:t.isLoading,isPlaceholderData:t.isPlaceholderData,isError:t.isError,error:t.error,hasNextPage:t.hasNextPage,isFetchingNextPage:t.isFetchingNextPage,isFetchNextPageError:t.isFetchNextPageError,fetchNextPage:t.fetchNextPage}}export{F as u};
2
- //# sourceMappingURL=useInfiniteGrid-DS-eHJl3.js.map
1
+ import{aC as x,aD as p,aE as b,aF as N,aG as y}from"./index-Bp3aHt26.js";import"./react-LHIQ98KR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},r=new e.Error().stack;r&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[r]="adde6210-2d93-441e-8e4e-4a6aa0697700",e._sentryDebugIdIdentifier="sentry-dbid-adde6210-2d93-441e-8e4e-4a6aa0697700")}catch{}})();var v=class extends x{constructor(e,r){super(e,r)}bindMethods(){super.bindMethods(),this.fetchNextPage=this.fetchNextPage.bind(this),this.fetchPreviousPage=this.fetchPreviousPage.bind(this)}setOptions(e){e._type="infinite",super.setOptions(e)}getOptimisticResult(e){return e._type="infinite",super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,r){var P,l;const{state:i}=e,t=super.createResult(e,r),{isFetching:o,isRefetching:g,isError:n,isRefetchError:h}=t,s=(l=(P=i.fetchMeta)==null?void 0:P.fetchMore)==null?void 0:l.direction,a=n&&s==="forward",d=o&&s==="forward",c=n&&s==="backward",u=o&&s==="backward";return{...t,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:b(r,i.data),hasPreviousPage:p(r,i.data),isFetchNextPageError:a,isFetchingNextPage:d,isFetchPreviousPageError:c,isFetchingPreviousPage:u,isRefetchError:h&&!a&&!c,isRefetching:g&&!d&&!u}}};function m(e,r){return N(e,v)}function F(e,r,i={}){var n,h,s;const t=m({queryKey:e,enabled:i.enabled,queryFn:({pageParam:a})=>r(a),initialPageParam:0,getNextPageParam:(a,d)=>{if(a.items.length===0)return;const c=d.reduce((u,f)=>u+f.items.length,0);return c<a.total?c:void 0},placeholderData:y}),o=(((n=t.data)==null?void 0:n.pages)??[]).flatMap(a=>a.items),g=((s=(h=t.data)==null?void 0:h.pages[0])==null?void 0:s.total)??0;return{items:o,total:g,isLoading:t.isLoading,isPlaceholderData:t.isPlaceholderData,isError:t.isError,error:t.error,hasNextPage:t.hasNextPage,isFetchingNextPage:t.isFetchingNextPage,isFetchNextPageError:t.isFetchNextPageError,fetchNextPage:t.fetchNextPage}}export{F as u};
2
+ //# sourceMappingURL=useInfiniteGrid-SY9xs2bD.js.map
@@ -1,3 +1,3 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-Dyai1waz.js","_assets/react-4P5sGbEq.js","_assets/index-pzFHM3no.js","_assets/sentry-BhkK6fEK.js","_assets/index-D6bgolKH.js","_assets/index-CUbbKhDQ.js","_assets/index-D6RUnASW.js","_assets/ethers-B_gMX7bu.js","_assets/events-Dn3_sDeB.js","_assets/dcl-schemas-CIgtuOoU.js","_assets/DeploymentBuilder-7eFv_frV.js","_assets/ContentClient-CeSQQmZ0.js"])))=>i.map(i=>d[i]);
2
- import{_ as h,v as b,c as v,l as _,w as k}from"./index-BJQicl8s.js";import{d as g}from"./dcl-schemas-CIgtuOoU.js";import"./react-4P5sGbEq.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a7e07e65-f87e-42d2-a7bf-0126be2ef76f",e._sentryDebugIdIdentifier="sentry-dbid-a7e07e65-f87e-42d2-a7bf-0126be2ef76f")}catch{}})();const w=()=>({cover:"",coverHash:"",description:"",links:{website:"",twitter:"",discord:"",facebook:""}}),m=e=>`urn:decentraland:off-chain:marketplace-stores:${e.toLowerCase()}`;function d(e,t){var n;const o=((n=e==null?void 0:e.find(r=>r.name===t))==null?void 0:n.url)??"";return o.startsWith("https://")?o:""}async function E(e){var t,o,n;try{const r=await fetch(`${v.peerUrl}/content/entities/active`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pointers:[m(e)]})});if(!r.ok)return w();const i=await r.json(),c=i==null?void 0:i[0];if(!(c!=null&&c.metadata))return w();const{metadata:s,content:f}=c,u=(o=(t=s.images)==null?void 0:t.find(l=>l.name==="cover"))==null?void 0:o.file,p=u?(n=f==null?void 0:f.find(l=>l.file===u))==null?void 0:n.hash:void 0;return{cover:p?`${v.peerUrl}/content/contents/${p}`:"",coverHash:p??"",description:(s.description??"").trim(),links:{website:d(s.links,"website"),twitter:d(s.links,"twitter"),discord:d(s.links,"discord"),facebook:d(s.links,"facebook")}}}catch{return w()}}const I=["website","twitter","discord","facebook"],S={website:"https://",twitter:"https://www.twitter.com/",discord:"https://discord.gg/",facebook:"https://www.facebook.com/"};function U(e){return{cover:e.cover,coverName:e.cover?C(e.cover):"",coverHash:e.coverHash,description:e.description,links:{...e.links}}}const y=new Map;function H(e){let t=y.get(e);return t||(t=(async()=>{const{hashV1:o}=await h(async()=>{const{hashV1:r}=await import("./index-Dyai1waz.js").then(i=>i.i);return{hashV1:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),n=new Uint8Array(await(await fetch(e)).arrayBuffer());return o(n)})(),y.set(e,t)),t}function C(e){return`cover/${decodeURIComponent(e.split("?")[0].split("/").pop()||"")||"cover.jpeg"}`}function $(e,t){return t===""||t.startsWith(S[e])}function L(e,t){const o=e.toLowerCase(),n=I.filter(i=>t.links[i]).map(i=>({name:i,url:t.links[i]})),r=t.cover&&t.coverName?[{name:"cover",file:t.coverName}]:[];return{id:m(o),owner:o,description:t.description,images:r,links:n,version:1}}async function T(e){const t=new Map;if(e.cover&&e.coverName){const o=await fetch(e.cover);t.set(e.coverName,new Uint8Array(await o.arrayBuffer()))}return t}async function A(e,t,o){try{const[{buildEntity:n},{createContentClient:r}]=await Promise.all([h(()=>import("./DeploymentBuilder-7eFv_frV.js").then(a=>a.D),__vite__mapDeps([10,1,2,3,4,5,6,7,8,9])),h(()=>import("./ContentClient-CeSQQmZ0.js").then(a=>a.C),__vite__mapDeps([11,1,2,3,4,5,6,7,8,9]))]),i=L(e,t),c=await T(t),s=await n({type:g.EntityType.STORE,pointers:[m(e)],files:c,metadata:i,timestamp:Date.now()}),f=b.Authenticator.signPayload(o,s.entityId),u={fetch:(a,l)=>globalThis.fetch(a,l)};await r({url:`${v.peerUrl}/content`,fetcher:u}).deploy({...s,authChain:f})}catch(n){_(n,{flow:"saveStore"});const r=new Error("save-failed");throw r.cause=n,r}}function F(e){return k({queryKey:["store",e==null?void 0:e.toLowerCase()],enabled:!!e,staleTime:5*6e4,queryFn:()=>E(e)})}export{I as L,S as a,U as d,$ as i,A as s,H as t,F as u};
3
- //# sourceMappingURL=useStore-D4vtf_uM.js.map
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-DGy4gD9M.js","_assets/react-LHIQ98KR.js","_assets/index-BV74hnAs.js","_assets/sentry-DfhH7M7m.js","_assets/index-5PEf1C05.js","_assets/index-Cq2mz6sF.js","_assets/index-Bvn260Vl.js","_assets/ethers-Dp2JFZH-.js","_assets/events-keqiXLZy.js","_assets/dcl-schemas-_B0Kk1dX.js","_assets/DeploymentBuilder-HajOLjzg.js","_assets/ContentClient-BTeKzo7T.js"])))=>i.map(i=>d[i]);
2
+ import{_ as h,v as b,c as v,l as _,w as k}from"./index-Bp3aHt26.js";import{d as g}from"./dcl-schemas-_B0Kk1dX.js";import"./react-LHIQ98KR.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="a7e07e65-f87e-42d2-a7bf-0126be2ef76f",e._sentryDebugIdIdentifier="sentry-dbid-a7e07e65-f87e-42d2-a7bf-0126be2ef76f")}catch{}})();const w=()=>({cover:"",coverHash:"",description:"",links:{website:"",twitter:"",discord:"",facebook:""}}),m=e=>`urn:decentraland:off-chain:marketplace-stores:${e.toLowerCase()}`;function d(e,t){var n;const o=((n=e==null?void 0:e.find(r=>r.name===t))==null?void 0:n.url)??"";return o.startsWith("https://")?o:""}async function E(e){var t,o,n;try{const r=await fetch(`${v.peerUrl}/content/entities/active`,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({pointers:[m(e)]})});if(!r.ok)return w();const i=await r.json(),c=i==null?void 0:i[0];if(!(c!=null&&c.metadata))return w();const{metadata:s,content:f}=c,u=(o=(t=s.images)==null?void 0:t.find(l=>l.name==="cover"))==null?void 0:o.file,p=u?(n=f==null?void 0:f.find(l=>l.file===u))==null?void 0:n.hash:void 0;return{cover:p?`${v.peerUrl}/content/contents/${p}`:"",coverHash:p??"",description:(s.description??"").trim(),links:{website:d(s.links,"website"),twitter:d(s.links,"twitter"),discord:d(s.links,"discord"),facebook:d(s.links,"facebook")}}}catch{return w()}}const I=["website","twitter","discord","facebook"],S={website:"https://",twitter:"https://www.twitter.com/",discord:"https://discord.gg/",facebook:"https://www.facebook.com/"};function U(e){return{cover:e.cover,coverName:e.cover?C(e.cover):"",coverHash:e.coverHash,description:e.description,links:{...e.links}}}const y=new Map;function H(e){let t=y.get(e);return t||(t=(async()=>{const{hashV1:o}=await h(async()=>{const{hashV1:r}=await import("./index-DGy4gD9M.js").then(i=>i.i);return{hashV1:r}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9])),n=new Uint8Array(await(await fetch(e)).arrayBuffer());return o(n)})(),y.set(e,t)),t}function C(e){return`cover/${decodeURIComponent(e.split("?")[0].split("/").pop()||"")||"cover.jpeg"}`}function $(e,t){return t===""||t.startsWith(S[e])}function L(e,t){const o=e.toLowerCase(),n=I.filter(i=>t.links[i]).map(i=>({name:i,url:t.links[i]})),r=t.cover&&t.coverName?[{name:"cover",file:t.coverName}]:[];return{id:m(o),owner:o,description:t.description,images:r,links:n,version:1}}async function T(e){const t=new Map;if(e.cover&&e.coverName){const o=await fetch(e.cover);t.set(e.coverName,new Uint8Array(await o.arrayBuffer()))}return t}async function A(e,t,o){try{const[{buildEntity:n},{createContentClient:r}]=await Promise.all([h(()=>import("./DeploymentBuilder-HajOLjzg.js").then(a=>a.D),__vite__mapDeps([10,1,2,3,4,5,6,7,8,9])),h(()=>import("./ContentClient-BTeKzo7T.js").then(a=>a.C),__vite__mapDeps([11,1,2,3,4,5,6,7,8,9]))]),i=L(e,t),c=await T(t),s=await n({type:g.EntityType.STORE,pointers:[m(e)],files:c,metadata:i,timestamp:Date.now()}),f=b.Authenticator.signPayload(o,s.entityId),u={fetch:(a,l)=>globalThis.fetch(a,l)};await r({url:`${v.peerUrl}/content`,fetcher:u}).deploy({...s,authChain:f})}catch(n){_(n,{flow:"saveStore"});const r=new Error("save-failed");throw r.cause=n,r}}function F(e){return k({queryKey:["store",e==null?void 0:e.toLowerCase()],enabled:!!e,staleTime:5*6e4,queryFn:()=>E(e)})}export{I as L,S as a,U as d,$ as i,A as s,H as t,F as u};
3
+ //# sourceMappingURL=useStore-DtSFjEO-.js.map
@@ -1,2 +1,2 @@
1
- import"./react-4P5sGbEq.js";import{u as d,o as n,q as f}from"./index-BJQicl8s.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fe6f548d-ca29-4b4e-936b-933702a9fd57",e._sentryDebugIdIdentifier="sentry-dbid-fe6f548d-ca29-4b4e-936b-933702a9fd57")}catch{}})();function u(){const e=d(f);return e[n]||e}export{u};
2
- //# sourceMappingURL=useTheme-DdgO2k0Y.js.map
1
+ import"./react-LHIQ98KR.js";import{u as d,o as n,q as f}from"./index-Bp3aHt26.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="fe6f548d-ca29-4b4e-936b-933702a9fd57",e._sentryDebugIdIdentifier="sentry-dbid-fe6f548d-ca29-4b4e-936b-933702a9fd57")}catch{}})();function u(){const e=d(f);return e[n]||e}export{u};
2
+ //# sourceMappingURL=useTheme-B2sXCJMT.js.map
@@ -1,2 +1,2 @@
1
- import{p as z}from"./sentry-BhkK6fEK.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="15f53e91-5b4c-4476-af89-157f78f1215c",e._sentryDebugIdIdentifier="sentry-dbid-15f53e91-5b4c-4476-af89-157f78f1215c")}catch{}})();const b="rpc.thirdweb.com",L="social.thirdweb.com",A="embedded-wallet.thirdweb.com",R="pay.thirdweb.com",v="storage.thirdweb.com",x="bundler.thirdweb.com",$="c.thirdweb.com",C="insight.thirdweb.com",N="engine.thirdweb.com",O="bridge.thirdweb.com";let _={analytics:$,bridge:O,bundler:x,engineCloud:N,inAppWallet:A,insight:C,pay:R,rpc:b,social:L,storage:v};const H=e=>{_={analytics:e.analytics??$,bridge:e.bridge??O,bundler:e.bundler??x,engineCloud:e.engineCloud??N,inAppWallet:e.inAppWallet??A,insight:e.insight??C,pay:e.pay??R,rpc:e.rpc??b,social:e.social??L,storage:e.storage??v}},d=()=>_,V=e=>{const t=_[e];return t.startsWith("localhost")?`http://${t}`:`https://${t}`};let k=null;const X=e=>{k=e},M=()=>k,Ue=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_RPC_URL:b,getServiceKey:M,getThirdwebBaseUrl:V,getThirdwebDomains:d,setServiceKey:X,setThirdwebDomains:H},Symbol.toStringTag,{value:"Module"})),G="5.120.1";class Q extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const U=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Y(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?"mobile":typeof navigator<"u"?"browser":"node"}function q(e){for(let t=0,n=U.length;t<n;t++){const[r,s]=U[t];if(s.exec(e))return r}return null}function E(e){return e.split(".").length===3}var J={};const Z=typeof z<"u"&&J&&!1,ee=6e4;function te(e,t){async function n(r,s){const{requestTimeoutMs:c=ee,useAuthToken:o,...y}=s||{};let i=y.headers?new Headers(y.headers):typeof r=="object"?r.headers:void 0;const f=typeof r=="string"?r:r.url;if(T(f)){i||(i=new Headers);const p=o&&e.secretKey&&E(e.secretKey)?e.secretKey:void 0,I=e.secretKey&&!E(e.secretKey)?e.secretKey:void 0,m=e.clientId;p&&ie(f)?(i.set("authorization",`Bearer ${p}`),e.teamId&&i.set("x-team-id",e.teamId),m&&i.set("x-client-id",m)):p&&!re(f)&&!se(f)?(i.set("authorization",`Bearer ${p}`),e.teamId&&i.set("x-team-id",e.teamId)):(I&&i.set("x-secret-key",I),m&&i.set("x-client-id",m)),t&&(i.set("x-ecosystem-id",t.id),t.partnerId&&i.set("x-ecosystem-partner-id",t.partnerId));for(const[j,K]of P())i.set(j,K);const W=M();W&&i.set("x-service-api-key",W)}let u,g;return c&&(u=new AbortController,g=setTimeout(()=>{u==null||u.abort("timeout")},c)),fetch(r,{...y,headers:i,signal:u==null?void 0:u.signal}).finally(()=>{g&&clearTimeout(g)})}return n}const ne=[".thirdweb.com",".ipfscdn.io",".thirdweb.dev",".thirdweb-dev.com",".thirdwebstorage-dev.com"],l=new Q(4096);function T(e){if(l.has(e))return l.get(e);try{const{hostname:t}=new URL(e),n=ne.some(r=>t.endsWith(r));return l.set(e,n),n}catch{return l.set(e,!1),!1}}function re(e){try{const{hostname:t}=new URL(e);return t.startsWith("pay.")}catch{return!1}}function se(e){try{const{hostname:t}=new URL(e);return t.startsWith("in-app-wallet.")||t.startsWith("embedded-wallet.")}catch{return!1}}function ie(e){try{const{hostname:t}=new URL(e);return t.endsWith(".bundler.thirdweb.com")||t.endsWith(".bundler.thirdweb-dev.com")}catch{return!1}}const ce="unified-sdk";let h;function P(){if(h)return h;let e=null;typeof navigator<"u"&&(e=q(navigator.userAgent));let t;return typeof globalThis<"u"&&"Application"in globalThis&&(t=globalThis.Application.applicationId),h=Object.entries({"x-sdk-name":ce,"x-sdk-os":e?oe(e):"unknown","x-sdk-platform":Y(),"x-sdk-version":G,...t?{"x-bundle-id":t}:{}}),h}function oe(e){const t=e.toLowerCase();if(t.startsWith("win"))return"win";switch(e){case"Mac OS":return"mac";case"iOS":return"ios";case"Android OS":return"android";default:return t.replace(/\s/gi,"_")}}const Ee=Object.freeze(Object.defineProperty({__proto__:null,IS_THIRDWEB_URL_CACHE:l,getClientFetch:te,getPlatformHeaders:P,isThirdwebUrl:T},Symbol.toStringTag,{value:"Module"})),ue=new Map,ae=new Map;function de(e){const t=(s,c)=>({clear:()=>c.delete(s),get:()=>c.get(s),set:o=>c.set(s,o)}),n=t(e,ue),r=t(e,ae);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function D(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){const r=de(t),s=r.response.get();if(s&&n>0&&Date.now()-s.created.getTime()<n)return s.data;let c=r.promise.get();c||(c=e(),r.promise.set(c));try{const o=await c;return r.response.set({created:new Date,data:o}),o}finally{r.promise.clear()}}const a=new Map;function le(e){const t=d().rpc;if(typeof e=="number")return{id:e,rpc:`https://${e}.${t}`};if(be(e))return F(e);if(he(e))return B(e);let n=e.rpc;n||(n=`https://${e.id}.${t}`);const r={...e,rpc:n};return a.set(e.id,r),r}function fe(e){for(const t of e)a.set(t.id,t)}function pe(e){if(a.has(e))return a.get(e);const t=d().rpc;return{id:e,rpc:`https://${e}.${t}`}}function me(e){return a.get(e)}function he(e){return"rpc"in e&&Array.isArray(e.rpc)&&"slug"in e}function B(e){var n;const t=d().rpc;return{blockExplorers:(n=e==null?void 0:e.explorers)==null?void 0:n.map(r=>({apiUrl:r.url,name:r.name,url:r.url})),faucets:e.faucets?[...e.faucets]:void 0,icon:e.icon,id:e.chainId,name:e.name,nativeCurrency:{decimals:e.nativeCurrency.decimals,name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol},rpc:e.rpc[0]??`https://${e.chainId}.${t}`,testnet:e.testnet?!0:void 0}}function be(e){return"rpcUrls"in e&&!("rpc"in e)}function F(e){const t=d().rpc;return{blockExplorers:e!=null&&e.blockExplorers?Object.values(e==null?void 0:e.blockExplorers).map(n=>({apiUrl:n.apiUrl,name:n.name,url:n.url})):[],id:e.id,name:e.name,nativeCurrency:{decimals:e.nativeCurrency.decimals,name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol},rpc:e.rpcUrls.default.http[0]??`https://${e.id}.${t}`,testnet:e.testnet?!0:void 0}}function we(e){const t=d().rpc;if(typeof e.chain=="number")return`https://${e.chain}.${t}/${e.client.clientId}`;const{rpc:n}=e.chain;if(T(n)){const r=new URL(e.chain.rpc.replace(b,t));return(r.pathname==="/"||r.pathname.startsWith("/$"))&&(r.pathname=`/${e.client.clientId}`),r.toString()}return n}async function ye(e){var t;return(t=e.nativeCurrency)!=null&&t.symbol?e.nativeCurrency.symbol:w(e).then(n=>n.nativeCurrency.symbol).catch(()=>"ETH")}async function ge(e){var t;return(t=e.nativeCurrency)!=null&&t.decimals?e.nativeCurrency.decimals:w(e).then(n=>n.nativeCurrency.decimals).catch(()=>18)}async function _e(e){var t;return(t=e.nativeCurrency)!=null&&t.name?e.nativeCurrency.name:w(e).then(n=>n.nativeCurrency.name).catch(()=>"ETH")}function w(e){const t=e.id;return D(async()=>{try{const n=await fetch(`https://api.thirdweb.com/v1/chains/${t}`);if(!n.ok)throw new Error(`Failed to fetch chain data for chainId ${t}. ${n.status} ${n.statusText}`);const r=await n.json();if(r.error)throw new Error(`Failed to fetch chain data for chainId ${t}`);if(!r.data)throw new Error(`Failed to fetch chain data for chainId ${t}`);const s=r.data;return S(e,s)}catch{return S(e)}},{cacheKey:`chain:${t}`,cacheTime:300*1e3})}async function Te(){return D(async()=>{const e=await fetch("https://api.thirdweb.com/v1/chains/services?service=insight");if(!e.ok)throw new Error(`Failed to fetch services. ${e.status} ${e.statusText}`);const t=await e.json();return Object.keys(t.data).map(n=>Number(n))},{cacheKey:"chain:insight-enabled",cacheTime:1440*60*1e3})}function Ie(e){var t;return{blockExplorers:(t=e.explorers)==null?void 0:t.map(n=>({apiUrl:n.url,name:n.name,url:n.url})),faucets:e.faucets?[...e.faucets]:void 0,icon:e.icon,id:e.chainId,name:e.name,nativeCurrency:e.nativeCurrency,rpc:e.rpc[0]||"",testnet:e.testnet===!0?!0:void 0}}function S(e,t){var r;const n=e.nativeCurrency?{...t==null?void 0:t.nativeCurrency,...e.nativeCurrency}:t==null?void 0:t.nativeCurrency;return{...t,chain:(t==null?void 0:t.chain)||e.name||"",chainId:e.id||(t==null?void 0:t.chainId)||-1,explorers:((r=e.blockExplorers)==null?void 0:r.map(s=>({name:s.name,standard:"EIP3091",url:s.url})))||(t==null?void 0:t.explorers),icon:e.icon||(t==null?void 0:t.icon),name:e.name||(t==null?void 0:t.name)||"",nativeCurrency:{decimals:(n==null?void 0:n.decimals)||18,name:(n==null?void 0:n.name)||"",symbol:(n==null?void 0:n.symbol)||""},rpc:e.rpc?[e.rpc]:(t==null?void 0:t.rpc)||[""],shortName:(t==null?void 0:t.shortName)||e.name||"",slug:(t==null?void 0:t.slug)||e.name||"",stackType:(t==null?void 0:t.stackType)||"",testnet:e.testnet||(t==null?void 0:t.testnet)||!1}}const Se=Object.freeze(Object.defineProperty({__proto__:null,CUSTOM_CHAIN_MAP:a,cacheChains:fe,convertApiChainToChain:Ie,convertLegacyChain:B,convertViemChain:F,defineChain:le,getCachedChain:pe,getCachedChainIfExists:me,getChainDecimals:ge,getChainMetadata:w,getChainNativeCurrencyName:_e,getChainSymbol:ye,getInsightEnabledChainIds:Te,getRpcUrlForChain:we},Symbol.toStringTag,{value:"Module"}));export{Q as L,pe as a,we as b,V as c,le as d,te as e,d as f,Te as g,me as h,T as i,E as j,w as k,q as l,ye as m,ge as n,_e as o,fe as p,Ue as q,Ee as r,Se as u,D as w};
2
- //# sourceMappingURL=utils-Bhk-dfOy.js.map
1
+ import{p as z}from"./sentry-DfhH7M7m.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="15f53e91-5b4c-4476-af89-157f78f1215c",e._sentryDebugIdIdentifier="sentry-dbid-15f53e91-5b4c-4476-af89-157f78f1215c")}catch{}})();const b="rpc.thirdweb.com",L="social.thirdweb.com",A="embedded-wallet.thirdweb.com",R="pay.thirdweb.com",v="storage.thirdweb.com",x="bundler.thirdweb.com",$="c.thirdweb.com",C="insight.thirdweb.com",N="engine.thirdweb.com",O="bridge.thirdweb.com";let _={analytics:$,bridge:O,bundler:x,engineCloud:N,inAppWallet:A,insight:C,pay:R,rpc:b,social:L,storage:v};const H=e=>{_={analytics:e.analytics??$,bridge:e.bridge??O,bundler:e.bundler??x,engineCloud:e.engineCloud??N,inAppWallet:e.inAppWallet??A,insight:e.insight??C,pay:e.pay??R,rpc:e.rpc??b,social:e.social??L,storage:e.storage??v}},d=()=>_,V=e=>{const t=_[e];return t.startsWith("localhost")?`http://${t}`:`https://${t}`};let k=null;const X=e=>{k=e},M=()=>k,Ue=Object.freeze(Object.defineProperty({__proto__:null,DEFAULT_RPC_URL:b,getServiceKey:M,getThirdwebBaseUrl:V,getThirdwebDomains:d,setServiceKey:X,setThirdwebDomains:H},Symbol.toStringTag,{value:"Module"})),G="5.120.1";class Q extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const U=[["iOS",/iP(hone|od|ad)/],["Android OS",/Android/],["BlackBerry OS",/BlackBerry|BB10/],["Windows Mobile",/IEMobile/],["Amazon OS",/Kindle/],["Windows 3.11",/Win16/],["Windows 95",/(Windows 95)|(Win95)|(Windows_95)/],["Windows 98",/(Windows 98)|(Win98)/],["Windows 2000",/(Windows NT 5.0)|(Windows 2000)/],["Windows XP",/(Windows NT 5.1)|(Windows XP)/],["Windows Server 2003",/(Windows NT 5.2)/],["Windows Vista",/(Windows NT 6.0)/],["Windows 7",/(Windows NT 6.1)/],["Windows 8",/(Windows NT 6.2)/],["Windows 8.1",/(Windows NT 6.3)/],["Windows 10",/(Windows NT 10.0)/],["Windows ME",/Windows ME/],["Windows CE",/Windows CE|WinCE|Microsoft Pocket Internet Explorer/],["Open BSD",/OpenBSD/],["Sun OS",/SunOS/],["Chrome OS",/CrOS/],["Linux",/(Linux)|(X11)/],["Mac OS",/(Mac_PowerPC)|(Macintosh)/],["QNX",/QNX/],["BeOS",/BeOS/],["OS/2",/OS\/2/]];function Y(){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?"mobile":typeof navigator<"u"?"browser":"node"}function q(e){for(let t=0,n=U.length;t<n;t++){const[r,s]=U[t];if(s.exec(e))return r}return null}function E(e){return e.split(".").length===3}var J={};const Z=typeof z<"u"&&J&&!1,ee=6e4;function te(e,t){async function n(r,s){const{requestTimeoutMs:c=ee,useAuthToken:o,...y}=s||{};let i=y.headers?new Headers(y.headers):typeof r=="object"?r.headers:void 0;const f=typeof r=="string"?r:r.url;if(T(f)){i||(i=new Headers);const p=o&&e.secretKey&&E(e.secretKey)?e.secretKey:void 0,I=e.secretKey&&!E(e.secretKey)?e.secretKey:void 0,m=e.clientId;p&&ie(f)?(i.set("authorization",`Bearer ${p}`),e.teamId&&i.set("x-team-id",e.teamId),m&&i.set("x-client-id",m)):p&&!re(f)&&!se(f)?(i.set("authorization",`Bearer ${p}`),e.teamId&&i.set("x-team-id",e.teamId)):(I&&i.set("x-secret-key",I),m&&i.set("x-client-id",m)),t&&(i.set("x-ecosystem-id",t.id),t.partnerId&&i.set("x-ecosystem-partner-id",t.partnerId));for(const[j,K]of P())i.set(j,K);const W=M();W&&i.set("x-service-api-key",W)}let u,g;return c&&(u=new AbortController,g=setTimeout(()=>{u==null||u.abort("timeout")},c)),fetch(r,{...y,headers:i,signal:u==null?void 0:u.signal}).finally(()=>{g&&clearTimeout(g)})}return n}const ne=[".thirdweb.com",".ipfscdn.io",".thirdweb.dev",".thirdweb-dev.com",".thirdwebstorage-dev.com"],l=new Q(4096);function T(e){if(l.has(e))return l.get(e);try{const{hostname:t}=new URL(e),n=ne.some(r=>t.endsWith(r));return l.set(e,n),n}catch{return l.set(e,!1),!1}}function re(e){try{const{hostname:t}=new URL(e);return t.startsWith("pay.")}catch{return!1}}function se(e){try{const{hostname:t}=new URL(e);return t.startsWith("in-app-wallet.")||t.startsWith("embedded-wallet.")}catch{return!1}}function ie(e){try{const{hostname:t}=new URL(e);return t.endsWith(".bundler.thirdweb.com")||t.endsWith(".bundler.thirdweb-dev.com")}catch{return!1}}const ce="unified-sdk";let h;function P(){if(h)return h;let e=null;typeof navigator<"u"&&(e=q(navigator.userAgent));let t;return typeof globalThis<"u"&&"Application"in globalThis&&(t=globalThis.Application.applicationId),h=Object.entries({"x-sdk-name":ce,"x-sdk-os":e?oe(e):"unknown","x-sdk-platform":Y(),"x-sdk-version":G,...t?{"x-bundle-id":t}:{}}),h}function oe(e){const t=e.toLowerCase();if(t.startsWith("win"))return"win";switch(e){case"Mac OS":return"mac";case"iOS":return"ios";case"Android OS":return"android";default:return t.replace(/\s/gi,"_")}}const Ee=Object.freeze(Object.defineProperty({__proto__:null,IS_THIRDWEB_URL_CACHE:l,getClientFetch:te,getPlatformHeaders:P,isThirdwebUrl:T},Symbol.toStringTag,{value:"Module"})),ue=new Map,ae=new Map;function de(e){const t=(s,c)=>({clear:()=>c.delete(s),get:()=>c.get(s),set:o=>c.set(s,o)}),n=t(e,ue),r=t(e,ae);return{clear:()=>{n.clear(),r.clear()},promise:n,response:r}}async function D(e,{cacheKey:t,cacheTime:n=Number.POSITIVE_INFINITY}){const r=de(t),s=r.response.get();if(s&&n>0&&Date.now()-s.created.getTime()<n)return s.data;let c=r.promise.get();c||(c=e(),r.promise.set(c));try{const o=await c;return r.response.set({created:new Date,data:o}),o}finally{r.promise.clear()}}const a=new Map;function le(e){const t=d().rpc;if(typeof e=="number")return{id:e,rpc:`https://${e}.${t}`};if(be(e))return F(e);if(he(e))return B(e);let n=e.rpc;n||(n=`https://${e.id}.${t}`);const r={...e,rpc:n};return a.set(e.id,r),r}function fe(e){for(const t of e)a.set(t.id,t)}function pe(e){if(a.has(e))return a.get(e);const t=d().rpc;return{id:e,rpc:`https://${e}.${t}`}}function me(e){return a.get(e)}function he(e){return"rpc"in e&&Array.isArray(e.rpc)&&"slug"in e}function B(e){var n;const t=d().rpc;return{blockExplorers:(n=e==null?void 0:e.explorers)==null?void 0:n.map(r=>({apiUrl:r.url,name:r.name,url:r.url})),faucets:e.faucets?[...e.faucets]:void 0,icon:e.icon,id:e.chainId,name:e.name,nativeCurrency:{decimals:e.nativeCurrency.decimals,name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol},rpc:e.rpc[0]??`https://${e.chainId}.${t}`,testnet:e.testnet?!0:void 0}}function be(e){return"rpcUrls"in e&&!("rpc"in e)}function F(e){const t=d().rpc;return{blockExplorers:e!=null&&e.blockExplorers?Object.values(e==null?void 0:e.blockExplorers).map(n=>({apiUrl:n.apiUrl,name:n.name,url:n.url})):[],id:e.id,name:e.name,nativeCurrency:{decimals:e.nativeCurrency.decimals,name:e.nativeCurrency.name,symbol:e.nativeCurrency.symbol},rpc:e.rpcUrls.default.http[0]??`https://${e.id}.${t}`,testnet:e.testnet?!0:void 0}}function we(e){const t=d().rpc;if(typeof e.chain=="number")return`https://${e.chain}.${t}/${e.client.clientId}`;const{rpc:n}=e.chain;if(T(n)){const r=new URL(e.chain.rpc.replace(b,t));return(r.pathname==="/"||r.pathname.startsWith("/$"))&&(r.pathname=`/${e.client.clientId}`),r.toString()}return n}async function ye(e){var t;return(t=e.nativeCurrency)!=null&&t.symbol?e.nativeCurrency.symbol:w(e).then(n=>n.nativeCurrency.symbol).catch(()=>"ETH")}async function ge(e){var t;return(t=e.nativeCurrency)!=null&&t.decimals?e.nativeCurrency.decimals:w(e).then(n=>n.nativeCurrency.decimals).catch(()=>18)}async function _e(e){var t;return(t=e.nativeCurrency)!=null&&t.name?e.nativeCurrency.name:w(e).then(n=>n.nativeCurrency.name).catch(()=>"ETH")}function w(e){const t=e.id;return D(async()=>{try{const n=await fetch(`https://api.thirdweb.com/v1/chains/${t}`);if(!n.ok)throw new Error(`Failed to fetch chain data for chainId ${t}. ${n.status} ${n.statusText}`);const r=await n.json();if(r.error)throw new Error(`Failed to fetch chain data for chainId ${t}`);if(!r.data)throw new Error(`Failed to fetch chain data for chainId ${t}`);const s=r.data;return S(e,s)}catch{return S(e)}},{cacheKey:`chain:${t}`,cacheTime:300*1e3})}async function Te(){return D(async()=>{const e=await fetch("https://api.thirdweb.com/v1/chains/services?service=insight");if(!e.ok)throw new Error(`Failed to fetch services. ${e.status} ${e.statusText}`);const t=await e.json();return Object.keys(t.data).map(n=>Number(n))},{cacheKey:"chain:insight-enabled",cacheTime:1440*60*1e3})}function Ie(e){var t;return{blockExplorers:(t=e.explorers)==null?void 0:t.map(n=>({apiUrl:n.url,name:n.name,url:n.url})),faucets:e.faucets?[...e.faucets]:void 0,icon:e.icon,id:e.chainId,name:e.name,nativeCurrency:e.nativeCurrency,rpc:e.rpc[0]||"",testnet:e.testnet===!0?!0:void 0}}function S(e,t){var r;const n=e.nativeCurrency?{...t==null?void 0:t.nativeCurrency,...e.nativeCurrency}:t==null?void 0:t.nativeCurrency;return{...t,chain:(t==null?void 0:t.chain)||e.name||"",chainId:e.id||(t==null?void 0:t.chainId)||-1,explorers:((r=e.blockExplorers)==null?void 0:r.map(s=>({name:s.name,standard:"EIP3091",url:s.url})))||(t==null?void 0:t.explorers),icon:e.icon||(t==null?void 0:t.icon),name:e.name||(t==null?void 0:t.name)||"",nativeCurrency:{decimals:(n==null?void 0:n.decimals)||18,name:(n==null?void 0:n.name)||"",symbol:(n==null?void 0:n.symbol)||""},rpc:e.rpc?[e.rpc]:(t==null?void 0:t.rpc)||[""],shortName:(t==null?void 0:t.shortName)||e.name||"",slug:(t==null?void 0:t.slug)||e.name||"",stackType:(t==null?void 0:t.stackType)||"",testnet:e.testnet||(t==null?void 0:t.testnet)||!1}}const Se=Object.freeze(Object.defineProperty({__proto__:null,CUSTOM_CHAIN_MAP:a,cacheChains:fe,convertApiChainToChain:Ie,convertLegacyChain:B,convertViemChain:F,defineChain:le,getCachedChain:pe,getCachedChainIfExists:me,getChainDecimals:ge,getChainMetadata:w,getChainNativeCurrencyName:_e,getChainSymbol:ye,getInsightEnabledChainIds:Te,getRpcUrlForChain:we},Symbol.toStringTag,{value:"Module"}));export{Q as L,pe as a,we as b,V as c,le as d,te as e,d as f,Te as g,me as h,T as i,E as j,w as k,q as l,ye as m,ge as n,_e as o,fe as p,Ue as q,Ee as r,Se as u,D as w};
2
+ //# sourceMappingURL=utils-ZXL77_V-.js.map
@@ -1,3 +1,3 @@
1
- import{bV as re,bW as we,bX as xe,K as We,bY as ne,bZ as se,b_ as ie,L as He,b$ as Fe,c0 as Pe,c1 as x,c2 as Ye,c3 as H,c4 as w,c5 as l,c6 as b,c7 as p,c8 as ve,c9 as qe,ca as Ie,cb as m,cc as $e,cd as Ge,ce as oe,cf as g,cg as Ze,ch as Xe,ci as Je,cj as Qe,ck as Ke,cl as B,cm as Ae,cn as et,co as S,cp as F,cq as O,cr as tt,cs as k,bU as rt,ct as nt,aQ as V,b8 as st,aI as _,az as Y,b9 as R,bi as Ee,aq as it,aK as ot,aX as ae,am as at,cu as ct,ay as ut,aA as ft,C as dt,x as lt}from"./sendRawTransaction-gnCQ4l70.js";import{a7 as ce,a9 as ht,ac as yt,$ as pt,af as ue,ad as mt,ay as Be,a1 as fe,a8 as bt}from"./NetworkUtil-C4JZB8Ae.js";import{s as gt}from"./secp256k1-Cp0CohWk.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e239c254-97e0-497e-b68a-32ecb13d32ab",e._sentryDebugIdIdentifier="sentry-dbid-e239c254-97e0-497e-b68a-32ecb13d32ab")}catch{}})();function kr(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function n(r){return s=>{const i=typeof s=="function"?s(r):s,o={...r,...i};return Object.assign(o,{extend:n(o)})}}return Object.assign(t,{extend:n(t)})}function Vr(){return{}}function de(e){let t;if(typeof e=="string")t=re(e);else{const n=we(e),r=e.length;for(let s=0;s<r;s++){const i=e[s];if(!xe(i)){t=re(i,n);break}}}if(!t)throw new We({signature:e});return t}function le(e){const t=[];if(typeof e=="string"){const n=ne(e),r=n.length;for(let s=0;s<r;s++)t.push(se(n[s],{modifiers:ie}))}else{const n=we(e),r=e.length;for(let s=0;s<r;s++){const i=e[s];if(xe(i))continue;const o=ne(i),a=o.length;for(let u=0;u<a;u++)t.push(se(o[u],{modifiers:ie,structs:n}))}}if(t.length===0)throw new He({params:e});return t}function q(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=Fe(Pe(e));return n==="Bytes"?r:x(r)}function _r(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=Ye(Pe(e));return n==="Bytes"?r:x(r)}function Ur(e){return H(e)&&w(e)===32}const wt={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new vt({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Pt({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new he({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new he({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function xt(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(wt);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}class he extends l{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class Pt extends l{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class vt extends l{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}class It extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const $t={checksum:new It(8192)},N=$t.checksum;function Se(e,t={}){const{compressed:n}=t,{prefix:r,x:s,y:i}=e;if(n===!1||typeof s=="bigint"&&typeof i=="bigint"){if(r!==4)throw new ye({prefix:r,cause:new St});return}if(n===!0||typeof s=="bigint"&&typeof i>"u"){if(r!==3&&r!==2)throw new ye({prefix:r,cause:new Bt});return}throw new Et({publicKey:e})}function Tr(e){const t=(()=>{if(H(e))return ze(e);if(qe(e))return At(e);const{prefix:n,x:r,y:s}=e;return typeof r=="bigint"&&typeof s=="bigint"?{prefix:n??4,x:r,y:s}:{prefix:n,x:r}})();return Se(t),t}function At(e){return ze(x(e))}function ze(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new zt({publicKey:e});if(e.length===130){const r=BigInt(m(e,0,32)),s=BigInt(m(e,32,64));return{prefix:4,x:r,y:s}}if(e.length===132){const r=Number(m(e,0,1)),s=BigInt(m(e,1,33)),i=BigInt(m(e,33,65));return{prefix:r,x:s,y:i}}const t=Number(m(e,0,1)),n=BigInt(m(e,1,33));return{prefix:t,x:n}}function Dr(e,t={}){return ve(Ce(e,t))}function Ce(e,t={}){Se(e);const{prefix:n,x:r,y:s}=e,{includePrefix:i=!0}=t;return b(i?p(n,{size:1}):"0x",p(r,{size:32}),typeof s=="bigint"?p(s,{size:32}):"0x")}class Et extends l{constructor({publicKey:t}){super(`Value \`${Ie(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class ye extends l{constructor({prefix:t,cause:n}){super(`Prefix "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class Bt extends l{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class St extends l{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let zt=class extends l{constructor({publicKey:t}){super(`Value \`${t}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${w($e(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const Ct=/^0x[a-fA-F0-9]{40}$/;function v(e,t={}){const{strict:n=!0}=t;if(!Ct.test(e))throw new pe({address:e,cause:new Rt});if(n){if(e.toLowerCase()===e)return;if(G(e)!==e)throw new pe({address:e,cause:new Lt})}}function G(e){if(N.has(e))return N.get(e);v(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=q(Ge(t),{as:"Bytes"}),r=t.split("");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(n[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());const s=`0x${r.join("")}`;return N.set(e,s),s}function Ot(e,t={}){const{checksum:n=!1}=t;return v(e),n?G(e):e}function Wr(e,t={}){const n=q(`0x${Ce(e).slice(4)}`).substring(26);return Ot(`0x${n}`,t)}function Hr(e,t){return v(e,{strict:!1}),v(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()}function U(e,t={}){const{strict:n=!0}=t??{};try{return v(e,{strict:n}),!0}catch{return!1}}class pe extends l{constructor({address:t,cause:n}){super(`Address "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class Rt extends l{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class Lt extends l{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}const Nt=/^(.*)\[([0-9]*)\]$/,jt=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Oe=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,me=2n**256n-1n;function Z(e,t={}){const{recovered:n}=t;if(typeof e.r>"u")throw new j({signature:e});if(typeof e.s>"u")throw new j({signature:e});if(n&&typeof e.yParity>"u")throw new j({signature:e});if(e.r<0n||e.r>me)throw new Wt({value:e.r});if(e.s<0n||e.s>me)throw new Ht({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new L({value:e.yParity})}function kt(e){return Re(x(e))}function Re(e){if(e.length!==130&&e.length!==132)throw new Mt({signature:e});const t=BigInt(m(e,0,32)),n=BigInt(m(e,32,64)),r=(()=>{const s=+`0x${e.slice(130)}`;if(!Number.isNaN(s))try{return X(s)}catch{throw new L({value:s})}})();return typeof r>"u"?{r:t,s:n}:{r:t,s:n,yParity:r}}function Vt(e){if(!(typeof e.r>"u")&&!(typeof e.s>"u"))return Le(e)}function Le(e){const t=typeof e=="string"?Re(e):e instanceof Uint8Array?kt(e):typeof e.r=="string"?Ut(e):e.v?_t(e):{r:e.r,s:e.s,...typeof e.yParity<"u"?{yParity:e.yParity}:{}};return Z(t),t}function _t(e){return{r:e.r,s:e.s,yParity:X(e.v)}}function Ut(e){const t=(()=>{const n=e.v?Number(e.v):void 0;let r=e.yParity?Number(e.yParity):void 0;if(typeof n=="number"&&typeof r!="number"&&(r=X(n)),typeof r!="number")throw new L({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function Fr(e){const[t,n,r]=e;return Le({r:n==="0x"?0n:BigInt(n),s:r==="0x"?0n:BigInt(r),yParity:t==="0x"?0:Number(t)})}function Yr(e){Z(e);const t=e.r,n=e.s;return b(p(t,{size:32}),p(n,{size:32}),typeof e.yParity=="number"?p(Dt(e.yParity),{size:1}):"0x")}function Tt(e){const{r:t,s:n,yParity:r}=e;return{r:p(t,{size:32}),s:p(n,{size:32}),yParity:r===0?"0x0":"0x1"}}function qr(e){const{r:t,s:n,yParity:r}=e;return[r?"0x01":"0x",t===0n?"0x":oe(p(t)),n===0n?"0x":oe(p(n))]}function X(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new Ft({value:e})}function Dt(e){if(e===0)return 27;if(e===1)return 28;throw new L({value:e})}class Mt extends l{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${w($e(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class j extends l{constructor({signature:t}){super(`Signature \`${Ie(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class Wt extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class Ht extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class L extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class Ft extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function E(e,t,n){const{checksumAddress:r,staticPosition:s}=n,i=K(t.type);if(i){const[o,a]=i;return qt(e,{...t,type:a},{checksumAddress:r,length:o,staticPosition:s})}if(t.type==="tuple")return Jt(e,t,{checksumAddress:r,staticPosition:s});if(t.type==="address")return Yt(e,{checksum:r});if(t.type==="bool")return Gt(e);if(t.type.startsWith("bytes"))return Zt(e,t,{staticPosition:s});if(t.type.startsWith("uint")||t.type.startsWith("int"))return Xt(e,t);if(t.type==="string")return Qt(e,{staticPosition:s});throw new ee(t.type)}const be=32,T=32;function Yt(e,t={}){const{checksum:n=!1}=t,r=e.readBytes(32);return[(i=>n?G(i):i)(x(Ze(r,-20))),32]}function qt(e,t,n){const{checksumAddress:r,length:s,staticPosition:i}=n;if(!s){const u=g(e.readBytes(T)),c=i+u,f=c+be;e.setPosition(c);const d=g(e.readBytes(be)),y=z(t);let h=0;const $=[];for(let P=0;P<d;++P){e.setPosition(f+(y?P*32:h));const[C,Me]=E(e,t,{checksumAddress:r,staticPosition:f});h+=Me,$.push(C)}return e.setPosition(i+32),[$,32]}if(z(t)){const u=g(e.readBytes(T)),c=i+u,f=[];for(let d=0;d<s;++d){e.setPosition(c+d*32);const[y]=E(e,t,{checksumAddress:r,staticPosition:c});f.push(y)}return e.setPosition(i+32),[f,32]}let o=0;const a=[];for(let u=0;u<s;++u){const[c,f]=E(e,t,{checksumAddress:r,staticPosition:i+o});o+=f,a.push(c)}return[a,o]}function Gt(e){return[Xe(e.readBytes(32),{size:32}),32]}function Zt(e,t,{staticPosition:n}){const[r,s]=t.type.split("bytes");if(!s){const o=g(e.readBytes(32));e.setPosition(n+o);const a=g(e.readBytes(32));if(a===0)return e.setPosition(n+32),["0x",32];const u=e.readBytes(a);return e.setPosition(n+32),[x(u),32]}return[x(e.readBytes(Number.parseInt(s,10),32)),32]}function Xt(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),s=e.readBytes(32);return[r>48?Je(s,{signed:n}):g(s,{signed:n}),32]}function Jt(e,t,n){const{checksumAddress:r,staticPosition:s}=n,i=t.components.length===0||t.components.some(({name:u})=>!u),o=i?[]:{};let a=0;if(z(t)){const u=g(e.readBytes(T)),c=s+u;for(let f=0;f<t.components.length;++f){const d=t.components[f];e.setPosition(c+a);const[y,h]=E(e,d,{checksumAddress:r,staticPosition:c});a+=h,o[i?f:d==null?void 0:d.name]=y}return e.setPosition(s+32),[o,32]}for(let u=0;u<t.components.length;++u){const c=t.components[u],[f,d]=E(e,c,{checksumAddress:r,staticPosition:s});o[i?u:c==null?void 0:c.name]=f,a+=d}return[o,a]}function Qt(e,{staticPosition:t}){const n=g(e.readBytes(32)),r=t+n;e.setPosition(r);const s=g(e.readBytes(32));if(s===0)return e.setPosition(t+32),["",32];const i=e.readBytes(s,32),o=Qe(Ke(i));return e.setPosition(t+32),[o,32]}function Kt({checksumAddress:e,parameters:t,values:n}){const r=[];for(let s=0;s<t.length;s++)r.push(J({checksumAddress:e,parameter:t[s],value:n[s]}));return r}function J({checksumAddress:e=!1,parameter:t,value:n}){const r=t,s=K(r.type);if(s){const[i,o]=s;return tr(n,{checksumAddress:e,length:i,parameter:{...r,type:o}})}if(r.type==="tuple")return or(n,{checksumAddress:e,parameter:r});if(r.type==="address")return er(n,{checksum:e});if(r.type==="bool")return nr(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const i=r.type.startsWith("int"),[,,o="256"]=Oe.exec(r.type)??[];return sr(n,{signed:i,size:Number(o)})}if(r.type.startsWith("bytes"))return rr(n,{type:r.type});if(r.type==="string")return ir(n);throw new ee(r.type)}function Q(e){let t=0;for(let i=0;i<e.length;i++){const{dynamic:o,encoded:a}=e[i];o?t+=32:t+=w(a)}const n=[],r=[];let s=0;for(let i=0;i<e.length;i++){const{dynamic:o,encoded:a}=e[i];o?(n.push(p(t+s,{size:32})),r.push(a),s+=w(a)):n.push(a)}return b(...n,...r)}function er(e,t){const{checksum:n=!1}=t;return v(e,{strict:n}),{dynamic:!1,encoded:B(e.toLowerCase())}}function tr(e,t){const{checksumAddress:n,length:r,parameter:s}=t,i=r===null;if(!Array.isArray(e))throw new lr(e);if(!i&&e.length!==r)throw new dr({expectedLength:r,givenLength:e.length,type:`${s.type}[${r}]`});let o=!1;const a=[];for(let u=0;u<e.length;u++){const c=J({checksumAddress:n,parameter:s,value:e[u]});c.dynamic&&(o=!0),a.push(c)}if(i||o){const u=Q(a);if(i){const c=p(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?b(c,u):c}}if(o)return{dynamic:!0,encoded:u}}return{dynamic:!1,encoded:b(...a.map(({encoded:u})=>u))}}function rr(e,{type:t}){const[,n]=t.split("bytes"),r=w(e);if(!n){let s=e;return r%32!==0&&(s=S(s,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:b(B(p(r,{size:32})),s)}}if(r!==Number.parseInt(n,10))throw new je({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:S(e)}}function nr(e){if(typeof e!="boolean")throw new l(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:B(Ae(e))}}function sr(e,{signed:t,size:n}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,s=t?-r-1n:0n;if(e>r||e<s)throw new et({max:r.toString(),min:s.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:p(e,{size:32,signed:t})}}function ir(e){const t=F(e),n=Math.ceil(w(t)/32),r=[];for(let s=0;s<n;s++)r.push(S(m(t,s*32,(s+1)*32)));return{dynamic:!0,encoded:b(S(p(w(t),{size:32})),...r)}}function or(e,t){const{checksumAddress:n,parameter:r}=t;let s=!1;const i=[];for(let o=0;o<r.components.length;o++){const a=r.components[o],u=Array.isArray(e)?o:a.name,c=J({checksumAddress:n,parameter:a,value:e[u]});i.push(c),c.dynamic&&(s=!0)}return{dynamic:s,encoded:s?Q(i):b(...i.map(({encoded:o})=>o))}}function K(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function z(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(r=e.components)==null?void 0:r.some(z);const n=K(e.type);return!!(n&&z({...e,type:n[1]}))}function ar(e,t,n={}){const{as:r="Array",checksumAddress:s=!1}=n,i=typeof t=="string"?ve(t):t,o=xt(i);if(O(i)===0&&e.length>0)throw new fr;if(O(i)&&O(i)<32)throw new ur({data:typeof t=="string"?t:x(t),parameters:e,size:O(i)});let a=0;const u=r==="Array"?[]:{};for(let c=0;c<e.length;++c){const f=e[c];o.setPosition(a);const[d,y]=E(o,f,{checksumAddress:s,staticPosition:0});a+=y,r==="Array"?u.push(d):u[f.name??c]=d}return u}function cr(e,t,n){const{checksumAddress:r=!1}={};if(e.length!==t.length)throw new ke({expectedLength:e.length,givenLength:t.length});const s=Kt({checksumAddress:r,parameters:e,values:t}),i=Q(s);return i.length===0?"0x":i}function D(e,t){if(e.length!==t.length)throw new ke({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;r<e.length;r++){const s=e[r],i=t[r];n.push(D.encode(s,i))}return b(...n)}(function(e){function t(n,r,s=!1){if(n==="address"){const u=r;return v(u),B(u.toLowerCase(),s?32:0)}if(n==="string")return F(r);if(n==="bytes")return r;if(n==="bool")return B(Ae(r),s?32:1);const i=n.match(Oe);if(i){const[u,c,f="256"]=i,d=Number.parseInt(f,10)/8;return p(r,{size:s?32:d,signed:c==="int"})}const o=n.match(jt);if(o){const[u,c]=o;if(Number.parseInt(c,10)!==(r.length-2)/2)throw new je({expectedSize:Number.parseInt(c,10),value:r});return S(r,s?32:0)}const a=n.match(Nt);if(a&&Array.isArray(r)){const[u,c]=a,f=[];for(let d=0;d<r.length;d++)f.push(t(c,r[d],!0));return f.length===0?"0x":b(...f)}throw new ee(n)}e.encode=t})(D||(D={}));function Ne(e){return Array.isArray(e)&&typeof e[0]=="string"||typeof e=="string"?le(e):e}class ur extends l{constructor({data:t,parameters:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${tt(n)})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class fr extends l{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class dr extends l{constructor({expectedLength:t,givenLength:n,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${t}\`. Given: \`${n}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class je extends l{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${w(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class ke extends l{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`
1
+ import{bV as re,bW as we,bX as xe,K as We,bY as ne,bZ as se,b_ as ie,L as He,b$ as Fe,c0 as Pe,c1 as x,c2 as Ye,c3 as H,c4 as w,c5 as l,c6 as b,c7 as p,c8 as ve,c9 as qe,ca as Ie,cb as m,cc as $e,cd as Ge,ce as oe,cf as g,cg as Ze,ch as Xe,ci as Je,cj as Qe,ck as Ke,cl as B,cm as Ae,cn as et,co as S,cp as F,cq as O,cr as tt,cs as k,bU as rt,ct as nt,aQ as V,b8 as st,aI as _,az as Y,b9 as R,bi as Ee,aq as it,aK as ot,aX as ae,am as at,cu as ct,ay as ut,aA as ft,C as dt,x as lt}from"./sendRawTransaction-PWiWe9oZ.js";import{a7 as ce,a9 as ht,ac as yt,$ as pt,af as ue,ad as mt,ay as Be,a1 as fe,a8 as bt}from"./NetworkUtil-BKndxmAv.js";import{s as gt}from"./secp256k1-ir2IysjZ.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e239c254-97e0-497e-b68a-32ecb13d32ab",e._sentryDebugIdIdentifier="sentry-dbid-e239c254-97e0-497e-b68a-32ecb13d32ab")}catch{}})();function kr(e){const t={formatters:void 0,fees:void 0,serializers:void 0,...e};function n(r){return s=>{const i=typeof s=="function"?s(r):s,o={...r,...i};return Object.assign(o,{extend:n(o)})}}return Object.assign(t,{extend:n(t)})}function Vr(){return{}}function de(e){let t;if(typeof e=="string")t=re(e);else{const n=we(e),r=e.length;for(let s=0;s<r;s++){const i=e[s];if(!xe(i)){t=re(i,n);break}}}if(!t)throw new We({signature:e});return t}function le(e){const t=[];if(typeof e=="string"){const n=ne(e),r=n.length;for(let s=0;s<r;s++)t.push(se(n[s],{modifiers:ie}))}else{const n=we(e),r=e.length;for(let s=0;s<r;s++){const i=e[s];if(xe(i))continue;const o=ne(i),a=o.length;for(let u=0;u<a;u++)t.push(se(o[u],{modifiers:ie,structs:n}))}}if(t.length===0)throw new He({params:e});return t}function q(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=Fe(Pe(e));return n==="Bytes"?r:x(r)}function _r(e,t={}){const{as:n=typeof e=="string"?"Hex":"Bytes"}=t,r=Ye(Pe(e));return n==="Bytes"?r:x(r)}function Ur(e){return H(e)&&w(e)===32}const wt={bytes:new Uint8Array,dataView:new DataView(new ArrayBuffer(0)),position:0,positionReadCount:new Map,recursiveReadCount:0,recursiveReadLimit:Number.POSITIVE_INFINITY,assertReadLimit(){if(this.recursiveReadCount>=this.recursiveReadLimit)throw new vt({count:this.recursiveReadCount+1,limit:this.recursiveReadLimit})},assertPosition(e){if(e<0||e>this.bytes.length-1)throw new Pt({length:this.bytes.length,position:e})},decrementPosition(e){if(e<0)throw new he({offset:e});const t=this.position-e;this.assertPosition(t),this.position=t},getReadCount(e){return this.positionReadCount.get(e||this.position)||0},incrementPosition(e){if(e<0)throw new he({offset:e});const t=this.position+e;this.assertPosition(t),this.position=t},inspectByte(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectBytes(e,t){const n=t??this.position;return this.assertPosition(n+e-1),this.bytes.subarray(n,n+e)},inspectUint8(e){const t=e??this.position;return this.assertPosition(t),this.bytes[t]},inspectUint16(e){const t=e??this.position;return this.assertPosition(t+1),this.dataView.getUint16(t)},inspectUint24(e){const t=e??this.position;return this.assertPosition(t+2),(this.dataView.getUint16(t)<<8)+this.dataView.getUint8(t+2)},inspectUint32(e){const t=e??this.position;return this.assertPosition(t+3),this.dataView.getUint32(t)},pushByte(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushBytes(e){this.assertPosition(this.position+e.length-1),this.bytes.set(e,this.position),this.position+=e.length},pushUint8(e){this.assertPosition(this.position),this.bytes[this.position]=e,this.position++},pushUint16(e){this.assertPosition(this.position+1),this.dataView.setUint16(this.position,e),this.position+=2},pushUint24(e){this.assertPosition(this.position+2),this.dataView.setUint16(this.position,e>>8),this.dataView.setUint8(this.position+2,e&255),this.position+=3},pushUint32(e){this.assertPosition(this.position+3),this.dataView.setUint32(this.position,e),this.position+=4},readByte(){this.assertReadLimit(),this._touch();const e=this.inspectByte();return this.position++,e},readBytes(e,t){this.assertReadLimit(),this._touch();const n=this.inspectBytes(e);return this.position+=t??e,n},readUint8(){this.assertReadLimit(),this._touch();const e=this.inspectUint8();return this.position+=1,e},readUint16(){this.assertReadLimit(),this._touch();const e=this.inspectUint16();return this.position+=2,e},readUint24(){this.assertReadLimit(),this._touch();const e=this.inspectUint24();return this.position+=3,e},readUint32(){this.assertReadLimit(),this._touch();const e=this.inspectUint32();return this.position+=4,e},get remaining(){return this.bytes.length-this.position},setPosition(e){const t=this.position;return this.assertPosition(e),this.position=e,()=>this.position=t},_touch(){if(this.recursiveReadLimit===Number.POSITIVE_INFINITY)return;const e=this.getReadCount();this.positionReadCount.set(this.position,e+1),e>0&&this.recursiveReadCount++}};function xt(e,{recursiveReadLimit:t=8192}={}){const n=Object.create(wt);return n.bytes=e,n.dataView=new DataView(e.buffer,e.byteOffset,e.byteLength),n.positionReadCount=new Map,n.recursiveReadLimit=t,n}class he extends l{constructor({offset:t}){super(`Offset \`${t}\` cannot be negative.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.NegativeOffsetError"})}}class Pt extends l{constructor({length:t,position:n}){super(`Position \`${n}\` is out of bounds (\`0 < position < ${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.PositionOutOfBoundsError"})}}class vt extends l{constructor({count:t,limit:n}){super(`Recursive read limit of \`${n}\` exceeded (recursive read count: \`${t}\`).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Cursor.RecursiveReadLimitExceededError"})}}class It extends Map{constructor(t){super(),Object.defineProperty(this,"maxSize",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.maxSize=t}get(t){const n=super.get(t);return super.has(t)&&n!==void 0&&(this.delete(t),super.set(t,n)),n}set(t,n){if(super.set(t,n),this.maxSize&&this.size>this.maxSize){const r=this.keys().next().value;r&&this.delete(r)}return this}}const $t={checksum:new It(8192)},N=$t.checksum;function Se(e,t={}){const{compressed:n}=t,{prefix:r,x:s,y:i}=e;if(n===!1||typeof s=="bigint"&&typeof i=="bigint"){if(r!==4)throw new ye({prefix:r,cause:new St});return}if(n===!0||typeof s=="bigint"&&typeof i>"u"){if(r!==3&&r!==2)throw new ye({prefix:r,cause:new Bt});return}throw new Et({publicKey:e})}function Tr(e){const t=(()=>{if(H(e))return ze(e);if(qe(e))return At(e);const{prefix:n,x:r,y:s}=e;return typeof r=="bigint"&&typeof s=="bigint"?{prefix:n??4,x:r,y:s}:{prefix:n,x:r}})();return Se(t),t}function At(e){return ze(x(e))}function ze(e){if(e.length!==132&&e.length!==130&&e.length!==68)throw new zt({publicKey:e});if(e.length===130){const r=BigInt(m(e,0,32)),s=BigInt(m(e,32,64));return{prefix:4,x:r,y:s}}if(e.length===132){const r=Number(m(e,0,1)),s=BigInt(m(e,1,33)),i=BigInt(m(e,33,65));return{prefix:r,x:s,y:i}}const t=Number(m(e,0,1)),n=BigInt(m(e,1,33));return{prefix:t,x:n}}function Dr(e,t={}){return ve(Ce(e,t))}function Ce(e,t={}){Se(e);const{prefix:n,x:r,y:s}=e,{includePrefix:i=!0}=t;return b(i?p(n,{size:1}):"0x",p(r,{size:32}),typeof s=="bigint"?p(s,{size:32}):"0x")}class Et extends l{constructor({publicKey:t}){super(`Value \`${Ie(t)}\` is not a valid public key.`,{metaMessages:["Public key must contain:","- an `x` and `prefix` value (compressed)","- an `x`, `y`, and `prefix` value (uncompressed)"]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidError"})}}class ye extends l{constructor({prefix:t,cause:n}){super(`Prefix "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidPrefixError"})}}class Bt extends l{constructor(){super("Prefix must be 2 or 3 for compressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidCompressedPrefixError"})}}class St extends l{constructor(){super("Prefix must be 4 for uncompressed public keys."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidUncompressedPrefixError"})}}let zt=class extends l{constructor({publicKey:t}){super(`Value \`${t}\` is an invalid public key size.`,{metaMessages:["Expected: 33 bytes (compressed + prefix), 64 bytes (uncompressed) or 65 bytes (uncompressed + prefix).",`Received ${w($e(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"PublicKey.InvalidSerializedSizeError"})}};const Ct=/^0x[a-fA-F0-9]{40}$/;function v(e,t={}){const{strict:n=!0}=t;if(!Ct.test(e))throw new pe({address:e,cause:new Rt});if(n){if(e.toLowerCase()===e)return;if(G(e)!==e)throw new pe({address:e,cause:new Lt})}}function G(e){if(N.has(e))return N.get(e);v(e,{strict:!1});const t=e.substring(2).toLowerCase(),n=q(Ge(t),{as:"Bytes"}),r=t.split("");for(let i=0;i<40;i+=2)n[i>>1]>>4>=8&&r[i]&&(r[i]=r[i].toUpperCase()),(n[i>>1]&15)>=8&&r[i+1]&&(r[i+1]=r[i+1].toUpperCase());const s=`0x${r.join("")}`;return N.set(e,s),s}function Ot(e,t={}){const{checksum:n=!1}=t;return v(e),n?G(e):e}function Wr(e,t={}){const n=q(`0x${Ce(e).slice(4)}`).substring(26);return Ot(`0x${n}`,t)}function Hr(e,t){return v(e,{strict:!1}),v(t,{strict:!1}),e.toLowerCase()===t.toLowerCase()}function U(e,t={}){const{strict:n=!0}=t??{};try{return v(e,{strict:n}),!0}catch{return!1}}class pe extends l{constructor({address:t,cause:n}){super(`Address "${t}" is invalid.`,{cause:n}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidAddressError"})}}class Rt extends l{constructor(){super("Address is not a 20 byte (40 hexadecimal character) value."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidInputError"})}}class Lt extends l{constructor(){super("Address does not match its checksum counterpart."),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Address.InvalidChecksumError"})}}const Nt=/^(.*)\[([0-9]*)\]$/,jt=/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/,Oe=/^(u?int)(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/,me=2n**256n-1n;function Z(e,t={}){const{recovered:n}=t;if(typeof e.r>"u")throw new j({signature:e});if(typeof e.s>"u")throw new j({signature:e});if(n&&typeof e.yParity>"u")throw new j({signature:e});if(e.r<0n||e.r>me)throw new Wt({value:e.r});if(e.s<0n||e.s>me)throw new Ht({value:e.s});if(typeof e.yParity=="number"&&e.yParity!==0&&e.yParity!==1)throw new L({value:e.yParity})}function kt(e){return Re(x(e))}function Re(e){if(e.length!==130&&e.length!==132)throw new Mt({signature:e});const t=BigInt(m(e,0,32)),n=BigInt(m(e,32,64)),r=(()=>{const s=+`0x${e.slice(130)}`;if(!Number.isNaN(s))try{return X(s)}catch{throw new L({value:s})}})();return typeof r>"u"?{r:t,s:n}:{r:t,s:n,yParity:r}}function Vt(e){if(!(typeof e.r>"u")&&!(typeof e.s>"u"))return Le(e)}function Le(e){const t=typeof e=="string"?Re(e):e instanceof Uint8Array?kt(e):typeof e.r=="string"?Ut(e):e.v?_t(e):{r:e.r,s:e.s,...typeof e.yParity<"u"?{yParity:e.yParity}:{}};return Z(t),t}function _t(e){return{r:e.r,s:e.s,yParity:X(e.v)}}function Ut(e){const t=(()=>{const n=e.v?Number(e.v):void 0;let r=e.yParity?Number(e.yParity):void 0;if(typeof n=="number"&&typeof r!="number"&&(r=X(n)),typeof r!="number")throw new L({value:e.yParity});return r})();return{r:BigInt(e.r),s:BigInt(e.s),yParity:t}}function Fr(e){const[t,n,r]=e;return Le({r:n==="0x"?0n:BigInt(n),s:r==="0x"?0n:BigInt(r),yParity:t==="0x"?0:Number(t)})}function Yr(e){Z(e);const t=e.r,n=e.s;return b(p(t,{size:32}),p(n,{size:32}),typeof e.yParity=="number"?p(Dt(e.yParity),{size:1}):"0x")}function Tt(e){const{r:t,s:n,yParity:r}=e;return{r:p(t,{size:32}),s:p(n,{size:32}),yParity:r===0?"0x0":"0x1"}}function qr(e){const{r:t,s:n,yParity:r}=e;return[r?"0x01":"0x",t===0n?"0x":oe(p(t)),n===0n?"0x":oe(p(n))]}function X(e){if(e===0||e===27)return 0;if(e===1||e===28)return 1;if(e>=35)return e%2===0?1:0;throw new Ft({value:e})}function Dt(e){if(e===0)return 27;if(e===1)return 28;throw new L({value:e})}class Mt extends l{constructor({signature:t}){super(`Value \`${t}\` is an invalid signature size.`,{metaMessages:["Expected: 64 bytes or 65 bytes.",`Received ${w($e(t))} bytes.`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSerializedSizeError"})}}class j extends l{constructor({signature:t}){super(`Signature \`${Ie(t)}\` is missing either an \`r\`, \`s\`, or \`yParity\` property.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.MissingPropertiesError"})}}class Wt extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid r value. r must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidRError"})}}class Ht extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid s value. s must be a positive integer less than 2^256.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidSError"})}}class L extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid y-parity value. Y-parity must be 0 or 1.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidYParityError"})}}class Ft extends l{constructor({value:t}){super(`Value \`${t}\` is an invalid v value. v must be 27, 28 or >=35.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"Signature.InvalidVError"})}}function E(e,t,n){const{checksumAddress:r,staticPosition:s}=n,i=K(t.type);if(i){const[o,a]=i;return qt(e,{...t,type:a},{checksumAddress:r,length:o,staticPosition:s})}if(t.type==="tuple")return Jt(e,t,{checksumAddress:r,staticPosition:s});if(t.type==="address")return Yt(e,{checksum:r});if(t.type==="bool")return Gt(e);if(t.type.startsWith("bytes"))return Zt(e,t,{staticPosition:s});if(t.type.startsWith("uint")||t.type.startsWith("int"))return Xt(e,t);if(t.type==="string")return Qt(e,{staticPosition:s});throw new ee(t.type)}const be=32,T=32;function Yt(e,t={}){const{checksum:n=!1}=t,r=e.readBytes(32);return[(i=>n?G(i):i)(x(Ze(r,-20))),32]}function qt(e,t,n){const{checksumAddress:r,length:s,staticPosition:i}=n;if(!s){const u=g(e.readBytes(T)),c=i+u,f=c+be;e.setPosition(c);const d=g(e.readBytes(be)),y=z(t);let h=0;const $=[];for(let P=0;P<d;++P){e.setPosition(f+(y?P*32:h));const[C,Me]=E(e,t,{checksumAddress:r,staticPosition:f});h+=Me,$.push(C)}return e.setPosition(i+32),[$,32]}if(z(t)){const u=g(e.readBytes(T)),c=i+u,f=[];for(let d=0;d<s;++d){e.setPosition(c+d*32);const[y]=E(e,t,{checksumAddress:r,staticPosition:c});f.push(y)}return e.setPosition(i+32),[f,32]}let o=0;const a=[];for(let u=0;u<s;++u){const[c,f]=E(e,t,{checksumAddress:r,staticPosition:i+o});o+=f,a.push(c)}return[a,o]}function Gt(e){return[Xe(e.readBytes(32),{size:32}),32]}function Zt(e,t,{staticPosition:n}){const[r,s]=t.type.split("bytes");if(!s){const o=g(e.readBytes(32));e.setPosition(n+o);const a=g(e.readBytes(32));if(a===0)return e.setPosition(n+32),["0x",32];const u=e.readBytes(a);return e.setPosition(n+32),[x(u),32]}return[x(e.readBytes(Number.parseInt(s,10),32)),32]}function Xt(e,t){const n=t.type.startsWith("int"),r=Number.parseInt(t.type.split("int")[1]||"256",10),s=e.readBytes(32);return[r>48?Je(s,{signed:n}):g(s,{signed:n}),32]}function Jt(e,t,n){const{checksumAddress:r,staticPosition:s}=n,i=t.components.length===0||t.components.some(({name:u})=>!u),o=i?[]:{};let a=0;if(z(t)){const u=g(e.readBytes(T)),c=s+u;for(let f=0;f<t.components.length;++f){const d=t.components[f];e.setPosition(c+a);const[y,h]=E(e,d,{checksumAddress:r,staticPosition:c});a+=h,o[i?f:d==null?void 0:d.name]=y}return e.setPosition(s+32),[o,32]}for(let u=0;u<t.components.length;++u){const c=t.components[u],[f,d]=E(e,c,{checksumAddress:r,staticPosition:s});o[i?u:c==null?void 0:c.name]=f,a+=d}return[o,a]}function Qt(e,{staticPosition:t}){const n=g(e.readBytes(32)),r=t+n;e.setPosition(r);const s=g(e.readBytes(32));if(s===0)return e.setPosition(t+32),["",32];const i=e.readBytes(s,32),o=Qe(Ke(i));return e.setPosition(t+32),[o,32]}function Kt({checksumAddress:e,parameters:t,values:n}){const r=[];for(let s=0;s<t.length;s++)r.push(J({checksumAddress:e,parameter:t[s],value:n[s]}));return r}function J({checksumAddress:e=!1,parameter:t,value:n}){const r=t,s=K(r.type);if(s){const[i,o]=s;return tr(n,{checksumAddress:e,length:i,parameter:{...r,type:o}})}if(r.type==="tuple")return or(n,{checksumAddress:e,parameter:r});if(r.type==="address")return er(n,{checksum:e});if(r.type==="bool")return nr(n);if(r.type.startsWith("uint")||r.type.startsWith("int")){const i=r.type.startsWith("int"),[,,o="256"]=Oe.exec(r.type)??[];return sr(n,{signed:i,size:Number(o)})}if(r.type.startsWith("bytes"))return rr(n,{type:r.type});if(r.type==="string")return ir(n);throw new ee(r.type)}function Q(e){let t=0;for(let i=0;i<e.length;i++){const{dynamic:o,encoded:a}=e[i];o?t+=32:t+=w(a)}const n=[],r=[];let s=0;for(let i=0;i<e.length;i++){const{dynamic:o,encoded:a}=e[i];o?(n.push(p(t+s,{size:32})),r.push(a),s+=w(a)):n.push(a)}return b(...n,...r)}function er(e,t){const{checksum:n=!1}=t;return v(e,{strict:n}),{dynamic:!1,encoded:B(e.toLowerCase())}}function tr(e,t){const{checksumAddress:n,length:r,parameter:s}=t,i=r===null;if(!Array.isArray(e))throw new lr(e);if(!i&&e.length!==r)throw new dr({expectedLength:r,givenLength:e.length,type:`${s.type}[${r}]`});let o=!1;const a=[];for(let u=0;u<e.length;u++){const c=J({checksumAddress:n,parameter:s,value:e[u]});c.dynamic&&(o=!0),a.push(c)}if(i||o){const u=Q(a);if(i){const c=p(a.length,{size:32});return{dynamic:!0,encoded:a.length>0?b(c,u):c}}if(o)return{dynamic:!0,encoded:u}}return{dynamic:!1,encoded:b(...a.map(({encoded:u})=>u))}}function rr(e,{type:t}){const[,n]=t.split("bytes"),r=w(e);if(!n){let s=e;return r%32!==0&&(s=S(s,Math.ceil((e.length-2)/2/32)*32)),{dynamic:!0,encoded:b(B(p(r,{size:32})),s)}}if(r!==Number.parseInt(n,10))throw new je({expectedSize:Number.parseInt(n,10),value:e});return{dynamic:!1,encoded:S(e)}}function nr(e){if(typeof e!="boolean")throw new l(`Invalid boolean value: "${e}" (type: ${typeof e}). Expected: \`true\` or \`false\`.`);return{dynamic:!1,encoded:B(Ae(e))}}function sr(e,{signed:t,size:n}){if(typeof n=="number"){const r=2n**(BigInt(n)-(t?1n:0n))-1n,s=t?-r-1n:0n;if(e>r||e<s)throw new et({max:r.toString(),min:s.toString(),signed:t,size:n/8,value:e.toString()})}return{dynamic:!1,encoded:p(e,{size:32,signed:t})}}function ir(e){const t=F(e),n=Math.ceil(w(t)/32),r=[];for(let s=0;s<n;s++)r.push(S(m(t,s*32,(s+1)*32)));return{dynamic:!0,encoded:b(S(p(w(t),{size:32})),...r)}}function or(e,t){const{checksumAddress:n,parameter:r}=t;let s=!1;const i=[];for(let o=0;o<r.components.length;o++){const a=r.components[o],u=Array.isArray(e)?o:a.name,c=J({checksumAddress:n,parameter:a,value:e[u]});i.push(c),c.dynamic&&(s=!0)}return{dynamic:s,encoded:s?Q(i):b(...i.map(({encoded:o})=>o))}}function K(e){const t=e.match(/^(.*)\[(\d+)?\]$/);return t?[t[2]?Number(t[2]):null,t[1]]:void 0}function z(e){var r;const{type:t}=e;if(t==="string"||t==="bytes"||t.endsWith("[]"))return!0;if(t==="tuple")return(r=e.components)==null?void 0:r.some(z);const n=K(e.type);return!!(n&&z({...e,type:n[1]}))}function ar(e,t,n={}){const{as:r="Array",checksumAddress:s=!1}=n,i=typeof t=="string"?ve(t):t,o=xt(i);if(O(i)===0&&e.length>0)throw new fr;if(O(i)&&O(i)<32)throw new ur({data:typeof t=="string"?t:x(t),parameters:e,size:O(i)});let a=0;const u=r==="Array"?[]:{};for(let c=0;c<e.length;++c){const f=e[c];o.setPosition(a);const[d,y]=E(o,f,{checksumAddress:s,staticPosition:0});a+=y,r==="Array"?u.push(d):u[f.name??c]=d}return u}function cr(e,t,n){const{checksumAddress:r=!1}={};if(e.length!==t.length)throw new ke({expectedLength:e.length,givenLength:t.length});const s=Kt({checksumAddress:r,parameters:e,values:t}),i=Q(s);return i.length===0?"0x":i}function D(e,t){if(e.length!==t.length)throw new ke({expectedLength:e.length,givenLength:t.length});const n=[];for(let r=0;r<e.length;r++){const s=e[r],i=t[r];n.push(D.encode(s,i))}return b(...n)}(function(e){function t(n,r,s=!1){if(n==="address"){const u=r;return v(u),B(u.toLowerCase(),s?32:0)}if(n==="string")return F(r);if(n==="bytes")return r;if(n==="bool")return B(Ae(r),s?32:1);const i=n.match(Oe);if(i){const[u,c,f="256"]=i,d=Number.parseInt(f,10)/8;return p(r,{size:s?32:d,signed:c==="int"})}const o=n.match(jt);if(o){const[u,c]=o;if(Number.parseInt(c,10)!==(r.length-2)/2)throw new je({expectedSize:Number.parseInt(c,10),value:r});return S(r,s?32:0)}const a=n.match(Nt);if(a&&Array.isArray(r)){const[u,c]=a,f=[];for(let d=0;d<r.length;d++)f.push(t(c,r[d],!0));return f.length===0?"0x":b(...f)}throw new ee(n)}e.encode=t})(D||(D={}));function Ne(e){return Array.isArray(e)&&typeof e[0]=="string"||typeof e=="string"?le(e):e}class ur extends l{constructor({data:t,parameters:n,size:r}){super(`Data size of ${r} bytes is too small for given parameters.`,{metaMessages:[`Params: (${tt(n)})`,`Data: ${t} (${r} bytes)`]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.DataSizeTooSmallError"})}}class fr extends l{constructor(){super('Cannot decode zero data ("0x") with ABI parameters.'),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ZeroDataError"})}}class dr extends l{constructor({expectedLength:t,givenLength:n,type:r}){super(`Array length mismatch for type \`${r}\`. Expected: \`${t}\`. Given: \`${n}\`.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.ArrayLengthMismatchError"})}}class je extends l{constructor({expectedSize:t,value:n}){super(`Size of bytes "${n}" (bytes${w(n)}) does not match expected size (bytes${t}).`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.BytesSizeMismatchError"})}}class ke extends l{constructor({expectedLength:t,givenLength:n}){super(["ABI encoding parameters/values length mismatch.",`Expected length (parameters): ${t}`,`Given length (values): ${n}`].join(`
2
2
  `)),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.LengthMismatchError"})}}class lr extends l{constructor(t){super(`Value \`${t}\` is not a valid array.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidArrayError"})}}class ee extends l{constructor(t){super(`Type \`${t}\` is not a valid ABI Type.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiParameters.InvalidTypeError"})}}function M(e){let t=!0,n="",r=0,s="",i=!1;for(let o=0;o<e.length;o++){const a=e[o];if(["(",")",","].includes(a)&&(t=!0),a==="("&&r++,a===")"&&r--,!!t){if(r===0){if(a===" "&&["event","function","error",""].includes(s))s="";else if(s+=a,a===")"){i=!0;break}continue}if(a===" "){e[o-1]!==","&&n!==","&&n!==",("&&(n="",t=!1);continue}s+=a,n+=a}}if(!i)throw new l("Unable to normalize signature.");return s}function W(e,t){const n=typeof e,r=t.type;switch(r){case"address":return U(e,{strict:!1});case"bool":return n==="boolean";case"function":return n==="string";case"string":return n==="string";default:return r==="tuple"&&"components"in t?Object.values(t.components).every((s,i)=>W(Object.values(e)[i],s)):/^u?int(8|16|24|32|40|48|56|64|72|80|88|96|104|112|120|128|136|144|152|160|168|176|184|192|200|208|216|224|232|240|248|256)?$/.test(r)?n==="number"||n==="bigint":/^bytes([1-9]|1[0-9]|2[0-9]|3[0-2])?$/.test(r)?n==="string"||e instanceof Uint8Array:/[a-z]+[1-9]{0,3}(\[[0-9]{0,}\])+$/.test(r)?Array.isArray(e)&&e.every(s=>W(s,{...t,type:r.replace(/(\[[0-9]{0,}\])$/,"")})):!1}}function Ve(e,t,n){for(const r in e){const s=e[r],i=t[r];if(s.type==="tuple"&&i.type==="tuple"&&"components"in s&&"components"in i)return Ve(s.components,i.components,n[r]);const o=[s.type,i.type];if(o.includes("address")&&o.includes("bytes20")?!0:o.includes("address")&&o.includes("string")?U(n[r],{strict:!1}):o.includes("address")&&o.includes("bytes")?U(n[r],{strict:!1}):!1)return o}}function Gr(e,t={}){const{prepare:n=!0}=t,r=Array.isArray(e)||typeof e=="string"?de(e):e;return{...r,...n?{hash:A(r)}:{}}}function te(e,t,n){const{args:r=[],prepare:s=!0}=n??{},i=H(t,{strict:!1}),o=e.filter(c=>i?c.type==="function"||c.type==="error"?hr(c)===m(t,0,4):c.type==="event"?A(c)===t:!1:"name"in c&&c.name===t);if(o.length===0)throw new ge({name:t});if(o.length===1)return{...o[0],...s?{hash:A(o[0])}:{}};let a;for(const c of o){if(!("inputs"in c))continue;if(!r||r.length===0){if(!c.inputs||c.inputs.length===0)return{...c,...s?{hash:A(c)}:{}};continue}if(!c.inputs||c.inputs.length===0||c.inputs.length!==r.length)continue;if(r.every((d,y)=>{const h="inputs"in c&&c.inputs[y];return h?W(d,h):!1})){if(a&&"inputs"in a&&a.inputs){const d=Ve(c.inputs,a.inputs,r);if(d)throw new pr({abiItem:c,type:d[0]},{abiItem:a,type:d[1]})}a=c}}const u=(()=>{if(a)return a;const[c,...f]=o;return{...c,overloads:f}})();if(!u)throw new ge({name:t});return{...u,...s?{hash:A(u)}:{}}}function hr(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,r]=e;return te(n,r)}return e[0]})();return m(A(t),0,4)}function yr(...e){const t=(()=>{if(Array.isArray(e[0])){const[r,s]=e;return te(r,s)}return e[0]})(),n=typeof t=="string"?t:k(t);return M(n)}function A(...e){const t=(()=>{if(Array.isArray(e[0])){const[n,r]=e;return te(n,r)}return e[0]})();return typeof t!="string"&&"hash"in t&&t.hash?t.hash:q(F(yr(t)))}class pr extends l{constructor(t,n){super("Found ambiguous types in overloaded ABI Items.",{metaMessages:[`\`${t.type}\` in \`${M(k(t.abiItem))}\`, and`,`\`${n.type}\` in \`${M(k(n.abiItem))}\``,"","These types encode differently and cannot be distinguished at runtime.","Remove one of the ambiguous items in the ABI."]}),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.AmbiguityError"})}}class ge extends l{constructor({name:t,data:n,type:r="item"}){const s=t?` with name "${t}"`:n?` with data "${n}"`:"";super(`ABI ${r}${s} not found.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"AbiItem.NotFoundError"})}}function mr(e,t={}){return typeof e.chainId=="string"?_e(e):{...e,...t.signature}}function _e(e){const{address:t,chainId:n,nonce:r}=e,s=Vt(e);return{address:t,chainId:Number(n),nonce:BigInt(r),...s}}function Zr(e){return e.map(_e)}function br(e){const{address:t,chainId:n,nonce:r,...s}=e;return{address:t,chainId:p(n),nonce:p(r),...Tt(s)}}function Xr(e){return e.map(br)}async function gr(e,{address:t,blockHash:n,blockNumber:r,blockTag:s="latest",requireCanonical:i}){const o=rt({blockHash:n,blockNumber:r,blockTag:s,requireCanonical:i}),a=await e.request({method:"eth_getCode",params:[t,o]},{dedupe:typeof r=="bigint"||n!==void 0});if(a!=="0x")return a}const Ue="0x6492649264926492649264926492649264926492649264926492649264926492";function wr(e){if(m(e,-32)!==Ue)throw new vr(e)}function xr(e){const{data:t,signature:n,to:r}=e;return b(cr(Ne("address, bytes, bytes"),[r,t,n]),Ue)}function Pr(e){try{return wr(e),!0}catch{return!1}}let vr=class extends l{constructor(t){super(`Value \`${t}\` is an invalid ERC-6492 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc6492.InvalidWrappedSignatureError"})}};const Ir="0x8010801080108010801080108010801080108010801080108010801080108010",$r=Ne("(uint256 chainId, address delegation, uint256 nonce, uint8 yParity, uint256 r, uint256 s), address to, bytes data");function Te(e){if(typeof e=="string"){if(m(e,-32)!==Ir)throw new Br(e)}else Z(e.authorization)}function Ar(e){Te(e);const t=nt(m(e,-64,-32)),n=m(e,-t-64,-64),r=m(e,0,-t-64),[s,i,o]=ar($r,n);return{authorization:mr({address:s.delegation,chainId:Number(s.chainId),nonce:s.nonce,yParity:s.yParity,r:s.r,s:s.s}),signature:r,...o&&o!=="0x"?{data:o,to:i}:{}}}function Er(e){try{return Te(e),!0}catch{return!1}}class Br extends l{constructor(t){super(`Value \`${t}\` is an invalid ERC-8010 wrapped signature.`),Object.defineProperty(this,"name",{enumerable:!0,configurable:!0,writable:!0,value:"SignatureErc8010.InvalidWrappedSignatureError"})}}async function Sr({address:e,authorization:t,signature:n}){return V(_(e),await st({authorization:t,signature:n}))}function zr({r:e,s:t,to:n="hex",v:r,yParity:s}){const i=(()=>{if(s===0||s===1)return s;if(r&&(r===27n||r===28n||r>=35n))return r%2n===0n?1:0;throw new Error("Invalid `v` or `yParity` value")})(),o=`0x${new gt.Signature(ce(e),ce(t)).toCompactHex()}${i===0?"1b":"1c"}`;return n==="hex"?o:ht(o)}async function De(e,t){const{abi:n,address:r,args:s,functionName:i,...o}=t,a=Y({abi:n,args:s,functionName:i});try{const{data:u}=await R(e,Ee,"call")({...o,data:a,to:r});return it({abi:n,args:s,functionName:i,data:u||"0x"})}catch(u){throw ot(u,{abi:n,address:r,args:s,docsPath:"/docs/contract/readContract",functionName:i})}}async function Qr(e,t){var c,f,d,y;const{address:n,chain:r=e.chain,hash:s,erc6492VerifierAddress:i=t.universalSignatureVerifierAddress??((f=(c=r==null?void 0:r.contracts)==null?void 0:c.erc6492Verifier)==null?void 0:f.address),multicallAddress:o=t.multicallAddress??((y=(d=r==null?void 0:r.contracts)==null?void 0:d.multicall3)==null?void 0:y.address),mode:a="auto"}=t;if(r!=null&&r.verifyHash)return await r.verifyHash(e,t);const u=(()=>{const h=t.signature;return yt(h)?h:typeof h=="object"&&"r"in h&&"s"in h?zr(h):pt(h)})();try{if(a==="eoa")try{if(V(_(n),await ae({hash:s,signature:u})))return!0}catch{}return Er(u)?await Cr(e,{...t,multicallAddress:o,signature:u}):await Or(e,{...t,verifierAddress:i,signature:u})}catch(h){if(a!=="eoa")try{if(V(_(n),await ae({hash:s,signature:u})))return!0}catch{}if(h instanceof I)return!1;throw h}}async function Cr(e,t){var C;const{address:n,blockNumber:r,blockTag:s,hash:i,multicallAddress:o}=t,{authorization:a,data:u,signature:c,to:f}=Ar(t.signature);if(await gr(e,{address:n,blockNumber:r,blockTag:s})===at(["0xef0100",a.address]))return await Rr(e,{address:n,blockNumber:r,blockTag:s,hash:i,signature:c});const y={address:a.address,chainId:Number(a.chainId),nonce:Number(a.nonce),r:ue(a.r,{size:32}),s:ue(a.s,{size:32}),yParity:a.yParity};if(!await Sr({address:n,authorization:y}))throw new I;const $=await R(e,De,"readContract")({...o?{address:o}:{code:ct},authorizationList:[y],abi:mt,blockNumber:r,blockTag:"pending",functionName:"aggregate3",args:[[...u?[{allowFailure:!0,target:f??n,callData:u}]:[],{allowFailure:!0,target:n,callData:Y({abi:Be,functionName:"isValidSignature",args:[i,c]})}]]}),P=(C=$[$.length-1])==null?void 0:C.returnData;if(P!=null&&P.startsWith("0x1626ba7e"))return!0;throw new I}async function Or(e,t){const{address:n,factory:r,factoryData:s,hash:i,signature:o,verifierAddress:a,...u}=t,c=await(async()=>!r&&!s||Pr(o)?o:xr({data:s,signature:o,to:r}))(),f=a?{to:a,data:Y({abi:fe,functionName:"isValidSig",args:[n,i,c]}),...u}:{data:ut({abi:fe,args:[n,i,c],bytecode:ft}),...u},{data:d}=await R(e,Ee,"call")(f).catch(y=>{throw y instanceof dt?new I:y});if(bt(d??"0x0"))return!0;throw new I}async function Rr(e,t){const{address:n,blockNumber:r,blockTag:s,hash:i,signature:o}=t;if((await R(e,De,"readContract")({address:n,abi:Be,args:[i,o],blockNumber:r,blockTag:s,functionName:"isValidSignature"}).catch(u=>{throw u instanceof lt?new I:u})).startsWith("0x1626ba7e"))return!0;throw new I}class I extends Error{}export{Tt as A,G as B,v as C,Vt as D,Zr as E,Dt as F,Xr as G,Ur as H,Le as I,qr as J,Fr as K,ze as L,ge as N,le as a,cr as b,te as c,kr as d,Vr as e,Gr as f,gr as g,hr as h,xt as i,Hr as j,Dr as k,Tr as l,Wr as m,_r as n,q as o,de as p,Ot as q,De as r,zr as s,Ce as t,U as u,Qr as v,Re as w,Z as x,Ut as y,Yr as z};
3
- //# sourceMappingURL=verifyHash-COTUPfs3.js.map
3
+ //# sourceMappingURL=verifyHash-BaaSBs31.js.map
@@ -1,4 +1,4 @@
1
- import{a as f,i as v,b as a}from"./lit-element-wjYUA6aF.js";import{n as w,r as d,o as q}from"./class-map-BxMzgOIb.js";import{w as fe,s as ve,a as ge,p as be,M as g,S as se,R as l,r as _,A as K,e as ce,c as le,C as m,b as Y,d as ye,f as S,E as ie,O as E,g as F,h as oe,i as T,j as H,T as xe,k as Ce,l as ke,m as Se}from"./core-Cgo171jk.js";import{c as u,U as We}from"./index-ummDM-YW.js";import"./index-BJQicl8s.js";import"./react-4P5sGbEq.js";import"./dcl-schemas-CIgtuOoU.js";import"./sentry-BhkK6fEK.js";import"./ethers-B_gMX7bu.js";import"./intl-AKLEHPeO.js";import"./index-BxZY3R6O.js";import"./events-Dn3_sDeB.js";import"./index-DIMycRNk.js";import"./index-ZWBqYIeK.js";import"./index.es-BgDLSDRr.js";import"./index-OpYIGLSa.js";import"./index-DEhC8LgS.js";import"./index.es-DUGjvY5V.js";import"./browser-ponyfill-1RGXVE2_.js";import"./NetworkUtil-C4JZB8Ae.js";import"./W3MFrameProviderSingleton-DtsX-WLb.js";import"./async-directive-CeCQAQEH.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="530b73b5-ed8b-4534-ac4a-517c6440c76d",r._sentryDebugIdIdentifier="sentry-dbid-530b73b5-ed8b-4534-ac4a-517c6440c76d")}catch{}})();const p=be({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),Re={state:p,subscribe(r){return ge(p,()=>r(p))},subscribeKey(r,e){return ve(p,r,e)},showTooltip({message:r,triggerRect:e,variant:t}){p.open=!0,p.message=r,p.triggerRect=e,p.variant=t},hide(){p.open=!1,p.message="",p.triggerRect={width:0,height:0,top:0,left:0}}},O=fe(Re),de={isUnsupportedChainView(){return l.state.view==="UnsupportedChain"||l.state.view==="SwitchNetwork"&&l.state.history.includes("UnsupportedChain")},async safeClose(){if(this.isUnsupportedChainView()){g.shake();return}if(await se.isSIWXCloseDisabled()){g.shake();return}g.close()}},$e=f`
1
+ import{a as f,i as v,b as a}from"./lit-element-wjYUA6aF.js";import{n as w,r as d,o as q}from"./class-map-BxMzgOIb.js";import{w as fe,s as ve,a as ge,p as be,M as g,S as se,R as l,r as _,A as K,e as ce,c as le,C as m,b as Y,d as ye,f as S,E as ie,O as E,g as F,h as oe,i as T,j as H,T as xe,k as Ce,l as ke,m as Se}from"./core-CiORg1nl.js";import{c as u,U as We}from"./index-B_2gQm9j.js";import"./index-Bp3aHt26.js";import"./react-LHIQ98KR.js";import"./dcl-schemas-_B0Kk1dX.js";import"./sentry-DfhH7M7m.js";import"./ethers-Dp2JFZH-.js";import"./intl-AKLEHPeO.js";import"./index-C_en7zzj.js";import"./events-keqiXLZy.js";import"./index-DitYYXq7.js";import"./index-DW2SBgsT.js";import"./index.es-CafG5vDc.js";import"./index-OpYIGLSa.js";import"./index-_bAz9rUY.js";import"./index.es-CF1TpWwB.js";import"./browser-ponyfill-CrYE44xX.js";import"./NetworkUtil-BKndxmAv.js";import"./W3MFrameProviderSingleton-Bi11xf0a.js";import"./async-directive-CeCQAQEH.js";(function(){try{var r=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},e=new r.Error().stack;e&&(r._sentryDebugIds=r._sentryDebugIds||{},r._sentryDebugIds[e]="530b73b5-ed8b-4534-ac4a-517c6440c76d",r._sentryDebugIdIdentifier="sentry-dbid-530b73b5-ed8b-4534-ac4a-517c6440c76d")}catch{}})();const p=be({message:"",open:!1,triggerRect:{width:0,height:0,top:0,left:0},variant:"shade"}),Re={state:p,subscribe(r){return ge(p,()=>r(p))},subscribeKey(r,e){return ve(p,r,e)},showTooltip({message:r,triggerRect:e,variant:t}){p.open=!0,p.message=r,p.triggerRect=e,p.variant=t},hide(){p.open=!1,p.message="",p.triggerRect={width:0,height:0,top:0,left:0}}},O=fe(Re),de={isUnsupportedChainView(){return l.state.view==="UnsupportedChain"||l.state.view==="SwitchNetwork"&&l.state.history.includes("UnsupportedChain")},async safeClose(){if(this.isUnsupportedChainView()){g.shake();return}if(await se.isSIWXCloseDisabled()){g.shake();return}g.close()}},$e=f`
2
2
  :host {
3
3
  display: block;
4
4
  border-radius: clamp(0px, var(--wui-border-radius-l), 44px);
@@ -640,4 +640,4 @@ import{a as f,i as v,b as a}from"./lit-element-wjYUA6aF.js";import{n as w,r as d
640
640
  pointer-events: auto;
641
641
  }
642
642
  `,document.head.appendChild(e)}onScrollUnlock(){const e=document.head.querySelector(`style[data-w3m="${ae}"]`);e&&e.remove()}onAddKeyboardListener(){var t;this.abortController=new AbortController;const e=(t=this.shadowRoot)==null?void 0:t.querySelector("wui-card");e==null||e.focus(),window.addEventListener("keydown",o=>{if(o.key==="Escape")this.handleClose();else if(o.key==="Tab"){const{tagName:n}=o.target;n&&!n.includes("W3M-")&&!n.includes("WUI-")&&(e==null||e.focus())}},this.abortController)}onRemoveKeyboardListener(){var e;(e=this.abortController)==null||e.abort(),this.abortController=void 0}async onNewAddress(e){const t=m.state.isSwitchingNamespace,o=ke.getPlainAddress(e);!o&&!t?g.close():t&&o&&l.goBack(),await se.initializeIfEnabled(),this.caipAddress=e,m.setIsSwitchingNamespace(!1)}onNewNetwork(e){var Z,ee,te;const t=this.caipNetwork,o=(Z=t==null?void 0:t.caipNetworkId)==null?void 0:Z.toString(),n=t==null?void 0:t.chainNamespace,i=(ee=e==null?void 0:e.caipNetworkId)==null?void 0:ee.toString(),s=e==null?void 0:e.chainNamespace,c=o!==i,k=c&&!(n!==s),j=(t==null?void 0:t.name)===Se.UNSUPPORTED_NETWORK_NAME,L=l.state.view==="ConnectingExternal",U=!((te=m.getAccountData(e==null?void 0:e.chainNamespace))!=null&&te.caipAddress),me=l.state.view==="UnsupportedChain",he=g.state.open;let z=!1;he&&!L&&(U?c&&(z=!0):(me||k&&!j)&&(z=!0)),z&&l.state.view!=="SIWXSignMessage"&&l.goBack(),this.caipNetwork=e}prefetch(){this.hasPrefetched||(H.prefetch(),H.fetchWalletsByPage({page:1}),this.hasPrefetched=!0)}}x.styles=ze;C([w({type:Boolean})],x.prototype,"enableEmbedded",void 0);C([d()],x.prototype,"open",void 0);C([d()],x.prototype,"caipAddress",void 0);C([d()],x.prototype,"caipNetwork",void 0);C([d()],x.prototype,"shake",void 0);C([d()],x.prototype,"filterByNamespace",void 0);let ne=class extends x{};ne=C([u("w3m-modal")],ne);let re=class extends x{};re=C([u("appkit-modal")],re);export{re as AppKitModal,ne as W3mModal,x as W3mModalBase};
643
- //# sourceMappingURL=w3m-modal-DI7gA3rB.js.map
643
+ //# sourceMappingURL=w3m-modal-RMD0rXBw.js.map
@@ -1,4 +1,4 @@
1
- import{i as g,b as d,a as he}from"./lit-element-wjYUA6aF.js";import{n as l,o as $,r as u}from"./class-map-BxMzgOIb.js";import{d as v,r as V,e as me,v as B,i as fe}from"./index-B47x5iYD.js";import{c as f,U as le}from"./index-B0icZDm6.js";import{M as k,Z as ce,R as c,k as we,A as H,C as w,q as U,L as be,E as K,O as A,o as M,S as E,z,T as ge,_ as ye}from"./W3MFrameProviderSingleton-DtsX-WLb.js";import{P as D}from"./index-Dm73DTNL.js";import"./index-C6lsb53t.js";import{H as oe}from"./HelpersUtil-CvEYQ_bN.js";import{C as F}from"./ConstantsUtil-C4MAR3n5.js";import"./index-Cx-907QR.js";import"./index-rlHJmfTq.js";import"./index-R_74jjrw.js";import"./index-SnM__nMN.js";import{S as ve}from"./SwapController-DLrZ30eq.js";import"./index-C8Spvg7F.js";import"./index-BJQicl8s.js";import"./react-4P5sGbEq.js";import"./dcl-schemas-CIgtuOoU.js";import"./sentry-BhkK6fEK.js";import"./ethers-B_gMX7bu.js";import"./intl-AKLEHPeO.js";import"./index-BxZY3R6O.js";import"./events-Dn3_sDeB.js";import"./index-DIMycRNk.js";import"./index-ZWBqYIeK.js";import"./index-OpYIGLSa.js";import"./index-DVNQ3djO.js";import"./index.es-DUGjvY5V.js";import"./browser-ponyfill-1RGXVE2_.js";import"./NetworkUtil-C4JZB8Ae.js";import"./index-KtwMZa_D.js";import"./index-CF8SkK1g.js";import"./index-BKceaYFO.js";import"./index-Dd-2Y9li.js";import"./index-lBF5zNbH.js";import"./MathUtil-BvP0JcjY.js";import"./index-Baur_xj6.js";import"./index-Ao40Rh7v.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4984e1e5-246b-44c5-949f-3f647593c922",e._sentryDebugIdIdentifier="sentry-dbid-4984e1e5-246b-44c5-949f-3f647593c922")}catch{}})();const de={isUnsupportedChainView(){return c.state.view==="UnsupportedChain"||c.state.view==="SwitchNetwork"&&c.state.history.includes("UnsupportedChain")},async safeClose(){if(this.isUnsupportedChainView()){k.shake();return}if(await ce.isSIWXCloseDisabled()){k.shake();return}(c.state.view==="DataCapture"||c.state.view==="DataCaptureOtpConfirm")&&we.disconnect(),k.close()}},xe=v`
1
+ import{i as g,b as d,a as he}from"./lit-element-wjYUA6aF.js";import{n as l,o as $,r as u}from"./class-map-BxMzgOIb.js";import{d as v,r as V,e as me,v as B,i as fe}from"./index-BnTx4ws4.js";import{c as f,U as le}from"./index-2NXkxE64.js";import{M as k,Z as ce,R as c,k as we,A as H,C as w,q as U,L as be,E as K,O as A,o as M,S as E,z,T as ge,_ as ye}from"./W3MFrameProviderSingleton-Bi11xf0a.js";import{P as D}from"./index-DrpLxOHh.js";import"./index-CsmKttlZ.js";import{H as oe}from"./HelpersUtil-Blp7Eq-U.js";import{C as F}from"./ConstantsUtil-AO-LLgrp.js";import"./index-qPXDynV3.js";import"./index-CDLnCGnN.js";import"./index-DktRaopJ.js";import"./index-BpKF2zsV.js";import{S as ve}from"./SwapController-CDvVpAnZ.js";import"./index-CkWtWgH3.js";import"./index-Bp3aHt26.js";import"./react-LHIQ98KR.js";import"./dcl-schemas-_B0Kk1dX.js";import"./sentry-DfhH7M7m.js";import"./ethers-Dp2JFZH-.js";import"./intl-AKLEHPeO.js";import"./index-C_en7zzj.js";import"./events-keqiXLZy.js";import"./index-DitYYXq7.js";import"./index-DW2SBgsT.js";import"./index-OpYIGLSa.js";import"./index-DkSpWs0n.js";import"./index.es-CF1TpWwB.js";import"./browser-ponyfill-CrYE44xX.js";import"./NetworkUtil-BKndxmAv.js";import"./index-BudJkUoY.js";import"./index-d74473In.js";import"./index-DeYhfeYR.js";import"./index-Dncqt9PR.js";import"./index-COLL-965.js";import"./MathUtil-BvP0JcjY.js";import"./index-DRPoZEiN.js";import"./index-SOl7iePx.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="4984e1e5-246b-44c5-949f-3f647593c922",e._sentryDebugIdIdentifier="sentry-dbid-4984e1e5-246b-44c5-949f-3f647593c922")}catch{}})();const de={isUnsupportedChainView(){return c.state.view==="UnsupportedChain"||c.state.view==="SwitchNetwork"&&c.state.history.includes("UnsupportedChain")},async safeClose(){if(this.isUnsupportedChainView()){k.shake();return}if(await ce.isSIWXCloseDisabled()){k.shake();return}(c.state.view==="DataCapture"||c.state.view==="DataCaptureOtpConfirm")&&we.disconnect(),k.close()}},xe=v`
2
2
  :host {
3
3
  display: block;
4
4
  border-radius: clamp(0px, ${({borderRadius:e})=>e[8]}, 44px);
@@ -889,4 +889,4 @@ import{i as g,b as d,a as he}from"./lit-element-wjYUA6aF.js";import{n as l,o as
889
889
  </div>
890
890
  </div>
891
891
  `}onViewChange(t){const i=t.split(",").filter(Boolean),r=this.historyState.split(",").filter(Boolean),a=r.length,o=i.length,n=i[i.length-1]||"",s=le.cssDurationToNumber(this.transitionDuration);let m="";o>a?m="next":o<a?m="prev":o===a&&i[o-1]!==r[a-1]&&(m="next"),queueMicrotask(()=>{this.viewDirection=`${m}-${n}`}),setTimeout(()=>{var y;this.historyState=t,(y=this.setView)==null||y.call(this,n)},s),setTimeout(()=>{this.viewDirection=""},s*2)}getWrapper(){var t;return(t=this.shadowRoot)==null?void 0:t.querySelector("div.page")}updateContainerHeight(){var a;const t=this.getWrapper();if(!t)return;const i=parseFloat(getComputedStyle(document.documentElement).getPropertyValue("--apkt-footer-height")||"0");let r=0;if(this.mobileFullScreen){const o=((a=window.visualViewport)==null?void 0:a.height)||window.innerHeight,n=this.getHeaderHeight();r=o-n-i,this.style.setProperty("--local-border-bottom-radius","0px")}else r=t.getBoundingClientRect().height+i,this.style.setProperty("--local-border-bottom-radius",i?"var(--apkt-borderRadius-5)":"0px");this.style.setProperty("--local-container-height",`${r}px`),this.previousHeight!=="0px"&&this.style.setProperty("--local-duration-height",this.transitionDuration),this.previousHeight=`${r}px`}getHeaderHeight(){return Ve}};b.styles=[Le];I([l({type:String})],b.prototype,"transitionDuration",void 0);I([l({type:String})],b.prototype,"transitionFunction",void 0);I([l({type:String})],b.prototype,"history",void 0);I([l({type:String})],b.prototype,"view",void 0);I([l({attribute:!1})],b.prototype,"setView",void 0);I([u()],b.prototype,"viewDirection",void 0);I([u()],b.prototype,"historyState",void 0);I([u()],b.prototype,"previousHeight",void 0);I([u()],b.prototype,"mobileFullScreen",void 0);b=I([f("w3m-router-container")],b);export{se as AppKitModal,p as W3mListWallet,ne as W3mModal,x as W3mModalBase,b as W3mRouterContainer,Y as W3mUsageExceededView};
892
- //# sourceMappingURL=w3m-modal-CO33DEWa.js.map
892
+ //# sourceMappingURL=w3m-modal-Rzu8HJ5T.js.map
@@ -1,2 +1,2 @@
1
- import{f as N}from"./transactionReceipt-C7KPa1TY.js";import{h as T,c as g}from"./prepare-contract-call-C2cYOhbO.js";import{s as L}from"./sleep-fBr8OToA.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5e96ce05-cf9c-4e60-8383-d403fdf519f6",e._sentryDebugIdIdentifier="sentry-dbid-5e96ce05-cf9c-4e60-8383-d403fdf519f6")}catch{}})();async function B(e){const t=await e({method:"eth_blockNumber"});return T(t)}async function A(e,t){const n=await e({method:"eth_getTransactionReceipt",params:[t.hash]});if(!n)throw new Error("Transaction receipt not found.");return N(n)}const D=5e3,E=1e3,_=500,x=2,y=10;function M(e){for(;e.length<y;)e.unshift(E);return e.reduce((n,i)=>n+i,0)/e.length}function R(e,t,n,i){let l=[],c=[],a=!1,o,r;const m=g({chain:t,client:e});async function b(){if(!a)return;try{const s=await B(m);if(!o||s>o){let d=[];if(o)for(let f=o+1n;f<=s;f++)d.push(BigInt(f));else d=[s];o=s;const p=Date.now();if(r){const f=(p-r)/d.length;c.push(f),c=c.slice(-y)}r=p;for(const f of d)for(const I of l)I(f)}}catch(s){i?i(s):console.error(`[watchBlockNumber]: Failed to poll for latest block number: ${s}`)}const h=M(c),u=Math.max(_,Math.min(D,Math.max(_,h)));await L(u/(n??x)),b()}return function(u,s){return l.push(u),a||(o=s,a=!0,b()),function(){l=l.filter(p=>p!==u),l.length===0&&(o=void 0,r=void 0,a=!1)}}}const k=new Map;function O(e){const{client:t,chain:n,onNewBlockNumber:i,overPollRatio:l,latestBlockNumber:c,onError:a}=e,o=n.id;let r=k.get(o);return r||(r=R(t,n,l,a),k.set(o,r)),r(i,c)}const P=100,w=new Map;function v(e){const{transactionHash:t,chain:n,client:i}=e,c=`${n.id}:tx_${t}`,a=e.maxBlocksWaitTime??P;if(w.has(c))return w.get(c);const o=new Promise((r,m)=>{t||m(new Error("Transaction has no transactionHash to wait for, did you execute it?"));const b=g({chain:n,client:i});let h=-1;const u=O({chain:n,client:i,onNewBlockNumber:async()=>{if(h++,h>=a){u(),m(new Error(`Transaction receipt for ${t} not found after ${a} blocks`));return}try{const s=await A(b,{hash:t});u(),r(s)}catch{}}})}).finally(()=>{w.delete(c)});return w.set(c,o),o}export{B as a,O as b,A as e,v as w};
2
- //# sourceMappingURL=wait-for-tx-receipt-8S4DlVRa.js.map
1
+ import{f as N}from"./transactionReceipt-bOGdURTM.js";import{h as T,c as g}from"./prepare-contract-call-CthQ_8dx.js";import{s as L}from"./sleep-fBr8OToA.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="5e96ce05-cf9c-4e60-8383-d403fdf519f6",e._sentryDebugIdIdentifier="sentry-dbid-5e96ce05-cf9c-4e60-8383-d403fdf519f6")}catch{}})();async function B(e){const t=await e({method:"eth_blockNumber"});return T(t)}async function A(e,t){const n=await e({method:"eth_getTransactionReceipt",params:[t.hash]});if(!n)throw new Error("Transaction receipt not found.");return N(n)}const D=5e3,E=1e3,_=500,x=2,y=10;function M(e){for(;e.length<y;)e.unshift(E);return e.reduce((n,i)=>n+i,0)/e.length}function R(e,t,n,i){let l=[],c=[],a=!1,o,r;const m=g({chain:t,client:e});async function b(){if(!a)return;try{const s=await B(m);if(!o||s>o){let d=[];if(o)for(let f=o+1n;f<=s;f++)d.push(BigInt(f));else d=[s];o=s;const p=Date.now();if(r){const f=(p-r)/d.length;c.push(f),c=c.slice(-y)}r=p;for(const f of d)for(const I of l)I(f)}}catch(s){i?i(s):console.error(`[watchBlockNumber]: Failed to poll for latest block number: ${s}`)}const h=M(c),u=Math.max(_,Math.min(D,Math.max(_,h)));await L(u/(n??x)),b()}return function(u,s){return l.push(u),a||(o=s,a=!0,b()),function(){l=l.filter(p=>p!==u),l.length===0&&(o=void 0,r=void 0,a=!1)}}}const k=new Map;function O(e){const{client:t,chain:n,onNewBlockNumber:i,overPollRatio:l,latestBlockNumber:c,onError:a}=e,o=n.id;let r=k.get(o);return r||(r=R(t,n,l,a),k.set(o,r)),r(i,c)}const P=100,w=new Map;function v(e){const{transactionHash:t,chain:n,client:i}=e,c=`${n.id}:tx_${t}`,a=e.maxBlocksWaitTime??P;if(w.has(c))return w.get(c);const o=new Promise((r,m)=>{t||m(new Error("Transaction has no transactionHash to wait for, did you execute it?"));const b=g({chain:n,client:i});let h=-1;const u=O({chain:n,client:i,onNewBlockNumber:async()=>{if(h++,h>=a){u(),m(new Error(`Transaction receipt for ${t} not found after ${a} blocks`));return}try{const s=await A(b,{hash:t});u(),r(s)}catch{}}})}).finally(()=>{w.delete(c)});return w.set(c,o),o}export{B as a,O as b,A as e,v as w};
2
+ //# sourceMappingURL=wait-for-tx-receipt-CV57tGp2.js.map