@dcl/shop 1.12.2-34943105195.commit-53ac845 → 1.12.2-34948836375.commit-6cf32c8

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 (417) hide show
  1. package/_assets/{Activity-CIn0i64i.js → Activity-J2iy4jC2.js} +14 -14
  2. package/_assets/{AnimatedBackground-DObQGfsX.js → AnimatedBackground-CZSQraQ0.js} +6 -6
  3. package/_assets/Assets-rO2myygc.js +939 -0
  4. package/_assets/{Authorizations-BbREzb10.js → Authorizations-RQz4v6iB.js} +7 -7
  5. package/_assets/{Cart-Dlt1kxnp.js → Cart-DdbsSYxC.js} +5 -5
  6. package/_assets/Collection-9Z2j-rTm.js +134 -0
  7. package/_assets/{CollectionCarousel-DzyeEp-Q.js → CollectionCarousel-p9BPJONR.js} +7 -7
  8. package/_assets/{Confetti-D8hHZ-j2.js → Confetti-BGVbEJbR.js} +4 -4
  9. package/_assets/{ConstantsUtil-DqWEU85J.js → ConstantsUtil-Bp-pnAsz.js} +2 -2
  10. package/_assets/{ContentClient-CHR8DAlf.js → ContentClient-DTRb9-5C.js} +2 -2
  11. package/_assets/{Creator-Cna_oyq7.js → Creator-BJL4gekm.js} +46 -46
  12. package/_assets/DeploymentBuilder-Cjkaft-R.js +4 -0
  13. package/_assets/{EmotePlaybackBar-DxiqCt2i.js → EmotePlaybackBar-BPKSzBrx.js} +3 -3
  14. package/_assets/{ErrorNotice-Cyz0ru0V.js → ErrorNotice-nSEXNWXK.js} +2 -2
  15. package/_assets/Event-mTDtnPdT.js +2 -0
  16. package/_assets/{ExchangeController-CUZL8Mbx.js → ExchangeController-D8uwDzSY.js} +2 -2
  17. package/_assets/{Faq-C_uBlm74.js → Faq-CVMMGesq.js} +3 -3
  18. package/_assets/{GetCredits-_6uzdQGI.js → GetCredits-B-d63Asa.js} +12 -12
  19. package/_assets/{Grow-4oNQu9_f.js → Grow-DpxGM69E.js} +2 -2
  20. package/_assets/{HelpersUtil-YexQAC6C.js → HelpersUtil-CA8woQfF.js} +3 -3
  21. package/_assets/{ItemDetail-Bldzu6EA.js → ItemDetail-Bxxs1KIm.js} +2 -2
  22. package/_assets/LoadMore-Cr-mnVTu.js +8 -0
  23. package/_assets/{ManaPricingBanner.styles-B3n-XF9u.js → ManaPricingBanner.styles-CuFOcVnZ.js} +6 -6
  24. package/_assets/{MyAssets-QZ3rwFU5.js → MyAssets-CIl-ZNFw.js} +9 -9
  25. package/_assets/{MyFavorites-D6QBZzyV.js → MyFavorites-CONQ86Ux.js} +7 -7
  26. package/_assets/{NetworkUtil-Cppu81Vb.js → NetworkUtil-ida2KYao.js} +2 -2
  27. package/_assets/NotFound-Cjy5dUWa.js +18 -0
  28. package/_assets/NotificationsBell-CyOkbx1n.js +142 -0
  29. package/_assets/{OutfitDetail-k5wg0Bgc.js → OutfitDetail-BsiAngXf.js} +6 -6
  30. package/_assets/{OutfitPreview-DnMRzH-s.js → OutfitPreview-CS5cySDc.js} +3 -3
  31. package/_assets/{OutfitStudio-CLp--Fr0.js → OutfitStudio-D-FGJRNJ.js} +19 -19
  32. package/_assets/{PhArrowCircleDown-F6XaRM9L.js → PhArrowCircleDown-ak13FLPU.js} +5 -5
  33. package/_assets/{PhArrowClockwise-q_-mQx9S.js → PhArrowClockwise-B1_sSsDG.js} +3 -3
  34. package/_assets/{PhArrowDown-DbUWaovp.js → PhArrowDown-3SgA8Sjh.js} +3 -3
  35. package/_assets/{PhArrowLeft-BHIRtLA9.js → PhArrowLeft-D0xJapef.js} +3 -3
  36. package/_assets/{PhArrowRight-Chd6UGyN.js → PhArrowRight-BEzeYnOS.js} +4 -4
  37. package/_assets/{PhArrowSquareOut-6HUnIa-j.js → PhArrowSquareOut-ncs5AP9J.js} +3 -3
  38. package/_assets/{PhArrowUp-CMwjZS9_.js → PhArrowUp-DAiP5DLU.js} +4 -4
  39. package/_assets/{PhArrowUpRight-BKMZVVGq.js → PhArrowUpRight-CpVGKPzB.js} +5 -5
  40. package/_assets/{PhArrowsClockwise-F_7-Dc35.js → PhArrowsClockwise-BW3eqMIv.js} +2 -2
  41. package/_assets/{PhArrowsDownUp-Dn_FyHzt.js → PhArrowsDownUp-CL__e9hj.js} +4 -4
  42. package/_assets/{PhArrowsLeftRight-CaFe7nV6.js → PhArrowsLeftRight-CKf-pynd.js} +4 -4
  43. package/_assets/{PhBank-BI7khlVk.js → PhBank-CYFoeatO.js} +5 -5
  44. package/_assets/{PhBrowser-CECFOU5M.js → PhBrowser-B8QcDy-X.js} +4 -4
  45. package/_assets/PhCaretDown-BJucyF_I.js +15 -0
  46. package/_assets/PhCaretLeft-DXM-1eI2.js +15 -0
  47. package/_assets/{PhCaretRight-CFC60GD1.js → PhCaretRight-CUbjYMvE.js} +2 -2
  48. package/_assets/{PhCaretUp-DIACD1RA.js → PhCaretUp-XANHSPHz.js} +5 -5
  49. package/_assets/{PhCheck-BvBD9Aid.js → PhCheck-DtDQz9uq.js} +3 -3
  50. package/_assets/{PhCircleHalf-Bun-1FCv.js → PhCircleHalf-N8EEYP9W.js} +4 -4
  51. package/_assets/{PhClock-D_ASVz8S.js → PhClock-D4HOB74r.js} +4 -4
  52. package/_assets/{PhCompass-DocyDWCu.js → PhCompass-DaDix-lb.js} +5 -5
  53. package/_assets/{PhCopy-D6EBlOAj.js → PhCopy-DfG9L19w.js} +4 -4
  54. package/_assets/{PhCreditCard-B0qL8bHI.js → PhCreditCard-54JvBHpJ.js} +3 -3
  55. package/_assets/{PhCurrencyDollar-DMjw0pw9.js → PhCurrencyDollar--4El0jyD.js} +4 -4
  56. package/_assets/{PhDesktop-BCskflgs.js → PhDesktop-C59sef21.js} +3 -3
  57. package/_assets/{PhDeviceMobile-C4XbDOvg.js → PhDeviceMobile-CqU5hwgB.js} +4 -4
  58. package/_assets/{PhDotsThree-C1eKbboP.js → PhDotsThree-DKKOuXPs.js} +4 -4
  59. package/_assets/{PhEnvelope-BiE8gj38.js → PhEnvelope-BV_YRi_L.js} +2 -2
  60. package/_assets/{PhFunnelSimple-Cp9cUJMS.js → PhFunnelSimple-DCJ64Yx1.js} +5 -5
  61. package/_assets/{PhGlobe-DKh2xV8G.js → PhGlobe-CfDkOX-M.js} +2 -2
  62. package/_assets/{PhIdentificationCard-Bmin-yhM.js → PhIdentificationCard-CZevIBOX.js} +2 -2
  63. package/_assets/{PhImage-chlN_hIc.js → PhImage-BvwFiqL_.js} +2 -2
  64. package/_assets/{PhInfo-C7QGtQg6.js → PhInfo-ByE07_XD.js} +5 -5
  65. package/_assets/{PhLightbulb-CkOJ2DJ3.js → PhLightbulb-COGGqe5o.js} +2 -2
  66. package/_assets/{PhMagnifyingGlass-BTmWgGWE.js → PhMagnifyingGlass-CoJqZmSp.js} +4 -4
  67. package/_assets/{PhPaperPlaneRight-BdlILCZ-.js → PhPaperPlaneRight-BOtHGdWm.js} +4 -4
  68. package/_assets/{PhPlus-BcjO7oMF.js → PhPlus-BtM9eWY5.js} +4 -4
  69. package/_assets/{PhPower-DOEZz8fY.js → PhPower-XoT0HBKo.js} +5 -5
  70. package/_assets/{PhPuzzlePiece-BTpL210F.js → PhPuzzlePiece-DPN_Gt0E.js} +4 -4
  71. package/_assets/{PhQrCode-BZYdQpUJ.js → PhQrCode-Ba2Av-ws.js} +2 -2
  72. package/_assets/{PhQuestion-C0lp-4DF.js → PhQuestion-BsODZylj.js} +3 -3
  73. package/_assets/{PhQuestionMark-VF_NxIwy.js → PhQuestionMark-CQGfqgyU.js} +5 -5
  74. package/_assets/{PhSealCheck-1OIprpHs.js → PhSealCheck-ORxCOA65.js} +3 -3
  75. package/_assets/{PhSignOut-CQoJ2HjV.js → PhSignOut-CIIz9cbC.js} +4 -4
  76. package/_assets/{PhSpinner-I7LCPPQZ.js → PhSpinner-v_BVhkr6.js} +3 -3
  77. package/_assets/{PhTrash-BLYxR73H.js → PhTrash-DaneU5r-.js} +2 -2
  78. package/_assets/{PhUser-B6uTfnUV.js → PhUser-CKCQsYp2.js} +2 -2
  79. package/_assets/{PhVault-huUMPy8_.js → PhVault-q-BY5Hn5.js} +2 -2
  80. package/_assets/{PhWallet-CqCYhzA6.js → PhWallet-Df5kuqF4.js} +5 -5
  81. package/_assets/{PhWarning-B-8AQOtI.js → PhWarning-DmzK9PIH.js} +5 -5
  82. package/_assets/{PhWarningCircle-DMKHSe_T.js → PhWarningCircle-B6Azmmj3.js} +3 -3
  83. package/_assets/{PhX-CdA2pR0v.js → PhX-Bv7tUluK.js} +2 -2
  84. package/_assets/{StoreSettings-ChXnKPzm.js → StoreSettings-DtLddUAS.js} +10 -10
  85. package/_assets/{Success-Cp4ScdYv.js → Success--Ei6iKXI.js} +6 -6
  86. package/_assets/{SwapController-uRJLn0q0.js → SwapController-BA5TjqZA.js} +2 -2
  87. package/_assets/{TradeService-kFU04aTe.js → TradeService-DywJ4wNp.js} +2 -2
  88. package/_assets/{W3MFrameProviderSingleton-R5ShLfit.js → W3MFrameProviderSingleton-CmmiYZ9j.js} +4 -4
  89. package/_assets/{WebCryptoP256-B4ORewtv.js → WebCryptoP256-BPfgDNR9.js} +2 -2
  90. package/_assets/{add-CNAGUF7G.js → add-WC3KG-NP.js} +2 -2
  91. package/_assets/{all-wallets-Do04Q1GD.js → all-wallets-BV2RKDKX.js} +2 -2
  92. package/_assets/{app-store-ZwD4kBP5.js → app-store-DzdJFJvJ.js} +2 -2
  93. package/_assets/{apple-DA1GHxT3.js → apple-C_YCXF5K.js} +3 -3
  94. package/_assets/{arrow-bottom-circle-Dzl92t2I.js → arrow-bottom-circle-CWERGNL8.js} +3 -3
  95. package/_assets/arrow-bottom-lj5jq4hP.js +9 -0
  96. package/_assets/{arrow-left-Ckx45zyh.js → arrow-left-BHfhO25z.js} +3 -3
  97. package/_assets/{arrow-right-BcWHW3tW.js → arrow-right-DrvdIWK8.js} +2 -2
  98. package/_assets/{arrow-top-BhrmNTjO.js → arrow-top-C5YdnARR.js} +3 -3
  99. package/_assets/{async-directive-CZ-ebsJC.js → async-directive-Ul6OERsh.js} +3 -3
  100. package/_assets/authorizations-D-BlJBCy.js +2 -0
  101. package/_assets/{bank-BfuZXPF5.js → bank-CcJhMycN.js} +2 -2
  102. package/_assets/{basic-DzHsw0VK.js → basic-D9ZT1BuA.js} +2 -2
  103. package/_assets/{biconomy-miqvTpb8.js → biconomy-CZoSyrbX.js} +2 -2
  104. package/_assets/{browseLayout.styles-DHfDavT7.js → browseLayout.styles-DXvUud3S.js} +8 -8
  105. package/_assets/{browser-DymfWuKv.js → browser-CePgleG4.js} +3 -3
  106. package/_assets/{browser-BNJThGvz.js → browser-DSALTQXN.js} +2 -2
  107. package/_assets/{browser-CGugGcMM.js → browser-ShmbZCwm.js} +2 -2
  108. package/_assets/{browser-ponyfill-CBvNQnj-.js → browser-ponyfill-BNu_nbrj.js} +2 -2
  109. package/_assets/builder-g8RNS_Vg.js +2 -0
  110. package/_assets/buy-DTXSyPtH.js +2 -0
  111. package/_assets/{buy-gasless-K9BIvSNe.js → buy-gasless-DiikOGgv.js} +2 -2
  112. package/_assets/{card-DThPVMJR.js → card-vJcgWj0J.js} +2 -2
  113. package/_assets/{categories-Cykl9uCK.js → categories-v7iHQh9a.js} +3 -3
  114. package/_assets/{ccip-BspMOsso.js → ccip-CWbNdN46.js} +2 -2
  115. package/_assets/{ccip-Bl-opNrR.js → ccip-DelhpKhz.js} +2 -2
  116. package/_assets/{chains-A67dVE8B.js → chains-tR4n3Rjk.js} +2 -2
  117. package/_assets/{checkmark-BWfow5Hm.js → checkmark-BdVL_wyR.js} +2 -2
  118. package/_assets/{checkmark-bold-DpY-xklc.js → checkmark-bold-D2_kDMAk.js} +3 -3
  119. package/_assets/{chevron-bottom-CvrvhzO8.js → chevron-bottom-D0Fjkofu.js} +3 -3
  120. package/_assets/chevron-left-C9tCZw7F.js +9 -0
  121. package/_assets/chevron-right-CFriZlYk.js +9 -0
  122. package/_assets/chevron-top-CI7Nc1Hh.js +9 -0
  123. package/_assets/{chrome-store-KoCRE_P4.js → chrome-store-BPxSE7E7.js} +3 -3
  124. package/_assets/{class-map-C0Rma2l2.js → class-map-uVWd2sCT.js} +2 -2
  125. package/_assets/{clock-GD6fuViS.js → clock-CCT_gA8y.js} +3 -3
  126. package/_assets/{close-CN58s0HI.js → close-CVrMDBuL.js} +3 -3
  127. package/_assets/{coinPlaceholder-7RZ9OmZY.js → coinPlaceholder-vau3Ommw.js} +2 -2
  128. package/_assets/collectionPage.styles-B9DFBjev.js +41 -0
  129. package/_assets/common-yKZODGdF.js +2 -0
  130. package/_assets/{compass-D-rZZnyG.js → compass-BVX94cA4.js} +3 -3
  131. package/_assets/{controller-CgLENETb.js → controller-Bld7fSw_.js} +3 -3
  132. package/_assets/{copy-2dTl5JIk.js → copy-DbIo246v.js} +2 -2
  133. package/_assets/{core-CvHAmV38.js → core-D92-eur5.js} +5 -5
  134. package/_assets/{createSvgIcon-Br_wYMqr.js → createSvgIcon-DxzmVGNY.js} +3 -3
  135. package/_assets/crumbs.styles-B0j-GlvV.js +10 -0
  136. package/_assets/cursor-CRt00jB7.js +4 -0
  137. package/_assets/{cursor-transparent-CxCv7i5W.js → cursor-transparent-D_Cn2Qj1.js} +2 -2
  138. package/_assets/{custom-CAvBAwHD.js → custom-CZWdKBPL.js} +2 -2
  139. package/_assets/{data-capture-CTdXGXvf.js → data-capture-CX4kn4Xl.js} +5 -5
  140. package/_assets/{dcl-schemas-C6wVUDox.js → dcl-schemas-BEn5-KfC.js} +2 -2
  141. package/_assets/decimals-E28v80-_.js +2 -0
  142. package/_assets/decimals-epBomYJA.js +2 -0
  143. package/_assets/{desktop-hQx0DPre.js → desktop-DiOFIHxS.js} +3 -3
  144. package/_assets/detectExtension-CwKpcDtv.js +2 -0
  145. package/_assets/{disconnect-DK02_cdg.js → disconnect-DJcY0BVy.js} +3 -3
  146. package/_assets/{discord-DI917ReU.js → discord-CFlQgGeS.js} +3 -3
  147. package/_assets/{disposePreview-Cpu-KZCy.js → disposePreview-DGzpJsbb.js} +2 -2
  148. package/_assets/{email-Cb1oJrCm.js → email-BHBQRb65.js} +7 -7
  149. package/_assets/{embedded-wallet-BBd6-cDh.js → embedded-wallet-C6Gy4WTK.js} +2 -2
  150. package/_assets/{emotion-styled.browser.esm-CAcZ8G1T.js → emotion-styled.browser.esm-BJIlADB7.js} +2 -2
  151. package/_assets/{engine-Cp6uLDvm.js → engine-Yiha65AY.js} +2 -2
  152. package/_assets/errors-wEpZJGJP.js +2 -0
  153. package/_assets/estimate-l1-fee-CLftLGg-.js +2 -0
  154. package/_assets/eth_estimateGas-BectDuYc.js +2 -0
  155. package/_assets/eth_getStorageAt-1yhQzTuj.js +2 -0
  156. package/_assets/eth_getTransactionCount-D4KYioQk.js +2 -0
  157. package/_assets/ethereum-BaJC9L6n.js +2 -0
  158. package/_assets/{ethers-Lv97T1yz.js → ethers-DsAoqs4p.js} +2 -2
  159. package/_assets/{etherscan-1ZO8YOdM.js → etherscan-B_DEmwcU.js} +3 -3
  160. package/_assets/{events-CjzpqrCe.js → events-Z3dAOhvY.js} +2 -2
  161. package/_assets/{exclamation-triangle-B-lUKP3N.js → exclamation-triangle-CwRHSRAS.js} +3 -3
  162. package/_assets/{execute-DT7tERno.js → execute-Dp67kIVB.js} +3 -3
  163. package/_assets/{extension-BJk7Ap5S.js → extension-C5CHNEBM.js} +3 -3
  164. package/_assets/{external-link-CUZQGcmk.js → external-link-DhWG0oh3.js} +2 -2
  165. package/_assets/{extractIPFS-Csp5fKF-.js → extractIPFS-Cg7kPTyT.js} +2 -2
  166. package/_assets/{facebook-CKL1kZxO.js → facebook-ZbOHRELg.js} +3 -3
  167. package/_assets/{farcaster-aMNZ-p6M.js → farcaster-MlS0fAkK.js} +3 -3
  168. package/_assets/{features-CKemYOaF.js → features-NLP5a5Tz.js} +2 -2
  169. package/_assets/fetchTokenMetadata-DxlcVtmx.js +3 -0
  170. package/_assets/{field.styles-CpietnDB.js → field.styles-CZBu3L1V.js} +4 -4
  171. package/_assets/{filters-C6jnCJ-u.js → filters-ByxHqr_b.js} +2 -2
  172. package/_assets/{fortmatic-DrgZ58OF.js → fortmatic-giGwlnqU.js} +2 -2
  173. package/_assets/{get-bytecode-Bw0yeUzM.js → get-bytecode-g7wo4tN3.js} +2 -2
  174. package/_assets/get-ecosystem-wallet-info-DtESs8m7.js +2 -0
  175. package/_assets/{getBalance-DwEqPPUh.js → getBalance-D6g2ByQs.js} +3 -3
  176. package/_assets/{getInstalledModules-C-xNQqDX.js → getInstalledModules-OCneY0pB.js} +2 -2
  177. package/_assets/{getNFT-C1o8uqmX.js → getNFT-C2rmwr1y.js} +3 -3
  178. package/_assets/getNFT-DXnohOJa.js +2 -0
  179. package/_assets/{github-zd84z5Ek.js → github-DcWwSd2A.js} +3 -3
  180. package/_assets/{google-d3DYsc60.js → google-BWF_TAVo.js} +2 -2
  181. package/_assets/grid.styles-D8y3Md9p.js +15 -0
  182. package/_assets/{hashTypedData-DTDbXTci.js → hashTypedData-CqJya2E6.js} +2 -2
  183. package/_assets/{hashTypedData-DBRpOMJe.js → hashTypedData-DbZ540ih.js} +2 -2
  184. package/_assets/{help-circle-hL-zFkun.js → help-circle-Chc_vCdy.js} +3 -3
  185. package/_assets/{id-C8eFRL7j.js → id-7VZ83soE.js} +3 -3
  186. package/_assets/{image-D-6g9w_t.js → image-Bgj_xLD4.js} +3 -3
  187. package/_assets/{in-app-lhUPAkLD.js → in-app-7RIyYwr4.js} +2 -2
  188. package/_assets/in-app-wallet-calls-B_Nob2Dp.js +2 -0
  189. package/_assets/{index-BU_GG3hA.js → index-7CCjLw0u.js} +4 -4
  190. package/_assets/{index-CWJpnmO7.js → index-7lpgP4PJ.js} +4 -4
  191. package/_assets/{index-DMHQcJeZ.js → index-B0b3tE0c.js} +4 -4
  192. package/_assets/{index-BLYk_x85.js → index-B2LbNj_R.js} +2 -2
  193. package/_assets/{index-BsupZO79.js → index-B6-4doHB.js} +2 -2
  194. package/_assets/index-BHH-ygDH.js +3 -0
  195. package/_assets/{index-DcES3JkY.js → index-BMTJPKai.js} +2 -2
  196. package/_assets/{index-DIBmDyug.js → index-BRDkcfDz.js} +2 -2
  197. package/_assets/{index-B0-4OO2W.js → index-BScED-bZ.js} +2 -2
  198. package/_assets/{index-Dy-dSFkV.js → index-BSvARysd.js} +4 -4
  199. package/_assets/{index-B5KflQ_t.js → index-BWxd86Vj.js} +7 -7
  200. package/_assets/{index-C8KVMkp9.js → index-BeUJsqeQ.js} +2 -2
  201. package/_assets/{index-7DahUkBO.js → index-BgkGjzDI.js} +2 -2
  202. package/_assets/{index-CFyNL00G.js → index-BjFsM0oT.js} +2 -2
  203. package/_assets/{index-DDgXbmCK.js → index-BkMOX_Op.js} +2 -2
  204. package/_assets/{index-CqCl4nEk.js → index-Bobcegi1.js} +2 -2
  205. package/_assets/{index-9PrFdU4_.js → index-BsMA9366.js} +5 -5
  206. package/_assets/{index-DQ-FlfeW.js → index-C73O17Kl.js} +4 -4
  207. package/_assets/{index-BVRRpBa3.js → index-CDtFhkB_.js} +4 -4
  208. package/_assets/{index-CSl3VEfF.js → index-CGS4qhMY.js} +2 -2
  209. package/_assets/{index-BbGQqGVt.js → index-COM0SPl1.js} +2 -2
  210. package/_assets/{index-Dz35NRD5.js → index-CP1u55g3.js} +2 -2
  211. package/_assets/{index-vTEKT3n2.js → index-CQ25VkJI.js} +3 -3
  212. package/_assets/{index-BaLYi60v.js → index-CXMa-J76.js} +4 -4
  213. package/_assets/{index-Ddl0pXFc.js → index-CYHgmrtK.js} +2 -2
  214. package/_assets/{index-CCPgImBW.js → index-CaszeEvt.js} +2 -2
  215. package/_assets/{index-C5vvTQad.js → index-CcqYtwt3.js} +2 -2
  216. package/_assets/{index-B2g4tLw4.js → index-Cd4qg3y2.js} +4 -4
  217. package/_assets/{index-B__hcQy-.js → index-CuuExxM6.js} +2 -2
  218. package/_assets/index-CwvrGPbx.js +4213 -0
  219. package/_assets/{index-CRDV0Pl2.js → index-D0mKR1Uq.js} +2 -2
  220. package/_assets/{index-CUfOM0gd.js → index-D391fIN0.js} +2 -2
  221. package/_assets/{index-My6QJ4eq.js → index-D5norgxm.js} +2 -2
  222. package/_assets/{index-BgYrg0ju.js → index-DIDCs6WQ.js} +2 -2
  223. package/_assets/{index-TYEsH86Q.js → index-DKQvgIG5.js} +5 -5
  224. package/_assets/{index-CnKw1as5.js → index-DRJSt6_X.js} +2 -2
  225. package/_assets/{index-D2gxZYm9.js → index-DS7j0g6y.js} +5 -5
  226. package/_assets/{index-BQwWx3Ru.js → index-DVuPr51_.js} +21 -21
  227. package/_assets/{index-DlkltF4I.css → index-DWaYKcdc.css} +1 -1
  228. package/_assets/{index-DCcz022S.js → index-DZScr1GS.js} +3 -3
  229. package/_assets/{index-I89t12Wh.js → index-DdnyYkRs.js} +2 -2
  230. package/_assets/{index-BpdowJC2.js → index-DjLd5rYK.js} +2 -2
  231. package/_assets/{index-o_uA8_89.js → index-DjtvFnLh.js} +2 -2
  232. package/_assets/index-Dn4KZdaA.js +2 -0
  233. package/_assets/{index-CMCCdHa_.js → index-DomMPXQj.js} +4 -4
  234. package/_assets/{index-BNoDIvG3.js → index-DonluLU3.js} +2 -2
  235. package/_assets/{index-BE2Pcc7L.js → index-DqAm4Wjx.js} +2 -2
  236. package/_assets/index-Ds8cBLDT.js +28 -0
  237. package/_assets/{index-6u5VnD--.js → index-DskNH7_F.js} +2 -2
  238. package/_assets/index-DwipOeoQ.js +2 -0
  239. package/_assets/{index-DjmoLHZP.js → index-DxK-KEEO.js} +2 -2
  240. package/_assets/{index-CvBn_Xli.js → index-DxeSXDhW.js} +7 -7
  241. package/_assets/{index-CEimJkIf.js → index-DzdzPcAF.js} +3 -3
  242. package/_assets/{index-4gqThDQn.js → index-QGdB1wb7.js} +2 -2
  243. package/_assets/{index-wWI9fRg_.js → index-RJudh9Ct.js} +4 -4
  244. package/_assets/{index-B8U4q9Eq.js → index-RX4XaJG4.js} +6 -6
  245. package/_assets/{index-LBBkA61Q.js → index-S7STKBrt.js} +4 -4
  246. package/_assets/{index-qkZXr06B.js → index-UrlARuY0.js} +3 -3
  247. package/_assets/{index-BAFuNLaS.js → index-_HKxCNov.js} +2 -2
  248. package/_assets/{index-TuafBa14.js → index-atuR1r1C.js} +4 -4
  249. package/_assets/{index-DcvaenNa.js → index-fUy6m31Q.js} +3 -3
  250. package/_assets/{index-D7g7s3yR.js → index-m-k1ONxw.js} +2 -2
  251. package/_assets/{index-k9TKQ6xZ.js → index-noVH-Q6R.js} +3 -3
  252. package/_assets/{index-DxKiy2Xz.js → index-s3fqrm7k.js} +2 -2
  253. package/_assets/{index-BRBu6WYt.js → index-t08CzlbS.js} +2 -2
  254. package/_assets/{index-lVTgIb_7.js → index-tuk1tZ_u.js} +4 -4
  255. package/_assets/{index-D2wWow0t.js → index-u2xgc_Gz.js} +2 -2
  256. package/_assets/{index-C83jzgFF.js → index-yi3HWnj_.js} +3 -3
  257. package/_assets/{index.es-DVUqiCwJ.js → index.es-BOLgFwZv.js} +2 -2
  258. package/_assets/{index.es-MqodSyA5.js → index.es-DFtzDt27.js} +5 -5
  259. package/_assets/{index.es-D6oDPmIZ.js → index.es-DN-4f9er.js} +2 -2
  260. package/_assets/{index.es-CcwLuxPU.js → index.es-Y_OTMJEv.js} +2 -2
  261. package/_assets/{info-TiK2m5-Y.js → info-D7ObqMR7.js} +3 -3
  262. package/_assets/{info-circle-Cjm1aaI5.js → info-circle-Cn1eJfl8.js} +3 -3
  263. package/_assets/{items-empty-Dz9owDfV.js → items-empty-CDQLWT4f.js} +2 -2
  264. package/_assets/jsxRuntime.module-KGmzlnK1.js +2 -0
  265. package/_assets/{jump-B-4PRM6U.js → jump-lzA8KqWK.js} +2 -2
  266. package/_assets/{lightbulb-M3egNz3u.js → lightbulb-BKWlXPb6.js} +3 -3
  267. package/_assets/{linkAccount-DGv5frqt.js → linkAccount-D7Lo5Fky.js} +2 -2
  268. package/_assets/{localBatchGatewayRequest-DBz8PLI1.js → localBatchGatewayRequest-CQTaa_Xl.js} +2 -2
  269. package/_assets/{mail-Bjuf52Eu.js → mail-uZxvzFx_.js} +2 -2
  270. package/_assets/{mobile-ChlkZUx7.js → mobile-NGKGetAS.js} +2 -2
  271. package/_assets/{more-odGFVZ6c.js → more-D3jNhOpW.js} +3 -3
  272. package/_assets/{native-jtr3FNWJ.js → native-cH_0VsVR.js} +2 -2
  273. package/_assets/{network-placeholder-Bx-MbMDF.js → network-placeholder-D5qcFSJX.js} +2 -2
  274. package/_assets/{networks-C2aXNTjz.js → networks-9q7XE_b5.js} +2 -2
  275. package/_assets/{nftPlaceholder-BsX6zBqg.js → nftPlaceholder-Cdllyb5L.js} +3 -3
  276. package/_assets/{off-CUpQ3Yl-.js → off-Cy19A7zA.js} +3 -3
  277. package/_assets/{onramp-O1jcL8Jv.js → onramp-WYoC_2JJ.js} +2 -2
  278. package/_assets/{openzeppelin-pn0x9_7g.js → openzeppelin-B26CxjRn.js} +2 -2
  279. package/_assets/ownerOf-CR-pYgie.js +2 -0
  280. package/_assets/parseNft-DoCeRtaz.js +3 -0
  281. package/_assets/{parseSignature-ClDd9ctx.js → parseSignature-CFwV_3Sj.js} +4 -4
  282. package/_assets/{parseSignature-CwllmTpV.js → parseSignature-QwU35EfM.js} +2 -2
  283. package/_assets/passkeys-BDSLI6JH.js +2 -0
  284. package/_assets/{pay-with-exchange-u7mlaUeL.js → pay-with-exchange-Dn2ZiQRJ.js} +2 -2
  285. package/_assets/{play-store-C298g5Zr.js → play-store-BqyyIuw-.js} +2 -2
  286. package/_assets/{plus-c1-ca8Km.js → plus-TKHoVUto.js} +3 -3
  287. package/_assets/{prepare-contract-call-aQCYu-2_.js → prepare-contract-call-C5MBXliq.js} +2 -2
  288. package/_assets/{qr-code-VlhVVdH4.js → qr-code-DNktFNYV.js} +2 -2
  289. package/_assets/{qr-overlay-D2LKsalO.js → qr-overlay-2y6p10sk.js} +4 -4
  290. package/_assets/{react-C_GXHmaF.js → react-BG8VKwrs.js} +3 -3
  291. package/_assets/{receive-B1y1THnu.js → receive-CGyG04lY.js} +2 -2
  292. package/_assets/{recycle-horizontal-Dkaylhpp.js → recycle-horizontal-D7wSarZ0.js} +2 -2
  293. package/_assets/{ref-DHpb_JDM.js → ref-ClbGTQC1.js} +3 -3
  294. package/_assets/{refresh-Ck2C1pkV.js → refresh-Ne9sq_3A.js} +2 -2
  295. package/_assets/{reown-logo-BLgzyruS.js → reown-logo-CTKEUi_d.js} +3 -3
  296. package/_assets/{resolveImplementation-BpDedJce.js → resolveImplementation-DLF7p0HK.js} +2 -2
  297. package/_assets/{resume-buy-CBx6aA8q.js → resume-buy-D6gjpV5I.js} +2 -2
  298. package/_assets/{rpc-BMJSyJ-r.js → rpc-DjqI0NmR.js} +4 -4
  299. package/_assets/sales-empty-BCFlZ1Kk.js +2 -0
  300. package/_assets/{search-empty-Bt5u-7KQ.js → search-empty-BpMm9tI6.js} +2 -2
  301. package/_assets/{search-B7IwOtLS.js → search-oltotRQx.js} +2 -2
  302. package/_assets/{secp256k1-DOdD1V3D.js → secp256k1-BqIlgE5L.js} +2 -2
  303. package/_assets/{secp256k1-BIyGdKEh.js → secp256k1-DRppp9VB.js} +2 -2
  304. package/_assets/{secp256k1-CJLNHxmq.js → secp256k1-UNqqlOQ7.js} +2 -2
  305. package/_assets/{send-Cpg_0X6f.js → send-CAaL-103.js} +2 -2
  306. package/_assets/{send-D0yR4mlq.js → send-avIcUC3Q.js} +2 -2
  307. package/_assets/send-batch-transaction-rKyhIytb.js +2 -0
  308. package/_assets/{send-eip712-transaction-CbVNTjsx.js → send-eip712-transaction-BoRspE2R.js} +3 -3
  309. package/_assets/send-gasless-transaction-xdY1TN2_.js +3 -0
  310. package/_assets/send-transaction-B3QVkcGi.js +3 -0
  311. package/_assets/{sendMetaTransaction-CRPN4vtr.js → sendMetaTransaction-Dhuf5w6N.js} +2 -2
  312. package/_assets/{sendRawTransaction-CEkpo9YD.js → sendRawTransaction-BbLkhJa0.js} +4 -4
  313. package/_assets/{sentry-D65FGJ82.js → sentry-eiNE_T77.js} +3 -3
  314. package/_assets/{serializeTransaction-BKHiYlY6.js → serializeTransaction-E2BUrxll.js} +2 -2
  315. package/_assets/{session-proposal-W3TvAC4B.js → session-proposal-Bs7GYJdO.js} +2 -2
  316. package/_assets/session-request-BUwswPeh.js +3 -0
  317. package/_assets/{sha256-oEZGwtly.js → sha256-QTFcttLy.js} +2 -2
  318. package/_assets/{sha3-Dt1DUgNG.js → sha3-BnLSGe3q.js} +2 -2
  319. package/_assets/{signing-DBeGLVac.js → signing-B7DPAVqs.js} +4 -4
  320. package/_assets/skeleton.styles-bancAmCI.js +8 -0
  321. package/_assets/{socials-VkpKzdCN.js → socials-Dw7-Rmzi.js} +2 -2
  322. package/_assets/{styled-TGb8kDRe.js → styled-BAp_hlJt.js} +3 -3
  323. package/_assets/{swapHorizontal-BN5KnB0R.js → swapHorizontal-AUQR3QWw.js} +2 -2
  324. package/_assets/{swapHorizontalBold-ui2X_0Pn.js → swapHorizontalBold-CJ-O8FMu.js} +3 -3
  325. package/_assets/{swapHorizontalMedium-CLLhrVwA.js → swapHorizontalMedium-C9_JLGaD.js} +2 -2
  326. package/_assets/{swapHorizontalRoundedBold-DSvQ6GmQ.js → swapHorizontalRoundedBold-CprcKnGZ.js} +3 -3
  327. package/_assets/{swapVertical-C77_weR3.js → swapVertical-C0UtEvQr.js} +3 -3
  328. package/_assets/{swaps-C677NWAF.js → swaps-D6QIvCFU.js} +2 -2
  329. package/_assets/{telegram-NiE4nQTP.js → telegram-BPHwvSxV.js} +2 -2
  330. package/_assets/{thirdweb-DvzfkQPe.js → thirdweb-CRRacliS.js} +4 -4
  331. package/_assets/{three-dots-DCiCRV1J.js → three-dots-CuMLURps.js} +3 -3
  332. package/_assets/{to-serializable-transaction-B7c7G16v.js → to-serializable-transaction-COhsgTk_.js} +3 -3
  333. package/_assets/totalSupply-DVGh8BDW.js +2 -0
  334. package/_assets/{transaction-DOQ-s_SN.js → transaction-BBI2xlTk.js} +2 -2
  335. package/_assets/{transactionReceipt-D4a33_Sm.js → transactionReceipt-DHzlWkC9.js} +2 -2
  336. package/_assets/transactions-_PP0VZjh.js +17 -0
  337. package/_assets/{twitch-CljYs_zu.js → twitch-BEksYNQy.js} +2 -2
  338. package/_assets/{twitterIcon-BV_SOaTk.js → twitterIcon-C-RbKp2J.js} +3 -3
  339. package/_assets/useCreditPacks-ZEO0PAYJ.js +2 -0
  340. package/_assets/useInfiniteGrid-D25SubwU.js +2 -0
  341. package/_assets/useStore-DTTkvsJu.js +3 -0
  342. package/_assets/useTheme-L-wqQk2z.js +2 -0
  343. package/_assets/{utils-CYQnfN0c.js → utils-BeknD1Pa.js} +2 -2
  344. package/_assets/{verify-Dp8FCc7I.js → verify-DX3fSqPA.js} +2 -2
  345. package/_assets/{verify-filled-oSUaVrok.js → verify-filled-rDNnAKA1.js} +3 -3
  346. package/_assets/{verifyHash-Czf56H_W.js → verifyHash-BlkIyJF8.js} +2 -2
  347. package/_assets/{w3m-modal-19iak0dY.js → w3m-modal-CDsMCGJp.js} +2 -2
  348. package/_assets/{w3m-modal-CeWf43o8.js → w3m-modal-DRHjwfPR.js} +2 -2
  349. package/_assets/wait-for-tx-receipt-T0TE-tdi.js +2 -0
  350. package/_assets/{wallet-CJoKG7Dz.js → wallet-BDmvD81m.js} +3 -3
  351. package/_assets/{wallet-COBn0v1U.js → wallet-Dgo2zwQv.js} +2 -2
  352. package/_assets/{wallet-placeholder-BSyNQtN-.js → wallet-placeholder-DD3BllZl.js} +3 -3
  353. package/_assets/{walletconnect-B5U8RBku.js → walletconnect-CeHvp7GG.js} +5 -5
  354. package/_assets/{wallets-CQYIfQO9.js → wallets-BkI_aTsn.js} +6 -6
  355. package/_assets/{warning-circle-CJPSee3J.js → warning-circle-0P7CyfRX.js} +3 -3
  356. package/_assets/{web-connector-heXILTnC.js → web-connector-BOVGNKko.js} +4 -4
  357. package/_assets/{writeContract-APOTf1eq.js → writeContract-DwmLxQPI.js} +2 -2
  358. package/_assets/{x-B5IgbBUZ.js → x-Dp_viDtj.js} +2 -2
  359. package/_assets/{zora-sepolia-1DuwJ8uh.js → zora-sepolia-BNz_fefw.js} +2 -2
  360. package/_assets/{zoraTestnet-ibhZsds7.js → zoraTestnet-k5nrTRiy.js} +2 -2
  361. package/index.html +11 -11
  362. package/package.json +2 -2
  363. package/_assets/Assets-B_m19TfJ.js +0 -939
  364. package/_assets/Collection-CdEOCK_y.js +0 -134
  365. package/_assets/DeploymentBuilder-BxCP4MSH.js +0 -4
  366. package/_assets/LoadMore-BB8sleTE.js +0 -8
  367. package/_assets/NotFound-DG-AwCXD.js +0 -18
  368. package/_assets/NotificationsBell-CK0ArqyF.js +0 -142
  369. package/_assets/PhCaretDown-D8Xqsou-.js +0 -15
  370. package/_assets/PhCaretLeft-QDAnkLG7.js +0 -15
  371. package/_assets/arrow-bottom-BVQmW3wa.js +0 -9
  372. package/_assets/authorizations-BYjpgv3b.js +0 -2
  373. package/_assets/builder-C4HS--V7.js +0 -2
  374. package/_assets/buy-BJEus4Gp.js +0 -2
  375. package/_assets/chevron-left-5PMBZUkw.js +0 -9
  376. package/_assets/chevron-right-C56uPsti.js +0 -9
  377. package/_assets/chevron-top-k_S8fIel.js +0 -9
  378. package/_assets/collectionPage.styles-_pJe5vLw.js +0 -41
  379. package/_assets/common-_ZNuQVUM.js +0 -2
  380. package/_assets/crumbs.styles-B6TaPU9d.js +0 -10
  381. package/_assets/cursor-L-UT_Ljd.js +0 -4
  382. package/_assets/decimals-CzyzeuYI.js +0 -2
  383. package/_assets/decimals-_qV5_pvn.js +0 -2
  384. package/_assets/detectExtension-bkDGZTpi.js +0 -2
  385. package/_assets/errors-DHFPyZxy.js +0 -2
  386. package/_assets/estimate-l1-fee-bH6XTCuI.js +0 -2
  387. package/_assets/eth_estimateGas-VrgXkggR.js +0 -2
  388. package/_assets/eth_getStorageAt-BLEzJJqj.js +0 -2
  389. package/_assets/eth_getTransactionCount-DYoKLABW.js +0 -2
  390. package/_assets/ethereum-BABCNi_L.js +0 -2
  391. package/_assets/fetchTokenMetadata-C7DE9Uxs.js +0 -3
  392. package/_assets/get-ecosystem-wallet-info-Q1xlzUZU.js +0 -2
  393. package/_assets/getNFT-CFemLn0s.js +0 -2
  394. package/_assets/grid.styles-DZkIcKLP.js +0 -15
  395. package/_assets/in-app-wallet-calls-BMlufmbQ.js +0 -2
  396. package/_assets/index-BEOAkPZT.js +0 -2
  397. package/_assets/index-BG3OAxWE.js +0 -2
  398. package/_assets/index-CGxgrphY.js +0 -28
  399. package/_assets/index-CsxNhtK5.js +0 -3
  400. package/_assets/index-Da0o410S.js +0 -4213
  401. package/_assets/jsxRuntime.module-DOXvkhfj.js +0 -2
  402. package/_assets/ownerOf-DJZLDMi3.js +0 -2
  403. package/_assets/parseNft-m7RdKHsH.js +0 -3
  404. package/_assets/passkeys-Qsl5qibW.js +0 -2
  405. package/_assets/sales-empty-EUAZrz0I.js +0 -2
  406. package/_assets/send-batch-transaction-Cqh67f7V.js +0 -2
  407. package/_assets/send-gasless-transaction-lK30JE_a.js +0 -3
  408. package/_assets/send-transaction-CNvlQqdF.js +0 -3
  409. package/_assets/session-request-BHfGowlq.js +0 -3
  410. package/_assets/skeleton.styles-CQQEuycy.js +0 -8
  411. package/_assets/totalSupply-ChWVOAsh.js +0 -2
  412. package/_assets/transactions-B-bzDvJD.js +0 -17
  413. package/_assets/useCreditPacks-B602cnLJ.js +0 -2
  414. package/_assets/useInfiniteGrid-nkax3tc1.js +0 -2
  415. package/_assets/useStore-Dd4P_Vxl.js +0 -3
  416. package/_assets/useTheme-B2xuq0IV.js +0 -2
  417. package/_assets/wait-for-tx-receipt-CeP1_Eo1.js +0 -2
@@ -1,4 +1,4 @@
1
- import{j as e,b as pe,r as p,L as he}from"./react-C_GXHmaF.js";import{t as A,a as n,o as ge,s as xe,d as a,C as N,B as Q,bW as re,r as O,aq as oe,af as me,ba as K,j as U,a7 as ue,q as fe,v as we,b9 as be,I as G,ar as ye,at as ve,bX as je,bY as ke,bd as $e,x as Y}from"./index-Da0o410S.js";import{c as Ce,i as Ie,R as Te,u as Se}from"./sales-empty-EUAZrz0I.js";import{S as Le,C as ze}from"./ManaPricingBanner.styles-B3n-XF9u.js";import{F as H}from"./Faq-C_uBlm74.js";import{C as V}from"./field.styles-CpietnDB.js";import"./dcl-schemas-C6wVUDox.js";import"./sentry-D65FGJ82.js";import"./ethers-Lv97T1yz.js";import"./intl-AKLEHPeO.js";import"./buy-BJEus4Gp.js";import"./authorizations-BYjpgv3b.js";import"./sendMetaTransaction-CRPN4vtr.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new s.Error().stack;d&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[d]="736a9bc2-9fdb-43e8-b445-9a3250044f8d",s._sentryDebugIdIdentifier="sentry-dbid-736a9bc2-9fdb-43e8-b445-9a3250044f8d")}catch{}})();function Ae({size:s=12,...d}){return e.jsx("svg",{viewBox:"0 0 20 20",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function Re({size:s=84.837,...d}){return e.jsxs("svg",{viewBox:"0 0 84.837 84.837",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:[e.jsxs("g",{stroke:A.colors.errStrong,strokeWidth:"6.08696",strokeLinecap:"round",children:[e.jsx("circle",{cx:"42.4185",cy:"42.4185",r:"39.375"}),e.jsx("path",{d:"M42.4185 22.5V47.5"})]}),e.jsx("circle",{cx:"42.4185",cy:"60.75",r:"3.8",fill:A.colors.errStrong})]})}const{colors:R,radius:_e,z:Fe}=A,Ee=ge`
1
+ import{j as e,u as pe,r as p,L as he}from"./react-BG8VKwrs.js";import{d as A,e as n,w as ge,s as xe,c as a,C as N,B as Q,b$ as re,z as O,av as oe,ak as me,bf as K,n as U,ac as ue,y as fe,A as we,be,I as G,aw as ye,ay as ve,c0 as je,c1 as ke,bi as $e,E as H}from"./index-CwvrGPbx.js";import{c as Ce,i as Ie,R as Te,u as Se}from"./sales-empty-BCFlZ1Kk.js";import{S as Le,C as ze}from"./ManaPricingBanner.styles-CuFOcVnZ.js";import{F as V}from"./Faq-CVMMGesq.js";import{C as Y}from"./field.styles-CZBu3L1V.js";import"./dcl-schemas-BEn5-KfC.js";import"./sentry-eiNE_T77.js";import"./ethers-DsAoqs4p.js";import"./intl-AKLEHPeO.js";import"./buy-DTXSyPtH.js";import"./authorizations-D-BlJBCy.js";import"./sendMetaTransaction-Dhuf5w6N.js";(function(){try{var s=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new s.Error().stack;d&&(s._sentryDebugIds=s._sentryDebugIds||{},s._sentryDebugIds[d]="d96c148a-f132-449a-8d69-4a9ca6ff76f6",s._sentryDebugIdIdentifier="sentry-dbid-d96c148a-f132-449a-8d69-4a9ca6ff76f6")}catch{}})();function Ae({size:s=12,...d}){return e.jsx("svg",{viewBox:"0 0 20 20",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:e.jsx("path",{d:"M5 10.5l3 3 7-7.5",stroke:"#fff",strokeWidth:"2.4",strokeLinecap:"round",strokeLinejoin:"round"})})}function Re({size:s=84.837,...d}){return e.jsxs("svg",{viewBox:"0 0 84.837 84.837",width:s,height:s,fill:"none","aria-hidden":!0,focusable:"false",...d,children:[e.jsxs("g",{stroke:A.colors.errStrong,strokeWidth:"6.08696",strokeLinecap:"round",children:[e.jsx("circle",{cx:"42.4185",cy:"42.4185",r:"39.375"}),e.jsx("path",{d:"M42.4185 22.5V47.5"})]}),e.jsx("circle",{cx:"42.4185",cy:"60.75",r:"3.8",fill:A.colors.errStrong})]})}const{colors:R,radius:_e,z:Ee}=A,Fe=ge`
2
2
  0% {
3
3
  transform: scale(0);
4
4
  opacity: 0;
@@ -7,7 +7,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-C_GXHmaF.js";import{t as A,a a
7
7
  transform: scale(1);
8
8
  opacity: 1;
9
9
  }
10
- `,X=n.div`
10
+ `,J=n.div`
11
11
  position: fixed;
12
12
  inset: 0;
13
13
  background: rgba(0, 0, 0, 0.5);
@@ -15,7 +15,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-C_GXHmaF.js";import{t as A,a a
15
15
  overflow-y: auto;
16
16
  padding: 20px;
17
17
  // Above the global DCL navbar so the backdrop dims the full viewport (navbar included).
18
- z-index: ${Fe.overlay};
18
+ z-index: ${Ee.overlay};
19
19
  `,de=n.div`
20
20
  background: ${R.white};
21
21
  border-radius: ${_e.card};
@@ -40,7 +40,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-C_GXHmaF.js";import{t as A,a a
40
40
  justify-content: center;
41
41
  width: 100%;
42
42
  }
43
- `,J=n.h2`
43
+ `,X=n.h2`
44
44
  font-size: 20px;
45
45
  `;n.img`
46
46
  width: 140px;
@@ -69,7 +69,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-C_GXHmaF.js";import{t as A,a a
69
69
  display: grid;
70
70
  place-items: center;
71
71
  margin: 4px auto 2px;
72
- animation: ${Ee} 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.4);
72
+ animation: ${Fe} 0.32s cubic-bezier(0.2, 0.9, 0.3, 1.4);
73
73
 
74
74
  @media (prefers-reduced-motion: reduce) {
75
75
  animation: none;
@@ -78,17 +78,17 @@ import{j as e,b as pe,r as p,L as he}from"./react-C_GXHmaF.js";import{t as A,a a
78
78
  font-weight: 700;
79
79
  font-size: 16px;
80
80
  margin: 2px 0 0;
81
- `;const{colors:u,gradients:Pe,radius:Qe}=A,qe=n(de)`
81
+ `;const{colors:u,gradients:Pe,radius:Qe}=A,Be=n(de)`
82
82
  width: min(460px, 94vw);
83
83
  text-align: left;
84
84
  align-items: stretch;
85
- `,Be=n.div`
85
+ `,De=n.div`
86
86
  height: 6px;
87
87
  border-radius: 999px;
88
88
  background: ${u.line};
89
89
  overflow: hidden;
90
90
  margin: 6px 0 14px;
91
- `,De=n.div`
91
+ `,qe=n.div`
92
92
  height: 100%;
93
93
  width: 0;
94
94
  background: ${Pe.amethyst};
@@ -159,26 +159,26 @@ import{j as e,b as pe,r as p,L as he}from"./react-C_GXHmaF.js";import{t as A,a a
159
159
  gap: 6px;
160
160
  justify-content: flex-end;
161
161
  min-width: 74px;
162
- `,Ye=n.span`
162
+ `,He=n.span`
163
163
  color: ${u.muted2};
164
164
  font-weight: 600;
165
- `,He=n.span`
165
+ `,Ve=n.span`
166
166
  color: ${u.muted};
167
167
  font-weight: 600;
168
168
  `,Z=n.span`
169
169
  color: ${u.errStrong};
170
170
  font-weight: 600;
171
- `,Ve=n.span`
171
+ `,Ye=n.span`
172
172
  display: flex;
173
173
  align-items: center;
174
174
  justify-content: center;
175
175
  margin-bottom: 4px;
176
- `,Xe=n.span`
176
+ `,Je=n.span`
177
177
  width: 14px;
178
178
  height: 14px;
179
179
  margin: 0;
180
180
  border-width: 2px;
181
- `,Je=n.span`
181
+ `,Xe=n.span`
182
182
  width: 20px;
183
183
  height: 20px;
184
184
  border-radius: 50%;
@@ -189,7 +189,7 @@ import{j as e,b as pe,r as p,L as he}from"./react-C_GXHmaF.js";import{t as A,a a
189
189
  font-size: 12px;
190
190
  `,Ze=n.p`
191
191
  margin: 12px 0 0;
192
- `;function et(s,d){switch(s==null?void 0:s.step){case"cancelling":return d?a("migrate.phaseCancelConfirm"):a("migrate.phaseCancel");case"confirming-cancel":return d?a("migrate.phaseConfirmingCancel"):a("migrate.phaseConfirmingCancelManaged");case"authorising":return d?a("migrate.phaseAuthoriseConfirm"):a("migrate.phaseAuthorise");case"signing":return d?a("migrate.phaseSignConfirm"):a("migrate.phaseSign");case"publishing":return a("migrate.phasePublishing");case"indexing":return a("migrate.phaseIndexing",{attempt:s.attempt,of:s.of});default:return d?a("migrate.statusConfirm"):a("migrate.statusAdding")}}function tt({queue:s,session:d,onClose:h,onDone:I}){const q=pe(),y=xe(d.providerType),[B,F]=p.useState(()=>s.map(()=>null)),[x,E]=p.useState(null),[l,b]=p.useState(()=>s.map(()=>"pending")),[v,w]=p.useState("running"),T=p.useRef(!1),j=p.useRef(!1);p.useEffect(()=>(j.current=!1,T.current||(T.current=!0,y&&Ce(s.map(i=>i.item),d.address).then(i=>{i&&E({approvals:i.approvals,total:i.total})}).catch(()=>{}),(async()=>{for(let i=0;i<s.length;i++){if(j.current)return;b(r=>r.map((c,g)=>g===i?"active":c));try{await Ie(s[i].item,s[i].priceCredits,d,{onPhase:r=>F(c=>c.map((g,z)=>z===i?r:g))}),me("Shop Migrated Listing",{item_id:s[i].item.itemId??s[i].item.oldTradeId??null,contract_address:s[i].item.contractAddress,new_price_credits:s[i].priceCredits,new_price_usd:K(s[i].priceCredits)}),b(r=>r.map((c,g)=>g===i?"done":c))}catch(r){if(r instanceof Te)U(r,{flow:"import_listing",step:"relist",itemId:s[i].item.itemId??s[i].item.oldTradeId}),b(c=>c.map((g,z)=>z===i?"unlisted":g));else{const c=r,g=c.code===4001||/reject|denied|cancel/i.test(c.message??"");g||U(r,{flow:"import_listing",itemId:s[i].item.itemId??s[i].item.oldTradeId}),b(z=>z.map((le,ce)=>ce===i?g?"skipped":"failed":le))}}}w("finished")})()),()=>{j.current=!0}),[]);const k=l.filter(t=>t==="done").length,M=l.findIndex(t=>t==="active"),D=Math.round(l.filter(t=>t!=="pending"&&t!=="active").length/s.length*100),C=l.filter(t=>t==="skipped").length,S=l.filter(t=>t==="failed").length,m=l.filter(t=>t==="unlisted").length,$=S+m;function L(){I({listed:k,failed:$,cancelled:C}),h()}const P=p.useRef(!1);return p.useEffect(()=>{v!=="finished"||P.current||(P.current=!0,!($>0)&&L())},[v,$]),v==="finished"?$===0?null:e.jsx(X,{role:"presentation",children:e.jsxs(de,{"data-failure":!0,role:"dialog","aria-modal":"true","data-testid":m>0?"migrate-unlisted":"migrate-failed",children:[e.jsx(Ve,{"aria-hidden":!0,children:e.jsx(Re,{size:72})}),e.jsx(J,{children:m>0?a("migrate.unlistedTitle"):a("migrate.failedTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[m>0?a("migrate.unlistedSummary",{count:m}):"",S>0?(m>0?" ":"")+a("migrate.failedSummary",{count:S}):"",k>0?" "+a("migrate.listedSummary",{count:k,currency:N.name}):"",C>0?" "+a("migrate.skippedSummary",{count:C}):""]}),e.jsxs(Me,{"data-actions":!0,children:[e.jsx(Q,{variant:"ghost",onClick:L,children:a("getCredits.done")}),m>0?e.jsx(Q,{variant:"purple",onClick:()=>{I({listed:k,failed:$,cancelled:C}),h(),q(re)},children:a("migrate.goToMyAssets")}):null]})]})}):e.jsx(X,{role:"presentation",children:e.jsxs(qe,{"data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx(J,{children:a("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[y?a("migrate.subConfirm"):a("migrate.subManaged")," ",M>=0?a("migrate.progressCount",{current:M+1,total:s.length}):""]}),e.jsx(Be,{children:e.jsx(De,{style:{width:`${D}%`}})}),e.jsx(We,{children:s.map((t,i)=>e.jsxs(Ne,{"data-status":l[i],children:[e.jsx(Oe,{children:t.item.thumbnail?e.jsx("img",{src:t.item.thumbnail,alt:""}):null}),e.jsx(Ke,{title:t.item.name,children:t.item.name||a("migrate.itemFallback")}),e.jsxs(Ue,{children:[e.jsx(O,{className:"ccy-mark"})," ",e.jsx(oe,{credits:t.priceCredits})]}),e.jsx(Ge,{"data-testid":l[i]==="active"?"migrate-active-status":void 0,children:l[i]==="active"?e.jsxs(e.Fragment,{children:[e.jsx(Xe,{className:"spinner","aria-hidden":!0})," ",et(B[i],y)]}):l[i]==="done"?e.jsx(Je,{children:e.jsx(Ae,{})}):l[i]==="skipped"?e.jsx(He,{children:a("migrate.statusSkipped")}):l[i]==="failed"?e.jsx(Z,{children:a("migrate.statusFailed")}):l[i]==="unlisted"?e.jsx(Z,{title:a("migrate.unlistedTooltip"),children:a("migrate.statusUnlisted")}):e.jsx(Ye,{children:a("migrate.statusWaiting")})})]},t.item.oldTradeId))}),e.jsx(Ze,{className:"muted small",children:y?x?a(x.approvals>0?"migrate.hintCountApproval":"migrate.hintCount",{total:x.total}):a("migrate.hintConfirm"):a("migrate.hintManaged")})]})})}const it="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='84.837'%20height='84.837'%20viewBox='0%200%2084.837%2084.837'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M29.2935%2033.6675L43.5472%2044.36C44.4303%2045.0223%2045.5311%2045.3263%2046.6288%2045.2111C47.7266%2045.0959%2048.7403%2044.5699%2049.4666%2043.7387L77.4185%2011.7925'%20stroke='url(%23paint0_linear_0_74)'%20stroke-width='6.08696'%20stroke-linecap='round'/%3e%3cpath%20id='Vector_2'%20d='M81.7935%2042.4178C81.7936%2050.6451%2079.2167%2058.6658%2074.4245%2065.3533C69.6323%2072.0409%2062.8657%2077.0594%2055.075%2079.7039C47.2843%2082.3485%2038.8609%2082.4862%2030.9879%2080.0978C23.1149%2077.7094%2016.1878%2072.9149%2011.1796%2066.3876C6.17126%2059.8603%203.33339%2051.9282%203.06452%2043.7053C2.79565%2035.4824%205.10927%2027.3818%209.68046%2020.5413C14.2516%2013.7008%2020.8507%208.46394%2028.5509%205.56634C36.251%202.66875%2044.6654%202.25594%2052.6122%204.38589'%20stroke='url(%23paint1_linear_0_74)'%20stroke-width='6.08696'%20stroke-linecap='round'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_74'%20x1='27.7771'%20y1='28.5159'%20x2='111.866'%20y2='17.1154'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_0_74'%20x1='0.562175'%20y1='42.4235'%20x2='139.458'%20y2='29.3377'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",{colors:o,font:nt,media:f,radius:_}=A,at=n.div`
192
+ `;function et(s,d){switch(s==null?void 0:s.step){case"cancelling":return d?a("migrate.phaseCancelConfirm"):a("migrate.phaseCancel");case"confirming-cancel":return d?a("migrate.phaseConfirmingCancel"):a("migrate.phaseConfirmingCancelManaged");case"authorising":return d?a("migrate.phaseAuthoriseConfirm"):a("migrate.phaseAuthorise");case"signing":return d?a("migrate.phaseSignConfirm"):a("migrate.phaseSign");case"publishing":return a("migrate.phasePublishing");case"indexing":return a("migrate.phaseIndexing",{attempt:s.attempt,of:s.of});default:return d?a("migrate.statusConfirm"):a("migrate.statusAdding")}}function tt({queue:s,session:d,onClose:h,onDone:I}){const B=pe(),y=xe(d.providerType),[D,E]=p.useState(()=>s.map(()=>null)),[x,F]=p.useState(null),[l,b]=p.useState(()=>s.map(()=>"pending")),[v,w]=p.useState("running"),T=p.useRef(!1),j=p.useRef(!1);p.useEffect(()=>(j.current=!1,T.current||(T.current=!0,y&&Ce(s.map(i=>i.item),d.address).then(i=>{i&&F({approvals:i.approvals,total:i.total})}).catch(()=>{}),(async()=>{for(let i=0;i<s.length;i++){if(j.current)return;b(r=>r.map((c,g)=>g===i?"active":c));try{await Ie(s[i].item,s[i].priceCredits,d,{onPhase:r=>E(c=>c.map((g,z)=>z===i?r:g))}),me("Shop Migrated Listing",{item_id:s[i].item.itemId??s[i].item.oldTradeId??null,contract_address:s[i].item.contractAddress,new_price_credits:s[i].priceCredits,new_price_usd:K(s[i].priceCredits)}),b(r=>r.map((c,g)=>g===i?"done":c))}catch(r){if(r instanceof Te)U(r,{flow:"import_listing",step:"relist",itemId:s[i].item.itemId??s[i].item.oldTradeId}),b(c=>c.map((g,z)=>z===i?"unlisted":g));else{const c=r,g=c.code===4001||/reject|denied|cancel/i.test(c.message??"");g||U(r,{flow:"import_listing",itemId:s[i].item.itemId??s[i].item.oldTradeId}),b(z=>z.map((le,ce)=>ce===i?g?"skipped":"failed":le))}}}w("finished")})()),()=>{j.current=!0}),[]);const k=l.filter(t=>t==="done").length,M=l.findIndex(t=>t==="active"),q=Math.round(l.filter(t=>t!=="pending"&&t!=="active").length/s.length*100),C=l.filter(t=>t==="skipped").length,S=l.filter(t=>t==="failed").length,m=l.filter(t=>t==="unlisted").length,$=S+m;function L(){I({listed:k,failed:$,cancelled:C}),h()}const P=p.useRef(!1);return p.useEffect(()=>{v!=="finished"||P.current||(P.current=!0,!($>0)&&L())},[v,$]),v==="finished"?$===0?null:e.jsx(J,{role:"presentation",children:e.jsxs(de,{"data-failure":!0,role:"dialog","aria-modal":"true","data-testid":m>0?"migrate-unlisted":"migrate-failed",children:[e.jsx(Ye,{"aria-hidden":!0,children:e.jsx(Re,{size:72})}),e.jsx(X,{children:m>0?a("migrate.unlistedTitle"):a("migrate.failedTitle")}),e.jsxs("p",{className:"muted",style:{margin:0},children:[m>0?a("migrate.unlistedSummary",{count:m}):"",S>0?(m>0?" ":"")+a("migrate.failedSummary",{count:S}):"",k>0?" "+a("migrate.listedSummary",{count:k,currency:N.name}):"",C>0?" "+a("migrate.skippedSummary",{count:C}):""]}),e.jsxs(Me,{"data-actions":!0,children:[e.jsx(Q,{variant:"ghost",onClick:L,children:a("getCredits.done")}),m>0?e.jsx(Q,{variant:"purple",onClick:()=>{I({listed:k,failed:$,cancelled:C}),h(),B(re)},children:a("migrate.goToMyAssets")}):null]})]})}):e.jsx(J,{role:"presentation",children:e.jsxs(Be,{"data-testid":"modal",role:"dialog","aria-modal":"true","aria-live":"polite",children:[e.jsx(X,{children:a("migrate.listingTitle")}),e.jsxs("p",{className:"muted small",style:{margin:"0 0 4px"},children:[y?a("migrate.subConfirm"):a("migrate.subManaged")," ",M>=0?a("migrate.progressCount",{current:M+1,total:s.length}):""]}),e.jsx(De,{children:e.jsx(qe,{style:{width:`${q}%`}})}),e.jsx(We,{children:s.map((t,i)=>e.jsxs(Ne,{"data-status":l[i],children:[e.jsx(Oe,{children:t.item.thumbnail?e.jsx("img",{src:t.item.thumbnail,alt:""}):null}),e.jsx(Ke,{title:t.item.name,children:t.item.name||a("migrate.itemFallback")}),e.jsxs(Ue,{children:[e.jsx(O,{className:"ccy-mark"})," ",e.jsx(oe,{credits:t.priceCredits})]}),e.jsx(Ge,{"data-testid":l[i]==="active"?"migrate-active-status":void 0,children:l[i]==="active"?e.jsxs(e.Fragment,{children:[e.jsx(Je,{className:"spinner","aria-hidden":!0})," ",et(D[i],y)]}):l[i]==="done"?e.jsx(Xe,{children:e.jsx(Ae,{})}):l[i]==="skipped"?e.jsx(Ve,{children:a("migrate.statusSkipped")}):l[i]==="failed"?e.jsx(Z,{children:a("migrate.statusFailed")}):l[i]==="unlisted"?e.jsx(Z,{title:a("migrate.unlistedTooltip"),children:a("migrate.statusUnlisted")}):e.jsx(He,{children:a("migrate.statusWaiting")})})]},t.item.oldTradeId))}),e.jsx(Ze,{className:"muted small",children:y?x?a(x.approvals>0?"migrate.hintCountApproval":"migrate.hintCount",{total:x.total}):a("migrate.hintConfirm"):a("migrate.hintManaged")})]})})}const it="data:image/svg+xml,%3csvg%20preserveAspectRatio='none'%20overflow='visible'%20style='display:%20block;'%20width='84.837'%20height='84.837'%20viewBox='0%200%2084.837%2084.837'%20fill='none'%20xmlns='http://www.w3.org/2000/svg'%3e%3cg%20id='Group'%3e%3cpath%20id='Vector'%20d='M29.2935%2033.6675L43.5472%2044.36C44.4303%2045.0223%2045.5311%2045.3263%2046.6288%2045.2111C47.7266%2045.0959%2048.7403%2044.5699%2049.4666%2043.7387L77.4185%2011.7925'%20stroke='url(%23paint0_linear_0_74)'%20stroke-width='6.08696'%20stroke-linecap='round'/%3e%3cpath%20id='Vector_2'%20d='M81.7935%2042.4178C81.7936%2050.6451%2079.2167%2058.6658%2074.4245%2065.3533C69.6323%2072.0409%2062.8657%2077.0594%2055.075%2079.7039C47.2843%2082.3485%2038.8609%2082.4862%2030.9879%2080.0978C23.1149%2077.7094%2016.1878%2072.9149%2011.1796%2066.3876C6.17126%2059.8603%203.33339%2051.9282%203.06452%2043.7053C2.79565%2035.4824%205.10927%2027.3818%209.68046%2020.5413C14.2516%2013.7008%2020.8507%208.46394%2028.5509%205.56634C36.251%202.66875%2044.6654%202.25594%2052.6122%204.38589'%20stroke='url(%23paint1_linear_0_74)'%20stroke-width='6.08696'%20stroke-linecap='round'/%3e%3c/g%3e%3cdefs%3e%3clinearGradient%20id='paint0_linear_0_74'%20x1='27.7771'%20y1='28.5159'%20x2='111.866'%20y2='17.1154'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3clinearGradient%20id='paint1_linear_0_74'%20x1='0.562175'%20y1='42.4235'%20x2='139.458'%20y2='29.3377'%20gradientUnits='userSpaceOnUse'%3e%3cstop%20stop-color='%23FF2D55'/%3e%3cstop%20offset='1'%20stop-color='%23FFBC5B'/%3e%3c/linearGradient%3e%3c/defs%3e%3c/svg%3e",{colors:o,font:nt,media:f,radius:_}=A,at=n.div`
193
193
  display: flex;
194
194
  flex-direction: column;
195
195
  align-items: center;
@@ -536,14 +536,14 @@ import{j as e,b as pe,r as p,L as he}from"./react-C_GXHmaF.js";import{t as A,a a
536
536
  font-weight: 300;
537
537
  font-size: 10px;
538
538
  color: ${o.muted};
539
- `,Ft=n.div`
539
+ `,Et=n.div`
540
540
  height: 101px;
541
541
  border: 1px solid transparent;
542
542
  border-radius: ${_.card};
543
543
  background: linear-gradient(100deg, #ededed 30%, #f7f7f7 50%, #ededed 70%);
544
544
  background-size: 200% 100%;
545
545
  animation: shimmer 1.3s infinite linear;
546
- `,Et=n.div`
546
+ `,Ft=n.div`
547
547
  position: fixed;
548
548
  left: 0;
549
549
  right: 0;
@@ -587,16 +587,16 @@ import{j as e,b as pe,r as p,L as he}from"./react-C_GXHmaF.js";import{t as A,a a
587
587
  width: 17px;
588
588
  height: 17px;
589
589
  }
590
- `,qt=n.div`
590
+ `,Bt=n.div`
591
591
  font-size: 13px;
592
592
  color: ${o.muted};
593
- `,Bt=n.span`
593
+ `,Dt=n.span`
594
594
  flex: 1 1 auto;
595
595
 
596
596
  ${f.maxWidth("mobile")} {
597
597
  display: none;
598
598
  }
599
- `,Dt=n(Q)`
599
+ `,qt=n(Q)`
600
600
  flex: none;
601
601
  min-width: 260px;
602
602
  padding: 13px 24px;
@@ -622,5 +622,5 @@ import{j as e,b as pe,r as p,L as he}from"./react-C_GXHmaF.js";import{t as A,a a
622
622
  font-size: 18px;
623
623
  }
624
624
  }
625
- `,W=[5e3,15e3,35e3],se=[{question:"faq.sellers.whatAreQ",answer:"faq.sellers.whatAreA"},{question:"faq.sellers.whyCreditsQ",answer:"faq.sellers.whyCreditsA"},{question:"faq.sellers.receiveCreditsQ",answer:"faq.sellers.receiveCreditsA"},{question:"faq.sellers.changePriceQ",answer:"faq.sellers.changePriceA"},{question:"faq.sellers.mustSwitchQ",answer:"faq.sellers.mustSwitchA"},{question:"faq.sellers.suggestedPriceQ",answer:"faq.sellers.suggestedPriceA"}],Wt="https://docs.decentraland.org";function Nt(s){try{return $e(BigInt(s))}catch{return null}}function ni(){const{session:s}=fe(),d=we(),{items:h,isLoading:I}=Se(),[q,y]=p.useState({}),[B,F]=p.useState(new Set),[x,E]=p.useState(null),l=p.useRef({timer:null,alive:!0,migrated:new Set});p.useEffect(()=>{const t=l.current;return t.alive=!0,()=>{t.alive=!1,t.timer&&clearTimeout(t.timer)}},[]),p.useEffect(()=>{h.length&&y(t=>{const i={...t};for(const r of h)i[r.oldTradeId]==null&&(i[r.oldTradeId]=r.suggestedCredits);return i})},[h]);const b=t=>!B.has(t),v=t=>q[t.oldTradeId]??t.suggestedCredits,w=h.filter(t=>b(t.oldTradeId)),T=w.reduce((t,i)=>t+v(i),0),j=h.length>0&&w.length===h.length,k=w.length>0&&!j;function M(t,i){const r=i.replace(/[^\d]/g,"");y(c=>({...c,[t]:r===""?0:parseInt(r,10)}))}function D(t){F(i=>{const r=new Set(i);return r.has(t)?r.delete(t):r.add(t),r})}function C(){F(j?new Set(h.map(t=>t.oldTradeId)):new Set)}function S(t){return t.map(i=>({item:i,priceCredits:Math.max(1,v(i))}))}function m(t){const i=(r=[])=>r.filter(c=>!t.has(c.oldTradeId));d.setQueriesData({queryKey:["importable"]},r=>r&&{creations:i(r.creations),owned:i(r.owned)})}function $(t){return d.getQueriesData({queryKey:["importable"]}).flatMap(([,i])=>[...(i==null?void 0:i.creations)??[],...(i==null?void 0:i.owned)??[]]).some(i=>t.has(i.oldTradeId))}function L(t){const i=l.current;i.timer&&clearTimeout(i.timer),i.timer=setTimeout(()=>{d.refetchQueries({queryKey:["importable"]}).then(()=>{if(i.alive){if(!$(i.migrated)||t+1>=W.length){i.migrated.clear();return}m(i.migrated),L(t+1)}})},W[t]-(W[t-1]??0))}function P(t){if(t.failed===0&&t.cancelled===0&&t.listed>0&&(x!=null&&x.length)){const{migrated:i}=l.current;for(const r of x)i.add(r.item.oldTradeId);m(i),L(0)}else d.invalidateQueries({queryKey:["importable"]});d.invalidateQueries({queryKey:["shop-items"]}),d.invalidateQueries({queryKey:["catalog-items"]}),d.invalidateQueries({queryKey:["overview-listings"]}),d.invalidateQueries({queryKey:["upsell-listings"]}),d.invalidateQueries({queryKey:["my-assets"]}),d.invalidateQueries({queryKey:["collection-sale-state"]}),t.failed>0?Y.error(a(t.listed>0?"importListings.toastPartial":"importListings.toastFailed")):t.listed>0&&Y.success(a("importListings.toastUpdated"))}return!I&&h.length===0?e.jsxs(ee,{children:[e.jsx(at,{"data-testid":"import-empty",children:e.jsxs(st,{children:[e.jsx(rt,{"aria-hidden":!0,children:e.jsx("img",{src:it,alt:"",width:85,height:85})}),e.jsxs(ot,{children:[e.jsx(dt,{children:a("importListings.emptyTitle")}),e.jsx(lt,{children:a("importListings.emptyBody")})]}),e.jsx(ct,{children:e.jsx(pt,{as:he,to:re,variant:"purple",children:a("importListings.goToMyAssets")})})]})}),e.jsx(ae,{children:e.jsx(H,{title:"faq.title",entries:se,tone:"on-dark"})})]}):e.jsxs(ee,{children:[e.jsxs(ht,{children:[e.jsxs(gt,{children:[e.jsx(xt,{children:a("importListings.title")}),e.jsxs("div",{children:[e.jsx(mt,{children:a("importListings.lede",{currency:be(N.name)})}),e.jsxs(ut,{href:Wt,target:"_blank",rel:"noopener noreferrer",children:[a("importListings.learnMore"),e.jsx(G,{name:"external-link",className:"ico","aria-hidden":!0})]})]})]}),e.jsx(ze,{tone:"on-dark"})]}),e.jsx(te,{}),e.jsxs(ft,{children:[e.jsxs(wt,{"data-testid":"import-progress",children:[e.jsx(bt,{"data-testid":"import-count",children:h.length}),a("importListings.updatePricing")]}),e.jsxs(yt,{children:[e.jsxs(vt,{children:[e.jsx(ie,{"data-tone":"on-dark",children:e.jsx(V,{type:"checkbox",checked:j,ref:t=>{t&&(t.indeterminate=k)},"data-indeterminate":k,onChange:C,"data-testid":"import-select-all","aria-label":a("importListings.selectAllAria")})}),a("importListings.selectAll")]}),e.jsx(jt,{children:I?Array.from({length:4}).map((t,i)=>e.jsx(Ft,{},i)):h.map(t=>{const i=v(t),r=ye({...t,wearableCategory:t.wearableCategory??void 0}),c=Nt(t.manaWei);return e.jsxs(kt,{"data-off":b(t.oldTradeId)?void 0:!0,children:[e.jsxs($t,{children:[e.jsx(ie,{children:e.jsx(V,{type:"checkbox",checked:b(t.oldTradeId),onChange:()=>D(t.oldTradeId),"data-testid":"import-row-check","aria-label":a("importListings.includeItem",{name:t.name})})}),e.jsx(Ct,{children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:""}):null})]}),e.jsxs(It,{children:[e.jsx(Tt,{title:t.name,children:t.name||a("importListings.itemFallback")}),e.jsxs(St,{children:[e.jsx(ne,{"data-variant":"rarity",style:{background:ke(t.rarity),color:je(t.rarity)},children:ve(t.rarity)}),r?e.jsx(ne,{"data-variant":"icon",children:e.jsx(G,{name:r,"aria-hidden":!0})}):null]})]}),e.jsxs(Lt,{children:[e.jsxs(zt,{children:[e.jsx(O,{}),e.jsx(At,{"data-testid":"imp-price-input",inputMode:"numeric",value:i.toLocaleString(),onChange:g=>M(t.oldTradeId,g.target.value),"aria-label":a("importListings.priceAria",{currency:N.name,name:t.name})})]}),e.jsxs(Rt,{children:[e.jsxs("span",{children:["$",K(i).toFixed(2)]}),c?e.jsx(_t,{children:a("importListings.wasMana",{amount:c})}):null]})]})]},t.oldTradeId)})})]})]}),e.jsx(te,{}),e.jsx(ae,{children:e.jsx(H,{title:"faq.title",entries:se,tone:"on-dark"})}),e.jsx(Et,{children:e.jsxs(Mt,{children:[e.jsxs(Pt,{children:[e.jsxs(Qt,{children:[e.jsx(O,{})," ",e.jsx(oe,{credits:T})]}),e.jsx(qt,{children:a("importListings.selectedSummary",{count:w.length,usd:K(T).toFixed(2)})})]}),e.jsx(Bt,{}),e.jsx(Dt,{variant:"red","data-testid":"import-list-all",disabled:w.length===0,onClick:()=>E(S(w)),children:a("importListings.listAll",{count:w.length})})]})}),x&&s?e.jsx(tt,{queue:x,session:s,onClose:()=>E(null),onDone:P}):null]})}export{ni as ImportListings};
626
- //# sourceMappingURL=index-BQwWx3Ru.js.map
625
+ `,W=[5e3,15e3,35e3],se=[{question:"faq.sellers.whatAreQ",answer:"faq.sellers.whatAreA"},{question:"faq.sellers.whyCreditsQ",answer:"faq.sellers.whyCreditsA"},{question:"faq.sellers.receiveCreditsQ",answer:"faq.sellers.receiveCreditsA"},{question:"faq.sellers.changePriceQ",answer:"faq.sellers.changePriceA"},{question:"faq.sellers.mustSwitchQ",answer:"faq.sellers.mustSwitchA"},{question:"faq.sellers.suggestedPriceQ",answer:"faq.sellers.suggestedPriceA"}],Wt="https://docs.decentraland.org";function Nt(s){try{return $e(BigInt(s))}catch{return null}}function ni(){const{session:s}=fe(),d=we(),{items:h,isLoading:I}=Se(),[B,y]=p.useState({}),[D,E]=p.useState(new Set),[x,F]=p.useState(null),l=p.useRef({timer:null,alive:!0,migrated:new Set});p.useEffect(()=>{const t=l.current;return t.alive=!0,()=>{t.alive=!1,t.timer&&clearTimeout(t.timer)}},[]),p.useEffect(()=>{h.length&&y(t=>{const i={...t};for(const r of h)i[r.oldTradeId]==null&&(i[r.oldTradeId]=r.suggestedCredits);return i})},[h]);const b=t=>!D.has(t),v=t=>B[t.oldTradeId]??t.suggestedCredits,w=h.filter(t=>b(t.oldTradeId)),T=w.reduce((t,i)=>t+v(i),0),j=h.length>0&&w.length===h.length,k=w.length>0&&!j;function M(t,i){const r=i.replace(/[^\d]/g,"");y(c=>({...c,[t]:r===""?0:parseInt(r,10)}))}function q(t){E(i=>{const r=new Set(i);return r.has(t)?r.delete(t):r.add(t),r})}function C(){E(j?new Set(h.map(t=>t.oldTradeId)):new Set)}function S(t){return t.map(i=>({item:i,priceCredits:Math.max(1,v(i))}))}function m(t){const i=(r=[])=>r.filter(c=>!t.has(c.oldTradeId));d.setQueriesData({queryKey:["importable"]},r=>r&&{creations:i(r.creations),owned:i(r.owned)})}function $(t){return d.getQueriesData({queryKey:["importable"]}).flatMap(([,i])=>[...(i==null?void 0:i.creations)??[],...(i==null?void 0:i.owned)??[]]).some(i=>t.has(i.oldTradeId))}function L(t){const i=l.current;i.timer&&clearTimeout(i.timer),i.timer=setTimeout(()=>{d.refetchQueries({queryKey:["importable"]}).then(()=>{if(i.alive){if(!$(i.migrated)||t+1>=W.length){i.migrated.clear();return}m(i.migrated),L(t+1)}})},W[t]-(W[t-1]??0))}function P(t){if(t.failed===0&&t.cancelled===0&&t.listed>0&&(x!=null&&x.length)){const{migrated:i}=l.current;for(const r of x)i.add(r.item.oldTradeId);m(i),L(0)}else d.invalidateQueries({queryKey:["importable"]});d.invalidateQueries({queryKey:["shop-items"]}),d.invalidateQueries({queryKey:["catalog-items"]}),d.invalidateQueries({queryKey:["overview-listings"]}),d.invalidateQueries({queryKey:["upsell-listings"]}),d.invalidateQueries({queryKey:["my-assets"]}),d.invalidateQueries({queryKey:["collection-sale-state"]}),t.failed>0?H.error(a(t.listed>0?"importListings.toastPartial":"importListings.toastFailed")):t.listed>0&&H.success(a("importListings.toastUpdated"))}return!I&&h.length===0?e.jsxs(ee,{children:[e.jsx(at,{"data-testid":"import-empty",children:e.jsxs(st,{children:[e.jsx(rt,{"aria-hidden":!0,children:e.jsx("img",{src:it,alt:"",width:85,height:85})}),e.jsxs(ot,{children:[e.jsx(dt,{children:a("importListings.emptyTitle")}),e.jsx(lt,{children:a("importListings.emptyBody")})]}),e.jsx(ct,{children:e.jsx(pt,{as:he,to:re,variant:"purple",children:a("importListings.goToMyAssets")})})]})}),e.jsx(ae,{children:e.jsx(V,{title:"faq.title",entries:se,tone:"on-dark"})})]}):e.jsxs(ee,{children:[e.jsxs(ht,{children:[e.jsxs(gt,{children:[e.jsx(xt,{children:a("importListings.title")}),e.jsxs("div",{children:[e.jsx(mt,{children:a("importListings.lede",{currency:be(N.name)})}),e.jsxs(ut,{href:Wt,target:"_blank",rel:"noopener noreferrer",children:[a("importListings.learnMore"),e.jsx(G,{name:"external-link",className:"ico","aria-hidden":!0})]})]})]}),e.jsx(ze,{tone:"on-dark"})]}),e.jsx(te,{}),e.jsxs(ft,{children:[e.jsxs(wt,{"data-testid":"import-progress",children:[e.jsx(bt,{"data-testid":"import-count",children:h.length}),a("importListings.updatePricing")]}),e.jsxs(yt,{children:[e.jsxs(vt,{children:[e.jsx(ie,{"data-tone":"on-dark",children:e.jsx(Y,{type:"checkbox",checked:j,ref:t=>{t&&(t.indeterminate=k)},"data-indeterminate":k,onChange:C,"data-testid":"import-select-all","aria-label":a("importListings.selectAllAria")})}),a("importListings.selectAll")]}),e.jsx(jt,{children:I?Array.from({length:4}).map((t,i)=>e.jsx(Et,{},i)):h.map(t=>{const i=v(t),r=ye({...t,wearableCategory:t.wearableCategory??void 0}),c=Nt(t.manaWei);return e.jsxs(kt,{"data-off":b(t.oldTradeId)?void 0:!0,children:[e.jsxs($t,{children:[e.jsx(ie,{children:e.jsx(Y,{type:"checkbox",checked:b(t.oldTradeId),onChange:()=>q(t.oldTradeId),"data-testid":"import-row-check","aria-label":a("importListings.includeItem",{name:t.name})})}),e.jsx(Ct,{children:t.thumbnail?e.jsx("img",{src:t.thumbnail,alt:""}):null})]}),e.jsxs(It,{children:[e.jsx(Tt,{title:t.name,children:t.name||a("importListings.itemFallback")}),e.jsxs(St,{children:[e.jsx(ne,{"data-variant":"rarity",style:{background:ke(t.rarity),color:je(t.rarity)},children:ve(t.rarity)}),r?e.jsx(ne,{"data-variant":"icon",children:e.jsx(G,{name:r,"aria-hidden":!0})}):null]})]}),e.jsxs(Lt,{children:[e.jsxs(zt,{children:[e.jsx(O,{}),e.jsx(At,{"data-testid":"imp-price-input",inputMode:"numeric",value:i.toLocaleString(),onChange:g=>M(t.oldTradeId,g.target.value),"aria-label":a("importListings.priceAria",{currency:N.name,name:t.name})})]}),e.jsxs(Rt,{children:[e.jsxs("span",{children:["$",K(i).toFixed(2)]}),c?e.jsx(_t,{children:a("importListings.wasMana",{amount:c})}):null]})]})]},t.oldTradeId)})})]})]}),e.jsx(te,{}),e.jsx(ae,{children:e.jsx(V,{title:"faq.title",entries:se,tone:"on-dark"})}),e.jsx(Ft,{children:e.jsxs(Mt,{children:[e.jsxs(Pt,{children:[e.jsxs(Qt,{children:[e.jsx(O,{})," ",e.jsx(oe,{credits:T})]}),e.jsx(Bt,{children:a("importListings.selectedSummary",{count:w.length,usd:K(T).toFixed(2)})})]}),e.jsx(Dt,{}),e.jsx(qt,{variant:"red","data-testid":"import-list-all",disabled:w.length===0,onClick:()=>F(S(w)),children:a("importListings.listAll",{count:w.length})})]})}),x&&s?e.jsx(tt,{queue:x,session:s,onClose:()=>F(null),onDone:P}):null]})}export{ni as ImportListings};
626
+ //# sourceMappingURL=index-DVuPr51_.js.map
@@ -1 +1 @@
1
- .ico{display:inline-block;width:20px;height:20px;flex:none;background-color:currentColor;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}.ccy-mark{width:1em;height:1em;vertical-align:-.125em}.ccy-mark,.ccy{color:var(--text)}:root{--nav-h: 92px;--bg: #ffffff;--text: #161518;--text-2: #242129;--muted: #716b7c;--muted-1: #5e5b67;--muted-2: #a09ba8;--line: #e6e4ea;--line-strong: #a09ba8;--media: #ecebed;--panel: #f5f5f5;--chip: #ecebed;--gray-0: #43404a;--accent: #691fa9;--brand-violet: #a524b3;--rarity: #a14bf3;--rarity-bg: rgba(161, 75, 243, .3);--black-btn: #242129;--soft-white: #fcfcfc;--dcl-red: #ff2d55;--ok: #1ea672;--err: #d33;--amethyst: linear-gradient(180deg, #c640cd 0%, #691fa9 100%);--cerise: linear-gradient(135deg, #ff2d55 0%, #c640cd 100%);--buy-btn: linear-gradient(180.93deg, #ff7439 2.82%, #ff2d55 97.47%);--radius-card: 12px;--radius-chip: 4px;--radius-btn: 8px;--radius-pill: 50px;--radius-banner: 24px;--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--z-overlay: 10000;--z-tooltip: 10010;--skeleton-lo: rgba(255, 255, 255, .07);--skeleton-hi: rgba(255, 255, 255, .16)}@media(max-width:991px){:root{--nav-h: 64px}}*{box-sizing:border-box}html{overflow-x:clip}body{margin:0;padding-top:var(--nav-h);background:radial-gradient(61.64% 109.58% at 50% 54.49%,#952dc6,#7c27a8,#642089,#4b1a6b,#32134c) fixed;color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased}@keyframes symbol-drift{0%{background-position:0 0}to{background-position:-610px -610px}}body:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;z-index:-1;pointer-events:none;background:url(https://cdn.decentraland.org/@dcl/shop/1.12.2-34943105195.commit-53ac845/_assets/DCL_LogoPattern-BryBPc3d.png) 0 0 repeat;background-size:610px 610px;opacity:.03;animation:symbol-drift 150s linear infinite;-webkit-mask-image:radial-gradient(75% 70% at 50% 45%,transparent 25%,#000 85%);mask-image:radial-gradient(75% 70% at 50% 45%,transparent 25%,#000 85%)}@media(prefers-reduced-motion:reduce){body:before{animation:none}}#root{display:flex;flex-direction:column;min-height:calc(100vh - var(--nav-h))}a{color:inherit;text-decoration:none}button{font-family:inherit;cursor:pointer}h1,h2{margin:0}.muted{color:var(--muted)}.small{font-size:13px}.error{color:var(--err)}.error-notice{display:flex;align-items:center;gap:8px;margin:0;padding:10px 12px;border:1px solid rgba(221,51,51,.25);border-radius:var(--radius-btn);background:#dd333314;color:var(--err);font-size:14px;line-height:1.4;text-align:left}.error-notice__ico{flex:none;width:18px;height:18px}.error-notice__msg{color:var(--text-2)}.link{background:none;border:0;color:var(--accent);cursor:pointer;padding:0;font:inherit;font-weight:600}.page{padding:28px 54px 80px;max-width:1760px;margin:0 auto;width:100%;flex:1 0 auto;min-height:calc(100vh - var(--nav-h))}.page[data-route="/credits"]{min-height:0}.page[data-route="/overview"]{padding-top:0}.page[data-route="/cart"],.page[data-route="/success"]{display:flex;flex-direction:column}@media(max-width:768px){.page{padding:16px 16px 56px}.page[data-route="/credits"]{min-height:0}}.placeholder{color:var(--muted);font-size:18px;padding:40px 0}.page-loading{display:grid;place-items:center;min-height:60vh}@keyframes shimmer{to{background-position:-200% 0}}.spinner{width:30px;height:30px;margin-top:14px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--accent);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation-duration:2s}}.skeleton{border-radius:6px;background:linear-gradient(100deg,var(--skeleton-lo) 30%,var(--skeleton-hi) 50%,var(--skeleton-lo) 70%);background-size:200% 100%;animation:shimmer 1.4s infinite linear}@media(prefers-reduced-motion:reduce){.skeleton{animation:none}}@keyframes cart-pop-in{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
1
+ .ico{display:inline-block;width:20px;height:20px;flex:none;background-color:currentColor;-webkit-mask-image:var(--icon-url);mask-image:var(--icon-url);-webkit-mask-repeat:no-repeat;mask-repeat:no-repeat;-webkit-mask-position:center;mask-position:center;-webkit-mask-size:contain;mask-size:contain}.ccy-mark{width:1em;height:1em;vertical-align:-.125em}.ccy-mark,.ccy{color:var(--text)}:root{--nav-h: 92px;--bg: #ffffff;--text: #161518;--text-2: #242129;--muted: #716b7c;--muted-1: #5e5b67;--muted-2: #a09ba8;--line: #e6e4ea;--line-strong: #a09ba8;--media: #ecebed;--panel: #f5f5f5;--chip: #ecebed;--gray-0: #43404a;--accent: #691fa9;--brand-violet: #a524b3;--rarity: #a14bf3;--rarity-bg: rgba(161, 75, 243, .3);--black-btn: #242129;--soft-white: #fcfcfc;--dcl-red: #ff2d55;--ok: #1ea672;--err: #d33;--amethyst: linear-gradient(180deg, #c640cd 0%, #691fa9 100%);--cerise: linear-gradient(135deg, #ff2d55 0%, #c640cd 100%);--buy-btn: linear-gradient(180.93deg, #ff7439 2.82%, #ff2d55 97.47%);--radius-card: 12px;--radius-chip: 4px;--radius-btn: 8px;--radius-pill: 50px;--radius-banner: 24px;--sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;--z-overlay: 10000;--z-tooltip: 10010;--skeleton-lo: rgba(255, 255, 255, .07);--skeleton-hi: rgba(255, 255, 255, .16)}@media(max-width:991px){:root{--nav-h: 64px}}*{box-sizing:border-box}html{overflow-x:clip}body{margin:0;padding-top:var(--nav-h);background:radial-gradient(61.64% 109.58% at 50% 54.49%,#952dc6,#7c27a8,#642089,#4b1a6b,#32134c) fixed;color:var(--text);font-family:var(--sans);-webkit-font-smoothing:antialiased}@keyframes symbol-drift{0%{background-position:0 0}to{background-position:-610px -610px}}body:before{content:"";position:fixed;top:0;right:0;bottom:0;left:0;z-index:-1;pointer-events:none;background:url(https://cdn.decentraland.org/@dcl/shop/1.12.2-34948836375.commit-6cf32c8/_assets/DCL_LogoPattern-BryBPc3d.png) 0 0 repeat;background-size:610px 610px;opacity:.03;animation:symbol-drift 150s linear infinite;-webkit-mask-image:radial-gradient(75% 70% at 50% 45%,transparent 25%,#000 85%);mask-image:radial-gradient(75% 70% at 50% 45%,transparent 25%,#000 85%)}@media(prefers-reduced-motion:reduce){body:before{animation:none}}#root{display:flex;flex-direction:column;min-height:calc(100vh - var(--nav-h))}a{color:inherit;text-decoration:none}button{font-family:inherit;cursor:pointer}h1,h2{margin:0}.muted{color:var(--muted)}.small{font-size:13px}.error{color:var(--err)}.error-notice{display:flex;align-items:center;gap:8px;margin:0;padding:10px 12px;border:1px solid rgba(221,51,51,.25);border-radius:var(--radius-btn);background:#dd333314;color:var(--err);font-size:14px;line-height:1.4;text-align:left}.error-notice__ico{flex:none;width:18px;height:18px}.error-notice__msg{color:var(--text-2)}.link{background:none;border:0;color:var(--accent);cursor:pointer;padding:0;font:inherit;font-weight:600}.page{padding:28px 54px 80px;max-width:1760px;margin:0 auto;width:100%;flex:1 0 auto;min-height:calc(100vh - var(--nav-h))}.page[data-route="/credits"]{min-height:0}.page[data-route="/overview"]{padding-top:0}.page[data-route="/cart"],.page[data-route="/success"]{display:flex;flex-direction:column}@media(max-width:768px){.page{padding:16px 16px 56px}.page[data-route="/credits"]{min-height:0}}.placeholder{color:var(--muted);font-size:18px;padding:40px 0}.page-loading{display:grid;place-items:center;min-height:60vh}@keyframes shimmer{to{background-position:-200% 0}}.spinner{width:30px;height:30px;margin-top:14px;border-radius:50%;border:3px solid var(--line);border-top-color:var(--accent);animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.spinner{animation-duration:2s}}.skeleton{border-radius:6px;background:linear-gradient(100deg,var(--skeleton-lo) 30%,var(--skeleton-hi) 50%,var(--skeleton-lo) 70%);background-size:200% 100%;animation:shimmer 1.4s infinite linear}@media(prefers-reduced-motion:reduce){.skeleton{animation:none}}@keyframes cart-pop-in{0%{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
@@ -1,4 +1,4 @@
1
- import{a as h,i as p,b as a}from"./lit-element-wjYUA6aF.js";import{d as w,r as b,e as g}from"./index-BVRRpBa3.js";import{c as m}from"./index-CvBn_Xli.js";import"./index-lVTgIb_7.js";import{O as c,E as x,l as v,C as _,W as C,R as $}from"./W3MFrameProviderSingleton-R5ShLfit.js";import{r as R}from"./class-map-C0Rma2l2.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]="fe216091-6d8f-46d3-a229-06545577e7dc",n._sentryDebugIdIdentifier="sentry-dbid-fe216091-6d8f-46d3-a229-06545577e7dc")}catch{}})();const T=h``;var O=function(n,e,r,o){var i=arguments.length,t=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,o);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(t=(i<3?s(t):i>3?s(e,r,t):s(e,r))||t);return i>3&&t&&Object.defineProperty(e,r,t),t};let f=class extends p{render(){const{termsConditionsUrl:e,privacyPolicyUrl:r}=c.state;return!e&&!r?null:a`
1
+ import{a as b,i as p,b as a}from"./lit-element-wjYUA6aF.js";import{d as w,r as h,e as g}from"./index-CDtFhkB_.js";import{c as m}from"./index-DxeSXDhW.js";import"./index-tuk1tZ_u.js";import{O as c,E as x,l as v,C as _,W as C,R as $}from"./W3MFrameProviderSingleton-CmmiYZ9j.js";import{r as R}from"./class-map-uVWd2sCT.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]="03bb88ab-f110-454b-b53f-78cf6904c28b",n._sentryDebugIdIdentifier="sentry-dbid-03bb88ab-f110-454b-b53f-78cf6904c28b")}catch{}})();const T=b``;var O=function(n,e,r,o){var i=arguments.length,t=i<3?e:o===null?o=Object.getOwnPropertyDescriptor(e,r):o,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")t=Reflect.decorate(n,e,r,o);else for(var l=n.length-1;l>=0;l--)(s=n[l])&&(t=(i<3?s(t):i>3?s(e,r,t):s(e,r))||t);return i>3&&t&&Object.defineProperty(e,r,t),t};let f=class extends p{render(){const{termsConditionsUrl:e,privacyPolicyUrl:r}=c.state;return!e&&!r?null:a`
2
2
  <wui-flex
3
3
  .padding=${["4","3","3","3"]}
4
4
  flexDirection="column"
@@ -48,7 +48,7 @@ import{a as h,i as p,b as a}from"./lit-element-wjYUA6aF.js";import{d as w,r as b
48
48
  <wui-icon name="reown" size="inherit" class="reown-logo"></wui-icon>
49
49
  </wui-flex>
50
50
  </a>
51
- `}};d.styles=[b,g,W];d=U([m("wui-ux-by-reown")],d);const B=w`
51
+ `}};d.styles=[h,g,W];d=U([m("wui-ux-by-reown")],d);const B=w`
52
52
  :host wui-ux-by-reown {
53
53
  padding-top: 0;
54
54
  }
@@ -79,4 +79,4 @@ import{a as h,i as p,b as a}from"./lit-element-wjYUA6aF.js";import{d as w,r as b
79
79
  >`:null}privacyTemplate(){const{privacyPolicyUrl:e}=c.state;return e?a`<a href=${e} target="_blank" rel="noopener noreferrer"
80
80
  >Privacy Policy</a
81
81
  >`:null}reownBrandingTemplate(e=!1){var r;return(r=this.remoteFeatures)!=null&&r.reownBranding?e?a`<wui-ux-by-reown class="branding-only"></wui-ux-by-reown>`:a`<wui-ux-by-reown></wui-ux-by-reown>`:null}};u.styles=[B];y([R()],u.prototype,"remoteFeatures",void 0);u=y([m("w3m-legal-footer")],u);
82
- //# sourceMappingURL=index-DCcz022S.js.map
82
+ //# sourceMappingURL=index-DZScr1GS.js.map
@@ -1,2 +1,2 @@
1
- import"./react-C_GXHmaF.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new v.Error().stack;d&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[d]="baaaa475-91e9-4202-946c-540a970b1d88",v._sentryDebugIdIdentifier="sentry-dbid-baaaa475-91e9-4202-946c-540a970b1d88")}catch{}})();var w={exports:{}},x;function O(){return x||(x=1,(function(v){var d=Object.prototype.hasOwnProperty,f="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(f=!1));function m(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function g(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new m(n,r||s,l),o=f?f+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],c]:s._events[o].push(c):(s._events[o]=c,s._eventsCount++),s}function b(s,t){--s._eventsCount===0?s._events=new y:delete s._events[t]}function u(){this._events=new y,this._eventsCount=0}u.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)d.call(n,r)&&t.push(f?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},u.prototype.listeners=function(t){var n=f?f+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,c=r.length,o=new Array(c);l<c;l++)o[l]=r[l].fn;return o},u.prototype.listenerCount=function(t){var n=f?f+t:t,r=this._events[n];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,n,r,l,c,o){var a=f?f+t:t;if(!this._events[a])return!1;var e=this._events[a],p=arguments.length,h,i;if(e.fn){switch(e.once&&this.removeListener(t,e.fn,void 0,!0),p){case 1:return e.fn.call(e.context),!0;case 2:return e.fn.call(e.context,n),!0;case 3:return e.fn.call(e.context,n,r),!0;case 4:return e.fn.call(e.context,n,r,l),!0;case 5:return e.fn.call(e.context,n,r,l,c),!0;case 6:return e.fn.call(e.context,n,r,l,c,o),!0}for(i=1,h=new Array(p-1);i<p;i++)h[i-1]=arguments[i];e.fn.apply(e.context,h)}else{var E=e.length,_;for(i=0;i<E;i++)switch(e[i].once&&this.removeListener(t,e[i].fn,void 0,!0),p){case 1:e[i].fn.call(e[i].context);break;case 2:e[i].fn.call(e[i].context,n);break;case 3:e[i].fn.call(e[i].context,n,r);break;case 4:e[i].fn.call(e[i].context,n,r,l);break;default:if(!h)for(_=1,h=new Array(p-1);_<p;_++)h[_-1]=arguments[_];e[i].fn.apply(e[i].context,h)}}return!0},u.prototype.on=function(t,n,r){return g(this,t,n,r,!1)},u.prototype.once=function(t,n,r){return g(this,t,n,r,!0)},u.prototype.removeListener=function(t,n,r,l){var c=f?f+t:t;if(!this._events[c])return this;if(!n)return b(this,c),this;var o=this._events[c];if(o.fn)o.fn===n&&(!l||o.once)&&(!r||o.context===r)&&b(this,c);else{for(var a=0,e=[],p=o.length;a<p;a++)(o[a].fn!==n||l&&!o[a].once||r&&o[a].context!==r)&&e.push(o[a]);e.length?this._events[c]=e.length===1?e[0]:e:b(this,c)}return this},u.prototype.removeAllListeners=function(t){var n;return t?(n=f?f+t:t,this._events[n]&&b(this,n)):(this._events=new y,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=f,u.EventEmitter=u,v.exports=u})(w)),w.exports}export{O as r};
2
- //# sourceMappingURL=index-I89t12Wh.js.map
1
+ import"./react-BG8VKwrs.js";(function(){try{var v=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},d=new v.Error().stack;d&&(v._sentryDebugIds=v._sentryDebugIds||{},v._sentryDebugIds[d]="baaaa475-91e9-4202-946c-540a970b1d88",v._sentryDebugIdIdentifier="sentry-dbid-baaaa475-91e9-4202-946c-540a970b1d88")}catch{}})();var w={exports:{}},x;function O(){return x||(x=1,(function(v){var d=Object.prototype.hasOwnProperty,f="~";function y(){}Object.create&&(y.prototype=Object.create(null),new y().__proto__||(f=!1));function m(s,t,n){this.fn=s,this.context=t,this.once=n||!1}function g(s,t,n,r,l){if(typeof n!="function")throw new TypeError("The listener must be a function");var c=new m(n,r||s,l),o=f?f+t:t;return s._events[o]?s._events[o].fn?s._events[o]=[s._events[o],c]:s._events[o].push(c):(s._events[o]=c,s._eventsCount++),s}function b(s,t){--s._eventsCount===0?s._events=new y:delete s._events[t]}function u(){this._events=new y,this._eventsCount=0}u.prototype.eventNames=function(){var t=[],n,r;if(this._eventsCount===0)return t;for(r in n=this._events)d.call(n,r)&&t.push(f?r.slice(1):r);return Object.getOwnPropertySymbols?t.concat(Object.getOwnPropertySymbols(n)):t},u.prototype.listeners=function(t){var n=f?f+t:t,r=this._events[n];if(!r)return[];if(r.fn)return[r.fn];for(var l=0,c=r.length,o=new Array(c);l<c;l++)o[l]=r[l].fn;return o},u.prototype.listenerCount=function(t){var n=f?f+t:t,r=this._events[n];return r?r.fn?1:r.length:0},u.prototype.emit=function(t,n,r,l,c,o){var a=f?f+t:t;if(!this._events[a])return!1;var e=this._events[a],p=arguments.length,h,i;if(e.fn){switch(e.once&&this.removeListener(t,e.fn,void 0,!0),p){case 1:return e.fn.call(e.context),!0;case 2:return e.fn.call(e.context,n),!0;case 3:return e.fn.call(e.context,n,r),!0;case 4:return e.fn.call(e.context,n,r,l),!0;case 5:return e.fn.call(e.context,n,r,l,c),!0;case 6:return e.fn.call(e.context,n,r,l,c,o),!0}for(i=1,h=new Array(p-1);i<p;i++)h[i-1]=arguments[i];e.fn.apply(e.context,h)}else{var E=e.length,_;for(i=0;i<E;i++)switch(e[i].once&&this.removeListener(t,e[i].fn,void 0,!0),p){case 1:e[i].fn.call(e[i].context);break;case 2:e[i].fn.call(e[i].context,n);break;case 3:e[i].fn.call(e[i].context,n,r);break;case 4:e[i].fn.call(e[i].context,n,r,l);break;default:if(!h)for(_=1,h=new Array(p-1);_<p;_++)h[_-1]=arguments[_];e[i].fn.apply(e[i].context,h)}}return!0},u.prototype.on=function(t,n,r){return g(this,t,n,r,!1)},u.prototype.once=function(t,n,r){return g(this,t,n,r,!0)},u.prototype.removeListener=function(t,n,r,l){var c=f?f+t:t;if(!this._events[c])return this;if(!n)return b(this,c),this;var o=this._events[c];if(o.fn)o.fn===n&&(!l||o.once)&&(!r||o.context===r)&&b(this,c);else{for(var a=0,e=[],p=o.length;a<p;a++)(o[a].fn!==n||l&&!o[a].once||r&&o[a].context!==r)&&e.push(o[a]);e.length?this._events[c]=e.length===1?e[0]:e:b(this,c)}return this},u.prototype.removeAllListeners=function(t){var n;return t?(n=f?f+t:t,this._events[n]&&b(this,n)):(this._events=new y,this._eventsCount=0),this},u.prototype.off=u.prototype.removeListener,u.prototype.addListener=u.prototype.on,u.prefixed=f,u.EventEmitter=u,v.exports=u})(w)),w.exports}export{O as r};
2
+ //# sourceMappingURL=index-DdnyYkRs.js.map
@@ -1,4 +1,4 @@
1
- import{e as ot}from"./index-DcvaenNa.js";import{f as nn}from"./react-C_GXHmaF.js";import{p as Se,g as ue}from"./sentry-D65FGJ82.js";import{c as on}from"./index-BbGQqGVt.js";(function(){try{var e=typeof window<"u"?window:typeof ue<"u"?ue:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7ec84b44-afbd-4780-97b3-af8992a1fa59",e._sentryDebugIdIdentifier="sentry-dbid-7ec84b44-afbd-4780-97b3-af8992a1fa59")}catch{}})();var Pe={};/*! *****************************************************************************
1
+ import{e as ot}from"./index-fUy6m31Q.js";import{f as nn}from"./react-BG8VKwrs.js";import{p as Se,g as ue}from"./sentry-eiNE_T77.js";import{c as on}from"./index-COM0SPl1.js";(function(){try{var e=typeof window<"u"?window:typeof ue<"u"?ue:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="7ec84b44-afbd-4780-97b3-af8992a1fa59",e._sentryDebugIdIdentifier="sentry-dbid-7ec84b44-afbd-4780-97b3-af8992a1fa59")}catch{}})();var Pe={};/*! *****************************************************************************
2
2
  Copyright (c) Microsoft Corporation.
3
3
 
4
4
  Permission to use, copy, modify, and/or distribute this software for any
@@ -12,4 +12,4 @@ LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
12
12
  OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
13
13
  PERFORMANCE OF THIS SOFTWARE.
14
14
  ***************************************************************************** */var Je=function(e,t){return Je=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,n){r.__proto__=n}||function(r,n){for(var o in n)n.hasOwnProperty(o)&&(r[o]=n[o])},Je(e,t)};function sn(e,t){Je(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var Ze=function(){return Ze=Object.assign||function(t){for(var r,n=1,o=arguments.length;n<o;n++){r=arguments[n];for(var i in r)Object.prototype.hasOwnProperty.call(r,i)&&(t[i]=r[i])}return t},Ze.apply(this,arguments)};function un(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var o=0,n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]]);return r}function an(e,t,r,n){var o=arguments.length,i=o<3?t:n===null?n=Object.getOwnPropertyDescriptor(t,r):n,s;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(e,t,r,n);else for(var c=e.length-1;c>=0;c--)(s=e[c])&&(i=(o<3?s(i):o>3?s(t,r,i):s(t,r))||i);return o>3&&i&&Object.defineProperty(t,r,i),i}function cn(e,t){return function(r,n){t(r,n,e)}}function fn(e,t){if(typeof Reflect=="object"&&typeof Reflect.metadata=="function")return Reflect.metadata(e,t)}function ln(e,t,r,n){function o(i){return i instanceof r?i:new r(function(s){s(i)})}return new(r||(r=Promise))(function(i,s){function c(a){try{f(n.next(a))}catch(d){s(d)}}function u(a){try{f(n.throw(a))}catch(d){s(d)}}function f(a){a.done?i(a.value):o(a.value).then(c,u)}f((n=n.apply(e,t||[])).next())})}function hn(e,t){var r={label:0,sent:function(){if(i[0]&1)throw i[1];return i[1]},trys:[],ops:[]},n,o,i,s;return s={next:c(0),throw:c(1),return:c(2)},typeof Symbol=="function"&&(s[Symbol.iterator]=function(){return this}),s;function c(f){return function(a){return u([f,a])}}function u(f){if(n)throw new TypeError("Generator is already executing.");for(;r;)try{if(n=1,o&&(i=f[0]&2?o.return:f[0]?o.throw||((i=o.return)&&i.call(o),0):o.next)&&!(i=i.call(o,f[1])).done)return i;switch(o=0,i&&(f=[f[0]&2,i.value]),f[0]){case 0:case 1:i=f;break;case 4:return r.label++,{value:f[1],done:!1};case 5:r.label++,o=f[1],f=[0];continue;case 7:f=r.ops.pop(),r.trys.pop();continue;default:if(i=r.trys,!(i=i.length>0&&i[i.length-1])&&(f[0]===6||f[0]===2)){r=0;continue}if(f[0]===3&&(!i||f[1]>i[0]&&f[1]<i[3])){r.label=f[1];break}if(f[0]===6&&r.label<i[1]){r.label=i[1],i=f;break}if(i&&r.label<i[2]){r.label=i[2],r.ops.push(f);break}i[2]&&r.ops.pop(),r.trys.pop();continue}f=t.call(e,r)}catch(a){f=[6,a],o=0}finally{n=i=0}if(f[0]&5)throw f[1];return{value:f[0]?f[1]:void 0,done:!0}}}function dn(e,t,r,n){n===void 0&&(n=r),e[n]=t[r]}function Dn(e,t){for(var r in e)r!=="default"&&!t.hasOwnProperty(r)&&(t[r]=e[r])}function Xe(e){var t=typeof Symbol=="function"&&Symbol.iterator,r=t&&e[t],n=0;if(r)return r.call(e);if(e&&typeof e.length=="number")return{next:function(){return e&&n>=e.length&&(e=void 0),{value:e&&e[n++],done:!e}}};throw new TypeError(t?"Object is not iterable.":"Symbol.iterator is not defined.")}function ur(e,t){var r=typeof Symbol=="function"&&e[Symbol.iterator];if(!r)return e;var n=r.call(e),o,i=[],s;try{for(;(t===void 0||t-- >0)&&!(o=n.next()).done;)i.push(o.value)}catch(c){s={error:c}}finally{try{o&&!o.done&&(r=n.return)&&r.call(n)}finally{if(s)throw s.error}}return i}function bn(){for(var e=[],t=0;t<arguments.length;t++)e=e.concat(ur(arguments[t]));return e}function pn(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;for(var n=Array(e),o=0,t=0;t<r;t++)for(var i=arguments[t],s=0,c=i.length;s<c;s++,o++)n[o]=i[s];return n}function Ee(e){return this instanceof Ee?(this.v=e,this):new Ee(e)}function gn(e,t,r){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var n=r.apply(e,t||[]),o,i=[];return o={},s("next"),s("throw"),s("return"),o[Symbol.asyncIterator]=function(){return this},o;function s(D){n[D]&&(o[D]=function(b){return new Promise(function(l,p){i.push([D,b,l,p])>1||c(D,b)})})}function c(D,b){try{u(n[D](b))}catch(l){d(i[0][3],l)}}function u(D){D.value instanceof Ee?Promise.resolve(D.value.v).then(f,a):d(i[0][2],D)}function f(D){c("next",D)}function a(D){c("throw",D)}function d(D,b){D(b),i.shift(),i.length&&c(i[0][0],i[0][1])}}function wn(e){var t,r;return t={},n("next"),n("throw",function(o){throw o}),n("return"),t[Symbol.iterator]=function(){return this},t;function n(o,i){t[o]=e[o]?function(s){return(r=!r)?{value:Ee(e[o](s)),done:o==="return"}:i?i(s):s}:i}}function En(e){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var t=e[Symbol.asyncIterator],r;return t?t.call(e):(e=typeof Xe=="function"?Xe(e):e[Symbol.iterator](),r={},n("next"),n("throw"),n("return"),r[Symbol.asyncIterator]=function(){return this},r);function n(i){r[i]=e[i]&&function(s){return new Promise(function(c,u){s=e[i](s),o(c,u,s.done,s.value)})}}function o(i,s,c,u){Promise.resolve(u).then(function(f){i({value:f,done:c})},s)}}function yn(e,t){return Object.defineProperty?Object.defineProperty(e,"raw",{value:t}):e.raw=t,e}function mn(e){if(e&&e.__esModule)return e;var t={};if(e!=null)for(var r in e)Object.hasOwnProperty.call(e,r)&&(t[r]=e[r]);return t.default=e,t}function Fn(e){return e&&e.__esModule?e:{default:e}}function _n(e,t){if(!t.has(e))throw new TypeError("attempted to get private field on non-instance");return t.get(e)}function vn(e,t,r){if(!t.has(e))throw new TypeError("attempted to set private field on non-instance");return t.set(e,r),r}const An=Object.freeze(Object.defineProperty({__proto__:null,get __assign(){return Ze},__asyncDelegator:wn,__asyncGenerator:gn,__asyncValues:En,__await:Ee,__awaiter:ln,__classPrivateFieldGet:_n,__classPrivateFieldSet:vn,__createBinding:dn,__decorate:an,__exportStar:Dn,__extends:sn,__generator:hn,__importDefault:Fn,__importStar:mn,__makeTemplateObject:yn,__metadata:fn,__param:cn,__read:ur,__rest:un,__spread:bn,__spreadArrays:pn,__values:Xe},Symbol.toStringTag,{value:"Module"})),Be=nn(An);var je={},De={},_t;function Sn(){if(_t)return De;_t=1,Object.defineProperty(De,"__esModule",{value:!0}),De.delay=void 0;function e(t){return new Promise(r=>{setTimeout(()=>{r(!0)},t)})}return De.delay=e,De}var oe={},Le={},ie={},vt;function Cn(){return vt||(vt=1,Object.defineProperty(ie,"__esModule",{value:!0}),ie.ONE_THOUSAND=ie.ONE_HUNDRED=void 0,ie.ONE_HUNDRED=100,ie.ONE_THOUSAND=1e3),ie}var We={},At;function On(){return At||(At=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.ONE_YEAR=e.FOUR_WEEKS=e.THREE_WEEKS=e.TWO_WEEKS=e.ONE_WEEK=e.THIRTY_DAYS=e.SEVEN_DAYS=e.FIVE_DAYS=e.THREE_DAYS=e.ONE_DAY=e.TWENTY_FOUR_HOURS=e.TWELVE_HOURS=e.SIX_HOURS=e.THREE_HOURS=e.ONE_HOUR=e.SIXTY_MINUTES=e.THIRTY_MINUTES=e.TEN_MINUTES=e.FIVE_MINUTES=e.ONE_MINUTE=e.SIXTY_SECONDS=e.THIRTY_SECONDS=e.TEN_SECONDS=e.FIVE_SECONDS=e.ONE_SECOND=void 0,e.ONE_SECOND=1,e.FIVE_SECONDS=5,e.TEN_SECONDS=10,e.THIRTY_SECONDS=30,e.SIXTY_SECONDS=60,e.ONE_MINUTE=e.SIXTY_SECONDS,e.FIVE_MINUTES=e.ONE_MINUTE*5,e.TEN_MINUTES=e.ONE_MINUTE*10,e.THIRTY_MINUTES=e.ONE_MINUTE*30,e.SIXTY_MINUTES=e.ONE_MINUTE*60,e.ONE_HOUR=e.SIXTY_MINUTES,e.THREE_HOURS=e.ONE_HOUR*3,e.SIX_HOURS=e.ONE_HOUR*6,e.TWELVE_HOURS=e.ONE_HOUR*12,e.TWENTY_FOUR_HOURS=e.ONE_HOUR*24,e.ONE_DAY=e.TWENTY_FOUR_HOURS,e.THREE_DAYS=e.ONE_DAY*3,e.FIVE_DAYS=e.ONE_DAY*5,e.SEVEN_DAYS=e.ONE_DAY*7,e.THIRTY_DAYS=e.ONE_DAY*30,e.ONE_WEEK=e.SEVEN_DAYS,e.TWO_WEEKS=e.ONE_WEEK*2,e.THREE_WEEKS=e.ONE_WEEK*3,e.FOUR_WEEKS=e.ONE_WEEK*4,e.ONE_YEAR=e.ONE_DAY*365})(We)),We}var St;function ar(){return St||(St=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=Be;t.__exportStar(Cn(),e),t.__exportStar(On(),e)})(Le)),Le}var Ct;function xn(){if(Ct)return oe;Ct=1,Object.defineProperty(oe,"__esModule",{value:!0}),oe.fromMiliseconds=oe.toMiliseconds=void 0;const e=ar();function t(n){return n*e.ONE_THOUSAND}oe.toMiliseconds=t;function r(n){return Math.floor(n/e.ONE_THOUSAND)}return oe.fromMiliseconds=r,oe}var Ot;function Bn(){return Ot||(Ot=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=Be;t.__exportStar(Sn(),e),t.__exportStar(xn(),e)})(je)),je}var fe={},xt;function Rn(){if(xt)return fe;xt=1,Object.defineProperty(fe,"__esModule",{value:!0}),fe.Watch=void 0;class e{constructor(){this.timestamps=new Map}start(r){if(this.timestamps.has(r))throw new Error(`Watch already started for label: ${r}`);this.timestamps.set(r,{started:Date.now()})}stop(r){const n=this.get(r);if(typeof n.elapsed<"u")throw new Error(`Watch already stopped for label: ${r}`);const o=Date.now()-n.started;this.timestamps.set(r,{started:n.started,elapsed:o})}get(r){const n=this.timestamps.get(r);if(typeof n>"u")throw new Error(`No timestamp found for label: ${r}`);return n}elapsed(r){const n=this.get(r);return n.elapsed||Date.now()-n.started}}return fe.Watch=e,fe.default=e,fe}var ke={},be={},Bt;function Nn(){if(Bt)return be;Bt=1,Object.defineProperty(be,"__esModule",{value:!0}),be.IWatch=void 0;class e{}return be.IWatch=e,be}var Rt;function Tn(){return Rt||(Rt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0}),Be.__exportStar(Nn(),e)})(ke)),ke}var Nt;function Un(){return Nt||(Nt=1,(function(e){Object.defineProperty(e,"__esModule",{value:!0});const t=Be;t.__exportStar(Bn(),e),t.__exportStar(Rn(),e),t.__exportStar(Tn(),e),t.__exportStar(ar(),e)})(Pe)),Pe}var it=Un();class In{}let Mn=class extends In{constructor(t){super()}};const Tt=it.FIVE_SECONDS,Pn={pulse:"heartbeat_pulse"};class cr extends Mn{constructor(t){super(t),this.events=new ot.EventEmitter,this.interval=Tt,this.interval=(t==null?void 0:t.interval)||Tt}static async init(t){const r=new cr(t);return await r.init(),r}async init(){await this.initialize()}stop(){clearInterval(this.intervalRef)}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async initialize(){this.intervalRef=setInterval(()=>this.pulse(),it.toMiliseconds(this.interval))}pulse(){this.events.emit(Pn.pulse)}}const jn=/"(?:_|\\u0{2}5[Ff]){2}(?:p|\\u0{2}70)(?:r|\\u0{2}72)(?:o|\\u0{2}6[Ff])(?:t|\\u0{2}74)(?:o|\\u0{2}6[Ff])(?:_|\\u0{2}5[Ff]){2}"\s*:/,Ln=/"(?:c|\\u0063)(?:o|\\u006[Ff])(?:n|\\u006[Ee])(?:s|\\u0073)(?:t|\\u0074)(?:r|\\u0072)(?:u|\\u0075)(?:c|\\u0063)(?:t|\\u0074)(?:o|\\u006[Ff])(?:r|\\u0072)"\s*:/,Wn=/^\s*["[{]|^\s*-?\d{1,16}(\.\d{1,17})?([Ee][+-]?\d+)?\s*$/;function kn(e,t){if(e==="__proto__"||e==="constructor"&&t&&typeof t=="object"&&"prototype"in t){zn(e);return}return t}function zn(e){console.warn(`[destr] Dropping "${e}" key to prevent prototype pollution.`)}function _a(e,t={}){if(typeof e!="string")return e;if(e[0]==='"'&&e[e.length-1]==='"'&&e.indexOf("\\")===-1)return e.slice(1,-1);const r=e.trim();if(r.length<=9)switch(r.toLowerCase()){case"true":return!0;case"false":return!1;case"undefined":return;case"null":return null;case"nan":return Number.NaN;case"infinity":return Number.POSITIVE_INFINITY;case"-infinity":return Number.NEGATIVE_INFINITY}if(!Wn.test(e)){if(t.strict)throw new SyntaxError("[destr] Invalid JSON");return e}try{if(jn.test(e)||Ln.test(e)){if(t.strict)throw new Error("[destr] Possible prototype pollution");return JSON.parse(e,kn)}return JSON.parse(e)}catch(n){if(t.strict)throw n;return e}}const Hn=e=>JSON.stringify(e,(t,r)=>typeof r=="bigint"?r.toString()+"n":r),$n=e=>{const t=/([\[:])?(\d{17,}|(?:[9](?:[1-9]07199254740991|0[1-9]7199254740991|00[8-9]199254740991|007[2-9]99254740991|007199[3-9]54740991|0071992[6-9]4740991|00719925[5-9]740991|007199254[8-9]40991|0071992547[5-9]0991|00719925474[1-9]991|00719925474099[2-9])))([,\}\]])/g,r=e.replace(t,'$1"$2n"$3');return JSON.parse(r,(n,o)=>typeof o=="string"&&o.match(/^\d+n$/)?BigInt(o.substring(0,o.length-1)):o)};function fr(e){if(typeof e!="string")throw new Error(`Cannot safe json parse value of type ${typeof e}`);try{return $n(e)}catch{return e}}function lr(e){return typeof e=="string"?e:Hn(e)||""}function qn(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function hr(e,...t){if(!qn(e))throw new Error("Uint8Array expected");if(t.length>0&&!t.includes(e.length))throw new Error("Uint8Array expected of length "+t+", got length="+e.length)}function Ut(e,t=!0){if(e.destroyed)throw new Error("Hash instance has been destroyed");if(t&&e.finished)throw new Error("Hash#digest() has already been called")}function Vn(e,t){hr(e);const r=t.outputLen;if(e.length<r)throw new Error("digestInto() expects output buffer of length at least "+r)}const le=typeof globalThis=="object"&&"crypto"in globalThis?globalThis.crypto:void 0;/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */const ze=e=>new DataView(e.buffer,e.byteOffset,e.byteLength);function Yn(e){if(typeof e!="string")throw new Error("utf8ToBytes expected string, got "+typeof e);return new Uint8Array(new TextEncoder().encode(e))}function dr(e){return typeof e=="string"&&(e=Yn(e)),hr(e),e}class Kn{clone(){return this._cloneInto()}}function Gn(e){const t=n=>e().update(dr(n)).digest(),r=e();return t.outputLen=r.outputLen,t.blockLen=r.blockLen,t.create=()=>e(),t}function Dr(e=32){if(le&&typeof le.getRandomValues=="function")return le.getRandomValues(new Uint8Array(e));if(le&&typeof le.randomBytes=="function")return le.randomBytes(e);throw new Error("crypto.getRandomValues must be defined")}function Jn(e,t,r,n){if(typeof e.setBigUint64=="function")return e.setBigUint64(t,r,n);const o=BigInt(32),i=BigInt(4294967295),s=Number(r>>o&i),c=Number(r&i),u=n?4:0,f=n?0:4;e.setUint32(t+u,s,n),e.setUint32(t+f,c,n)}class Zn extends Kn{constructor(t,r,n,o){super(),this.blockLen=t,this.outputLen=r,this.padOffset=n,this.isLE=o,this.finished=!1,this.length=0,this.pos=0,this.destroyed=!1,this.buffer=new Uint8Array(t),this.view=ze(this.buffer)}update(t){Ut(this);const{view:r,buffer:n,blockLen:o}=this;t=dr(t);const i=t.length;for(let s=0;s<i;){const c=Math.min(o-this.pos,i-s);if(c===o){const u=ze(t);for(;o<=i-s;s+=o)this.process(u,s);continue}n.set(t.subarray(s,s+c),this.pos),this.pos+=c,s+=c,this.pos===o&&(this.process(r,0),this.pos=0)}return this.length+=t.length,this.roundClean(),this}digestInto(t){Ut(this),Vn(t,this),this.finished=!0;const{buffer:r,view:n,blockLen:o,isLE:i}=this;let{pos:s}=this;r[s++]=128,this.buffer.subarray(s).fill(0),this.padOffset>o-s&&(this.process(n,0),s=0);for(let d=s;d<o;d++)r[d]=0;Jn(n,o-8,BigInt(this.length*8),i),this.process(n,0);const c=ze(t),u=this.outputLen;if(u%4)throw new Error("_sha2: outputLen should be aligned to 32bit");const f=u/4,a=this.get();if(f>a.length)throw new Error("_sha2: outputLen bigger than state");for(let d=0;d<f;d++)c.setUint32(4*d,a[d],i)}digest(){const{buffer:t,outputLen:r}=this;this.digestInto(t);const n=t.slice(0,r);return this.destroy(),n}_cloneInto(t){t||(t=new this.constructor),t.set(...this.get());const{blockLen:r,buffer:n,length:o,finished:i,destroyed:s,pos:c}=this;return t.length=o,t.pos=c,t.finished=i,t.destroyed=s,o%r&&t.buffer.set(n),t}}const _e=BigInt(2**32-1),Qe=BigInt(32);function br(e,t=!1){return t?{h:Number(e&_e),l:Number(e>>Qe&_e)}:{h:Number(e>>Qe&_e)|0,l:Number(e&_e)|0}}function Xn(e,t=!1){let r=new Uint32Array(e.length),n=new Uint32Array(e.length);for(let o=0;o<e.length;o++){const{h:i,l:s}=br(e[o],t);[r[o],n[o]]=[i,s]}return[r,n]}const Qn=(e,t)=>BigInt(e>>>0)<<Qe|BigInt(t>>>0),eo=(e,t,r)=>e>>>r,to=(e,t,r)=>e<<32-r|t>>>r,ro=(e,t,r)=>e>>>r|t<<32-r,no=(e,t,r)=>e<<32-r|t>>>r,oo=(e,t,r)=>e<<64-r|t>>>r-32,io=(e,t,r)=>e>>>r-32|t<<64-r,so=(e,t)=>t,uo=(e,t)=>e,ao=(e,t,r)=>e<<r|t>>>32-r,co=(e,t,r)=>t<<r|e>>>32-r,fo=(e,t,r)=>t<<r-32|e>>>64-r,lo=(e,t,r)=>e<<r-32|t>>>64-r;function ho(e,t,r,n){const o=(t>>>0)+(n>>>0);return{h:e+r+(o/2**32|0)|0,l:o|0}}const Do=(e,t,r)=>(e>>>0)+(t>>>0)+(r>>>0),bo=(e,t,r,n)=>t+r+n+(e/2**32|0)|0,po=(e,t,r,n)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0),go=(e,t,r,n,o)=>t+r+n+o+(e/2**32|0)|0,wo=(e,t,r,n,o)=>(e>>>0)+(t>>>0)+(r>>>0)+(n>>>0)+(o>>>0),Eo=(e,t,r,n,o,i)=>t+r+n+o+i+(e/2**32|0)|0,A={fromBig:br,split:Xn,toBig:Qn,shrSH:eo,shrSL:to,rotrSH:ro,rotrSL:no,rotrBH:oo,rotrBL:io,rotr32H:so,rotr32L:uo,rotlSH:ao,rotlSL:co,rotlBH:fo,rotlBL:lo,add:ho,add3L:Do,add3H:bo,add4L:po,add4H:go,add5H:Eo,add5L:wo},[yo,mo]=A.split(["0x428a2f98d728ae22","0x7137449123ef65cd","0xb5c0fbcfec4d3b2f","0xe9b5dba58189dbbc","0x3956c25bf348b538","0x59f111f1b605d019","0x923f82a4af194f9b","0xab1c5ed5da6d8118","0xd807aa98a3030242","0x12835b0145706fbe","0x243185be4ee4b28c","0x550c7dc3d5ffb4e2","0x72be5d74f27b896f","0x80deb1fe3b1696b1","0x9bdc06a725c71235","0xc19bf174cf692694","0xe49b69c19ef14ad2","0xefbe4786384f25e3","0x0fc19dc68b8cd5b5","0x240ca1cc77ac9c65","0x2de92c6f592b0275","0x4a7484aa6ea6e483","0x5cb0a9dcbd41fbd4","0x76f988da831153b5","0x983e5152ee66dfab","0xa831c66d2db43210","0xb00327c898fb213f","0xbf597fc7beef0ee4","0xc6e00bf33da88fc2","0xd5a79147930aa725","0x06ca6351e003826f","0x142929670a0e6e70","0x27b70a8546d22ffc","0x2e1b21385c26c926","0x4d2c6dfc5ac42aed","0x53380d139d95b3df","0x650a73548baf63de","0x766a0abb3c77b2a8","0x81c2c92e47edaee6","0x92722c851482353b","0xa2bfe8a14cf10364","0xa81a664bbc423001","0xc24b8b70d0f89791","0xc76c51a30654be30","0xd192e819d6ef5218","0xd69906245565a910","0xf40e35855771202a","0x106aa07032bbd1b8","0x19a4c116b8d2d0c8","0x1e376c085141ab53","0x2748774cdf8eeb99","0x34b0bcb5e19b48a8","0x391c0cb3c5c95a63","0x4ed8aa4ae3418acb","0x5b9cca4f7763e373","0x682e6ff3d6b2b8a3","0x748f82ee5defb2fc","0x78a5636f43172f60","0x84c87814a1f0ab72","0x8cc702081a6439ec","0x90befffa23631e28","0xa4506cebde82bde9","0xbef9a3f7b2c67915","0xc67178f2e372532b","0xca273eceea26619c","0xd186b8c721c0c207","0xeada7dd6cde0eb1e","0xf57d4f7fee6ed178","0x06f067aa72176fba","0x0a637dc5a2c898a6","0x113f9804bef90dae","0x1b710b35131c471b","0x28db77f523047d84","0x32caab7b40c72493","0x3c9ebe0a15c9bebc","0x431d67c49c100d4c","0x4cc5d4becb3e42b6","0x597f299cfc657e2a","0x5fcb6fab3ad6faec","0x6c44198c4a475817"].map(e=>BigInt(e))),ee=new Uint32Array(80),te=new Uint32Array(80);class Fo extends Zn{constructor(){super(128,64,16,!1),this.Ah=1779033703,this.Al=-205731576,this.Bh=-1150833019,this.Bl=-2067093701,this.Ch=1013904242,this.Cl=-23791573,this.Dh=-1521486534,this.Dl=1595750129,this.Eh=1359893119,this.El=-1377402159,this.Fh=-1694144372,this.Fl=725511199,this.Gh=528734635,this.Gl=-79577749,this.Hh=1541459225,this.Hl=327033209}get(){const{Ah:t,Al:r,Bh:n,Bl:o,Ch:i,Cl:s,Dh:c,Dl:u,Eh:f,El:a,Fh:d,Fl:D,Gh:b,Gl:l,Hh:p,Hl:m}=this;return[t,r,n,o,i,s,c,u,f,a,d,D,b,l,p,m]}set(t,r,n,o,i,s,c,u,f,a,d,D,b,l,p,m){this.Ah=t|0,this.Al=r|0,this.Bh=n|0,this.Bl=o|0,this.Ch=i|0,this.Cl=s|0,this.Dh=c|0,this.Dl=u|0,this.Eh=f|0,this.El=a|0,this.Fh=d|0,this.Fl=D|0,this.Gh=b|0,this.Gl=l|0,this.Hh=p|0,this.Hl=m|0}process(t,r){for(let h=0;h<16;h++,r+=4)ee[h]=t.getUint32(r),te[h]=t.getUint32(r+=4);for(let h=16;h<80;h++){const E=ee[h-15]|0,S=te[h-15]|0,T=A.rotrSH(E,S,1)^A.rotrSH(E,S,8)^A.shrSH(E,S,7),B=A.rotrSL(E,S,1)^A.rotrSL(E,S,8)^A.shrSL(E,S,7),C=ee[h-2]|0,I=te[h-2]|0,ae=A.rotrSH(C,I,19)^A.rotrBH(C,I,61)^A.shrSH(C,I,6),re=A.rotrSL(C,I,19)^A.rotrBL(C,I,61)^A.shrSL(C,I,6),ce=A.add4L(B,re,te[h-7],te[h-16]),de=A.add4H(ce,T,ae,ee[h-7],ee[h-16]);ee[h]=de|0,te[h]=ce|0}let{Ah:n,Al:o,Bh:i,Bl:s,Ch:c,Cl:u,Dh:f,Dl:a,Eh:d,El:D,Fh:b,Fl:l,Gh:p,Gl:m,Hh:F,Hl:w}=this;for(let h=0;h<80;h++){const E=A.rotrSH(d,D,14)^A.rotrSH(d,D,18)^A.rotrBH(d,D,41),S=A.rotrSL(d,D,14)^A.rotrSL(d,D,18)^A.rotrBL(d,D,41),T=d&b^~d&p,B=D&l^~D&m,C=A.add5L(w,S,B,mo[h],te[h]),I=A.add5H(C,F,E,T,yo[h],ee[h]),ae=C|0,re=A.rotrSH(n,o,28)^A.rotrBH(n,o,34)^A.rotrBH(n,o,39),ce=A.rotrSL(n,o,28)^A.rotrBL(n,o,34)^A.rotrBL(n,o,39),de=n&i^n&c^i&c,Ie=o&s^o&u^s&u;F=p|0,w=m|0,p=b|0,m=l|0,b=d|0,l=D|0,{h:d,l:D}=A.add(f|0,a|0,I|0,ae|0),f=c|0,a=u|0,c=i|0,u=s|0,i=n|0,s=o|0;const _=A.add3L(ae,ce,Ie);n=A.add3H(_,I,re,de),o=_|0}({h:n,l:o}=A.add(this.Ah|0,this.Al|0,n|0,o|0)),{h:i,l:s}=A.add(this.Bh|0,this.Bl|0,i|0,s|0),{h:c,l:u}=A.add(this.Ch|0,this.Cl|0,c|0,u|0),{h:f,l:a}=A.add(this.Dh|0,this.Dl|0,f|0,a|0),{h:d,l:D}=A.add(this.Eh|0,this.El|0,d|0,D|0),{h:b,l}=A.add(this.Fh|0,this.Fl|0,b|0,l|0),{h:p,l:m}=A.add(this.Gh|0,this.Gl|0,p|0,m|0),{h:F,l:w}=A.add(this.Hh|0,this.Hl|0,F|0,w|0),this.set(n,o,i,s,c,u,f,a,d,D,b,l,p,m,F,w)}roundClean(){ee.fill(0),te.fill(0)}destroy(){this.buffer.fill(0),this.set(0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0)}}const _o=Gn(()=>new Fo);/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */const st=BigInt(0),pr=BigInt(1),vo=BigInt(2);function ut(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function at(e){if(!ut(e))throw new Error("Uint8Array expected")}function He(e,t){if(typeof t!="boolean")throw new Error(e+" boolean expected, got "+t)}const Ao=Array.from({length:256},(e,t)=>t.toString(16).padStart(2,"0"));function ct(e){at(e);let t="";for(let r=0;r<e.length;r++)t+=Ao[e[r]];return t}function gr(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);return e===""?st:BigInt("0x"+e)}const Z={_0:48,_9:57,A:65,F:70,a:97,f:102};function It(e){if(e>=Z._0&&e<=Z._9)return e-Z._0;if(e>=Z.A&&e<=Z.F)return e-(Z.A-10);if(e>=Z.a&&e<=Z.f)return e-(Z.a-10)}function wr(e){if(typeof e!="string")throw new Error("hex string expected, got "+typeof e);const t=e.length,r=t/2;if(t%2)throw new Error("hex string expected, got unpadded hex of length "+t);const n=new Uint8Array(r);for(let o=0,i=0;o<r;o++,i+=2){const s=It(e.charCodeAt(i)),c=It(e.charCodeAt(i+1));if(s===void 0||c===void 0){const u=e[i]+e[i+1];throw new Error('hex string expected, got non-hex character "'+u+'" at index '+i)}n[o]=s*16+c}return n}function So(e){return gr(ct(e))}function Ce(e){return at(e),gr(ct(Uint8Array.from(e).reverse()))}function Er(e,t){return wr(e.toString(16).padStart(t*2,"0"))}function et(e,t){return Er(e,t).reverse()}function X(e,t,r){let n;if(typeof t=="string")try{n=wr(t)}catch(i){throw new Error(e+" must be hex string or Uint8Array, cause: "+i)}else if(ut(t))n=Uint8Array.from(t);else throw new Error(e+" must be hex string or Uint8Array");const o=n.length;if(typeof r=="number"&&o!==r)throw new Error(e+" of length "+r+" expected, got "+o);return n}function Mt(...e){let t=0;for(let n=0;n<e.length;n++){const o=e[n];at(o),t+=o.length}const r=new Uint8Array(t);for(let n=0,o=0;n<e.length;n++){const i=e[n];r.set(i,o),o+=i.length}return r}const $e=e=>typeof e=="bigint"&&st<=e;function Co(e,t,r){return $e(e)&&$e(t)&&$e(r)&&t<=e&&e<r}function pe(e,t,r,n){if(!Co(t,r,n))throw new Error("expected valid "+e+": "+r+" <= n < "+n+", got "+t)}function Oo(e){let t;for(t=0;e>st;e>>=pr,t+=1);return t}const xo=e=>(vo<<BigInt(e-1))-pr,Bo={bigint:e=>typeof e=="bigint",function:e=>typeof e=="function",boolean:e=>typeof e=="boolean",string:e=>typeof e=="string",stringOrUint8Array:e=>typeof e=="string"||ut(e),isSafeInteger:e=>Number.isSafeInteger(e),array:e=>Array.isArray(e),field:(e,t)=>t.Fp.isValid(e),hash:e=>typeof e=="function"&&Number.isSafeInteger(e.outputLen)};function ft(e,t,r={}){const n=(o,i,s)=>{const c=Bo[i];if(typeof c!="function")throw new Error("invalid validator function");const u=e[o];if(!(s&&u===void 0)&&!c(u,e))throw new Error("param "+String(o)+" is invalid. Expected "+i+", got "+u)};for(const[o,i]of Object.entries(t))n(o,i,!1);for(const[o,i]of Object.entries(r))n(o,i,!0);return e}function Pt(e){const t=new WeakMap;return(r,...n)=>{const o=t.get(r);if(o!==void 0)return o;const i=e(r,...n);return t.set(r,i),i}}const W=BigInt(0),j=BigInt(1),se=BigInt(2),Ro=BigInt(3),tt=BigInt(4),jt=BigInt(5),Lt=BigInt(8);function L(e,t){const r=e%t;return r>=W?r:t+r}function No(e,t,r){if(t<W)throw new Error("invalid exponent, negatives unsupported");if(r<=W)throw new Error("invalid modulus");if(r===j)return W;let n=j;for(;t>W;)t&j&&(n=n*e%r),e=e*e%r,t>>=j;return n}function K(e,t,r){let n=e;for(;t-- >W;)n*=n,n%=r;return n}function Wt(e,t){if(e===W)throw new Error("invert: expected non-zero number");if(t<=W)throw new Error("invert: expected positive modulus, got "+t);let r=L(e,t),n=t,o=W,i=j;for(;r!==W;){const s=n/r,c=n%r,u=o-i*s;n=r,r=c,o=i,i=u}if(n!==j)throw new Error("invert: does not exist");return L(o,t)}function To(e){const t=(e-j)/se;let r,n,o;for(r=e-j,n=0;r%se===W;r/=se,n++);for(o=se;o<e&&No(o,t,e)!==e-j;o++)if(o>1e3)throw new Error("Cannot find square root: likely non-prime P");if(n===1){const s=(e+j)/tt;return function(c,u){const f=c.pow(u,s);if(!c.eql(c.sqr(f),u))throw new Error("Cannot find square root");return f}}const i=(r+j)/se;return function(s,c){if(s.pow(c,t)===s.neg(s.ONE))throw new Error("Cannot find square root");let u=n,f=s.pow(s.mul(s.ONE,o),r),a=s.pow(c,i),d=s.pow(c,r);for(;!s.eql(d,s.ONE);){if(s.eql(d,s.ZERO))return s.ZERO;let D=1;for(let l=s.sqr(d);D<u&&!s.eql(l,s.ONE);D++)l=s.sqr(l);const b=s.pow(f,j<<BigInt(u-D-1));f=s.sqr(b),a=s.mul(a,b),d=s.mul(d,f),u=D}return a}}function Uo(e){if(e%tt===Ro){const t=(e+j)/tt;return function(r,n){const o=r.pow(n,t);if(!r.eql(r.sqr(o),n))throw new Error("Cannot find square root");return o}}if(e%Lt===jt){const t=(e-jt)/Lt;return function(r,n){const o=r.mul(n,se),i=r.pow(o,t),s=r.mul(n,i),c=r.mul(r.mul(s,se),i),u=r.mul(s,r.sub(c,r.ONE));if(!r.eql(r.sqr(u),n))throw new Error("Cannot find square root");return u}}return To(e)}const Io=(e,t)=>(L(e,t)&j)===j,Mo=["create","isValid","is0","neg","inv","sqrt","sqr","eql","add","sub","mul","pow","div","addN","subN","mulN","sqrN"];function Po(e){const t={ORDER:"bigint",MASK:"bigint",BYTES:"isSafeInteger",BITS:"isSafeInteger"},r=Mo.reduce((n,o)=>(n[o]="function",n),t);return ft(e,r)}function jo(e,t,r){if(r<W)throw new Error("invalid exponent, negatives unsupported");if(r===W)return e.ONE;if(r===j)return t;let n=e.ONE,o=t;for(;r>W;)r&j&&(n=e.mul(n,o)),o=e.sqr(o),r>>=j;return n}function Lo(e,t){const r=new Array(t.length),n=t.reduce((i,s,c)=>e.is0(s)?i:(r[c]=i,e.mul(i,s)),e.ONE),o=e.inv(n);return t.reduceRight((i,s,c)=>e.is0(s)?i:(r[c]=e.mul(i,r[c]),e.mul(i,s)),o),r}function yr(e,t){const r=t!==void 0?t:e.toString(2).length,n=Math.ceil(r/8);return{nBitLength:r,nByteLength:n}}function mr(e,t,r=!1,n={}){if(e<=W)throw new Error("invalid field: expected ORDER > 0, got "+e);const{nBitLength:o,nByteLength:i}=yr(e,t);if(i>2048)throw new Error("invalid field: expected ORDER of <= 2048 bytes");let s;const c=Object.freeze({ORDER:e,isLE:r,BITS:o,BYTES:i,MASK:xo(o),ZERO:W,ONE:j,create:u=>L(u,e),isValid:u=>{if(typeof u!="bigint")throw new Error("invalid field element: expected bigint, got "+typeof u);return W<=u&&u<e},is0:u=>u===W,isOdd:u=>(u&j)===j,neg:u=>L(-u,e),eql:(u,f)=>u===f,sqr:u=>L(u*u,e),add:(u,f)=>L(u+f,e),sub:(u,f)=>L(u-f,e),mul:(u,f)=>L(u*f,e),pow:(u,f)=>jo(c,u,f),div:(u,f)=>L(u*Wt(f,e),e),sqrN:u=>u*u,addN:(u,f)=>u+f,subN:(u,f)=>u-f,mulN:(u,f)=>u*f,inv:u=>Wt(u,e),sqrt:n.sqrt||(u=>(s||(s=Uo(e)),s(c,u))),invertBatch:u=>Lo(c,u),cmov:(u,f,a)=>a?f:u,toBytes:u=>r?et(u,i):Er(u,i),fromBytes:u=>{if(u.length!==i)throw new Error("Field.fromBytes: expected "+i+" bytes, got "+u.length);return r?Ce(u):So(u)}});return Object.freeze(c)}const kt=BigInt(0),ve=BigInt(1);function qe(e,t){const r=t.negate();return e?r:t}function Fr(e,t){if(!Number.isSafeInteger(e)||e<=0||e>t)throw new Error("invalid window size, expected [1.."+t+"], got W="+e)}function Ve(e,t){Fr(e,t);const r=Math.ceil(t/e)+1,n=2**(e-1);return{windows:r,windowSize:n}}function Wo(e,t){if(!Array.isArray(e))throw new Error("array expected");e.forEach((r,n)=>{if(!(r instanceof t))throw new Error("invalid point at index "+n)})}function ko(e,t){if(!Array.isArray(e))throw new Error("array of scalars expected");e.forEach((r,n)=>{if(!t.isValid(r))throw new Error("invalid scalar at index "+n)})}const Ye=new WeakMap,_r=new WeakMap;function Ke(e){return _r.get(e)||1}function zo(e,t){return{constTimeNegate:qe,hasPrecomputes(r){return Ke(r)!==1},unsafeLadder(r,n,o=e.ZERO){let i=r;for(;n>kt;)n&ve&&(o=o.add(i)),i=i.double(),n>>=ve;return o},precomputeWindow(r,n){const{windows:o,windowSize:i}=Ve(n,t),s=[];let c=r,u=c;for(let f=0;f<o;f++){u=c,s.push(u);for(let a=1;a<i;a++)u=u.add(c),s.push(u);c=u.double()}return s},wNAF(r,n,o){const{windows:i,windowSize:s}=Ve(r,t);let c=e.ZERO,u=e.BASE;const f=BigInt(2**r-1),a=2**r,d=BigInt(r);for(let D=0;D<i;D++){const b=D*s;let l=Number(o&f);o>>=d,l>s&&(l-=a,o+=ve);const p=b,m=b+Math.abs(l)-1,F=D%2!==0,w=l<0;l===0?u=u.add(qe(F,n[p])):c=c.add(qe(w,n[m]))}return{p:c,f:u}},wNAFUnsafe(r,n,o,i=e.ZERO){const{windows:s,windowSize:c}=Ve(r,t),u=BigInt(2**r-1),f=2**r,a=BigInt(r);for(let d=0;d<s;d++){const D=d*c;if(o===kt)break;let b=Number(o&u);if(o>>=a,b>c&&(b-=f,o+=ve),b===0)continue;let l=n[D+Math.abs(b)-1];b<0&&(l=l.negate()),i=i.add(l)}return i},getPrecomputes(r,n,o){let i=Ye.get(n);return i||(i=this.precomputeWindow(n,r),r!==1&&Ye.set(n,o(i))),i},wNAFCached(r,n,o){const i=Ke(r);return this.wNAF(i,this.getPrecomputes(i,r,o),n)},wNAFCachedUnsafe(r,n,o,i){const s=Ke(r);return s===1?this.unsafeLadder(r,n,i):this.wNAFUnsafe(s,this.getPrecomputes(s,r,o),n,i)},setWindowSize(r,n){Fr(n,t),_r.set(r,n),Ye.delete(r)}}}function Ho(e,t,r,n){if(Wo(r,e),ko(n,t),r.length!==n.length)throw new Error("arrays of points and scalars must have equal length");const o=e.ZERO,i=Oo(BigInt(r.length)),s=i>12?i-3:i>4?i-2:i?2:1,c=(1<<s)-1,u=new Array(c+1).fill(o),f=Math.floor((t.BITS-1)/s)*s;let a=o;for(let d=f;d>=0;d-=s){u.fill(o);for(let b=0;b<n.length;b++){const l=n[b],p=Number(l>>BigInt(d)&BigInt(c));u[p]=u[p].add(r[b])}let D=o;for(let b=u.length-1,l=o;b>0;b--)l=l.add(u[b]),D=D.add(l);if(a=a.add(D),d!==0)for(let b=0;b<s;b++)a=a.double()}return a}function $o(e){return Po(e.Fp),ft(e,{n:"bigint",h:"bigint",Gx:"field",Gy:"field"},{nBitLength:"isSafeInteger",nByteLength:"isSafeInteger"}),Object.freeze({...yr(e.n,e.nBitLength),...e,p:e.Fp.ORDER})}const Y=BigInt(0),q=BigInt(1),Ae=BigInt(2),qo=BigInt(8),Vo={zip215:!0};function Yo(e){const t=$o(e);return ft(e,{hash:"function",a:"bigint",d:"bigint",randomBytes:"function"},{adjustScalarBytes:"function",domain:"function",uvRatio:"function",mapToCurve:"function"}),Object.freeze({...t})}function Ko(e){const t=Yo(e),{Fp:r,n,prehash:o,hash:i,randomBytes:s,nByteLength:c,h:u}=t,f=Ae<<BigInt(c*8)-q,a=r.create,d=mr(t.n,t.nBitLength),D=t.uvRatio||((_,g)=>{try{return{isValid:!0,value:r.sqrt(_*r.inv(g))}}catch{return{isValid:!1,value:Y}}}),b=t.adjustScalarBytes||(_=>_),l=t.domain||((_,g,y)=>{if(He("phflag",y),g.length||y)throw new Error("Contexts/pre-hash are not supported");return _});function p(_,g){pe("coordinate "+_,g,Y,f)}function m(_){if(!(_ instanceof h))throw new Error("ExtendedPoint expected")}const F=Pt((_,g)=>{const{ex:y,ey:v,ez:O}=_,x=_.is0();g==null&&(g=x?qo:r.inv(O));const R=a(y*g),M=a(v*g),U=a(O*g);if(x)return{x:Y,y:q};if(U!==q)throw new Error("invZ was invalid");return{x:R,y:M}}),w=Pt(_=>{const{a:g,d:y}=t;if(_.is0())throw new Error("bad point: ZERO");const{ex:v,ey:O,ez:x,et:R}=_,M=a(v*v),U=a(O*O),P=a(x*x),k=a(P*P),$=a(M*g),G=a(P*a($+U)),J=a(k+a(y*a(M*U)));if(G!==J)throw new Error("bad point: equation left != right (1)");const V=a(v*O),Q=a(x*R);if(V!==Q)throw new Error("bad point: equation left != right (2)");return!0});class h{constructor(g,y,v,O){this.ex=g,this.ey=y,this.ez=v,this.et=O,p("x",g),p("y",y),p("z",v),p("t",O),Object.freeze(this)}get x(){return this.toAffine().x}get y(){return this.toAffine().y}static fromAffine(g){if(g instanceof h)throw new Error("extended point not allowed");const{x:y,y:v}=g||{};return p("x",y),p("y",v),new h(y,v,q,a(y*v))}static normalizeZ(g){const y=r.invertBatch(g.map(v=>v.ez));return g.map((v,O)=>v.toAffine(y[O])).map(h.fromAffine)}static msm(g,y){return Ho(h,d,g,y)}_setWindowSize(g){T.setWindowSize(this,g)}assertValidity(){w(this)}equals(g){m(g);const{ex:y,ey:v,ez:O}=this,{ex:x,ey:R,ez:M}=g,U=a(y*M),P=a(x*O),k=a(v*M),$=a(R*O);return U===P&&k===$}is0(){return this.equals(h.ZERO)}negate(){return new h(a(-this.ex),this.ey,this.ez,a(-this.et))}double(){const{a:g}=t,{ex:y,ey:v,ez:O}=this,x=a(y*y),R=a(v*v),M=a(Ae*a(O*O)),U=a(g*x),P=y+v,k=a(a(P*P)-x-R),$=U+R,G=$-M,J=U-R,V=a(k*G),Q=a($*J),ne=a(k*J),Fe=a(G*$);return new h(V,Q,Fe,ne)}add(g){m(g);const{a:y,d:v}=t,{ex:O,ey:x,ez:R,et:M}=this,{ex:U,ey:P,ez:k,et:$}=g;if(y===BigInt(-1)){const pt=a((x-O)*(P+U)),gt=a((x+O)*(P-U)),Me=a(gt-pt);if(Me===Y)return this.double();const wt=a(R*Ae*$),Et=a(M*Ae*k),yt=Et+wt,mt=gt+pt,Ft=Et-wt,Qr=a(yt*Me),en=a(mt*Ft),tn=a(yt*Ft),rn=a(Me*mt);return new h(Qr,en,rn,tn)}const G=a(O*U),J=a(x*P),V=a(M*v*$),Q=a(R*k),ne=a((O+x)*(U+P)-G-J),Fe=Q-V,Dt=Q+V,bt=a(J-y*G),Gr=a(ne*Fe),Jr=a(Dt*bt),Zr=a(ne*bt),Xr=a(Fe*Dt);return new h(Gr,Jr,Xr,Zr)}subtract(g){return this.add(g.negate())}wNAF(g){return T.wNAFCached(this,g,h.normalizeZ)}multiply(g){const y=g;pe("scalar",y,q,n);const{p:v,f:O}=this.wNAF(y);return h.normalizeZ([v,O])[0]}multiplyUnsafe(g,y=h.ZERO){const v=g;return pe("scalar",v,Y,n),v===Y?S:this.is0()||v===q?this:T.wNAFCachedUnsafe(this,v,h.normalizeZ,y)}isSmallOrder(){return this.multiplyUnsafe(u).is0()}isTorsionFree(){return T.unsafeLadder(this,n).is0()}toAffine(g){return F(this,g)}clearCofactor(){const{h:g}=t;return g===q?this:this.multiplyUnsafe(g)}static fromHex(g,y=!1){const{d:v,a:O}=t,x=r.BYTES;g=X("pointHex",g,x),He("zip215",y);const R=g.slice(),M=g[x-1];R[x-1]=M&-129;const U=Ce(R),P=y?f:r.ORDER;pe("pointHex.y",U,Y,P);const k=a(U*U),$=a(k-q),G=a(v*k-O);let{isValid:J,value:V}=D($,G);if(!J)throw new Error("Point.fromHex: invalid y coordinate");const Q=(V&q)===q,ne=(M&128)!==0;if(!y&&V===Y&&ne)throw new Error("Point.fromHex: x=0 and x_0=1");return ne!==Q&&(V=a(-V)),h.fromAffine({x:V,y:U})}static fromPrivateKey(g){return I(g).point}toRawBytes(){const{x:g,y}=this.toAffine(),v=et(y,r.BYTES);return v[v.length-1]|=g&q?128:0,v}toHex(){return ct(this.toRawBytes())}}h.BASE=new h(t.Gx,t.Gy,q,a(t.Gx*t.Gy)),h.ZERO=new h(Y,q,q,Y);const{BASE:E,ZERO:S}=h,T=zo(h,c*8);function B(_){return L(_,n)}function C(_){return B(Ce(_))}function I(_){const g=r.BYTES;_=X("private key",_,g);const y=X("hashed private key",i(_),2*g),v=b(y.slice(0,g)),O=y.slice(g,2*g),x=C(v),R=E.multiply(x),M=R.toRawBytes();return{head:v,prefix:O,scalar:x,point:R,pointBytes:M}}function ae(_){return I(_).pointBytes}function re(_=new Uint8Array,...g){const y=Mt(...g);return C(i(l(y,X("context",_),!!o)))}function ce(_,g,y={}){_=X("message",_),o&&(_=o(_));const{prefix:v,scalar:O,pointBytes:x}=I(g),R=re(y.context,v,_),M=E.multiply(R).toRawBytes(),U=re(y.context,M,x,_),P=B(R+U*O);pe("signature.s",P,Y,n);const k=Mt(M,et(P,r.BYTES));return X("result",k,r.BYTES*2)}const de=Vo;function Ie(_,g,y,v=de){const{context:O,zip215:x}=v,R=r.BYTES;_=X("signature",_,2*R),g=X("message",g),y=X("publicKey",y,R),x!==void 0&&He("zip215",x),o&&(g=o(g));const M=Ce(_.slice(R,2*R));let U,P,k;try{U=h.fromHex(y,x),P=h.fromHex(_.slice(0,R),x),k=E.multiplyUnsafe(M)}catch{return!1}if(!x&&U.isSmallOrder())return!1;const $=re(O,P.toRawBytes(),U.toRawBytes(),g);return P.add(U.multiplyUnsafe($)).subtract(k).clearCofactor().equals(h.ZERO)}return E._setWindowSize(8),{CURVE:t,getPublicKey:ae,sign:ce,verify:Ie,ExtendedPoint:h,utils:{getExtendedPublicKey:I,randomPrivateKey:()=>s(r.BYTES),precompute(_=8,g=h.BASE){return g._setWindowSize(_),g.multiply(BigInt(3)),g}}}}BigInt(0),BigInt(1);const lt=BigInt("57896044618658097711785492504343953926634992332820282019728792003956564819949"),zt=BigInt("19681161376707505956807079304988542015446066515923890162744021073123829784752");BigInt(0);const Go=BigInt(1),Ht=BigInt(2);BigInt(3);const Jo=BigInt(5),Zo=BigInt(8);function Xo(e){const t=BigInt(10),r=BigInt(20),n=BigInt(40),o=BigInt(80),i=lt,s=e*e%i*e%i,c=K(s,Ht,i)*s%i,u=K(c,Go,i)*e%i,f=K(u,Jo,i)*u%i,a=K(f,t,i)*f%i,d=K(a,r,i)*a%i,D=K(d,n,i)*d%i,b=K(D,o,i)*D%i,l=K(b,o,i)*D%i,p=K(l,t,i)*f%i;return{pow_p_5_8:K(p,Ht,i)*e%i,b2:s}}function Qo(e){return e[0]&=248,e[31]&=127,e[31]|=64,e}function ei(e,t){const r=lt,n=L(t*t*t,r),o=L(n*n*t,r),i=Xo(e*o).pow_p_5_8;let s=L(e*n*i,r);const c=L(t*s*s,r),u=s,f=L(s*zt,r),a=c===e,d=c===L(-e,r),D=c===L(-e*zt,r);return a&&(s=u),(d||D)&&(s=f),Io(s,r)&&(s=L(-s,r)),{isValid:a||d,value:s}}const ti=mr(lt,void 0,!0),ri={a:BigInt(-1),d:BigInt("37095705934669439343138083508754565189542113879843219016388785533085940283555"),Fp:ti,n:BigInt("7237005577332262213973186563042994240857116359379907606001950938285454250989"),h:Zo,Gx:BigInt("15112221349535400772501151409588531511454012693041857206046113283949847762202"),Gy:BigInt("46316835694926478169428394003475163141307993866256225615783033603165251855960"),hash:_o,randomBytes:Dr,adjustScalarBytes:Qo,uvRatio:ei},vr=Ko(ri),ni="EdDSA",oi="JWT",Oe=".",Re="base64url",Ar="utf8",Sr="utf8",ii=":",si="did",ui="key",$t="base58btc",ai="z",ci="K36",fi=32;function ht(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Cr(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?ht(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function Or(e,t){t||(t=e.reduce((o,i)=>o+i.length,0));const r=Cr(t);let n=0;for(const o of e)r.set(o,n),n+=o.length;return ht(r)}function li(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var o=0;o<e.length;o++){var i=e.charAt(o),s=i.charCodeAt(0);if(r[s]!==255)throw new TypeError(i+" is ambiguous");r[s]=o}var c=e.length,u=e.charAt(0),f=Math.log(c)/Math.log(256),a=Math.log(256)/Math.log(c);function d(l){if(l instanceof Uint8Array||(ArrayBuffer.isView(l)?l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength):Array.isArray(l)&&(l=Uint8Array.from(l))),!(l instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(l.length===0)return"";for(var p=0,m=0,F=0,w=l.length;F!==w&&l[F]===0;)F++,p++;for(var h=(w-F)*a+1>>>0,E=new Uint8Array(h);F!==w;){for(var S=l[F],T=0,B=h-1;(S!==0||T<m)&&B!==-1;B--,T++)S+=256*E[B]>>>0,E[B]=S%c>>>0,S=S/c>>>0;if(S!==0)throw new Error("Non-zero carry");m=T,F++}for(var C=h-m;C!==h&&E[C]===0;)C++;for(var I=u.repeat(p);C<h;++C)I+=e.charAt(E[C]);return I}function D(l){if(typeof l!="string")throw new TypeError("Expected String");if(l.length===0)return new Uint8Array;var p=0;if(l[p]!==" "){for(var m=0,F=0;l[p]===u;)m++,p++;for(var w=(l.length-p)*f+1>>>0,h=new Uint8Array(w);l[p];){var E=r[l.charCodeAt(p)];if(E===255)return;for(var S=0,T=w-1;(E!==0||S<F)&&T!==-1;T--,S++)E+=c*h[T]>>>0,h[T]=E%256>>>0,E=E/256>>>0;if(E!==0)throw new Error("Non-zero carry");F=S,p++}if(l[p]!==" "){for(var B=w-F;B!==w&&h[B]===0;)B++;for(var C=new Uint8Array(m+(w-B)),I=m;B!==w;)C[I++]=h[B++];return C}}}function b(l){var p=D(l);if(p)return p;throw new Error(`Non-${t} character`)}return{encode:d,decodeUnsafe:D,decode:b}}var hi=li,di=hi;const xr=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},Di=e=>new TextEncoder().encode(e),bi=e=>new TextDecoder().decode(e);class pi{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class gi{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return Br(this,t)}}class wi{constructor(t){this.decoders=t}or(t){return Br(this,t)}decode(t){const r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const Br=(e,t)=>new wi({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class Ei{constructor(t,r,n,o){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=o,this.encoder=new pi(t,r,n),this.decoder=new gi(t,r,o)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Ne=({name:e,prefix:t,encode:r,decode:n})=>new Ei(e,t,r,n),ye=({prefix:e,name:t,alphabet:r})=>{const{encode:n,decode:o}=di(r,t);return Ne({prefix:e,name:t,encode:n,decode:i=>xr(o(i))})},yi=(e,t,r,n)=>{const o={};for(let a=0;a<t.length;++a)o[t[a]]=a;let i=e.length;for(;e[i-1]==="=";)--i;const s=new Uint8Array(i*r/8|0);let c=0,u=0,f=0;for(let a=0;a<i;++a){const d=o[e[a]];if(d===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|d,c+=r,c>=8&&(c-=8,s[f++]=255&u>>c)}if(c>=r||255&u<<8-c)throw new SyntaxError("Unexpected end of data");return s},mi=(e,t,r)=>{const n=t[t.length-1]==="=",o=(1<<r)-1;let i="",s=0,c=0;for(let u=0;u<e.length;++u)for(c=c<<8|e[u],s+=8;s>r;)s-=r,i+=t[o&c>>s];if(s&&(i+=t[o&c<<r-s]),n)for(;i.length*r&7;)i+="=";return i},z=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>Ne({prefix:t,name:e,encode(o){return mi(o,n,r)},decode(o){return yi(o,n,r,e)}}),Fi=Ne({prefix:"\0",name:"identity",encode:e=>bi(e),decode:e=>Di(e)});var _i=Object.freeze({__proto__:null,identity:Fi});const vi=z({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1});var Ai=Object.freeze({__proto__:null,base2:vi});const Si=z({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3});var Ci=Object.freeze({__proto__:null,base8:Si});const Oi=ye({prefix:"9",name:"base10",alphabet:"0123456789"});var xi=Object.freeze({__proto__:null,base10:Oi});const Bi=z({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),Ri=z({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4});var Ni=Object.freeze({__proto__:null,base16:Bi,base16upper:Ri});const Ti=z({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),Ui=z({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),Ii=z({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Mi=z({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),Pi=z({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),ji=z({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Li=z({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Wi=z({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),ki=z({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5});var zi=Object.freeze({__proto__:null,base32:Ti,base32upper:Ui,base32pad:Ii,base32padupper:Mi,base32hex:Pi,base32hexupper:ji,base32hexpad:Li,base32hexpadupper:Wi,base32z:ki});const Hi=ye({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),$i=ye({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"});var qi=Object.freeze({__proto__:null,base36:Hi,base36upper:$i});const Vi=ye({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Yi=ye({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"});var Ki=Object.freeze({__proto__:null,base58btc:Vi,base58flickr:Yi});const Gi=z({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Ji=z({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Zi=z({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),Xi=z({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6});var Qi=Object.freeze({__proto__:null,base64:Gi,base64pad:Ji,base64url:Zi,base64urlpad:Xi});const Rr=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),es=Rr.reduce((e,t,r)=>(e[r]=t,e),[]),ts=Rr.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function rs(e){return e.reduce((t,r)=>(t+=es[r],t),"")}function ns(e){const t=[];for(const r of e){const n=ts[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}const os=Ne({prefix:"🚀",name:"base256emoji",encode:rs,decode:ns});var is=Object.freeze({__proto__:null,base256emoji:os}),ss=Nr,qt=128,us=-128,as=Math.pow(2,31);function Nr(e,t,r){t=t||[],r=r||0;for(var n=r;e>=as;)t[r++]=e&255|qt,e/=128;for(;e&us;)t[r++]=e&255|qt,e>>>=7;return t[r]=e|0,Nr.bytes=r-n+1,t}var cs=rt,fs=128,Vt=127;function rt(e,n){var r=0,n=n||0,o=0,i=n,s,c=e.length;do{if(i>=c)throw rt.bytes=0,new RangeError("Could not decode varint");s=e[i++],r+=o<28?(s&Vt)<<o:(s&Vt)*Math.pow(2,o),o+=7}while(s>=fs);return rt.bytes=i-n,r}var ls=Math.pow(2,7),hs=Math.pow(2,14),ds=Math.pow(2,21),Ds=Math.pow(2,28),bs=Math.pow(2,35),ps=Math.pow(2,42),gs=Math.pow(2,49),ws=Math.pow(2,56),Es=Math.pow(2,63),ys=function(e){return e<ls?1:e<hs?2:e<ds?3:e<Ds?4:e<bs?5:e<ps?6:e<gs?7:e<ws?8:e<Es?9:10},ms={encode:ss,decode:cs,encodingLength:ys},Tr=ms;const Yt=(e,t,r=0)=>(Tr.encode(e,t,r),t),Kt=e=>Tr.encodingLength(e),nt=(e,t)=>{const r=t.byteLength,n=Kt(e),o=n+Kt(r),i=new Uint8Array(o+r);return Yt(e,i,0),Yt(r,i,n),i.set(t,o),new Fs(e,r,t,i)};class Fs{constructor(t,r,n,o){this.code=t,this.size=r,this.digest=n,this.bytes=o}}const Ur=({name:e,code:t,encode:r})=>new _s(e,t,r);class _s{constructor(t,r,n){this.name=t,this.code=r,this.encode=n}digest(t){if(t instanceof Uint8Array){const r=this.encode(t);return r instanceof Uint8Array?nt(this.code,r):r.then(n=>nt(this.code,n))}else throw Error("Unknown type, must be binary type")}}const Ir=e=>async t=>new Uint8Array(await crypto.subtle.digest(e,t)),vs=Ur({name:"sha2-256",code:18,encode:Ir("SHA-256")}),As=Ur({name:"sha2-512",code:19,encode:Ir("SHA-512")});var Ss=Object.freeze({__proto__:null,sha256:vs,sha512:As});const Mr=0,Cs="identity",Pr=xr,Os=e=>nt(Mr,Pr(e)),xs={code:Mr,name:Cs,encode:Pr,digest:Os};var Bs=Object.freeze({__proto__:null,identity:xs});new TextEncoder,new TextDecoder;const Gt={..._i,...Ai,...Ci,...xi,...Ni,...zi,...qi,...Ki,...Qi,...is};({...Ss,...Bs});function jr(e,t,r,n){return{name:e,prefix:t,encoder:{name:e,prefix:t,encode:r},decoder:{decode:n}}}const Jt=jr("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),Ge=jr("ascii","a",e=>{let t="a";for(let r=0;r<e.length;r++)t+=String.fromCharCode(e[r]);return t},e=>{e=e.substring(1);const t=Cr(e.length);for(let r=0;r<e.length;r++)t[r]=e.charCodeAt(r);return t}),Lr={utf8:Jt,"utf-8":Jt,hex:Gt.base16,latin1:Ge,ascii:Ge,binary:Ge,...Gt};function Te(e,t="utf8"){const r=Lr[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):r.encoder.encode(e).substring(1)}function he(e,t="utf8"){const r=Lr[t];if(!r)throw new Error(`Unsupported encoding "${t}"`);return(t==="utf8"||t==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?ht(globalThis.Buffer.from(e,"utf-8")):r.decoder.decode(`${r.prefix}${e}`)}function Zt(e){return fr(Te(he(e,Re),Ar))}function xe(e){return Te(he(lr(e),Ar),Re)}function Rs(e){const t=he(ci,$t),r=ai+Te(Or([t,e]),$t);return[si,ui,r].join(ii)}function Ns(e){return Te(e,Re)}function Ts(e){return he(e,Re)}function Us(e){return he([xe(e.header),xe(e.payload)].join(Oe),Sr)}function Is(e){return[xe(e.header),xe(e.payload),Ns(e.signature)].join(Oe)}function va(e){const t=e.split(Oe),r=Zt(t[0]),n=Zt(t[1]),o=Ts(t[2]),i=he(t.slice(0,2).join(Oe),Sr);return{header:r,payload:n,signature:o,data:i}}function Aa(e=Dr(fi)){const t=vr.getPublicKey(e);return{secretKey:Or([e,t]),publicKey:t}}async function Sa(e,t,r,n,o=it.fromMiliseconds(Date.now())){const i={alg:ni,typ:oi},s=Rs(n.publicKey),c=o+r,u={iss:s,sub:e,aud:t,iat:o,exp:c},f=Us({header:i,payload:u}),a=vr.sign(f,n.secretKey.slice(0,32));return Is({header:i,payload:u,signature:a})}var Xt=function(e,t,r){if(r||arguments.length===2)for(var n=0,o=t.length,i;n<o;n++)(i||!(n in t))&&(i||(i=Array.prototype.slice.call(t,0,n)),i[n]=t[n]);return e.concat(i||Array.prototype.slice.call(t))},Ms=(function(){function e(t,r,n){this.name=t,this.version=r,this.os=n,this.type="browser"}return e})(),Ps=(function(){function e(t){this.version=t,this.type="node",this.name="node",this.os=Se.platform}return e})(),js=(function(){function e(t,r,n,o){this.name=t,this.version=r,this.os=n,this.bot=o,this.type="bot-device"}return e})(),Ls=(function(){function e(){this.type="bot",this.bot=!0,this.name="bot",this.version=null,this.os=null}return e})(),Ws=(function(){function e(){this.type="react-native",this.name="react-native",this.version=null,this.os=null}return e})(),ks=/alexa|bot|crawl(er|ing)|facebookexternalhit|feedburner|google web preview|nagios|postrank|pingdom|slurp|spider|yahoo!|yandex/,zs=/(nuhk|curl|Googlebot|Yammybot|Openbot|Slurp|MSNBot|Ask\ Jeeves\/Teoma|ia_archiver)/,Qt=3,Hs=[["aol",/AOLShield\/([0-9\._]+)/],["edge",/Edge\/([0-9\._]+)/],["edge-ios",/EdgiOS\/([0-9\._]+)/],["yandexbrowser",/YaBrowser\/([0-9\._]+)/],["kakaotalk",/KAKAOTALK\s([0-9\.]+)/],["samsung",/SamsungBrowser\/([0-9\.]+)/],["silk",/\bSilk\/([0-9._-]+)\b/],["miui",/MiuiBrowser\/([0-9\.]+)$/],["beaker",/BeakerBrowser\/([0-9\.]+)/],["edge-chromium",/EdgA?\/([0-9\.]+)/],["chromium-webview",/(?!Chrom.*OPR)wv\).*Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["chrome",/(?!Chrom.*OPR)Chrom(?:e|ium)\/([0-9\.]+)(:?\s|$)/],["phantomjs",/PhantomJS\/([0-9\.]+)(:?\s|$)/],["crios",/CriOS\/([0-9\.]+)(:?\s|$)/],["firefox",/Firefox\/([0-9\.]+)(?:\s|$)/],["fxios",/FxiOS\/([0-9\.]+)/],["opera-mini",/Opera Mini.*Version\/([0-9\.]+)/],["opera",/Opera\/([0-9\.]+)(?:\s|$)/],["opera",/OPR\/([0-9\.]+)(:?\s|$)/],["pie",/^Microsoft Pocket Internet Explorer\/(\d+\.\d+)$/],["pie",/^Mozilla\/\d\.\d+\s\(compatible;\s(?:MSP?IE|MSInternet Explorer) (\d+\.\d+);.*Windows CE.*\)$/],["netfront",/^Mozilla\/\d\.\d+.*NetFront\/(\d.\d)/],["ie",/Trident\/7\.0.*rv\:([0-9\.]+).*\).*Gecko$/],["ie",/MSIE\s([0-9\.]+);.*Trident\/[4-7].0/],["ie",/MSIE\s(7\.0)/],["bb10",/BB10;\sTouch.*Version\/([0-9\.]+)/],["android",/Android\s([0-9\.]+)/],["ios",/Version\/([0-9\._]+).*Mobile.*Safari.*/],["safari",/Version\/([0-9\._]+).*Safari/],["facebook",/FB[AS]V\/([0-9\.]+)/],["instagram",/Instagram\s([0-9\.]+)/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Mobile/],["ios-webview",/AppleWebKit\/([0-9\.]+).*Gecko\)$/],["curl",/^curl\/([0-9\.]+)$/],["searchbot",ks]],er=[["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 Ca(e){return typeof document>"u"&&typeof navigator<"u"&&navigator.product==="ReactNative"?new Ws:typeof navigator<"u"?qs(navigator.userAgent):Ys()}function $s(e){return e!==""&&Hs.reduce(function(t,r){var n=r[0],o=r[1];if(t)return t;var i=o.exec(e);return!!i&&[n,i]},!1)}function qs(e){var t=$s(e);if(!t)return null;var r=t[0],n=t[1];if(r==="searchbot")return new Ls;var o=n[1]&&n[1].split(".").join("_").split("_").slice(0,3);o?o.length<Qt&&(o=Xt(Xt([],o,!0),Ks(Qt-o.length),!0)):o=[];var i=o.join("."),s=Vs(e),c=zs.exec(e);return c&&c[1]?new js(r,i,s,c[1]):new Ms(r,i,s)}function Vs(e){for(var t=0,r=er.length;t<r;t++){var n=er[t],o=n[0],i=n[1],s=i.exec(e);if(s)return o}return null}function Ys(){var e=typeof Se<"u"&&Se.version;return e?new Ps(Se.version.slice(1)):null}function Ks(e){for(var t=[],r=0;r<e;r++)t.push("0");return t}var N={},tr;function Wr(){if(tr)return N;tr=1,Object.defineProperty(N,"__esModule",{value:!0}),N.getLocalStorage=N.getLocalStorageOrThrow=N.getCrypto=N.getCryptoOrThrow=N.getLocation=N.getLocationOrThrow=N.getNavigator=N.getNavigatorOrThrow=N.getDocument=N.getDocumentOrThrow=N.getFromWindowOrThrow=N.getFromWindow=void 0;function e(D){let b;return typeof window<"u"&&typeof window[D]<"u"&&(b=window[D]),b}N.getFromWindow=e;function t(D){const b=e(D);if(!b)throw new Error(`${D} is not defined in Window`);return b}N.getFromWindowOrThrow=t;function r(){return t("document")}N.getDocumentOrThrow=r;function n(){return e("document")}N.getDocument=n;function o(){return t("navigator")}N.getNavigatorOrThrow=o;function i(){return e("navigator")}N.getNavigator=i;function s(){return t("location")}N.getLocationOrThrow=s;function c(){return e("location")}N.getLocation=c;function u(){return t("crypto")}N.getCryptoOrThrow=u;function f(){return e("crypto")}N.getCrypto=f;function a(){return t("localStorage")}N.getLocalStorageOrThrow=a;function d(){return e("localStorage")}return N.getLocalStorage=d,N}var Oa=Wr(),ge={},rr;function Gs(){if(rr)return ge;rr=1,Object.defineProperty(ge,"__esModule",{value:!0}),ge.getWindowMetadata=void 0;const e=Wr();function t(){let r,n;try{r=e.getDocumentOrThrow(),n=e.getLocationOrThrow()}catch{return null}function o(){const b=r.getElementsByTagName("link"),l=[];for(let p=0;p<b.length;p++){const m=b[p],F=m.getAttribute("rel");if(F&&F.toLowerCase().indexOf("icon")>-1){const w=m.getAttribute("href");if(w)if(w.toLowerCase().indexOf("https:")===-1&&w.toLowerCase().indexOf("http:")===-1&&w.indexOf("//")!==0){let h=n.protocol+"//"+n.host;if(w.indexOf("/")===0)h+=w;else{const E=n.pathname.split("/");E.pop();const S=E.join("/");h+=S+"/"+w}l.push(h)}else if(w.indexOf("//")===0){const h=n.protocol+w;l.push(h)}else l.push(w)}}return l}function i(...b){const l=r.getElementsByTagName("meta");for(let p=0;p<l.length;p++){const m=l[p],F=["itemprop","property","name"].map(w=>m.getAttribute(w)).filter(w=>w?b.includes(w):!1);if(F.length&&F){const w=m.getAttribute("content");if(w)return w}}return""}function s(){let b=i("name","og:site_name","og:title","twitter:title");return b||(b=r.title),b}function c(){return i("description","og:description","twitter:description","keywords")}const u=s(),f=c(),a=n.origin,d=o();return{description:f,url:a,icons:d,name:u}}return ge.getWindowMetadata=t,ge}var xa=Gs();function Js(e,t){if(e.length>=255)throw new TypeError("Alphabet too long");for(var r=new Uint8Array(256),n=0;n<r.length;n++)r[n]=255;for(var o=0;o<e.length;o++){var i=e.charAt(o),s=i.charCodeAt(0);if(r[s]!==255)throw new TypeError(i+" is ambiguous");r[s]=o}var c=e.length,u=e.charAt(0),f=Math.log(c)/Math.log(256),a=Math.log(256)/Math.log(c);function d(l){if(l instanceof Uint8Array||(ArrayBuffer.isView(l)?l=new Uint8Array(l.buffer,l.byteOffset,l.byteLength):Array.isArray(l)&&(l=Uint8Array.from(l))),!(l instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(l.length===0)return"";for(var p=0,m=0,F=0,w=l.length;F!==w&&l[F]===0;)F++,p++;for(var h=(w-F)*a+1>>>0,E=new Uint8Array(h);F!==w;){for(var S=l[F],T=0,B=h-1;(S!==0||T<m)&&B!==-1;B--,T++)S+=256*E[B]>>>0,E[B]=S%c>>>0,S=S/c>>>0;if(S!==0)throw new Error("Non-zero carry");m=T,F++}for(var C=h-m;C!==h&&E[C]===0;)C++;for(var I=u.repeat(p);C<h;++C)I+=e.charAt(E[C]);return I}function D(l){if(typeof l!="string")throw new TypeError("Expected String");if(l.length===0)return new Uint8Array;var p=0;if(l[p]!==" "){for(var m=0,F=0;l[p]===u;)m++,p++;for(var w=(l.length-p)*f+1>>>0,h=new Uint8Array(w);l[p];){var E=r[l.charCodeAt(p)];if(E===255)return;for(var S=0,T=w-1;(E!==0||S<F)&&T!==-1;T--,S++)E+=c*h[T]>>>0,h[T]=E%256>>>0,E=E/256>>>0;if(E!==0)throw new Error("Non-zero carry");F=S,p++}if(l[p]!==" "){for(var B=w-F;B!==w&&h[B]===0;)B++;for(var C=new Uint8Array(m+(w-B)),I=m;B!==w;)C[I++]=h[B++];return C}}}function b(l){var p=D(l);if(p)return p;throw new Error(`Non-${t} character`)}return{encode:d,decodeUnsafe:D,decode:b}}var Zs=Js,Xs=Zs;const Qs=e=>{if(e instanceof Uint8Array&&e.constructor.name==="Uint8Array")return e;if(e instanceof ArrayBuffer)return new Uint8Array(e);if(ArrayBuffer.isView(e))return new Uint8Array(e.buffer,e.byteOffset,e.byteLength);throw new Error("Unknown type, must be binary type")},eu=e=>new TextEncoder().encode(e),tu=e=>new TextDecoder().decode(e);class ru{constructor(t,r,n){this.name=t,this.prefix=r,this.baseEncode=n}encode(t){if(t instanceof Uint8Array)return`${this.prefix}${this.baseEncode(t)}`;throw Error("Unknown type, must be binary type")}}class nu{constructor(t,r,n){if(this.name=t,this.prefix=r,r.codePointAt(0)===void 0)throw new Error("Invalid prefix character");this.prefixCodePoint=r.codePointAt(0),this.baseDecode=n}decode(t){if(typeof t=="string"){if(t.codePointAt(0)!==this.prefixCodePoint)throw Error(`Unable to decode multibase string ${JSON.stringify(t)}, ${this.name} decoder only supports inputs prefixed with ${this.prefix}`);return this.baseDecode(t.slice(this.prefix.length))}else throw Error("Can only multibase decode strings")}or(t){return kr(this,t)}}class ou{constructor(t){this.decoders=t}or(t){return kr(this,t)}decode(t){const r=t[0],n=this.decoders[r];if(n)return n.decode(t);throw RangeError(`Unable to decode multibase string ${JSON.stringify(t)}, only inputs prefixed with ${Object.keys(this.decoders)} are supported`)}}const kr=(e,t)=>new ou({...e.decoders||{[e.prefix]:e},...t.decoders||{[t.prefix]:t}});class iu{constructor(t,r,n,o){this.name=t,this.prefix=r,this.baseEncode=n,this.baseDecode=o,this.encoder=new ru(t,r,n),this.decoder=new nu(t,r,o)}encode(t){return this.encoder.encode(t)}decode(t){return this.decoder.decode(t)}}const Ue=({name:e,prefix:t,encode:r,decode:n})=>new iu(e,t,r,n),me=({prefix:e,name:t,alphabet:r})=>{const{encode:n,decode:o}=Xs(r,t);return Ue({prefix:e,name:t,encode:n,decode:i=>Qs(o(i))})},su=(e,t,r,n)=>{const o={};for(let a=0;a<t.length;++a)o[t[a]]=a;let i=e.length;for(;e[i-1]==="=";)--i;const s=new Uint8Array(i*r/8|0);let c=0,u=0,f=0;for(let a=0;a<i;++a){const d=o[e[a]];if(d===void 0)throw new SyntaxError(`Non-${n} character`);u=u<<r|d,c+=r,c>=8&&(c-=8,s[f++]=255&u>>c)}if(c>=r||255&u<<8-c)throw new SyntaxError("Unexpected end of data");return s},uu=(e,t,r)=>{const n=t[t.length-1]==="=",o=(1<<r)-1;let i="",s=0,c=0;for(let u=0;u<e.length;++u)for(c=c<<8|e[u],s+=8;s>r;)s-=r,i+=t[o&c>>s];if(s&&(i+=t[o&c<<r-s]),n)for(;i.length*r&7;)i+="=";return i},H=({name:e,prefix:t,bitsPerChar:r,alphabet:n})=>Ue({prefix:t,name:e,encode(o){return uu(o,n,r)},decode(o){return su(o,n,r,e)}}),au=Ue({prefix:"\0",name:"identity",encode:e=>tu(e),decode:e=>eu(e)}),cu=Object.freeze(Object.defineProperty({__proto__:null,identity:au},Symbol.toStringTag,{value:"Module"})),fu=H({prefix:"0",name:"base2",alphabet:"01",bitsPerChar:1}),lu=Object.freeze(Object.defineProperty({__proto__:null,base2:fu},Symbol.toStringTag,{value:"Module"})),hu=H({prefix:"7",name:"base8",alphabet:"01234567",bitsPerChar:3}),du=Object.freeze(Object.defineProperty({__proto__:null,base8:hu},Symbol.toStringTag,{value:"Module"})),Du=me({prefix:"9",name:"base10",alphabet:"0123456789"}),bu=Object.freeze(Object.defineProperty({__proto__:null,base10:Du},Symbol.toStringTag,{value:"Module"})),pu=H({prefix:"f",name:"base16",alphabet:"0123456789abcdef",bitsPerChar:4}),gu=H({prefix:"F",name:"base16upper",alphabet:"0123456789ABCDEF",bitsPerChar:4}),wu=Object.freeze(Object.defineProperty({__proto__:null,base16:pu,base16upper:gu},Symbol.toStringTag,{value:"Module"})),Eu=H({prefix:"b",name:"base32",alphabet:"abcdefghijklmnopqrstuvwxyz234567",bitsPerChar:5}),yu=H({prefix:"B",name:"base32upper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567",bitsPerChar:5}),mu=H({prefix:"c",name:"base32pad",alphabet:"abcdefghijklmnopqrstuvwxyz234567=",bitsPerChar:5}),Fu=H({prefix:"C",name:"base32padupper",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZ234567=",bitsPerChar:5}),_u=H({prefix:"v",name:"base32hex",alphabet:"0123456789abcdefghijklmnopqrstuv",bitsPerChar:5}),vu=H({prefix:"V",name:"base32hexupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV",bitsPerChar:5}),Au=H({prefix:"t",name:"base32hexpad",alphabet:"0123456789abcdefghijklmnopqrstuv=",bitsPerChar:5}),Su=H({prefix:"T",name:"base32hexpadupper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUV=",bitsPerChar:5}),Cu=H({prefix:"h",name:"base32z",alphabet:"ybndrfg8ejkmcpqxot1uwisza345h769",bitsPerChar:5}),Ou=Object.freeze(Object.defineProperty({__proto__:null,base32:Eu,base32hex:_u,base32hexpad:Au,base32hexpadupper:Su,base32hexupper:vu,base32pad:mu,base32padupper:Fu,base32upper:yu,base32z:Cu},Symbol.toStringTag,{value:"Module"})),xu=me({prefix:"k",name:"base36",alphabet:"0123456789abcdefghijklmnopqrstuvwxyz"}),Bu=me({prefix:"K",name:"base36upper",alphabet:"0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ"}),Ru=Object.freeze(Object.defineProperty({__proto__:null,base36:xu,base36upper:Bu},Symbol.toStringTag,{value:"Module"})),Nu=me({name:"base58btc",prefix:"z",alphabet:"123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz"}),Tu=me({name:"base58flickr",prefix:"Z",alphabet:"123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ"}),Uu=Object.freeze(Object.defineProperty({__proto__:null,base58btc:Nu,base58flickr:Tu},Symbol.toStringTag,{value:"Module"})),Iu=H({prefix:"m",name:"base64",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",bitsPerChar:6}),Mu=H({prefix:"M",name:"base64pad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=",bitsPerChar:6}),Pu=H({prefix:"u",name:"base64url",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_",bitsPerChar:6}),ju=H({prefix:"U",name:"base64urlpad",alphabet:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_=",bitsPerChar:6}),Lu=Object.freeze(Object.defineProperty({__proto__:null,base64:Iu,base64pad:Mu,base64url:Pu,base64urlpad:ju},Symbol.toStringTag,{value:"Module"})),zr=Array.from("🚀🪐☄🛰🌌🌑🌒🌓🌔🌕🌖🌗🌘🌍🌏🌎🐉☀💻🖥💾💿😂❤😍🤣😊🙏💕😭😘👍😅👏😁🔥🥰💔💖💙😢🤔😆🙄💪😉☺👌🤗💜😔😎😇🌹🤦🎉💞✌✨🤷😱😌🌸🙌😋💗💚😏💛🙂💓🤩😄😀🖤😃💯🙈👇🎶😒🤭❣😜💋👀😪😑💥🙋😞😩😡🤪👊🥳😥🤤👉💃😳✋😚😝😴🌟😬🙃🍀🌷😻😓⭐✅🥺🌈😈🤘💦✔😣🏃💐☹🎊💘😠☝😕🌺🎂🌻😐🖕💝🙊😹🗣💫💀👑🎵🤞😛🔴😤🌼😫⚽🤙☕🏆🤫👈😮🙆🍻🍃🐶💁😲🌿🧡🎁⚡🌞🎈❌✊👋😰🤨😶🤝🚶💰🍓💢🤟🙁🚨💨🤬✈🎀🍺🤓😙💟🌱😖👶🥴▶➡❓💎💸⬇😨🌚🦋😷🕺⚠🙅😟😵👎🤲🤠🤧📌🔵💅🧐🐾🍒😗🤑🌊🤯🐷☎💧😯💆👆🎤🙇🍑❄🌴💣🐸💌📍🥀🤢👅💡💩👐📸👻🤐🤮🎼🥵🚩🍎🍊👼💍📣🥂"),Wu=zr.reduce((e,t,r)=>(e[r]=t,e),[]),ku=zr.reduce((e,t,r)=>(e[t.codePointAt(0)]=r,e),[]);function zu(e){return e.reduce((t,r)=>(t+=Wu[r],t),"")}function Hu(e){const t=[];for(const r of e){const n=ku[r.codePointAt(0)];if(n===void 0)throw new Error(`Non-base256emoji character: ${r}`);t.push(n)}return new Uint8Array(t)}const $u=Ue({prefix:"🚀",name:"base256emoji",encode:zu,decode:Hu}),qu=Object.freeze(Object.defineProperty({__proto__:null,base256emoji:$u},Symbol.toStringTag,{value:"Module"}));new TextEncoder;new TextDecoder;const Ba={...cu,...lu,...du,...bu,...wu,...Ou,...Ru,...Uu,...Lu,...qu},Ra={waku:{publish:"waku_publish",batchPublish:"waku_batchPublish",subscribe:"waku_subscribe",batchSubscribe:"waku_batchSubscribe",subscription:"waku_subscription",unsubscribe:"waku_unsubscribe",batchUnsubscribe:"waku_batchUnsubscribe",batchFetchMessages:"waku_batchFetchMessages"},irn:{publish:"irn_publish",batchPublish:"irn_batchPublish",subscribe:"irn_subscribe",batchSubscribe:"irn_batchSubscribe",subscription:"irn_subscription",unsubscribe:"irn_unsubscribe",batchUnsubscribe:"irn_batchUnsubscribe",batchFetchMessages:"irn_batchFetchMessages"},iridium:{publish:"iridium_publish",batchPublish:"iridium_batchPublish",subscribe:"iridium_subscribe",batchSubscribe:"iridium_batchSubscribe",subscription:"iridium_subscription",unsubscribe:"iridium_unsubscribe",batchUnsubscribe:"iridium_batchUnsubscribe",batchFetchMessages:"iridium_batchFetchMessages"}},Vu="PARSE_ERROR",Yu="INVALID_REQUEST",Ku="METHOD_NOT_FOUND",Gu="INVALID_PARAMS",Hr="INTERNAL_ERROR",dt="SERVER_ERROR",Ju=[-32700,-32600,-32601,-32602,-32603],we={[Vu]:{code:-32700,message:"Parse error"},[Yu]:{code:-32600,message:"Invalid Request"},[Ku]:{code:-32601,message:"Method not found"},[Gu]:{code:-32602,message:"Invalid params"},[Hr]:{code:-32603,message:"Internal error"},[dt]:{code:-32e3,message:"Server error"}},$r=dt;function Zu(e){return Ju.includes(e)}function nr(e){return Object.keys(we).includes(e)?we[e]:we[$r]}function Xu(e){const t=Object.values(we).find(r=>r.code===e);return t||we[$r]}function Qu(e,t,r){return e.message.includes("getaddrinfo ENOTFOUND")||e.message.includes("connect ECONNREFUSED")?new Error(`Unavailable ${r} RPC url at ${t}`):e}function qr(e=3){const t=Date.now()*Math.pow(10,e),r=Math.floor(Math.random()*Math.pow(10,e));return t+r}function ea(e=6){return BigInt(qr(e))}function ta(e,t,r){return{id:r||qr(),jsonrpc:"2.0",method:e,params:t}}function Na(e,t){return{id:e,jsonrpc:"2.0",result:t}}function ra(e,t,r){return{id:e,jsonrpc:"2.0",error:na(t)}}function na(e,t){return typeof e>"u"?nr(Hr):(typeof e=="string"&&(e=Object.assign(Object.assign({},nr(dt)),{message:e})),Zu(e.code)&&(e=Xu(e.code)),e)}class oa{}class ia extends oa{constructor(){super()}}class sa extends ia{constructor(t){super()}}const ua="^https?:",aa="^wss?:";function ca(e){const t=e.match(new RegExp(/^\w+:/,"gi"));if(!(!t||!t.length))return t[0]}function Vr(e,t){const r=ca(e);return typeof r>"u"?!1:new RegExp(t).test(r)}function Ta(e){return Vr(e,ua)}function or(e){return Vr(e,aa)}function fa(e){return new RegExp("wss?://localhost(:d{2,5})?").test(e)}function Yr(e){return typeof e=="object"&&"id"in e&&"jsonrpc"in e&&e.jsonrpc==="2.0"}function Ua(e){return Yr(e)&&"method"in e}function la(e){return Yr(e)&&(ha(e)||Kr(e))}function ha(e){return"result"in e}function Kr(e){return"error"in e}class Ia extends sa{constructor(t){super(t),this.events=new ot.EventEmitter,this.hasRegisteredEventListeners=!1,this.connection=this.setConnection(t),this.connection.connected&&this.registerEventListeners()}async connect(t=this.connection){await this.open(t)}async disconnect(){await this.close()}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async request(t,r){return this.requestStrict(ta(t.method,t.params||[],t.id||ea().toString()),r)}async requestStrict(t,r){return new Promise(async(n,o)=>{if(!this.connection.connected)try{await this.open()}catch(i){o(i)}this.events.on(`${t.id}`,i=>{Kr(i)?o(i.error):n(i.result)});try{await this.connection.send(t,r)}catch(i){o(i)}})}setConnection(t=this.connection){return t}onPayload(t){this.events.emit("payload",t),la(t)?this.events.emit(`${t.id}`,t):this.events.emit("message",{type:t.method,data:t.params})}onClose(t){t&&t.code===3e3&&this.events.emit("error",new Error(`WebSocket connection closed abnormally with code: ${t.code} ${t.reason?`(${t.reason})`:""}`)),this.events.emit("disconnect")}async open(t=this.connection){this.connection===t&&this.connection.connected||(this.connection.connected&&this.close(),typeof t=="string"&&(await this.connection.open(t),t=this.connection),this.connection=this.setConnection(t),await this.connection.open(),this.registerEventListeners(),this.events.emit("connect"))}async close(){await this.connection.close()}registerEventListeners(){this.hasRegisteredEventListeners||(this.connection.on("payload",t=>this.onPayload(t)),this.connection.on("close",t=>this.onClose(t)),this.connection.on("error",t=>this.events.emit("error",t)),this.connection.on("register_error",t=>this.onClose()),this.hasRegisteredEventListeners=!0)}}const da=()=>typeof WebSocket<"u"?WebSocket:typeof ue<"u"&&typeof ue.WebSocket<"u"?ue.WebSocket:typeof window<"u"&&typeof window.WebSocket<"u"?window.WebSocket:typeof self<"u"&&typeof self.WebSocket<"u"?self.WebSocket:require("ws"),Da=()=>typeof WebSocket<"u"||typeof ue<"u"&&typeof ue.WebSocket<"u"||typeof window<"u"&&typeof window.WebSocket<"u"||typeof self<"u"&&typeof self.WebSocket<"u",ir=e=>e.split("?")[0],sr=10,ba=da();class Ma{constructor(t){if(this.url=t,this.events=new ot.EventEmitter,this.registering=!1,!or(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);this.url=t}get connected(){return typeof this.socket<"u"}get connecting(){return this.registering}on(t,r){this.events.on(t,r)}once(t,r){this.events.once(t,r)}off(t,r){this.events.off(t,r)}removeListener(t,r){this.events.removeListener(t,r)}async open(t=this.url){await this.register(t)}async close(){return new Promise((t,r)=>{if(typeof this.socket>"u"){r(new Error("Connection already closed"));return}this.socket.onclose=n=>{this.onClose(n),t()},this.socket.close()})}async send(t){typeof this.socket>"u"&&(this.socket=await this.register());try{this.socket.send(lr(t))}catch(r){this.onError(t.id,r)}}register(t=this.url){if(!or(t))throw new Error(`Provided URL is not compatible with WebSocket connection: ${t}`);if(this.registering){const r=this.events.getMaxListeners();return(this.events.listenerCount("register_error")>=r||this.events.listenerCount("open")>=r)&&this.events.setMaxListeners(r+1),new Promise((n,o)=>{this.events.once("register_error",i=>{this.resetMaxListeners(),o(i)}),this.events.once("open",()=>{if(this.resetMaxListeners(),typeof this.socket>"u")return o(new Error("WebSocket connection is missing or invalid"));n(this.socket)})})}return this.url=t,this.registering=!0,new Promise((r,n)=>{const o=on.isReactNative()?void 0:{rejectUnauthorized:!fa(t)},i=new ba(t,[],o);Da()?i.onerror=s=>{const c=s;n(this.emitError(c.error))}:i.on("error",s=>{n(this.emitError(s))}),i.onopen=()=>{this.onOpen(i),r(i)}})}onOpen(t){t.onmessage=r=>this.onPayload(r),t.onclose=r=>this.onClose(r),this.socket=t,this.registering=!1,this.events.emit("open")}onClose(t){this.socket=void 0,this.registering=!1,this.events.emit("close",t)}onPayload(t){if(typeof t.data>"u")return;const r=typeof t.data=="string"?fr(t.data):t.data;this.events.emit("payload",r)}onError(t,r){const n=this.parseError(r),o=n.message||n.toString(),i=ra(t,o);this.events.emit("payload",i)}parseError(t,r=this.url){return Qu(t,ir(r),"WS")}resetMaxListeners(){this.events.getMaxListeners()>sr&&this.events.setMaxListeners(sr)}emitError(t){const r=this.parseError(new Error((t==null?void 0:t.message)||`WebSocket connection failed for host: ${ir(this.url)}`));return this.events.emit("register_error",r),r}}function pa(e){if(e.length>=255)throw new TypeError("Alphabet too long");const t=new Uint8Array(256);for(let f=0;f<t.length;f++)t[f]=255;for(let f=0;f<e.length;f++){const a=e.charAt(f),d=a.charCodeAt(0);if(t[d]!==255)throw new TypeError(a+" is ambiguous");t[d]=f}const r=e.length,n=e.charAt(0),o=Math.log(r)/Math.log(256),i=Math.log(256)/Math.log(r);function s(f){if(f instanceof Uint8Array||(ArrayBuffer.isView(f)?f=new Uint8Array(f.buffer,f.byteOffset,f.byteLength):Array.isArray(f)&&(f=Uint8Array.from(f))),!(f instanceof Uint8Array))throw new TypeError("Expected Uint8Array");if(f.length===0)return"";let a=0,d=0,D=0;const b=f.length;for(;D!==b&&f[D]===0;)D++,a++;const l=(b-D)*i+1>>>0,p=new Uint8Array(l);for(;D!==b;){let w=f[D],h=0;for(let E=l-1;(w!==0||h<d)&&E!==-1;E--,h++)w+=256*p[E]>>>0,p[E]=w%r>>>0,w=w/r>>>0;if(w!==0)throw new Error("Non-zero carry");d=h,D++}let m=l-d;for(;m!==l&&p[m]===0;)m++;let F=n.repeat(a);for(;m<l;++m)F+=e.charAt(p[m]);return F}function c(f){if(typeof f!="string")throw new TypeError("Expected String");if(f.length===0)return new Uint8Array;let a=0,d=0,D=0;for(;f[a]===n;)d++,a++;const b=(f.length-a)*o+1>>>0,l=new Uint8Array(b);for(;a<f.length;){const w=f.charCodeAt(a);if(w>255)return;let h=t[w];if(h===255)return;let E=0;for(let S=b-1;(h!==0||E<D)&&S!==-1;S--,E++)h+=r*l[S]>>>0,l[S]=h%256>>>0,h=h/256>>>0;if(h!==0)throw new Error("Non-zero carry");D=E,a++}let p=b-D;for(;p!==b&&l[p]===0;)p++;const m=new Uint8Array(d+(b-p));let F=d;for(;p!==b;)m[F++]=l[p++];return m}function u(f){const a=c(f);if(a)return a;throw new Error("Non-base"+r+" character")}return{encode:s,decodeUnsafe:c,decode:u}}var ga="123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz";const Pa=pa(ga);export{Ra as C,In as I,Aa as P,Rs as Q,fr as a,Na as b,ta as c,Ba as d,xa as e,ra as f,it as g,Oa as h,Ta as i,Ca as j,va as k,Pa as l,_a as m,cr as n,Ia as o,Qu as p,Ma as q,Pn as r,lr as s,Ua as t,la as u,Sa as v,ea as w,ha as x,Kr as y,qr as z};
15
- //# sourceMappingURL=index-BpdowJC2.js.map
15
+ //# sourceMappingURL=index-DjLd5rYK.js.map
@@ -1,4 +1,4 @@
1
- import{i as _,b as l,a as Te}from"./lit-element-wjYUA6aF.js";import{n as x,o as f,r as h,a as Ie}from"./class-map-C0Rma2l2.js";import{d as U,r as Ne,e as Se,v as ke}from"./index-BVRRpBa3.js";import{c as C,U as _e}from"./index-CvBn_Xli.js";import"./index-9PrFdU4_.js";import"./index-DQ-FlfeW.js";import"./index-DIBmDyug.js";import"./index-B5KflQ_t.js";import"./index-vTEKT3n2.js";import"./index-B8U4q9Eq.js";import"./index-CGxgrphY.js";import{$ as Ce,k as T,a0 as $e,a1 as y,b as O,a2 as Re,a3 as N,O as ce,N as A,a4 as me,C as m,q as v,E as M,S as R,n as Oe,M as G,e as Ue,i as Le,p as qe,o as P,R as z}from"./W3MFrameProviderSingleton-R5ShLfit.js";import{au as I}from"./NetworkUtil-Cppu81Vb.js";import"./index-LBBkA61Q.js";import{M as ge}from"./MathUtil-BvP0JcjY.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]="4ce97621-cf73-407f-99f1-c0000512d878",t._sentryDebugIdIdentifier="sentry-dbid-4ce97621-cf73-407f-99f1-c0000512d878")}catch{}})();const De=U`
1
+ import{i as _,b as l,a as Te}from"./lit-element-wjYUA6aF.js";import{n as x,o as f,r as h,a as Ie}from"./class-map-uVWd2sCT.js";import{d as U,r as Ne,e as Se,v as ke}from"./index-CDtFhkB_.js";import{c as C,U as _e}from"./index-DxeSXDhW.js";import"./index-BsMA9366.js";import"./index-C73O17Kl.js";import"./index-BRDkcfDz.js";import"./index-BWxd86Vj.js";import"./index-CQ25VkJI.js";import"./index-RX4XaJG4.js";import"./index-Ds8cBLDT.js";import{$ as Ce,k as T,a0 as $e,a1 as y,b as O,a2 as Re,a3 as N,O as ce,N as A,a4 as me,C as m,q as v,E as M,S as R,n as Oe,M as G,e as Ue,i as Le,p as qe,o as P,R as z}from"./W3MFrameProviderSingleton-CmmiYZ9j.js";import{au as I}from"./NetworkUtil-ida2KYao.js";import"./index-S7STKBrt.js";import{M as ge}from"./MathUtil-BvP0JcjY.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]="98026700-f036-4dac-bab4-53879aa5a0cc",t._sentryDebugIdIdentifier="sentry-dbid-98026700-f036-4dac-bab4-53879aa5a0cc")}catch{}})();const De=U`
2
2
  :host {
3
3
  position: relative;
4
4
  }
@@ -1062,4 +1062,4 @@ import{i as _,b as l,a as Te}from"./lit-element-wjYUA6aF.js";import{n as x,o as
1062
1062
  ></wui-icon>`}
1063
1063
  </wui-button>
1064
1064
  `}getPaymentAssetFromTokenBalances(){return this.namespace?(this.tokenBalances[this.namespace]??[]).map(i=>{try{return tt(i)}catch{return null}}).filter(i=>!!i).filter(i=>{const{chainId:a}=y.parseCaipNetworkId(i.network),{chainId:o}=y.parseCaipNetworkId(this.paymentAsset.network);return N.isLowerCaseMatch(i.asset,this.paymentAsset.asset)?!0:this.selectedExchange?!N.isLowerCaseMatch(a.toString(),o.toString()):!0}):[]}onTokenBalancesChanged(e){this.tokenBalances=e;const[n]=this.getPaymentAssetFromTokenBalances();n&&u.setSelectedPaymentAsset(n)}async onConnectOtherWallet(){await P.connect(),await G.open({view:"PayQuote"})}onAccountStateChanged(e){const{address:n}=this.caipAddress?y.parseCaipAddress(this.caipAddress):{};if(this.caipAddress=e==null?void 0:e.caipAddress,this.profileName=(e==null?void 0:e.profileName)??null,n){const{address:s}=this.caipAddress?y.parseCaipAddress(this.caipAddress):{};s?N.isLowerCaseMatch(s,n)||(this.resetAssetsState(),this.resetQuoteState(),this.fetchTokens()):G.close()}}onSelectedPaymentAssetChanged(e){this.isFetchingQuote||u.setSelectedPaymentAsset(e)}async onTransfer(){var n,s,i;const e=ie(this.quote);if(e){if(!N.isLowerCaseMatch((n=this.selectedPaymentAsset)==null?void 0:n.asset,e.deposit.currency))throw new Error("Quote asset is not the same as the selected payment asset");const o=((s=this.selectedPaymentAsset)==null?void 0:s.amount)??"0",c=A.formatNumber(e.deposit.amount,{decimals:((i=this.selectedPaymentAsset)==null?void 0:i.metadata.decimals)??0}).toString();if(!A.bigNumber(o).gte(c)){R.showError("Insufficient funds");return}if(this.quote&&this.selectedPaymentAsset&&this.caipAddress&&this.namespace){const{address:L}=y.parseCaipAddress(this.caipAddress);await u.onTransfer({chainNamespace:this.namespace,fromAddress:L,toAddress:e.deposit.receiver,amount:c,paymentAsset:this.selectedPaymentAsset}),u.setRequestId(e.requestId),z.push("PayLoading")}}}async onSendTransactions(){var o,c,g;const e=((o=this.selectedPaymentAsset)==null?void 0:o.amount)??"0",n=A.formatNumber(((c=this.quote)==null?void 0:c.origin.amount)??0,{decimals:((g=this.selectedPaymentAsset)==null?void 0:g.metadata.decimals)??0}).toString();if(!A.bigNumber(e).gte(n)){R.showError("Insufficient funds");return}const i=te(this.quote),[a]=te(this.quote,this.completedTransactionsCount);a&&this.namespace&&(await u.onSendTransaction({namespace:this.namespace,transactionStep:a}),this.completedTransactionsCount+=1,this.completedTransactionsCount===i.length&&(u.setRequestId(a.requestId),z.push("PayLoading")))}onPayWithExchange(){if(this.exchangeUrlForQuote){const e=O.returnOpenHref("","popupWindow","scrollbar=yes,width=480,height=720");if(!e)throw new Error("Could not create popup window");e.location.href=this.exchangeUrlForQuote;const n=ie(this.quote);n&&u.setRequestId(n.requestId),u.initiatePayment(),z.push("PayLoading")}}resetAssetsState(){u.setSelectedPaymentAsset(null)}resetQuoteState(){u.resetQuoteState()}};w.styles=Nt;b([h()],w.prototype,"profileName",void 0);b([h()],w.prototype,"paymentAsset",void 0);b([h()],w.prototype,"namespace",void 0);b([h()],w.prototype,"caipAddress",void 0);b([h()],w.prototype,"amount",void 0);b([h()],w.prototype,"recipient",void 0);b([h()],w.prototype,"activeConnectorIds",void 0);b([h()],w.prototype,"selectedPaymentAsset",void 0);b([h()],w.prototype,"selectedExchange",void 0);b([h()],w.prototype,"isFetchingQuote",void 0);b([h()],w.prototype,"quoteError",void 0);b([h()],w.prototype,"quote",void 0);b([h()],w.prototype,"isFetchingTokenBalances",void 0);b([h()],w.prototype,"tokenBalances",void 0);b([h()],w.prototype,"isPaymentInProgress",void 0);b([h()],w.prototype,"exchangeUrlForQuote",void 0);b([h()],w.prototype,"completedTransactionsCount",void 0);w=b([C("w3m-pay-quote-view")],w);export{p as A,u as P,E as W,d as a,w as b,k as c};
1065
- //# sourceMappingURL=index-o_uA8_89.js.map
1065
+ //# sourceMappingURL=index-DjtvFnLh.js.map
@@ -0,0 +1,2 @@
1
+ import"./react-BG8VKwrs.js";import{r as i}from"./index-D5norgxm.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]="45af14ce-7dc6-46ab-9d71-ab075217d916",e._sentryDebugIdIdentifier="sentry-dbid-45af14ce-7dc6-46ab-9d71-ab075217d916")}catch{}})();function s(e,r){for(var o=0;o<r.length;o++){const t=r[o];if(typeof t!="string"&&!Array.isArray(t)){for(const n in t)if(n!=="default"&&!(n in e)){const d=Object.getOwnPropertyDescriptor(t,n);d&&Object.defineProperty(e,n,d.get?d:{enumerable:!0,get:()=>t[n]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var f=i();const b=s({__proto__:null},[f]);export{b as i};
2
+ //# sourceMappingURL=index-Dn4KZdaA.js.map