@dcl/shop 0.7.1 → 0.7.2

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 (173) hide show
  1. package/_assets/{Activity-Cnn-lMD9.js → Activity-Jc4Ww2Np.js} +3 -3
  2. package/_assets/{AnimatedBackground-D9QjeeBa.js → AnimatedBackground-Be3B4ztI.js} +1 -1
  3. package/_assets/{Assets-CRJDmBDB.js → Assets-DoF0RVFp.js} +2 -2
  4. package/_assets/{Assets.styles-BjdmDuEG.js → Assets.styles-IIy06Oye.js} +1 -1
  5. package/_assets/{Authorizations-C-EUi_Ea.js → Authorizations-b9znutOi.js} +1 -1
  6. package/_assets/{Cart-B8YOGJmI.js → Cart-CFsD5IlH.js} +2 -2
  7. package/_assets/{CircularProgress-Db8orehr.js → CircularProgress-wU--wY5P.js} +1 -1
  8. package/_assets/{Collection-C2FumsGf.js → Collection-CsVwPele.js} +1 -1
  9. package/_assets/{CollectionCarousel-DL857EZk.js → CollectionCarousel-DelfAKnZ.js} +1 -1
  10. package/_assets/Creator-CJuvJbZ7.js +306 -0
  11. package/_assets/{ErrorNotice-MWF7JXST.js → ErrorNotice-3r5bQgT2.js} +1 -1
  12. package/_assets/{ExchangeController-D0BUEGgM.js → ExchangeController-CxfrLhaH.js} +1 -1
  13. package/_assets/{GetCredits-VgVSObKH.js → GetCredits-Dn-IHOnM.js} +1 -1
  14. package/_assets/{Grow-DaJKbNKH.js → Grow-BmECuNyH.js} +1 -1
  15. package/_assets/{HelpersUtil-Des1BKsb.js → HelpersUtil-Bvk_vk1Y.js} +1 -1
  16. package/_assets/{ItemDetail-DpbhFiHl.js → ItemDetail-ByHvYOS_.js} +237 -237
  17. package/_assets/LazyEmoteControls-DBetyXKO.js +2 -0
  18. package/_assets/{LoadMore-CIWThu0V.js → LoadMore-CymwFW-m.js} +1 -1
  19. package/_assets/{ManaPricingBanner.styles-D7yh-OMv.js → ManaPricingBanner.styles-B36mIGF3.js} +1 -1
  20. package/_assets/{MyAssets-MBEHe0qY.js → MyAssets-CE5nGbGF.js} +1 -1
  21. package/_assets/{MyFavorites-Cer-5MAy.js → MyFavorites-Bk3TaFpw.js} +1 -1
  22. package/_assets/{NotFound-CuiJHtW_.js → NotFound-DtwVRkn9.js} +1 -1
  23. package/_assets/{NotificationsBell-BneUIyzO.js → NotificationsBell-CayuJgBV.js} +1 -1
  24. package/_assets/{OutfitDetail-B1WI3yDq.js → OutfitDetail-CYCbMvMy.js} +1 -1
  25. package/_assets/{OutfitPreview-C2-ueSaA.js → OutfitPreview-4ZQworXq.js} +1 -1
  26. package/_assets/{OutfitStudio-DYdoL9fR.js → OutfitStudio-B7JjH_OJ.js} +1 -1
  27. package/_assets/{StoreSettings-DuuOxmdV.js → StoreSettings-DZqto59M.js} +1 -1
  28. package/_assets/{Success-CEH1MUQt.js → Success-BXd4vOmE.js} +1 -1
  29. package/_assets/{SwapController-CIXsGZBK.js → SwapController-D_HE5-4t.js} +1 -1
  30. package/_assets/{Tooltip-jfo7edQn.js → Tooltip-CH3i2AZ8.js} +1 -1
  31. package/_assets/{TradeService-DiOUxFwj.js → TradeService-8wrIkkCU.js} +1 -1
  32. package/_assets/{W3MFrameProviderSingleton-D_hwynnp.js → W3MFrameProviderSingleton-hR4mAmko.js} +3 -3
  33. package/_assets/{WebCryptoP256-DFE3V2WS.js → WebCryptoP256-CUVz0sT-.js} +1 -1
  34. package/_assets/{authorizations-CboNrOcr.js → authorizations-CkEL0cRE.js} +1 -1
  35. package/_assets/{basic-DvU1J3w8.js → basic-CjxOIetC.js} +1 -1
  36. package/_assets/{biconomy-DTTg16ds.js → biconomy-8Mii_u_D.js} +1 -1
  37. package/_assets/{builder-C3uRVotE.js → builder-BoC6pJY-.js} +1 -1
  38. package/_assets/{buy-BYu3r4d1.js → buy-C5VKib6d.js} +1 -1
  39. package/_assets/{buy-gasless-BpGXC11T.js → buy-gasless-CtdtD4yw.js} +1 -1
  40. package/_assets/{categories-B-ttqFdP.js → categories-N60mkQ85.js} +1 -1
  41. package/_assets/{ccip-Chjvzuo3.js → ccip-BfABfKqd.js} +1 -1
  42. package/_assets/{ccip-B5qgpEOa.js → ccip-CkHWEn4N.js} +1 -1
  43. package/_assets/{collectionPage.styles-Cqc0qEsV.js → collectionPage.styles-BWGZLOL_.js} +1 -1
  44. package/_assets/{controller-D65h4JHM.js → controller-bg1czStV.js} +2 -2
  45. package/_assets/{core-DQrWR_KU.js → core-CI81_wqW.js} +4 -4
  46. package/_assets/{createSvgIcon-CIAc53Uf.js → createSvgIcon-BG_h01sL.js} +1 -1
  47. package/_assets/{custom-CXFEHrtn.js → custom-BNXh19kf.js} +1 -1
  48. package/_assets/{data-capture-CyNw1tR6.js → data-capture-Gwo_M6sW.js} +1 -1
  49. package/_assets/{email-BSFpn-mK.js → email-Bnr-9hTW.js} +1 -1
  50. package/_assets/{embedded-wallet-DUt0q64F.js → embedded-wallet-D4jo3k6W.js} +1 -1
  51. package/_assets/{emotion-styled.browser.esm-MB_ZnWA0.js → emotion-styled.browser.esm-Bd2qjAcz.js} +1 -1
  52. package/_assets/{engine-CWoVWkrK.js → engine-C--F6ENC.js} +1 -1
  53. package/_assets/{errors-CspB8iK7.js → errors-Du3dWMbd.js} +1 -1
  54. package/_assets/{estimate-l1-fee-CctWCWaJ.js → estimate-l1-fee-DtQQVymm.js} +1 -1
  55. package/_assets/{execute-CqdEBDWF.js → execute-DbnGyz94.js} +2 -2
  56. package/_assets/{features-1-FLWkh7.js → features-BkFSf-iq.js} +1 -1
  57. package/_assets/{fetchTokenMetadata-BaQpNTHG.js → fetchTokenMetadata-DFggI2iY.js} +2 -2
  58. package/_assets/{field.styles-O-FhYRsZ.js → field.styles-D3cOLW18.js} +1 -1
  59. package/_assets/{get-ecosystem-wallet-info-efBvwCgh.js → get-ecosystem-wallet-info-11sCnJ-7.js} +1 -1
  60. package/_assets/{getBalance-B6jNJqou.js → getBalance-QGjDk77O.js} +1 -1
  61. package/_assets/{getNFT-CEFWuq38.js → getNFT-BJ8yr01Z.js} +1 -1
  62. package/_assets/{getNFT-BLha6TEN.js → getNFT-BVVv_-0Y.js} +1 -1
  63. package/_assets/{grid.styles-9axjWKOh.js → grid.styles-CFQtLncp.js} +1 -1
  64. package/_assets/{hashTypedData-DU5frjBz.js → hashTypedData-BXX-P_dP.js} +1 -1
  65. package/_assets/{hashTypedData-DRoLgz93.js → hashTypedData-gN3c95l4.js} +1 -1
  66. package/_assets/{in-app-B7r-w8-I.js → in-app-kBwlyl-f.js} +1 -1
  67. package/_assets/{in-app-wallet-calls-DikRiAsm.js → in-app-wallet-calls-BN8r6OBs.js} +1 -1
  68. package/_assets/{index-C2gCqG5-.js → index-B0ryoW8w.js} +1 -1
  69. package/_assets/{index-DvGpQtXK.js → index-B1DCMe50.js} +310 -310
  70. package/_assets/{index-Cgl5oOLN.js → index-B4M8sJUj.js} +1 -1
  71. package/_assets/{index-BkzAB4dC.js → index-B4bQ_g5A.js} +1 -1
  72. package/_assets/{index-Y3M9UhW1.js → index-BLrPav1T.js} +1 -1
  73. package/_assets/{index-BReAWJ34.js → index-BUvdjpLN.js} +1 -1
  74. package/_assets/{index-DLLktYWt.js → index-B_HYDEtX.js} +1 -1
  75. package/_assets/{index-KzbPGO4w.js → index-Bakfg_1g.js} +1 -1
  76. package/_assets/{index-fUWjTMSy.js → index-Bm7j_2aS.js} +1 -1
  77. package/_assets/{index-BgabQb2i.js → index-BtNS6Sv0.js} +1 -1
  78. package/_assets/{index-DDKTVZmj.js → index-BwWxHd9J.js} +1 -1
  79. package/_assets/{index-CIuQobaT.js → index-C36oVpEk.js} +1 -1
  80. package/_assets/{index-BTadlrEf.js → index-C4Ua5jGw.js} +1 -1
  81. package/_assets/{index-XPa69X9v.js → index-C786VheW.js} +1 -1
  82. package/_assets/{index-DkxuiR0U.js → index-CIyes5rm.js} +1 -1
  83. package/_assets/{index-CaO4BbgL.js → index-CKac0RNB.js} +1 -1
  84. package/_assets/{index-BLcuFifQ.js → index-CMeSxiXG.js} +1 -1
  85. package/_assets/{index-rSQnRqcs.js → index-CQdN8SI1.js} +1 -1
  86. package/_assets/{index-Bfbnmm19.js → index-CVQ8oHkh.js} +2 -2
  87. package/_assets/{index-DZlNnXl_.js → index-CblEnpzL.js} +2 -2
  88. package/_assets/{index-C2dqHPFe.js → index-CkItaod2.js} +1 -1
  89. package/_assets/{index-C7mQXKdO.js → index-CqVxBPGc.js} +1 -1
  90. package/_assets/{index-B7llCCrg.js → index-CrvRYFHR.js} +3 -3
  91. package/_assets/{index-DPQIOv9u.js → index-CvxViQFA.js} +1 -1
  92. package/_assets/{index-cPbHgYyr.js → index-Cxw303yv.js} +1 -1
  93. package/_assets/{index-Iv9CW07E.js → index-CzYiATyr.js} +1 -1
  94. package/_assets/{index-BMoopm2-.js → index-D7zzleDp.js} +1 -1
  95. package/_assets/{index-LuVJpw9c.js → index-D9xYIYaf.js} +1 -1
  96. package/_assets/{index-KGamvf3R.js → index-DDc9MCuJ.js} +1 -1
  97. package/_assets/{index-CMFFdWaD.js → index-DDiCv4U4.js} +3 -3
  98. package/_assets/{index-DR68c_Xf.js → index-DInQ5jG-.js} +1 -1
  99. package/_assets/{index-BvC5hvQr.js → index-DLzdQycs.js} +1 -1
  100. package/_assets/{index-kngovSRn.js → index-DN1pJSb7.js} +1 -1
  101. package/_assets/{index-Bw8RegM3.js → index-DOlLnnbN.js} +1 -1
  102. package/_assets/{index-DrK9O1Pz.js → index-DjPyQFXF.js} +1 -1
  103. package/_assets/{index-Zvh0r5Lt.js → index-Dl0ZUNWk.js} +1 -1
  104. package/_assets/{index-xqlURRt6.js → index-DoRhx_He.js} +1 -1
  105. package/_assets/{index-uRRgUqn2.js → index-DrqL3wnf.js} +1 -1
  106. package/_assets/{index-D4Z2JmNT.js → index-DvkSTulM.js} +1 -1
  107. package/_assets/{index-D_FVnuvd.js → index-DxojTLnQ.js} +1 -1
  108. package/_assets/{index-BWwETmQE.js → index-Dyh7pyxx.js} +1 -1
  109. package/_assets/{index-CKY-zq6_.js → index-DyxpPyVg.js} +1 -1
  110. package/_assets/{index-C5Q9tbiE.js → index-EXLD54jH.js} +2 -2
  111. package/_assets/{index-Dcv3uBNj.js → index-I2lMQseb.js} +1 -1
  112. package/_assets/{index-z_VEn6An.js → index-O0VpavwW.js} +1 -1
  113. package/_assets/{index-BlFmY0PY.js → index-TTZwY716.js} +1 -1
  114. package/_assets/{index--d9L6VlZ.js → index-YZKg7WM1.js} +3 -3
  115. package/_assets/{index-CSMohmqH.js → index-cvhPRrXA.js} +1 -1
  116. package/_assets/{index-COXs6Mhj.js → index-kPR91X9E.js} +1 -1
  117. package/_assets/{index-BVyKLj9g.js → index-tpmZJbVV.js} +1 -1
  118. package/_assets/{index-ByXn6qsZ.js → index-xPEXNMYS.js} +1 -1
  119. package/_assets/{index-Bggu5dcK.js → index-zQ8cxU2G.js} +1 -1
  120. package/_assets/{index.es-ClGX6azd.js → index.es-5JavRckI.js} +1 -1
  121. package/_assets/{index.es-DEd0yiWT.js → index.es-Bl2PbxJr.js} +4 -4
  122. package/_assets/{index.es-DUY_zrrQ.js → index.es-EFLDV9YI.js} +1 -1
  123. package/_assets/{localBatchGatewayRequest-DN2xsMJ_.js → localBatchGatewayRequest-BWsIaDIE.js} +1 -1
  124. package/_assets/{networks-CDFMzeLC.js → networks--rzHY8zY.js} +1 -1
  125. package/_assets/{onramp-BW3vCZnx.js → onramp-IBGbKthf.js} +1 -1
  126. package/_assets/{openzeppelin-CUcdj_sx.js → openzeppelin-CteHZYAE.js} +1 -1
  127. package/_assets/{parseNft-G6_xBphx.js → parseNft-CjJbs0kN.js} +2 -2
  128. package/_assets/{parseSignature-CIXTBJVX.js → parseSignature-BZS2g2Jp.js} +1 -1
  129. package/_assets/{parseSignature-DRZnwzny.js → parseSignature-DgP8I4s-.js} +3 -3
  130. package/_assets/{passkeys-Kq30ZnPW.js → passkeys-2GYfrIW-.js} +1 -1
  131. package/_assets/{pay-with-exchange-wv1lVt88.js → pay-with-exchange-CFDPj_Ci.js} +1 -1
  132. package/_assets/{qr-overlay-BNvjvuvd.js → qr-overlay-Ds7Fr0lF.js} +1 -1
  133. package/_assets/{receive-BU-20CjU.js → receive-DI-hDZuo.js} +1 -1
  134. package/_assets/{resolveImplementation-C-p0Txrw.js → resolveImplementation-BtX-ARKv.js} +1 -1
  135. package/_assets/{rpc-D0gBTa6Z.js → rpc-CpuwTu3M.js} +1 -1
  136. package/_assets/{secp256k1-B3k0VS5Y.js → secp256k1-B3lQnF4x.js} +1 -1
  137. package/_assets/{secp256k1-C_-lAZcz.js → secp256k1-BMmzDgZw.js} +1 -1
  138. package/_assets/{secp256k1-YCpzKzUb.js → secp256k1-DT8TtWA2.js} +1 -1
  139. package/_assets/{send-batch-transaction-Bab8Fd2d.js → send-batch-transaction-CshATiqB.js} +1 -1
  140. package/_assets/{send-eip712-transaction-CKAs5XET.js → send-eip712-transaction-B_yd_Ph2.js} +2 -2
  141. package/_assets/{send-gasless-transaction-CiFZmQQQ.js → send-gasless-transaction-Ot1v7swm.js} +2 -2
  142. package/_assets/{send-BRaIAbAO.js → send-lqB2NsIP.js} +1 -1
  143. package/_assets/{send-transaction-DOvrVTQH.js → send-transaction-Bbb8MiYz.js} +2 -2
  144. package/_assets/{sendMetaTransaction-D69U0yOu.js → sendMetaTransaction-B8QarnGW.js} +1 -1
  145. package/_assets/{sendRawTransaction-Cnl8KhyZ.js → sendRawTransaction-CdbKO36d.js} +3 -3
  146. package/_assets/{serializeTransaction--73AW1zM.js → serializeTransaction-qj2kvULH.js} +1 -1
  147. package/_assets/{session-proposal-DYdwdKre.js → session-proposal-Bjh7TDS3.js} +1 -1
  148. package/_assets/{session-request-Dme0ul41.js → session-request-BWLuJcL4.js} +2 -2
  149. package/_assets/{signing-Bd3rbnSj.js → signing-CssxZ7kf.js} +3 -3
  150. package/_assets/{socials-VohiP86p.js → socials-91-QTc9v.js} +1 -1
  151. package/_assets/{styled-CvsbVgfF.js → styled-CjUv0U3K.js} +1 -1
  152. package/_assets/{swaps-DKu-ROps.js → swaps-CT9j7o9y.js} +1 -1
  153. package/_assets/{thirdweb-BMXspv9l.js → thirdweb-6YwgkX44.js} +3 -3
  154. package/_assets/{to-serializable-transaction-CX8P98IC.js → to-serializable-transaction-Cwp0L3ww.js} +2 -2
  155. package/_assets/{trade-encoding-BD8tpz7m.js → trade-encoding-CxvKGx0_.js} +1 -1
  156. package/_assets/{transactionReceipt-C3xmpECX.js → transactionReceipt-CYYXW47r.js} +1 -1
  157. package/_assets/{transactions-8lwN2rpf.js → transactions-Yy0hGtH3.js} +1 -1
  158. package/_assets/{useCreditPacks-B-QtC7sA.js → useCreditPacks-eXmbKxJO.js} +1 -1
  159. package/_assets/{useImportable-zF3kPKFU.js → useImportable-1wgCIPJI.js} +1 -1
  160. package/_assets/{useInfiniteGrid-Drc6luef.js → useInfiniteGrid-IXSEUDfN.js} +1 -1
  161. package/_assets/{useTheme-BXrN5D9V.js → useTheme-DDHPP1hV.js} +1 -1
  162. package/_assets/{verifyHash-B5Ov596i.js → verifyHash-UQQpWRKz.js} +1 -1
  163. package/_assets/{w3m-modal-BiPLqXgA.js → w3m-modal-R-xHgcLx.js} +1 -1
  164. package/_assets/{w3m-modal-BfUiYkFq.js → w3m-modal-uZlen5oK.js} +1 -1
  165. package/_assets/{wait-for-tx-receipt-DZxMxn7p.js → wait-for-tx-receipt-Be-DMOgp.js} +1 -1
  166. package/_assets/{wallets-ZPwMzIt3.js → wallets-XOlHe2ld.js} +5 -5
  167. package/_assets/{web-connector-Dsb7R1Dr.js → web-connector-msoNVD8s.js} +3 -3
  168. package/_assets/{writeContract-BLACgB36.js → writeContract-8MHZT7h2.js} +1 -1
  169. package/_assets/{zoraTestnet-BCAU7V7m.js → zoraTestnet-HwyYvSRG.js} +1 -1
  170. package/index.html +11 -11
  171. package/package.json +2 -2
  172. package/_assets/Creator-WSL6qgqX.js +0 -306
  173. package/_assets/LazyEmoteControls-COW8eJUD.js +0 -2
@@ -1,4 +1,4 @@
1
- import{cm as Qe,ci as et,u as tt,ac as H,ad as L,cn as Me,ae as nt,co as rt,ab as Pe,o as ue,T as ot,bZ as it}from"./index-DvGpQtXK.js";import{r as s,j as I,R as W,f as st}from"./react-DehiWSvs.js";import{C as we,c as C,a as le,g as at,b as ut}from"./clsx-WwvpwSg0.js";import{e as lt,s as ce}from"./styled-CvsbVgfF.js";import{S as ge}from"./emotion-styled.browser.esm-MB_ZnWA0.js";function Ie(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ie(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ct(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ie(e))&&(r&&(r+=" "),r+=t);return r}const pt=["className","component"];function ft(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Qe("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(et);return s.forwardRef(function(l,p){const d=tt(n),m=lt(l),{className:b,component:y="div"}=m,h=H(m,pt);return I.jsx(i,L({as:y,ref:p,className:ct(b,o?o(r):r),theme:t&&d[t]||d},h))})}function dt(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ht(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function mt(e,t){return()=>null}function bt(e,t){var n,r;return s.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Ne(e){return e&&e.ownerDocument||document}function gt(e){return Ne(e).defaultView||window}function yt(e,t){return()=>null}function Ve(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Rt(e,t,n,r,o){return null}function xt({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=s.useRef(e!==void 0),[i,a]=s.useState(t),c=o?e:i,l=s.useCallback(p=>{o||a(p)},[]);return[c,l]}function X(e){const t=s.useRef(e);return Me(()=>{t.current=e}),s.useRef((...n)=>(0,t.current)(...n)).current}function oe(...e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ve(n,t)})},e)}const ye={};function Et(e,t){const n=s.useRef(ye);return n.current===ye&&(n.current=e(t)),n}const vt=[];function Tt(e){s.useEffect(e,vt)}class G{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new G}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Ct(){const e=Et(G.create).current;return Tt(e.disposeEffect),e}let Z=!0,ie=!1;const Mt=new G,Pt={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function wt(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Pt[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function It(e){e.metaKey||e.altKey||e.ctrlKey||(Z=!0)}function ne(){Z=!1}function Nt(){this.visibilityState==="hidden"&&ie&&(Z=!0)}function Vt(e){e.addEventListener("keydown",It,!0),e.addEventListener("mousedown",ne,!0),e.addEventListener("pointerdown",ne,!0),e.addEventListener("touchstart",ne,!0),e.addEventListener("visibilitychange",Nt,!0)}function St(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Z||wt(t)}function Se(){const e=s.useCallback(o=>{o!=null&&Vt(o.ownerDocument)},[]),t=s.useRef(!1);function n(){return t.current?(ie=!0,Mt.start(100,()=>{ie=!1}),t.current=!1,!0):!1}function r(o){return St(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Bt(e,t){function n(r,o){return I.jsx(ge,L({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=ge.muiName,s.memo(s.forwardRef(n))}const _t={configure:e=>{we.configure(e)}},Dt=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nt,createChainedFunction:dt,createSvgIcon:Bt,debounce:ht,deprecatedPropType:mt,isMuiElement:bt,ownerDocument:Ne,ownerWindow:gt,requirePropFactory:yt,setRef:Ve,unstable_ClassNameGenerator:_t,unstable_useEnhancedEffect:Me,unstable_useId:rt,unsupportedProp:Rt,useControlled:xt,useEventCallback:X,useForkRef:oe,useIsFocusVisible:Se},Symbol.toStringTag,{value:"Module"}));function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},se(e,t)}function Ft(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,se(e,t)}const Re=W.createContext(null);function Lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pe(e,t){var n=function(i){return t&&s.isValidElement(i)?t(i):i},r=Object.create(null);return e&&s.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function jt(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var p=r[l][a];c[r[l][a]]=n(p)}c[l]=n(l)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function F(e,t,n){return n[t]!=null?n[t]:e.props[t]}function $t(e,t){return pe(e.children,function(n){return s.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:F(n,"appear",e),enter:F(n,"enter",e),exit:F(n,"exit",e)})})}function kt(e,t,n){var r=pe(e.children),o=jt(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(s.isValidElement(a)){var c=i in t,l=i in r,p=t[i],d=s.isValidElement(p)&&!p.props.in;l&&(!c||d)?o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:F(a,"exit",e),enter:F(a,"enter",e)}):!l&&c&&!d?o[i]=s.cloneElement(a,{in:!1}):l&&c&&s.isValidElement(p)&&(o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:F(a,"exit",e),enter:F(a,"enter",e)}))}}),o}var Ot=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ut={component:"div",childFactory:function(t){return t}},fe=(function(e){Ft(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(Lt(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,l=i.firstRender;return{children:l?$t(o,c):kt(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=pe(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var l=L({},c.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=H(o,["component","childFactory"]),l=this.state.contextValue,p=Ot(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?W.createElement(Re.Provider,{value:l},p):W.createElement(Re.Provider,{value:l},W.createElement(i,c,p))},t})(W.Component);fe.propTypes={};fe.defaultProps=Ut;function Kt(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:l,timeout:p}=e,[d,m]=s.useState(!1),b=C(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},h=C(n.child,d&&n.childLeaving,r&&n.childPulsate);return!c&&!d&&m(!0),s.useEffect(()=>{if(!c&&l!=null){const R=setTimeout(l,p);return()=>{clearTimeout(R)}}},[l,c,p]),I.jsx("span",{className:b,style:y,children:I.jsx("span",{className:h})})}const g=le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zt=["center","classes","className"];let J=e=>e,xe,Ee,ve,Te;const ae=550,At=80,Wt=ue(xe||(xe=J`
1
+ import{cm as Qe,ci as et,u as tt,ac as H,ad as L,cn as Me,ae as nt,co as rt,ab as Pe,o as ue,T as ot,bZ as it}from"./index-B1DCMe50.js";import{r as s,j as I,R as W,f as st}from"./react-DehiWSvs.js";import{C as we,c as C,a as le,g as at,b as ut}from"./clsx-WwvpwSg0.js";import{e as lt,s as ce}from"./styled-CjUv0U3K.js";import{S as ge}from"./emotion-styled.browser.esm-Bd2qjAcz.js";function Ie(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(n=Ie(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function ct(){for(var e,t,n=0,r="",o=arguments.length;n<o;n++)(e=arguments[n])&&(t=Ie(e))&&(r&&(r+=" "),r+=t);return r}const pt=["className","component"];function ft(e={}){const{themeId:t,defaultTheme:n,defaultClassName:r="MuiBox-root",generateClassName:o}=e,i=Qe("div",{shouldForwardProp:c=>c!=="theme"&&c!=="sx"&&c!=="as"})(et);return s.forwardRef(function(l,p){const d=tt(n),m=lt(l),{className:b,component:y="div"}=m,h=H(m,pt);return I.jsx(i,L({as:y,ref:p,className:ct(b,o?o(r):r),theme:t&&d[t]||d},h))})}function dt(...e){return e.reduce((t,n)=>n==null?t:function(...o){t.apply(this,o),n.apply(this,o)},()=>{})}function ht(e,t=166){let n;function r(...o){const i=()=>{e.apply(this,o)};clearTimeout(n),n=setTimeout(i,t)}return r.clear=()=>{clearTimeout(n)},r}function mt(e,t){return()=>null}function bt(e,t){var n,r;return s.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function Ne(e){return e&&e.ownerDocument||document}function gt(e){return Ne(e).defaultView||window}function yt(e,t){return()=>null}function Ve(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function Rt(e,t,n,r,o){return null}function xt({controlled:e,default:t,name:n,state:r="value"}){const{current:o}=s.useRef(e!==void 0),[i,a]=s.useState(t),c=o?e:i,l=s.useCallback(p=>{o||a(p)},[]);return[c,l]}function X(e){const t=s.useRef(e);return Me(()=>{t.current=e}),s.useRef((...n)=>(0,t.current)(...n)).current}function oe(...e){return s.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Ve(n,t)})},e)}const ye={};function Et(e,t){const n=s.useRef(ye);return n.current===ye&&(n.current=e(t)),n}const vt=[];function Tt(e){s.useEffect(e,vt)}class G{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new G}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Ct(){const e=Et(G.create).current;return Tt(e.disposeEffect),e}let Z=!0,ie=!1;const Mt=new G,Pt={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function wt(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Pt[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function It(e){e.metaKey||e.altKey||e.ctrlKey||(Z=!0)}function ne(){Z=!1}function Nt(){this.visibilityState==="hidden"&&ie&&(Z=!0)}function Vt(e){e.addEventListener("keydown",It,!0),e.addEventListener("mousedown",ne,!0),e.addEventListener("pointerdown",ne,!0),e.addEventListener("touchstart",ne,!0),e.addEventListener("visibilitychange",Nt,!0)}function St(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Z||wt(t)}function Se(){const e=s.useCallback(o=>{o!=null&&Vt(o.ownerDocument)},[]),t=s.useRef(!1);function n(){return t.current?(ie=!0,Mt.start(100,()=>{ie=!1}),t.current=!1,!0):!1}function r(o){return St(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function Bt(e,t){function n(r,o){return I.jsx(ge,L({"data-testid":`${t}Icon`,ref:o},r,{children:e}))}return n.muiName=ge.muiName,s.memo(s.forwardRef(n))}const _t={configure:e=>{we.configure(e)}},Dt=Object.freeze(Object.defineProperty({__proto__:null,capitalize:nt,createChainedFunction:dt,createSvgIcon:Bt,debounce:ht,deprecatedPropType:mt,isMuiElement:bt,ownerDocument:Ne,ownerWindow:gt,requirePropFactory:yt,setRef:Ve,unstable_ClassNameGenerator:_t,unstable_useEnhancedEffect:Me,unstable_useId:rt,unsupportedProp:Rt,useControlled:xt,useEventCallback:X,useForkRef:oe,useIsFocusVisible:Se},Symbol.toStringTag,{value:"Module"}));function se(e,t){return se=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},se(e,t)}function Ft(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,se(e,t)}const Re=W.createContext(null);function Lt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function pe(e,t){var n=function(i){return t&&s.isValidElement(i)?t(i):i},r=Object.create(null);return e&&s.Children.map(e,function(o){return o}).forEach(function(o){r[o.key]=n(o)}),r}function jt(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),o=[];for(var i in e)i in t?o.length&&(r[i]=o,o=[]):o.push(i);var a,c={};for(var l in t){if(r[l])for(a=0;a<r[l].length;a++){var p=r[l][a];c[r[l][a]]=n(p)}c[l]=n(l)}for(a=0;a<o.length;a++)c[o[a]]=n(o[a]);return c}function F(e,t,n){return n[t]!=null?n[t]:e.props[t]}function $t(e,t){return pe(e.children,function(n){return s.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:F(n,"appear",e),enter:F(n,"enter",e),exit:F(n,"exit",e)})})}function kt(e,t,n){var r=pe(e.children),o=jt(t,r);return Object.keys(o).forEach(function(i){var a=o[i];if(s.isValidElement(a)){var c=i in t,l=i in r,p=t[i],d=s.isValidElement(p)&&!p.props.in;l&&(!c||d)?o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:!0,exit:F(a,"exit",e),enter:F(a,"enter",e)}):!l&&c&&!d?o[i]=s.cloneElement(a,{in:!1}):l&&c&&s.isValidElement(p)&&(o[i]=s.cloneElement(a,{onExited:n.bind(null,a),in:p.props.in,exit:F(a,"exit",e),enter:F(a,"enter",e)}))}}),o}var Ot=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},Ut={component:"div",childFactory:function(t){return t}},fe=(function(e){Ft(t,e);function t(r,o){var i;i=e.call(this,r,o)||this;var a=i.handleExited.bind(Lt(i));return i.state={contextValue:{isMounting:!0},handleExited:a,firstRender:!0},i}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(o,i){var a=i.children,c=i.handleExited,l=i.firstRender;return{children:l?$t(o,c):kt(o,a,c),firstRender:!1}},n.handleExited=function(o,i){var a=pe(this.props.children);o.key in a||(o.props.onExited&&o.props.onExited(i),this.mounted&&this.setState(function(c){var l=L({},c.children);return delete l[o.key],{children:l}}))},n.render=function(){var o=this.props,i=o.component,a=o.childFactory,c=H(o,["component","childFactory"]),l=this.state.contextValue,p=Ot(this.state.children).map(a);return delete c.appear,delete c.enter,delete c.exit,i===null?W.createElement(Re.Provider,{value:l},p):W.createElement(Re.Provider,{value:l},W.createElement(i,c,p))},t})(W.Component);fe.propTypes={};fe.defaultProps=Ut;function Kt(e){const{className:t,classes:n,pulsate:r=!1,rippleX:o,rippleY:i,rippleSize:a,in:c,onExited:l,timeout:p}=e,[d,m]=s.useState(!1),b=C(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),y={width:a,height:a,top:-(a/2)+i,left:-(a/2)+o},h=C(n.child,d&&n.childLeaving,r&&n.childPulsate);return!c&&!d&&m(!0),s.useEffect(()=>{if(!c&&l!=null){const R=setTimeout(l,p);return()=>{clearTimeout(R)}}},[l,c,p]),I.jsx("span",{className:b,style:y,children:I.jsx("span",{className:h})})}const g=le("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),zt=["center","classes","className"];let J=e=>e,xe,Ee,ve,Te;const ae=550,At=80,Wt=ue(xe||(xe=J`
2
2
  0% {
3
3
  transform: scale(0);
4
4
  opacity: 0.1;
@@ -1 +1 @@
1
- import{aD as z,aV as G,a3 as E,aE as Q,a4 as H,aF as Y,b9 as T,a8 as J,bT as W,q as X,bh as Z,bU as K,az as tt,aq as et,bi as nt}from"./sendRawTransaction-Cnl8KhyZ.js";import{af as q,am as C,a7 as at,ax as rt,B as st,ad as M}from"./NetworkUtil-EoWQDMpU.js";import{P as S,w as A,Q as ot,c as ct}from"./W3MFrameProviderSingleton-D_hwynnp.js";const v=new Map,D=new Map;let it=0;function _(t,n,a){const e=++it,r=()=>v.get(t)||[],s=()=>{const l=r().filter(o=>o.id!==e);if(l.length===0){v.delete(t),D.delete(t);return}v.set(t,l)},f=()=>{const p=r();if(!p.some(o=>o.id===e))return;const l=D.get(t);if(p.length===1&&l){const o=l();o instanceof Promise&&o.catch(()=>{})}s()},b=r();if(v.set(t,[...b,{id:e,fns:n}]),b&&b.length>0)return f;const i={};for(const p in n)i[p]=((...l)=>{var c,u;const o=r();if(o.length!==0)for(const d of o)(u=(c=d.fns)[p])==null||u.call(c,...l)});const g=a(i);return typeof g=="function"&&D.set(t,g),f}function U(t,{emitOnBegin:n,initialWaitTime:a,interval:e}){let r=!0;const s=()=>r=!1;return(async()=>{let b;n&&(b=await t({unpoll:s}));const i=await(a==null?void 0:a(b))??e;await S(i);const g=async()=>{r&&(await t({unpoll:s}),await S(e),g())};g()})(),s}function ut(t,{method:n}){var e,r;const a={};return t.transport.type==="fallback"&&((r=(e=t.transport).onResponse)==null||r.call(e,({method:s,response:f,status:b,transport:i})=>{b==="success"&&n===s&&(a[f]=i.request)})),(s=>a[s]||t.request)}const lt=new Map,ft=new Map;function pt(t){const n=(r,s)=>({clear:()=>s.delete(r),get:()=>s.get(r),set:f=>s.set(r,f)}),a=n(t,lt),e=n(t,ft);return{clear:()=>{a.clear(),e.clear()},promise:a,response:e}}async function dt(t,{cacheKey:n,cacheTime:a=Number.POSITIVE_INFINITY}){const e=pt(n),r=e.response.get();if(r&&a>0&&Date.now()-r.created.getTime()<a)return r.data;let s=e.promise.get();s||(s=t(),e.promise.set(s));try{const f=await s;return e.response.set({created:new Date,data:f}),f}finally{e.promise.clear()}}const bt=t=>`blockNumber.${t}`;async function gt(t,{cacheTime:n=t.cacheTime}={}){const a=await dt(()=>t.request({method:"eth_blockNumber"}),{cacheKey:bt(t.uid),cacheTime:n});return BigInt(a)}async function mt(t,{filter:n}){const a="strict"in n&&n.strict,e=await n.request({method:"eth_getFilterChanges",params:[n.id]});if(typeof e[0]=="string")return e;const r=e.map(s=>z(s));return!("abi"in n)||!n.abi?r:G({abi:n.abi,logs:r,strict:a})}async function ht(t,{filter:n}){return n.request({method:"eth_uninstallFilter",params:[n.id]})}async function yt(t,{blockHash:n,blockNumber:a,blockTag:e,hash:r,index:s,sender:f,nonce:b}){var o,c,u;const i=e||"latest",g=a!==void 0?q(a):void 0;let p=null;if(r?p=await t.request({method:"eth_getTransactionByHash",params:[r]},{dedupe:!0}):n?p=await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[n,q(s)]},{dedupe:!0}):typeof s=="number"?p=await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[g||i,q(s)]},{dedupe:!!g}):f&&typeof b=="number"&&(p=await t.request({method:"eth_getTransactionBySenderAndNonce",params:[f,q(b)]},{dedupe:!0})),!p)throw new E({blockHash:n,blockNumber:a,blockTag:i,hash:r,index:s});return(((u=(c=(o=t.chain)==null?void 0:o.formatters)==null?void 0:c.transaction)==null?void 0:u.format)||Q)(p,"getTransaction")}async function O(t,{hash:n}){var r,s,f;const a=await t.request({method:"eth_getTransactionReceipt",params:[n]},{dedupe:!0});if(!a)throw new H({hash:n});return(((f=(s=(r=t.chain)==null?void 0:r.formatters)==null?void 0:s.transactionReceipt)==null?void 0:f.format)||Y)(a,"getTransactionReceipt")}function wt(t,{emitOnBegin:n=!1,emitMissed:a=!1,onBlockNumber:e,onError:r,poll:s,pollingInterval:f=t.pollingInterval}){const b=typeof s<"u"?s:!(t.transport.type==="webSocket"||t.transport.type==="ipc"||t.transport.type==="fallback"&&(t.transport.transports[0].config.type==="webSocket"||t.transport.transports[0].config.type==="ipc"));let i;return b?(()=>{const l=C(["watchBlockNumber",t.uid,n,a,f]);return _(l,{onBlockNumber:e,onError:r},o=>U(async()=>{var c;try{const u=await T(t,gt,"getBlockNumber")({cacheTime:0});if(i!==void 0){if(u===i)return;if(u-i>1&&a)for(let d=i+1n;d<u;d++)o.onBlockNumber(d,i),i=d}(i===void 0||u>i)&&(o.onBlockNumber(u,i),i=u)}catch(u){(c=o.onError)==null||c.call(o,u)}},{emitOnBegin:n,interval:f}))})():(()=>{const l=C(["watchBlockNumber",t.uid,n,a]);return _(l,{onBlockNumber:e,onError:r},o=>{let c=!0,u=()=>c=!1;return(async()=>{try{const d=(()=>{if(t.transport.type==="fallback"){const N=t.transport.transports.find(h=>h.config.type==="webSocket"||h.config.type==="ipc");return N?N.value:t.transport}return t.transport})(),{unsubscribe:w}=await d.subscribe({params:["newHeads"],onData(N){var I;if(!c)return;const h=at((I=N.result)==null?void 0:I.number);o.onBlockNumber(h,i),i=h},onError(N){var h;(h=o.onError)==null||h.call(o,N)}});u=w,c||u()}catch(d){r==null||r(d)}})(),()=>u()})})()}async function Rt(t,n){const{checkReplacement:a=!0,confirmations:e=1,hash:r,onReplaced:s,retryCount:f=6,retryDelay:b=({count:m})=>~~(1<<m)*200,timeout:i=18e4}=n,g=C(["waitForTransactionReceipt",t.uid,r]),p=(()=>{var m;return n.pollingInterval?n.pollingInterval:(m=t.chain)!=null&&m.experimental_preconfirmationTime?t.chain.experimental_preconfirmationTime:t.pollingInterval})();let l,o,c,u=!1,d,w;const{promise:N,resolve:h,reject:I}=rt(),F=i?setTimeout(()=>{w==null||w(),d==null||d(),I(new J({hash:r}))},i):void 0;return d=_(g,{onReplaced:s,resolve:h,reject:I},async m=>{if(c=await T(t,O,"getTransactionReceipt")({hash:r}).catch(()=>{}),c&&e<=1){clearTimeout(F),m.resolve(c),d==null||d();return}w=T(t,wt,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber($){const B=k=>{clearTimeout(F),w==null||w(),k(),d==null||d()};let R=$;if(!u)try{if(c){if(e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c));return}if(a&&!l&&(u=!0,await A(async()=>{l=await T(t,yt,"getTransaction")({hash:r}),l.blockNumber&&(R=l.blockNumber)},{delay:b,retryCount:f}),u=!1),c=await T(t,O,"getTransactionReceipt")({hash:r}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c))}catch(k){if(k instanceof E||k instanceof H){if(!l){u=!1;return}try{o=l,u=!0;const P=await A(()=>T(t,W,"getBlock")({blockNumber:R,includeTransactions:!0}),{delay:b,retryCount:f,shouldRetry:({error:x})=>x instanceof X});u=!1;const y=P.transactions.find(({from:x,nonce:V})=>x===o.from&&V===o.nonce);if(!y||(c=await T(t,O,"getTransactionReceipt")({hash:y.hash}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e)))return;let j="replaced";y.to===o.to&&y.value===o.value&&y.input===o.input?j="repriced":y.from===y.to&&y.value===0n&&(j="cancelled"),B(()=>{var x;(x=m.onReplaced)==null||x.call(m,{reason:j,replacedTransaction:o,transaction:y,transactionReceipt:c}),m.resolve(c)})}catch(P){B(()=>m.reject(P))}}else B(()=>m.reject(k))}}})}),N}class kt extends st{constructor({value:n}){super(`Number \`${n}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Pt(t,n){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new kt({value:t});let[a,e="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),e=e.replace(/(0+)$/,""),n===0)Math.round(+`.${e}`)===1&&(a=`${BigInt(a)+1n}`),e="";else if(e.length>n){const[s,f,b]=[e.slice(0,n-1),e.slice(n-1,n),e.slice(n)],i=Math.round(+`${f}.${b}`);i>9?e=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):e=`${s}${i}`,e.length>n&&(e=e.slice(1),a=`${BigInt(a)+1n}`),e=e.slice(0,n)}else e=e.padEnd(n,"0");return BigInt(`${r?"-":""}${a}${e}`)}function xt(t){const{batch:n,chain:a,ccipRead:e,dataSuffix:r,key:s="base",name:f="Base Client",tokens:b,type:i="base"}=t,g=t.experimental_blockTag??(typeof(a==null?void 0:a.experimental_preconfirmationTime)=="number"?"pending":void 0),p=(a==null?void 0:a.blockTime)??12e3,l=Math.min(Math.max(Math.floor(p/2),500),4e3),o=t.pollingInterval??l,c=t.cacheTime??o,u=t.account?Z(t.account):void 0,{config:d,request:w,value:N}=t.transport({account:u,chain:a,pollingInterval:o}),h={...d,...N},I={account:u,batch:n,cacheTime:c,ccipRead:e,chain:a,dataSuffix:r,key:s,name:f,pollingInterval:o,request:w,tokens:b,transport:h,type:i,uid:ot(),...g?{experimental_blockTag:g}:{}};function F(m){return $=>{const B=$(m);for(const k in I)delete B[k];const R={...m,...B};for(const k in B){const P=m[k],y=B[k];L(P)&&L(y)&&(R[k]={...P,...y})}return Object.assign(R,{extend:F(R)})}}return Object.assign(I,{extend:F(I)})}function L(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}function Ft(t,n){const a=(e={})=>n(t,e);for(const e of["call","calls","callWithPeriod","estimateGas","simulate"])if(Object.hasOwn(n,e)){const r=n[e];a[e]=(s={})=>r.length>=2?r(t,s):r.length===0?r():r(s)}for(const e of["extractEvent","extractEvents"])Object.hasOwn(n,e)&&(a[e]=n[e]);return a}async function Tt(t){const n=ut(t,{method:"eth_newPendingTransactionFilter"}),a=await t.request({method:"eth_newPendingTransactionFilter"});return{id:a,request:n(a),type:"transaction"}}async function qt(t,{address:n,blockHash:a,blockNumber:e,blockTag:r=t.experimental_blockTag??"latest",requireCanonical:s}){var i,g,p;const f=K({blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});if((i=t.batch)!=null&&i.multicall&&((p=(g=t.chain)==null?void 0:g.contracts)!=null&&p.multicall3)){const l=t.chain.contracts.multicall3.address,o=tt({abi:M,functionName:"getEthBalance",args:[n]}),{data:c}=await T(t,nt,"call")({to:l,data:o,blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});return et({abi:M,functionName:"getEthBalance",args:[n],data:c||"0x"})}const b=await t.request({method:"eth_getBalance",params:[n,f]});return BigInt(b)}function vt(t,{batch:n=!0,onError:a,onTransactions:e,poll:r,pollingInterval:s=t.pollingInterval}){return(typeof r<"u"?r:t.transport.type!=="webSocket"&&t.transport.type!=="ipc")?(()=>{const g=C(["watchPendingTransactions",t.uid,n,s]);return _(g,{onTransactions:e,onError:a},p=>{let l;const o=U(async()=>{var c;try{if(!l)try{l=await T(t,Tt,"createPendingTransactionFilter")({});return}catch(d){throw o(),d}const u=await T(t,mt,"getFilterChanges")({filter:l});if(u.length===0)return;if(n)p.onTransactions(u);else for(const d of u)p.onTransactions([d])}catch(u){(c=p.onError)==null||c.call(p,u)}},{emitOnBegin:!0,interval:s});return async()=>{l&&await T(t,ht,"uninstallFilter")({filter:l}),o()}})})():(()=>{let g=!0,p=()=>g=!1;return(async()=>{try{const{unsubscribe:l}=await t.transport.subscribe({params:["newPendingTransactions"],onData(o){if(!g)return;const c=o.result;e([c])},onError(o){a==null||a(o)}});p=l,g||p()}catch(l){a==null||a(l)}})(),()=>p()})()}function Ct(t,n={}){const{key:a="custom",methods:e,name:r="Custom Provider",retryDelay:s}=n;return({retryCount:f})=>ct({key:a,methods:e,name:r,request:t.request.bind(t),retryCount:n.retryCount??f,retryDelay:s,type:"custom"})}export{kt as I,Ct as a,Rt as b,xt as c,yt as d,vt as e,U as f,qt as g,ut as h,mt as i,gt as j,wt as k,O as l,Tt as m,Ft as n,_ as o,Pt as p,ht as u,dt as w};
1
+ import{aD as z,aV as G,a3 as E,aE as Q,a4 as H,aF as Y,b9 as T,a8 as J,bT as W,q as X,bh as Z,bU as K,az as tt,aq as et,bi as nt}from"./sendRawTransaction-CdbKO36d.js";import{af as q,am as C,a7 as at,ax as rt,B as st,ad as M}from"./NetworkUtil-EoWQDMpU.js";import{P as S,w as A,Q as ot,c as ct}from"./W3MFrameProviderSingleton-hR4mAmko.js";const v=new Map,D=new Map;let it=0;function _(t,n,a){const e=++it,r=()=>v.get(t)||[],s=()=>{const l=r().filter(o=>o.id!==e);if(l.length===0){v.delete(t),D.delete(t);return}v.set(t,l)},f=()=>{const p=r();if(!p.some(o=>o.id===e))return;const l=D.get(t);if(p.length===1&&l){const o=l();o instanceof Promise&&o.catch(()=>{})}s()},b=r();if(v.set(t,[...b,{id:e,fns:n}]),b&&b.length>0)return f;const i={};for(const p in n)i[p]=((...l)=>{var c,u;const o=r();if(o.length!==0)for(const d of o)(u=(c=d.fns)[p])==null||u.call(c,...l)});const g=a(i);return typeof g=="function"&&D.set(t,g),f}function U(t,{emitOnBegin:n,initialWaitTime:a,interval:e}){let r=!0;const s=()=>r=!1;return(async()=>{let b;n&&(b=await t({unpoll:s}));const i=await(a==null?void 0:a(b))??e;await S(i);const g=async()=>{r&&(await t({unpoll:s}),await S(e),g())};g()})(),s}function ut(t,{method:n}){var e,r;const a={};return t.transport.type==="fallback"&&((r=(e=t.transport).onResponse)==null||r.call(e,({method:s,response:f,status:b,transport:i})=>{b==="success"&&n===s&&(a[f]=i.request)})),(s=>a[s]||t.request)}const lt=new Map,ft=new Map;function pt(t){const n=(r,s)=>({clear:()=>s.delete(r),get:()=>s.get(r),set:f=>s.set(r,f)}),a=n(t,lt),e=n(t,ft);return{clear:()=>{a.clear(),e.clear()},promise:a,response:e}}async function dt(t,{cacheKey:n,cacheTime:a=Number.POSITIVE_INFINITY}){const e=pt(n),r=e.response.get();if(r&&a>0&&Date.now()-r.created.getTime()<a)return r.data;let s=e.promise.get();s||(s=t(),e.promise.set(s));try{const f=await s;return e.response.set({created:new Date,data:f}),f}finally{e.promise.clear()}}const bt=t=>`blockNumber.${t}`;async function gt(t,{cacheTime:n=t.cacheTime}={}){const a=await dt(()=>t.request({method:"eth_blockNumber"}),{cacheKey:bt(t.uid),cacheTime:n});return BigInt(a)}async function mt(t,{filter:n}){const a="strict"in n&&n.strict,e=await n.request({method:"eth_getFilterChanges",params:[n.id]});if(typeof e[0]=="string")return e;const r=e.map(s=>z(s));return!("abi"in n)||!n.abi?r:G({abi:n.abi,logs:r,strict:a})}async function ht(t,{filter:n}){return n.request({method:"eth_uninstallFilter",params:[n.id]})}async function yt(t,{blockHash:n,blockNumber:a,blockTag:e,hash:r,index:s,sender:f,nonce:b}){var o,c,u;const i=e||"latest",g=a!==void 0?q(a):void 0;let p=null;if(r?p=await t.request({method:"eth_getTransactionByHash",params:[r]},{dedupe:!0}):n?p=await t.request({method:"eth_getTransactionByBlockHashAndIndex",params:[n,q(s)]},{dedupe:!0}):typeof s=="number"?p=await t.request({method:"eth_getTransactionByBlockNumberAndIndex",params:[g||i,q(s)]},{dedupe:!!g}):f&&typeof b=="number"&&(p=await t.request({method:"eth_getTransactionBySenderAndNonce",params:[f,q(b)]},{dedupe:!0})),!p)throw new E({blockHash:n,blockNumber:a,blockTag:i,hash:r,index:s});return(((u=(c=(o=t.chain)==null?void 0:o.formatters)==null?void 0:c.transaction)==null?void 0:u.format)||Q)(p,"getTransaction")}async function O(t,{hash:n}){var r,s,f;const a=await t.request({method:"eth_getTransactionReceipt",params:[n]},{dedupe:!0});if(!a)throw new H({hash:n});return(((f=(s=(r=t.chain)==null?void 0:r.formatters)==null?void 0:s.transactionReceipt)==null?void 0:f.format)||Y)(a,"getTransactionReceipt")}function wt(t,{emitOnBegin:n=!1,emitMissed:a=!1,onBlockNumber:e,onError:r,poll:s,pollingInterval:f=t.pollingInterval}){const b=typeof s<"u"?s:!(t.transport.type==="webSocket"||t.transport.type==="ipc"||t.transport.type==="fallback"&&(t.transport.transports[0].config.type==="webSocket"||t.transport.transports[0].config.type==="ipc"));let i;return b?(()=>{const l=C(["watchBlockNumber",t.uid,n,a,f]);return _(l,{onBlockNumber:e,onError:r},o=>U(async()=>{var c;try{const u=await T(t,gt,"getBlockNumber")({cacheTime:0});if(i!==void 0){if(u===i)return;if(u-i>1&&a)for(let d=i+1n;d<u;d++)o.onBlockNumber(d,i),i=d}(i===void 0||u>i)&&(o.onBlockNumber(u,i),i=u)}catch(u){(c=o.onError)==null||c.call(o,u)}},{emitOnBegin:n,interval:f}))})():(()=>{const l=C(["watchBlockNumber",t.uid,n,a]);return _(l,{onBlockNumber:e,onError:r},o=>{let c=!0,u=()=>c=!1;return(async()=>{try{const d=(()=>{if(t.transport.type==="fallback"){const N=t.transport.transports.find(h=>h.config.type==="webSocket"||h.config.type==="ipc");return N?N.value:t.transport}return t.transport})(),{unsubscribe:w}=await d.subscribe({params:["newHeads"],onData(N){var I;if(!c)return;const h=at((I=N.result)==null?void 0:I.number);o.onBlockNumber(h,i),i=h},onError(N){var h;(h=o.onError)==null||h.call(o,N)}});u=w,c||u()}catch(d){r==null||r(d)}})(),()=>u()})})()}async function Rt(t,n){const{checkReplacement:a=!0,confirmations:e=1,hash:r,onReplaced:s,retryCount:f=6,retryDelay:b=({count:m})=>~~(1<<m)*200,timeout:i=18e4}=n,g=C(["waitForTransactionReceipt",t.uid,r]),p=(()=>{var m;return n.pollingInterval?n.pollingInterval:(m=t.chain)!=null&&m.experimental_preconfirmationTime?t.chain.experimental_preconfirmationTime:t.pollingInterval})();let l,o,c,u=!1,d,w;const{promise:N,resolve:h,reject:I}=rt(),F=i?setTimeout(()=>{w==null||w(),d==null||d(),I(new J({hash:r}))},i):void 0;return d=_(g,{onReplaced:s,resolve:h,reject:I},async m=>{if(c=await T(t,O,"getTransactionReceipt")({hash:r}).catch(()=>{}),c&&e<=1){clearTimeout(F),m.resolve(c),d==null||d();return}w=T(t,wt,"watchBlockNumber")({emitMissed:!0,emitOnBegin:!0,poll:!0,pollingInterval:p,async onBlockNumber($){const B=k=>{clearTimeout(F),w==null||w(),k(),d==null||d()};let R=$;if(!u)try{if(c){if(e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c));return}if(a&&!l&&(u=!0,await A(async()=>{l=await T(t,yt,"getTransaction")({hash:r}),l.blockNumber&&(R=l.blockNumber)},{delay:b,retryCount:f}),u=!1),c=await T(t,O,"getTransactionReceipt")({hash:r}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e))return;B(()=>m.resolve(c))}catch(k){if(k instanceof E||k instanceof H){if(!l){u=!1;return}try{o=l,u=!0;const P=await A(()=>T(t,W,"getBlock")({blockNumber:R,includeTransactions:!0}),{delay:b,retryCount:f,shouldRetry:({error:x})=>x instanceof X});u=!1;const y=P.transactions.find(({from:x,nonce:V})=>x===o.from&&V===o.nonce);if(!y||(c=await T(t,O,"getTransactionReceipt")({hash:y.hash}),e>1&&(!c.blockNumber||R-c.blockNumber+1n<e)))return;let j="replaced";y.to===o.to&&y.value===o.value&&y.input===o.input?j="repriced":y.from===y.to&&y.value===0n&&(j="cancelled"),B(()=>{var x;(x=m.onReplaced)==null||x.call(m,{reason:j,replacedTransaction:o,transaction:y,transactionReceipt:c}),m.resolve(c)})}catch(P){B(()=>m.reject(P))}}else B(()=>m.reject(k))}}})}),N}class kt extends st{constructor({value:n}){super(`Number \`${n}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Pt(t,n){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new kt({value:t});let[a,e="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),e=e.replace(/(0+)$/,""),n===0)Math.round(+`.${e}`)===1&&(a=`${BigInt(a)+1n}`),e="";else if(e.length>n){const[s,f,b]=[e.slice(0,n-1),e.slice(n-1,n),e.slice(n)],i=Math.round(+`${f}.${b}`);i>9?e=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):e=`${s}${i}`,e.length>n&&(e=e.slice(1),a=`${BigInt(a)+1n}`),e=e.slice(0,n)}else e=e.padEnd(n,"0");return BigInt(`${r?"-":""}${a}${e}`)}function xt(t){const{batch:n,chain:a,ccipRead:e,dataSuffix:r,key:s="base",name:f="Base Client",tokens:b,type:i="base"}=t,g=t.experimental_blockTag??(typeof(a==null?void 0:a.experimental_preconfirmationTime)=="number"?"pending":void 0),p=(a==null?void 0:a.blockTime)??12e3,l=Math.min(Math.max(Math.floor(p/2),500),4e3),o=t.pollingInterval??l,c=t.cacheTime??o,u=t.account?Z(t.account):void 0,{config:d,request:w,value:N}=t.transport({account:u,chain:a,pollingInterval:o}),h={...d,...N},I={account:u,batch:n,cacheTime:c,ccipRead:e,chain:a,dataSuffix:r,key:s,name:f,pollingInterval:o,request:w,tokens:b,transport:h,type:i,uid:ot(),...g?{experimental_blockTag:g}:{}};function F(m){return $=>{const B=$(m);for(const k in I)delete B[k];const R={...m,...B};for(const k in B){const P=m[k],y=B[k];L(P)&&L(y)&&(R[k]={...P,...y})}return Object.assign(R,{extend:F(R)})}}return Object.assign(I,{extend:F(I)})}function L(t){if(typeof t!="object"||t===null)return!1;const n=Object.getPrototypeOf(t);return n===Object.prototype||n===null}function Ft(t,n){const a=(e={})=>n(t,e);for(const e of["call","calls","callWithPeriod","estimateGas","simulate"])if(Object.hasOwn(n,e)){const r=n[e];a[e]=(s={})=>r.length>=2?r(t,s):r.length===0?r():r(s)}for(const e of["extractEvent","extractEvents"])Object.hasOwn(n,e)&&(a[e]=n[e]);return a}async function Tt(t){const n=ut(t,{method:"eth_newPendingTransactionFilter"}),a=await t.request({method:"eth_newPendingTransactionFilter"});return{id:a,request:n(a),type:"transaction"}}async function qt(t,{address:n,blockHash:a,blockNumber:e,blockTag:r=t.experimental_blockTag??"latest",requireCanonical:s}){var i,g,p;const f=K({blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});if((i=t.batch)!=null&&i.multicall&&((p=(g=t.chain)==null?void 0:g.contracts)!=null&&p.multicall3)){const l=t.chain.contracts.multicall3.address,o=tt({abi:M,functionName:"getEthBalance",args:[n]}),{data:c}=await T(t,nt,"call")({to:l,data:o,blockHash:a,blockNumber:e,blockTag:r,requireCanonical:s});return et({abi:M,functionName:"getEthBalance",args:[n],data:c||"0x"})}const b=await t.request({method:"eth_getBalance",params:[n,f]});return BigInt(b)}function vt(t,{batch:n=!0,onError:a,onTransactions:e,poll:r,pollingInterval:s=t.pollingInterval}){return(typeof r<"u"?r:t.transport.type!=="webSocket"&&t.transport.type!=="ipc")?(()=>{const g=C(["watchPendingTransactions",t.uid,n,s]);return _(g,{onTransactions:e,onError:a},p=>{let l;const o=U(async()=>{var c;try{if(!l)try{l=await T(t,Tt,"createPendingTransactionFilter")({});return}catch(d){throw o(),d}const u=await T(t,mt,"getFilterChanges")({filter:l});if(u.length===0)return;if(n)p.onTransactions(u);else for(const d of u)p.onTransactions([d])}catch(u){(c=p.onError)==null||c.call(p,u)}},{emitOnBegin:!0,interval:s});return async()=>{l&&await T(t,ht,"uninstallFilter")({filter:l}),o()}})})():(()=>{let g=!0,p=()=>g=!1;return(async()=>{try{const{unsubscribe:l}=await t.transport.subscribe({params:["newPendingTransactions"],onData(o){if(!g)return;const c=o.result;e([c])},onError(o){a==null||a(o)}});p=l,g||p()}catch(l){a==null||a(l)}})(),()=>p()})()}function Ct(t,n={}){const{key:a="custom",methods:e,name:r="Custom Provider",retryDelay:s}=n;return({retryCount:f})=>ct({key:a,methods:e,name:r,request:t.request.bind(t),retryCount:n.retryCount??f,retryDelay:s,type:"custom"})}export{kt as I,Ct as a,Rt as b,xt as c,yt as d,vt as e,U as f,qt as g,ut as h,mt as i,gt as j,wt as k,O as l,Tt as m,Ft as n,_ as o,Pt as p,ht as u,dt as w};
@@ -1,4 +1,4 @@
1
- import{a as y,i as $,b as l}from"./lit-element-B3y9oplH.js";import{n as S,r as u}from"./class-map-CxwNmq0D.js";import"./index-CMFFdWaD.js";import{c as x,U as _}from"./index-cPbHgYyr.js";import{W as E}from"./index-LuVJpw9c.js";import{O as m,R as p,C as f,S as h,v as C,x as R}from"./W3MFrameProviderSingleton-D_hwynnp.js";import{ReownAuthentication as v}from"./features-1-FLWkh7.js";import"./index-DvGpQtXK.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./index-Bfbnmm19.js";import"./events-DQ172AOg.js";import"./index-Dcv3uBNj.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-DR68c_Xf.js";import"./index.es-DUY_zrrQ.js";import"./browser-ponyfill-I5CKtKME.js";import"./NetworkUtil-EoWQDMpU.js";import"./index-Iv9CW07E.js";import"./index-Zvh0r5Lt.js";const D=y`
1
+ import{a as y,i as $,b as l}from"./lit-element-B3y9oplH.js";import{n as S,r as u}from"./class-map-CxwNmq0D.js";import"./index-DDiCv4U4.js";import{c as x,U as _}from"./index-Cxw303yv.js";import{W as E}from"./index-D9xYIYaf.js";import{O as m,R as p,C as f,S as h,v as C,x as R}from"./W3MFrameProviderSingleton-hR4mAmko.js";import{ReownAuthentication as v}from"./features-BkFSf-iq.js";import"./index-B1DCMe50.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./index-CVQ8oHkh.js";import"./events-DQ172AOg.js";import"./index-I2lMQseb.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-DInQ5jG-.js";import"./index.es-EFLDV9YI.js";import"./browser-ponyfill-I5CKtKME.js";import"./NetworkUtil-EoWQDMpU.js";import"./index-CzYiATyr.js";import"./index-Dl0ZUNWk.js";const D=y`
2
2
  .email-sufixes {
3
3
  display: flex;
4
4
  flex-direction: row;
@@ -1,4 +1,4 @@
1
- import{d as S}from"./index-CMFFdWaD.js";import{c as d}from"./index-cPbHgYyr.js";import{W as C}from"./index-LuVJpw9c.js";import{C as D,k as g,O as h,E as c,M as _,R as s,S as f,b,o as m,y as $}from"./W3MFrameProviderSingleton-D_hwynnp.js";import{i as y,b as u,a as W}from"./lit-element-B3y9oplH.js";import{r as E}from"./class-map-CxwNmq0D.js";import"./index-C7mQXKdO.js";import"./index-Iv9CW07E.js";import{e as P,n as N}from"./ref-BsAZ42-h.js";import"./index-C2gCqG5-.js";import"./index-CaO4BbgL.js";import{au as T}from"./NetworkUtil-EoWQDMpU.js";import"./index-DvGpQtXK.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./index-Bfbnmm19.js";import"./events-DQ172AOg.js";import"./index-Dcv3uBNj.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-DR68c_Xf.js";import"./index.es-DUY_zrrQ.js";import"./browser-ponyfill-I5CKtKME.js";import"./index-Zvh0r5Lt.js";import"./async-directive-BRxn_Py3.js";import"./index-Cgl5oOLN.js";var F=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(i=(n<3?a(i):n>3?a(e,t,i):a(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i};let I=class extends C{constructor(){super(...arguments),this.onOtpSubmit=async e=>{var t,r;try{if(this.authConnector){const n=D.state.activeChain,i=g.getConnections(n),a=(t=h.state.remoteFeatures)==null?void 0:t.multiWallet,l=i.length>0;if(await this.authConnector.provider.connectOtp({otp:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),n)await g.connectExternal(this.authConnector,n);else throw new Error("Active chain is not set on ChainController");if((r=h.state.remoteFeatures)!=null&&r.emailCapture)return;if(h.state.siwx){_.close();return}if(l&&a){s.replace("ProfileWallets"),f.showSuccess("New Wallet Added");return}_.close()}}catch(n){throw c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:b.parseError(n)}}),n}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};I=F([d("w3m-email-verify-otp-view")],I);const U=S`
1
+ import{d as S}from"./index-DDiCv4U4.js";import{c as d}from"./index-Cxw303yv.js";import{W as C}from"./index-D9xYIYaf.js";import{C as D,k as g,O as h,E as c,M as _,R as s,S as f,b,o as m,y as $}from"./W3MFrameProviderSingleton-hR4mAmko.js";import{i as y,b as u,a as W}from"./lit-element-B3y9oplH.js";import{r as E}from"./class-map-CxwNmq0D.js";import"./index-CqVxBPGc.js";import"./index-CzYiATyr.js";import{e as P,n as N}from"./ref-BsAZ42-h.js";import"./index-B0ryoW8w.js";import"./index-CKac0RNB.js";import{au as T}from"./NetworkUtil-EoWQDMpU.js";import"./index-B1DCMe50.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./index-CVQ8oHkh.js";import"./events-DQ172AOg.js";import"./index-I2lMQseb.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-DInQ5jG-.js";import"./index.es-EFLDV9YI.js";import"./browser-ponyfill-I5CKtKME.js";import"./index-Dl0ZUNWk.js";import"./async-directive-BRxn_Py3.js";import"./index-B4M8sJUj.js";var F=function(o,e,t,r){var n=arguments.length,i=n<3?e:r===null?r=Object.getOwnPropertyDescriptor(e,t):r,a;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")i=Reflect.decorate(o,e,t,r);else for(var l=o.length-1;l>=0;l--)(a=o[l])&&(i=(n<3?a(i):n>3?a(e,t,i):a(e,t))||i);return n>3&&i&&Object.defineProperty(e,t,i),i};let I=class extends C{constructor(){super(...arguments),this.onOtpSubmit=async e=>{var t,r;try{if(this.authConnector){const n=D.state.activeChain,i=g.getConnections(n),a=(t=h.state.remoteFeatures)==null?void 0:t.multiWallet,l=i.length>0;if(await this.authConnector.provider.connectOtp({otp:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_PASS"}),n)await g.connectExternal(this.authConnector,n);else throw new Error("Active chain is not set on ChainController");if((r=h.state.remoteFeatures)!=null&&r.emailCapture)return;if(h.state.siwx){_.close();return}if(l&&a){s.replace("ProfileWallets"),f.showSuccess("New Wallet Added");return}_.close()}}catch(n){throw c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_FAIL",properties:{message:b.parseError(n)}}),n}},this.onOtpResend=async e=>{this.authConnector&&(await this.authConnector.provider.connectEmail({email:e}),c.sendEvent({type:"track",event:"EMAIL_VERIFICATION_CODE_SENT"}))}}};I=F([d("w3m-email-verify-otp-view")],I);const U=S`
2
2
  wui-icon-box {
3
3
  height: ${({spacing:o})=>o[16]};
4
4
  width: ${({spacing:o})=>o[16]};
@@ -1,4 +1,4 @@
1
- import{a as Y,i as g,b as c}from"./lit-element-B3y9oplH.js";import{r as d,n as l,o as K}from"./class-map-CxwNmq0D.js";import{d as E,r as z,e as B}from"./index-CMFFdWaD.js";import{c as w}from"./index-cPbHgYyr.js";import{M as W,O as G,o as _,T as j,H as L,d as N,C as m,I as V,l as C,W as h,k as q,J as X,K as v,b as k,E as O,S as J,R as Q}from"./W3MFrameProviderSingleton-D_hwynnp.js";import"./index-DPQIOv9u.js";import{au as D}from"./NetworkUtil-EoWQDMpU.js";import{e as Z,n as ee}from"./ref-BsAZ42-h.js";import"./index-Zvh0r5Lt.js";import{H as I}from"./HelpersUtil-Des1BKsb.js";import"./index-Cgl5oOLN.js";import"./index-CKY-zq6_.js";import"./index-C2gCqG5-.js";import"./index-C7mQXKdO.js";import"./index-Iv9CW07E.js";import{N as te}from"./NavigationUtil-DmfK5sOV.js";import"./index-DvGpQtXK.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./index-Bfbnmm19.js";import"./events-DQ172AOg.js";import"./index-Dcv3uBNj.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-DR68c_Xf.js";import"./index.es-DUY_zrrQ.js";import"./browser-ponyfill-I5CKtKME.js";import"./async-directive-BRxn_Py3.js";import"./ConstantsUtil-Di3dRDAF.js";const ie=Y`
1
+ import{a as Y,i as g,b as c}from"./lit-element-B3y9oplH.js";import{r as d,n as l,o as K}from"./class-map-CxwNmq0D.js";import{d as E,r as z,e as B}from"./index-DDiCv4U4.js";import{c as w}from"./index-Cxw303yv.js";import{M as W,O as G,o as _,T as j,H as L,d as N,C as m,I as V,l as C,W as h,k as q,J as X,K as v,b as k,E as O,S as J,R as Q}from"./W3MFrameProviderSingleton-hR4mAmko.js";import"./index-CvxViQFA.js";import{au as D}from"./NetworkUtil-EoWQDMpU.js";import{e as Z,n as ee}from"./ref-BsAZ42-h.js";import"./index-Dl0ZUNWk.js";import{H as I}from"./HelpersUtil-Bvk_vk1Y.js";import"./index-B4M8sJUj.js";import"./index-DyxpPyVg.js";import"./index-B0ryoW8w.js";import"./index-CqVxBPGc.js";import"./index-CzYiATyr.js";import{N as te}from"./NavigationUtil-DmfK5sOV.js";import"./index-B1DCMe50.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./index-CVQ8oHkh.js";import"./events-DQ172AOg.js";import"./index-I2lMQseb.js";import"./index-DI-3MKLG.js";import"./index-nibyPLVP.js";import"./index-DInQ5jG-.js";import"./index.es-EFLDV9YI.js";import"./browser-ponyfill-I5CKtKME.js";import"./async-directive-BRxn_Py3.js";import"./ConstantsUtil-Di3dRDAF.js";const ie=Y`
2
2
  div {
3
3
  width: 100%;
4
4
  }
@@ -1 +1 @@
1
- import{ab as k,ac as A,ad as $,ae as P,aY as O,aZ as B,a_ as M,a$ as U,b0 as D,b1 as V,b2 as q,b3 as G}from"./index-DvGpQtXK.js";import{r as y,j as N}from"./react-DehiWSvs.js";import{g as L,a as W,c as Y,b as Z}from"./clsx-WwvpwSg0.js";import{s as H}from"./styled-CvsbVgfF.js";function J(o){return L("MuiSvgIcon",o)}W("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const K=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Q=o=>{const{color:e,fontSize:r,classes:a}=o,t={root:["root",e!=="inherit"&&`color${P(e)}`,`fontSize${P(r)}`]};return Z(t,J,a)},X=H("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.color!=="inherit"&&e[`color${P(r.color)}`],e[`fontSize${P(r.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var r,a,t,l,d,m,g,f,u,i,p,h,c;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(a=r.create)==null?void 0:a.call(r,"fill",{duration:(t=o.transitions)==null||(t=t.duration)==null?void 0:t.shorter}),fontSize:{inherit:"inherit",small:((l=o.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,20))||"1.25rem",medium:((m=o.typography)==null||(g=m.pxToRem)==null?void 0:g.call(m,24))||"1.5rem",large:((f=o.typography)==null||(u=f.pxToRem)==null?void 0:u.call(f,35))||"2.1875rem"}[e.fontSize],color:(i=(p=(o.vars||o).palette)==null||(p=p[e.color])==null?void 0:p.main)!=null?i:{action:(h=(o.vars||o).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.disabled,inherit:void 0}[e.color]}}),ee=y.forwardRef(function(e,r){const a=k({props:e,name:"MuiSvgIcon"}),{children:t,className:l,color:d="inherit",component:m="svg",fontSize:g="medium",htmlColor:f,inheritViewBox:u=!1,titleAccess:i,viewBox:p="0 0 24 24"}=a,h=A(a,K),c=y.isValidElement(t)&&t.type==="svg",s=$({},a,{color:d,component:m,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:c}),n={};u||(n.viewBox=p);const v=Q(s);return N.jsxs(X,$({as:m,className:Y(v.root,l),focusable:"false",color:f,"aria-hidden":i?void 0:!0,role:i?"img":void 0,ref:r},n,h,c&&t.props,{ownerState:s,children:[c?t.props.children:t,i?N.jsx("title",{children:i}):null]}))});ee.muiName="SvgIcon";var te=O,oe=function(e){return e!=="theme"},T=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?te:oe},E=function(e,r,a){var t;if(r){var l=r.shouldForwardProp;t=e.__emotion_forwardProp&&l?function(d){return e.__emotion_forwardProp(d)&&l(d)}:l}return typeof t!="function"&&a&&(t=e.__emotion_forwardProp),t},re=function(e){var r=e.cache,a=e.serialized,t=e.isStringTag;return V(r,a,t),q(function(){return G(r,a,t)}),null},ae=function o(e,r){var a=e.__emotion_real===e,t=a&&e.__emotion_base||e,l,d;r!==void 0&&(l=r.label,d=r.target);var m=E(e,r,a),g=m||T(t),f=!g("as");return function(){var u=arguments,i=a&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(l!==void 0&&i.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)i.push.apply(i,u);else{var p=u[0];i.push(p[0]);for(var h=u.length,c=1;c<h;c++)i.push(u[c],p[c])}var s=B(function(n,v,_){var z=f&&n.as||t,S="",C=[],b=n;if(n.theme==null){b={};for(var I in n)b[I]=n[I];b.theme=y.useContext(M)}typeof n.className=="string"?S=U(v.registered,C,n.className):n.className!=null&&(S=n.className+" ");var F=D(i.concat(C),v.registered,b);S+=v.key+"-"+F.name,d!==void 0&&(S+=" "+d);var j=f&&m===void 0?T(z):g,w={};for(var x in n)f&&x==="as"||j(x)&&(w[x]=n[x]);return w.className=S,_&&(w.ref=_),y.createElement(y.Fragment,null,y.createElement(re,{cache:v,serialized:F,isStringTag:typeof z=="string"}),y.createElement(z,w))});return s.displayName=l!==void 0?l:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",s.defaultProps=e.defaultProps,s.__emotion_real=s,s.__emotion_base=t,s.__emotion_styles=i,s.__emotion_forwardProp=m,Object.defineProperty(s,"toString",{value:function(){return"."+d}}),s.withComponent=function(n,v){var _=o(n,$({},r,v,{shouldForwardProp:E(s,v,!0)}));return _.apply(void 0,i)},s}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],R=ae.bind(null);ne.forEach(function(o){R[o]=R(o)});export{ee as S,R as n};
1
+ import{ab as k,ac as A,ad as $,ae as P,aY as O,aZ as B,a_ as M,a$ as U,b0 as D,b1 as V,b2 as q,b3 as G}from"./index-B1DCMe50.js";import{r as y,j as N}from"./react-DehiWSvs.js";import{g as L,a as W,c as Y,b as Z}from"./clsx-WwvpwSg0.js";import{s as H}from"./styled-CjUv0U3K.js";function J(o){return L("MuiSvgIcon",o)}W("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const K=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],Q=o=>{const{color:e,fontSize:r,classes:a}=o,t={root:["root",e!=="inherit"&&`color${P(e)}`,`fontSize${P(r)}`]};return Z(t,J,a)},X=H("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(o,e)=>{const{ownerState:r}=o;return[e.root,r.color!=="inherit"&&e[`color${P(r.color)}`],e[`fontSize${P(r.fontSize)}`]]}})(({theme:o,ownerState:e})=>{var r,a,t,l,d,m,g,f,u,i,p,h,c;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:e.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(r=o.transitions)==null||(a=r.create)==null?void 0:a.call(r,"fill",{duration:(t=o.transitions)==null||(t=t.duration)==null?void 0:t.shorter}),fontSize:{inherit:"inherit",small:((l=o.typography)==null||(d=l.pxToRem)==null?void 0:d.call(l,20))||"1.25rem",medium:((m=o.typography)==null||(g=m.pxToRem)==null?void 0:g.call(m,24))||"1.5rem",large:((f=o.typography)==null||(u=f.pxToRem)==null?void 0:u.call(f,35))||"2.1875rem"}[e.fontSize],color:(i=(p=(o.vars||o).palette)==null||(p=p[e.color])==null?void 0:p.main)!=null?i:{action:(h=(o.vars||o).palette)==null||(h=h.action)==null?void 0:h.active,disabled:(c=(o.vars||o).palette)==null||(c=c.action)==null?void 0:c.disabled,inherit:void 0}[e.color]}}),ee=y.forwardRef(function(e,r){const a=k({props:e,name:"MuiSvgIcon"}),{children:t,className:l,color:d="inherit",component:m="svg",fontSize:g="medium",htmlColor:f,inheritViewBox:u=!1,titleAccess:i,viewBox:p="0 0 24 24"}=a,h=A(a,K),c=y.isValidElement(t)&&t.type==="svg",s=$({},a,{color:d,component:m,fontSize:g,instanceFontSize:e.fontSize,inheritViewBox:u,viewBox:p,hasSvgAsChild:c}),n={};u||(n.viewBox=p);const v=Q(s);return N.jsxs(X,$({as:m,className:Y(v.root,l),focusable:"false",color:f,"aria-hidden":i?void 0:!0,role:i?"img":void 0,ref:r},n,h,c&&t.props,{ownerState:s,children:[c?t.props.children:t,i?N.jsx("title",{children:i}):null]}))});ee.muiName="SvgIcon";var te=O,oe=function(e){return e!=="theme"},T=function(e){return typeof e=="string"&&e.charCodeAt(0)>96?te:oe},E=function(e,r,a){var t;if(r){var l=r.shouldForwardProp;t=e.__emotion_forwardProp&&l?function(d){return e.__emotion_forwardProp(d)&&l(d)}:l}return typeof t!="function"&&a&&(t=e.__emotion_forwardProp),t},re=function(e){var r=e.cache,a=e.serialized,t=e.isStringTag;return V(r,a,t),q(function(){return G(r,a,t)}),null},ae=function o(e,r){var a=e.__emotion_real===e,t=a&&e.__emotion_base||e,l,d;r!==void 0&&(l=r.label,d=r.target);var m=E(e,r,a),g=m||T(t),f=!g("as");return function(){var u=arguments,i=a&&e.__emotion_styles!==void 0?e.__emotion_styles.slice(0):[];if(l!==void 0&&i.push("label:"+l+";"),u[0]==null||u[0].raw===void 0)i.push.apply(i,u);else{var p=u[0];i.push(p[0]);for(var h=u.length,c=1;c<h;c++)i.push(u[c],p[c])}var s=B(function(n,v,_){var z=f&&n.as||t,S="",C=[],b=n;if(n.theme==null){b={};for(var I in n)b[I]=n[I];b.theme=y.useContext(M)}typeof n.className=="string"?S=U(v.registered,C,n.className):n.className!=null&&(S=n.className+" ");var F=D(i.concat(C),v.registered,b);S+=v.key+"-"+F.name,d!==void 0&&(S+=" "+d);var j=f&&m===void 0?T(z):g,w={};for(var x in n)f&&x==="as"||j(x)&&(w[x]=n[x]);return w.className=S,_&&(w.ref=_),y.createElement(y.Fragment,null,y.createElement(re,{cache:v,serialized:F,isStringTag:typeof z=="string"}),y.createElement(z,w))});return s.displayName=l!==void 0?l:"Styled("+(typeof t=="string"?t:t.displayName||t.name||"Component")+")",s.defaultProps=e.defaultProps,s.__emotion_real=s,s.__emotion_base=t,s.__emotion_styles=i,s.__emotion_forwardProp=m,Object.defineProperty(s,"toString",{value:function(){return"."+d}}),s.withComponent=function(n,v){var _=o(n,$({},r,v,{shouldForwardProp:E(s,v,!0)}));return _.apply(void 0,i)},s}},ne=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],R=ae.bind(null);ne.forEach(function(o){R[o]=R(o)});export{ee as S,R as n};
@@ -1 +1 @@
1
- import{g as p}from"./to-serializable-transaction-CX8P98IC.js";import{s as w,r as y}from"./prepare-contract-call-BnXbUbQT.js";import{w as h}from"./wait-for-tx-receipt-DZxMxn7p.js";import"./index-DvGpQtXK.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./transaction-BRB0QRZP.js";import"./utils-B9hEgCzc.js";import"./transactionReceipt-C3xmpECX.js";import"./sleep-mAKpSMLY.js";async function f({account:t,serializableTransaction:e,transaction:r,gasless:n}){const a=p({address:n.relayerForwarderAddress,chain:r.chain,client:r.client}),s=await y({contract:a,method:"function getNonce(address) view returns (uint256)",params:[t.address]}),[o,i]=await(async()=>{if(!e.to)throw new Error("engine transactions must have a 'to' address");if(!e.gas)throw new Error("engine transactions must have a 'gas' value");if(!e.data)throw new Error("engine transactions must have a 'data' value");if(n.experimentalChainlessSupport){const d={chainid:BigInt(r.chain.id),data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:a.address,version:"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:l}}),d]}const c={data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{chainId:r.chain.id,name:n.domainName??"GSNv2 Forwarder",verifyingContract:a.address,version:n.domainVersion??"0.0.1"},message:c,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),c]})();return{message:i,messageType:"forward",signature:o}}const g=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],l=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}];async function N(t){const{message:e,messageType:r,signature:n}=await f(t),a=await fetch(t.gasless.relayerUrl,{body:w({forwarderAddress:t.gasless.relayerForwarderAddress,request:e,signature:n,type:r}),headers:{"Content-Type":"application/json"},method:"POST"});if(!a.ok)throw new Error(`Failed to send transaction: ${await a.text()}`);const s=await a.json();if(!s.result)throw new Error(`Relay transaction failed: ${s.message}`);const o=s.result.queueId,i=6e4,m=1e3,c=Date.now()+i;for(;Date.now()<c;){const d=await v({options:t,queueId:o});if(d)return{chain:t.transaction.chain,client:t.transaction.client,transactionHash:d.transactionHash};await new Promise(u=>setTimeout(u,m))}throw new Error(`Failed to find relayed transaction after ${i}ms`)}async function v(t){const{options:e,queueId:r}=t,n=e.gasless.relayerUrl.split("/relayer/")[0],a=await fetch(`${n}/transaction/status/${r}`,{method:"GET"}),s=await a.json();if(!a.ok)return null;const o=s.result;if(!o)return null;switch(o.status){case"errored":throw new Error(`Transaction errored with reason: ${o.errorMessage}`);case"cancelled":throw new Error("Transaction execution cancelled.");case"mined":return await h({chain:e.transaction.chain,client:e.transaction.client,transactionHash:o.transactionHash});default:return null}}export{f as prepareEngineTransaction,N as relayEngineTransaction};
1
+ import{g as p}from"./to-serializable-transaction-Cwp0L3ww.js";import{s as w,r as y}from"./prepare-contract-call-BnXbUbQT.js";import{w as h}from"./wait-for-tx-receipt-Be-DMOgp.js";import"./index-B1DCMe50.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./transaction-BRB0QRZP.js";import"./utils-B9hEgCzc.js";import"./transactionReceipt-CYYXW47r.js";import"./sleep-mAKpSMLY.js";async function f({account:t,serializableTransaction:e,transaction:r,gasless:n}){const a=p({address:n.relayerForwarderAddress,chain:r.chain,client:r.client}),s=await y({contract:a,method:"function getNonce(address) view returns (uint256)",params:[t.address]}),[o,i]=await(async()=>{if(!e.to)throw new Error("engine transactions must have a 'to' address");if(!e.gas)throw new Error("engine transactions must have a 'gas' value");if(!e.data)throw new Error("engine transactions must have a 'data' value");if(n.experimentalChainlessSupport){const d={chainid:BigInt(r.chain.id),data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{name:"GSNv2 Forwarder",verifyingContract:a.address,version:"0.0.1"},message:d,primaryType:"ForwardRequest",types:{ForwardRequest:l}}),d]}const c={data:e.data,from:t.address,gas:e.gas,nonce:s,to:e.to,value:0n};return[await t.signTypedData({domain:{chainId:r.chain.id,name:n.domainName??"GSNv2 Forwarder",verifyingContract:a.address,version:n.domainVersion??"0.0.1"},message:c,primaryType:"ForwardRequest",types:{ForwardRequest:g}}),c]})();return{message:i,messageType:"forward",signature:o}}const g=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"}],l=[{name:"from",type:"address"},{name:"to",type:"address"},{name:"value",type:"uint256"},{name:"gas",type:"uint256"},{name:"nonce",type:"uint256"},{name:"data",type:"bytes"},{name:"chainid",type:"uint256"}];async function N(t){const{message:e,messageType:r,signature:n}=await f(t),a=await fetch(t.gasless.relayerUrl,{body:w({forwarderAddress:t.gasless.relayerForwarderAddress,request:e,signature:n,type:r}),headers:{"Content-Type":"application/json"},method:"POST"});if(!a.ok)throw new Error(`Failed to send transaction: ${await a.text()}`);const s=await a.json();if(!s.result)throw new Error(`Relay transaction failed: ${s.message}`);const o=s.result.queueId,i=6e4,m=1e3,c=Date.now()+i;for(;Date.now()<c;){const d=await v({options:t,queueId:o});if(d)return{chain:t.transaction.chain,client:t.transaction.client,transactionHash:d.transactionHash};await new Promise(u=>setTimeout(u,m))}throw new Error(`Failed to find relayed transaction after ${i}ms`)}async function v(t){const{options:e,queueId:r}=t,n=e.gasless.relayerUrl.split("/relayer/")[0],a=await fetch(`${n}/transaction/status/${r}`,{method:"GET"}),s=await a.json();if(!a.ok)return null;const o=s.result;if(!o)return null;switch(o.status){case"errored":throw new Error(`Transaction errored with reason: ${o.errorMessage}`);case"cancelled":throw new Error("Transaction execution cancelled.");case"mined":return await h({chain:e.transaction.chain,client:e.transaction.client,transactionHash:o.transactionHash});default:return null}}export{f as prepareEngineTransaction,N as relayEngineTransaction};
@@ -1 +1 @@
1
- import{d as n,e as i}from"./index-DvGpQtXK.js";function o(r){const e=r;return e.code===4001||e.name==="AbortError"||/reject|denied|cancel/i.test(e.message??"")}function u(r){const e=r;return e.code===402||e.status===402||(e.message??"").toLowerCase().includes("insufficient")}function f(r,e,t={}){if(o(r))return n("errors.rejected");if(t.sale){const s=(r.message??"").toLowerCase();if(s.includes("insufficient"))return n("errors.insufficient",{currency:i.name});if(/not for sale|not found|no active listing|404/.test(s))return n("errors.soldOrRemoved");if(s.includes("your own listing"))return n("errors.cantBuyOwn")}return e}export{u as a,f,o as i};
1
+ import{d as n,e as i}from"./index-B1DCMe50.js";function o(r){const e=r;return e.code===4001||e.name==="AbortError"||/reject|denied|cancel/i.test(e.message??"")}function u(r){const e=r;return e.code===402||e.status===402||(e.message??"").toLowerCase().includes("insufficient")}function f(r,e,t={}){if(o(r))return n("errors.rejected");if(t.sale){const s=(r.message??"").toLowerCase();if(s.includes("insufficient"))return n("errors.insufficient",{currency:i.name});if(/not for sale|not found|no active listing|404/.test(s))return n("errors.soldOrRemoved");if(s.includes("your own listing"))return n("errors.cantBuyOwn")}return e}export{u as a,f,o as i};
@@ -1 +1 @@
1
- import{g as s,t as n}from"./to-serializable-transaction-CX8P98IC.js";import{r as c}from"./prepare-contract-call-BnXbUbQT.js";import{s as m}from"./signing-Bd3rbnSj.js";import"./index-DvGpQtXK.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./transaction-BRB0QRZP.js";import"./utils-B9hEgCzc.js";import"./get-bytecode-knYex1Eu.js";const p="0x420000000000000000000000000000000000000F";async function O(r){const{transaction:t,gasPriceOracleAddress:a}=r,i=s({address:a||p,chain:t.chain,client:t.client}),{gasPrice:l,...e}=await n({transaction:t}),o=m({transaction:e});return c({contract:i,method:"function getL1Fee(bytes memory _data) view returns (uint256)",params:[o]})}export{O as estimateL1Fee};
1
+ import{g as s,t as n}from"./to-serializable-transaction-Cwp0L3ww.js";import{r as c}from"./prepare-contract-call-BnXbUbQT.js";import{s as m}from"./signing-CssxZ7kf.js";import"./index-B1DCMe50.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./transaction-BRB0QRZP.js";import"./utils-B9hEgCzc.js";import"./get-bytecode-knYex1Eu.js";const p="0x420000000000000000000000000000000000000F";async function O(r){const{transaction:t,gasPriceOracleAddress:a}=r,i=s({address:a||p,chain:t.chain,client:t.client}),{gasPrice:l,...e}=await n({transaction:t}),o=m({transaction:e});return c({contract:i,method:"function getL1Fee(bytes memory _data) view returns (uint256)",params:[o]})}export{O as estimateL1Fee};
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index--d9L6VlZ.js","_assets/index-DvGpQtXK.js","_assets/react-DehiWSvs.js","_assets/sentry-973sfbO9.js","_assets/dcl-schemas-Dr9BTjb7.js","_assets/ethers-CtNGBird.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/ethereum-CliiIOgc.js","_assets/utils-B9hEgCzc.js","_assets/types-DC0Zmj1B.js","_assets/get-bytecode-knYex1Eu.js","_assets/prepare-contract-call-BnXbUbQT.js","_assets/to-serializable-transaction-CX8P98IC.js","_assets/transaction-BRB0QRZP.js","_assets/web-connector-Dsb7R1Dr.js","_assets/linkAccount-BodpWbRq.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/sleep-mAKpSMLY.js","_assets/detectExtension-DEjVJeUh.js"])))=>i.map(i=>d[i]);
2
- import{u as x,o as F,s as M,a5 as $}from"./prepare-contract-call-BnXbUbQT.js";import{_ as E}from"./index-DvGpQtXK.js";import{w as V,c as H,h as K,a as j}from"./utils-B9hEgCzc.js";import{d as B}from"./detectExtension-DEjVJeUh.js";function oe(e=32){return x(z(e))}function z(e=32){return globalThis.crypto.getRandomValues(new Uint8Array(e))}async function b(e){const{client:t,ecosystem:n,walletType:a,walletAddress:c,chainId:h}=e;return F({client:t,data:{action:"connect",chainId:h,source:"connectWallet",walletAddress:c,walletType:a},ecosystem:n})}const re={async getItem(e){try{if(typeof window<"u"&&window.localStorage)return localStorage.getItem(e)}catch{}return null},async removeItem(e){typeof window<"u"&&window.localStorage&&localStorage.removeItem(e)},async setItem(e,t){try{typeof window<"u"&&window.localStorage&&localStorage.setItem(e,t)}catch{}}};function X(){const e=new Map;return{emit(t,n){const a=e.get(t);if(a)for(const c of a)c(n)},subscribe(t,n){var a;return e.has(t)?(a=e.get(t))==null||a.add(n):e.set(t,new Set([n])),()=>{const c=e.get(t);c&&c.delete(n)}}}}function Y(){return X()}async function Z(e){return V(async()=>{var a;const n=await(await fetch(`${H("inAppWallet")}/api/2024-05-05/ecosystem-wallet`,{headers:{"x-ecosystem-id":e}})).json();if(!n||n.code==="UNAUTHORIZED")throw new Error(n.message||`Could not find ecosystem wallet with id ${e}, please check your ecosystem wallet configuration.`);return(a=n.authOptions)!=null&&a.includes("siwe")&&(n.authOptions=n.authOptions.filter(c=>c!=="siwe"),n.authOptions.push("wallet")),n},{cacheKey:`ecosystem-wallet-options-${e}`,cacheTime:1e3*60*5})}const v=new Map;async function g(e,t,n){var h;const a=M({clientId:e.clientId,ecosystem:n,partialSecretKey:(h=e.secretKey)==null?void 0:h.slice(0,5)});if(v.has(a))return v.get(a);const c=await t(e);return v.set(a,c),c}function q(e){const{createOptions:t,connectorFactory:n,ecosystem:a}=e,c=a?a.id:"inApp",h=Y();let o=t,l,I,i,f,A=null;const C=async s=>{if(a){const r=await Z(a.id),u=r==null?void 0:r.smartAccountOptions;if(u)if(r.smartAccountOptions.executionMode==="EIP7702")o={...o,executionMode:{mode:"EIP7702",sponsorGas:u.sponsorGas}};else{const{defaultChainId:y}=r.smartAccountOptions,m=(s==null?void 0:s.chain)??(y?j(y):void 0);if(!m)throw new Error("A chain must be provided either via 'chain' in connect options or 'defaultChainId' in ecosystem configuration. Please pass it via connect() or update the ecosystem configuration.");o={...o,smartAccount:{chain:m,factoryAddress:u.accountFactoryAddress,sponsorGas:u.sponsorGas}}}}};return{autoConnect:async s=>{const{autoConnectInAppWallet:r}=await E(async()=>{const{autoConnectInAppWallet:d}=await import("./index--d9L6VlZ.js").then(_=>_.n);return{autoConnectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},connect:async s=>{const{connectInAppWallet:r}=await E(async()=>{const{connectInAppWallet:d}=await import("./index--d9L6VlZ.js").then(_=>_.n);return{connectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},disconnect:async()=>{if(f&&!(await(await g(f,n,a)).logout()).success)throw new Error("Failed to logout");l=void 0,I=void 0,i=void 0,A=null,h.emit("disconnect",void 0)},getAccount:()=>l,getAdminAccount:()=>I,getAuthToken:()=>A,getChain(){if(i)return i=K(i.id)||i,i},getConfig:()=>o,id:c,subscribe:h.subscribe,switchChain:async s=>{var r;if((o!=null&&o.smartAccount||((r=o==null?void 0:o.executionMode)==null?void 0:r.mode)==="EIP4337")&&f&&l){const{autoConnectInAppWallet:u}=await E(async()=>{const{autoConnectInAppWallet:_}=await import("./index--d9L6VlZ.js").then(G=>G.n);return{autoConnectInAppWallet:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),p=await g(f,n,a);await C({chain:s});const{account:y,chain:m,adminAccount:d}=await u({chain:s,client:f},o,p);I=d,l=y,i=m}else i=s;h.emit("chainChanged",s)}}}function ie(e){return q({connectorFactory:async t=>{var a;const{InAppWebConnector:n}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-Dsb7R1Dr.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new n({client:t,passkeyDomain:(a=e==null?void 0:e.auth)==null?void 0:a.passkeyDomain,storage:e==null?void 0:e.storage})},createOptions:e})}async function w(e,t){return g(e,async n=>{const{InAppWebConnector:a}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-Dsb7R1Dr.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new a({client:n,ecosystem:t})},t)}async function R(e){const{client:t,ecosystem:n}=e,c=await(await w(t,n)).getUser();switch(c.status){case"Logged In, Wallet Initialized":return c}}async function ue(e){const t=await R(e);if(t&&"email"in t.authDetails)return t.authDetails.email}async function le(e){const t=await R(e);if(t&&"phoneNumber"in t.authDetails)return t.authDetails.phoneNumber}async function de(e){return(await w(e.client,e.ecosystem)).preAuthenticate(e)}async function he(e){return(await w(e.client,e.ecosystem)).authenticate(e)}async function ye(e){const t=await w(e.client,e.ecosystem);if(!t.authenticateWithRedirect)throw new Error("authenticateWithRedirect is not supported on this platform");return t.authenticateWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function me(e){const t=await w(e.client,e.ecosystem);if(!t.linkProfileWithRedirect)throw new Error("linkProfileWithRedirect is not supported on this platform");return t.linkProfileWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function we(e){return await(await w(e.client,e.ecosystem)).linkProfile(e)}async function fe(e){return await(await w(e.client,e.ecosystem)).unlinkProfile(e.profileToUnlink,e.allowAccountDeletion)}async function Ae(e){return(await w(e.client,e.ecosystem)).getProfiles()}const pe="/sdk/2022-08-12/embedded-wallet",S=e=>`thirdwebEwsWalletUserId-${e}`,J="walletToken",k=e=>`${J}-${e}`,T=e=>`passkey-credential-id-${e}`,Q="a",P=(e,t)=>`${Q}-${e}-${t}`,W=e=>`walletConnectSessions-${e}`,L=e=>`thirdweb_guest_session_id_${e}`,O=new Map;class Ie{constructor({storage:t,clientId:n,ecosystem:a}){Object.defineProperty(this,"key",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"storage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ecosystem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.storage=t,this.key=ee(n,a==null?void 0:a.id),this.ecosystem=a}async getItem(t){return this.storage?this.storage.getItem(t):O.get(t)??null}async setItem(t,n){if(this.storage)return this.storage.setItem(t,n);O.set(t,n)}async removeItem(t){const n=await this.getItem(t);return this.storage&&n?(this.storage.removeItem(t),!0):!1}async getWalletConnectSessions(){return this.getItem(W(this.key))}async saveWalletConnectSessions(t){await this.setItem(W(this.key),t)}async savePasskeyCredentialId(t){await this.setItem(T(this.key),t)}async getPasskeyCredentialId(){return this.getItem(T(this.key))}async saveAuthCookie(t){await this.setItem(k(this.key),t)}async getAuthCookie(){return this.getItem(k(this.key))}async removeAuthCookie(){return this.removeItem(k(this.key))}async saveDeviceShare(t,n){await this.saveWalletUserId(n),await this.setItem(P(this.key,n),t)}async getDeviceShare(){const t=await this.getWalletUserId();return t?this.getItem(P(this.key,t)):null}async removeDeviceShare(){const t=await this.getWalletUserId();return t?this.removeItem(P(this.key,t)):!1}async getWalletUserId(){return this.getItem(S(this.key))}async saveWalletUserId(t){await this.setItem(S(this.key),t)}async removeWalletUserId(){return this.removeItem(S(this.key))}async getGuestSessionId(){return this.getItem(L(this.key))}async saveGuestSessionId(t){await this.setItem(L(this.key),t)}}const ee=(e,t)=>`${e}${t?`-${t}`:""}`;function te(e){let t;return()=>(t||(t=e()),t)}const U="0x3f707e6b",N=[{type:"tuple[]",name:"calls",components:[{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}]}],D=[];function _e(e){return B({availableSelectors:e,method:[U,N,D]})}function ge(e){const t=te(async()=>"asyncParams"in e?await e.asyncParams():e);return $({contract:e.contract,method:[U,N,D],params:async()=>[(await t()).calls],value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.value},accessList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.accessList},gas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gas},gasPrice:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gasPrice},maxFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxFeePerGas},maxPriorityFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxPriorityFeePerGas},nonce:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.nonce},extraGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.extraGas},erc20Value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.erc20Value},authorizationList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.authorizationList}})}export{Ie as C,pe as I,ue as a,he as b,Ae as c,le as d,ge as e,_e as f,Z as g,me as h,ie as i,Y as j,q as k,we as l,ye as m,te as o,de as p,oe as r,b as t,fe as u,re as w};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/index-YZKg7WM1.js","_assets/index-B1DCMe50.js","_assets/react-DehiWSvs.js","_assets/sentry-973sfbO9.js","_assets/dcl-schemas-Dr9BTjb7.js","_assets/ethers-CtNGBird.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/ethereum-CliiIOgc.js","_assets/utils-B9hEgCzc.js","_assets/types-DC0Zmj1B.js","_assets/get-bytecode-knYex1Eu.js","_assets/prepare-contract-call-BnXbUbQT.js","_assets/to-serializable-transaction-Cwp0L3ww.js","_assets/transaction-BRB0QRZP.js","_assets/web-connector-msoNVD8s.js","_assets/linkAccount-BodpWbRq.js","_assets/eth_sendRawTransaction-DPdnXbFR.js","_assets/sleep-mAKpSMLY.js","_assets/detectExtension-DEjVJeUh.js"])))=>i.map(i=>d[i]);
2
+ import{u as x,o as F,s as M,a5 as $}from"./prepare-contract-call-BnXbUbQT.js";import{_ as E}from"./index-B1DCMe50.js";import{w as V,c as H,h as K,a as j}from"./utils-B9hEgCzc.js";import{d as B}from"./detectExtension-DEjVJeUh.js";function oe(e=32){return x(z(e))}function z(e=32){return globalThis.crypto.getRandomValues(new Uint8Array(e))}async function b(e){const{client:t,ecosystem:n,walletType:a,walletAddress:c,chainId:h}=e;return F({client:t,data:{action:"connect",chainId:h,source:"connectWallet",walletAddress:c,walletType:a},ecosystem:n})}const re={async getItem(e){try{if(typeof window<"u"&&window.localStorage)return localStorage.getItem(e)}catch{}return null},async removeItem(e){typeof window<"u"&&window.localStorage&&localStorage.removeItem(e)},async setItem(e,t){try{typeof window<"u"&&window.localStorage&&localStorage.setItem(e,t)}catch{}}};function X(){const e=new Map;return{emit(t,n){const a=e.get(t);if(a)for(const c of a)c(n)},subscribe(t,n){var a;return e.has(t)?(a=e.get(t))==null||a.add(n):e.set(t,new Set([n])),()=>{const c=e.get(t);c&&c.delete(n)}}}}function Y(){return X()}async function Z(e){return V(async()=>{var a;const n=await(await fetch(`${H("inAppWallet")}/api/2024-05-05/ecosystem-wallet`,{headers:{"x-ecosystem-id":e}})).json();if(!n||n.code==="UNAUTHORIZED")throw new Error(n.message||`Could not find ecosystem wallet with id ${e}, please check your ecosystem wallet configuration.`);return(a=n.authOptions)!=null&&a.includes("siwe")&&(n.authOptions=n.authOptions.filter(c=>c!=="siwe"),n.authOptions.push("wallet")),n},{cacheKey:`ecosystem-wallet-options-${e}`,cacheTime:1e3*60*5})}const v=new Map;async function g(e,t,n){var h;const a=M({clientId:e.clientId,ecosystem:n,partialSecretKey:(h=e.secretKey)==null?void 0:h.slice(0,5)});if(v.has(a))return v.get(a);const c=await t(e);return v.set(a,c),c}function q(e){const{createOptions:t,connectorFactory:n,ecosystem:a}=e,c=a?a.id:"inApp",h=Y();let o=t,l,I,i,f,A=null;const C=async s=>{if(a){const r=await Z(a.id),u=r==null?void 0:r.smartAccountOptions;if(u)if(r.smartAccountOptions.executionMode==="EIP7702")o={...o,executionMode:{mode:"EIP7702",sponsorGas:u.sponsorGas}};else{const{defaultChainId:y}=r.smartAccountOptions,m=(s==null?void 0:s.chain)??(y?j(y):void 0);if(!m)throw new Error("A chain must be provided either via 'chain' in connect options or 'defaultChainId' in ecosystem configuration. Please pass it via connect() or update the ecosystem configuration.");o={...o,smartAccount:{chain:m,factoryAddress:u.accountFactoryAddress,sponsorGas:u.sponsorGas}}}}};return{autoConnect:async s=>{const{autoConnectInAppWallet:r}=await E(async()=>{const{autoConnectInAppWallet:d}=await import("./index-YZKg7WM1.js").then(_=>_.n);return{autoConnectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},connect:async s=>{const{connectInAppWallet:r}=await E(async()=>{const{connectInAppWallet:d}=await import("./index-YZKg7WM1.js").then(_=>_.n);return{connectInAppWallet:d}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),u=await g(s.client,n,a);await C();const{account:p,chain:y,adminAccount:m}=await r(s,o,u);f=s.client,l=p,I=m,i=y;try{A=await u.storage.getAuthCookie()}catch(d){console.error("Failed to retrieve auth token:",d),A=null}return b({chainId:i.id,client:s.client,ecosystem:a,walletAddress:l.address,walletType:c}),l},disconnect:async()=>{if(f&&!(await(await g(f,n,a)).logout()).success)throw new Error("Failed to logout");l=void 0,I=void 0,i=void 0,A=null,h.emit("disconnect",void 0)},getAccount:()=>l,getAdminAccount:()=>I,getAuthToken:()=>A,getChain(){if(i)return i=K(i.id)||i,i},getConfig:()=>o,id:c,subscribe:h.subscribe,switchChain:async s=>{var r;if((o!=null&&o.smartAccount||((r=o==null?void 0:o.executionMode)==null?void 0:r.mode)==="EIP4337")&&f&&l){const{autoConnectInAppWallet:u}=await E(async()=>{const{autoConnectInAppWallet:_}=await import("./index-YZKg7WM1.js").then(G=>G.n);return{autoConnectInAppWallet:_}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14])),p=await g(f,n,a);await C({chain:s});const{account:y,chain:m,adminAccount:d}=await u({chain:s,client:f},o,p);I=d,l=y,i=m}else i=s;h.emit("chainChanged",s)}}}function ie(e){return q({connectorFactory:async t=>{var a;const{InAppWebConnector:n}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-msoNVD8s.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new n({client:t,passkeyDomain:(a=e==null?void 0:e.auth)==null?void 0:a.passkeyDomain,storage:e==null?void 0:e.storage})},createOptions:e})}async function w(e,t){return g(e,async n=>{const{InAppWebConnector:a}=await E(async()=>{const{InAppWebConnector:c}=await import("./web-connector-msoNVD8s.js");return{InAppWebConnector:c}},__vite__mapDeps([15,1,2,3,4,5,6,7,9,10,12,16,14,17,18,19]));return new a({client:n,ecosystem:t})},t)}async function R(e){const{client:t,ecosystem:n}=e,c=await(await w(t,n)).getUser();switch(c.status){case"Logged In, Wallet Initialized":return c}}async function ue(e){const t=await R(e);if(t&&"email"in t.authDetails)return t.authDetails.email}async function le(e){const t=await R(e);if(t&&"phoneNumber"in t.authDetails)return t.authDetails.phoneNumber}async function de(e){return(await w(e.client,e.ecosystem)).preAuthenticate(e)}async function he(e){return(await w(e.client,e.ecosystem)).authenticate(e)}async function ye(e){const t=await w(e.client,e.ecosystem);if(!t.authenticateWithRedirect)throw new Error("authenticateWithRedirect is not supported on this platform");return t.authenticateWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function me(e){const t=await w(e.client,e.ecosystem);if(!t.linkProfileWithRedirect)throw new Error("linkProfileWithRedirect is not supported on this platform");return t.linkProfileWithRedirect(e.strategy,e.mode,e.redirectUrl)}async function we(e){return await(await w(e.client,e.ecosystem)).linkProfile(e)}async function fe(e){return await(await w(e.client,e.ecosystem)).unlinkProfile(e.profileToUnlink,e.allowAccountDeletion)}async function Ae(e){return(await w(e.client,e.ecosystem)).getProfiles()}const pe="/sdk/2022-08-12/embedded-wallet",S=e=>`thirdwebEwsWalletUserId-${e}`,J="walletToken",k=e=>`${J}-${e}`,T=e=>`passkey-credential-id-${e}`,Q="a",P=(e,t)=>`${Q}-${e}-${t}`,W=e=>`walletConnectSessions-${e}`,L=e=>`thirdweb_guest_session_id_${e}`,O=new Map;class Ie{constructor({storage:t,clientId:n,ecosystem:a}){Object.defineProperty(this,"key",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"storage",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"ecosystem",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.storage=t,this.key=ee(n,a==null?void 0:a.id),this.ecosystem=a}async getItem(t){return this.storage?this.storage.getItem(t):O.get(t)??null}async setItem(t,n){if(this.storage)return this.storage.setItem(t,n);O.set(t,n)}async removeItem(t){const n=await this.getItem(t);return this.storage&&n?(this.storage.removeItem(t),!0):!1}async getWalletConnectSessions(){return this.getItem(W(this.key))}async saveWalletConnectSessions(t){await this.setItem(W(this.key),t)}async savePasskeyCredentialId(t){await this.setItem(T(this.key),t)}async getPasskeyCredentialId(){return this.getItem(T(this.key))}async saveAuthCookie(t){await this.setItem(k(this.key),t)}async getAuthCookie(){return this.getItem(k(this.key))}async removeAuthCookie(){return this.removeItem(k(this.key))}async saveDeviceShare(t,n){await this.saveWalletUserId(n),await this.setItem(P(this.key,n),t)}async getDeviceShare(){const t=await this.getWalletUserId();return t?this.getItem(P(this.key,t)):null}async removeDeviceShare(){const t=await this.getWalletUserId();return t?this.removeItem(P(this.key,t)):!1}async getWalletUserId(){return this.getItem(S(this.key))}async saveWalletUserId(t){await this.setItem(S(this.key),t)}async removeWalletUserId(){return this.removeItem(S(this.key))}async getGuestSessionId(){return this.getItem(L(this.key))}async saveGuestSessionId(t){await this.setItem(L(this.key),t)}}const ee=(e,t)=>`${e}${t?`-${t}`:""}`;function te(e){let t;return()=>(t||(t=e()),t)}const U="0x3f707e6b",N=[{type:"tuple[]",name:"calls",components:[{type:"address",name:"target"},{type:"uint256",name:"value"},{type:"bytes",name:"data"}]}],D=[];function _e(e){return B({availableSelectors:e,method:[U,N,D]})}function ge(e){const t=te(async()=>"asyncParams"in e?await e.asyncParams():e);return $({contract:e.contract,method:[U,N,D],params:async()=>[(await t()).calls],value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.value},accessList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.accessList},gas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gas},gasPrice:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.gasPrice},maxFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxFeePerGas},maxPriorityFeePerGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.maxPriorityFeePerGas},nonce:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.nonce},extraGas:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.extraGas},erc20Value:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.erc20Value},authorizationList:async()=>{var n;return(n=(await t()).overrides)==null?void 0:n.authorizationList}})}export{Ie as C,pe as I,ue as a,he as b,Ae as c,le as d,ge as e,_e as f,Z as g,me as h,ie as i,Y as j,q as k,we as l,ye as m,te as o,de as p,oe as r,b as t,fe as u,re as w};
@@ -1,4 +1,4 @@
1
- import{C as g,x as y,a6 as k,v as u,B as S,z as w}from"./W3MFrameProviderSingleton-D_hwynnp.js";import{az as A,au as m}from"./NetworkUtil-EoWQDMpU.js";import"./dcl-schemas-Dr9BTjb7.js";import"./index-DI-3MKLG.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./index-Bfbnmm19.js";import"./events-DQ172AOg.js";import"./index-DvGpQtXK.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-I5CKtKME.js";class N{constructor(e){this.getNonce=e.getNonce}async createMessage(e){const t={accountAddress:e.accountAddress,chainId:e.chainId,version:"1",domain:typeof document>"u"?"Unknown Domain":document.location.host,uri:typeof document>"u"?"Unknown URI":document.location.href,resources:this.resources,nonce:await this.getNonce(e),issuedAt:this.stringifyDate(new Date),statement:void 0,expirationTime:void 0,notBefore:void 0};return Object.assign(t,{toString:()=>this.stringify(t)})}stringify(e){var n;const t=this.getNetworkName(e.chainId);return[`${e.domain} wants you to sign in with your ${t} account:`,e.accountAddress,e.statement?`
1
+ import{C as g,x as y,a6 as k,v as u,B as S,z as w}from"./W3MFrameProviderSingleton-hR4mAmko.js";import{az as A,au as m}from"./NetworkUtil-EoWQDMpU.js";import"./dcl-schemas-Dr9BTjb7.js";import"./index-DI-3MKLG.js";import"./react-DehiWSvs.js";import"./sentry-973sfbO9.js";import"./index-CVQ8oHkh.js";import"./events-DQ172AOg.js";import"./index-B1DCMe50.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./browser-ponyfill-I5CKtKME.js";class N{constructor(e){this.getNonce=e.getNonce}async createMessage(e){const t={accountAddress:e.accountAddress,chainId:e.chainId,version:"1",domain:typeof document>"u"?"Unknown Domain":document.location.host,uri:typeof document>"u"?"Unknown URI":document.location.href,resources:this.resources,nonce:await this.getNonce(e),issuedAt:this.stringifyDate(new Date),statement:void 0,expirationTime:void 0,notBefore:void 0};return Object.assign(t,{toString:()=>this.stringify(t)})}stringify(e){var n;const t=this.getNetworkName(e.chainId);return[`${e.domain} wants you to sign in with your ${t} account:`,e.accountAddress,e.statement?`
2
2
  ${e.statement}
3
3
  `:"",`URI: ${e.uri}`,`Version: ${e.version}`,`Chain ID: ${e.chainId}`,`Nonce: ${e.nonce}`,e.issuedAt&&`Issued At: ${e.issuedAt}`,e.expirationTime&&`Expiration Time: ${e.expirationTime}`,e.notBefore&&`Not Before: ${e.notBefore}`,e.requestId&&`Request ID: ${e.requestId}`,((n=e.resources)==null?void 0:n.length)&&e.resources.reduce((o,s)=>`${o}
4
4
  - ${s}`,"Resources:")].filter(o=>typeof o=="string").join(`
@@ -1,2 +1,2 @@
1
- const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/to-serializable-transaction-CX8P98IC.js","_assets/index-DvGpQtXK.js","_assets/react-DehiWSvs.js","_assets/sentry-973sfbO9.js","_assets/dcl-schemas-Dr9BTjb7.js","_assets/ethers-CtNGBird.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/prepare-contract-call-BnXbUbQT.js","_assets/utils-B9hEgCzc.js","_assets/transaction-BRB0QRZP.js"])))=>i.map(i=>d[i]);
2
- import{_ as c}from"./index-DvGpQtXK.js";import{b as s}from"./uint8-array-CjVHUazS.js";import{n as d}from"./prepare-contract-call-BnXbUbQT.js";const f="data:application/json;base64";function u(r){return!!r.toLowerCase().startsWith(f)}function l(r){const n=r.indexOf(","),o=r.slice(n+1);return s(o)}const h="data:application/json;utf-8";function w(r){return!!r.toLowerCase().startsWith(h)}function m(r){const n=r.indexOf(","),o=r.slice(n+1);try{return decodeURIComponent(o)}catch{return o}}async function y(r){const{client:n,tokenId:o,tokenUri:e}=r;if(u(e))try{return JSON.parse(l(e))}catch(t){throw console.error("Failed to fetch base64 encoded NFT",{tokenId:o,tokenUri:e},t),t}if(w(e))try{return JSON.parse(m(e))}catch(t){throw console.error("Failed to fetch utf8 encoded NFT",{tokenId:o,tokenUri:e},t),t}const{download:a}=await c(async()=>{const{download:t}=await import("./to-serializable-transaction-CX8P98IC.js").then(i=>i.L);return{download:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]));try{if(!e.includes("{id}"))return await(await a({client:n,uri:e})).json()}catch(t){throw console.error("Failed to fetch non-dynamic NFT",{tokenId:o,tokenUri:e},t),t}try{try{return await(await a({client:n,uri:e.replace("{id}",d(o,{size:32}).slice(2))})).json()}catch{return await(await a({client:n,uri:e.replace("{id}",o.toString())})).json()}}catch(t){throw console.error("Failed to fetch dynamic NFT",{tokenId:o,tokenUri:e},t),t}}export{y as f};
1
+ const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["_assets/to-serializable-transaction-Cwp0L3ww.js","_assets/index-B1DCMe50.js","_assets/react-DehiWSvs.js","_assets/sentry-973sfbO9.js","_assets/dcl-schemas-Dr9BTjb7.js","_assets/ethers-CtNGBird.js","_assets/intl-CBcMB1D2.js","_assets/index-D-NhBWWr.css","_assets/prepare-contract-call-BnXbUbQT.js","_assets/utils-B9hEgCzc.js","_assets/transaction-BRB0QRZP.js"])))=>i.map(i=>d[i]);
2
+ import{_ as c}from"./index-B1DCMe50.js";import{b as s}from"./uint8-array-CjVHUazS.js";import{n as d}from"./prepare-contract-call-BnXbUbQT.js";const f="data:application/json;base64";function u(r){return!!r.toLowerCase().startsWith(f)}function l(r){const n=r.indexOf(","),o=r.slice(n+1);return s(o)}const h="data:application/json;utf-8";function w(r){return!!r.toLowerCase().startsWith(h)}function m(r){const n=r.indexOf(","),o=r.slice(n+1);try{return decodeURIComponent(o)}catch{return o}}async function y(r){const{client:n,tokenId:o,tokenUri:e}=r;if(u(e))try{return JSON.parse(l(e))}catch(t){throw console.error("Failed to fetch base64 encoded NFT",{tokenId:o,tokenUri:e},t),t}if(w(e))try{return JSON.parse(m(e))}catch(t){throw console.error("Failed to fetch utf8 encoded NFT",{tokenId:o,tokenUri:e},t),t}const{download:a}=await c(async()=>{const{download:t}=await import("./to-serializable-transaction-Cwp0L3ww.js").then(i=>i.L);return{download:t}},__vite__mapDeps([0,1,2,3,4,5,6,7,8,9,10]));try{if(!e.includes("{id}"))return await(await a({client:n,uri:e})).json()}catch(t){throw console.error("Failed to fetch non-dynamic NFT",{tokenId:o,tokenUri:e},t),t}try{try{return await(await a({client:n,uri:e.replace("{id}",d(o,{size:32}).slice(2))})).json()}catch{return await(await a({client:n,uri:e.replace("{id}",o.toString())})).json()}}catch(t){throw console.error("Failed to fetch dynamic NFT",{tokenId:o,tokenUri:e},t),t}}export{y as f};
@@ -1,4 +1,4 @@
1
- import{t,s as o}from"./index-DvGpQtXK.js";const{colors:e}=t,r=o.input`
1
+ import{t,s as o}from"./index-B1DCMe50.js";const{colors:e}=t,r=o.input`
2
2
  --box: 17.143px;
3
3
  position: relative;
4
4
  appearance: none;
@@ -1 +1 @@
1
- import{g as o}from"./execute-CqdEBDWF.js";import"./prepare-contract-call-BnXbUbQT.js";import"./utils-B9hEgCzc.js";import"./sentry-973sfbO9.js";import"./react-DehiWSvs.js";import"./index-DvGpQtXK.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./detectExtension-DEjVJeUh.js";async function g(n){const l=await o(n);return{app:{android:null,browser:null,chrome:null,edge:null,firefox:null,ios:null,linux:null,mac:null,opera:null,safari:null,windows:null},desktop:{native:null,universal:null},homepage:l.homepage||"",id:n,image_id:l.imageUrl||"",mobile:{native:null,universal:null},name:l.name,rdns:null}}export{g as getEcosystemWalletInfo};
1
+ import{g as o}from"./execute-DbnGyz94.js";import"./prepare-contract-call-BnXbUbQT.js";import"./utils-B9hEgCzc.js";import"./sentry-973sfbO9.js";import"./react-DehiWSvs.js";import"./index-B1DCMe50.js";import"./dcl-schemas-Dr9BTjb7.js";import"./ethers-CtNGBird.js";import"./intl-CBcMB1D2.js";import"./detectExtension-DEjVJeUh.js";async function g(n){const l=await o(n);return{app:{android:null,browser:null,chrome:null,edge:null,firefox:null,ios:null,linux:null,mac:null,opera:null,safari:null,windows:null},desktop:{native:null,universal:null},homepage:l.homepage||"",id:n,image_id:l.imageUrl||"",mobile:{native:null,universal:null},name:l.name,rdns:null}}export{g as getEcosystemWalletInfo};