@dcl/shop 1.13.1-35585926635.commit-02c8d2e → 1.13.1-35590455689.commit-b96d6aa

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 (254) hide show
  1. package/_assets/{Activity-DoatD7MW.js → Activity-DtmObND1.js} +6 -6
  2. package/_assets/{AnimatedBackground-dVEk0PGp.js → AnimatedBackground-C7LiOBAR.js} +2 -2
  3. package/_assets/Assets-BKSeyg2-.js +990 -0
  4. package/_assets/Cart-BlPpGnda.js +748 -0
  5. package/_assets/{Collection-CPZhq7CU.js → Collection-CcSqRcWT.js} +10 -10
  6. package/_assets/CollectionCarousel-B94cetFe.js +322 -0
  7. package/_assets/{Confetti-Bd901H1c.js → Confetti-BsAs2ze-.js} +4 -4
  8. package/_assets/{ConstantsUtil-Bk0e9ERj.js → ConstantsUtil-C2D8mddi.js} +2 -2
  9. package/_assets/{ContentClient-CWtagBtE.js → ContentClient-CzFsgWm1.js} +2 -2
  10. package/_assets/{Creator-pBuqm0Cj.js → Creator-CJGUaWbh.js} +16 -16
  11. package/_assets/{CreditPackPicker-COb2KClL.js → CreditPackPicker-CsfuFEfj.js} +67 -67
  12. package/_assets/{DeploymentBuilder-Dg-EXfAY.js → DeploymentBuilder-C567uLsW.js} +2 -2
  13. package/_assets/{EmotePlaybackBar-DyYs6qdM.js → EmotePlaybackBar-v4_tU2B8.js} +19 -19
  14. package/_assets/{ErrorNotice-Cm0KaFyV.js → ErrorNotice-Bvb886Qo.js} +2 -2
  15. package/_assets/Event-Dw7dIeEd.js +72 -0
  16. package/_assets/{ExchangeController-BzBrR3ZT.js → ExchangeController-DosyxWhL.js} +2 -2
  17. package/_assets/{Faq-D2noxWN_.js → Faq-CfWixARb.js} +2 -2
  18. package/_assets/{Filters-Dw8HD8Ma.js → Filters-YViPs7N9.js} +9 -9
  19. package/_assets/{GetCredits-BmFWdIGx.js → GetCredits-xHj_8fdJ.js} +22 -27
  20. package/_assets/{Grow-BiGjBqEo.js → Grow-CTV7DbJ0.js} +2 -2
  21. package/_assets/{HelpersUtil-DQga4Ywl.js → HelpersUtil-CH7uwgeQ.js} +2 -2
  22. package/_assets/ItemDetail-CGP_a6DC.js +3411 -0
  23. package/_assets/{LoadMore-i7_riiE5.js → LoadMore-DtjdrYgG.js} +2 -2
  24. package/_assets/{ManaPricingBanner.styles-Dyx_YmBW.js → ManaPricingBanner.styles-DujCFxcW.js} +2 -2
  25. package/_assets/{MyAssets-Bs1a3OD9.js → MyAssets-B6TkqwwO.js} +8 -8
  26. package/_assets/{MyFavorites-C03JcdtN.js → MyFavorites-B44xn-9o.js} +3 -3
  27. package/_assets/{MyStore-ryCuwvDl.js → MyStore-BQ6gSMq1.js} +7 -7
  28. package/_assets/{NetworkUtil-BbMBxyRo.js → NetworkUtil-gznX6ou4.js} +2 -2
  29. package/_assets/{NotFound-DOO8Ql2w.js → NotFound-D7NlwWss.js} +2 -2
  30. package/_assets/{NotificationsBell-VR9lnc9P.js → NotificationsBell-wL661h4k.js} +13 -13
  31. package/_assets/{OutfitDetail-Co1A4WCO.js → OutfitDetail-CSiCaTR7.js} +2 -2
  32. package/_assets/OutfitPreview-CKul99pm.js +7 -0
  33. package/_assets/{OutfitStudio-DGibRraW.js → OutfitStudio-BFVYiWYq.js} +10 -10
  34. package/_assets/PaymentMethodStep-gIGuBdJE.js +370 -0
  35. package/_assets/{SaleCountdown-NdYuBnTu.js → SaleCountdown-2TjAtNVx.js} +2 -2
  36. package/_assets/{Spinner-B5rI43ql.js → Spinner-CRDfDFgI.js} +2 -2
  37. package/_assets/{StoreSettings-C2dwtV13.js → StoreSettings-CWiJDJd-.js} +9 -9
  38. package/_assets/{Success-B6gpri2D.js → Success-BKyyN-pm.js} +2 -2
  39. package/_assets/{SwapController-Di8HGSG3.js → SwapController-DCQKOdcz.js} +2 -2
  40. package/_assets/{Tooltip-Bj-rfWuS.js → Tooltip-DDZC_HFb.js} +2 -2
  41. package/_assets/{TradeService-D2dJeuos.js → TradeService-DfSf1NpN.js} +2 -2
  42. package/_assets/{W3MFrameProviderSingleton-DwbyBYX9.js → W3MFrameProviderSingleton-CrWP7H9X.js} +4 -4
  43. package/_assets/{WebCryptoP256-CZzgSMZW.js → WebCryptoP256-CLuRQdD0.js} +2 -2
  44. package/_assets/{basic-C0ccxPdk.js → basic-CnpinvSd.js} +2 -2
  45. package/_assets/{biconomy-DGsEEV8A.js → biconomy-CQS-_u1K.js} +2 -2
  46. package/_assets/{browseLayout.styles-Dg021Y7v.js → browseLayout.styles-DlEgobcb.js} +2 -2
  47. package/_assets/{browser-DfAY1k2K.js → browser-JmFfz-b9.js} +2 -2
  48. package/_assets/{browser-D3mkrR6N.js → browser-jrXp40VI.js} +2 -2
  49. package/_assets/{browser-ponyfill-C5RB02M7.js → browser-ponyfill-vVJjiRiF.js} +2 -2
  50. package/_assets/{buy-Da1E8jgj.js → buy-DNvl7CRU.js} +2 -2
  51. package/_assets/{buy-gasless-CaUM9sxG.js → buy-gasless-Cd8D2hco.js} +2 -2
  52. package/_assets/cart-checkout-BvFV5K1b.js +2 -0
  53. package/_assets/{categories-DeCaTWZU.js → categories-D2I9oC9p.js} +2 -2
  54. package/_assets/{ccip-CIKPg0_h.js → ccip-D8g0xR6M.js} +2 -2
  55. package/_assets/{ccip-CIPTk6YK.js → ccip-fv1rGl9l.js} +2 -2
  56. package/_assets/{chains-CWGwszpJ.js → chains-rk6oFk-J.js} +2 -2
  57. package/_assets/collectionPage.styles-CNsIHztj.js +41 -0
  58. package/_assets/{common-DamPx7zD.js → common-CMmghlP6.js} +2 -2
  59. package/_assets/{controller-J7h5zgkf.js → controller-l-w-81tc.js} +3 -3
  60. package/_assets/{core-BILweyMC.js → core-BphVSVDd.js} +5 -5
  61. package/_assets/{createSvgIcon-BOJMqAuj.js → createSvgIcon-Ci6-mKZX.js} +4 -4
  62. package/_assets/{crumbs.styles-6TXvIB5e.js → crumbs.styles-DhvCPMDb.js} +2 -2
  63. package/_assets/{custom-CtbaVsvz.js → custom-COOt78S6.js} +2 -2
  64. package/_assets/{data-capture-D_Yc-lFk.js → data-capture-C7thi-6U.js} +5 -5
  65. package/_assets/{dcl-schemas-Do6ePE9M.js → dcl-schemas-rAoTN5Ga.js} +2 -2
  66. package/_assets/{decimals-CPcEXrkP.js → decimals-Dl7Q2CQ8.js} +2 -2
  67. package/_assets/{decimals-fY1-YeOV.js → decimals-DvdfA0Vf.js} +2 -2
  68. package/_assets/{detectExtension-BzGhSQVN.js → detectExtension-CnrRv_RG.js} +2 -2
  69. package/_assets/{disposePreview-BhRqNFqz.js → disposePreview-ZbaLYmpw.js} +2 -2
  70. package/_assets/{email-CDJff6Le.js → email-eSYyd3Ic.js} +7 -7
  71. package/_assets/{embedded-wallet-OlJuY5Lb.js → embedded-wallet-DDuKB0SG.js} +2 -2
  72. package/_assets/{emotion-styled.browser.esm-dqXx08M6.js → emotion-styled.browser.esm-hf9E1adQ.js} +2 -2
  73. package/_assets/{engine-Cqgf8_-e.js → engine-DD67Y28C.js} +2 -2
  74. package/_assets/{errors-COVZQXFS.js → errors-YbnZlxOr.js} +2 -2
  75. package/_assets/{estimate-l1-fee-cwAe5Vqz.js → estimate-l1-fee-Db8Xd1Gz.js} +2 -2
  76. package/_assets/{eth_estimateGas-Bi2jA3d6.js → eth_estimateGas-CuREEErh.js} +2 -2
  77. package/_assets/{eth_getStorageAt-Drv0-oaq.js → eth_getStorageAt-DZSUCK-B.js} +2 -2
  78. package/_assets/{eth_getTransactionCount-u8vibbIm.js → eth_getTransactionCount-BdILqCdx.js} +2 -2
  79. package/_assets/{ethereum-Mtg8xwT8.js → ethereum-B-cyXRfV.js} +2 -2
  80. package/_assets/{ethers-DVrorjJ1.js → ethers-BicPoGF3.js} +2 -2
  81. package/_assets/{events-CcYNTdVN.js → events-CaiMQ2jo.js} +2 -2
  82. package/_assets/{execute-CoAxXj0W.js → execute-DY89Xj7h.js} +3 -3
  83. package/_assets/{extractIPFS-DlbP2Osb.js → extractIPFS-DPI0xl1R.js} +2 -2
  84. package/_assets/{features-DNE6dOZ4.js → features-CuKlQS4a.js} +2 -2
  85. package/_assets/{fetchTokenMetadata-CiNffAhl.js → fetchTokenMetadata-BxkvK3Bm.js} +3 -3
  86. package/_assets/{field.styles-Dsz8I5YB.js → field.styles-DMi6RLqU.js} +2 -2
  87. package/_assets/{fortmatic-B2QacKOL.js → fortmatic-O6xyCC9X.js} +2 -2
  88. package/_assets/{get-bytecode-DCxZ_TJS.js → get-bytecode-Mi4Svfmk.js} +2 -2
  89. package/_assets/{get-ecosystem-wallet-info-Dpf1xtjk.js → get-ecosystem-wallet-info-UP5lf6cZ.js} +2 -2
  90. package/_assets/{getBalance-DacQHsEf.js → getBalance-B6-tJ5BV.js} +3 -3
  91. package/_assets/{getInstalledModules-_KOhu2kj.js → getInstalledModules-BtUgUvpg.js} +2 -2
  92. package/_assets/{getNFT-TgQU4sPn.js → getNFT-BkPMs9B5.js} +3 -3
  93. package/_assets/{getNFT-DLLMJ-N8.js → getNFT-DATmUgAo.js} +2 -2
  94. package/_assets/{grid.styles-zbj0YrVx.js → grid.styles-D0ZoMAGk.js} +2 -2
  95. package/_assets/{hashTypedData-CxzAx589.js → hashTypedData-CefqN4UY.js} +2 -2
  96. package/_assets/{hashTypedData-C4V4k80v.js → hashTypedData-DN22sW92.js} +2 -2
  97. package/_assets/{import-p1kr6qLz.js → import-uY6UfPXb.js} +2 -2
  98. package/_assets/{in-app-niBzraeI.js → in-app-Bny7t-DP.js} +2 -2
  99. package/_assets/{in-app-wallet-calls-Dyorin4y.js → in-app-wallet-calls-DCQO7CRP.js} +2 -2
  100. package/_assets/{index-DeaVX3Ga.js → index--MHqQDZS.js} +2 -2
  101. package/_assets/{index-B39be1Q8.js → index-0GVDw4uz.js} +2 -2
  102. package/_assets/{index-BdTU9iVQ.js → index-6JqTwz5Z.js} +4 -4
  103. package/_assets/{index-CwA52DzI.js → index-7-ubf_-8.js} +2 -2
  104. package/_assets/{index-CpfmSBK0.js → index-72AbyZoi.js} +2 -2
  105. package/_assets/{index-CWJFyp1v.js → index-B-pxbYDD.js} +2 -2
  106. package/_assets/{index-I_W87dfE.js → index-B0ZDNOJc.js} +2 -2
  107. package/_assets/{index-BzKWq7pb.js → index-B5rvK7P3.js} +2 -2
  108. package/_assets/{index-BdhRH7ae.js → index-B5yRX3sO.js} +2 -2
  109. package/_assets/{index-DXmPq_Kc.js → index-B8Miitap.js} +2 -2
  110. package/_assets/{index-CKb-Chs7.js → index-BB2vaXmU.js} +2 -2
  111. package/_assets/{index-D05bb_h6.js → index-BJ_QYYzi.js} +2 -2
  112. package/_assets/{index-pibLOLKX.js → index-BNxapPjc.js} +2 -2
  113. package/_assets/{index-C-cdcYSu.js → index-BUq9yZ3w.js} +5 -5
  114. package/_assets/{index-Dpu-M2gs.js → index-BXZWbQLr.js} +2 -2
  115. package/_assets/{index-Cn-ULh1k.js → index-BXk1eKu5.js} +2 -2
  116. package/_assets/{index-DjQWTjO5.js → index-BYX4J5QP.js} +2 -2
  117. package/_assets/{index-BhPBG2XL.js → index-BdzxJpnV.js} +9 -9
  118. package/_assets/{index-BrTe5eTC.js → index-BvC4isNn.js} +2 -2
  119. package/_assets/{index-CxOzFLm7.js → index-Bwq-s3g2.js} +2 -2
  120. package/_assets/{index-Ddqdlsoi.js → index-BxmlkA7q.js} +2 -2
  121. package/_assets/{index-DUaZ1t6t.js → index-C1VNSD13.js} +2 -2
  122. package/_assets/{index-CWE_Bdvd.js → index-C30kKaUV.js} +2 -2
  123. package/_assets/{index-DpJ4zJ7r.js → index-CDzHP3jq.js} +2 -2
  124. package/_assets/{index-U6lik-J8.js → index-CFX2-tLC.js} +2 -2
  125. package/_assets/{index-Bpbs2w1c.js → index-CM1GTgwu.js} +2 -2
  126. package/_assets/{index-CWc56QrX.js → index-CO1HUlye.js} +2 -2
  127. package/_assets/{index-B1DNuJsS.js → index-CP4g0MYO.js} +2 -2
  128. package/_assets/{index-Cq-Etsdf.js → index-CW8iztAv.js} +2 -2
  129. package/_assets/{index-iRDDuzQN.js → index-CYNOPRoZ.js} +2 -2
  130. package/_assets/{index-CZmSHbVE.js → index-CakMQwPl.js} +2 -2
  131. package/_assets/{index-BEbVm5wA.js → index-CbayBN70.js} +2 -2
  132. package/_assets/{index-DrGWXFkr.js → index-CbiZcfm9.js} +2 -2
  133. package/_assets/{index-ChhJ84F9.js → index-Cg51zZ2k.js} +2 -2
  134. package/_assets/{index-sTnDYGsF.js → index-Crr-s_9f.js} +2 -2
  135. package/_assets/{index-BaeSw32D.js → index-Cz_NLjja.js} +3 -3
  136. package/_assets/{index-CfGsvFRR.js → index-D1s-_zWj.js} +2 -2
  137. package/_assets/{index-_AZXosO6.js → index-D5mE-BZf.js} +2 -2
  138. package/_assets/{index-gg05iP5j.js → index-DBXe-H17.js} +4 -4
  139. package/_assets/{index-BhSgZf6d.css → index-DKFaSnR3.css} +1 -1
  140. package/_assets/{index-CEbyUU5H.js → index-DKolBddb.js} +2 -2
  141. package/_assets/{index-CcTOkZrG.js → index-DLNZA_z3.js} +2 -2
  142. package/_assets/{index-D8M-5R_3.js → index-DVuOEZvs.js} +2 -2
  143. package/_assets/{index-B6iPDUS8.js → index-DXGd7b5m.js} +2 -2
  144. package/_assets/{index-CxNh07aM.js → index-DY5YerbM.js} +3 -3
  145. package/_assets/{index-D8olnnil.js → index-DY6MimDO.js} +2 -2
  146. package/_assets/{index-D_SCQhiC.js → index-D_GN8H-m.js} +2 -2
  147. package/_assets/{index-CwoMLrsB.js → index-Dck2NPjx.js} +2 -2
  148. package/_assets/{index-BC9VPSaU.js → index-Dk93Si47.js} +2 -2
  149. package/_assets/{index-DzWgqsYH.js → index-Dm2tHUTz.js} +2 -2
  150. package/_assets/{index-rsyTCpy-.js → index-Dmr0-dT1.js} +2 -2
  151. package/_assets/{index-Dyy6WQp0.js → index-DtG0vwAQ.js} +5 -5
  152. package/_assets/{index-CRlpbq5e.js → index-DvmOwVBr.js} +2 -2
  153. package/_assets/{index-MqPRfHS_.js → index-HpMk4su8.js} +4 -4
  154. package/_assets/{index-CD44EXbq.js → index-MB1YeHVs.js} +2 -2
  155. package/_assets/{index-DDb_ETfE.js → index-Nax2ER2m.js} +2 -2
  156. package/_assets/{index-y9tZLe7Z.js → index-PCOMQSTj.js} +14 -14
  157. package/_assets/{index-CZEd2SGy.js → index-PdWok5k8.js} +3 -3
  158. package/_assets/{index-Ccey0v_W.js → index-TLvmnU-6.js} +2 -2
  159. package/_assets/{index-Csp5LciJ.js → index-Vx6QrhKv.js} +2 -2
  160. package/_assets/{index-CEVRFChv.js → index-_CzitlLr.js} +2 -2
  161. package/_assets/{index-DLcPHJzx.js → index-fKOqL46i.js} +2 -2
  162. package/_assets/{index-WiX7N7NB.js → index-gLJ8elkH.js} +2 -2
  163. package/_assets/{index-BgrkbkKX.js → index-oZ1tZhJd.js} +3 -3
  164. package/_assets/{index-BW2_mJUZ.js → index-os35Oj8Y.js} +3 -3
  165. package/_assets/{index-PmcUrVFZ.js → index-tJJoQndL.js} +2 -2
  166. package/_assets/{index-B1-eV0Yy.js → index-ujlY03pm.js} +2 -2
  167. package/_assets/{index-C9RSadCu.js → index-xFEDZfFw.js} +2 -2
  168. package/_assets/{index.es-CWkiohwA.js → index.es-BA-gf3fx.js} +2 -2
  169. package/_assets/{index.es-CPftFMVM.js → index.es-DXZDtwqn.js} +2 -2
  170. package/_assets/{index.es-BZZFX7UO.js → index.es-naJ1lYo9.js} +2 -2
  171. package/_assets/{index.es-p9GOzpcM.js → index.es-ug1d0j5_.js} +5 -5
  172. package/_assets/{items-empty-D3SdcrUb.js → items-empty-DQe16EqO.js} +2 -2
  173. package/_assets/{jump-BLEV_WoY.js → jump-CDi48t17.js} +2 -2
  174. package/_assets/{linkAccount-DAFP48le.js → linkAccount-D2r-_PNt.js} +2 -2
  175. package/_assets/{localBatchGatewayRequest-dB8Wq4kD.js → localBatchGatewayRequest-DCZrRD0b.js} +2 -2
  176. package/_assets/{modal.styles-C5SxmNLg.js → modal.styles-B9NcZpH1.js} +2 -2
  177. package/_assets/{native-CBQhq49N.js → native-CsJDQkEo.js} +2 -2
  178. package/_assets/{networks-8H1PRpMW.js → networks-H2-ip_xr.js} +2 -2
  179. package/_assets/{onramp-J5H4ebWV.js → onramp-jMWRpk_W.js} +2 -2
  180. package/_assets/{openzeppelin-D4p4dWkw.js → openzeppelin-CNtXocND.js} +2 -2
  181. package/_assets/{ownerOf-6NPphff8.js → ownerOf-D2gp3JZq.js} +2 -2
  182. package/_assets/{parseNft-CNeONFsP.js → parseNft-Cj0GHmVO.js} +3 -3
  183. package/_assets/{parseSignature-RdZmR6vg.js → parseSignature-Cr-6xEFY.js} +4 -4
  184. package/_assets/{parseSignature-CRChMV-U.js → parseSignature-DqjVaLFW.js} +2 -2
  185. package/_assets/{passkeys-asZ3JuTk.js → passkeys-ZTPY9Io2.js} +2 -2
  186. package/_assets/{pay-with-exchange-Cv_5xsJB.js → pay-with-exchange-DFmrgXeW.js} +2 -2
  187. package/_assets/{prepare-contract-call-Bgba2npe.js → prepare-contract-call-BXj1hstj.js} +2 -2
  188. package/_assets/{qr-overlay-DkizM6BP.js → qr-overlay-BaiwMdsM.js} +4 -4
  189. package/_assets/{react-ZT2P9-hV.js → react-BQkTEhfI.js} +2 -2
  190. package/_assets/{receive-CawQ-n3T.js → receive-C-lo_prs.js} +2 -2
  191. package/_assets/{resolveImplementation-BVnQ0KdI.js → resolveImplementation-CmaftYpU.js} +2 -2
  192. package/_assets/{resume-buy-VqFhR9e8.js → resume-buy-CVhyi-L1.js} +2 -2
  193. package/_assets/{resume-name-CTz059A2.js → resume-name-DUz5x9Rs.js} +2 -2
  194. package/_assets/{rpc-BJ7rd6au.js → rpc-B61gfFSf.js} +2 -2
  195. package/_assets/{sales-empty-l9JLZ5D0.js → sales-empty-B211ygk7.js} +2 -2
  196. package/_assets/{search-empty-CkXuQVln.js → search-empty-D4s8B_tZ.js} +2 -2
  197. package/_assets/{secp256k1-BaU6Nn5x.js → secp256k1-Bd-eUAzZ.js} +2 -2
  198. package/_assets/{secp256k1-BGQ_Uqpo.js → secp256k1-DV0o92mg.js} +2 -2
  199. package/_assets/{secp256k1-Bu5sn1ZV.js → secp256k1-iVBXtOip.js} +2 -2
  200. package/_assets/{send-DONjIfwF.js → send-DxdkG-xE.js} +2 -2
  201. package/_assets/{send-batch-transaction-C_JYVBkw.js → send-batch-transaction-CxU4nO-t.js} +2 -2
  202. package/_assets/{send-eip712-transaction-Clelg5Q-.js → send-eip712-transaction-DFcFblDh.js} +3 -3
  203. package/_assets/{send-gasless-transaction-DNc4O0S0.js → send-gasless-transaction-8mkyEx1n.js} +3 -3
  204. package/_assets/send-transaction-5bX-xy_o.js +3 -0
  205. package/_assets/sendMetaTransaction-C0dwdljX.js +2 -0
  206. package/_assets/{sendRawTransaction-BM57FQWh.js → sendRawTransaction-Z6tsEgH4.js} +4 -4
  207. package/_assets/{sentry-qVQnooqM.js → sentry-DEsWWpBW.js} +3 -3
  208. package/_assets/{serializeTransaction-FdLqYQ-w.js → serializeTransaction-97Bat4Ro.js} +2 -2
  209. package/_assets/{session-proposal-CAm5TVJB.js → session-proposal-BFyOx5ep.js} +2 -2
  210. package/_assets/{session-request-C8xtyN3L.js → session-request-B-ZDEBIl.js} +3 -3
  211. package/_assets/{sha256-CcM85_-b.js → sha256-CFlr28b8.js} +2 -2
  212. package/_assets/sha3-VyXLimeE.js +2 -0
  213. package/_assets/signin-empty-3JhXhx04.js +2 -0
  214. package/_assets/{signing-FPVJ2eSa.js → signing-CaEAGDvd.js} +4 -4
  215. package/_assets/{skeleton.styles-DTLcQB9A.js → skeleton.styles-CP5AXi51.js} +2 -2
  216. package/_assets/{socials-BHL-s99I.js → socials-BAatCjg9.js} +2 -2
  217. package/_assets/{styled-BOKv7XKm.js → styled-Ciz7uJTf.js} +3 -3
  218. package/_assets/{swaps-DDuyuFV1.js → swaps-Duk8fCsv.js} +2 -2
  219. package/_assets/{thirdweb-N4oYmhTQ.js → thirdweb-Cvgkcum1.js} +4 -4
  220. package/_assets/{to-serializable-transaction-DZXV0RS9.js → to-serializable-transaction-BQmkdzOC.js} +3 -3
  221. package/_assets/{totalSupply-DnoXRYZk.js → totalSupply-DWGbPH_3.js} +2 -2
  222. package/_assets/{trade-encoding-JnGsRcov.js → trade-encoding-7I6Mahyk.js} +2 -2
  223. package/_assets/{transaction-D82LqpKn.js → transaction-C6zqrRsP.js} +2 -2
  224. package/_assets/{transactionReceipt-DEqK-l-5.js → transactionReceipt-wHhvs2MM.js} +2 -2
  225. package/_assets/{transactions-1TYNoevC.js → transactions-CWlJM2Ik.js} +2 -2
  226. package/_assets/{useCreatorSales-oruupPPN.js → useCreatorSales-B_z9WK8w.js} +2 -2
  227. package/_assets/useInfiniteGrid-B28HAmqv.js +2 -0
  228. package/_assets/{useStore-CGFjD1j7.js → useStore-BH311mqp.js} +3 -3
  229. package/_assets/{useTheme-J18Pg7gw.js → useTheme-CnRNEYQX.js} +2 -2
  230. package/_assets/{utils-BE7z1_FY.js → utils-Dpy_P8-Z.js} +2 -2
  231. package/_assets/{verifyHash-Buuby46g.js → verifyHash-CNHX3bhf.js} +2 -2
  232. package/_assets/{w3m-modal-DhWirtG8.js → w3m-modal-BfLNfzQm.js} +2 -2
  233. package/_assets/{w3m-modal-BU-cBw0Z.js → w3m-modal-Cd0pP9Y6.js} +2 -2
  234. package/_assets/{wait-for-tx-receipt-CG08f_bj.js → wait-for-tx-receipt-CCoeTvDN.js} +2 -2
  235. package/_assets/{wallets-CMB2i32E.js → wallets-DBEimxdS.js} +6 -6
  236. package/_assets/{web-connector-BPh_N46m.js → web-connector-CFETM0Ek.js} +4 -4
  237. package/_assets/{writeContract-BcpztdZJ.js → writeContract-xYjTt9Gm.js} +2 -2
  238. package/_assets/{zora-sepolia-arxykf8i.js → zora-sepolia-CmFkNSlJ.js} +2 -2
  239. package/_assets/{zoraTestnet-DL2ClkoW.js → zoraTestnet-D9iiG-Zu.js} +2 -2
  240. package/index.html +11 -11
  241. package/package.json +2 -2
  242. package/_assets/Assets-CN1LU5Xt.js +0 -980
  243. package/_assets/Cart-Bwf6I0xV.js +0 -748
  244. package/_assets/CollectionCarousel-CrMGuIJ3.js +0 -322
  245. package/_assets/Event-C9d1J0Kb.js +0 -72
  246. package/_assets/ItemDetail-BSwm3WSx.js +0 -3779
  247. package/_assets/OutfitPreview-Ceha9IWa.js +0 -7
  248. package/_assets/cart-checkout-uu8usx3x.js +0 -2
  249. package/_assets/collectionPage.styles-DOzyhn9M.js +0 -41
  250. package/_assets/send-transaction-pFbo31gg.js +0 -3
  251. package/_assets/sendMetaTransaction-BcKatlZr.js +0 -2
  252. package/_assets/sha3-FAYNGyBi.js +0 -2
  253. package/_assets/signin-empty-UN_rVDWL.js +0 -2
  254. package/_assets/useInfiniteGrid-56c_34kP.js +0 -2
@@ -1,4 +1,4 @@
1
- import{r as R,j as B,f as La,c as Ur,g as gt,k as Bt}from"./react-ZT2P9-hV.js";import{p as bt}from"./dcl-schemas-Do6ePE9M.js";import{b as it,h as st,a as Ae,i as na,j as aa,k as oa,l as Ta,m as Lt,e as qa,n as Aa,o as _a,p as Da,q as ja,d as Kt,s as ia,g as sa,c as la,f as Na,t as Wa,r as Fa}from"./index-CxOzFLm7.js";import{p as Xt}from"./sentry-qVQnooqM.js";import{cj as mt,ck as lt,cl as C,dN as Ie,cQ as Gr,cD as St,d7 as Fr,cm as ve,dO as Ha,dP as za,d5 as Tt,dQ as Hr}from"./index-y9tZLe7Z.js";import{c as Va}from"./index-WiX7N7NB.js";import{a as ht,g as tt,c as qe,b as yt,n as Ve}from"./emotion-styled.browser.esm-dqXx08M6.js";import{u as Mt,b as zt,o as Ze,c as Ua,d as Ga,B as Ka,r as qt,e as zr}from"./createSvgIcon-BOJMqAuj.js";import{B as Ya,a as Za,b as Xa,c as Ja}from"./index-C-cdcYSu.js";import{E as Bs}from"./index-C-cdcYSu.js";import{s as Ee,a as Qa,b as ua}from"./styled-BOKv7XKm.js";import{e as Jt,i as Vt,u as et,G as eo,P as to}from"./Grow-BiGjBqEo.js";import"./ethers-DVrorjJ1.js";import"./intl-AKLEHPeO.js";import"./useTheme-J18Pg7gw.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="01e7592d-1a0e-4a07-a52f-8d6bfb85a9bc",e._sentryDebugIdIdentifier="sentry-dbid-01e7592d-1a0e-4a07-a52f-8d6bfb85a9bc")}catch{}})();function ro(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function no(e){return R.Children.toArray(e).filter(t=>R.isValidElement(t))}const ao={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var Qt={exports:{}},ne={};/**
1
+ import{r as R,j as B,f as La,c as Ur,g as gt,k as Bt}from"./react-BQkTEhfI.js";import{p as bt}from"./dcl-schemas-rAoTN5Ga.js";import{b as it,h as st,a as Ae,i as na,j as aa,k as oa,l as Ta,m as Lt,e as qa,n as Aa,o as _a,p as Da,q as ja,d as Kt,s as ia,g as sa,c as la,f as Na,t as Wa,r as Fa}from"./index-Bwq-s3g2.js";import{p as Xt}from"./sentry-DEsWWpBW.js";import{ck as mt,cl as lt,cm as C,dP as Ie,cR as Gr,cE as St,d9 as Fr,cn as ve,dQ as Ha,dR as za,d7 as Tt,dS as Hr}from"./index-PCOMQSTj.js";import{c as Va}from"./index-gLJ8elkH.js";import{a as ht,g as tt,c as qe,b as yt,n as Ve}from"./emotion-styled.browser.esm-hf9E1adQ.js";import{u as Mt,b as zt,o as Ze,c as Ua,d as Ga,B as Ka,r as qt,e as zr}from"./createSvgIcon-Ci6-mKZX.js";import{B as Ya,a as Za,b as Xa,c as Ja}from"./index-BUq9yZ3w.js";import{E as Bs}from"./index-BUq9yZ3w.js";import{s as Ee,a as Qa,b as ua}from"./styled-Ciz7uJTf.js";import{e as Jt,i as Vt,u as et,G as eo,P as to}from"./Grow-CTV7DbJ0.js";import"./ethers-BicPoGF3.js";import"./intl-AKLEHPeO.js";import"./useTheme-CnRNEYQX.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3e4ea5c8-919a-4e7b-ab17-3733b6ac7502",e._sentryDebugIdIdentifier="sentry-dbid-3e4ea5c8-919a-4e7b-ab17-3733b6ac7502")}catch{}})();function ro(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function no(e){return R.Children.toArray(e).filter(t=>R.isValidElement(t))}const ao={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};var Qt={exports:{}},ne={};/**
2
2
  * @license React
3
3
  * react-is.production.min.js
4
4
  *
@@ -10,4 +10,4 @@ import{r as R,j as B,f as La,c as Ur,g as gt,k as Bt}from"./react-ZT2P9-hV.js";i
10
10
  `)>=0)return!1;return!0}function H(i,c){var F;if(i.indent===" ")F=" ";else if(typeof i.indent=="number"&&i.indent>0)F=_.call(Array(i.indent+1)," ");else return null;return{base:F,prev:_.call(Array(c+1),F)}}function be(i,c){if(i.length===0)return"";var F=`
11
11
  `+c.prev+c.base;return F+_.call(i,","+F)+`
12
12
  `+c.prev}function Se(i,c){var F=E(i),Q=[];if(F){Q.length=i.length;for(var re=0;re<i.length;re++)Q[re]=ce(i,re)?c(i[re],i):""}var N=typeof ae=="function"?ae(i):[],Re;if(fe){Re={};for(var Me=0;Me<N.length;Me++)Re["$"+N[Me]]=N[Me]}for(var he in i)ce(i,he)&&(F&&String(Number(he))===he&&he<i.length||fe&&Re["$"+he]instanceof Symbol||(L.call(/[^\w$]/,he)?Q.push(c(he,i)+": "+c(i[he],i)):Q.push(he+": "+c(i[he],i))));if(typeof ae=="function")for(var Ce=0;Ce<N.length;Ce++)Be.call(i,N[Ce])&&Q.push("["+c(N[Ce])+"]: "+c(i[N[Ce]],i));return Q}return tr}var rr,sn;function fi(){if(sn)return rr;sn=1;var e=Yt(),t=it(),r=function(o,u,f){for(var g=o,p;(p=g.next)!=null;g=p)if(p.key===u)return g.next=p.next,f||(p.next=o.next,o.next=p),p},a=function(o,u){if(o){var f=r(o,u);return f&&f.value}},n=function(o,u,f){var g=r(o,u);g?g.value=f:o.next={key:u,next:o.next,value:f}},l=function(o,u){return o?!!r(o,u):!1},s=function(o,u){if(o)return r(o,u,!0)};return rr=function(){var u,f={assert:function(g){if(!f.has(g))throw new t("Side channel does not contain "+e(g))},delete:function(g){var p=s(u,g);return p&&u&&!u.next&&(u=void 0),!!p},get:function(g){return a(u,g)},has:function(g){return l(u,g)},set:function(g,p){u||(u={next:void 0}),n(u,g,p)}};return f},rr}var nr,ln;function da(){if(ln)return nr;ln=1;var e=st(),t=Ae(),r=Yt(),a=it(),n=e("%Map%",!0),l=t("Map.prototype.get",!0),s=t("Map.prototype.set",!0),o=t("Map.prototype.has",!0),u=t("Map.prototype.delete",!0),f=t("Map.prototype.size",!0);return nr=!!n&&function(){var p,b={assert:function(m){if(!b.has(m))throw new a("Side channel does not contain "+r(m))},delete:function(m){if(p){var h=u(p,m);return f(p)===0&&(p=void 0),h}return!1},get:function(m){if(p)return l(p,m)},has:function(m){return p?o(p,m):!1},set:function(m,h){p||(p=new n),s(p,m,h)}};return b},nr}var ar,un;function pi(){if(un)return ar;un=1;var e=st(),t=Ae(),r=Yt(),a=da(),n=it(),l=e("%WeakMap%",!0),s=t("WeakMap.prototype.get",!0),o=t("WeakMap.prototype.set",!0),u=t("WeakMap.prototype.has",!0),f=t("WeakMap.prototype.delete",!0);return ar=l?function(){var p,b,m={assert:function(h){if(!m.has(h))throw new n("Side channel does not contain "+r(h))},delete:function(h){if(l&&h&&(typeof h=="object"||typeof h=="function")){if(p)return f(p,h)}else if(a&&b)return b.delete(h);return!1},get:function(h){return l&&h&&(typeof h=="object"||typeof h=="function")&&p?s(p,h):b&&b.get(h)},has:function(h){return l&&h&&(typeof h=="object"||typeof h=="function")&&p?u(p,h):!!b&&b.has(h)},set:function(h,k){l&&h&&(typeof h=="object"||typeof h=="function")?(p||(p=new l),o(p,h,k)):a&&(b||(b=a()),b.set(h,k))}};return m}:a,ar}var or,cn;function va(){if(cn)return or;cn=1;var e=it(),t=Yt(),r=fi(),a=da(),n=pi(),l=n||a||r;return or=function(){var o,u={assert:function(f){if(!u.has(f)){var g=f&&Object(f)===f?"the given object key":t(f);throw new e("Side channel does not contain "+g)}},delete:function(f){return!!o&&o.delete(f)},get:function(f){return o&&o.get(f)},has:function(f){return!!o&&o.has(f)},set:function(f,g){o||(o=l()),o.set(f,g)}};return u},or}var ir,fn;function ga(){if(fn)return ir;fn=1;var e=Object.prototype.toString;return ir=function(r){var a=e.call(r),n=a==="[object Arguments]";return n||(n=a!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),n},ir}var sr,pn;function di(){if(pn)return sr;pn=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,a=ga(),n=Object.prototype.propertyIsEnumerable,l=!n.call({toString:null},"toString"),s=n.call(function(){},"prototype"),o=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],u=function(b){var m=b.constructor;return m&&m.prototype===b},f={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},g=(function(){if(typeof window>"u")return!1;for(var b in window)try{if(!f["$"+b]&&t.call(window,b)&&window[b]!==null&&typeof window[b]=="object")try{u(window[b])}catch{return!0}}catch{return!0}return!1})(),p=function(b){if(typeof window>"u"||!g)return u(b);try{return u(b)}catch{return!1}};e=function(m){var h=m!==null&&typeof m=="object",k=r.call(m)==="[object Function]",v=a(m),M=h&&r.call(m)==="[object String]",w=[];if(!h&&!k&&!v)throw new TypeError("Object.keys called on a non-object");var S=s&&k;if(M&&m.length>0&&!t.call(m,0))for(var P=0;P<m.length;++P)w.push(String(P));if(v&&m.length>0)for(var T=0;T<m.length;++T)w.push(String(T));else for(var L in m)!(S&&L==="prototype")&&t.call(m,L)&&w.push(String(L));if(l)for(var W=p(m),_=0;_<o.length;++_)!(W&&o[_]==="constructor")&&t.call(m,o[_])&&w.push(o[_]);return w}}return sr=e,sr}var lr,dn;function Vr(){if(dn)return lr;dn=1;var e=Array.prototype.slice,t=ga(),r=Object.keys,a=r?function(s){return r(s)}:di(),n=Object.keys;return a.shim=function(){if(Object.keys){var s=(function(){var o=Object.keys(arguments);return o&&o.length===arguments.length})(1,2);s||(Object.keys=function(u){return t(u)?n(e.call(u)):n(u)})}else Object.keys=a;return Object.keys||a},lr=a,lr}var ur,vn;function ut(){if(vn)return ur;vn=1;var e=Vr(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,a=Array.prototype.concat,n=aa(),l=function(f){return typeof f=="function"&&r.call(f)==="[object Function]"},s=na()(),o=function(f,g,p,b){if(g in f){if(b===!0){if(f[g]===p)return}else if(!l(b)||!b())return}s?n(f,g,p,!0):n(f,g,p)},u=function(f,g){var p=arguments.length>2?arguments[2]:{},b=e(g);t&&(b=a.call(b,Object.getOwnPropertySymbols(g)));for(var m=0;m<b.length;m+=1)o(f,b[m],g[b[m]],p[b[m]])};return u.supportsDescriptors=!!s,ur=u,ur}var cr,gn;function ma(){if(gn)return cr;gn=1;var e=Vr(),t=oa()(),r=Ae(),a=Ta(),n=r("Array.prototype.push"),l=r("Object.prototype.propertyIsEnumerable"),s=t?a.getOwnPropertySymbols:null;return cr=function(u,f){if(u==null)throw new TypeError("target must be an object");var g=a(u);if(arguments.length===1)return g;for(var p=1;p<arguments.length;++p){var b=a(arguments[p]),m=e(b),h=t&&(a.getOwnPropertySymbols||s);if(h)for(var k=h(b),v=0;v<k.length;++v){var M=k[v];l(b,M)&&n(m,M)}for(var w=0;w<m.length;++w){var S=m[w];if(l(b,S)){var P=b[S];g[S]=P}}}return g},cr}var fr,mn;function ha(){if(mn)return fr;mn=1;var e=ma(),t=function(){if(!Object.assign)return!1;for(var a="abcdefghijklmnopqrst",n=a.split(""),l={},s=0;s<n.length;++s)l[n[s]]=n[s];var o=Object.assign({},l),u="";for(var f in o)u+=f;return a!==u},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var a=Object.preventExtensions({1:2});try{Object.assign(a,"xy")}catch{return a[1]==="y"}return!1};return fr=function(){return!Object.assign||t()||r()?e:Object.assign},fr}var pr,hn;function vi(){if(hn)return pr;hn=1;var e=ut(),t=ha();return pr=function(){var a=t();return e(Object,{assign:a},{assign:function(){return Object.assign!==a}}),a},pr}var dr,yn;function gi(){if(yn)return dr;yn=1;var e=ut(),t=Lt(),r=ma(),a=ha(),n=vi(),l=t.apply(a()),s=function(u,f){return l(Object,arguments)};return e(s,{getPolyfill:a,implementation:r,shim:n}),dr=s,dr}var vr,bn;function ya(){if(bn)return vr;bn=1;var e=st(),t=Lt(),r=t(e("String.prototype.indexOf"));return vr=function(n,l){var s=e(n,!!l);return typeof s=="function"&&r(n,".prototype.")>-1?t(s):s},vr}var gr,Sn;function mi(){if(Sn)return gr;Sn=1;var e=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}e.functionsHaveConfigurableNames=function(){if(!e()||!t)return!1;var n=t(function(){},"name");return!!n&&!!n.configurable};var r=Function.prototype.bind;return e.boundFunctionsHaveNames=function(){return e()&&typeof r=="function"&&(function(){}).bind().name!==""},gr=e,gr}var mr,xn;function hi(){if(xn)return mr;xn=1;var e=aa(),t=na()(),r=mi().functionsHaveConfigurableNames(),a=it();return mr=function(l,s){if(typeof l!="function")throw new a("`fn` is not a function");var o=arguments.length>2&&!!arguments[2];return(!o||r)&&(t?e(l,"name",s,!0,!0):e(l,"name",s)),l},mr}var hr,$n;function ba(){if($n)return hr;$n=1;var e=hi(),t=it(),r=Object;return hr=e(function(){if(this==null||this!==r(this))throw new t("RegExp.prototype.flags getter called on non-object");var n="";return this.hasIndices&&(n+="d"),this.global&&(n+="g"),this.ignoreCase&&(n+="i"),this.multiline&&(n+="m"),this.dotAll&&(n+="s"),this.unicode&&(n+="u"),this.unicodeSets&&(n+="v"),this.sticky&&(n+="y"),n},"get flags",!0),hr}var yr,wn;function Sa(){if(wn)return yr;wn=1;var e=ba(),t=ut().supportsDescriptors,r=Object.getOwnPropertyDescriptor;return yr=function(){if(t&&/a/mig.flags==="gim"){var n=r(RegExp.prototype,"flags");if(n&&typeof n.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var l="",s={};if(Object.defineProperty(s,"hasIndices",{get:function(){l+="d"}}),Object.defineProperty(s,"sticky",{get:function(){l+="y"}}),n.get.call(s),l==="dy")return n.get}}return e},yr}var br,kn;function yi(){if(kn)return br;kn=1;var e=ut().supportsDescriptors,t=Sa(),r=_a(),a=Object.defineProperty,n=Aa(),l=qa(),s=/a/;return br=function(){if(!e||!l)throw new n("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var u=t(),f=l(s),g=r(f,"flags");return(!g||g.get!==u)&&a(f,"flags",{configurable:!0,enumerable:!1,get:u}),u},br}var Sr,Rn;function bi(){if(Rn)return Sr;Rn=1;var e=ut(),t=Lt(),r=ba(),a=Sa(),n=yi(),l=t(a());return e(l,{getPolyfill:a,implementation:r,shim:n}),Sr=l,Sr}var wt={exports:{}},xr,Cn;function Si(){if(Cn)return xr;Cn=1;var e=Da(),t=va()(),r=it(),a={assert:function(n,l){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof l!="string")throw new r("`slot` must be a string");if(t.assert(n),!a.has(n,l))throw new r("`"+l+"` is not present on `O`")},get:function(n,l){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof l!="string")throw new r("`slot` must be a string");var s=t.get(n);return s&&s["$"+l]},has:function(n,l){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof l!="string")throw new r("`slot` must be a string");var s=t.get(n);return!!s&&e(s,"$"+l)},set:function(n,l,s){if(!n||typeof n!="object"&&typeof n!="function")throw new r("`O` is not an object");if(typeof l!="string")throw new r("`slot` must be a string");var o=t.get(n);o||(o={},t.set(n,o)),o["$"+l]=s}};return Object.freeze&&Object.freeze(a),xr=a,xr}var $r,In;function xi(){if(In)return $r;In=1;var e=Si(),t=ja(),r=typeof StopIteration=="object"?StopIteration:null;return $r=function(n){if(!r)throw new t("this environment lacks StopIteration");e.set(n,"[[Done]]",!1);var l={next:function(){var o=e.get(this,"[[Iterator]]"),u=!!e.get(o,"[[Done]]");try{return{done:u,value:u?void 0:o.next()}}catch(f){if(e.set(o,"[[Done]]",!0),f!==r)throw f;return{done:!0,value:void 0}}}};return e.set(l,"[[Iterator]]",n),l},$r}var wr,Pn;function xa(){if(Pn)return wr;Pn=1;var e=Ae(),t=e("String.prototype.valueOf"),r=function(o){try{return t(o),!0}catch{return!1}},a=e("Object.prototype.toString"),n="[object String]",l=Kt()();return wr=function(o){return typeof o=="string"?!0:!o||typeof o!="object"?!1:l?r(o):a(o)===n},wr}var kr,On;function $a(){if(On)return kr;On=1;var e=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,r;e||(r=function(s){return!1});var a=e?Map.prototype.has:null,n=t?Set.prototype.has:null;return!r&&!a&&(r=function(s){return!1}),kr=r||function(s){if(!s||typeof s!="object")return!1;try{if(a.call(s),n)try{n.call(s)}catch{return!0}return s instanceof e}catch{}return!1},kr}var Rr,Mn;function wa(){if(Mn)return Rr;Mn=1;var e=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,r;t||(r=function(s){return!1});var a=e?Map.prototype.has:null,n=t?Set.prototype.has:null;return!r&&!n&&(r=function(s){return!1}),Rr=r||function(s){if(!s||typeof s!="object")return!1;try{if(n.call(s),a)try{a.call(s)}catch{return!0}return s instanceof t}catch{}return!1},Rr}var En;function $i(){if(En)return wt.exports;En=1;var e=sa(),t=xi();if(ia()()||oa()()){var r=Symbol.iterator;wt.exports=function(O){if(O!=null&&typeof O[r]<"u")return O[r]();if(e(O))return Array.prototype[r].call(O)}}else{var a=la(),n=xa(),l=st(),s=l("%Map%",!0),o=l("%Set%",!0),u=ya(),f=u("Array.prototype.push"),g=u("String.prototype.charCodeAt"),p=u("String.prototype.slice"),b=function(O,U){var ee=O.length;if(U+1>=ee)return U+1;var ae=g(O,U);if(ae<55296||ae>56319)return U+1;var Y=g(O,U+1);return Y<56320||Y>57343?U+1:U+2},m=function(O){var U=0;return{next:function(){var ae=U>=O.length,Y;return ae||(Y=O[U],U+=1),{done:ae,value:Y}}}},h=function(O,U){if(a(O)||e(O))return m(O);if(n(O)){var ee=0;return{next:function(){var Y=b(O,ee),fe=p(O,ee,Y);return ee=Y,{done:Y>O.length,value:fe}}}}if(U&&typeof O["_es6-shim iterator_"]<"u")return O["_es6-shim iterator_"]()};if(!s&&!o)wt.exports=function(O){if(O!=null)return h(O,!0)};else{var k=$a(),v=wa(),M=u("Map.prototype.forEach",!0),w=u("Set.prototype.forEach",!0);if(typeof Xt>"u"||!Xt.versions||!Xt.versions.node)var S=u("Map.prototype.iterator",!0),P=u("Set.prototype.iterator",!0);var T=u("Map.prototype.@@iterator",!0)||u("Map.prototype._es6-shim iterator_",!0),L=u("Set.prototype.@@iterator",!0)||u("Set.prototype._es6-shim iterator_",!0),W=function(O){if(k(O)){if(S)return t(S(O));if(T)return T(O);if(M){var U=[];return M(O,function(ae,Y){f(U,[Y,ae])}),m(U)}}if(v(O)){if(P)return t(P(O));if(L)return L(O);if(w){var ee=[];return w(O,function(ae){f(ee,ae)}),m(ee)}}};wt.exports=function(O){return W(O)||h(O)}}}return wt.exports}var Cr,Bn;function ka(){if(Bn)return Cr;Bn=1;var e=function(t){return t!==t};return Cr=function(r,a){return r===0&&a===0?1/r===1/a:!!(r===a||e(r)&&e(a))},Cr}var Ir,Ln;function Ra(){if(Ln)return Ir;Ln=1;var e=ka();return Ir=function(){return typeof Object.is=="function"?Object.is:e},Ir}var Pr,Tn;function wi(){if(Tn)return Pr;Tn=1;var e=Ra(),t=ut();return Pr=function(){var a=e();return t(Object,{is:a},{is:function(){return Object.is!==a}}),a},Pr}var Or,qn;function ki(){if(qn)return Or;qn=1;var e=ut(),t=Lt(),r=ka(),a=Ra(),n=wi(),l=t(a(),Object);return e(l,{getPolyfill:a,implementation:r,shim:n}),Or=l,Or}var Mr,An;function Ca(){if(An)return Mr;An=1;var e=Lt(),t=Ae(),r=st(),a=r("%ArrayBuffer%",!0),n=t("ArrayBuffer.prototype.byteLength",!0),l=t("Object.prototype.toString"),s=!!a&&!n&&new a(0).slice,o=!!s&&e(s);return Mr=n||o?function(f){if(!f||typeof f!="object")return!1;try{return n?n(f):o(f,0),!0}catch{return!1}}:a?function(f){return l(f)==="[object ArrayBuffer]"}:function(f){return!1},Mr}var Er,_n;function Ri(){if(_n)return Er;_n=1;var e=Ae(),t=e("Date.prototype.getDay"),r=function(o){try{return t(o),!0}catch{return!1}},a=e("Object.prototype.toString"),n="[object Date]",l=Kt()();return Er=function(o){return typeof o!="object"||o===null?!1:l?r(o):a(o)===n},Er}var Br,Dn;function Ci(){if(Dn)return Br;Dn=1;var e=Ae(),t=e("SharedArrayBuffer.prototype.byteLength",!0);return Br=t?function(a){if(!a||typeof a!="object")return!1;try{return t(a),!0}catch{return!1}}:function(a){return!1},Br}var Lr,jn;function Ii(){if(jn)return Lr;jn=1;var e=Ae(),t=e("Number.prototype.toString"),r=function(o){try{return t(o),!0}catch{return!1}},a=e("Object.prototype.toString"),n="[object Number]",l=Kt()();return Lr=function(o){return typeof o=="number"?!0:!o||typeof o!="object"?!1:l?r(o):a(o)===n},Lr}var Tr,Nn;function Pi(){if(Nn)return Tr;Nn=1;var e=Ae(),t=e("Boolean.prototype.toString"),r=e("Object.prototype.toString"),a=function(o){try{return t(o),!0}catch{return!1}},n="[object Boolean]",l=Kt()();return Tr=function(o){return typeof o=="boolean"?!0:o===null||typeof o!="object"?!1:l?a(o):r(o)===n},Tr}var Wt={exports:{}},Wn;function Oi(){if(Wn)return Wt.exports;Wn=1;var e=Ae(),t=e("Object.prototype.toString"),r=ia()(),a=Na();if(r){var n=e("Symbol.prototype.toString"),l=a(/^Symbol\(.*\)$/),s=function(u){return typeof u.valueOf()!="symbol"?!1:l(n(u))};Wt.exports=function(u){if(typeof u=="symbol")return!0;if(!u||typeof u!="object"||t(u)!=="[object Symbol]")return!1;try{return s(u)}catch{return!1}}}else Wt.exports=function(u){return!1};return Wt.exports}var Ft={exports:{}},qr,Fn;function Mi(){if(Fn)return qr;Fn=1;var e=typeof BigInt<"u"&&BigInt;return qr=function(){return typeof e=="function"&&typeof BigInt=="function"&&typeof e(42)=="bigint"&&typeof BigInt(42)=="bigint"},qr}var Hn;function Ei(){if(Hn)return Ft.exports;Hn=1;var e=Mi()();if(e){var t=BigInt.prototype.valueOf,r=function(n){try{return t.call(n),!0}catch{}return!1};Ft.exports=function(n){return n===null||typeof n>"u"||typeof n=="boolean"||typeof n=="string"||typeof n=="number"||typeof n=="symbol"||typeof n=="function"?!1:typeof n=="bigint"?!0:r(n)}}else Ft.exports=function(n){return!1};return Ft.exports}var Ar,zn;function Bi(){if(zn)return Ar;zn=1;var e=xa(),t=Ii(),r=Pi(),a=Oi(),n=Ei();return Ar=function(s){if(s==null||typeof s!="object"&&typeof s!="function")return null;if(e(s))return"String";if(t(s))return"Number";if(r(s))return"Boolean";if(a(s))return"Symbol";if(n(s))return"BigInt"},Ar}var _r,Vn;function Li(){if(Vn)return _r;Vn=1;var e=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,t=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,r;e||(r=function(s){return!1});var a=e?e.prototype.has:null,n=t?t.prototype.has:null;return!r&&!a&&(r=function(s){return!1}),_r=r||function(s){if(!s||typeof s!="object")return!1;try{if(a.call(s,a),n)try{n.call(s,n)}catch{return!0}return s instanceof e}catch{}return!1},_r}var Ht={exports:{}},Un;function Ti(){if(Un)return Ht.exports;Un=1;var e=st(),t=Ae(),r=e("%WeakSet%",!0),a=t("WeakSet.prototype.has",!0);if(a){var n=t("WeakMap.prototype.has",!0);Ht.exports=function(s){if(!s||typeof s!="object")return!1;try{if(a(s,a),n)try{n(s,n)}catch{return!0}return s instanceof r}catch{}return!1}}else Ht.exports=function(s){return!1};return Ht.exports}var Dr,Gn;function qi(){if(Gn)return Dr;Gn=1;var e=$a(),t=wa(),r=Li(),a=Ti();return Dr=function(l){if(l&&typeof l=="object"){if(e(l))return"Map";if(t(l))return"Set";if(r(l))return"WeakMap";if(a(l))return"WeakSet"}return!1},Dr}var jr,Kn;function Ai(){if(Kn)return jr;Kn=1;var e=Ae(),t=e("ArrayBuffer.prototype.byteLength",!0),r=Ca();return jr=function(n){return r(n)?t?t(n):n.byteLength:NaN},jr}var Nr,Yn;function _i(){if(Yn)return Nr;Yn=1;var e=gi(),t=ya(),r=bi(),a=st(),n=$i(),l=va(),s=ki(),o=sa(),u=la(),f=Ca(),g=Ri(),p=Wa(),b=Ci(),m=Vr(),h=Bi(),k=qi(),v=Fa(),M=Ai(),w=t("SharedArrayBuffer.prototype.byteLength",!0),S=t("Date.prototype.getTime"),P=Object.getPrototypeOf,T=t("Object.prototype.toString"),L=a("%Set%",!0),W=t("Map.prototype.has",!0),_=t("Map.prototype.get",!0),O=t("Map.prototype.size",!0),U=t("Set.prototype.add",!0),ee=t("Set.prototype.delete",!0),ae=t("Set.prototype.has",!0),Y=t("Set.prototype.size",!0);function fe(d,$,q,E){for(var D=n(d),te;(te=D.next())&&!te.done;)if(pe($,te.value,q,E))return ee(d,te.value),!0;return!1}function oe(d){if(typeof d>"u")return null;if(typeof d!="object")return typeof d=="symbol"?!1:typeof d=="string"||typeof d=="number"?+d==+d:!0}function Be(d,$,q,E,D,te){var Z=oe(q);if(Z!=null)return Z;var X=_($,Z),j=e({},D,{strict:!1});return typeof X>"u"&&!W($,Z)||!pe(E,X,j,te)?!1:!W(d,Z)&&pe(E,X,j,te)}function se(d,$,q){var E=oe(q);return E??(ae($,E)&&!ae(d,E))}function ge(d,$,q,E,D,te){for(var Z=n(d),X,j;(X=Z.next())&&!X.done;)if(j=X.value,pe(q,j,D,te)&&pe(E,_($,j),D,te))return ee(d,j),!0;return!1}function pe(d,$,q,E){var D=q||{};if(D.strict?s(d,$):d===$)return!0;var te=h(d),Z=h($);if(te!==Z)return!1;if(!d||!$||typeof d!="object"&&typeof $!="object")return D.strict?s(d,$):d==$;var X=E.has(d),j=E.has($),G;if(X&&j){if(E.get(d)===E.get($))return!0}else G={};return X||E.set(d,G),j||E.set($,G),Pe(d,$,D,E)}function _e(d){return!d||typeof d!="object"||typeof d.length!="number"||typeof d.copy!="function"||typeof d.slice!="function"||d.length>0&&typeof d[0]!="number"?!1:!!(d.constructor&&d.constructor.isBuffer&&d.constructor.isBuffer(d))}function je(d,$,q,E){if(Y(d)!==Y($))return!1;for(var D=n(d),te=n($),Z,X,j;(Z=D.next())&&!Z.done;)if(Z.value&&typeof Z.value=="object")j||(j=new L),U(j,Z.value);else if(!ae($,Z.value)){if(q.strict||!se(d,$,Z.value))return!1;j||(j=new L),U(j,Z.value)}if(j){for(;(X=te.next())&&!X.done;)if(X.value&&typeof X.value=="object"){if(!fe(j,X.value,q.strict,E))return!1}else if(!q.strict&&!ae(d,X.value)&&!fe(j,X.value,q.strict,E))return!1;return Y(j)===0}return!0}function De(d,$,q,E){if(O(d)!==O($))return!1;for(var D=n(d),te=n($),Z,X,j,G,J,z;(Z=D.next())&&!Z.done;)if(G=Z.value[0],J=Z.value[1],G&&typeof G=="object")j||(j=new L),U(j,G);else if(z=_($,G),typeof z>"u"&&!W($,G)||!pe(J,z,q,E)){if(q.strict||!Be(d,$,G,J,q,E))return!1;j||(j=new L),U(j,G)}if(j){for(;(X=te.next())&&!X.done;)if(G=X.value[0],z=X.value[1],G&&typeof G=="object"){if(!ge(j,d,G,z,q,E))return!1}else if(!q.strict&&(!d.has(G)||!pe(_(d,G),z,q,E))&&!ge(j,d,G,z,e({},q,{strict:!1}),E))return!1;return Y(j)===0}return!0}function Pe(d,$,q,E){var D,te;if(typeof d!=typeof $||d==null||$==null||T(d)!==T($)||o(d)!==o($))return!1;var Z=u(d),X=u($);if(Z!==X)return!1;var j=d instanceof Error,G=$ instanceof Error;if(j!==G||(j||G)&&(d.name!==$.name||d.message!==$.message))return!1;var J=p(d),z=p($);if(J!==z||(J||z)&&(d.source!==$.source||r(d)!==r($)))return!1;var me=g(d),ce=g($);if(me!==ce||(me||ce)&&S(d)!==S($)||q.strict&&P&&P(d)!==P($))return!1;var le=v(d),Ne=v($);if(le!==Ne)return!1;if(le||Ne){if(d.length!==$.length)return!1;for(D=0;D<d.length;D++)if(d[D]!==$[D])return!1;return!0}var ue=_e(d),Oe=_e($);if(ue!==Oe)return!1;if(ue||Oe){if(d.length!==$.length)return!1;for(D=0;D<d.length;D++)if(d[D]!==$[D])return!1;return!0}var We=f(d),Fe=f($);if(We!==Fe)return!1;if(We||Fe)return M(d)!==M($)?!1:typeof Uint8Array=="function"&&pe(new Uint8Array(d),new Uint8Array($),q,E);var He=b(d),Ue=b($);if(He!==Ue)return!1;if(He||Ue)return w(d)!==w($)?!1:typeof Uint8Array=="function"&&pe(new Uint8Array(d),new Uint8Array($),q,E);if(typeof d!=typeof $)return!1;var we=m(d),ke=m($);if(we.length!==ke.length)return!1;for(we.sort(),ke.sort(),D=we.length-1;D>=0;D--)if(we[D]!=ke[D])return!1;for(D=we.length-1;D>=0;D--)if(te=we[D],!pe(d[te],$[te],q,E))return!1;var y=k(d),x=k($);return y!==x?!1:y==="Set"||x==="Set"?je(d,$,q,E):y==="Map"?De(d,$,q,E):!0}return Nr=function($,q,E){return pe($,q,E,l())},Nr}var Di=_i();const Zn=gt(Di),ji=Ve("iframe")({background:"transparent",border:0,width:"100%",height:"100%"}),Ni=500,A=(e,t)=>t==null||t===""?"":Array.isArray(t)?t.length>0?t.map(r=>`${e}=${encodeURIComponent(String(r))}`).join("&"):"":`${e}=${encodeURIComponent(String(t))}`,Wi=e=>{const{dev:t=!1,baseUrl:r=Va.get("WEARABLE_PREVIEW_URL"),unity:a=!1,onLoad:n=()=>{},onError:l=()=>{},onUpdate:s=()=>{},...o}=e,[u,f]=R.useState({isReady:!1,pendingOptions:null}),g=R.useRef(null),p=R.useRef(null),b=R.useRef(null),m=R.useMemo(()=>{const{contractAddress:w,tokenId:S,itemId:P,profile:T,urns:L,urls:W,base64s:_,skin:O,hair:U,eyes:ee,bodyShape:ae,emote:Y,camera:fe,projection:oe,zoom:Be,background:se,offsetX:ge,offsetY:pe,offsetZ:_e,cameraX:je,cameraY:De,cameraZ:Pe,wheelZoom:d,wheelPrecision:$,wheelStart:q,disableBackground:E,disableAutoRotate:D,disableAutoCenter:te,disableFace:Z,disableDefaultWearables:X,disableDefaultEmotes:j,disableFadeEffect:G,showSceneBoundaries:J,showThumbnailBoundaries:z,panning:me,lockAlpha:ce,lockBeta:le,lockRadius:Ne,peerUrl:ue,nftServerUrl:Oe,marketplaceServerUrl:We,type:Fe,unityMode:He,username:Ue,socialEmote:we}=o,ke=A("contract",w),y=A("token",S),x=A("item",P),I=A("profile",T),V=A("urn",L),K=A("url",W),H=A("base64",_),be=A("skin",O),Se=A("hair",U),i=A("eyes",ee),c=A("bodyShape",ae),F=A("emote",Y),Q=A("camera",fe),re=A("projection",oe),N=A("zoom",Be),Re=A("background",se),Me=A("offsetX",ge),he=A("offsetY",pe),Ce=A("offsetZ",_e),rt=A("cameraX",je),Le=A("cameraY",De),xe=A("cameraZ",Pe),Xe=A("wheelZoom",d),ct=A("wheelPrecision",$),ft=A("wheelStart",q),Ge=A("disableBackground",E),nt=A("disableAutoRotate",D),Je=A("disableAutoCenter",te),at=A("disableFace",Z),Ke=A("disableDefaultWearables",X),pt=A("disableDefaultEmotes",j),Qe=A("disableFadeEffect",G),Ye=A("showSceneBoundaries",J),dt=A("showThumbnailBoundaries",z),ie=A("peerUrl",ue),ot=A("marketplaceServerUrl",We??Oe),ze=A("type",Fe),ye=A("panning",me),vt=A("lockAlpha",ce),Zt=A("lockBeta",le),At=A("lockRadius",Ne),Ia=A("env",t?"dev":void 0),Pa=A("unity",a),Oa=A("mode",He),Ma=A("username",Ue),Ea=A("socialEmote",we);return r+"?"+[ke,y,x,I,V,K,H,be,Se,i,c,F,Q,re,N,Re,Me,he,Ce,rt,Le,xe,Xe,ct,ft,Ge,nt,Je,at,Ke,pt,Qe,Ye,dt,ie,ot,ze,ye,vt,Zt,At,Ia,Pa,Oa,Ma,Ea].filter(Ba=>!!Ba).join("&")},[o,r,t,a]),h=R.useMemo(()=>{const w={};for(const S in o)typeof o[S]!="function"&&(w[S]=o[S]);return w},[o]),k=R.useCallback(w=>{var P;const S=p.current;(!S||!Zn(w,S))&&((P=g.current)!=null&&P.contentWindow&&bt.sendMessage(g.current.contentWindow,bt.PreviewMessageType.UPDATE,{options:w}),s(w),p.current=w)},[s]),v=R.useCallback(()=>{g.current?typeof window<"u"&&(u.isReady?k(h):Zn(u.pendingOptions,h)||f(w=>({...w,pendingOptions:h,url:m}))):console.warn("Could not send update, iframe is not referenced")},[h,u.pendingOptions,u.isReady,k]),M=R.useCallback(w=>{var T;const{origin:S}=w;if(S!==r||!((T=w.data)!=null&&T.type))return;switch(w.data.type){case bt.PreviewMessageType.LOAD:{const L=w.data.payload;n(L==null?void 0:L.renderer);break}case bt.PreviewMessageType.ERROR:{const L=w.data.payload;l(new Error(L.message));break}case bt.PreviewMessageType.READY:{f(L=>L.isReady?L:L.pendingOptions!==null?(k(L.pendingOptions),{...L,isReady:!0,pendingOptions:null}):{...L,isReady:!0});break}}},[r,n,l,k]);return R.useEffect(()=>(window.addEventListener("message",M,!1),()=>{window.removeEventListener("message",M,!1)}),[M]),R.useEffect(()=>{e.blob||b.current===m||(b.current=m,p.current=h)},[m,h,e.blob]),R.useEffect(()=>{e.blob&&v()},[e.blob,v]),R.useEffect(()=>{const w=setTimeout(v,Ni);return()=>clearTimeout(w)},[v]),e.tokenId&&e.itemId&&console.warn("You should NOT use `tokenId` and `itemId` props simultaneously"),B.jsx(ji,{id:e.id,src:m,ref:g,allow:"autoplay"})};Wi.createController=za;var kt={},Xn;function Fi(){if(Xn)return kt;Xn=1;var e=Tt();Object.defineProperty(kt,"__esModule",{value:!0}),kt.default=void 0;var t=e(qt()),r=Bt();return kt.default=(0,t.default)((0,r.jsx)("path",{d:"m7 10 5 5 5-5z"}),"ArrowDropDown"),kt}var Hi=Fi();const zi=gt(Hi);var Rt={},Jn;function Vi(){if(Jn)return Rt;Jn=1;var e=Tt();Object.defineProperty(Rt,"__esModule",{value:!0}),Rt.default=void 0;var t=e(qt()),r=Bt();return Rt.default=(0,t.default)((0,r.jsx)("path",{d:"m7 14 5-5 5 5z"}),"ArrowDropUp"),Rt}var Ui=Vi();const Gi=gt(Ui),Ki=Ve(Xa)(({theme:e})=>({gap:e.spacing(1)})),Yi=Ve(fa)(({theme:e})=>({height:"calc(100% + 8px)",marginTop:e.spacing(-.5),borderColor:e.palette.common.white})),Zi=Ve(eo)(({placement:e})=>({transformOrigin:e==="bottom"?"center top":"center bottom"})),Is=({wearablePreviewId:e,className:t,wearablePreviewController:r,selectedAnimation:a,onSelectAnimation:n,renderAnimationSelector:l})=>{const{controllerRef:s,isReady:o}=Hr(e,r),[u,f]=R.useState(!1),g=R.useRef(null),[p,b]=R.useState(void 0),[m,h]=R.useState(0);R.useEffect(()=>{if(!p||!a)return;const w=p.findIndex(S=>S.title===a.title);h(w>=0?w:0)},[p,a]),R.useEffect(()=>{!o||!s.current||p!==void 0||Promise.all([s.current.emote.getSocialEmoteAnimations(),s.current.emote.getPlayingSocialEmoteAnimation()]).then(([w,S])=>{if(b(w),S){n==null||n(S);const P=(w==null?void 0:w.findIndex(T=>T.title===S.title))??-1;h(P>=0?P:0)}}).catch(w=>{console.error("Error checking social emote:",w),b(null)})},[p,o,s,n]);const k=R.useCallback((w,S)=>{f(!1),h(S),p!=null&&p[S]&&(n==null||n(p[S]))},[p,n]),v=R.useCallback(()=>{f(w=>!w)},[]),M=R.useCallback(w=>{var S;(S=g.current)!=null&&S.contains(w.target)||f(!1)},[]);return!p||p.length===0?null:l&&n?l({socialEmoteAnimations:p,selectedAnimation:a??p[0],onSelectAnimation:n}):B.jsxs(R.Fragment,{children:[B.jsx(Po,{className:t,variant:"contained",ref:g,"aria-label":"Button group with a nested menu",children:B.jsxs(Ki,{size:"small","aria-controls":u?"split-button-menu":void 0,"aria-expanded":u?"true":void 0,"aria-label":"select merge strategy","aria-haspopup":"menu",onClick:v,children:[p[m].title,B.jsx(Yi,{orientation:"vertical",flexItem:!0}),u?B.jsx(Gi,{}):B.jsx(zi,{})]})}),B.jsx(to,{open:u,anchorEl:g.current,role:void 0,transition:!0,disablePortal:!0,className:`${t}__popper`,children:({TransitionProps:w,placement:S})=>B.jsx(Zi,{...w,placement:S,children:B.jsx(fo,{children:B.jsx(go,{onClickAway:M,children:B.jsx(No,{id:"split-button-menu",autoFocusItem:!0,children:p.map((P,T)=>B.jsx(Uo,{selected:T===m,onClick:L=>k(L,T),children:P.title},P.title))})})})})})]})};var Ct={},Qn;function Xi(){if(Qn)return Ct;Qn=1;var e=Tt();Object.defineProperty(Ct,"__esModule",{value:!0}),Ct.default=void 0;var t=e(qt()),r=Bt();return Ct.default=(0,t.default)((0,r.jsx)("path",{d:"M16 17.01V10h-2v7.01h-3L15 21l4-3.99zM9 3 5 6.99h3V14h2V6.99h3z"}),"SwapVert"),Ct}var Ji=Xi();const Qi=gt(Ji);var Ot;(function(e){e.TOP="top",e.BOTTOM="bottom",e.CENTER="center"})(Ot||(Ot={}));var Et;(function(e){e.LEFT="left",e.RIGHT="right"})(Et||(Et={}));const es=Ve(zr)(({horizontalPosition:e=Ot.CENTER,verticalPosition:t=Et.RIGHT})=>({position:"absolute",top:0,left:0,right:0,bottom:0,display:"flex",alignItems:"center",...e===Ot.TOP?{justifyContent:"flex-start"}:e===Ot.BOTTOM?{justifyContent:"flex-end"}:{justifyContent:"center"},...t===Et.RIGHT?{justifyContent:"flex-end"}:{justifyContent:"flex-start"},pointerEvents:"none","& > *":{pointerEvents:"auto"}})),ts=Ve(zr)({display:"flex",alignItems:"center",flexDirection:"column"}),rs=Ve(zr)({display:"flex",alignItems:"center",color:"#736e7d"}),ns=Ve(si)(({theme:e})=>({height:256,color:"#736e7d","& .MuiSlider-rail":{width:2,opacity:1,backgroundColor:"#000000",paddingBottom:e.spacing(4)},"& .MuiSlider-track":{width:2,border:"none",backgroundColor:"#000000"},"& .MuiSlider-thumb":{height:32,width:8,borderRadius:4,backgroundColor:"#736e7d",translate:"0px 16px",boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.16), inset 0px 1px 0px rgba(255, 255, 255, 0.16)","&:focus, &:hover, &.Mui-active, &.Mui-focusVisible":{boxShadow:"0px 2px 4px rgba(0, 0, 0, 0.16), inset 0px 1px 0px rgba(255, 255, 255, 0.16)"},"&::before":{display:"none"}}})),Ps=({wearablePreviewId:e,vertical:t,className:r,verticalPosition:a=Et.RIGHT,wearablePreviewController:n})=>{const{controllerRef:l}=Hr(e,n),s=R.useCallback((o,u)=>{var g;const f=Array.isArray(u)?u[0]:u;(g=l.current)==null||g.scene.panCamera({y:f*-1})},[l]);return B.jsx(es,{className:r,verticalPosition:a,children:t?B.jsxs(ts,{children:[B.jsx(rs,{children:B.jsx(Qi,{})}),B.jsx(ns,{orientation:"vertical",defaultValue:0,step:.1,min:-2,max:2,onChange:s})]}):null})};var It={},ea;function as(){if(ea)return It;ea=1;var e=Tt();Object.defineProperty(It,"__esModule",{value:!0}),It.default=void 0;var t=e(qt()),r=Bt();return It.default=(0,t.default)((0,r.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add"),It}var os=as();const is=gt(os);var Pt={},ta;function ss(){if(ta)return Pt;ta=1;var e=Tt();Object.defineProperty(Pt,"__esModule",{value:!0}),Pt.default=void 0;var t=e(qt()),r=Bt();return Pt.default=(0,t.default)((0,r.jsx)("path",{d:"M19 13H5v-2h14z"}),"Remove"),Pt}var ls=ss();const us=gt(ls);var Gt;(function(e){e.LEFT="left",e.RIGHT="right"})(Gt||(Gt={}));const cs=Ve("div")(({position:e})=>({display:"flex",flexDirection:"column",position:"absolute",top:"12px",...e===Gt.LEFT?{left:"12px"}:{right:"12px"}})),ra=Ve(Ja)({width:"32px",height:"32px",minWidth:"unset",padding:0,backgroundColor:"rgba(0, 0, 0, 0.64) !important",borderRadius:0,display:"flex",justifyContent:"center",alignItems:"center","&:hover":{transform:"none"},"& i.icon":{margin:"0 !important"}}),fs=.1,Os=({wearablePreviewId:e,className:t,position:r=Gt.LEFT,wearablePreviewController:a,zoomDelta:n=fs})=>{const{controllerRef:l}=Hr(e,a),s=R.useCallback(async()=>{var u;await((u=l.current)==null?void 0:u.scene.changeZoom(n))},[n,l]),o=R.useCallback(async()=>{var u;await((u=l.current)==null?void 0:u.scene.changeZoom(-n))},[n,l]);return B.jsxs(cs,{className:t,position:r,children:[B.jsx(ra,{className:"ZoomIn",onClick:s,children:B.jsx(is,{})}),B.jsx(ra,{className:"ZoomOut",onClick:o,children:B.jsx(us,{})})]})};export{Is as AnimationControls,Bs as EmoteControls,Ps as TranslationControls,Wi as WearablePreview,Os as ZoomControls,Hr as useWearablePreviewController};
13
- //# sourceMappingURL=index-D_SCQhiC.js.map
13
+ //# sourceMappingURL=index-D_GN8H-m.js.map
@@ -1,4 +1,4 @@
1
- import{a as h,i as f,b as p}from"./lit-element-wjYUA6aF.js";import{n as l}from"./class-map-BxMzgOIb.js";import{r as m,v as o}from"./index-gg05iP5j.js";import{c as g}from"./index-CWE_Bdvd.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]="c0b16299-5d5c-4732-a6df-d018a3329dcd",t._sentryDebugIdIdentifier="sentry-dbid-c0b16299-5d5c-4732-a6df-d018a3329dcd")}catch{}})();const y=h`
1
+ import{a as h,i as f,b as p}from"./lit-element-wjYUA6aF.js";import{n as l}from"./class-map-BxMzgOIb.js";import{r as m,v as o}from"./index-DBXe-H17.js";import{c as g}from"./index-C30kKaUV.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]="c0b16299-5d5c-4732-a6df-d018a3329dcd",t._sentryDebugIdIdentifier="sentry-dbid-c0b16299-5d5c-4732-a6df-d018a3329dcd")}catch{}})();const y=h`
2
2
  :host {
3
3
  display: flex;
4
4
  }
@@ -49,4 +49,4 @@ import{a as h,i as f,b as p}from"./lit-element-wjYUA6aF.js";import{n as l}from".
49
49
  fill="currentColor"
50
50
  />
51
51
  </svg>`}};s.styles=[m,y];c([l()],s.prototype,"color",void 0);c([l()],s.prototype,"size",void 0);s=c([g("wui-loading-spinner")],s);
52
- //# sourceMappingURL=index-CwoMLrsB.js.map
52
+ //# sourceMappingURL=index-Dck2NPjx.js.map
@@ -1,4 +1,4 @@
1
- import{i as b,b as l}from"./lit-element-wjYUA6aF.js";import{n as s}from"./class-map-BxMzgOIb.js";import{c as f}from"./index-CWE_Bdvd.js";import{d as p,r as m,e as v}from"./index-gg05iP5j.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="019ff36d-356c-4181-a5af-686307f0d442",e._sentryDebugIdIdentifier="sentry-dbid-019ff36d-356c-4181-a5af-686307f0d442")}catch{}})();const y=p`
1
+ import{i as b,b as l}from"./lit-element-wjYUA6aF.js";import{n as s}from"./class-map-BxMzgOIb.js";import{c as f}from"./index-C30kKaUV.js";import{d as p,r as m,e as v}from"./index-DBXe-H17.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="019ff36d-356c-4181-a5af-686307f0d442",e._sentryDebugIdIdentifier="sentry-dbid-019ff36d-356c-4181-a5af-686307f0d442")}catch{}})();const y=p`
2
2
  button {
3
3
  border: none;
4
4
  background: transparent;
@@ -66,4 +66,4 @@ import{i as b,b as l}from"./lit-element-wjYUA6aF.js";import{n as s}from"./class-
66
66
  ${this.iconTemplate()}
67
67
  </button>
68
68
  `}iconTemplate(){return this.icon?l`<wui-icon name=${this.icon} size="sm"></wui-icon>`:null}};n.styles=[m,v,y];a([s()],n.prototype,"size",void 0);a([s({type:Boolean})],n.prototype,"disabled",void 0);a([s()],n.prototype,"variant",void 0);a([s()],n.prototype,"icon",void 0);n=a([f("wui-link")],n);
69
- //# sourceMappingURL=index-BC9VPSaU.js.map
69
+ //# sourceMappingURL=index-Dk93Si47.js.map
@@ -1,2 +1,2 @@
1
- import"./react-ZT2P9-hV.js";import{r as I}from"./index-C9RSadCu.js";import{az as w}from"./sendRawTransaction-BM57FQWh.js";import{c as k,e as v}from"./hashTypedData-CxzAx589.js";import"./NetworkUtil-BbMBxyRo.js";import"./sentry-qVQnooqM.js";import"./index-y9tZLe7Z.js";import"./dcl-schemas-Do6ePE9M.js";import"./ethers-DVrorjJ1.js";import"./intl-AKLEHPeO.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]="310a5608-f3ba-47f1-9d2e-d69261fddeba",t._sentryDebugIdIdentifier="sentry-dbid-310a5608-f3ba-47f1-9d2e-d69261fddeba")}catch{}})();const q=()=>"9.1.0",C=t=>t.toString(16).padStart(2,"0"),R=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,C).join("")},E=()=>typeof window<"u"?R(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:E(),method:t,params:e,env:{sdkVersion:q()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var f;(function(t){t.requestAddressBook="requestAddressBook"})(f||(f={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let y=!0;return Array.isArray(this.allowedOrigins)&&(y=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&y},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const _=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var m=I();class A{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!_(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},d={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class O{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,d.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,d.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,d.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,d.blockNumberToHex,d.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,d.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[d.blockNumberToHex,d.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,d.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",V="0x20c13b0b",p=4001;class h extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,h.prototype)}}class S{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new h("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new h("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(f).includes(a)):!1)}}const b=(t,e)=>e.some(s=>s.parentCapability===t),M=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new S(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new h("Permissions rejected",p);return a.apply(this)},s};var D=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class T{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===V}catch{return!1}}calculateMessageHash(e){return k(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return v({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),_(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}D([M()],T.prototype,"requestAddressBook",null);class J{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new O(this.communicator),this.txs=new A(this.communicator),this.safe=new T(this.communicator),this.wallet=new S(this.communicator)}}const Q=m.Operation,X=m.TokenType,Y=m.TransactionStatus,Z=m.TransferDirection;export{g as MessageFormatter,r as Methods,Q as Operation,c as RPC_CALLS,f as RestrictedMethods,X as TokenType,Y as TransactionStatus,Z as TransferDirection,J as default,q as getSDKVersion,_ as isObjectEIP712TypedData};
2
- //# sourceMappingURL=index-DzWgqsYH.js.map
1
+ import"./react-BQkTEhfI.js";import{r as I}from"./index-xFEDZfFw.js";import{az as w}from"./sendRawTransaction-Z6tsEgH4.js";import{c as k,e as v}from"./hashTypedData-CefqN4UY.js";import"./NetworkUtil-gznX6ou4.js";import"./sentry-DEsWWpBW.js";import"./index-PCOMQSTj.js";import"./dcl-schemas-rAoTN5Ga.js";import"./ethers-BicPoGF3.js";import"./intl-AKLEHPeO.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]="1f6bc92c-a923-4b30-8d60-6ee17edfa453",t._sentryDebugIdIdentifier="sentry-dbid-1f6bc92c-a923-4b30-8d60-6ee17edfa453")}catch{}})();const q=()=>"9.1.0",C=t=>t.toString(16).padStart(2,"0"),R=t=>{const e=new Uint8Array(t/2);return window.crypto.getRandomValues(e),Array.from(e,C).join("")},E=()=>typeof window<"u"?R(10):new Date().getTime().toString(36);class g{}g.makeRequest=(t,e)=>({id:E(),method:t,params:e,env:{sdkVersion:q()}});g.makeResponse=(t,e,s)=>({id:t,success:!0,version:s,data:e});g.makeErrorResponse=(t,e,s)=>({id:t,success:!1,error:e,version:s});var r;(function(t){t.sendTransactions="sendTransactions",t.rpcCall="rpcCall",t.getChainInfo="getChainInfo",t.getSafeInfo="getSafeInfo",t.getTxBySafeTxHash="getTxBySafeTxHash",t.getSafeBalances="getSafeBalances",t.signMessage="signMessage",t.signTypedMessage="signTypedMessage",t.getEnvironmentInfo="getEnvironmentInfo",t.getOffChainSignature="getOffChainSignature",t.requestAddressBook="requestAddressBook",t.wallet_getPermissions="wallet_getPermissions",t.wallet_requestPermissions="wallet_requestPermissions"})(r||(r={}));var f;(function(t){t.requestAddressBook="requestAddressBook"})(f||(f={}));class H{constructor(e=null,s=!1){this.allowedOrigins=null,this.callbacks=new Map,this.debugMode=!1,this.isServer=typeof window>"u",this.isValidMessage=({origin:a,data:n,source:i})=>{const o=!n,l=!this.isServer&&i===window.parent,u=typeof n.version<"u"&&parseInt(n.version.split(".")[0]),B=typeof u=="number"&&u>=1;let y=!0;return Array.isArray(this.allowedOrigins)&&(y=this.allowedOrigins.find(P=>P.test(a))!==void 0),!o&&l&&B&&y},this.logIncomingMessage=a=>{console.info(`Safe Apps SDK v1: A message was received from origin ${a.origin}. `,a.data)},this.onParentMessage=a=>{this.isValidMessage(a)&&(this.debugMode&&this.logIncomingMessage(a),this.handleIncomingMessage(a.data))},this.handleIncomingMessage=a=>{const{id:n}=a,i=this.callbacks.get(n);i&&(i(a),this.callbacks.delete(n))},this.send=(a,n)=>{const i=g.makeRequest(a,n);if(this.isServer)throw new Error("Window doesn't exist");return window.parent.postMessage(i,"*"),new Promise((o,l)=>{this.callbacks.set(i.id,u=>{if(!u.success){l(new Error(u.error));return}o(u)})})},this.allowedOrigins=e,this.debugMode=s,this.isServer||window.addEventListener("message",this.onParentMessage)}}const _=t=>typeof t=="object"&&t!=null&&"domain"in t&&"types"in t&&"message"in t;var m=I();class A{constructor(e){this.communicator=e}async getBySafeTxHash(e){if(!e)throw new Error("Invalid safeTxHash");return(await this.communicator.send(r.getTxBySafeTxHash,{safeTxHash:e})).data}async signMessage(e){const s={message:e};return(await this.communicator.send(r.signMessage,s)).data}async signTypedMessage(e){if(!_(e))throw new Error("Invalid typed data");return(await this.communicator.send(r.signTypedMessage,{typedData:e})).data}async send({txs:e,params:s}){if(!e||!e.length)throw new Error("No transactions were passed");const a={txs:e,params:s};return(await this.communicator.send(r.sendTransactions,a)).data}}const c={eth_call:"eth_call",eth_gasPrice:"eth_gasPrice",eth_getLogs:"eth_getLogs",eth_getBalance:"eth_getBalance",eth_getCode:"eth_getCode",eth_getBlockByHash:"eth_getBlockByHash",eth_getBlockByNumber:"eth_getBlockByNumber",eth_getStorageAt:"eth_getStorageAt",eth_getTransactionByHash:"eth_getTransactionByHash",eth_getTransactionReceipt:"eth_getTransactionReceipt",eth_getTransactionCount:"eth_getTransactionCount",eth_estimateGas:"eth_estimateGas",safe_setSettings:"safe_setSettings"},d={defaultBlockParam:(t="latest")=>t,returnFullTxObjectParam:(t=!1)=>t,blockNumberToHex:t=>Number.isInteger(t)?`0x${t.toString(16)}`:t};class O{constructor(e){this.communicator=e,this.call=this.buildRequest({call:c.eth_call,formatters:[null,d.defaultBlockParam]}),this.getBalance=this.buildRequest({call:c.eth_getBalance,formatters:[null,d.defaultBlockParam]}),this.getCode=this.buildRequest({call:c.eth_getCode,formatters:[null,d.defaultBlockParam]}),this.getStorageAt=this.buildRequest({call:c.eth_getStorageAt,formatters:[null,d.blockNumberToHex,d.defaultBlockParam]}),this.getPastLogs=this.buildRequest({call:c.eth_getLogs}),this.getBlockByHash=this.buildRequest({call:c.eth_getBlockByHash,formatters:[null,d.returnFullTxObjectParam]}),this.getBlockByNumber=this.buildRequest({call:c.eth_getBlockByNumber,formatters:[d.blockNumberToHex,d.returnFullTxObjectParam]}),this.getTransactionByHash=this.buildRequest({call:c.eth_getTransactionByHash}),this.getTransactionReceipt=this.buildRequest({call:c.eth_getTransactionReceipt}),this.getTransactionCount=this.buildRequest({call:c.eth_getTransactionCount,formatters:[null,d.defaultBlockParam]}),this.getGasPrice=this.buildRequest({call:c.eth_gasPrice}),this.getEstimateGas=s=>this.buildRequest({call:c.eth_estimateGas})([s]),this.setSafeSettings=this.buildRequest({call:c.safe_setSettings})}buildRequest(e){const{call:s,formatters:a}=e;return async n=>{a&&Array.isArray(n)&&a.forEach((l,u)=>{l&&(n[u]=l(n[u]))});const i={call:s,params:n||[]};return(await this.communicator.send(r.rpcCall,i)).data}}}const x="0x1626ba7e",V="0x20c13b0b",p=4001;class h extends Error{constructor(e,s,a){super(e),this.code=s,this.data=a,Object.setPrototypeOf(this,h.prototype)}}class S{constructor(e){this.communicator=e}async getPermissions(){return(await this.communicator.send(r.wallet_getPermissions,void 0)).data}async requestPermissions(e){if(!this.isPermissionRequestValid(e))throw new h("Permissions request is invalid",p);try{return(await this.communicator.send(r.wallet_requestPermissions,e)).data}catch{throw new h("Permissions rejected",p)}}isPermissionRequestValid(e){return e.every(s=>typeof s=="object"?Object.keys(s).every(a=>!!Object.values(f).includes(a)):!1)}}const b=(t,e)=>e.some(s=>s.parentCapability===t),M=()=>(t,e,s)=>{const a=s.value;return s.value=async function(){const n=new S(this.communicator);let i=await n.getPermissions();if(b(e,i)||(i=await n.requestPermissions([{[e]:{}}])),!b(e,i))throw new h("Permissions rejected",p);return a.apply(this)},s};var D=function(t,e,s,a){var n=arguments.length,i=n<3?e:a===null?a=Object.getOwnPropertyDescriptor(e,s):a,o;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(t,e,s,a);else for(var l=t.length-1;l>=0;l--)(o=t[l])&&(i=(n<3?o(i):n>3?o(e,s,i):o(e,s))||i);return n>3&&i&&Object.defineProperty(e,s,i),i};class T{constructor(e){this.communicator=e}async getChainInfo(){return(await this.communicator.send(r.getChainInfo,void 0)).data}async getInfo(){return(await this.communicator.send(r.getSafeInfo,void 0)).data}async experimental_getBalances({currency:e="usd"}={}){return(await this.communicator.send(r.getSafeBalances,{currency:e})).data}async check1271Signature(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_dataHash",type:"bytes32"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===x}catch{return!1}}async check1271SignatureBytes(e,s="0x"){const a=await this.getInfo(),n=w({abi:[{constant:!1,inputs:[{name:"_data",type:"bytes"},{name:"_signature",type:"bytes"}],name:"isValidSignature",outputs:[{name:"",type:"bytes4"}],payable:!1,stateMutability:"nonpayable",type:"function"}],functionName:"isValidSignature",args:[e,s]}),i={call:c.eth_call,params:[{to:a.safeAddress,data:n},"latest"]};try{return(await this.communicator.send(r.rpcCall,i)).data.slice(0,10).toLowerCase()===V}catch{return!1}}calculateMessageHash(e){return k(e)}calculateTypedMessageHash(e){const s=typeof e.domain.chainId=="object"?e.domain.chainId.toNumber():Number(e.domain.chainId);let a=e.primaryType;if(!a){const n=Object.values(e.types),i=Object.keys(e.types).filter(o=>n.every(l=>l.every(({type:u})=>u.replace("[","").replace("]","")!==o)));if(i.length===0||i.length>1)throw new Error("Please specify primaryType");a=i[0]}return v({message:e.message,domain:{...e.domain,chainId:s,verifyingContract:e.domain.verifyingContract,salt:e.domain.salt},types:e.types,primaryType:a})}async getOffChainSignature(e){return(await this.communicator.send(r.getOffChainSignature,e)).data}async isMessageSigned(e,s="0x"){let a;if(typeof e=="string"&&(a=async()=>{const n=this.calculateMessageHash(e);return await this.isMessageHashSigned(n,s)}),_(e)&&(a=async()=>{const n=this.calculateTypedMessageHash(e);return await this.isMessageHashSigned(n,s)}),a)return await a();throw new Error("Invalid message type")}async isMessageHashSigned(e,s="0x"){const a=[this.check1271Signature.bind(this),this.check1271SignatureBytes.bind(this)];for(const n of a)if(await n(e,s))return!0;return!1}async getEnvironmentInfo(){return(await this.communicator.send(r.getEnvironmentInfo,void 0)).data}async requestAddressBook(){return(await this.communicator.send(r.requestAddressBook,void 0)).data}}D([M()],T.prototype,"requestAddressBook",null);class J{constructor(e={}){const{allowedDomains:s=null,debug:a=!1}=e;this.communicator=new H(s,a),this.eth=new O(this.communicator),this.txs=new A(this.communicator),this.safe=new T(this.communicator),this.wallet=new S(this.communicator)}}const Q=m.Operation,X=m.TokenType,Y=m.TransactionStatus,Z=m.TransferDirection;export{g as MessageFormatter,r as Methods,Q as Operation,c as RPC_CALLS,f as RestrictedMethods,X as TokenType,Y as TransactionStatus,Z as TransferDirection,J as default,q as getSDKVersion,_ as isObjectEIP712TypedData};
2
+ //# sourceMappingURL=index-Dm2tHUTz.js.map
@@ -1,4 +1,4 @@
1
- import{i as h,b as a}from"./lit-element-wjYUA6aF.js";import{n as i,o as p}from"./class-map-BxMzgOIb.js";import"./index-CwoMLrsB.js";import{c as b}from"./index-CWE_Bdvd.js";import{d as f,r as y,e as g}from"./index-gg05iP5j.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]="7126f597-c464-4ca9-80eb-3ba155ddbe1d",e._sentryDebugIdIdentifier="sentry-dbid-7126f597-c464-4ca9-80eb-3ba155ddbe1d")}catch{}})();const m=f`
1
+ import{i as h,b as a}from"./lit-element-wjYUA6aF.js";import{n as i,o as p}from"./class-map-BxMzgOIb.js";import"./index-Dck2NPjx.js";import{c as b}from"./index-C30kKaUV.js";import{d as f,r as y,e as g}from"./index-DBXe-H17.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]="7126f597-c464-4ca9-80eb-3ba155ddbe1d",e._sentryDebugIdIdentifier="sentry-dbid-7126f597-c464-4ca9-80eb-3ba155ddbe1d")}catch{}})();const m=f`
2
2
  :host {
3
3
  width: 100%;
4
4
  }
@@ -75,4 +75,4 @@ import{i as h,b as a}from"./lit-element-wjYUA6aF.js";import{n as i,o as p}from".
75
75
  src=${this.imageSrc}
76
76
  boxColor=${this.boxColor}
77
77
  ></wui-image>`}templateRightIcon(){return this.rightIcon?this.loading?a`<wui-loading-spinner size="md" color="accent-primary"></wui-loading-spinner>`:a`<wui-icon name="chevronRight" size="lg" color="default"></wui-icon>`:null}};o.styles=[y,g,m];t([i()],o.prototype,"type",void 0);t([i()],o.prototype,"imageSrc",void 0);t([i()],o.prototype,"imageSize",void 0);t([i()],o.prototype,"icon",void 0);t([i()],o.prototype,"iconColor",void 0);t([i({type:Boolean})],o.prototype,"loading",void 0);t([i()],o.prototype,"tabIdx",void 0);t([i()],o.prototype,"boxColor",void 0);t([i({type:Boolean})],o.prototype,"disabled",void 0);t([i({type:Boolean})],o.prototype,"rightIcon",void 0);t([i({type:Boolean})],o.prototype,"boxed",void 0);t([i({type:Boolean})],o.prototype,"rounded",void 0);t([i({type:Boolean})],o.prototype,"fullSize",void 0);o=t([b("wui-list-item")],o);
78
- //# sourceMappingURL=index-rsyTCpy-.js.map
78
+ //# sourceMappingURL=index-Dmr0-dT1.js.map
@@ -1,11 +1,11 @@
1
- import{p as X}from"./sentry-qVQnooqM.js";import{c as Tr}from"./react-ZT2P9-hV.js";import{r as Zr,a as Qr,b as ie,c as ae,d as fe,e as se,f as oe,g as ue}from"./index-CxOzFLm7.js";import{c as Xr,d as nr}from"./ethers-DVrorjJ1.js";(function(){try{var t=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},g=new t.Error().stack;g&&(t._sentryDebugIds=t._sentryDebugIds||{},t._sentryDebugIds[g]="48b10550-ea3d-4f57-8600-7e69832bd1b3",t._sentryDebugIdIdentifier="sentry-dbid-48b10550-ea3d-4f57-8600-7e69832bd1b3")}catch{}})();var or={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Fr;function rr(){return Fr||(Fr=1,(function(t,g){var w=Xr(),h=w.Buffer;function x(l,y){for(var f in l)y[f]=l[f]}h.from&&h.alloc&&h.allocUnsafe&&h.allocUnsafeSlow?t.exports=w:(x(w,g),g.Buffer=s);function s(l,y,f){return h(l,y,f)}s.prototype=Object.create(h.prototype),x(h,s),s.from=function(l,y,f){if(typeof l=="number")throw new TypeError("Argument must not be a number");return h(l,y,f)},s.alloc=function(l,y,f){if(typeof l!="number")throw new TypeError("Argument must be a number");var p=h(l);return y!==void 0?typeof f=="string"?p.fill(y,f):p.fill(y):p.fill(0),p},s.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return h(l)},s.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return w.SlowBuffer(l)}})(or,or.exports)),or.exports}var hr,jr;function re(){if(jr)return hr;jr=1;var t=Zr();return hr=function(w){return!!t(w)},hr}var lr,Dr;function ce(){if(Dr)return lr;Dr=1;var t=ie(),g=Qr(),w=g("TypedArray.prototype.buffer",!0),h=re();return lr=w||function(s){if(!h(s))throw new t("Not a Typed Array");return s.buffer},lr}var dr,kr;function he(){if(kr)return dr;kr=1;var t=rr().Buffer,g=ae(),w=ce(),h=ArrayBuffer.isView||function(f){try{return w(f),!0}catch{return!1}},x=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",l=s&&(t.prototype instanceof Uint8Array||t.TYPED_ARRAY_SUPPORT);return dr=function(f,p){if(t.isBuffer(f))return f.constructor&&!("isBuffer"in f)?t.from(f):f;if(typeof f=="string")return t.from(f,p);if(s&&h(f)){if(f.byteLength===0)return t.alloc(0);if(l){var b=t.from(f.buffer,f.byteOffset,f.byteLength);if(b.byteLength===f.byteLength)return b}var B=f instanceof Uint8Array?f:new Uint8Array(f.buffer,f.byteOffset,f.byteLength),u=t.from(B);if(u.length===f.byteLength)return u}if(x&&f instanceof Uint8Array)return t.from(f);var S=g(f);if(S)for(var v=0;v<f.length;v+=1){var d=f[v];if(typeof d!="number"||d<0||d>255||~~d!==d)throw new RangeError("Array items must be numbers in the range 0-255.")}if(S||t.isBuffer(f)&&f.constructor&&typeof f.constructor.isBuffer=="function"&&f.constructor.isBuffer(f))return t.from(f);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},dr}var yr={},pr={},br,Ur;function le(){if(Ur)return br;Ur=1;const t=(function*(){}).constructor;return br=()=>t,br}var _r,Nr;function de(){if(Nr)return _r;Nr=1;var t=Qr(),g=oe(),w=g(/^\s*(?:function)?\*/),h=fe()(),x=se(),s=t("Object.prototype.toString"),l=t("Function.prototype.toString"),y=le();return _r=function(p){if(typeof p!="function")return!1;if(w(l(p)))return!0;if(!h){var b=s(p);return b==="[object GeneratorFunction]"}if(!x)return!1;var B=y();return B&&x(p)===B.prototype},_r}var qr;function ye(){return qr||(qr=1,(function(t){var g=ue(),w=de(),h=Zr(),x=re();function s(i){return i.call.bind(i)}var l=typeof BigInt<"u",y=typeof Symbol<"u",f=s(Object.prototype.toString),p=s(Number.prototype.valueOf),b=s(String.prototype.valueOf),B=s(Boolean.prototype.valueOf);if(l)var u=s(BigInt.prototype.valueOf);if(y)var S=s(Symbol.prototype.valueOf);function v(i,sr){if(typeof i!="object")return!1;try{return sr(i),!0}catch{return!1}}t.isArgumentsObject=g,t.isGeneratorFunction=w,t.isTypedArray=x;function d(i){return typeof Promise<"u"&&i instanceof Promise||i!==null&&typeof i=="object"&&typeof i.then=="function"&&typeof i.catch=="function"}t.isPromise=d;function o(i){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(i):x(i)||e(i)}t.isArrayBufferView=o;function r(i){return h(i)==="Uint8Array"}t.isUint8Array=r;function c(i){return h(i)==="Uint8ClampedArray"}t.isUint8ClampedArray=c;function _(i){return h(i)==="Uint16Array"}t.isUint16Array=_;function F(i){return h(i)==="Uint32Array"}t.isUint32Array=F;function I(i){return h(i)==="Int8Array"}t.isInt8Array=I;function j(i){return h(i)==="Int16Array"}t.isInt16Array=j;function H(i){return h(i)==="Int32Array"}t.isInt32Array=H;function N(i){return h(i)==="Float32Array"}t.isFloat32Array=N;function k(i){return h(i)==="Float64Array"}t.isFloat64Array=k;function R(i){return h(i)==="BigInt64Array"}t.isBigInt64Array=R;function V(i){return h(i)==="BigUint64Array"}t.isBigUint64Array=V;function q(i){return f(i)==="[object Map]"}q.working=typeof Map<"u"&&q(new Map);function P(i){return typeof Map>"u"?!1:q.working?q(i):i instanceof Map}t.isMap=P;function $(i){return f(i)==="[object Set]"}$.working=typeof Set<"u"&&$(new Set);function L(i){return typeof Set>"u"?!1:$.working?$(i):i instanceof Set}t.isSet=L;function M(i){return f(i)==="[object WeakMap]"}M.working=typeof WeakMap<"u"&&M(new WeakMap);function D(i){return typeof WeakMap>"u"?!1:M.working?M(i):i instanceof WeakMap}t.isWeakMap=D;function W(i){return f(i)==="[object WeakSet]"}W.working=typeof WeakSet<"u"&&W(new WeakSet);function J(i){return W(i)}t.isWeakSet=J;function z(i){return f(i)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function er(i){return typeof ArrayBuffer>"u"?!1:z.working?z(i):i instanceof ArrayBuffer}t.isArrayBuffer=er;function Y(i){return f(i)==="[object DataView]"}Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1));function e(i){return typeof DataView>"u"?!1:Y.working?Y(i):i instanceof DataView}t.isDataView=e;var n=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function a(i){return f(i)==="[object SharedArrayBuffer]"}function E(i){return typeof n>"u"?!1:(typeof a.working>"u"&&(a.working=a(new n)),a.working?a(i):i instanceof n)}t.isSharedArrayBuffer=E;function O(i){return f(i)==="[object AsyncFunction]"}t.isAsyncFunction=O;function A(i){return f(i)==="[object Map Iterator]"}t.isMapIterator=A;function m(i){return f(i)==="[object Set Iterator]"}t.isSetIterator=m;function C(i){return f(i)==="[object Generator]"}t.isGeneratorObject=C;function T(i){return f(i)==="[object WebAssembly.Module]"}t.isWebAssemblyCompiledModule=T;function U(i){return v(i,p)}t.isNumberObject=U;function K(i){return v(i,b)}t.isStringObject=K;function tr(i){return v(i,B)}t.isBooleanObject=tr;function Z(i){return l&&v(i,u)}t.isBigIntObject=Z;function ir(i){return y&&v(i,S)}t.isSymbolObject=ir;function cr(i){return U(i)||K(i)||tr(i)||Z(i)||ir(i)}t.isBoxedPrimitive=cr;function fr(i){return typeof Uint8Array<"u"&&(er(i)||E(i))}t.isAnyArrayBuffer=fr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(i){Object.defineProperty(t,i,{enumerable:!1,value:function(){throw new Error(i+" is not supported in userland")}})})})(pr)),pr}var vr,Pr;function pe(){return Pr||(Pr=1,vr=function(g){return g&&typeof g=="object"&&typeof g.copy=="function"&&typeof g.fill=="function"&&typeof g.readUInt8=="function"}),vr}var Rr;function Se(){return Rr||(Rr=1,(function(t){var g={},w=Object.getOwnPropertyDescriptors||function(n){for(var a=Object.keys(n),E={},O=0;O<a.length;O++)E[a[O]]=Object.getOwnPropertyDescriptor(n,a[O]);return E},h=/%[sdj%]/g;t.format=function(e){if(!j(e)){for(var n=[],a=0;a<arguments.length;a++)n.push(y(arguments[a]));return n.join(" ")}for(var a=1,E=arguments,O=E.length,A=String(e).replace(h,function(C){if(C==="%%")return"%";if(a>=O)return C;switch(C){case"%s":return String(E[a++]);case"%d":return Number(E[a++]);case"%j":try{return JSON.stringify(E[a++])}catch{return"[Circular]"}default:return C}}),m=E[a];a<O;m=E[++a])_(m)||!R(m)?A+=" "+m:A+=" "+y(m);return A},t.deprecate=function(e,n){if(typeof X<"u"&&X.noDeprecation===!0)return e;if(typeof X>"u")return function(){return t.deprecate(e,n).apply(this,arguments)};var a=!1;function E(){if(!a){if(X.throwDeprecation)throw new Error(n);X.traceDeprecation?console.trace(n):console.error(n),a=!0}return e.apply(this,arguments)}return E};var x={},s=/^$/;if(g.NODE_DEBUG){var l=g.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+l+"$","i")}t.debuglog=function(e){if(e=e.toUpperCase(),!x[e])if(s.test(e)){var n=X.pid;x[e]=function(){var a=t.format.apply(t,arguments);console.error("%s %d: %s",e,n,a)}}else x[e]=function(){};return x[e]};function y(e,n){var a={seen:[],stylize:p};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),c(n)?a.showHidden=n:n&&t._extend(a,n),N(a.showHidden)&&(a.showHidden=!1),N(a.depth)&&(a.depth=2),N(a.colors)&&(a.colors=!1),N(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=f),B(a,e,a.depth)}t.inspect=y,y.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(e,n){var a=y.styles[n];return a?"\x1B["+y.colors[a][0]+"m"+e+"\x1B["+y.colors[a][1]+"m":e}function p(e,n){return e}function b(e){var n={};return e.forEach(function(a,E){n[a]=!0}),n}function B(e,n,a){if(e.customInspect&&n&&P(n.inspect)&&n.inspect!==t.inspect&&!(n.constructor&&n.constructor.prototype===n)){var E=n.inspect(a,e);return j(E)||(E=B(e,E,a)),E}var O=u(e,n);if(O)return O;var A=Object.keys(n),m=b(A);if(e.showHidden&&(A=Object.getOwnPropertyNames(n)),q(n)&&(A.indexOf("message")>=0||A.indexOf("description")>=0))return S(n);if(A.length===0){if(P(n)){var C=n.name?": "+n.name:"";return e.stylize("[Function"+C+"]","special")}if(k(n))return e.stylize(RegExp.prototype.toString.call(n),"regexp");if(V(n))return e.stylize(Date.prototype.toString.call(n),"date");if(q(n))return S(n)}var T="",U=!1,K=["{","}"];if(r(n)&&(U=!0,K=["[","]"]),P(n)){var tr=n.name?": "+n.name:"";T=" [Function"+tr+"]"}if(k(n)&&(T=" "+RegExp.prototype.toString.call(n)),V(n)&&(T=" "+Date.prototype.toUTCString.call(n)),q(n)&&(T=" "+S(n)),A.length===0&&(!U||n.length==0))return K[0]+T+K[1];if(a<0)return k(n)?e.stylize(RegExp.prototype.toString.call(n),"regexp"):e.stylize("[Object]","special");e.seen.push(n);var Z;return U?Z=v(e,n,a,m,A):Z=A.map(function(ir){return d(e,n,a,m,ir,U)}),e.seen.pop(),o(Z,T,K)}function u(e,n){if(N(n))return e.stylize("undefined","undefined");if(j(n)){var a="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return e.stylize(a,"string")}if(I(n))return e.stylize(""+n,"number");if(c(n))return e.stylize(""+n,"boolean");if(_(n))return e.stylize("null","null")}function S(e){return"["+Error.prototype.toString.call(e)+"]"}function v(e,n,a,E,O){for(var A=[],m=0,C=n.length;m<C;++m)J(n,String(m))?A.push(d(e,n,a,E,String(m),!0)):A.push("");return O.forEach(function(T){T.match(/^\d+$/)||A.push(d(e,n,a,E,T,!0))}),A}function d(e,n,a,E,O,A){var m,C,T;if(T=Object.getOwnPropertyDescriptor(n,O)||{value:n[O]},T.get?T.set?C=e.stylize("[Getter/Setter]","special"):C=e.stylize("[Getter]","special"):T.set&&(C=e.stylize("[Setter]","special")),J(E,O)||(m="["+O+"]"),C||(e.seen.indexOf(T.value)<0?(_(a)?C=B(e,T.value,null):C=B(e,T.value,a-1),C.indexOf(`
1
+ import{p as X}from"./sentry-DEsWWpBW.js";import{c as Tr}from"./react-BQkTEhfI.js";import{r as Zr,a as Qr,b as it,c as at,d as ft,e as st,f as ot,g as ut}from"./index-Bwq-s3g2.js";import{c as Xr,d as nr}from"./ethers-BicPoGF3.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},g=new e.Error().stack;g&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[g]="c492544f-fec7-404d-8783-2c76f014b9c3",e._sentryDebugIdIdentifier="sentry-dbid-c492544f-fec7-404d-8783-2c76f014b9c3")}catch{}})();var or={exports:{}};/*! safe-buffer. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> */var Fr;function rr(){return Fr||(Fr=1,(function(e,g){var w=Xr(),h=w.Buffer;function x(l,y){for(var f in l)y[f]=l[f]}h.from&&h.alloc&&h.allocUnsafe&&h.allocUnsafeSlow?e.exports=w:(x(w,g),g.Buffer=s);function s(l,y,f){return h(l,y,f)}s.prototype=Object.create(h.prototype),x(h,s),s.from=function(l,y,f){if(typeof l=="number")throw new TypeError("Argument must not be a number");return h(l,y,f)},s.alloc=function(l,y,f){if(typeof l!="number")throw new TypeError("Argument must be a number");var p=h(l);return y!==void 0?typeof f=="string"?p.fill(y,f):p.fill(y):p.fill(0),p},s.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return h(l)},s.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return w.SlowBuffer(l)}})(or,or.exports)),or.exports}var hr,jr;function rt(){if(jr)return hr;jr=1;var e=Zr();return hr=function(w){return!!e(w)},hr}var lr,Dr;function ct(){if(Dr)return lr;Dr=1;var e=it(),g=Qr(),w=g("TypedArray.prototype.buffer",!0),h=rt();return lr=w||function(s){if(!h(s))throw new e("Not a Typed Array");return s.buffer},lr}var dr,kr;function ht(){if(kr)return dr;kr=1;var e=rr().Buffer,g=at(),w=ct(),h=ArrayBuffer.isView||function(f){try{return w(f),!0}catch{return!1}},x=typeof Uint8Array<"u",s=typeof ArrayBuffer<"u"&&typeof Uint8Array<"u",l=s&&(e.prototype instanceof Uint8Array||e.TYPED_ARRAY_SUPPORT);return dr=function(f,p){if(e.isBuffer(f))return f.constructor&&!("isBuffer"in f)?e.from(f):f;if(typeof f=="string")return e.from(f,p);if(s&&h(f)){if(f.byteLength===0)return e.alloc(0);if(l){var b=e.from(f.buffer,f.byteOffset,f.byteLength);if(b.byteLength===f.byteLength)return b}var B=f instanceof Uint8Array?f:new Uint8Array(f.buffer,f.byteOffset,f.byteLength),u=e.from(B);if(u.length===f.byteLength)return u}if(x&&f instanceof Uint8Array)return e.from(f);var S=g(f);if(S)for(var v=0;v<f.length;v+=1){var d=f[v];if(typeof d!="number"||d<0||d>255||~~d!==d)throw new RangeError("Array items must be numbers in the range 0-255.")}if(S||e.isBuffer(f)&&f.constructor&&typeof f.constructor.isBuffer=="function"&&f.constructor.isBuffer(f))return e.from(f);throw new TypeError('The "data" argument must be a string, an Array, a Buffer, a Uint8Array, or a DataView.')},dr}var yr={},pr={},br,Ur;function lt(){if(Ur)return br;Ur=1;const e=(function*(){}).constructor;return br=()=>e,br}var _r,Nr;function dt(){if(Nr)return _r;Nr=1;var e=Qr(),g=ot(),w=g(/^\s*(?:function)?\*/),h=ft()(),x=st(),s=e("Object.prototype.toString"),l=e("Function.prototype.toString"),y=lt();return _r=function(p){if(typeof p!="function")return!1;if(w(l(p)))return!0;if(!h){var b=s(p);return b==="[object GeneratorFunction]"}if(!x)return!1;var B=y();return B&&x(p)===B.prototype},_r}var qr;function yt(){return qr||(qr=1,(function(e){var g=ut(),w=dt(),h=Zr(),x=rt();function s(i){return i.call.bind(i)}var l=typeof BigInt<"u",y=typeof Symbol<"u",f=s(Object.prototype.toString),p=s(Number.prototype.valueOf),b=s(String.prototype.valueOf),B=s(Boolean.prototype.valueOf);if(l)var u=s(BigInt.prototype.valueOf);if(y)var S=s(Symbol.prototype.valueOf);function v(i,sr){if(typeof i!="object")return!1;try{return sr(i),!0}catch{return!1}}e.isArgumentsObject=g,e.isGeneratorFunction=w,e.isTypedArray=x;function d(i){return typeof Promise<"u"&&i instanceof Promise||i!==null&&typeof i=="object"&&typeof i.then=="function"&&typeof i.catch=="function"}e.isPromise=d;function o(i){return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?ArrayBuffer.isView(i):x(i)||t(i)}e.isArrayBufferView=o;function r(i){return h(i)==="Uint8Array"}e.isUint8Array=r;function c(i){return h(i)==="Uint8ClampedArray"}e.isUint8ClampedArray=c;function _(i){return h(i)==="Uint16Array"}e.isUint16Array=_;function F(i){return h(i)==="Uint32Array"}e.isUint32Array=F;function I(i){return h(i)==="Int8Array"}e.isInt8Array=I;function j(i){return h(i)==="Int16Array"}e.isInt16Array=j;function H(i){return h(i)==="Int32Array"}e.isInt32Array=H;function N(i){return h(i)==="Float32Array"}e.isFloat32Array=N;function k(i){return h(i)==="Float64Array"}e.isFloat64Array=k;function R(i){return h(i)==="BigInt64Array"}e.isBigInt64Array=R;function V(i){return h(i)==="BigUint64Array"}e.isBigUint64Array=V;function q(i){return f(i)==="[object Map]"}q.working=typeof Map<"u"&&q(new Map);function P(i){return typeof Map>"u"?!1:q.working?q(i):i instanceof Map}e.isMap=P;function $(i){return f(i)==="[object Set]"}$.working=typeof Set<"u"&&$(new Set);function L(i){return typeof Set>"u"?!1:$.working?$(i):i instanceof Set}e.isSet=L;function M(i){return f(i)==="[object WeakMap]"}M.working=typeof WeakMap<"u"&&M(new WeakMap);function D(i){return typeof WeakMap>"u"?!1:M.working?M(i):i instanceof WeakMap}e.isWeakMap=D;function W(i){return f(i)==="[object WeakSet]"}W.working=typeof WeakSet<"u"&&W(new WeakSet);function J(i){return W(i)}e.isWeakSet=J;function z(i){return f(i)==="[object ArrayBuffer]"}z.working=typeof ArrayBuffer<"u"&&z(new ArrayBuffer);function tr(i){return typeof ArrayBuffer>"u"?!1:z.working?z(i):i instanceof ArrayBuffer}e.isArrayBuffer=tr;function Y(i){return f(i)==="[object DataView]"}Y.working=typeof ArrayBuffer<"u"&&typeof DataView<"u"&&Y(new DataView(new ArrayBuffer(1),0,1));function t(i){return typeof DataView>"u"?!1:Y.working?Y(i):i instanceof DataView}e.isDataView=t;var n=typeof SharedArrayBuffer<"u"?SharedArrayBuffer:void 0;function a(i){return f(i)==="[object SharedArrayBuffer]"}function E(i){return typeof n>"u"?!1:(typeof a.working>"u"&&(a.working=a(new n)),a.working?a(i):i instanceof n)}e.isSharedArrayBuffer=E;function O(i){return f(i)==="[object AsyncFunction]"}e.isAsyncFunction=O;function A(i){return f(i)==="[object Map Iterator]"}e.isMapIterator=A;function m(i){return f(i)==="[object Set Iterator]"}e.isSetIterator=m;function C(i){return f(i)==="[object Generator]"}e.isGeneratorObject=C;function T(i){return f(i)==="[object WebAssembly.Module]"}e.isWebAssemblyCompiledModule=T;function U(i){return v(i,p)}e.isNumberObject=U;function K(i){return v(i,b)}e.isStringObject=K;function er(i){return v(i,B)}e.isBooleanObject=er;function Z(i){return l&&v(i,u)}e.isBigIntObject=Z;function ir(i){return y&&v(i,S)}e.isSymbolObject=ir;function cr(i){return U(i)||K(i)||er(i)||Z(i)||ir(i)}e.isBoxedPrimitive=cr;function fr(i){return typeof Uint8Array<"u"&&(tr(i)||E(i))}e.isAnyArrayBuffer=fr,["isProxy","isExternal","isModuleNamespaceObject"].forEach(function(i){Object.defineProperty(e,i,{enumerable:!1,value:function(){throw new Error(i+" is not supported in userland")}})})})(pr)),pr}var vr,Pr;function pt(){return Pr||(Pr=1,vr=function(g){return g&&typeof g=="object"&&typeof g.copy=="function"&&typeof g.fill=="function"&&typeof g.readUInt8=="function"}),vr}var Rr;function St(){return Rr||(Rr=1,(function(e){var g={},w=Object.getOwnPropertyDescriptors||function(n){for(var a=Object.keys(n),E={},O=0;O<a.length;O++)E[a[O]]=Object.getOwnPropertyDescriptor(n,a[O]);return E},h=/%[sdj%]/g;e.format=function(t){if(!j(t)){for(var n=[],a=0;a<arguments.length;a++)n.push(y(arguments[a]));return n.join(" ")}for(var a=1,E=arguments,O=E.length,A=String(t).replace(h,function(C){if(C==="%%")return"%";if(a>=O)return C;switch(C){case"%s":return String(E[a++]);case"%d":return Number(E[a++]);case"%j":try{return JSON.stringify(E[a++])}catch{return"[Circular]"}default:return C}}),m=E[a];a<O;m=E[++a])_(m)||!R(m)?A+=" "+m:A+=" "+y(m);return A},e.deprecate=function(t,n){if(typeof X<"u"&&X.noDeprecation===!0)return t;if(typeof X>"u")return function(){return e.deprecate(t,n).apply(this,arguments)};var a=!1;function E(){if(!a){if(X.throwDeprecation)throw new Error(n);X.traceDeprecation?console.trace(n):console.error(n),a=!0}return t.apply(this,arguments)}return E};var x={},s=/^$/;if(g.NODE_DEBUG){var l=g.NODE_DEBUG;l=l.replace(/[|\\{}()[\]^$+?.]/g,"\\$&").replace(/\*/g,".*").replace(/,/g,"$|^").toUpperCase(),s=new RegExp("^"+l+"$","i")}e.debuglog=function(t){if(t=t.toUpperCase(),!x[t])if(s.test(t)){var n=X.pid;x[t]=function(){var a=e.format.apply(e,arguments);console.error("%s %d: %s",t,n,a)}}else x[t]=function(){};return x[t]};function y(t,n){var a={seen:[],stylize:p};return arguments.length>=3&&(a.depth=arguments[2]),arguments.length>=4&&(a.colors=arguments[3]),c(n)?a.showHidden=n:n&&e._extend(a,n),N(a.showHidden)&&(a.showHidden=!1),N(a.depth)&&(a.depth=2),N(a.colors)&&(a.colors=!1),N(a.customInspect)&&(a.customInspect=!0),a.colors&&(a.stylize=f),B(a,t,a.depth)}e.inspect=y,y.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},y.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function f(t,n){var a=y.styles[n];return a?"\x1B["+y.colors[a][0]+"m"+t+"\x1B["+y.colors[a][1]+"m":t}function p(t,n){return t}function b(t){var n={};return t.forEach(function(a,E){n[a]=!0}),n}function B(t,n,a){if(t.customInspect&&n&&P(n.inspect)&&n.inspect!==e.inspect&&!(n.constructor&&n.constructor.prototype===n)){var E=n.inspect(a,t);return j(E)||(E=B(t,E,a)),E}var O=u(t,n);if(O)return O;var A=Object.keys(n),m=b(A);if(t.showHidden&&(A=Object.getOwnPropertyNames(n)),q(n)&&(A.indexOf("message")>=0||A.indexOf("description")>=0))return S(n);if(A.length===0){if(P(n)){var C=n.name?": "+n.name:"";return t.stylize("[Function"+C+"]","special")}if(k(n))return t.stylize(RegExp.prototype.toString.call(n),"regexp");if(V(n))return t.stylize(Date.prototype.toString.call(n),"date");if(q(n))return S(n)}var T="",U=!1,K=["{","}"];if(r(n)&&(U=!0,K=["[","]"]),P(n)){var er=n.name?": "+n.name:"";T=" [Function"+er+"]"}if(k(n)&&(T=" "+RegExp.prototype.toString.call(n)),V(n)&&(T=" "+Date.prototype.toUTCString.call(n)),q(n)&&(T=" "+S(n)),A.length===0&&(!U||n.length==0))return K[0]+T+K[1];if(a<0)return k(n)?t.stylize(RegExp.prototype.toString.call(n),"regexp"):t.stylize("[Object]","special");t.seen.push(n);var Z;return U?Z=v(t,n,a,m,A):Z=A.map(function(ir){return d(t,n,a,m,ir,U)}),t.seen.pop(),o(Z,T,K)}function u(t,n){if(N(n))return t.stylize("undefined","undefined");if(j(n)){var a="'"+JSON.stringify(n).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return t.stylize(a,"string")}if(I(n))return t.stylize(""+n,"number");if(c(n))return t.stylize(""+n,"boolean");if(_(n))return t.stylize("null","null")}function S(t){return"["+Error.prototype.toString.call(t)+"]"}function v(t,n,a,E,O){for(var A=[],m=0,C=n.length;m<C;++m)J(n,String(m))?A.push(d(t,n,a,E,String(m),!0)):A.push("");return O.forEach(function(T){T.match(/^\d+$/)||A.push(d(t,n,a,E,T,!0))}),A}function d(t,n,a,E,O,A){var m,C,T;if(T=Object.getOwnPropertyDescriptor(n,O)||{value:n[O]},T.get?T.set?C=t.stylize("[Getter/Setter]","special"):C=t.stylize("[Getter]","special"):T.set&&(C=t.stylize("[Setter]","special")),J(E,O)||(m="["+O+"]"),C||(t.seen.indexOf(T.value)<0?(_(a)?C=B(t,T.value,null):C=B(t,T.value,a-1),C.indexOf(`
2
2
  `)>-1&&(A?C=C.split(`
3
3
  `).map(function(U){return" "+U}).join(`
4
4
  `).slice(2):C=`
5
5
  `+C.split(`
6
6
  `).map(function(U){return" "+U}).join(`
7
- `))):C=e.stylize("[Circular]","special")),N(m)){if(A&&O.match(/^\d+$/))return C;m=JSON.stringify(""+O),m.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(m=m.slice(1,-1),m=e.stylize(m,"name")):(m=m.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),m=e.stylize(m,"string"))}return m+": "+C}function o(e,n,a){var E=e.reduce(function(O,A){return A.indexOf(`
7
+ `))):C=t.stylize("[Circular]","special")),N(m)){if(A&&O.match(/^\d+$/))return C;m=JSON.stringify(""+O),m.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(m=m.slice(1,-1),m=t.stylize(m,"name")):(m=m.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),m=t.stylize(m,"string"))}return m+": "+C}function o(t,n,a){var E=t.reduce(function(O,A){return A.indexOf(`
8
8
  `)>=0,O+A.replace(/\u001b\[\d\d?m/g,"").length+1},0);return E>60?a[0]+(n===""?"":n+`
9
- `)+" "+e.join(`,
10
- `)+" "+a[1]:a[0]+n+" "+e.join(", ")+" "+a[1]}t.types=ye();function r(e){return Array.isArray(e)}t.isArray=r;function c(e){return typeof e=="boolean"}t.isBoolean=c;function _(e){return e===null}t.isNull=_;function F(e){return e==null}t.isNullOrUndefined=F;function I(e){return typeof e=="number"}t.isNumber=I;function j(e){return typeof e=="string"}t.isString=j;function H(e){return typeof e=="symbol"}t.isSymbol=H;function N(e){return e===void 0}t.isUndefined=N;function k(e){return R(e)&&L(e)==="[object RegExp]"}t.isRegExp=k,t.types.isRegExp=k;function R(e){return typeof e=="object"&&e!==null}t.isObject=R;function V(e){return R(e)&&L(e)==="[object Date]"}t.isDate=V,t.types.isDate=V;function q(e){return R(e)&&(L(e)==="[object Error]"||e instanceof Error)}t.isError=q,t.types.isNativeError=q;function P(e){return typeof e=="function"}t.isFunction=P;function $(e){return e===null||typeof e=="boolean"||typeof e=="number"||typeof e=="string"||typeof e=="symbol"||typeof e>"u"}t.isPrimitive=$,t.isBuffer=pe();function L(e){return Object.prototype.toString.call(e)}function M(e){return e<10?"0"+e.toString(10):e.toString(10)}var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function W(){var e=new Date,n=[M(e.getHours()),M(e.getMinutes()),M(e.getSeconds())].join(":");return[e.getDate(),D[e.getMonth()],n].join(" ")}t.log=function(){console.log("%s - %s",W(),t.format.apply(t,arguments))},t.inherits=nr(),t._extend=function(e,n){if(!n||!R(n))return e;for(var a=Object.keys(n),E=a.length;E--;)e[a[E]]=n[a[E]];return e};function J(e,n){return Object.prototype.hasOwnProperty.call(e,n)}var z=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;t.promisify=function(n){if(typeof n!="function")throw new TypeError('The "original" argument must be of type Function');if(z&&n[z]){var a=n[z];if(typeof a!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(a,z,{value:a,enumerable:!1,writable:!1,configurable:!0}),a}function a(){for(var E,O,A=new Promise(function(T,U){E=T,O=U}),m=[],C=0;C<arguments.length;C++)m.push(arguments[C]);m.push(function(T,U){T?O(T):E(U)});try{n.apply(this,m)}catch(T){O(T)}return A}return Object.setPrototypeOf(a,Object.getPrototypeOf(n)),z&&Object.defineProperty(a,z,{value:a,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(a,w(n))},t.promisify.custom=z;function er(e,n){if(!e){var a=new Error("Promise was rejected with a falsy value");a.reason=e,e=a}return n(e)}function Y(e){if(typeof e!="function")throw new TypeError('The "original" argument must be of type Function');function n(){for(var a=[],E=0;E<arguments.length;E++)a.push(arguments[E]);var O=a.pop();if(typeof O!="function")throw new TypeError("The last argument must be of type Function");var A=this,m=function(){return O.apply(A,arguments)};e.apply(this,a).then(function(C){X.nextTick(m.bind(null,null,C))},function(C){X.nextTick(er.bind(null,C,m))})}return Object.setPrototypeOf(n,Object.getPrototypeOf(e)),Object.defineProperties(n,w(e)),n}t.callbackify=Y})(yr)),yr}var gr,Mr;function Ee(){if(Mr)return gr;Mr=1,gr=t;function t(w,h){if(g("noDeprecation"))return w;var x=!1;function s(){if(!x){if(g("throwDeprecation"))throw new Error(h);g("traceDeprecation")?console.trace(h):console.warn(h),x=!0}return w.apply(this,arguments)}return s}function g(w){try{if(!Tr.localStorage)return!1}catch{return!1}var h=Tr.localStorage[w];return h==null?!1:String(h).toLowerCase()==="true"}return gr}var xr={},ur={exports:{}},zr;function be(){return zr||(zr=1,(function(t,g){var w=Xr(),h=w.Buffer;function x(l,y){for(var f in l)y[f]=l[f]}h.from&&h.alloc&&h.allocUnsafe&&h.allocUnsafeSlow?t.exports=w:(x(w,g),g.Buffer=s);function s(l,y,f){return h(l,y,f)}x(h,s),s.from=function(l,y,f){if(typeof l=="number")throw new TypeError("Argument must not be a number");return h(l,y,f)},s.alloc=function(l,y,f){if(typeof l!="number")throw new TypeError("Argument must be a number");var p=h(l);return y!==void 0?typeof f=="string"?p.fill(y,f):p.fill(y):p.fill(0),p},s.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return h(l)},s.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return w.SlowBuffer(l)}})(ur,ur.exports)),ur.exports}var Gr;function Ce(){if(Gr)return xr;Gr=1;var t=be().Buffer,g=t.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function w(r){if(!r)return"utf8";for(var c;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(c)return;r=(""+r).toLowerCase(),c=!0}}function h(r){var c=w(r);if(typeof c!="string"&&(t.isEncoding===g||!g(r)))throw new Error("Unknown encoding: "+r);return c||r}xr.StringDecoder=x;function x(r){this.encoding=h(r);var c;switch(this.encoding){case"utf16le":this.text=B,this.end=u,c=4;break;case"utf8":this.fillLast=f,c=4;break;case"base64":this.text=S,this.end=v,c=3;break;default:this.write=d,this.end=o;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=t.allocUnsafe(c)}x.prototype.write=function(r){if(r.length===0)return"";var c,_;if(this.lastNeed){if(c=this.fillLast(r),c===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _<r.length?c?c+this.text(r,_):this.text(r,_):c||""},x.prototype.end=b,x.prototype.text=p,x.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length};function s(r){return r<=127?0:r>>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function l(r,c,_){var F=c.length-1;if(F<_)return 0;var I=s(c[F]);return I>=0?(I>0&&(r.lastNeed=I-1),I):--F<_||I===-2?0:(I=s(c[F]),I>=0?(I>0&&(r.lastNeed=I-2),I):--F<_||I===-2?0:(I=s(c[F]),I>=0?(I>0&&(I===2?I=0:r.lastNeed=I-3),I):0))}function y(r,c,_){if((c[0]&192)!==128)return r.lastNeed=0,"�";if(r.lastNeed>1&&c.length>1){if((c[1]&192)!==128)return r.lastNeed=1,"�";if(r.lastNeed>2&&c.length>2&&(c[2]&192)!==128)return r.lastNeed=2,"�"}}function f(r){var c=this.lastTotal-this.lastNeed,_=y(this,r);if(_!==void 0)return _;if(this.lastNeed<=r.length)return r.copy(this.lastChar,c,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,c,0,r.length),this.lastNeed-=r.length}function p(r,c){var _=l(this,r,c);if(!this.lastNeed)return r.toString("utf8",c);this.lastTotal=_;var F=r.length-(_-this.lastNeed);return r.copy(this.lastChar,0,F),r.toString("utf8",c,F)}function b(r){var c=r&&r.length?this.write(r):"";return this.lastNeed?c+"�":c}function B(r,c){if((r.length-c)%2===0){var _=r.toString("utf16le",c);if(_){var F=_.charCodeAt(_.length-1);if(F>=55296&&F<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",c,r.length-1)}function u(r){var c=r&&r.length?this.write(r):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return c+this.lastChar.toString("utf16le",0,_)}return c}function S(r,c){var _=(r.length-c)%3;return _===0?r.toString("base64",c):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",c,r.length-_))}function v(r){var c=r&&r.length?this.write(r):"";return this.lastNeed?c+this.lastChar.toString("base64",0,3-this.lastNeed):c}function d(r){return r.toString(this.encoding)}function o(r){return r&&r.length?this.write(r):""}return xr}var wr={exports:{}},Br,Hr;function ar(){if(Hr)return Br;Hr=1;var t=rr().Buffer,g=he();function w(h,x){this._block=t.alloc(h),this._finalSize=x,this._blockSize=h,this._len=0}return w.prototype.update=function(h,x){h=g(h,x||"utf8");for(var s=this._block,l=this._blockSize,y=h.length,f=this._len,p=0;p<y;){for(var b=f%l,B=Math.min(y-p,l-b),u=0;u<B;u++)s[b+u]=h[p+u];f+=B,p+=B,f%l===0&&this._update(s)}return this._len+=y,this},w.prototype.digest=function(h){var x=this._len%this._blockSize;this._block[x]=128,this._block.fill(0,x+1),x>=this._finalSize&&(this._update(this._block),this._block.fill(0));var s=this._len*8;if(s<=4294967295)this._block.writeUInt32BE(s,this._blockSize-4);else{var l=(s&4294967295)>>>0,y=(s-l)/4294967296;this._block.writeUInt32BE(y,this._blockSize-8),this._block.writeUInt32BE(l,this._blockSize-4)}this._update(this._block);var f=this._hash();return h?f.toString(h):f},w.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Br=w,Br}var mr,Vr;function _e(){if(Vr)return mr;Vr=1;var t=nr(),g=ar(),w=rr().Buffer,h=[1518500249,1859775393,-1894007588,-899497514],x=new Array(80);function s(){this.init(),this._w=x,g.call(this,64,56)}t(s,g),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(p){return p<<5|p>>>27}function y(p){return p<<30|p>>>2}function f(p,b,B,u){return p===0?b&B|~b&u:p===2?b&B|b&u|B&u:b^B^u}return s.prototype._update=function(p){for(var b=this._w,B=this._a|0,u=this._b|0,S=this._c|0,v=this._d|0,d=this._e|0,o=0;o<16;++o)b[o]=p.readInt32BE(o*4);for(;o<80;++o)b[o]=b[o-3]^b[o-8]^b[o-14]^b[o-16];for(var r=0;r<80;++r){var c=~~(r/20),_=l(B)+f(c,u,S,v)+d+b[r]+h[c]|0;d=v,v=S,S=y(u),u=B,B=_}this._a=B+this._a|0,this._b=u+this._b|0,this._c=S+this._c|0,this._d=v+this._d|0,this._e=d+this._e|0},s.prototype._hash=function(){var p=w.allocUnsafe(20);return p.writeInt32BE(this._a|0,0),p.writeInt32BE(this._b|0,4),p.writeInt32BE(this._c|0,8),p.writeInt32BE(this._d|0,12),p.writeInt32BE(this._e|0,16),p},mr=s,mr}var Ar,$r;function ve(){if($r)return Ar;$r=1;var t=nr(),g=ar(),w=rr().Buffer,h=[1518500249,1859775393,-1894007588,-899497514],x=new Array(80);function s(){this.init(),this._w=x,g.call(this,64,56)}t(s,g),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(b){return b<<1|b>>>31}function y(b){return b<<5|b>>>27}function f(b){return b<<30|b>>>2}function p(b,B,u,S){return b===0?B&u|~B&S:b===2?B&u|B&S|u&S:B^u^S}return s.prototype._update=function(b){for(var B=this._w,u=this._a|0,S=this._b|0,v=this._c|0,d=this._d|0,o=this._e|0,r=0;r<16;++r)B[r]=b.readInt32BE(r*4);for(;r<80;++r)B[r]=l(B[r-3]^B[r-8]^B[r-14]^B[r-16]);for(var c=0;c<80;++c){var _=~~(c/20),F=y(u)+p(_,S,v,d)+o+B[c]+h[_]|0;o=d,d=v,v=f(S),S=u,u=F}this._a=u+this._a|0,this._b=S+this._b|0,this._c=v+this._c|0,this._d=d+this._d|0,this._e=o+this._e|0},s.prototype._hash=function(){var b=w.allocUnsafe(20);return b.writeInt32BE(this._a|0,0),b.writeInt32BE(this._b|0,4),b.writeInt32BE(this._c|0,8),b.writeInt32BE(this._d|0,12),b.writeInt32BE(this._e|0,16),b},Ar=s,Ar}var Sr,Lr;function ee(){if(Lr)return Sr;Lr=1;var t=nr(),g=ar(),w=rr().Buffer,h=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],x=new Array(64);function s(){this.init(),this._w=x,g.call(this,64,56)}t(s,g),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function l(u,S,v){return v^u&(S^v)}function y(u,S,v){return u&S|v&(u|S)}function f(u){return(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10)}function p(u){return(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7)}function b(u){return(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3}function B(u){return(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10}return s.prototype._update=function(u){for(var S=this._w,v=this._a|0,d=this._b|0,o=this._c|0,r=this._d|0,c=this._e|0,_=this._f|0,F=this._g|0,I=this._h|0,j=0;j<16;++j)S[j]=u.readInt32BE(j*4);for(;j<64;++j)S[j]=B(S[j-2])+S[j-7]+b(S[j-15])+S[j-16]|0;for(var H=0;H<64;++H){var N=I+p(c)+l(c,_,F)+h[H]+S[H]|0,k=f(v)+y(v,d,o)|0;I=F,F=_,_=c,c=r+N|0,r=o,o=d,d=v,v=N+k|0}this._a=v+this._a|0,this._b=d+this._b|0,this._c=o+this._c|0,this._d=r+this._d|0,this._e=c+this._e|0,this._f=_+this._f|0,this._g=F+this._g|0,this._h=I+this._h|0},s.prototype._hash=function(){var u=w.allocUnsafe(32);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u.writeInt32BE(this._h,28),u},Sr=s,Sr}var Er,Wr;function ge(){if(Wr)return Er;Wr=1;var t=nr(),g=ee(),w=ar(),h=rr().Buffer,x=new Array(64);function s(){this.init(),this._w=x,w.call(this,64,56)}return t(s,g),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var l=h.allocUnsafe(28);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l},Er=s,Er}var Cr,Jr;function te(){if(Jr)return Cr;Jr=1;var t=nr(),g=ar(),w=rr().Buffer,h=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],x=new Array(160);function s(){this.init(),this._w=x,g.call(this,128,112)}t(s,g),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function l(d,o,r){return r^d&(o^r)}function y(d,o,r){return d&o|r&(d|o)}function f(d,o){return(d>>>28|o<<4)^(o>>>2|d<<30)^(o>>>7|d<<25)}function p(d,o){return(d>>>14|o<<18)^(d>>>18|o<<14)^(o>>>9|d<<23)}function b(d,o){return(d>>>1|o<<31)^(d>>>8|o<<24)^d>>>7}function B(d,o){return(d>>>1|o<<31)^(d>>>8|o<<24)^(d>>>7|o<<25)}function u(d,o){return(d>>>19|o<<13)^(o>>>29|d<<3)^d>>>6}function S(d,o){return(d>>>19|o<<13)^(o>>>29|d<<3)^(d>>>6|o<<26)}function v(d,o){return d>>>0<o>>>0?1:0}return s.prototype._update=function(d){for(var o=this._w,r=this._ah|0,c=this._bh|0,_=this._ch|0,F=this._dh|0,I=this._eh|0,j=this._fh|0,H=this._gh|0,N=this._hh|0,k=this._al|0,R=this._bl|0,V=this._cl|0,q=this._dl|0,P=this._el|0,$=this._fl|0,L=this._gl|0,M=this._hl|0,D=0;D<32;D+=2)o[D]=d.readInt32BE(D*4),o[D+1]=d.readInt32BE(D*4+4);for(;D<160;D+=2){var W=o[D-30],J=o[D-30+1],z=b(W,J),er=B(J,W);W=o[D-4],J=o[D-4+1];var Y=u(W,J),e=S(J,W),n=o[D-14],a=o[D-14+1],E=o[D-32],O=o[D-32+1],A=er+a|0,m=z+n+v(A,er)|0;A=A+e|0,m=m+Y+v(A,e)|0,A=A+O|0,m=m+E+v(A,O)|0,o[D]=m,o[D+1]=A}for(var C=0;C<160;C+=2){m=o[C],A=o[C+1];var T=y(r,c,_),U=y(k,R,V),K=f(r,k),tr=f(k,r),Z=p(I,P),ir=p(P,I),cr=h[C],fr=h[C+1],i=l(I,j,H),sr=l(P,$,L),G=M+ir|0,Q=N+Z+v(G,M)|0;G=G+sr|0,Q=Q+i+v(G,sr)|0,G=G+fr|0,Q=Q+cr+v(G,fr)|0,G=G+A|0,Q=Q+m+v(G,A)|0;var Or=tr+U|0,ne=K+T+v(Or,tr)|0;N=H,M=L,H=j,L=$,j=I,$=P,P=q+G|0,I=F+Q+v(P,q)|0,F=_,q=V,_=c,V=R,c=r,R=k,k=G+Or|0,r=Q+ne+v(k,G)|0}this._al=this._al+k|0,this._bl=this._bl+R|0,this._cl=this._cl+V|0,this._dl=this._dl+q|0,this._el=this._el+P|0,this._fl=this._fl+$|0,this._gl=this._gl+L|0,this._hl=this._hl+M|0,this._ah=this._ah+r+v(this._al,k)|0,this._bh=this._bh+c+v(this._bl,R)|0,this._ch=this._ch+_+v(this._cl,V)|0,this._dh=this._dh+F+v(this._dl,q)|0,this._eh=this._eh+I+v(this._el,P)|0,this._fh=this._fh+j+v(this._fl,$)|0,this._gh=this._gh+H+v(this._gl,L)|0,this._hh=this._hh+N+v(this._hl,M)|0},s.prototype._hash=function(){var d=w.allocUnsafe(64);function o(r,c,_){d.writeInt32BE(r,_),d.writeInt32BE(c,_+4)}return o(this._ah,this._al,0),o(this._bh,this._bl,8),o(this._ch,this._cl,16),o(this._dh,this._dl,24),o(this._eh,this._el,32),o(this._fh,this._fl,40),o(this._gh,this._gl,48),o(this._hh,this._hl,56),d},Cr=s,Cr}var Ir,Kr;function xe(){if(Kr)return Ir;Kr=1;var t=nr(),g=te(),w=ar(),h=rr().Buffer,x=new Array(160);function s(){this.init(),this._w=x,w.call(this,128,112)}return t(s,g),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var l=h.allocUnsafe(48);function y(f,p,b){l.writeInt32BE(f,b),l.writeInt32BE(p,b+4)}return y(this._ah,this._al,0),y(this._bh,this._bl,8),y(this._ch,this._cl,16),y(this._dh,this._dl,24),y(this._eh,this._el,32),y(this._fh,this._fl,40),l},Ir=s,Ir}var Yr;function Ie(){return Yr||(Yr=1,(function(t){t.exports=function(w){var h=w.toLowerCase(),x=t.exports[h];if(!x)throw new Error(h+" is not supported (we accept pull requests)");return new x},t.exports.sha=_e(),t.exports.sha1=ve(),t.exports.sha224=ge(),t.exports.sha256=ee(),t.exports.sha384=xe(),t.exports.sha512=te()})(wr)),wr.exports}export{he as a,Se as b,Ee as c,Ce as d,Ie as e,rr as r};
11
- //# sourceMappingURL=index-Dyy6WQp0.js.map
9
+ `)+" "+t.join(`,
10
+ `)+" "+a[1]:a[0]+n+" "+t.join(", ")+" "+a[1]}e.types=yt();function r(t){return Array.isArray(t)}e.isArray=r;function c(t){return typeof t=="boolean"}e.isBoolean=c;function _(t){return t===null}e.isNull=_;function F(t){return t==null}e.isNullOrUndefined=F;function I(t){return typeof t=="number"}e.isNumber=I;function j(t){return typeof t=="string"}e.isString=j;function H(t){return typeof t=="symbol"}e.isSymbol=H;function N(t){return t===void 0}e.isUndefined=N;function k(t){return R(t)&&L(t)==="[object RegExp]"}e.isRegExp=k,e.types.isRegExp=k;function R(t){return typeof t=="object"&&t!==null}e.isObject=R;function V(t){return R(t)&&L(t)==="[object Date]"}e.isDate=V,e.types.isDate=V;function q(t){return R(t)&&(L(t)==="[object Error]"||t instanceof Error)}e.isError=q,e.types.isNativeError=q;function P(t){return typeof t=="function"}e.isFunction=P;function $(t){return t===null||typeof t=="boolean"||typeof t=="number"||typeof t=="string"||typeof t=="symbol"||typeof t>"u"}e.isPrimitive=$,e.isBuffer=pt();function L(t){return Object.prototype.toString.call(t)}function M(t){return t<10?"0"+t.toString(10):t.toString(10)}var D=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function W(){var t=new Date,n=[M(t.getHours()),M(t.getMinutes()),M(t.getSeconds())].join(":");return[t.getDate(),D[t.getMonth()],n].join(" ")}e.log=function(){console.log("%s - %s",W(),e.format.apply(e,arguments))},e.inherits=nr(),e._extend=function(t,n){if(!n||!R(n))return t;for(var a=Object.keys(n),E=a.length;E--;)t[a[E]]=n[a[E]];return t};function J(t,n){return Object.prototype.hasOwnProperty.call(t,n)}var z=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;e.promisify=function(n){if(typeof n!="function")throw new TypeError('The "original" argument must be of type Function');if(z&&n[z]){var a=n[z];if(typeof a!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(a,z,{value:a,enumerable:!1,writable:!1,configurable:!0}),a}function a(){for(var E,O,A=new Promise(function(T,U){E=T,O=U}),m=[],C=0;C<arguments.length;C++)m.push(arguments[C]);m.push(function(T,U){T?O(T):E(U)});try{n.apply(this,m)}catch(T){O(T)}return A}return Object.setPrototypeOf(a,Object.getPrototypeOf(n)),z&&Object.defineProperty(a,z,{value:a,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(a,w(n))},e.promisify.custom=z;function tr(t,n){if(!t){var a=new Error("Promise was rejected with a falsy value");a.reason=t,t=a}return n(t)}function Y(t){if(typeof t!="function")throw new TypeError('The "original" argument must be of type Function');function n(){for(var a=[],E=0;E<arguments.length;E++)a.push(arguments[E]);var O=a.pop();if(typeof O!="function")throw new TypeError("The last argument must be of type Function");var A=this,m=function(){return O.apply(A,arguments)};t.apply(this,a).then(function(C){X.nextTick(m.bind(null,null,C))},function(C){X.nextTick(tr.bind(null,C,m))})}return Object.setPrototypeOf(n,Object.getPrototypeOf(t)),Object.defineProperties(n,w(t)),n}e.callbackify=Y})(yr)),yr}var gr,Mr;function Et(){if(Mr)return gr;Mr=1,gr=e;function e(w,h){if(g("noDeprecation"))return w;var x=!1;function s(){if(!x){if(g("throwDeprecation"))throw new Error(h);g("traceDeprecation")?console.trace(h):console.warn(h),x=!0}return w.apply(this,arguments)}return s}function g(w){try{if(!Tr.localStorage)return!1}catch{return!1}var h=Tr.localStorage[w];return h==null?!1:String(h).toLowerCase()==="true"}return gr}var xr={},ur={exports:{}},zr;function bt(){return zr||(zr=1,(function(e,g){var w=Xr(),h=w.Buffer;function x(l,y){for(var f in l)y[f]=l[f]}h.from&&h.alloc&&h.allocUnsafe&&h.allocUnsafeSlow?e.exports=w:(x(w,g),g.Buffer=s);function s(l,y,f){return h(l,y,f)}x(h,s),s.from=function(l,y,f){if(typeof l=="number")throw new TypeError("Argument must not be a number");return h(l,y,f)},s.alloc=function(l,y,f){if(typeof l!="number")throw new TypeError("Argument must be a number");var p=h(l);return y!==void 0?typeof f=="string"?p.fill(y,f):p.fill(y):p.fill(0),p},s.allocUnsafe=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return h(l)},s.allocUnsafeSlow=function(l){if(typeof l!="number")throw new TypeError("Argument must be a number");return w.SlowBuffer(l)}})(ur,ur.exports)),ur.exports}var Gr;function Ct(){if(Gr)return xr;Gr=1;var e=bt().Buffer,g=e.isEncoding||function(r){switch(r=""+r,r&&r.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function w(r){if(!r)return"utf8";for(var c;;)switch(r){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return r;default:if(c)return;r=(""+r).toLowerCase(),c=!0}}function h(r){var c=w(r);if(typeof c!="string"&&(e.isEncoding===g||!g(r)))throw new Error("Unknown encoding: "+r);return c||r}xr.StringDecoder=x;function x(r){this.encoding=h(r);var c;switch(this.encoding){case"utf16le":this.text=B,this.end=u,c=4;break;case"utf8":this.fillLast=f,c=4;break;case"base64":this.text=S,this.end=v,c=3;break;default:this.write=d,this.end=o;return}this.lastNeed=0,this.lastTotal=0,this.lastChar=e.allocUnsafe(c)}x.prototype.write=function(r){if(r.length===0)return"";var c,_;if(this.lastNeed){if(c=this.fillLast(r),c===void 0)return"";_=this.lastNeed,this.lastNeed=0}else _=0;return _<r.length?c?c+this.text(r,_):this.text(r,_):c||""},x.prototype.end=b,x.prototype.text=p,x.prototype.fillLast=function(r){if(this.lastNeed<=r.length)return r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,this.lastTotal-this.lastNeed,0,r.length),this.lastNeed-=r.length};function s(r){return r<=127?0:r>>5===6?2:r>>4===14?3:r>>3===30?4:r>>6===2?-1:-2}function l(r,c,_){var F=c.length-1;if(F<_)return 0;var I=s(c[F]);return I>=0?(I>0&&(r.lastNeed=I-1),I):--F<_||I===-2?0:(I=s(c[F]),I>=0?(I>0&&(r.lastNeed=I-2),I):--F<_||I===-2?0:(I=s(c[F]),I>=0?(I>0&&(I===2?I=0:r.lastNeed=I-3),I):0))}function y(r,c,_){if((c[0]&192)!==128)return r.lastNeed=0,"�";if(r.lastNeed>1&&c.length>1){if((c[1]&192)!==128)return r.lastNeed=1,"�";if(r.lastNeed>2&&c.length>2&&(c[2]&192)!==128)return r.lastNeed=2,"�"}}function f(r){var c=this.lastTotal-this.lastNeed,_=y(this,r);if(_!==void 0)return _;if(this.lastNeed<=r.length)return r.copy(this.lastChar,c,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);r.copy(this.lastChar,c,0,r.length),this.lastNeed-=r.length}function p(r,c){var _=l(this,r,c);if(!this.lastNeed)return r.toString("utf8",c);this.lastTotal=_;var F=r.length-(_-this.lastNeed);return r.copy(this.lastChar,0,F),r.toString("utf8",c,F)}function b(r){var c=r&&r.length?this.write(r):"";return this.lastNeed?c+"�":c}function B(r,c){if((r.length-c)%2===0){var _=r.toString("utf16le",c);if(_){var F=_.charCodeAt(_.length-1);if(F>=55296&&F<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1],_.slice(0,-1)}return _}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=r[r.length-1],r.toString("utf16le",c,r.length-1)}function u(r){var c=r&&r.length?this.write(r):"";if(this.lastNeed){var _=this.lastTotal-this.lastNeed;return c+this.lastChar.toString("utf16le",0,_)}return c}function S(r,c){var _=(r.length-c)%3;return _===0?r.toString("base64",c):(this.lastNeed=3-_,this.lastTotal=3,_===1?this.lastChar[0]=r[r.length-1]:(this.lastChar[0]=r[r.length-2],this.lastChar[1]=r[r.length-1]),r.toString("base64",c,r.length-_))}function v(r){var c=r&&r.length?this.write(r):"";return this.lastNeed?c+this.lastChar.toString("base64",0,3-this.lastNeed):c}function d(r){return r.toString(this.encoding)}function o(r){return r&&r.length?this.write(r):""}return xr}var wr={exports:{}},Br,Hr;function ar(){if(Hr)return Br;Hr=1;var e=rr().Buffer,g=ht();function w(h,x){this._block=e.alloc(h),this._finalSize=x,this._blockSize=h,this._len=0}return w.prototype.update=function(h,x){h=g(h,x||"utf8");for(var s=this._block,l=this._blockSize,y=h.length,f=this._len,p=0;p<y;){for(var b=f%l,B=Math.min(y-p,l-b),u=0;u<B;u++)s[b+u]=h[p+u];f+=B,p+=B,f%l===0&&this._update(s)}return this._len+=y,this},w.prototype.digest=function(h){var x=this._len%this._blockSize;this._block[x]=128,this._block.fill(0,x+1),x>=this._finalSize&&(this._update(this._block),this._block.fill(0));var s=this._len*8;if(s<=4294967295)this._block.writeUInt32BE(s,this._blockSize-4);else{var l=(s&4294967295)>>>0,y=(s-l)/4294967296;this._block.writeUInt32BE(y,this._blockSize-8),this._block.writeUInt32BE(l,this._blockSize-4)}this._update(this._block);var f=this._hash();return h?f.toString(h):f},w.prototype._update=function(){throw new Error("_update must be implemented by subclass")},Br=w,Br}var mr,Vr;function _t(){if(Vr)return mr;Vr=1;var e=nr(),g=ar(),w=rr().Buffer,h=[1518500249,1859775393,-1894007588,-899497514],x=new Array(80);function s(){this.init(),this._w=x,g.call(this,64,56)}e(s,g),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(p){return p<<5|p>>>27}function y(p){return p<<30|p>>>2}function f(p,b,B,u){return p===0?b&B|~b&u:p===2?b&B|b&u|B&u:b^B^u}return s.prototype._update=function(p){for(var b=this._w,B=this._a|0,u=this._b|0,S=this._c|0,v=this._d|0,d=this._e|0,o=0;o<16;++o)b[o]=p.readInt32BE(o*4);for(;o<80;++o)b[o]=b[o-3]^b[o-8]^b[o-14]^b[o-16];for(var r=0;r<80;++r){var c=~~(r/20),_=l(B)+f(c,u,S,v)+d+b[r]+h[c]|0;d=v,v=S,S=y(u),u=B,B=_}this._a=B+this._a|0,this._b=u+this._b|0,this._c=S+this._c|0,this._d=v+this._d|0,this._e=d+this._e|0},s.prototype._hash=function(){var p=w.allocUnsafe(20);return p.writeInt32BE(this._a|0,0),p.writeInt32BE(this._b|0,4),p.writeInt32BE(this._c|0,8),p.writeInt32BE(this._d|0,12),p.writeInt32BE(this._e|0,16),p},mr=s,mr}var Ar,$r;function vt(){if($r)return Ar;$r=1;var e=nr(),g=ar(),w=rr().Buffer,h=[1518500249,1859775393,-1894007588,-899497514],x=new Array(80);function s(){this.init(),this._w=x,g.call(this,64,56)}e(s,g),s.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this};function l(b){return b<<1|b>>>31}function y(b){return b<<5|b>>>27}function f(b){return b<<30|b>>>2}function p(b,B,u,S){return b===0?B&u|~B&S:b===2?B&u|B&S|u&S:B^u^S}return s.prototype._update=function(b){for(var B=this._w,u=this._a|0,S=this._b|0,v=this._c|0,d=this._d|0,o=this._e|0,r=0;r<16;++r)B[r]=b.readInt32BE(r*4);for(;r<80;++r)B[r]=l(B[r-3]^B[r-8]^B[r-14]^B[r-16]);for(var c=0;c<80;++c){var _=~~(c/20),F=y(u)+p(_,S,v,d)+o+B[c]+h[_]|0;o=d,d=v,v=f(S),S=u,u=F}this._a=u+this._a|0,this._b=S+this._b|0,this._c=v+this._c|0,this._d=d+this._d|0,this._e=o+this._e|0},s.prototype._hash=function(){var b=w.allocUnsafe(20);return b.writeInt32BE(this._a|0,0),b.writeInt32BE(this._b|0,4),b.writeInt32BE(this._c|0,8),b.writeInt32BE(this._d|0,12),b.writeInt32BE(this._e|0,16),b},Ar=s,Ar}var Sr,Lr;function tt(){if(Lr)return Sr;Lr=1;var e=nr(),g=ar(),w=rr().Buffer,h=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298],x=new Array(64);function s(){this.init(),this._w=x,g.call(this,64,56)}e(s,g),s.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this};function l(u,S,v){return v^u&(S^v)}function y(u,S,v){return u&S|v&(u|S)}function f(u){return(u>>>2|u<<30)^(u>>>13|u<<19)^(u>>>22|u<<10)}function p(u){return(u>>>6|u<<26)^(u>>>11|u<<21)^(u>>>25|u<<7)}function b(u){return(u>>>7|u<<25)^(u>>>18|u<<14)^u>>>3}function B(u){return(u>>>17|u<<15)^(u>>>19|u<<13)^u>>>10}return s.prototype._update=function(u){for(var S=this._w,v=this._a|0,d=this._b|0,o=this._c|0,r=this._d|0,c=this._e|0,_=this._f|0,F=this._g|0,I=this._h|0,j=0;j<16;++j)S[j]=u.readInt32BE(j*4);for(;j<64;++j)S[j]=B(S[j-2])+S[j-7]+b(S[j-15])+S[j-16]|0;for(var H=0;H<64;++H){var N=I+p(c)+l(c,_,F)+h[H]+S[H]|0,k=f(v)+y(v,d,o)|0;I=F,F=_,_=c,c=r+N|0,r=o,o=d,d=v,v=N+k|0}this._a=v+this._a|0,this._b=d+this._b|0,this._c=o+this._c|0,this._d=r+this._d|0,this._e=c+this._e|0,this._f=_+this._f|0,this._g=F+this._g|0,this._h=I+this._h|0},s.prototype._hash=function(){var u=w.allocUnsafe(32);return u.writeInt32BE(this._a,0),u.writeInt32BE(this._b,4),u.writeInt32BE(this._c,8),u.writeInt32BE(this._d,12),u.writeInt32BE(this._e,16),u.writeInt32BE(this._f,20),u.writeInt32BE(this._g,24),u.writeInt32BE(this._h,28),u},Sr=s,Sr}var Er,Wr;function gt(){if(Wr)return Er;Wr=1;var e=nr(),g=tt(),w=ar(),h=rr().Buffer,x=new Array(64);function s(){this.init(),this._w=x,w.call(this,64,56)}return e(s,g),s.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},s.prototype._hash=function(){var l=h.allocUnsafe(28);return l.writeInt32BE(this._a,0),l.writeInt32BE(this._b,4),l.writeInt32BE(this._c,8),l.writeInt32BE(this._d,12),l.writeInt32BE(this._e,16),l.writeInt32BE(this._f,20),l.writeInt32BE(this._g,24),l},Er=s,Er}var Cr,Jr;function et(){if(Jr)return Cr;Jr=1;var e=nr(),g=ar(),w=rr().Buffer,h=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],x=new Array(160);function s(){this.init(),this._w=x,g.call(this,128,112)}e(s,g),s.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this};function l(d,o,r){return r^d&(o^r)}function y(d,o,r){return d&o|r&(d|o)}function f(d,o){return(d>>>28|o<<4)^(o>>>2|d<<30)^(o>>>7|d<<25)}function p(d,o){return(d>>>14|o<<18)^(d>>>18|o<<14)^(o>>>9|d<<23)}function b(d,o){return(d>>>1|o<<31)^(d>>>8|o<<24)^d>>>7}function B(d,o){return(d>>>1|o<<31)^(d>>>8|o<<24)^(d>>>7|o<<25)}function u(d,o){return(d>>>19|o<<13)^(o>>>29|d<<3)^d>>>6}function S(d,o){return(d>>>19|o<<13)^(o>>>29|d<<3)^(d>>>6|o<<26)}function v(d,o){return d>>>0<o>>>0?1:0}return s.prototype._update=function(d){for(var o=this._w,r=this._ah|0,c=this._bh|0,_=this._ch|0,F=this._dh|0,I=this._eh|0,j=this._fh|0,H=this._gh|0,N=this._hh|0,k=this._al|0,R=this._bl|0,V=this._cl|0,q=this._dl|0,P=this._el|0,$=this._fl|0,L=this._gl|0,M=this._hl|0,D=0;D<32;D+=2)o[D]=d.readInt32BE(D*4),o[D+1]=d.readInt32BE(D*4+4);for(;D<160;D+=2){var W=o[D-30],J=o[D-30+1],z=b(W,J),tr=B(J,W);W=o[D-4],J=o[D-4+1];var Y=u(W,J),t=S(J,W),n=o[D-14],a=o[D-14+1],E=o[D-32],O=o[D-32+1],A=tr+a|0,m=z+n+v(A,tr)|0;A=A+t|0,m=m+Y+v(A,t)|0,A=A+O|0,m=m+E+v(A,O)|0,o[D]=m,o[D+1]=A}for(var C=0;C<160;C+=2){m=o[C],A=o[C+1];var T=y(r,c,_),U=y(k,R,V),K=f(r,k),er=f(k,r),Z=p(I,P),ir=p(P,I),cr=h[C],fr=h[C+1],i=l(I,j,H),sr=l(P,$,L),G=M+ir|0,Q=N+Z+v(G,M)|0;G=G+sr|0,Q=Q+i+v(G,sr)|0,G=G+fr|0,Q=Q+cr+v(G,fr)|0,G=G+A|0,Q=Q+m+v(G,A)|0;var Or=er+U|0,nt=K+T+v(Or,er)|0;N=H,M=L,H=j,L=$,j=I,$=P,P=q+G|0,I=F+Q+v(P,q)|0,F=_,q=V,_=c,V=R,c=r,R=k,k=G+Or|0,r=Q+nt+v(k,G)|0}this._al=this._al+k|0,this._bl=this._bl+R|0,this._cl=this._cl+V|0,this._dl=this._dl+q|0,this._el=this._el+P|0,this._fl=this._fl+$|0,this._gl=this._gl+L|0,this._hl=this._hl+M|0,this._ah=this._ah+r+v(this._al,k)|0,this._bh=this._bh+c+v(this._bl,R)|0,this._ch=this._ch+_+v(this._cl,V)|0,this._dh=this._dh+F+v(this._dl,q)|0,this._eh=this._eh+I+v(this._el,P)|0,this._fh=this._fh+j+v(this._fl,$)|0,this._gh=this._gh+H+v(this._gl,L)|0,this._hh=this._hh+N+v(this._hl,M)|0},s.prototype._hash=function(){var d=w.allocUnsafe(64);function o(r,c,_){d.writeInt32BE(r,_),d.writeInt32BE(c,_+4)}return o(this._ah,this._al,0),o(this._bh,this._bl,8),o(this._ch,this._cl,16),o(this._dh,this._dl,24),o(this._eh,this._el,32),o(this._fh,this._fl,40),o(this._gh,this._gl,48),o(this._hh,this._hl,56),d},Cr=s,Cr}var Ir,Kr;function xt(){if(Kr)return Ir;Kr=1;var e=nr(),g=et(),w=ar(),h=rr().Buffer,x=new Array(160);function s(){this.init(),this._w=x,w.call(this,128,112)}return e(s,g),s.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},s.prototype._hash=function(){var l=h.allocUnsafe(48);function y(f,p,b){l.writeInt32BE(f,b),l.writeInt32BE(p,b+4)}return y(this._ah,this._al,0),y(this._bh,this._bl,8),y(this._ch,this._cl,16),y(this._dh,this._dl,24),y(this._eh,this._el,32),y(this._fh,this._fl,40),l},Ir=s,Ir}var Yr;function It(){return Yr||(Yr=1,(function(e){e.exports=function(w){var h=w.toLowerCase(),x=e.exports[h];if(!x)throw new Error(h+" is not supported (we accept pull requests)");return new x},e.exports.sha=_t(),e.exports.sha1=vt(),e.exports.sha224=gt(),e.exports.sha256=tt(),e.exports.sha384=xt(),e.exports.sha512=et()})(wr)),wr.exports}export{ht as a,St as b,Et as c,Ct as d,It as e,rr as r};
11
+ //# sourceMappingURL=index-DtG0vwAQ.js.map
@@ -1,4 +1,4 @@
1
- import{i as y,b as h}from"./lit-element-wjYUA6aF.js";import{n as b,o as v,r as C}from"./class-map-BxMzgOIb.js";import{d as m,r as g}from"./index-gg05iP5j.js";import{c as k}from"./index-CWE_Bdvd.js";import{e as _,n as O}from"./ref-D90CCjlU.js";import{e as E,i as L,p as R,O as l}from"./W3MFrameProviderSingleton-DwbyBYX9.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d0241553-0007-490e-8622-f1e964e2aebd",e._sentryDebugIdIdentifier="sentry-dbid-d0241553-0007-490e-8622-f1e964e2aebd")}catch{}})();const d=R({isLegalCheckboxChecked:!1}),x={state:d,subscribe(e){return L(d,()=>e(d))},subscribeKey(e,t){return E(d,e,t)},setIsLegalCheckboxChecked(e){d.isLegalCheckboxChecked=e}},j=m`
1
+ import{i as y,b as h}from"./lit-element-wjYUA6aF.js";import{n as b,o as v,r as C}from"./class-map-BxMzgOIb.js";import{d as m,r as g}from"./index-DBXe-H17.js";import{c as k}from"./index-C30kKaUV.js";import{e as _,n as O}from"./ref-D90CCjlU.js";import{e as E,i as L,p as R,O as l}from"./W3MFrameProviderSingleton-CrWP7H9X.js";(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new e.Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="d0241553-0007-490e-8622-f1e964e2aebd",e._sentryDebugIdIdentifier="sentry-dbid-d0241553-0007-490e-8622-f1e964e2aebd")}catch{}})();const d=R({isLegalCheckboxChecked:!1}),x={state:d,subscribe(e){return L(d,()=>e(d))},subscribeKey(e,t){return E(d,e,t)},setIsLegalCheckboxChecked(e){d.isLegalCheckboxChecked=e}},j=m`
2
2
  label {
3
3
  display: inline-flex;
4
4
  align-items: center;
@@ -187,4 +187,4 @@ import{i as y,b as h}from"./lit-element-wjYUA6aF.js";import{n as b,o as v,r as C
187
187
  />
188
188
  </svg>
189
189
  `}};u.styles=[g,I];$([b({type:Number})],u.prototype,"radius",void 0);u=$([k("wui-loading-thumbnail")],u);export{x as O};
190
- //# sourceMappingURL=index-CRlpbq5e.js.map
190
+ //# sourceMappingURL=index-DvmOwVBr.js.map
@@ -1,5 +1,5 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/in-app-wallet-calls-Dyorin4y.js","_assets/wait-for-tx-receipt-CG08f_bj.js","_assets/transactionReceipt-DEqK-l-5.js","_assets/prepare-contract-call-Bgba2npe.js","_assets/utils-BE7z1_FY.js","_assets/sentry-qVQnooqM.js","_assets/react-ZT2P9-hV.js","_assets/to-serializable-transaction-DZXV0RS9.js","_assets/index-y9tZLe7Z.js","_assets/dcl-schemas-Do6ePE9M.js","_assets/ethers-DVrorjJ1.js","_assets/intl-AKLEHPeO.js","_assets/index-BhSgZf6d.css","_assets/transaction-D82LqpKn.js","_assets/sleep-fBr8OToA.js","_assets/send-batch-transaction-C_JYVBkw.js","_assets/send-transaction-pFbo31gg.js","_assets/execute-CoAxXj0W.js","_assets/detectExtension-BzGhSQVN.js","_assets/eth_getTransactionCount-u8vibbIm.js","_assets/index-BgrkbkKX.js","_assets/signing-FPVJ2eSa.js","_assets/get-bytecode-DCxZ_TJS.js","_assets/send-eip712-transaction-Clelg5Q-.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/sha256-CcM85_-b.js","_assets/linkAccount-DAFP48le.js","_assets/wallets-CMB2i32E.js","_assets/store-80QKZ2rN.js","_assets/hashTypedData-C4V4k80v.js","_assets/index-CZEd2SGy.js","_assets/events-CcYNTdVN.js","_assets/index-DUaZ1t6t.js","_assets/index-ChhJ84F9.js","_assets/index-OpYIGLSa.js","_assets/index-Dpu-M2gs.js","_assets/index-Ccey0v_W.js","_assets/ethereum-Mtg8xwT8.js","_assets/types-BeDU9GfL.js"])))=>i.map(i=>d[i]);
2
- import{_ as b}from"./index-y9tZLe7Z.js";import{e as R}from"./ethereum-Mtg8xwT8.js";import{s as M}from"./types-BeDU9GfL.js";import{f as D,e as I,a as v,w as B}from"./utils-BE7z1_FY.js";import{p as W,g as V}from"./get-bytecode-DCxZ_TJS.js";import{b as F,g as H,t as O}from"./to-serializable-transaction-DZXV0RS9.js";import{r as $,e as N}from"./execute-CoAxXj0W.js";import{g as f,a4 as _,f as k,T as z,s as g,h as y,c as j}from"./prepare-contract-call-Bgba2npe.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]="d6b5cf2f-4b53-4c38-a8d3-268ffc7707cf",t._sentryDebugIdIdentifier="sentry-dbid-d6b5cf2f-4b53-4c38-a8d3-268ffc7707cf")}catch{}})();const Ae="0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c",q="0x85e23b94e7F5E9cC1fF78BCe78cfb15B81f0DF00",Y="0x4be0ddfebca9a5a4a617dee4dece99e7c862dceb",w="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",Z="0x0000000071727De22E5E9d8BAf0edAc6f37da032",K=50000n,Ce=t=>J(t||w)==="v0.7"?Y:q,E=t=>{const e=D().bundler;return e.startsWith("localhost:")?`http://${e}/v2?chain=${t.id}`:`https://${t.id}.${e}/v2`},J=t=>{const e=f(t);if(e===w)return"v0.6";if(e===Z)return"v0.7";throw new Error("Unknown paymaster version")};function Q(t={}){return _({filters:t,signature:"event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function X(t={}){return _({filters:t,signature:"event PostOpRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function ee(t){const{receipt:e}=t,n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs,status:e.status,to:e.to?e.to:null,transactionHash:e.transactionHash,transactionIndex:e.transactionIndex,type:e.type};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),{...t,actualGasCost:BigInt(t.actualGasCost),actualGasUsed:BigInt(t.actualGasUsed),nonce:BigInt(t.nonce),receipt:n,userOpHash:t.userOpHash}}const xe=()=>{const t=BigInt(Math.floor(Math.random()*4294967296)),e=BigInt(Math.floor(Math.random()*4294967296)),n=BigInt(Math.floor(Math.random()*4294967296)),r=BigInt(Math.floor(Math.random()*4294967296)),o=BigInt(Math.floor(Math.random()*4294967296)),p=BigInt(Math.floor(Math.random()*4294967296));return t<<BigInt(160)|e<<BigInt(128)|n<<BigInt(96)|r<<BigInt(64)|o<<BigInt(32)|p};function U(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,n==null||k(n)?n:z(n)]))}async function Ie(t){return d({...t,operation:"eth_sendUserOperation",params:[U(t.userOp),t.options.entrypointAddress??w]})}async function _e(t,e){const n=await d({...t,operation:"eth_estimateUserOperationGas",params:[U(t.userOp),t.options.entrypointAddress??w,e??{}]});return{callGasLimit:y(n.callGasLimit)+K,paymasterPostOpGasLimit:n.paymasterPostOpGasLimit!==void 0?y(n.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:n.paymasterVerificationGasLimit!==void 0?y(n.paymasterVerificationGasLimit):void 0,preVerificationGas:y(n.preVerificationGas),verificationGas:n.verificationGas!==void 0?y(n.verificationGas):void 0,verificationGasLimit:y(n.verificationGasLimit)}}async function Ee(t){const e=await d({...t,operation:"thirdweb_getUserOperationGasPrice",params:[]});return{maxFeePerGas:y(e.maxFeePerGas),maxPriorityFeePerGas:y(e.maxPriorityFeePerGas)}}async function Ue(t){var n,r;const e=await te(t);if(e){if(e.success===!1){const p=(r=(n=W({events:[Q(),X()],logs:e.logs})[0])==null?void 0:n.args)==null?void 0:r.revertReason;if(!p)throw new Error(`UserOp failed at txHash: ${e.receipt.transactionHash}`);const a=F({data:p});throw new Error(`UserOp failed with reason: '${a.args.join(",")}' at txHash: ${e.receipt.transactionHash}`)}return e.receipt}}async function te(t){const e=await d({operation:"eth_getUserOperationReceipt",options:t,params:[t.userOpHash]});if(e)return ee(e)}async function Pe(t){const e=await d({operation:"zk_paymasterData",options:t.options,params:[t.transaction]});return{paymaster:e.paymaster,paymasterInput:e.paymasterInput}}async function ne(t){const e=await d({...t,operation:"tw_execute",params:[t.eoaAddress,t.wrappedCalls,t.signature,t.authorization]});if(!e.queueId)throw new Error(`Error executing 7702 transaction: ${g(e)}`);return{transactionId:e.queueId}}async function ae(t){return{transactionHash:(await d({...t,operation:"tw_getTransactionHash",params:[t.transactionId]})).transactionHash}}async function Ge(t){return{transactionHash:(await d({operation:"zk_broadcastTransaction",options:t.options,params:[{...t.transaction,signedTransaction:t.signedTransaction}]})).transactionHash}}async function d(t){const{options:e,operation:n,params:r}=t,o=e.bundlerUrl??E(e.chain),a=await I(e.client)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:n,params:r}),headers:{"Content-Type":"application/json"},method:"POST"}),i=await a.json();if(!a.ok||i.error){let s=i.error||a.statusText;typeof s=="object"&&(s=g(s));const u=i.code||"UNKNOWN";throw new Error(`${n} error: ${s}
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/in-app-wallet-calls-DCQO7CRP.js","_assets/wait-for-tx-receipt-CCoeTvDN.js","_assets/transactionReceipt-wHhvs2MM.js","_assets/prepare-contract-call-BXj1hstj.js","_assets/utils-Dpy_P8-Z.js","_assets/sentry-DEsWWpBW.js","_assets/react-BQkTEhfI.js","_assets/to-serializable-transaction-BQmkdzOC.js","_assets/index-PCOMQSTj.js","_assets/dcl-schemas-rAoTN5Ga.js","_assets/ethers-BicPoGF3.js","_assets/intl-AKLEHPeO.js","_assets/index-DKFaSnR3.css","_assets/transaction-C6zqrRsP.js","_assets/sleep-fBr8OToA.js","_assets/send-batch-transaction-CxU4nO-t.js","_assets/send-transaction-5bX-xy_o.js","_assets/execute-DY89Xj7h.js","_assets/detectExtension-CnrRv_RG.js","_assets/eth_getTransactionCount-BdILqCdx.js","_assets/index-oZ1tZhJd.js","_assets/signing-CaEAGDvd.js","_assets/get-bytecode-Mi4Svfmk.js","_assets/send-eip712-transaction-DFcFblDh.js","_assets/eth_sendRawTransaction-DYAsy3sS.js","_assets/sha256-CFlr28b8.js","_assets/linkAccount-D2r-_PNt.js","_assets/wallets-DBEimxdS.js","_assets/store-80QKZ2rN.js","_assets/hashTypedData-DN22sW92.js","_assets/index-PdWok5k8.js","_assets/events-CaiMQ2jo.js","_assets/index-C1VNSD13.js","_assets/index-Cg51zZ2k.js","_assets/index-OpYIGLSa.js","_assets/index-BXZWbQLr.js","_assets/index-TLvmnU-6.js","_assets/ethereum-B-cyXRfV.js","_assets/types-BeDU9GfL.js"])))=>i.map(i=>d[i]);
2
+ import{_ as b}from"./index-PCOMQSTj.js";import{e as R}from"./ethereum-B-cyXRfV.js";import{s as M}from"./types-BeDU9GfL.js";import{f as D,e as I,a as v,w as B}from"./utils-Dpy_P8-Z.js";import{p as W,g as V}from"./get-bytecode-Mi4Svfmk.js";import{b as F,g as H,t as O}from"./to-serializable-transaction-BQmkdzOC.js";import{r as $,e as N}from"./execute-DY89Xj7h.js";import{g as f,a4 as _,f as k,T as z,s as g,h as y,c as j}from"./prepare-contract-call-BXj1hstj.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]="05dc4987-d9c2-476f-96f1-8066572c8749",t._sentryDebugIdIdentifier="sentry-dbid-05dc4987-d9c2-476f-96f1-8066572c8749")}catch{}})();const Ae="0xfffffffffffffffffffffffffffffff0000000000000000000000000000000007aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa1c",q="0x85e23b94e7F5E9cC1fF78BCe78cfb15B81f0DF00",Y="0x4be0ddfebca9a5a4a617dee4dece99e7c862dceb",w="0x5FF137D4b0FDCD49DcA30c7CF57E578a026d2789",Z="0x0000000071727De22E5E9d8BAf0edAc6f37da032",K=50000n,Ce=t=>J(t||w)==="v0.7"?Y:q,E=t=>{const e=D().bundler;return e.startsWith("localhost:")?`http://${e}/v2?chain=${t.id}`:`https://${t.id}.${e}/v2`},J=t=>{const e=f(t);if(e===w)return"v0.6";if(e===Z)return"v0.7";throw new Error("Unknown paymaster version")};function Q(t={}){return _({filters:t,signature:"event UserOperationRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function X(t={}){return _({filters:t,signature:"event PostOpRevertReason(bytes32 indexed userOpHash, address indexed sender, uint256 nonce, bytes revertReason)"})}function ee(t){const{receipt:e}=t,n={...e,blockNumber:e.blockNumber?BigInt(e.blockNumber):null,contractAddress:e.contractAddress?e.contractAddress:null,cumulativeGasUsed:e.cumulativeGasUsed?BigInt(e.cumulativeGasUsed):null,effectiveGasPrice:e.effectiveGasPrice?BigInt(e.effectiveGasPrice):null,gasUsed:e.gasUsed?BigInt(e.gasUsed):null,logs:e.logs,status:e.status,to:e.to?e.to:null,transactionHash:e.transactionHash,transactionIndex:e.transactionIndex,type:e.type};return e.blobGasPrice&&(n.blobGasPrice=BigInt(e.blobGasPrice)),e.blobGasUsed&&(n.blobGasUsed=BigInt(e.blobGasUsed)),{...t,actualGasCost:BigInt(t.actualGasCost),actualGasUsed:BigInt(t.actualGasUsed),nonce:BigInt(t.nonce),receipt:n,userOpHash:t.userOpHash}}const xe=()=>{const t=BigInt(Math.floor(Math.random()*4294967296)),e=BigInt(Math.floor(Math.random()*4294967296)),n=BigInt(Math.floor(Math.random()*4294967296)),r=BigInt(Math.floor(Math.random()*4294967296)),o=BigInt(Math.floor(Math.random()*4294967296)),p=BigInt(Math.floor(Math.random()*4294967296));return t<<BigInt(160)|e<<BigInt(128)|n<<BigInt(96)|r<<BigInt(64)|o<<BigInt(32)|p};function U(t){return Object.fromEntries(Object.entries(t).map(([e,n])=>[e,n==null||k(n)?n:z(n)]))}async function Ie(t){return d({...t,operation:"eth_sendUserOperation",params:[U(t.userOp),t.options.entrypointAddress??w]})}async function _e(t,e){const n=await d({...t,operation:"eth_estimateUserOperationGas",params:[U(t.userOp),t.options.entrypointAddress??w,e??{}]});return{callGasLimit:y(n.callGasLimit)+K,paymasterPostOpGasLimit:n.paymasterPostOpGasLimit!==void 0?y(n.paymasterPostOpGasLimit):void 0,paymasterVerificationGasLimit:n.paymasterVerificationGasLimit!==void 0?y(n.paymasterVerificationGasLimit):void 0,preVerificationGas:y(n.preVerificationGas),verificationGas:n.verificationGas!==void 0?y(n.verificationGas):void 0,verificationGasLimit:y(n.verificationGasLimit)}}async function Ee(t){const e=await d({...t,operation:"thirdweb_getUserOperationGasPrice",params:[]});return{maxFeePerGas:y(e.maxFeePerGas),maxPriorityFeePerGas:y(e.maxPriorityFeePerGas)}}async function Ue(t){var n,r;const e=await te(t);if(e){if(e.success===!1){const p=(r=(n=W({events:[Q(),X()],logs:e.logs})[0])==null?void 0:n.args)==null?void 0:r.revertReason;if(!p)throw new Error(`UserOp failed at txHash: ${e.receipt.transactionHash}`);const a=F({data:p});throw new Error(`UserOp failed with reason: '${a.args.join(",")}' at txHash: ${e.receipt.transactionHash}`)}return e.receipt}}async function te(t){const e=await d({operation:"eth_getUserOperationReceipt",options:t,params:[t.userOpHash]});if(e)return ee(e)}async function Pe(t){const e=await d({operation:"zk_paymasterData",options:t.options,params:[t.transaction]});return{paymaster:e.paymaster,paymasterInput:e.paymasterInput}}async function ne(t){const e=await d({...t,operation:"tw_execute",params:[t.eoaAddress,t.wrappedCalls,t.signature,t.authorization]});if(!e.queueId)throw new Error(`Error executing 7702 transaction: ${g(e)}`);return{transactionId:e.queueId}}async function ae(t){return{transactionHash:(await d({...t,operation:"tw_getTransactionHash",params:[t.transactionId]})).transactionHash}}async function Ge(t){return{transactionHash:(await d({operation:"zk_broadcastTransaction",options:t.options,params:[{...t.transaction,signedTransaction:t.signedTransaction}]})).transactionHash}}async function d(t){const{options:e,operation:n,params:r}=t,o=e.bundlerUrl??E(e.chain),a=await I(e.client)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:n,params:r}),headers:{"Content-Type":"application/json"},method:"POST"}),i=await a.json();if(!a.ok||i.error){let s=i.error||a.statusText;typeof s=="object"&&(s=g(s));const u=i.code||"UNKNOWN";throw new Error(`${n} error: ${s}
3
3
  Status: ${a.status}
4
- Code: ${u}`)}return i.result}async function ie(t){const{client:e,chain:n,bundlerUrl:r}=t,o=r??E(n),p=`delegation-contract:${o}`;return B(async()=>{var u;const i=await I(e)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:"tw_getDelegationContract",params:[]}),headers:{"Content-Type":"application/json"},method:"POST"});if(!i.ok)throw new Error(`Failed to fetch delegation contract: ${i.status} ${i.statusText}`);const s=await i.json();if(s.error)throw new Error(`Delegation contract RPC error: ${JSON.stringify(s.error)}`);if(!((u=s.result)!=null&&u.delegationContract))throw new Error("Invalid response: missing delegationContract in result");return s.result.delegationContract},{cacheKey:p,cacheTime:1440*60*1e3})}const se=t=>{const{client:e,adminAccount:n,sponsorGas:r}=t,o=async a=>{var A,C,x;const i=a[0];if(!i)throw new Error("No transactions provided");const s=v(i.chainId),u=H({address:n.address,chain:s,client:e,abi:ue});let c=(A=i.authorizationList)==null?void 0:A[0];const m=await ie({client:e,chain:s});if(c&&((C=c.address)==null?void 0:C.toLowerCase())!==m.toLowerCase())throw new Error(`Authorization address does not match expected delegation contract address. Expected ${m} but got ${c.address}`);if(!c&&!await oe(u,m)){let T=i.nonce?BigInt(i.nonce):BigInt(await re({client:e,address:n.address,chain:s}));T+=r?0n:1n;const h=await((x=n.signAuthorization)==null?void 0:x.call(n,{address:f(m),chainId:i.chainId,nonce:T}));if(!h)throw new Error("Failed to sign authorization");c=h}if(r){const l={calls:a.map(L=>({data:L.data??"0x",target:f(L.to??""),value:L.value??0n})),uid:$()},T=await n.signTypedData({domain:{chainId:i.chainId,name:"MinimalAccount",verifyingContract:u.address,version:"1"},message:l,primaryType:"WrappedCalls",types:{Call:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],WrappedCalls:[{name:"calls",type:"Call[]"},{name:"uid",type:"bytes32"}]}}),h=await ne({authorization:c,eoaAddress:f(n.address),options:{chain:v(i.chainId),client:e},signature:T,wrappedCalls:l});return{transactionHash:await pe({options:{chain:v(i.chainId),client:e},transactionId:h.transactionId})}}const S=N({calls:a.map(l=>({data:l.data??"0x",target:f(l.to??""),value:l.value??0n})),contract:u,overrides:{authorizationList:c?[c]:void 0,value:a.reduce((l,T)=>l+(T.value??0n),0n)}}),G=await O({from:n.address,transaction:S});return n.sendTransaction(G)},p={address:n.address,sendBatchTransaction:async a=>o(a),sendTransaction:async a=>o([a]),signMessage:({message:a,originalMessage:i,chainId:s})=>n.signMessage({chainId:s,message:a,originalMessage:i}),signTypedData:a=>n.signTypedData(a),sendCalls:async a=>{const{inAppWalletSendCalls:i}=await b(async()=>{const{inAppWalletSendCalls:S}=await import("./in-app-wallet-calls-Dyorin4y.js");return{inAppWalletSendCalls:S}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),s=a.calls[0];if(!s)throw new Error("No calls to send");const u=s.client,c=s.chain||a.chain,m=await i({account:p,calls:a.calls,chain:c});return{chain:c,client:u,id:m}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:i}=await b(async()=>{const{inAppWalletGetCallsStatus:s}=await import("./in-app-wallet-calls-Dyorin4y.js");return{inAppWalletGetCallsStatus:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:i}=await b(async()=>{const{inAppWalletGetCallsStatusRaw:s}=await import("./in-app-wallet-calls-Dyorin4y.js");return{inAppWalletGetCallsStatusRaw:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:r??!1}}})};return p};async function re(t){const{client:e,address:n,chain:r}=t,o=j({chain:r,client:e});return await b(async()=>{const{eth_getTransactionCount:a}=await import("./eth_getTransactionCount-u8vibbIm.js");return{eth_getTransactionCount:a}},__vite__mapDeps([19,3,4,5,6])).then(({eth_getTransactionCount:a})=>a(o,{address:f(n),blockTag:"pending"}))}async function oe(t,e){const n=await V(t),r=n.length>0&&n.startsWith("0xef0100"),o=`0x${n.slice(8,48)}`;return r&&o.toLowerCase()===e.toLowerCase()}async function pe(t){const e=t.timeoutMs||3e5,n=t.intervalMs||1e3,r=Date.now()+e;for(;Date.now()<r;){const o=await ae({options:t.options,transactionId:t.transactionId});if(o.transactionHash)return o.transactionHash;await new Promise(p=>setTimeout(p,n))}throw new Error(`Timeout waiting for transaction to be mined on chain ${t.options.chain.id} with transactionId: ${t.transactionId}`)}const ue=[{type:"receive",stateMutability:"payable"},{type:"function",name:"createSessionWithSig",inputs:[{name:"sessionSpec",type:"tuple",internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"execute",inputs:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"executeWithSig",inputs:[{name:"wrappedCalls",type:"tuple",internalType:"struct WrappedCalls",components:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"getCallPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]}],stateMutability:"view"},{type:"function",name:"getSessionExpirationForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"getSessionStateForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple",internalType:"struct SessionLib.SessionState",components:[{name:"transferValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callParams",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"getTransferPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"isWildcardSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"onERC1155BatchReceived",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC1155Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC721Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"event",name:"Executed",inputs:[{name:"to",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"},{name:"data",type:"bytes",indexed:!1,internalType:"bytes"}],anonymous:!1},{type:"event",name:"SessionCreated",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"sessionSpec",type:"tuple",indexed:!1,internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]}],anonymous:!1},{type:"event",name:"ValueReceived",inputs:[{name:"from",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"error",name:"AllowanceExceeded",inputs:[{name:"allowanceUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint64",internalType:"uint64"}]},{type:"error",name:"CallPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"CallReverted",inputs:[]},{type:"error",name:"ConditionFailed",inputs:[{name:"param",type:"bytes32",internalType:"bytes32"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"condition",type:"uint8",internalType:"uint8"}]},{type:"error",name:"InvalidDataLength",inputs:[{name:"actualLength",type:"uint256",internalType:"uint256"},{name:"expectedLength",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidSignature",inputs:[{name:"msgSender",type:"address",internalType:"address"},{name:"thisAddress",type:"address",internalType:"address"}]},{type:"error",name:"LifetimeUsageExceeded",inputs:[{name:"lifetimeUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"}]},{type:"error",name:"MaxValueExceeded",inputs:[{name:"value",type:"uint256",internalType:"uint256"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NoCallsToExecute",inputs:[]},{type:"error",name:"SessionExpired",inputs:[]},{type:"error",name:"SessionExpiresTooSoon",inputs:[]},{type:"error",name:"SessionZeroSigner",inputs:[]},{type:"error",name:"TransferPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"}]},{type:"error",name:"UIDAlreadyProcessed",inputs:[]}];function ce(t){return t.id==="inApp"||t.id==="embedded"}async function le(t,e,n){var p,a,i,s;if(((p=e==null?void 0:e.auth)==null?void 0:p.mode)!=="popup"&&((a=e==null?void 0:e.auth)==null?void 0:a.mode)!==void 0&&n.authenticateWithRedirect){const u=t.strategy;M.includes(u)&&await n.authenticateWithRedirect(u,(i=e==null?void 0:e.auth)==null?void 0:i.mode,(s=e==null?void 0:e.auth)==null?void 0:s.redirectUrl)}const o=(await n.connect(t)).user.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function ye(t,e,n){t.authResult&&n.loginWithAuthToken&&await n.loginWithAuthToken(t.authResult);const r=await me(n);if(!r)throw new Error("Failed to authenticate user.");const o=r.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function de(t){const{connectSmartAccount:e}=await b(async()=>{const{connectSmartAccount:n}=await import("./index-BgrkbkKX.js");return{connectSmartAccount:n}},__vite__mapDeps([20,8,6,9,5,10,11,12,13,3,4,7,17,18,21,22,23,24,25,16,26,27,28,29,30,31,32,33,34,35,36,37,38]));return e({chain:t.chain,client:t.client,personalAccount:t.authAccount},t.smartAccountOptions)}async function me(t){const e=await t.getUser();switch(e.status){case"Logged In, Wallet Initialized":return e}}async function P(t){const{createOptions:e,authAccount:n,desiredChain:r,client:o}=t;let p,a;const i=e&&"executionMode"in e?e.executionMode:void 0;if(i&&(i.mode==="EIP4337"?p=i.smartAccount:i.mode==="EIP7702"&&(a=i)),e&&"smartAccount"in e&&(e!=null&&e.smartAccount)&&(p=e.smartAccount),p){const[s,u]=await de({authAccount:n,chain:r,client:o,smartAccountOptions:p});return{account:s,adminAccount:n,chain:u}}if(a){const s=r;if(!s)throw new Error("Chain is required for EIP-7702 execution, pass a chain when connecting the inAppWallet.");return{account:se({adminAccount:n,client:o,sponsorGas:a.sponsorGas}),adminAccount:n,chain:s}}return{account:n,chain:r||R}}const Re=Object.freeze(Object.defineProperty({__proto__:null,autoConnectInAppWallet:ye,connectInAppWallet:le,isInAppWallet:ce},Symbol.toStringTag,{value:"Module"}));export{Ae as D,w as E,J as a,Ue as b,Ee as c,xe as d,_e as e,Z as f,E as g,U as h,Ce as i,Pe as j,Ge as k,Ie as l,ce as m,Re as n};
5
- //# sourceMappingURL=index-MqPRfHS_.js.map
4
+ Code: ${u}`)}return i.result}async function ie(t){const{client:e,chain:n,bundlerUrl:r}=t,o=r??E(n),p=`delegation-contract:${o}`;return B(async()=>{var u;const i=await I(e)(o,{useAuthToken:!0,body:g({id:1,jsonrpc:"2.0",method:"tw_getDelegationContract",params:[]}),headers:{"Content-Type":"application/json"},method:"POST"});if(!i.ok)throw new Error(`Failed to fetch delegation contract: ${i.status} ${i.statusText}`);const s=await i.json();if(s.error)throw new Error(`Delegation contract RPC error: ${JSON.stringify(s.error)}`);if(!((u=s.result)!=null&&u.delegationContract))throw new Error("Invalid response: missing delegationContract in result");return s.result.delegationContract},{cacheKey:p,cacheTime:1440*60*1e3})}const se=t=>{const{client:e,adminAccount:n,sponsorGas:r}=t,o=async a=>{var A,C,x;const i=a[0];if(!i)throw new Error("No transactions provided");const s=v(i.chainId),u=H({address:n.address,chain:s,client:e,abi:ue});let c=(A=i.authorizationList)==null?void 0:A[0];const m=await ie({client:e,chain:s});if(c&&((C=c.address)==null?void 0:C.toLowerCase())!==m.toLowerCase())throw new Error(`Authorization address does not match expected delegation contract address. Expected ${m} but got ${c.address}`);if(!c&&!await oe(u,m)){let T=i.nonce?BigInt(i.nonce):BigInt(await re({client:e,address:n.address,chain:s}));T+=r?0n:1n;const h=await((x=n.signAuthorization)==null?void 0:x.call(n,{address:f(m),chainId:i.chainId,nonce:T}));if(!h)throw new Error("Failed to sign authorization");c=h}if(r){const l={calls:a.map(L=>({data:L.data??"0x",target:f(L.to??""),value:L.value??0n})),uid:$()},T=await n.signTypedData({domain:{chainId:i.chainId,name:"MinimalAccount",verifyingContract:u.address,version:"1"},message:l,primaryType:"WrappedCalls",types:{Call:[{name:"target",type:"address"},{name:"value",type:"uint256"},{name:"data",type:"bytes"}],WrappedCalls:[{name:"calls",type:"Call[]"},{name:"uid",type:"bytes32"}]}}),h=await ne({authorization:c,eoaAddress:f(n.address),options:{chain:v(i.chainId),client:e},signature:T,wrappedCalls:l});return{transactionHash:await pe({options:{chain:v(i.chainId),client:e},transactionId:h.transactionId})}}const S=N({calls:a.map(l=>({data:l.data??"0x",target:f(l.to??""),value:l.value??0n})),contract:u,overrides:{authorizationList:c?[c]:void 0,value:a.reduce((l,T)=>l+(T.value??0n),0n)}}),G=await O({from:n.address,transaction:S});return n.sendTransaction(G)},p={address:n.address,sendBatchTransaction:async a=>o(a),sendTransaction:async a=>o([a]),signMessage:({message:a,originalMessage:i,chainId:s})=>n.signMessage({chainId:s,message:a,originalMessage:i}),signTypedData:a=>n.signTypedData(a),sendCalls:async a=>{const{inAppWalletSendCalls:i}=await b(async()=>{const{inAppWalletSendCalls:S}=await import("./in-app-wallet-calls-DCQO7CRP.js");return{inAppWalletSendCalls:S}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18])),s=a.calls[0];if(!s)throw new Error("No calls to send");const u=s.client,c=s.chain||a.chain,m=await i({account:p,calls:a.calls,chain:c});return{chain:c,client:u,id:m}},getCallsStatus:async a=>{const{inAppWalletGetCallsStatus:i}=await b(async()=>{const{inAppWalletGetCallsStatus:s}=await import("./in-app-wallet-calls-DCQO7CRP.js");return{inAppWalletGetCallsStatus:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCallsStatusRaw:async a=>{const{inAppWalletGetCallsStatusRaw:i}=await b(async()=>{const{inAppWalletGetCallsStatusRaw:s}=await import("./in-app-wallet-calls-DCQO7CRP.js");return{inAppWalletGetCallsStatusRaw:s}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]));return i(a)},getCapabilities:async a=>({[a.chainId??1]:{atomic:{status:"supported"},paymasterService:{supported:r??!1}}})};return p};async function re(t){const{client:e,address:n,chain:r}=t,o=j({chain:r,client:e});return await b(async()=>{const{eth_getTransactionCount:a}=await import("./eth_getTransactionCount-BdILqCdx.js");return{eth_getTransactionCount:a}},__vite__mapDeps([19,3,4,5,6])).then(({eth_getTransactionCount:a})=>a(o,{address:f(n),blockTag:"pending"}))}async function oe(t,e){const n=await V(t),r=n.length>0&&n.startsWith("0xef0100"),o=`0x${n.slice(8,48)}`;return r&&o.toLowerCase()===e.toLowerCase()}async function pe(t){const e=t.timeoutMs||3e5,n=t.intervalMs||1e3,r=Date.now()+e;for(;Date.now()<r;){const o=await ae({options:t.options,transactionId:t.transactionId});if(o.transactionHash)return o.transactionHash;await new Promise(p=>setTimeout(p,n))}throw new Error(`Timeout waiting for transaction to be mined on chain ${t.options.chain.id} with transactionId: ${t.transactionId}`)}const ue=[{type:"receive",stateMutability:"payable"},{type:"function",name:"createSessionWithSig",inputs:[{name:"sessionSpec",type:"tuple",internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"nonpayable"},{type:"function",name:"eip712Domain",inputs:[],outputs:[{name:"fields",type:"bytes1",internalType:"bytes1"},{name:"name",type:"string",internalType:"string"},{name:"version",type:"string",internalType:"string"},{name:"chainId",type:"uint256",internalType:"uint256"},{name:"verifyingContract",type:"address",internalType:"address"},{name:"salt",type:"bytes32",internalType:"bytes32"},{name:"extensions",type:"uint256[]",internalType:"uint256[]"}],stateMutability:"view"},{type:"function",name:"execute",inputs:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]}],outputs:[],stateMutability:"payable"},{type:"function",name:"executeWithSig",inputs:[{name:"wrappedCalls",type:"tuple",internalType:"struct WrappedCalls",components:[{name:"calls",type:"tuple[]",internalType:"struct Call[]",components:[{name:"target",type:"address",internalType:"address"},{name:"value",type:"uint256",internalType:"uint256"},{name:"data",type:"bytes",internalType:"bytes"}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]},{name:"signature",type:"bytes",internalType:"bytes"}],outputs:[],stateMutability:"payable"},{type:"function",name:"getCallPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]}],stateMutability:"view"},{type:"function",name:"getSessionExpirationForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"uint256",internalType:"uint256"}],stateMutability:"view"},{type:"function",name:"getSessionStateForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple",internalType:"struct SessionLib.SessionState",components:[{name:"transferValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callValue",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]},{name:"callParams",type:"tuple[]",internalType:"struct SessionLib.LimitState[]",components:[{name:"remaining",type:"uint256",internalType:"uint256"},{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"index",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"getTransferPoliciesForSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}],stateMutability:"view"},{type:"function",name:"isWildcardSigner",inputs:[{name:"signer",type:"address",internalType:"address"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"function",name:"onERC1155BatchReceived",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"uint256[]",internalType:"uint256[]"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC1155Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"onERC721Received",inputs:[{name:"",type:"address",internalType:"address"},{name:"",type:"address",internalType:"address"},{name:"",type:"uint256",internalType:"uint256"},{name:"",type:"bytes",internalType:"bytes"}],outputs:[{name:"",type:"bytes4",internalType:"bytes4"}],stateMutability:"nonpayable"},{type:"function",name:"supportsInterface",inputs:[{name:"interfaceId",type:"bytes4",internalType:"bytes4"}],outputs:[{name:"",type:"bool",internalType:"bool"}],stateMutability:"view"},{type:"event",name:"Executed",inputs:[{name:"to",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"},{name:"data",type:"bytes",indexed:!1,internalType:"bytes"}],anonymous:!1},{type:"event",name:"SessionCreated",inputs:[{name:"signer",type:"address",indexed:!0,internalType:"address"},{name:"sessionSpec",type:"tuple",indexed:!1,internalType:"struct SessionLib.SessionSpec",components:[{name:"signer",type:"address",internalType:"address"},{name:"isWildcard",type:"bool",internalType:"bool"},{name:"expiresAt",type:"uint256",internalType:"uint256"},{name:"callPolicies",type:"tuple[]",internalType:"struct SessionLib.CallSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]},{name:"constraints",type:"tuple[]",internalType:"struct SessionLib.Constraint[]",components:[{name:"condition",type:"uint8",internalType:"enum SessionLib.Condition"},{name:"index",type:"uint64",internalType:"uint64"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"limit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]}]},{name:"transferPolicies",type:"tuple[]",internalType:"struct SessionLib.TransferSpec[]",components:[{name:"target",type:"address",internalType:"address"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"},{name:"valueLimit",type:"tuple",internalType:"struct SessionLib.UsageLimit",components:[{name:"limitType",type:"uint8",internalType:"enum SessionLib.LimitType"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint256",internalType:"uint256"}]}]},{name:"uid",type:"bytes32",internalType:"bytes32"}]}],anonymous:!1},{type:"event",name:"ValueReceived",inputs:[{name:"from",type:"address",indexed:!0,internalType:"address"},{name:"value",type:"uint256",indexed:!1,internalType:"uint256"}],anonymous:!1},{type:"error",name:"AllowanceExceeded",inputs:[{name:"allowanceUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"},{name:"period",type:"uint64",internalType:"uint64"}]},{type:"error",name:"CallPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"},{name:"selector",type:"bytes4",internalType:"bytes4"}]},{type:"error",name:"CallReverted",inputs:[]},{type:"error",name:"ConditionFailed",inputs:[{name:"param",type:"bytes32",internalType:"bytes32"},{name:"refValue",type:"bytes32",internalType:"bytes32"},{name:"condition",type:"uint8",internalType:"uint8"}]},{type:"error",name:"InvalidDataLength",inputs:[{name:"actualLength",type:"uint256",internalType:"uint256"},{name:"expectedLength",type:"uint256",internalType:"uint256"}]},{type:"error",name:"InvalidSignature",inputs:[{name:"msgSender",type:"address",internalType:"address"},{name:"thisAddress",type:"address",internalType:"address"}]},{type:"error",name:"LifetimeUsageExceeded",inputs:[{name:"lifetimeUsage",type:"uint256",internalType:"uint256"},{name:"limit",type:"uint256",internalType:"uint256"}]},{type:"error",name:"MaxValueExceeded",inputs:[{name:"value",type:"uint256",internalType:"uint256"},{name:"maxValuePerUse",type:"uint256",internalType:"uint256"}]},{type:"error",name:"NoCallsToExecute",inputs:[]},{type:"error",name:"SessionExpired",inputs:[]},{type:"error",name:"SessionExpiresTooSoon",inputs:[]},{type:"error",name:"SessionZeroSigner",inputs:[]},{type:"error",name:"TransferPolicyViolated",inputs:[{name:"target",type:"address",internalType:"address"}]},{type:"error",name:"UIDAlreadyProcessed",inputs:[]}];function ce(t){return t.id==="inApp"||t.id==="embedded"}async function le(t,e,n){var p,a,i,s;if(((p=e==null?void 0:e.auth)==null?void 0:p.mode)!=="popup"&&((a=e==null?void 0:e.auth)==null?void 0:a.mode)!==void 0&&n.authenticateWithRedirect){const u=t.strategy;M.includes(u)&&await n.authenticateWithRedirect(u,(i=e==null?void 0:e.auth)==null?void 0:i.mode,(s=e==null?void 0:e.auth)==null?void 0:s.redirectUrl)}const o=(await n.connect(t)).user.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function ye(t,e,n){t.authResult&&n.loginWithAuthToken&&await n.loginWithAuthToken(t.authResult);const r=await me(n);if(!r)throw new Error("Failed to authenticate user.");const o=r.account;return P({authAccount:o,client:t.client,createOptions:e,desiredChain:t.chain})}async function de(t){const{connectSmartAccount:e}=await b(async()=>{const{connectSmartAccount:n}=await import("./index-oZ1tZhJd.js");return{connectSmartAccount:n}},__vite__mapDeps([20,8,6,9,5,10,11,12,13,3,4,7,17,18,21,22,23,24,25,16,26,27,28,29,30,31,32,33,34,35,36,37,38]));return e({chain:t.chain,client:t.client,personalAccount:t.authAccount},t.smartAccountOptions)}async function me(t){const e=await t.getUser();switch(e.status){case"Logged In, Wallet Initialized":return e}}async function P(t){const{createOptions:e,authAccount:n,desiredChain:r,client:o}=t;let p,a;const i=e&&"executionMode"in e?e.executionMode:void 0;if(i&&(i.mode==="EIP4337"?p=i.smartAccount:i.mode==="EIP7702"&&(a=i)),e&&"smartAccount"in e&&(e!=null&&e.smartAccount)&&(p=e.smartAccount),p){const[s,u]=await de({authAccount:n,chain:r,client:o,smartAccountOptions:p});return{account:s,adminAccount:n,chain:u}}if(a){const s=r;if(!s)throw new Error("Chain is required for EIP-7702 execution, pass a chain when connecting the inAppWallet.");return{account:se({adminAccount:n,client:o,sponsorGas:a.sponsorGas}),adminAccount:n,chain:s}}return{account:n,chain:r||R}}const Re=Object.freeze(Object.defineProperty({__proto__:null,autoConnectInAppWallet:ye,connectInAppWallet:le,isInAppWallet:ce},Symbol.toStringTag,{value:"Module"}));export{Ae as D,w as E,J as a,Ue as b,Ee as c,xe as d,_e as e,Z as f,E as g,U as h,Ce as i,Pe as j,Ge as k,Ie as l,ce as m,Re as n};
5
+ //# sourceMappingURL=index-HpMk4su8.js.map