@dcl/shop 0.1.0-29736515487.commit-b64bf82 → 0.1.0-29783861565.commit-b83d609

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 (178) hide show
  1. package/assets/{AnimatedBackground-BJBUqhHZ.js → AnimatedBackground-CnXByL2p.js} +1 -1
  2. package/assets/Assets-DwgI8MEu.js +1 -0
  3. package/assets/{Cart-CNsRhX_R.js → Cart-BX9aQ6G0.js} +1 -1
  4. package/assets/{CircularProgress-C9g4a9bc.js → CircularProgress-DYIOpTqD.js} +1 -1
  5. package/assets/Collection-LcILXLBn.js +1 -0
  6. package/assets/{CollectionCarousel-CiKValmX.js → CollectionCarousel-CoUEKAXy.js} +1 -1
  7. package/assets/Creator-UHpdXwMr.js +1 -0
  8. package/assets/{CssVarsProvider-Bc8wQjEb.js → CssVarsProvider-DfFti9_A.js} +1 -1
  9. package/assets/ErrorNotice-CKeOu_Oi.js +1 -0
  10. package/assets/{ExchangeController-B6lNqmFK.js → ExchangeController-C6sXEiq1.js} +1 -1
  11. package/assets/GetCredits-DtfEKpG3.js +1 -0
  12. package/assets/{HelpersUtil-zS6eOrPz.js → HelpersUtil-VuaewgD3.js} +1 -1
  13. package/assets/ImportListings-BpZvc0Qy.js +1 -0
  14. package/assets/ItemDetail-BVVMGMLA.js +2 -0
  15. package/assets/{LoadMore-BIjeTH4T.js → LoadMore-6Uy0vHhH.js} +1 -1
  16. package/assets/{MarketCheckout-DoRZsMk0.js → MarketCheckout-Kp8KKjmU.js} +1 -1
  17. package/assets/MyAssets-jAtm2rkC.js +1 -0
  18. package/assets/{MyFavorites-CRqCDkA2.js → MyFavorites-CGr22n0E.js} +1 -1
  19. package/assets/{MyPurchases-BsTMOXYC.js → MyPurchases-jF5HW7GK.js} +1 -1
  20. package/assets/NotFound-bMjp4Hut.js +1 -0
  21. package/assets/StoreSettings-CkUUTNHp.js +1 -0
  22. package/assets/{Success-3OL55SvR.js → Success-DYjGuuuE.js} +1 -1
  23. package/assets/{SwapController-BHBv5Fp0.js → SwapController-DBJm_MiD.js} +1 -1
  24. package/assets/{TradeService-CNoDt48E.js → TradeService-BFaS1SX9.js} +1 -1
  25. package/assets/{W3MFrameProviderSingleton-Bndo_4Rg.js → W3MFrameProviderSingleton-DCqZCe_f.js} +3 -3
  26. package/assets/{WebCryptoP256-Bt50-H1K.js → WebCryptoP256-Cz-rTluH.js} +1 -1
  27. package/assets/{basic-Bub5O4ZI.js → basic-BcwNyjio.js} +1 -1
  28. package/assets/{biconomy-DuIIEXUB.js → biconomy-DR6YsiDl.js} +1 -1
  29. package/assets/{buy--wjHgZbY.js → buy-BlHiSc1W.js} +1 -1
  30. package/assets/{buy-gasless-DaSij0O9.js → buy-gasless-aP_Keozx.js} +1 -1
  31. package/assets/{cart-checkout-RV2JhHc0.js → cart-checkout-ClRVRUn2.js} +1 -1
  32. package/assets/{categories-BwgdoXaT.js → categories-BTWuBkUd.js} +1 -1
  33. package/assets/{ccip-C1ke5tRS.js → ccip-ChPEdTqV.js} +1 -1
  34. package/assets/{ccip-Cbub1KDX.js → ccip-DMrR031x.js} +1 -1
  35. package/assets/{collection-CtZ-NDco.js → collection-CRx0Du-v.js} +1 -1
  36. package/assets/{controller-Cn9mR-pN.js → controller-421tDirA.js} +2 -2
  37. package/assets/{core-Z6gT3FaJ.js → core-CsX6p7T6.js} +4 -4
  38. package/assets/{custom-Djk6BRDC.js → custom-CILu-JPM.js} +1 -1
  39. package/assets/{data-capture-CaF6YYAr.js → data-capture-DRuJL5zb.js} +1 -1
  40. package/assets/{decimals-_kiKzbOr.js → decimals-BKVZKqKN.js} +1 -1
  41. package/assets/{decimals-BW2hoshz.js → decimals-DrtQQlU9.js} +1 -1
  42. package/assets/{detectExtension-BkZ-FjJy.js → detectExtension-D-LvJWm4.js} +1 -1
  43. package/assets/{email-1Van4lx1.js → email-Cb1GxsJf.js} +1 -1
  44. package/assets/{embedded-wallet-_TVgs7Qd.js → embedded-wallet-BwhNJ4Q2.js} +1 -1
  45. package/assets/{emotion-styled.browser.esm-B2VU5Fdx.js → emotion-styled.browser.esm-Ca1eN6j6.js} +1 -1
  46. package/assets/{engine-D9uS1iWH.js → engine-B6D8ee3-.js} +1 -1
  47. package/assets/{errors-BFbUxXdM.js → errors-uwUVgVvx.js} +1 -1
  48. package/assets/{estimate-l1-fee-DFpjQWvm.js → estimate-l1-fee-G7zM8IOX.js} +1 -1
  49. package/assets/{eth_estimateGas-XGJ1z-TU.js → eth_estimateGas-CJsm4rG5.js} +1 -1
  50. package/assets/{eth_getStorageAt-4_YV1iAo.js → eth_getStorageAt-qmfvyP-u.js} +1 -1
  51. package/assets/{eth_getTransactionCount-DO_4-OAP.js → eth_getTransactionCount-BGQQ5Vv9.js} +1 -1
  52. package/assets/{extractIPFS-CMkI68ZH.js → extractIPFS-DakUEmlc.js} +1 -1
  53. package/assets/{features-Dzd7PGBD.js → features-bW08HJnZ.js} +1 -1
  54. package/assets/{fetchTokenMetadata-BJILnwgp.js → fetchTokenMetadata-CXT0jjgl.js} +2 -2
  55. package/assets/{get-ecosystem-wallet-info-BD5YDDMh.js → get-ecosystem-wallet-info-Dn1LefmJ.js} +1 -1
  56. package/assets/{getBalance-SRetmB3S.js → getBalance-B_aNPKoy.js} +1 -1
  57. package/assets/{getInstalledModules-DFh2dv3C.js → getInstalledModules-CympWNqL.js} +1 -1
  58. package/assets/{getNFT-CtODGGom.js → getNFT-B8Q1zkC4.js} +2 -2
  59. package/assets/{getNFT-CJ8nxXzA.js → getNFT-eM-T6tRF.js} +1 -1
  60. package/assets/{getOverlayAlpha-DqVbiGQa.js → getOverlayAlpha-Ttcml9GY.js} +1 -1
  61. package/assets/{hashTypedData-B9EX4kQr.js → hashTypedData--AK2ZmGf.js} +1 -1
  62. package/assets/{hashTypedData-DF-5orkI.js → hashTypedData-DzD4jekn.js} +1 -1
  63. package/assets/{import-DjSObRBl.js → import-sr6kRaqB.js} +1 -1
  64. package/assets/{in-app-wallet-calls-BIFm_f4e.js → in-app-wallet-calls-C_SOVV0l.js} +1 -1
  65. package/assets/{index-BDpvYYDT.js → index-9gD2DfUK.js} +2 -2
  66. package/assets/{index-DZXCznoC.js → index-B-3CTsQP.js} +1 -1
  67. package/assets/{index-Baz_xGcG.js → index-B2OrjlTl.js} +1 -1
  68. package/assets/{index-D6gXM0CC.js → index-B4-G1rCo.js} +1 -1
  69. package/assets/{index-icCmSJB-.js → index-B6W_ISMa.js} +1 -1
  70. package/assets/{index-Cq05ek6k.js → index-B81tYS6F.js} +1 -1
  71. package/assets/{index-BMvjtMcC.js → index-BIv8GADN.js} +1 -1
  72. package/assets/{index-BJhyH2t3.js → index-BJZdI022.js} +1 -1
  73. package/assets/{index-C2Nkwj4Q.js → index-BV33ef1J.js} +1 -1
  74. package/assets/{index-wua-qNwF.js → index-Bgbtqpi_.js} +1 -1
  75. package/assets/{index-C7FmrxuL.js → index-BvrURYoS.js} +2 -2
  76. package/assets/{index-4FVRm8A1.js → index-BxbTiINv.js} +1 -1
  77. package/assets/{index-DxHhM-lc.js → index-C2m0blJe.js} +1 -1
  78. package/assets/{index-CXx3fqSb.js → index-C6G40j4u.js} +1 -1
  79. package/assets/{index-BIm4mg7q.js → index-C84kXK1X.js} +1 -1
  80. package/assets/{index-D-OL6_Yb.js → index-CWbmWEtn.js} +1 -1
  81. package/assets/{index-CPEmMCeJ.js → index-CaDGH4a6.js} +1 -1
  82. package/assets/{index-C4u9N2Kl.js → index-CjOGY-Pr.js} +1 -1
  83. package/assets/{index-ChsZA2LJ.js → index-CnCph4mF.js} +1 -1
  84. package/assets/{index-CnO86Xf-.js → index-CovWGvEr.js} +2 -2
  85. package/assets/{index-B8oIDYaY.js → index-Cr7wLvnz.js} +1 -1
  86. package/assets/{index-B-R-UWD3.js → index-CtLPwG2t.js} +1 -1
  87. package/assets/{index-CDzDnyJW.js → index-CzmwWbz1.js} +4 -4
  88. package/assets/{index-mj00iiOs.js → index-D-gvLUqs.js} +1 -1
  89. package/assets/{index-D-g3I2lj.js → index-D226txBm.js} +1 -1
  90. package/assets/{index-Ca1AwnnV.js → index-DGQOzxeF.js} +1 -1
  91. package/assets/{index-_PfBd9GI.js → index-DOoENNk5.js} +1 -1
  92. package/assets/{index-D4I9bYC2.js → index-DPKHQYT5.js} +1 -1
  93. package/assets/{index-B84aCWu7.js → index-DSEv1Ue8.js} +1 -1
  94. package/assets/{index-COxhR5RZ.js → index-DTg93qgJ.js} +1 -1
  95. package/assets/{index-C6_L5Mw_.js → index-DToUml_I.js} +1 -1
  96. package/assets/{index-B0vpo1ZT.js → index-DUF4UmqA.js} +1 -1
  97. package/assets/{index-RUxrTr_p.js → index-DXDNRhxq.js} +1 -1
  98. package/assets/{index-BuMqkfRn.js → index-D_W5oEuA.js} +1 -1
  99. package/assets/{index-BTBCIBCb.js → index-DkhsBldP.js} +1 -1
  100. package/assets/{index-CI-M1Arz.js → index-DmEz5tjU.js} +1 -1
  101. package/assets/{index-CB1b6TrQ.js → index-DmJlIq9f.js} +1 -1
  102. package/assets/{index-C1ZfYzAF.js → index-DoFyhOro.js} +1 -1
  103. package/assets/{index-z0NRAVC7.js → index-DokyT4P9.js} +1 -1
  104. package/assets/{index-Cxc0o5xP.js → index-DptThZec.js} +3 -3
  105. package/assets/{index-C7dwOEd4.js → index-DvTTdt4H.js} +1 -1
  106. package/assets/{index-435lMBSs.js → index-DzHyxhs5.js} +1 -1
  107. package/assets/{index-CuuFwMsN.js → index-NeuZ4y_J.js} +1 -1
  108. package/assets/{index-lt9H89-j.js → index-XK7XP931.js} +1 -1
  109. package/assets/{index-Dp3LaHz2.js → index-iYHUkCYV.js} +1 -1
  110. package/assets/{index-rjGwBRLW.js → index-jywqB30S.js} +1 -1
  111. package/assets/{index-BP93EahD.js → index-mBDGvwIW.js} +1 -1
  112. package/assets/{index-D1WSRIS2.js → index-nj2GyU5U.js} +1 -1
  113. package/assets/{index-D9ieJGKB.js → index-s1UJ3WrX.js} +3 -3
  114. package/assets/{index-kwYOhJAZ.js → index-sYlKY5cB.js} +1 -1
  115. package/assets/{index-5DUAhgPD.js → index-xPWOdr4_.js} +1 -1
  116. package/assets/{index.es-BzNqI7gq.js → index.es-7B3Apj6r.js} +1 -1
  117. package/assets/{index.es-CwZSb0ol.js → index.es-BHyvc-N-.js} +1 -1
  118. package/assets/{index.es-1OmAzkct.js → index.es-BxwrCOID.js} +4 -4
  119. package/assets/{localBatchGatewayRequest-yoTBhn0Z.js → localBatchGatewayRequest-H6cBwZqz.js} +1 -1
  120. package/assets/{mana-rate-Db4BQ-_Q.js → mana-rate-D42fK9sf.js} +1 -1
  121. package/assets/{networks-DK4RaMPB.js → networks-0pOpKJQi.js} +1 -1
  122. package/assets/{onramp-D9q0W6xC.js → onramp-CCXo5M0Y.js} +1 -1
  123. package/assets/{openzeppelin-BquKm-KX.js → openzeppelin-BYJ2tC9d.js} +1 -1
  124. package/assets/{ownerOf-DuMQ2Sl6.js → ownerOf-Q7VDagMC.js} +1 -1
  125. package/assets/{parseNft-ufNn3-SE.js → parseNft-5mZpwsx1.js} +2 -2
  126. package/assets/{parseSignature-DMb3jl_X.js → parseSignature-CWegNxH8.js} +1 -1
  127. package/assets/{parseSignature-BwqWTE77.js → parseSignature-EO4YSoUl.js} +3 -3
  128. package/assets/{pay-with-exchange-CTQ9umub.js → pay-with-exchange-DNZN1-oM.js} +1 -1
  129. package/assets/{payments-tEVDRx3d.js → payments-DOnM9_yY.js} +1 -1
  130. package/assets/{qr-overlay-dEspWwjk.js → qr-overlay-BffOPDZr.js} +1 -1
  131. package/assets/{receive-D0GHoQxU.js → receive-CH8H0XRZ.js} +1 -1
  132. package/assets/{resolveImplementation-C8pfiiFc.js → resolveImplementation-BK16Utmf.js} +1 -1
  133. package/assets/{rpc-DmLUQYS0.js → rpc-BuwiLkbO.js} +1 -1
  134. package/assets/{secp256k1-Dfs57S6d.js → secp256k1-2SXpP68_.js} +1 -1
  135. package/assets/{secp256k1-Dr9eLw2v.js → secp256k1-BFHcnR-p.js} +1 -1
  136. package/assets/{secp256k1-Nx-YHmXH.js → secp256k1-Br1Y5NMo.js} +1 -1
  137. package/assets/{send-BwQAcpw3.js → send-an0evxKn.js} +1 -1
  138. package/assets/{send-batch-transaction-DzTkK7I2.js → send-batch-transaction-JFUz9Aa9.js} +1 -1
  139. package/assets/{send-eip712-transaction-Cwec8TpW.js → send-eip712-transaction-DdF3ZvBS.js} +2 -2
  140. package/assets/{send-gasless-transaction-CM25TtQp.js → send-gasless-transaction-CxNH64lc.js} +2 -2
  141. package/assets/{sendRawTransaction-D4a6ft8m.js → sendRawTransaction-iwgyq4DD.js} +3 -3
  142. package/assets/{serializeTransaction-2sq4x0kU.js → serializeTransaction-b9KVJNpn.js} +1 -1
  143. package/assets/{session-proposal-BdXqD0a8.js → session-proposal-SlVAZSFJ.js} +1 -1
  144. package/assets/{session-request-DK4XwmDL.js → session-request-BLbnbkSH.js} +2 -2
  145. package/assets/{sha256-D-WKRl2Q.js → sha256-DynB7XkZ.js} +1 -1
  146. package/assets/{signing-BT7JgIF_.js → signing-BbFSmiZg.js} +4 -4
  147. package/assets/{socials-BOqU6AoU.js → socials-CS5qY0g8.js} +1 -1
  148. package/assets/{swaps-CG6VNxsT.js → swaps-DxVYaURr.js} +1 -1
  149. package/assets/{thirdweb-CAdiquMi.js → thirdweb-DN9IYPLv.js} +3 -3
  150. package/assets/{totalSupply-DjhdgKBK.js → totalSupply-CYz_14oP.js} +1 -1
  151. package/assets/{trade-encoding-6ejU5fQD.js → trade-encoding-8RrYE6hq.js} +1 -1
  152. package/assets/{transactionReceipt-DWMHa3N1.js → transactionReceipt-BwIePvtD.js} +1 -1
  153. package/assets/{transactions-BgR8COf-.js → transactions-CHQdZqE3.js} +1 -1
  154. package/assets/{useInfiniteGrid-gL0KJ-yb.js → useInfiniteGrid-Dg-jgtmN.js} +1 -1
  155. package/assets/{useStore-BXbR3Zt_.js → useStore-BYewymaj.js} +1 -1
  156. package/assets/{useTheme-CmaVa_eU.js → useTheme-Ckn40RaY.js} +1 -1
  157. package/assets/useTheme-DLZ3E7iB.js +1 -0
  158. package/assets/{verifyHash-0bNfbKAs.js → verifyHash-DZ_VWsuB.js} +1 -1
  159. package/assets/{w3m-modal-L-SoXhRP.js → w3m-modal-BTdIt9gK.js} +1 -1
  160. package/assets/{w3m-modal-Cb8f-N8c.js → w3m-modal-DWDDyMHz.js} +1 -1
  161. package/assets/{wait-for-tx-receipt-DHi00k13.js → wait-for-tx-receipt-BFayfepQ.js} +1 -1
  162. package/assets/{wallets-DQmx7SO4.js → wallets-5iCkp8_7.js} +6 -6
  163. package/assets/{web-connector-DZjwkeRe.js → web-connector-CC3nGcrB.js} +3 -3
  164. package/assets/{writeContract-DzbrR3T0.js → writeContract-CdvSowPF.js} +1 -1
  165. package/assets/{zoraTestnet-CiD1Xv8j.js → zoraTestnet-BZKi9YAz.js} +1 -1
  166. package/index.html +11 -11
  167. package/package.json +2 -2
  168. package/assets/Assets-BLEE2McM.js +0 -1
  169. package/assets/Collection-CEmVbx8y.js +0 -1
  170. package/assets/Creator-CSW1SPi9.js +0 -1
  171. package/assets/ErrorNotice-Rze9rgc9.js +0 -1
  172. package/assets/GetCredits-CovHo4LD.js +0 -1
  173. package/assets/ImportListings-B_GYydG3.js +0 -1
  174. package/assets/ItemDetail-DmBWsg8l.js +0 -2
  175. package/assets/MyAssets-7sMdrGBa.js +0 -1
  176. package/assets/NotFound-COraILzW.js +0 -1
  177. package/assets/StoreSettings-C_SlMQ79.js +0 -1
  178. package/assets/useTheme-bLwsL2uj.js +0 -1
@@ -1,3 +1,3 @@
1
- import{d as G}from"./index-C7dwOEd4.js";/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function P(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function V(e,r){return Array.isArray(r)?r.length===0?!0:e?r.every(n=>typeof n=="string"):r.every(n=>Number.isSafeInteger(n)):!1}function I(e,r){if(typeof r!="string")throw new Error(`${e}: string expected`);return!0}function B(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function v(e){if(!Array.isArray(e))throw new Error("array expected")}function S(e,r){if(!V(!0,r))throw new Error(`${e}: array of strings expected`)}function K(e,r){if(!V(!1,r))throw new Error(`${e}: array of numbers expected`)}function J(...e){const r=s=>s,n=(s,u)=>i=>s(u(i)),b=e.map(s=>s.encode).reduceRight(n,r),d=e.map(s=>s.decode).reduce(n,r);return{encode:b,decode:d}}function Q(e){const r=typeof e=="string"?e.split(""):e,n=r.length;S("alphabet",r);const b=new Map(r.map((d,s)=>[d,s]));return{encode:d=>(v(d),d.map(s=>{if(!Number.isSafeInteger(s)||s<0||s>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${s}". Allowed: ${e}`);return r[s]})),decode:d=>(v(d),d.map(s=>{I("alphabet.decode",s);const u=b.get(s);if(u===void 0)throw new Error(`Unknown letter: "${s}". Allowed: ${e}`);return u}))}}function W(e=""){return I("join",e),{encode:r=>(S("join.decode",r),r.join(e)),decode:r=>(I("join.decode",r),r.split(e))}}function fe(e,r="="){return B(e),I("padding",r),{encode(n){for(S("padding.encode",n);n.length*e%8;)n.push(r);return n},decode(n){S("padding.decode",n);let b=n.length;if(b*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;b>0&&n[b-1]===r;b--)if((b-1)*e%8===0)throw new Error("padding: invalid, string has too much padding");return n.slice(0,b)}}}function _(e,r,n){if(r<2)throw new Error(`convertRadix: invalid from=${r}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: invalid to=${n}, base cannot be less than 2`);if(v(e),!e.length)return[];let b=0;const d=[],s=Array.from(e,i=>{if(B(i),i<0||i>=r)throw new Error(`invalid integer: ${i}`);return i}),u=s.length;for(;;){let i=0,a=!0;for(let w=b;w<u;w++){const p=s[w],x=r*i,A=x+p;if(!Number.isSafeInteger(A)||x/r!==i||A-p!==x)throw new Error("convertRadix: carry overflow");const m=A/n;i=A%n;const l=Math.floor(m);if(s[w]=l,!Number.isSafeInteger(l)||l*n+i!==A)throw new Error("convertRadix: carry overflow");if(a)l?a=!1:b=w;else continue}if(d.push(i),a)break}for(let i=0;i<e.length-1&&e[i]===0;i++)d.push(0);return d.reverse()}const X=(e,r)=>r===0?e:X(r,e%r),$=(e,r)=>e+(r-X(e,r)),R=(()=>{let e=[];for(let r=0;r<40;r++)e.push(2**r);return e})();function F(e,r,n,b){if(v(e),r<=0||r>32)throw new Error(`convertRadix2: wrong from=${r}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if($(r,n)>32)throw new Error(`convertRadix2: carry overflow from=${r} to=${n} carryBits=${$(r,n)}`);let d=0,s=0;const u=R[r],i=R[n]-1,a=[];for(const w of e){if(B(w),w>=u)throw new Error(`convertRadix2: invalid data word=${w} from=${r}`);if(d=d<<r|w,s+r>32)throw new Error(`convertRadix2: carry overflow pos=${s} from=${r}`);for(s+=r;s>=n;s-=n)a.push((d>>s-n&i)>>>0);const p=R[s];if(p===void 0)throw new Error("invalid carry");d&=p-1}if(d=d<<n-s&i,!b&&s>=r)throw new Error("Excess padding");if(!b&&d>0)throw new Error(`Non-zero padding: ${d}`);return b&&s>0&&a.push(d>>>0),a}function ae(e){B(e);const r=2**8;return{encode:n=>{if(!P(n))throw new Error("radix.encode input should be Uint8Array");return _(Array.from(n),r,e)},decode:n=>(K("radix.decode",n),Uint8Array.from(_(n,e,r)))}}function le(e,r=!1){if(B(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if($(8,e)>32||$(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!P(n))throw new Error("radix2.encode input should be Uint8Array");return F(Array.from(n),8,e,!r)},decode:n=>(K("radix2.decode",n),Uint8Array.from(F(n,e,8,r)))}}const be=J(le(5),Q("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),fe(5),W("")),se=e=>J(ae(58),Q(e),W("")),we=se("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function D(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Y(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?D(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function ge(e,r){r||(r=e.reduce((d,s)=>d+s.length,0));const n=Y(r);let b=0;for(const d of e)n.set(d,b),b+=d.length;return D(n)}function Z(e,r,n,b){return{name:e,prefix:r,encoder:{name:e,prefix:r,encode:n},decoder:{decode:b}}}const q=Z("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),T=Z("ascii","a",e=>{let r="a";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r},e=>{e=e.substring(1);const r=Y(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}),ee={utf8:q,"utf-8":q,hex:G.base16,latin1:T,ascii:T,binary:T,...G};function pe(e,r="utf8"){const n=ee[r];if(!n)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?D(globalThis.Buffer.from(e,"utf-8")):n.decoder.decode(`${n.prefix}${e}`)}function ye(e,r="utf8"){const n=ee[r];if(!n)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):n.encoder.encode(e).substring(1)}var H,N;function re(){if(N)return H;N=1;const e="Input must be an string, Buffer or Uint8Array";function r(u){let i;if(u instanceof Uint8Array)i=u;else if(typeof u=="string")i=new TextEncoder().encode(u);else throw new Error(e);return i}function n(u){return Array.prototype.map.call(u,function(i){return(i<16?"0":"")+i.toString(16)}).join("")}function b(u){return(4294967296+u).toString(16).substring(1)}function d(u,i,a){let w=`
1
+ import{d as G}from"./index-DvTTdt4H.js";/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */function P(e){return e instanceof Uint8Array||ArrayBuffer.isView(e)&&e.constructor.name==="Uint8Array"}function V(e,r){return Array.isArray(r)?r.length===0?!0:e?r.every(n=>typeof n=="string"):r.every(n=>Number.isSafeInteger(n)):!1}function I(e,r){if(typeof r!="string")throw new Error(`${e}: string expected`);return!0}function B(e){if(!Number.isSafeInteger(e))throw new Error(`invalid integer: ${e}`)}function v(e){if(!Array.isArray(e))throw new Error("array expected")}function S(e,r){if(!V(!0,r))throw new Error(`${e}: array of strings expected`)}function K(e,r){if(!V(!1,r))throw new Error(`${e}: array of numbers expected`)}function J(...e){const r=s=>s,n=(s,u)=>i=>s(u(i)),b=e.map(s=>s.encode).reduceRight(n,r),d=e.map(s=>s.decode).reduce(n,r);return{encode:b,decode:d}}function Q(e){const r=typeof e=="string"?e.split(""):e,n=r.length;S("alphabet",r);const b=new Map(r.map((d,s)=>[d,s]));return{encode:d=>(v(d),d.map(s=>{if(!Number.isSafeInteger(s)||s<0||s>=n)throw new Error(`alphabet.encode: digit index outside alphabet "${s}". Allowed: ${e}`);return r[s]})),decode:d=>(v(d),d.map(s=>{I("alphabet.decode",s);const u=b.get(s);if(u===void 0)throw new Error(`Unknown letter: "${s}". Allowed: ${e}`);return u}))}}function W(e=""){return I("join",e),{encode:r=>(S("join.decode",r),r.join(e)),decode:r=>(I("join.decode",r),r.split(e))}}function fe(e,r="="){return B(e),I("padding",r),{encode(n){for(S("padding.encode",n);n.length*e%8;)n.push(r);return n},decode(n){S("padding.decode",n);let b=n.length;if(b*e%8)throw new Error("padding: invalid, string should have whole number of bytes");for(;b>0&&n[b-1]===r;b--)if((b-1)*e%8===0)throw new Error("padding: invalid, string has too much padding");return n.slice(0,b)}}}function _(e,r,n){if(r<2)throw new Error(`convertRadix: invalid from=${r}, base cannot be less than 2`);if(n<2)throw new Error(`convertRadix: invalid to=${n}, base cannot be less than 2`);if(v(e),!e.length)return[];let b=0;const d=[],s=Array.from(e,i=>{if(B(i),i<0||i>=r)throw new Error(`invalid integer: ${i}`);return i}),u=s.length;for(;;){let i=0,a=!0;for(let w=b;w<u;w++){const p=s[w],x=r*i,A=x+p;if(!Number.isSafeInteger(A)||x/r!==i||A-p!==x)throw new Error("convertRadix: carry overflow");const m=A/n;i=A%n;const l=Math.floor(m);if(s[w]=l,!Number.isSafeInteger(l)||l*n+i!==A)throw new Error("convertRadix: carry overflow");if(a)l?a=!1:b=w;else continue}if(d.push(i),a)break}for(let i=0;i<e.length-1&&e[i]===0;i++)d.push(0);return d.reverse()}const X=(e,r)=>r===0?e:X(r,e%r),$=(e,r)=>e+(r-X(e,r)),R=(()=>{let e=[];for(let r=0;r<40;r++)e.push(2**r);return e})();function F(e,r,n,b){if(v(e),r<=0||r>32)throw new Error(`convertRadix2: wrong from=${r}`);if(n<=0||n>32)throw new Error(`convertRadix2: wrong to=${n}`);if($(r,n)>32)throw new Error(`convertRadix2: carry overflow from=${r} to=${n} carryBits=${$(r,n)}`);let d=0,s=0;const u=R[r],i=R[n]-1,a=[];for(const w of e){if(B(w),w>=u)throw new Error(`convertRadix2: invalid data word=${w} from=${r}`);if(d=d<<r|w,s+r>32)throw new Error(`convertRadix2: carry overflow pos=${s} from=${r}`);for(s+=r;s>=n;s-=n)a.push((d>>s-n&i)>>>0);const p=R[s];if(p===void 0)throw new Error("invalid carry");d&=p-1}if(d=d<<n-s&i,!b&&s>=r)throw new Error("Excess padding");if(!b&&d>0)throw new Error(`Non-zero padding: ${d}`);return b&&s>0&&a.push(d>>>0),a}function ae(e){B(e);const r=2**8;return{encode:n=>{if(!P(n))throw new Error("radix.encode input should be Uint8Array");return _(Array.from(n),r,e)},decode:n=>(K("radix.decode",n),Uint8Array.from(_(n,e,r)))}}function le(e,r=!1){if(B(e),e<=0||e>32)throw new Error("radix2: bits should be in (0..32]");if($(8,e)>32||$(e,8)>32)throw new Error("radix2: carry overflow");return{encode:n=>{if(!P(n))throw new Error("radix2.encode input should be Uint8Array");return F(Array.from(n),8,e,!r)},decode:n=>(K("radix2.decode",n),Uint8Array.from(F(n,e,8,r)))}}const be=J(le(5),Q("ABCDEFGHIJKLMNOPQRSTUVWXYZ234567"),fe(5),W("")),se=e=>J(ae(58),Q(e),W("")),we=se("123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz");function D(e){return globalThis.Buffer!=null?new Uint8Array(e.buffer,e.byteOffset,e.byteLength):e}function Y(e=0){return globalThis.Buffer!=null&&globalThis.Buffer.allocUnsafe!=null?D(globalThis.Buffer.allocUnsafe(e)):new Uint8Array(e)}function ge(e,r){r||(r=e.reduce((d,s)=>d+s.length,0));const n=Y(r);let b=0;for(const d of e)n.set(d,b),b+=d.length;return D(n)}function Z(e,r,n,b){return{name:e,prefix:r,encoder:{name:e,prefix:r,encode:n},decoder:{decode:b}}}const q=Z("utf8","u",e=>"u"+new TextDecoder("utf8").decode(e),e=>new TextEncoder().encode(e.substring(1))),T=Z("ascii","a",e=>{let r="a";for(let n=0;n<e.length;n++)r+=String.fromCharCode(e[n]);return r},e=>{e=e.substring(1);const r=Y(e.length);for(let n=0;n<e.length;n++)r[n]=e.charCodeAt(n);return r}),ee={utf8:q,"utf-8":q,hex:G.base16,latin1:T,ascii:T,binary:T,...G};function pe(e,r="utf8"){const n=ee[r];if(!n)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?D(globalThis.Buffer.from(e,"utf-8")):n.decoder.decode(`${n.prefix}${e}`)}function ye(e,r="utf8"){const n=ee[r];if(!n)throw new Error(`Unsupported encoding "${r}"`);return(r==="utf8"||r==="utf-8")&&globalThis.Buffer!=null&&globalThis.Buffer.from!=null?globalThis.Buffer.from(e.buffer,e.byteOffset,e.byteLength).toString("utf8"):n.encoder.encode(e).substring(1)}var H,N;function re(){if(N)return H;N=1;const e="Input must be an string, Buffer or Uint8Array";function r(u){let i;if(u instanceof Uint8Array)i=u;else if(typeof u=="string")i=new TextEncoder().encode(u);else throw new Error(e);return i}function n(u){return Array.prototype.map.call(u,function(i){return(i<16?"0":"")+i.toString(16)}).join("")}function b(u){return(4294967296+u).toString(16).substring(1)}function d(u,i,a){let w=`
2
2
  `+u+" = ";for(let p=0;p<i.length;p+=2){if(a===32)w+=b(i[p]).toUpperCase(),w+=" ",w+=b(i[p+1]).toUpperCase();else if(a===64)w+=b(i[p+1]).toUpperCase(),w+=b(i[p]).toUpperCase();else throw new Error("Invalid size "+a);p%6===4?w+=`
3
3
  `+new Array(u.length+4).join(" "):p<i.length-2&&(w+=" ")}console.log(w)}function s(u,i,a){let w=new Date().getTime();const p=new Uint8Array(i);for(let A=0;A<i;A++)p[A]=A%256;const x=new Date().getTime();console.log("Generated random input in "+(x-w)+"ms"),w=x;for(let A=0;A<a;A++){const m=u(p),l=new Date().getTime(),h=l-w;w=l,console.log("Hashed in "+h+"ms: "+m.substring(0,20)+"..."),console.log(Math.round(i/(1<<20)/(h/1e3)*100)/100+" MB PER SECOND")}}return H={normalizeInput:r,toHex:n,debugPrint:d,testSpeed:s},H}var C,O;function ue(){if(O)return C;O=1;const e=re();function r(t,c,o){const g=t[c]+t[o];let y=t[c+1]+t[o+1];g>=4294967296&&y++,t[c]=g,t[c+1]=y}function n(t,c,o,g){let y=t[c]+o;o<0&&(y+=4294967296);let U=t[c+1]+g;y>=4294967296&&U++,t[c]=y,t[c+1]=U}function b(t,c){return t[c]^t[c+1]<<8^t[c+2]<<16^t[c+3]<<24}function d(t,c,o,g,y,U){const ne=w[y],te=w[y+1],oe=w[U],ie=w[U+1];r(a,t,c),n(a,t,ne,te);let k=a[g]^a[t],E=a[g+1]^a[t+1];a[g]=E,a[g+1]=k,r(a,o,g),k=a[c]^a[o],E=a[c+1]^a[o+1],a[c]=k>>>24^E<<8,a[c+1]=E>>>24^k<<8,r(a,t,c),n(a,t,oe,ie),k=a[g]^a[t],E=a[g+1]^a[t+1],a[g]=k>>>16^E<<16,a[g+1]=E>>>16^k<<16,r(a,o,g),k=a[c]^a[o],E=a[c+1]^a[o+1],a[c]=E>>>31^k<<1,a[c+1]=k>>>31^E<<1}const s=new Uint32Array([4089235720,1779033703,2227873595,3144134277,4271175723,1013904242,1595750129,2773480762,2917565137,1359893119,725511199,2600822924,4215389547,528734635,327033209,1541459225]),u=[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0,0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3],i=new Uint8Array(u.map(function(t){return t*2})),a=new Uint32Array(32),w=new Uint32Array(32);function p(t,c){let o=0;for(o=0;o<16;o++)a[o]=t.h[o],a[o+16]=s[o];for(a[24]=a[24]^t.t,a[25]=a[25]^t.t/4294967296,c&&(a[28]=~a[28],a[29]=~a[29]),o=0;o<32;o++)w[o]=b(t.b,4*o);for(o=0;o<12;o++)d(0,8,16,24,i[o*16+0],i[o*16+1]),d(2,10,18,26,i[o*16+2],i[o*16+3]),d(4,12,20,28,i[o*16+4],i[o*16+5]),d(6,14,22,30,i[o*16+6],i[o*16+7]),d(0,10,20,30,i[o*16+8],i[o*16+9]),d(2,12,22,24,i[o*16+10],i[o*16+11]),d(4,14,16,26,i[o*16+12],i[o*16+13]),d(6,8,18,28,i[o*16+14],i[o*16+15]);for(o=0;o<16;o++)t.h[o]=t.h[o]^a[o]^a[o+16]}const x=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0]);function A(t,c,o,g){if(t===0||t>64)throw new Error("Illegal output length, expected 0 < length <= 64");if(c&&c.length>64)throw new Error("Illegal key, expected Uint8Array with 0 < length <= 64");if(o&&o.length!==16)throw new Error("Illegal salt, expected Uint8Array with length is 16");if(g&&g.length!==16)throw new Error("Illegal personal, expected Uint8Array with length is 16");const y={b:new Uint8Array(128),h:new Uint32Array(16),t:0,c:0,outlen:t};x.fill(0),x[0]=t,c&&(x[1]=c.length),x[2]=1,x[3]=1,o&&x.set(o,32),g&&x.set(g,48);for(let U=0;U<16;U++)y.h[U]=s[U]^b(x,U*4);return c&&(m(y,c),y.c=128),y}function m(t,c){for(let o=0;o<c.length;o++)t.c===128&&(t.t+=t.c,p(t,!1),t.c=0),t.b[t.c++]=c[o]}function l(t){for(t.t+=t.c;t.c<128;)t.b[t.c++]=0;p(t,!0);const c=new Uint8Array(t.outlen);for(let o=0;o<t.outlen;o++)c[o]=t.h[o>>2]>>8*(o&3);return c}function h(t,c,o,g,y){o=o||64,t=e.normalizeInput(t),g&&(g=e.normalizeInput(g)),y&&(y=e.normalizeInput(y));const U=A(o,c,g,y);return m(U,t),l(U)}function f(t,c,o,g,y){const U=h(t,c,o,g,y);return e.toHex(U)}return C={blake2b:h,blake2bHex:f,blake2bInit:A,blake2bUpdate:m,blake2bFinal:l},C}var M,z;function ce(){if(z)return M;z=1;const e=re();function r(l,h){return l[h]^l[h+1]<<8^l[h+2]<<16^l[h+3]<<24}function n(l,h,f,t,c,o){u[l]=u[l]+u[h]+c,u[t]=b(u[t]^u[l],16),u[f]=u[f]+u[t],u[h]=b(u[h]^u[f],12),u[l]=u[l]+u[h]+o,u[t]=b(u[t]^u[l],8),u[f]=u[f]+u[t],u[h]=b(u[h]^u[f],7)}function b(l,h){return l>>>h^l<<32-h}const d=new Uint32Array([1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225]),s=new Uint8Array([0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,14,10,4,8,9,15,13,6,1,12,0,2,11,7,5,3,11,8,12,0,5,2,15,13,10,14,3,6,7,1,9,4,7,9,3,1,13,12,11,14,2,6,5,10,4,0,15,8,9,0,5,7,2,4,10,15,14,1,11,12,6,8,3,13,2,12,6,10,0,11,8,3,4,13,7,5,15,14,1,9,12,5,1,15,14,13,4,10,0,7,6,3,9,2,8,11,13,11,7,14,12,1,3,9,5,0,15,4,8,6,2,10,6,15,14,9,11,3,0,8,12,2,13,7,1,4,10,5,10,2,8,4,7,6,1,5,15,11,9,14,3,12,13,0]),u=new Uint32Array(16),i=new Uint32Array(16);function a(l,h){let f=0;for(f=0;f<8;f++)u[f]=l.h[f],u[f+8]=d[f];for(u[12]^=l.t,u[13]^=l.t/4294967296,h&&(u[14]=~u[14]),f=0;f<16;f++)i[f]=r(l.b,4*f);for(f=0;f<10;f++)n(0,4,8,12,i[s[f*16+0]],i[s[f*16+1]]),n(1,5,9,13,i[s[f*16+2]],i[s[f*16+3]]),n(2,6,10,14,i[s[f*16+4]],i[s[f*16+5]]),n(3,7,11,15,i[s[f*16+6]],i[s[f*16+7]]),n(0,5,10,15,i[s[f*16+8]],i[s[f*16+9]]),n(1,6,11,12,i[s[f*16+10]],i[s[f*16+11]]),n(2,7,8,13,i[s[f*16+12]],i[s[f*16+13]]),n(3,4,9,14,i[s[f*16+14]],i[s[f*16+15]]);for(f=0;f<8;f++)l.h[f]^=u[f]^u[f+8]}function w(l,h){if(!(l>0&&l<=32))throw new Error("Incorrect output length, should be in [1, 32]");const f=h?h.length:0;if(h&&!(f>0&&f<=32))throw new Error("Incorrect key length, should be in [1, 32]");const t={h:new Uint32Array(d),b:new Uint8Array(64),c:0,t:0,outlen:l};return t.h[0]^=16842752^f<<8^l,f>0&&(p(t,h),t.c=64),t}function p(l,h){for(let f=0;f<h.length;f++)l.c===64&&(l.t+=l.c,a(l,!1),l.c=0),l.b[l.c++]=h[f]}function x(l){for(l.t+=l.c;l.c<64;)l.b[l.c++]=0;a(l,!0);const h=new Uint8Array(l.outlen);for(let f=0;f<l.outlen;f++)h[f]=l.h[f>>2]>>8*(f&3)&255;return h}function A(l,h,f){f=f||32,l=e.normalizeInput(l);const t=w(f,h);return p(t,l),x(t)}function m(l,h,f){const t=A(l,h,f);return e.toHex(t)}return M={blake2s:A,blake2sHex:m,blake2sInit:w,blake2sUpdate:p,blake2sFinal:x},M}var j,L;function de(){if(L)return j;L=1;const e=ue(),r=ce();return j={blake2b:e.blake2b,blake2bHex:e.blake2bHex,blake2bInit:e.blake2bInit,blake2bUpdate:e.blake2bUpdate,blake2bFinal:e.blake2bFinal,blake2s:r.blake2s,blake2sHex:r.blake2sHex,blake2sInit:r.blake2sInit,blake2sUpdate:r.blake2sUpdate,blake2sFinal:r.blake2sFinal},j}var Ae=de();export{be as a,we as b,ge as c,Ae as d,pe as f,ye as t};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-BHXbWt16.js","assets/sentry-BPJvc5GU.js","assets/react-yytiy0wi.js"])))=>i.map(i=>d[i]);
2
- import{p as gt,b as Yt,i as Zt,I as Qt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as le,x as Q,y as me,z as fe,B as he,C as $,D as pe,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as J,a0 as _e,a1 as kt,a2 as Re,a3 as qe,a4 as lt,a5 as Fe,a6 as Ue,a7 as ke,a8 as Be,a9 as Ne,aa as Bt,ab as Le}from"./parseSignature-BwqWTE77.js";import{ac as vr,ad as Sr,ae as Ar,af as Pr,ag as _r,ah as Rr,ai as qr,aj as Fr,ak as Ur,al as kr,am as Br,an as Nr,ao as Lr,ap as Mr,aq as Dr,ar as zr,as as Gr,at as $r,au as Hr,av as Or,aw as jr,ax as Wr,ay as Vr,az as Jr,aA as Kr,aB as Yr,aC as Zr,aD as Qr,aE as Xr,aF as ts,aG as es,aH as as,aI as ns,aJ as rs,aK as ss,aL as os,aM as is,aN as cs,aO as us,aP as ds,aQ as ls,aR as ms,aS as fs,aT as hs,aU as ps,aV as ys,aW as gs,aX as bs,aY as ws,aZ as xs,a_ as Es,a$ as Is,b0 as Ts,b1 as Cs,b2 as vs,b3 as Ss,b4 as As,b5 as Ps,b6 as _s,b7 as Rs,b8 as qs,b9 as Fs,ba as Us,bb as ks,bc as Bs,bd as Ns,be as Ls,bf as Ms,bg as Ds,bh as zs,bi as Gs,bj as $s,bk as Hs,bl as Os,bm as js,bn as Ws,bo as Vs,bp as Js,bq as Ks,br as Ys,bs as Zs,bt as Qs,bu as Xs,bv as to,bw as eo,bx as ao,by as no,bz as ro,br as so,bA as oo,bB as io,bC as co,bD as uo,bE as lo,bF as mo,bG as fo,bH as ho,bH as po,bI as yo,bJ as go,bi as bo,bj as wo,bK as xo,bL as Eo,bM as Io,bN as To,bO as Co}from"./parseSignature-BwqWTE77.js";import{T as B,b9 as k,U as Me,I as Y,ba as De,G as ze,bb as Ge,X as H,_ as ct,$ as G,B as mt,D as E,P as $e,a7 as He,bc as j,a6 as wt,R as Nt,bd as Lt,d as Mt,L as R,F as ft,A as F,be as A,M as Oe,N as je,bf as We,bg as xt,aG as ht,J as Ve,bh as Je,bi as Ke,bj as Ye,bk as Et}from"./signing-BT7JgIF_.js";import{bl as So,bm as Ao,bn as Po,bo as _o,bp as Ro,bq as qo,br as Fo,bs as Uo,bt as ko,bu as Bo,bv as No,bw as Lo,bx as Mo,by as Do,bz as zo,Q as Go,bA as $o,bB as Ho,bC as Oo,bD as jo,bE as Wo,bF as Vo,bG as Jo,bH as Ko,bI as Yo,bJ as Zo,bK as Qo,bL as Xo,bM as ti,bN as ei,bO as ai,bP as ni,bQ as ri,bR as si,bS as oi,bT as ii,bU as ci,bV as ui,E as di,bW as li,bX as mi,bY as fi,bZ as hi,b_ as pi,p as yi,b$ as gi,at as bi,au as wi,c0 as xi,c1 as Ei,c2 as Ii,c3 as Ti,c4 as Ci,f as vi,c4 as Si,c5 as Ai,c6 as Pi,c7 as _i,c8 as Ri,c9 as qi,ca as Fi,cb as Ui,cc as ki,cd as Bi,C as Ni,ce as Li,c3 as Mi,c4 as Di,ce as zi,f as Gi,c4 as $i,z as Hi}from"./signing-BT7JgIF_.js";import{w as Ze,h as Qe,g as Xe,v as ta,s as ea}from"./hashTypedData-B9EX4kQr.js";import{I as ji,a as Wi,b as Vi,d as Ji,c as Ki,e as Yi}from"./hashTypedData-B9EX4kQr.js";import{T as aa,a as Z,W as It,b as na,U as ra,R as sa}from"./rpc-DmLUQYS0.js";import{A as Qi,c as Xi,B as tc,C as ec,D as ac,H as nc,I as rc,d as sc,e as oc,f as ic,J as cc,L as uc,M as dc,h as lc,P as mc,i as fc,j as hc,k as pc,l as yc,m as gc,S as bc,n as wc,o as xc,p as Ec,q as Ic,r as Tc,s as Cc}from"./rpc-DmLUQYS0.js";import{_ as oa}from"./index-CDzDnyJW.js";import{t as ia,H as ca}from"./sha256-D-WKRl2Q.js";import{b as Sc,h as Ac,a as Pc,c as _c,d as Rc,e as qc,f as Fc,g as Uc,i as kc,j as Bc,k as Nc,l as Lc,n as Mc,o as Dc,p as zc,q as Gc,r as $c,u as Hc,v as Oc,w as jc,x as Wc,y as Vc,z as Jc,A as Kc,B as Yc,C as Zc,D as Qc,E as Xc,F as tu,G as eu,I as au,J as nu,K as ru,L as su,M as ou,N as iu,O as cu,P as uu,Q as du,R as lu,S as mu,m as fu,T as hu,U as pu,V as yu,W as gu,X as bu,Y as wu,Z as xu,_ as Eu,$ as Iu,a0 as Tu,a1 as Cu,a2 as vu,a3 as Su,a4 as Au,a5 as Pu,a6 as _u,a7 as Ru,a8 as qu,a9 as Fu,aa as Uu,ab as ku,ac as Bu,ad as Nu,ae as Lu,af as Mu,ag as Du,ah as zu,ai as Gu,aj as $u,ak as Hu,al as Ou,am as ju,an as Wu,ao as Vu,ap as Ju,aq as Ku,ar as Yu,as as Zu,at as Qu,au as Xu,av as td,aw as ed,ax as ad,ay as nd,az as rd,aA as sd,aB as od,aC as id,aD as cd,aE as ud,aF as dd,aG as ld,aH as md,aI as fd,aJ as hd,aK as pd,s as yd}from"./sha256-D-WKRl2Q.js";import{ccipRequest as bd,ccipRequest as wd,offchainLookup as xd,offchainLookupAbiItem as Ed,offchainLookupSignature as Id}from"./ccip-C1ke5tRS.js";import{d as Cd,a as vd,f as Sd}from"./transactionReceipt-DWMHa3N1.js";import"./utils-CsEYBURh.js";import"./sentry-BPJvc5GU.js";import"./react-yytiy0wi.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-w2AslR0v.js";import"./intl-CBcMB1D2.js";function Jn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Zt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Qt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:m,...h}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,p=Xt({abi:u,args:i,functionName:m});try{return await U(a,n,r)({data:`${p}${f?f.replace("0x",""):""}`,to:c,account:o,...h})}catch(l){throw te(l,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:m,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Kn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,m=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?i=!0:f=!0:h.type==="event"&&(m=!0),i&&f&&m)break;return u&&(i&&(c.read=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),f&&(c.simulate=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),m&&(c.createEventFilter=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:l,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Yn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=B(k(t.from));let a=B(t.nonce);return a[0]===0&&(a=new Uint8Array([])),k(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=B(k(t.from)),a=Me(Tt(t.salt)?t.salt:B(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:B(t.bytecodeHash):Y(t.bytecode,"bytes");return k(De(Y(ze([B("0xff"),e,a,n])),12))}function Zn({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return la(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new mt("Invalid RLP prefix")}function la(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function ma(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ha=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[ha]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),pa=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,m=this.h4|0,h=m;for(let o=0;o<5;o++){const p=4-o,l=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=pa[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+l,C[x])+m|0;n=m,m=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(p,u,c,f)+V[g[x]]+y,b[x])+h|0;r=h,h=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+h|0,this.h3+m+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function Qn(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?B(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let m=0;const{schedule:h}=ie({id:i,fn:async()=>{const l=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&m<d){if(b)return;b=!0,m++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else l.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of l.values())(v=S.onError)==null||v.call(S,new Z({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Z({url:s}));x()},onError(v){var P,S;w=v;for(const _ of l.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,m=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:l,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};l.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Ze(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:l,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[p]]=await h();return p}async function K(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-BHXbWt16.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",m),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function m({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const p=JSON.parse(o);d(p)}catch(p){s(p)}}i.addEventListener("close",f),i.addEventListener("message",m),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,p)=>{i&&(i.onopen=o,i.onerror=p)});const{close:h}=i;return Object.assign(i,{close(){h.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Z({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Z({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await K(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function Xn(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function tr(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=le(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Q({hash:me(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Q({hash:Qe({domain:e,message:a,primaryType:n,types:s}),signature:r})}function er(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:H(s)}async function ar({address:t,hash:e,signature:a}){return ft(k(t),await Q({hash:e,signature:a}))}async function nr({address:t,message:e,signature:a}){return ft(k(t),await Sa({message:e,signature:a}))}async function rr(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return ft(k(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new he({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):ka(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o,p]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:m,...e.length>9?{v:h,r:o,s:p}:{}},serializedTransaction:t,type:"eip7702"});const l={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(l.to=d),E(u)&&u!=="0x"&&(l.gas=A(u)),E(i)&&i!=="0x"&&(l.data=i),E(n)&&(l.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(l.value=A(c)),E(s)&&s!=="0x"&&(l.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(l.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(l.accessList=tt(f)),m.length!==0&&m!=="0x"&&(l.authorizationList=Ba(m)),we(l),{...e.length===13?O(e):void 0,...l}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,m,h,o,p,l,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:m,data:h,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:l,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(h)&&h!=="0x"&&(I.data=h),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(m)&&m!=="0x"&&(I.value=A(m)),E(p)&&p!=="0x"&&(I.maxFeePerBlobGas=A(p)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:m,r:h,s:o}:{}},serializedTransaction:t,type:"eip1559"});const p={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(p.to=d),E(u)&&u!=="0x"&&(p.gas=A(u)),E(i)&&i!=="0x"&&(p.data=i),E(n)&&(p.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(p.value=A(c)),E(s)&&s!=="0x"&&(p.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(p.accessList=tt(f)),pe(p),{...e.length===12?O(e):void 0,...p}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:m,s:h}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function ka(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const m={type:"legacy"};if(E(s)&&s!=="0x"&&(m.to=s),E(r)&&r!=="0x"&&(m.gas=A(r)),E(d)&&d!=="0x"&&(m.data=d),E(a)&&(m.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(m.value=A(u)),E(n)&&n!=="0x"&&(m.gasPrice=A(n)),xe(m),e.length===6)return m;const h=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return h>0&&(m.chainId=Number(h)),m;const o=h,p=Number((o-35n)/2n);if(p>0)m.chainId=p;else if(o!==27n&&o!==28n)throw new Ee({v:o});return m.v=o,m.s=f,m.r=i,m.yParity=o%2n===0n?1:0,m}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>ma(s)?s:We(s))})}return e}function Ba(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends mt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function sr(t,e="wei"){return Wt(t,Ie[e])}function or(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ja(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ka(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m,...h}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,l=(o||ht)({...St(h,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[l]})}async function Za(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Qa(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function ln(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function mn(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function hn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ja(a,n),revert:n=>Ka(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Za(a,n),setBalance:n=>Qa(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>ln(a,n),snapshot:()=>mn(a),stopImpersonatingAccount:n=>fn(a,n)}}}function ir(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...hn({mode:n})(s)}))}async function pn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,m]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=m}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>k(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Je(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,pollingInterval:p,throwOnReceiptRevert:l,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new mt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ht)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,to:P,type:y,value:w},"sendTransaction"),pt=ot.get(t.uid),Jt=pt?"wallet_sendTransaction":"eth_sendTransaction",Kt=await(async()=>{try{return await t.request({method:Jt,params:[z]},{retryCount:0})}catch(yt){if(pt===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Kt,pollingInterval:p,timeout:C});if(l&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:l})}throw(b==null?void 0:b.type)==="smart"?new J({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new J({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof J?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new J({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await kt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Ke(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,m,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ht;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(h=(m=t.chain)==null?void 0:m.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>pn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>kt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function cr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function ur(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>lt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function dr(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...m})=>{let h=t,o=()=>{};const p=lt({key:a,name:n,async request({method:l,params:y}){let w;const g=async(C=0)=>{const b=h[C]({...m,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:l,params:y});return o({method:l,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:l,params:y,transport:b,status:"error"}),s(x)||C===h.length-1||(w??(w=h.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(l):v?!v.includes(l):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:l=>o=l,transports:h.map(l=>l({chain:c,retryCount:0}))});if(r){const l=typeof r=="object"?r:{};Un({chain:c,interval:l.interval??i,onTransports:y=>h=y,ping:l.ping,sampleCount:l.sampleCount,timeout:l.timeout,transports:h,weights:l.weights})}return p})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],m=async()=>{const h=await Promise.all(u.map(async l=>{const y=l({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(h),f.length>r&&f.shift();const o=Math.max(...f.map(l=>Math.max(...l.map(({latency:y})=>y)))),p=u.map((l,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((l,y)=>y[0]-l[0]);a(p.map(([,l])=>u[l])),await Ue(e),m()};m()}function lr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var l;const m=e.retryCount??i,h=f??e.timeout??1e4,o=t||((l=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:l[0]),p={keepAlive:a,reconnect:u};if(!o)throw new ke;return lt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await K(o,p),{error:b,result:x}=await C.requestAsync({body:g,timeout:h});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:m,retryDelay:d,timeout:h,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return K(o,p)},async subscribe({params:y,onData:w,onError:g}){const C=await K(o,p),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class mr extends Error{constructor(e,a){super(a),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=a}}const it="/docs/contract/decodeDeployData";function fr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function hr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const m=c.readByte();if(m===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(m)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function pr(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(Be({commitment:s,to:n,version:a}));return r}const kn=2147483648;function yr(t){if(t===1)return 60n;if(t>=kn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function Bn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function gr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return Bn(t)}function br({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function wr(t){const{r:e,s:a}=Bt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function xr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Q({hash:Y(s),signature:r})}function Er({r:t,yParityAndS:e}){return`0x${new Bt.Signature(A(t),A(e)).toCompactHex()}`}function Ir(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,So as AbiDecodingDataSizeInvalidError,Ao as AbiDecodingDataSizeTooSmallError,Po as AbiDecodingZeroDataError,_o as AbiEncodingArrayLengthMismatchError,Ro as AbiEncodingBytesSizeMismatchError,qo as AbiEncodingLengthMismatchError,Fo as AbiErrorInputsNotFoundError,Uo as AbiErrorNotFoundError,ko as AbiErrorSignatureNotFoundError,Bo as AbiEventNotFoundError,No as AbiEventSignatureEmptyTopicsError,Lo as AbiEventSignatureNotFoundError,Mo as AbiFunctionNotFoundError,Do as AbiFunctionOutputsNotFoundError,zo as AbiFunctionSignatureNotFoundError,vr as AccountStateConflictError,Qi as AtomicReadyWalletRejectedUpgradeError,Xi as AtomicityNotSupportedError,mt as BaseError,Sr as BaseFeeScalarError,Ar as BlockNotFoundError,Pr as BundleFailedError,tc as BundleTooLargeError,Go as BytesSizeMismatchError,_r as CallExecutionError,ec as ChainDisconnectedError,Rr as ChainDoesNotSupportContract,qr as ChainMismatchError,Fr as ChainNotFoundError,Ur as CircularReferenceError,kr as ClientChainNotConfiguredError,Br as ContractFunctionExecutionError,Nr as ContractFunctionRevertedError,Lr as ContractFunctionZeroDataError,Mr as CounterfactualDeploymentFailedError,$o as DecodeLogDataMismatch,Ho as DecodeLogTopicsMismatch,ac as DuplicateIdError,mr as EIP1193ProviderRpcError,Dr as Eip1559FeesNotSupportedError,zr as EnsAvatarInvalidNftUriError,Gr as EnsAvatarUnsupportedNamespaceError,$r as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,Hr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Or as FeeCapTooHighError,jr as FeeCapTooLowError,Wr as FeeConflictError,Oo as FilterTypeNotSupportedError,nc as HttpRequestError,Vr as InsufficientFundsError,jo as IntegerOutOfRangeError,rc as InternalRpcError,Jr as IntrinsicGasTooHighError,Kr as IntrinsicGasTooLowError,Wo as InvalidAbiDecodingTypeError,Vo as InvalidAbiEncodingTypeError,Yr as InvalidAbiItemError,Qt as InvalidAbiParameterError,Zr as InvalidAbiParametersError,Qr as InvalidAbiTypeParameterError,je as InvalidAddressError,Jo as InvalidArrayError,Ko as InvalidBytesBooleanError,Xr as InvalidChainIdError,Na as InvalidDecimalNumberError,Yo as InvalidDefinitionTypeError,ji as InvalidDomainError,ts as InvalidFunctionModifierError,Zo as InvalidHexBooleanError,Ge as InvalidHexValueError,sc as InvalidInputRpcError,Ee as InvalidLegacyVError,es as InvalidModifierError,as as InvalidParameterError,oc as InvalidParamsRpcError,ns as InvalidParenthesisError,Wi as InvalidPrimaryTypeError,ic as InvalidRequestRpcError,rs as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,ss as InvalidSignatureError,os as InvalidStorageKeySizeError,is as InvalidStructSignatureError,Vi as InvalidStructTypeError,cc as JsonRpcVersionUnsupportedError,uc as LimitExceededRpcError,cs as MaxFeePerGasTooLowError,dc as MethodNotFoundRpcError,lc as MethodNotSupportedRpcError,us as NonceMaxValueError,ds as NonceTooHighError,ls as NonceTooLowError,mc as ParseRpcError,fc as ProviderDisconnectedError,hc as ProviderRpcError,ms as RawContractError,pc as ResourceNotFoundRpcError,yc as ResourceUnavailableRpcError,gc as RpcError,sa as RpcRequestError,Qo as SizeExceedsPaddingSizeError,Xo as SizeOverflowError,ti as SliceOffsetOutOfBoundsError,Z as SocketClosedError,fs as SolidityProtectedKeywordError,hs as StateAssignmentConflictError,bc as SwitchChainError,aa as TimeoutError,ps as TipAboveFeeCapError,ys as TransactionExecutionError,gs as TransactionNotFoundError,bs as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,ws as TransactionTypeNotSupportedError,wc as UnauthorizedProviderError,xc as UnknownBundleIdError,xs as UnknownNodeError,Ec as UnknownRpcError,Es as UnknownSignatureError,Is as UnknownTypeError,Ic as UnsupportedChainIdError,Tc as UnsupportedNonOptionalCapabilityError,ei as UnsupportedPackedAbiType,Cc as UnsupportedProviderMethodError,ke as UrlRequiredError,ra as UserRejectedRequestError,Ts as WaitForCallsStatusTimeoutError,Cs as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,vs as blobsToCommitments,Ss as blobsToProofs,ai as boolToBytes,ni as boolToHex,ri as bytesToBigInt,si as bytesToBool,G as bytesToHex,oi as bytesToNumber,Sc as bytesToRlp,ii as bytesToString,bd as ccipFetch,wd as ccipRequest,Ve as checksumAddress,Be as commitmentToVersionedHash,As as commitmentsToVersionedHashes,Er as compactSignatureToHex,br as compactSignatureToSignature,ze as concat,ci as concatBytes,ui as concatHex,At as createClient,Ps as createNonceManager,_s as createPublicClient,ir as createTestClient,lt as createTransport,cr as createWalletClient,ur as custom,Mt as decodeAbiParameters,fr as decodeDeployData,di as decodeErrorResult,li as decodeEventLog,Rs as decodeFunctionData,qs as decodeFunctionResult,mi as defineBlock,fi as defineChain,Bn as defineKzg,hi as defineTransaction,Cd as defineTransactionReceipt,pi as defineTransactionRequest,Fs as deploylessCallViaBytecodeBytecode,Us as deploylessCallViaFactoryBytecode,Ji as domainSeparator,yi as encodeAbiParameters,Ce as encodeDeployData,ks as encodeErrorResult,gi as encodeEventTopics,Xt as encodeFunctionData,Bs as encodeFunctionResult,Ns as encodePacked,Ls as erc1155Abi,Ms as erc20Abi,Ds as erc20Abi_bytes32,zs as erc4626Abi,Gs as erc6492SignatureValidatorAbi,$s as erc6492SignatureValidatorByteCode,Hs as erc721Abi,Os as ethAddress,Ie as etherUnits,Zn as extractChain,dr as fallback,bi as formatBlock,js as formatEther,Ws as formatGwei,vd as formatLog,wi as formatTransaction,Sd as formatTransactionReceipt,ht as formatTransactionRequest,Vs as formatUnits,hr as fromBlobs,xi as fromBytes,Ei as fromHex,Dt as fromRlp,Ii as getAbiItem,k as getAddress,Js as getChainContractAddress,Kn as getContract,Yn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,Ti as getEventSelector,Ci as getEventSignature,vi as getFunctionSelector,Si as getFunctionSignature,Pa as getSerializedTransactionType,Ks as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Ki as hashDomain,me as hashMessage,Yi as hashStruct,Qe as hashTypedData,A as hexToBigInt,Ai as hexToBool,H as hexToBytes,wr as hexToCompactSignature,F as hexToNumber,Ac as hexToRlp,Ys as hexToSignature,Pi as hexToString,Zs as http,Oe as isAddress,ft as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,ma as isHash,E as isHex,Y as keccak256,Qs as labelhash,Pc as maxInt104,_c as maxInt112,Rc as maxInt120,qc as maxInt128,Fc as maxInt136,Uc as maxInt144,kc as maxInt152,Bc as maxInt16,Nc as maxInt160,Lc as maxInt168,Mc as maxInt176,Dc as maxInt184,zc as maxInt192,Gc as maxInt200,$c as maxInt208,Hc as maxInt216,Oc as maxInt224,jc as maxInt232,Wc as maxInt24,Vc as maxInt240,Jc as maxInt248,Kc as maxInt256,Yc as maxInt32,Zc as maxInt40,Qc as maxInt48,Xc as maxInt56,tu as maxInt64,eu as maxInt72,au as maxInt8,nu as maxInt80,ru as maxInt88,su as maxInt96,ou as maxUint104,iu as maxUint112,cu as maxUint120,uu as maxUint128,du as maxUint136,lu as maxUint144,mu as maxUint152,fu as maxUint16,hu as maxUint160,pu as maxUint168,yu as maxUint176,gu as maxUint184,bu as maxUint192,wu as maxUint200,xu as maxUint208,Eu as maxUint216,Iu as maxUint224,Tu as maxUint232,Cu as maxUint24,vu as maxUint240,Su as maxUint248,Au as maxUint256,Pu as maxUint32,_u as maxUint40,Ru as maxUint48,qu as maxUint56,Fu as maxUint64,Uu as maxUint72,ku as maxUint8,Bu as maxUint80,Nu as maxUint88,Lu as maxUint96,Mu as minInt104,Du as minInt112,zu as minInt120,Gu as minInt128,$u as minInt136,Hu as minInt144,Ou as minInt152,ju as minInt16,Wu as minInt160,Vu as minInt168,Ju as minInt176,Ku as minInt184,Yu as minInt192,Zu as minInt200,Qu as minInt208,Xu as minInt216,td as minInt224,ed as minInt232,ad as minInt24,nd as minInt240,rd as minInt248,sd as minInt256,od as minInt32,id as minInt40,cd as minInt48,ud as minInt56,dd as minInt64,ld as minInt72,md as minInt8,fd as minInt80,hd as minInt88,pd as minInt96,Xs as multicall3Abi,to as namehash,eo as nonceManager,_i as numberToBytes,R as numberToHex,xd as offchainLookup,Ed as offchainLookupAbiItem,Id as offchainLookupSignature,Me as pad,Ri as padBytes,xt as padHex,ao as parseAbi,no as parseAbiItem,Jn as parseAbiParameter,ro as parseAbiParameters,wr as parseCompactSignature,Xn as parseErc6492Signature,tr as parseErc8010Signature,sr as parseEther,qi as parseEventLogs,or as parseGwei,so as parseSignature,_a as parseTransaction,Wt as parseUnits,oo as prepareEncodeFunctionData,io as presignMessagePrefix,co as publicActions,Q as recoverAddress,Sa as recoverMessageAddress,uo as recoverPublicKey,xr as recoverTransactionAddress,Aa as recoverTypedDataAddress,Qn as ripemd160,lo as rpcSchema,Fi as rpcTransactionType,mo as serializeAccessList,Er as serializeCompactSignature,fo as serializeErc6492Signature,er as serializeErc8010Signature,ho as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Ui as setErrorConfig,gr as setupKzg,yd as sha256,Fn as shouldThrow,pr as sidecarsToVersionedHashes,Ir as signatureToCompactSignature,po as signatureToHex,$e as size,De as slice,ki as sliceBytes,Lt as sliceHex,Bi as stringToBytes,Ke as stringToHex,Ni as stringify,hn as testActions,ge as toBlobSidecars,yo as toBlobs,B as toBytes,yr as toCoinType,Li as toEventHash,Mi as toEventSelector,Di as toEventSignature,zi as toFunctionHash,Gi as toFunctionSelector,$i as toFunctionSignature,Nt as toHex,go as toPrefixedMessage,ia as toRlp,Hi as transactionType,We as trim,bo as universalSignatureValidatorAbi,wo as universalSignatureValidatorByteCode,ta as validateTypedData,ar as verifyHash,nr as verifyMessage,rr as verifyTypedData,qn as walletActions,lr as webSocket,xo as weiUnits,Eo as withCache,Io as withRetry,Ze as withTimeout,To as zeroAddress,Co as zeroHash};
2
+ import{p as gt,b as Yt,i as Zt,I as Qt,m as bt,s as ut,A as D,e as Xt,g as U,d as te,f as N,r as ee,h as ae,j as ne,k as re,w as se,n as oe,o as ie,q as ce,t as ue,v as de,u as le,x as Q,y as me,z as fe,B as he,C as $,D as pe,E as ye,F as ge,G as be,H as we,J as xe,K as Ee,L as Ie,M as Te,N as St,O as At,P as Ce,Q as Pt,R as _t,S as Rt,T as ve,U as dt,V as qt,W as Se,X as Ae,Y as Ft,Z as Pe,_ as Ut,$ as J,a0 as _e,a1 as kt,a2 as Re,a3 as qe,a4 as lt,a5 as Fe,a6 as Ue,a7 as ke,a8 as Be,a9 as Ne,aa as Bt,ab as Le}from"./parseSignature-EO4YSoUl.js";import{ac as vr,ad as Sr,ae as Ar,af as Pr,ag as _r,ah as Rr,ai as qr,aj as Fr,ak as Ur,al as kr,am as Br,an as Nr,ao as Lr,ap as Mr,aq as Dr,ar as zr,as as Gr,at as $r,au as Hr,av as Or,aw as jr,ax as Wr,ay as Vr,az as Jr,aA as Kr,aB as Yr,aC as Zr,aD as Qr,aE as Xr,aF as ts,aG as es,aH as as,aI as ns,aJ as rs,aK as ss,aL as os,aM as is,aN as cs,aO as us,aP as ds,aQ as ls,aR as ms,aS as fs,aT as hs,aU as ps,aV as ys,aW as gs,aX as bs,aY as ws,aZ as xs,a_ as Es,a$ as Is,b0 as Ts,b1 as Cs,b2 as vs,b3 as Ss,b4 as As,b5 as Ps,b6 as _s,b7 as Rs,b8 as qs,b9 as Fs,ba as Us,bb as ks,bc as Bs,bd as Ns,be as Ls,bf as Ms,bg as Ds,bh as zs,bi as Gs,bj as $s,bk as Hs,bl as Os,bm as js,bn as Ws,bo as Vs,bp as Js,bq as Ks,br as Ys,bs as Zs,bt as Qs,bu as Xs,bv as to,bw as eo,bx as ao,by as no,bz as ro,br as so,bA as oo,bB as io,bC as co,bD as uo,bE as lo,bF as mo,bG as fo,bH as ho,bH as po,bI as yo,bJ as go,bi as bo,bj as wo,bK as xo,bL as Eo,bM as Io,bN as To,bO as Co}from"./parseSignature-EO4YSoUl.js";import{T as B,b9 as k,U as Me,I as Y,ba as De,G as ze,bb as Ge,X as H,_ as ct,$ as G,B as mt,D as E,P as $e,a7 as He,bc as j,a6 as wt,R as Nt,bd as Lt,d as Mt,L as R,F as ft,A as F,be as A,M as Oe,N as je,bf as We,bg as xt,aG as ht,J as Ve,bh as Je,bi as Ke,bj as Ye,bk as Et}from"./signing-BbFSmiZg.js";import{bl as So,bm as Ao,bn as Po,bo as _o,bp as Ro,bq as qo,br as Fo,bs as Uo,bt as ko,bu as Bo,bv as No,bw as Lo,bx as Mo,by as Do,bz as zo,Q as Go,bA as $o,bB as Ho,bC as Oo,bD as jo,bE as Wo,bF as Vo,bG as Jo,bH as Ko,bI as Yo,bJ as Zo,bK as Qo,bL as Xo,bM as ti,bN as ei,bO as ai,bP as ni,bQ as ri,bR as si,bS as oi,bT as ii,bU as ci,bV as ui,E as di,bW as li,bX as mi,bY as fi,bZ as hi,b_ as pi,p as yi,b$ as gi,at as bi,au as wi,c0 as xi,c1 as Ei,c2 as Ii,c3 as Ti,c4 as Ci,f as vi,c4 as Si,c5 as Ai,c6 as Pi,c7 as _i,c8 as Ri,c9 as qi,ca as Fi,cb as Ui,cc as ki,cd as Bi,C as Ni,ce as Li,c3 as Mi,c4 as Di,ce as zi,f as Gi,c4 as $i,z as Hi}from"./signing-BbFSmiZg.js";import{w as Ze,h as Qe,g as Xe,v as ta,s as ea}from"./hashTypedData--AK2ZmGf.js";import{I as ji,a as Wi,b as Vi,d as Ji,c as Ki,e as Yi}from"./hashTypedData--AK2ZmGf.js";import{T as aa,a as Z,W as It,b as na,U as ra,R as sa}from"./rpc-BuwiLkbO.js";import{A as Qi,c as Xi,B as tc,C as ec,D as ac,H as nc,I as rc,d as sc,e as oc,f as ic,J as cc,L as uc,M as dc,h as lc,P as mc,i as fc,j as hc,k as pc,l as yc,m as gc,S as bc,n as wc,o as xc,p as Ec,q as Ic,r as Tc,s as Cc}from"./rpc-BuwiLkbO.js";import{_ as oa}from"./index-CzmwWbz1.js";import{t as ia,H as ca}from"./sha256-DynB7XkZ.js";import{b as Sc,h as Ac,a as Pc,c as _c,d as Rc,e as qc,f as Fc,g as Uc,i as kc,j as Bc,k as Nc,l as Lc,n as Mc,o as Dc,p as zc,q as Gc,r as $c,u as Hc,v as Oc,w as jc,x as Wc,y as Vc,z as Jc,A as Kc,B as Yc,C as Zc,D as Qc,E as Xc,F as tu,G as eu,I as au,J as nu,K as ru,L as su,M as ou,N as iu,O as cu,P as uu,Q as du,R as lu,S as mu,m as fu,T as hu,U as pu,V as yu,W as gu,X as bu,Y as wu,Z as xu,_ as Eu,$ as Iu,a0 as Tu,a1 as Cu,a2 as vu,a3 as Su,a4 as Au,a5 as Pu,a6 as _u,a7 as Ru,a8 as qu,a9 as Fu,aa as Uu,ab as ku,ac as Bu,ad as Nu,ae as Lu,af as Mu,ag as Du,ah as zu,ai as Gu,aj as $u,ak as Hu,al as Ou,am as ju,an as Wu,ao as Vu,ap as Ju,aq as Ku,ar as Yu,as as Zu,at as Qu,au as Xu,av as td,aw as ed,ax as ad,ay as nd,az as rd,aA as sd,aB as od,aC as id,aD as cd,aE as ud,aF as dd,aG as ld,aH as md,aI as fd,aJ as hd,aK as pd,s as yd}from"./sha256-DynB7XkZ.js";import{ccipRequest as bd,ccipRequest as wd,offchainLookup as xd,offchainLookupAbiItem as Ed,offchainLookupSignature as Id}from"./ccip-ChPEdTqV.js";import{d as Cd,a as vd,f as Sd}from"./transactionReceipt-BwIePvtD.js";import"./utils-CsEYBURh.js";import"./sentry-BPJvc5GU.js";import"./react-yytiy0wi.js";import"./dcl-schemas-BICTSpB5.js";import"./ethers-w2AslR0v.js";import"./intl-CBcMB1D2.js";function Jn(t){let e;if(typeof t=="string")e=gt(t,{modifiers:bt});else{const a=Yt(t),n=t.length;for(let r=0;r<n;r++){const s=t[r];if(!Zt(s)){e=gt(s,{modifiers:bt,structs:a});break}}}if(!e)throw new Qt({param:t});return e}async function M(t,e){return M.internal(t,ut,"sendTransaction",e)}(function(t){async function e(a,n,r,s){const{abi:u,account:d=a.account,address:c,args:i,dataSuffix:f,functionName:m,...h}=s;if(typeof d>"u")throw new D({docsPath:"/docs/contract/writeContract"});const o=d?N(d):null,p=Xt({abi:u,args:i,functionName:m});try{return await U(a,n,r)({data:`${p}${f?f.replace("0x",""):""}`,to:c,account:o,...h})}catch(l){throw te(l,{abi:u,address:c,args:i,docsPath:"/docs/contract/writeContract",functionName:m,sender:o==null?void 0:o.address})}}t.internal=e})(M||(M={}));function Kn({abi:t,address:e,client:a}){const n=a,[r,s]=n?"public"in n&&"wallet"in n?[n.public,n.wallet]:"public"in n?[n.public,void 0]:"wallet"in n?[void 0,n.wallet]:[n,n]:[void 0,void 0],u=r!=null,d=s!=null,c={};let i=!1,f=!1,m=!1;for(const h of t)if(h.type==="function"?h.stateMutability==="view"||h.stateMutability==="pure"?i=!0:f=!0:h.type==="event"&&(m=!0),i&&f&&m)break;return u&&(i&&(c.read=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ee,"readContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),f&&(c.simulate=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r,ae,"simulateContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),m&&(c.createEventFilter=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,ne,"createContractEventFilter")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.getEvents=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,re,"getContractEvents")({abi:t,address:e,eventName:o,args:y,...w})}}}),c.watchEvent=new Proxy({},{get(h,o){return(...p)=>{const l=t.find(g=>g.type==="event"&&g.name===o),{args:y,options:w}=rt(p,l);return U(r,se,"watchContractEvent")({abi:t,address:e,eventName:o,args:y,...w})}}}))),d&&f&&(c.write=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(s,M,"writeContract")({abi:t,address:e,functionName:o,args:l,...y})}}})),(u||d)&&f&&(c.estimateGas=new Proxy({},{get(h,o){return(...p)=>{const{args:l,options:y}=W(p);return U(r??s,oe,"estimateContractGas")({abi:t,address:e,functionName:o,args:l,...y,account:y.account??s.account})}}})),c.address=e,c.abi=t,c}function W(t){const e=t.length&&Array.isArray(t[0]),a=e?t[0]:[],n=(e?t[1]:t[0])??{};return{args:a,options:n}}function rt(t,e){let a=!1;Array.isArray(t[0])?a=!0:t.length===1?a=e.inputs.some(s=>s.indexed):t.length===2&&(a=!0);const n=a?t[0]:void 0,r=(a?t[1]:t[0])??{};return{args:n,options:r}}function Tt(t){return!t||typeof t!="object"||!("BYTES_PER_ELEMENT"in t)?!1:t.BYTES_PER_ELEMENT===1&&t.constructor.name==="Uint8Array"}function Yn(t){return t.opcode==="CREATE2"?da(t):ua(t)}function ua(t){const e=B(k(t.from));let a=B(t.nonce);return a[0]===0&&(a=new Uint8Array([])),k(`0x${Y(ia([e,a],"bytes")).slice(26)}`)}function da(t){const e=B(k(t.from)),a=Me(Tt(t.salt)?t.salt:B(t.salt),{size:32}),n="bytecodeHash"in t?Tt(t.bytecodeHash)?t.bytecodeHash:B(t.bytecodeHash):Y(t.bytecode,"bytes");return k(De(Y(ze([B("0xff"),e,a,n])),12))}function Zn({chains:t,id:e}){return t.find(a=>a.id===e)}function Dt(t,e="hex"){const a=(()=>{if(typeof t=="string"){if(t.length>3&&t.length%2!==0)throw new Ge(t);return H(t)}return t})(),n=ct(a,{recursiveReadLimit:Number.POSITIVE_INFINITY});return zt(n,e)}function zt(t,e="hex"){if(t.bytes.length===0)return e==="hex"?G(t.bytes):t.bytes;const a=t.readByte();if(a<128&&t.decrementPosition(1),a<192){const r=Ct(t,a,128),s=t.readBytes(r);return e==="hex"?G(s):s}const n=Ct(t,a,192);return la(t,n,e)}function Ct(t,e,a){if(a===128&&e<128)return 1;if(e<=a+55)return e-a;if(e===a+55+1)return t.readUint8();if(e===a+55+2)return t.readUint16();if(e===a+55+3)return t.readUint24();if(e===a+55+4)return t.readUint32();throw new mt("Invalid RLP prefix")}function la(t,e,a){const n=t.position,r=[];for(;t.position-n<e;)r.push(zt(t,a));return r}function ma(t){return E(t)&&$e(t)===32}const fa=Uint8Array.from([7,4,13,1,10,6,15,3,12,0,9,5,2,14,11,8]),Gt=Uint8Array.from(new Array(16).fill(0).map((t,e)=>e)),ha=Gt.map(t=>(9*t+5)%16),$t=(()=>{const a=[[Gt],[ha]];for(let n=0;n<4;n++)for(let r of a)r.push(r[n].map(s=>fa[s]));return a})(),Ht=$t[0],Ot=$t[1],jt=[[11,14,15,12,5,8,7,9,11,13,14,15,6,7,9,8],[12,13,11,15,6,9,9,7,12,15,11,13,7,8,7,7],[13,15,14,11,7,7,6,8,13,14,13,12,5,5,6,9],[14,11,12,14,8,6,5,5,15,12,15,14,9,9,8,6],[15,12,13,13,9,5,8,6,14,11,12,11,8,6,5,5]].map(t=>Uint8Array.from(t)),pa=Ht.map((t,e)=>t.map(a=>jt[e][a])),ya=Ot.map((t,e)=>t.map(a=>jt[e][a])),ga=Uint32Array.from([0,1518500249,1859775393,2400959708,2840853838]),ba=Uint32Array.from([1352829926,1548603684,1836072691,2053994217,0]);function vt(t,e,a,n){return t===0?e^a^n:t===1?e&a|~e&n:t===2?(e|~a)^n:t===3?e&n|a&~n:e^(a|~n)}const V=new Uint32Array(16);class wa extends ca{constructor(){super(64,20,8,!0),this.h0=1732584193,this.h1=-271733879,this.h2=-1732584194,this.h3=271733878,this.h4=-1009589776}get(){const{h0:e,h1:a,h2:n,h3:r,h4:s}=this;return[e,a,n,r,s]}set(e,a,n,r,s){this.h0=e|0,this.h1=a|0,this.h2=n|0,this.h3=r|0,this.h4=s|0}process(e,a){for(let o=0;o<16;o++,a+=4)V[o]=e.getUint32(a,!0);let n=this.h0|0,r=n,s=this.h1|0,u=s,d=this.h2|0,c=d,i=this.h3|0,f=i,m=this.h4|0,h=m;for(let o=0;o<5;o++){const p=4-o,l=ga[o],y=ba[o],w=Ht[o],g=Ot[o],C=pa[o],b=ya[o];for(let x=0;x<16;x++){const I=j(n+vt(o,s,d,i)+V[w[x]]+l,C[x])+m|0;n=m,m=i,i=j(d,10)|0,d=s,s=I}for(let x=0;x<16;x++){const I=j(r+vt(p,u,c,f)+V[g[x]]+y,b[x])+h|0;r=h,h=f,f=j(c,10)|0,c=u,u=I}}this.set(this.h1+d+f|0,this.h2+i+h|0,this.h3+m+r|0,this.h4+n+u|0,this.h0+s+c|0)}roundClean(){wt(V)}destroy(){this.destroyed=!0,wt(this.buffer),this.set(0,0,0,0,0)}}const xa=He(()=>new wa),Ea=xa;function Qn(t,e){const a=e||"hex",n=Ea(E(t,{strict:!1})?B(t):t);return a==="bytes"?n:Nt(n)}const st=new Map;async function Ia(t){const{getSocket:e,keepAlive:a=!0,key:n="socket",reconnect:r=!0,url:s}=t,{interval:u=3e4}=typeof a=="object"?a:{},{attempts:d=5,delay:c=2e3}=typeof r=="object"?r:{},i=JSON.stringify({keepAlive:a,key:n,url:s,reconnect:r});let f=st.get(i);if(f)return f;let m=0;const{schedule:h}=ie({id:i,fn:async()=>{const l=new Map,y=new Map;let w,g,C,b=!1;function x(){if(r&&m<d){if(b)return;b=!0,m++,g==null||g.close(),setTimeout(async()=>{await I().catch(console.error),b=!1},c)}else l.clear(),y.clear()}async function I(){const T=await e({onClose(){var v,P;for(const S of l.values())(v=S.onError)==null||v.call(S,new Z({url:s}));for(const S of y.values())(P=S.onError)==null||P.call(S,new Z({url:s}));x()},onError(v){var P,S;w=v;for(const _ of l.values())(P=_.onError)==null||P.call(_,w);for(const _ of y.values())(S=_.onError)==null||S.call(_,w);x()},onOpen(){w=void 0,m=0},onResponse(v){const P=v.method==="eth_subscription",S=P?v.params.subscription:v.id,_=P?y:l,q=_.get(S);q&&q.onResponse(v),P||_.delete(S)}});if(g=T,a&&(C&&clearInterval(C),C=setInterval(()=>{var v;return(v=g.ping)==null?void 0:v.call(g)},u)),r&&y.size>0){const v=y.entries();for(const[P,{onResponse:S,body:_,onError:q}]of v)_&&(y.delete(P),f==null||f.request({body:_,onResponse:S,onError:q}))}return T}return await I(),w=void 0,f={close(){C&&clearInterval(C),g.close(),st.delete(i)},get socket(){return g},request({body:T,onError:v,onResponse:P}){w&&v&&v(w);const S=T.id??ce.take(),_=q=>{var z;typeof q.id=="number"&&S!==q.id||(T.method==="eth_subscribe"&&typeof q.result=="string"&&y.set(q.result,{onResponse:_,onError:v,body:T}),T.method==="eth_unsubscribe"&&y.delete((z=T.params)==null?void 0:z[0]),P(q))};l.set(S,{onResponse:_,onError:v});try{g.request({body:{jsonrpc:"2.0",id:S,...T}})}catch(q){v==null||v(q)}},requestAsync({body:T,timeout:v=1e4}){return Ze(()=>new Promise((P,S)=>this.request({body:T,onError:S,onResponse:P})),{errorInstance:new aa({body:T,url:s}),timeout:v})},requests:l,subscriptions:y,url:s},st.set(i,f),[f]}}),[o,[p]]=await h();return p}async function K(t,e={}){const{keepAlive:a,reconnect:n}=e;return Ia({async getSocket({onClose:r,onError:s,onOpen:u,onResponse:d}){const c=await oa(()=>import("./native-BHXbWt16.js").then(o=>o.n),__vite__mapDeps([0,1,2])).then(o=>o.WebSocket),i=new c(t);function f(){i.removeEventListener("close",f),i.removeEventListener("message",m),i.removeEventListener("error",s),i.removeEventListener("open",u),r()}function m({data:o}){if(!(typeof o=="string"&&o.trim().length===0))try{const p=JSON.parse(o);d(p)}catch(p){s(p)}}i.addEventListener("close",f),i.addEventListener("message",m),i.addEventListener("error",s),i.addEventListener("open",u),i.readyState===c.CONNECTING&&await new Promise((o,p)=>{i&&(i.onopen=o,i.onerror=p)});const{close:h}=i;return Object.assign(i,{close(){h.bind(i)(),f()},ping(){try{if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({url:i.url,cause:new Z({url:i.url})});const o={jsonrpc:"2.0",id:null,method:"net_version",params:[]};i.send(JSON.stringify(o))}catch(o){s(o)}},request({body:o}){if(i.readyState===i.CLOSED||i.readyState===i.CLOSING)throw new It({body:o,url:i.url,cause:new Z({url:i.url})});return i.send(JSON.stringify(o))}})},keepAlive:a,reconnect:n,url:t})}async function Ta(t){const e=await K(t);return Object.assign(e.socket,{requests:e.requests,subscriptions:e.subscriptions})}function Ca(t){return Lt(t,-32)===ue}function va(t){return de(t)}function Xn(t){if(!Ca(t))return{signature:t};const[e,a,n]=Mt([{type:"address"},{type:"bytes"},{type:"bytes"}],t);return{address:e,data:a,signature:n}}function tr(t){if(!va(t))return{signature:t};const{authorization:e,to:a,...n}=le(t);return{authorization:{address:e.address,chainId:e.chainId,nonce:Number(e.nonce),r:R(e.r,{size:32}),s:R(e.s,{size:32}),yParity:e.yParity},...a?{address:a}:{},...n}}async function Sa({message:t,signature:e}){return Q({hash:me(t),signature:e})}async function Aa(t){const{domain:e,message:a,primaryType:n,signature:r,types:s}=t;return Q({hash:Qe({domain:e,message:a,primaryType:n,types:s}),signature:r})}function er(t){const{address:e,data:a,signature:n,to:r="hex"}=t,s=fe({authorization:{address:t.authorization.address,chainId:t.authorization.chainId,nonce:BigInt(t.authorization.nonce),r:BigInt(t.authorization.r),s:BigInt(t.authorization.s),yParity:t.authorization.yParity},data:a,signature:n,to:e});return r==="hex"?s:H(s)}async function ar({address:t,hash:e,signature:a}){return ft(k(t),await Q({hash:e,signature:a}))}async function nr({address:t,message:e,signature:a}){return ft(k(t),await Sa({message:e,signature:a}))}async function rr(t){const{address:e,domain:a,message:n,primaryType:r,signature:s,types:u}=t;return ft(k(e),await Aa({domain:a,message:n,primaryType:r,signature:s,types:u}))}function Pa(t){const e=Lt(t,0,1);if(e==="0x04")return"eip7702";if(e==="0x03")return"eip4844";if(e==="0x02")return"eip1559";if(e==="0x01")return"eip2930";if(e!=="0x"&&F(e)>=192)return"legacy";throw new he({serializedType:e})}function _a(t){const e=Pa(t);return e==="eip1559"?Fa(t):e==="eip2930"?Ua(t):e==="eip4844"?qa(t):e==="eip7702"?Ra(t):ka(t)}function Ra(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o,p]=e;if(e.length!==10&&e.length!==13)throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,authorizationList:m,...e.length>9?{v:h,r:o,s:p}:{}},serializedTransaction:t,type:"eip7702"});const l={chainId:F(a),type:"eip7702"};return E(d)&&d!=="0x"&&(l.to=d),E(u)&&u!=="0x"&&(l.gas=A(u)),E(i)&&i!=="0x"&&(l.data=i),E(n)&&(l.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(l.value=A(c)),E(s)&&s!=="0x"&&(l.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(l.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(l.accessList=tt(f)),m.length!==0&&m!=="0x"&&(l.authorizationList=Ba(m)),we(l),{...e.length===13?O(e):void 0,...l}}function qa(t){const e=X(t),a=e.length===4,n=a?e[0]:e,r=a?e.slice(1):[],[s,u,d,c,i,f,m,h,o,p,l,y,w,g]=n,[C,b,x]=r;if(!(n.length===11||n.length===14))throw new $({attributes:{chainId:s,nonce:u,maxPriorityFeePerGas:d,maxFeePerGas:c,gas:i,to:f,value:m,data:h,accessList:o,...n.length>9?{v:y,r:w,s:g}:{}},serializedTransaction:t,type:"eip4844"});const I={blobVersionedHashes:l,chainId:F(s),to:f,type:"eip4844"};return E(i)&&i!=="0x"&&(I.gas=A(i)),E(h)&&h!=="0x"&&(I.data=h),E(u)&&(I.nonce=u==="0x"?0:F(u)),E(m)&&m!=="0x"&&(I.value=A(m)),E(p)&&p!=="0x"&&(I.maxFeePerBlobGas=A(p)),E(c)&&c!=="0x"&&(I.maxFeePerGas=A(c)),E(d)&&d!=="0x"&&(I.maxPriorityFeePerGas=A(d)),o.length!==0&&o!=="0x"&&(I.accessList=tt(o)),C&&b&&x&&(I.sidecars=ge({blobs:C,commitments:b,proofs:x})),be(I),{...n.length===14?O(n):void 0,...I}}function Fa(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h,o]=e;if(!(e.length===9||e.length===12))throw new $({attributes:{chainId:a,nonce:n,maxPriorityFeePerGas:r,maxFeePerGas:s,gas:u,to:d,value:c,data:i,accessList:f,...e.length>9?{v:m,r:h,s:o}:{}},serializedTransaction:t,type:"eip1559"});const p={chainId:F(a),type:"eip1559"};return E(d)&&d!=="0x"&&(p.to=d),E(u)&&u!=="0x"&&(p.gas=A(u)),E(i)&&i!=="0x"&&(p.data=i),E(n)&&(p.nonce=n==="0x"?0:F(n)),E(c)&&c!=="0x"&&(p.value=A(c)),E(s)&&s!=="0x"&&(p.maxFeePerGas=A(s)),E(r)&&r!=="0x"&&(p.maxPriorityFeePerGas=A(r)),f.length!==0&&f!=="0x"&&(p.accessList=tt(f)),pe(p),{...e.length===12?O(e):void 0,...p}}function Ua(t){const e=X(t),[a,n,r,s,u,d,c,i,f,m,h]=e;if(!(e.length===8||e.length===11))throw new $({attributes:{chainId:a,nonce:n,gasPrice:r,gas:s,to:u,value:d,data:c,accessList:i,...e.length>8?{v:f,r:m,s:h}:{}},serializedTransaction:t,type:"eip2930"});const o={chainId:F(a),type:"eip2930"};return E(u)&&u!=="0x"&&(o.to=u),E(s)&&s!=="0x"&&(o.gas=A(s)),E(c)&&c!=="0x"&&(o.data=c),E(n)&&(o.nonce=n==="0x"?0:F(n)),E(d)&&d!=="0x"&&(o.value=A(d)),E(r)&&r!=="0x"&&(o.gasPrice=A(r)),i.length!==0&&i!=="0x"&&(o.accessList=tt(i)),ye(o),{...e.length===11?O(e):void 0,...o}}function ka(t){const e=Dt(t,"hex"),[a,n,r,s,u,d,c,i,f]=e;if(!(e.length===6||e.length===9))throw new $({attributes:{nonce:a,gasPrice:n,gas:r,to:s,value:u,data:d,...e.length>6?{v:c,r:i,s:f}:{}},serializedTransaction:t,type:"legacy"});const m={type:"legacy"};if(E(s)&&s!=="0x"&&(m.to=s),E(r)&&r!=="0x"&&(m.gas=A(r)),E(d)&&d!=="0x"&&(m.data=d),E(a)&&(m.nonce=a==="0x"?0:F(a)),E(u)&&u!=="0x"&&(m.value=A(u)),E(n)&&n!=="0x"&&(m.gasPrice=A(n)),xe(m),e.length===6)return m;const h=E(c)&&c!=="0x"?A(c):0n;if(f==="0x"&&i==="0x")return h>0&&(m.chainId=Number(h)),m;const o=h,p=Number((o-35n)/2n);if(p>0)m.chainId=p;else if(o!==27n&&o!==28n)throw new Ee({v:o});return m.v=o,m.s=f,m.r=i,m.yParity=o%2n===0n?1:0,m}function X(t){return Dt(`0x${t.slice(4)}`,"hex")}function tt(t){const e=[];for(let a=0;a<t.length;a++){const[n,r]=t[a];if(!Oe(n,{strict:!1}))throw new je({address:n});e.push({address:n,storageKeys:r.map(s=>ma(s)?s:We(s))})}return e}function Ba(t){const e=[];for(let a=0;a<t.length;a++){const[n,r,s,u,d,c]=t[a];e.push({address:r,chainId:n==="0x"?0:F(n),nonce:s==="0x"?0:F(s),...O([u,d,c])})}return e}function O(t){const e=t.slice(-3),a=e[0]==="0x"||A(e[0])===0n?27n:28n;return{r:xt(e[1],{size:32}),s:xt(e[2],{size:32}),v:a,yParity:a===27n?0:1}}class Na extends mt{constructor({value:e}){super(`Number \`${e}\` is not a valid decimal number.`,{name:"InvalidDecimalNumberError"})}}function Wt(t,e){if(!/^(-?)([0-9]*)\.?([0-9]*)$/.test(t))throw new Na({value:t});let[a,n="0"]=t.split(".");const r=a.startsWith("-");if(r&&(a=a.slice(1)),n=n.replace(/(0+)$/,""),e===0)Math.round(+`.${n}`)===1&&(a=`${BigInt(a)+1n}`),n="";else if(n.length>e){const[s,u,d]=[n.slice(0,e-1),n.slice(e-1,e),n.slice(e)],c=Math.round(+`${u}.${d}`);c>9?n=`${BigInt(s)+BigInt(1)}0`.padStart(s.length+1,"0"):n=`${s}${c}`,n.length>e&&(n=n.slice(1),a=`${BigInt(a)+1n}`),n=n.slice(0,e)}else n=n.padEnd(e,"0");return BigInt(`${r?"-":""}${a}${n}`)}function sr(t,e="wei"){return Wt(t,Ie[e])}function or(t,e="wei"){return Wt(t,Te[e])}async function La(t,{hash:e}){await t.request({method:`${t.mode}_dropTransaction`,params:[e]})}async function Ma(t){return t.request({method:`${t.mode}_dumpState`})}async function Da(t){return t.mode==="ganache"?await t.request({method:"eth_mining"}):await t.request({method:`${t.mode}_getAutomine`})}async function za(t){return await t.request({method:"txpool_content"})}async function Ga(t){const{pending:e,queued:a}=await t.request({method:"txpool_status"});return{pending:F(e),queued:F(a)}}async function $a(t,{address:e}){await t.request({method:`${t.mode}_impersonateAccount`,params:[e]})}async function Ha(t,{seconds:e}){return await t.request({method:"evm_increaseTime",params:[R(e)]})}async function Oa(t){return await t.request({method:"txpool_inspect"})}async function ja(t,{state:e}){await t.request({method:`${t.mode}_loadState`,params:[e]})}async function Wa(t,{blocks:e,interval:a}){t.mode==="ganache"?await t.request({method:"evm_mine",params:[{blocks:R(e)}]}):await t.request({method:`${t.mode}_mine`,params:[R(e),R(a||0)]})}async function Va(t){await t.request({method:`${t.mode}_removeBlockTimestampInterval`})}async function Ja(t,{blockNumber:e,jsonRpcUrl:a}={}){await t.request({method:`${t.mode}_reset`,params:[{forking:{blockNumber:Number(e),jsonRpcUrl:a}}]})}async function Ka(t,{id:e}){await t.request({method:"evm_revert",params:[e]})}async function Ya(t,e){var w,g,C;const{accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m,...h}=e,o=(C=(g=(w=t.chain)==null?void 0:w.formatters)==null?void 0:g.transactionRequest)==null?void 0:C.format,l=(o||ht)({...St(h,{format:o}),accessList:a,data:n,from:r,gas:s,gasPrice:u,maxFeePerGas:d,maxPriorityFeePerGas:c,nonce:i,to:f,value:m},"sendUnsignedTransaction");return await t.request({method:"eth_sendUnsignedTransaction",params:[l]})}async function Za(t,e){t.mode==="ganache"?e?await t.request({method:"miner_start"}):await t.request({method:"miner_stop"}):await t.request({method:"evm_setAutomine",params:[e]})}async function Qa(t,{address:e,value:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountBalance",params:[e,R(a)]}):await t.request({method:`${t.mode}_setBalance`,params:[e,R(a)]})}async function Xa(t,{gasLimit:e}){await t.request({method:"evm_setBlockGasLimit",params:[R(e)]})}async function tn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:`${t.mode}_setBlockTimestampInterval`,params:[a]})}async function en(t,{address:e,bytecode:a}){t.mode==="ganache"?await t.request({method:"evm_setAccountCode",params:[e,a]}):await t.request({method:`${t.mode}_setCode`,params:[e,a]})}async function an(t,{address:e}){await t.request({method:`${t.mode}_setCoinbase`,params:[e]})}async function nn(t,{interval:e}){const a=t.mode==="hardhat"?e*1e3:e;await t.request({method:"evm_setIntervalMining",params:[a]})}async function rn(t,e){await t.request({method:`${t.mode}_setLoggingEnabled`,params:[e]})}async function sn(t,{gasPrice:e}){await t.request({method:`${t.mode}_setMinGasPrice`,params:[R(e)]})}async function on(t,{baseFeePerGas:e}){await t.request({method:`${t.mode}_setNextBlockBaseFeePerGas`,params:[R(e)]})}async function cn(t,{timestamp:e}){await t.request({method:"evm_setNextBlockTimestamp",params:[R(e)]})}async function un(t,{address:e,nonce:a}){await t.request({method:`${t.mode}_setNonce`,params:[e,R(a)]})}async function dn(t,e){await t.request({method:`${t.mode}_setRpcUrl`,params:[e]})}async function ln(t,{address:e,index:a,value:n}){await t.request({method:`${t.mode}_setStorageAt`,params:[e,typeof a=="number"?R(a):a,n]})}async function mn(t){return await t.request({method:"evm_snapshot"})}async function fn(t,{address:e}){await t.request({method:`${t.mode}_stopImpersonatingAccount`,params:[e]})}function hn({mode:t}){return e=>{const a=e.extend(()=>({mode:t}));return{dropTransaction:n=>La(a,n),dumpState:()=>Ma(a),getAutomine:()=>Da(a),getTxpoolContent:()=>za(a),getTxpoolStatus:()=>Ga(a),impersonateAccount:n=>$a(a,n),increaseTime:n=>Ha(a,n),inspectTxpool:()=>Oa(a),loadState:n=>ja(a,n),mine:n=>Wa(a,n),removeBlockTimestampInterval:()=>Va(a),reset:n=>Ja(a,n),revert:n=>Ka(a,n),sendUnsignedTransaction:n=>Ya(a,n),setAutomine:n=>Za(a,n),setBalance:n=>Qa(a,n),setBlockGasLimit:n=>Xa(a,n),setBlockTimestampInterval:n=>tn(a,n),setCode:n=>en(a,n),setCoinbase:n=>an(a,n),setIntervalMining:n=>nn(a,n),setLoggingEnabled:n=>rn(a,n),setMinGasPrice:n=>sn(a,n),setNextBlockBaseFeePerGas:n=>on(a,n),setNextBlockTimestamp:n=>cn(a,n),setNonce:n=>un(a,n),setRpcUrl:n=>dn(a,n),setStorageAt:n=>ln(a,n),snapshot:()=>mn(a),stopImpersonatingAccount:n=>fn(a,n)}}}function ir(t){const{key:e="test",name:a="Test Client",mode:n}=t;return At({...t,key:e,name:a,type:"testClient"}).extend(s=>({mode:n,...hn({mode:n})(s)}))}async function pn(t,{chain:e}){const{id:a,name:n,nativeCurrency:r,rpcUrls:s,blockExplorers:u}=e;await t.request({method:"wallet_addEthereumChain",params:[{chainId:R(a),chainName:n,nativeCurrency:r,rpcUrls:s.default.http,blockExplorerUrls:u?Object.values(u).map(({url:d})=>d):void 0}]},{dedupe:!0,retryCount:0})}function yn(t,e){const{abi:a,args:n,bytecode:r,...s}=e,u=Ce({abi:a,args:n,bytecode:r});return ut(t,{...s,...s.authorizationList?{to:null}:{},data:u})}async function gn(t){var a;return((a=t.account)==null?void 0:a.type)==="local"?[t.account.address]:(await t.request({method:"eth_accounts"},{dedupe:!0})).map(n=>Ve(n))}async function bn(t,e={}){const{account:a=t.account,chainId:n}=e,r=a?N(a):void 0,s=n?[r==null?void 0:r.address,[R(n)]]:[r==null?void 0:r.address],u=await t.request({method:"wallet_getCapabilities",params:s}),d={};for(const[c,i]of Object.entries(u)){d[Number(c)]={};for(let[f,m]of Object.entries(i))f==="addSubAccount"&&(f="unstable_addSubAccount"),d[Number(c)][f]=m}return typeof n=="number"?d[n]:d}async function wn(t){return await t.request({method:"wallet_getPermissions"},{dedupe:!0})}async function xn(t){return(await t.request({method:"eth_requestAccounts"},{dedupe:!0,retryCount:0})).map(a=>k(a))}async function En(t,e){return t.request({method:"wallet_requestPermissions",params:[e]},{retryCount:0})}async function In(t,e){const{chain:a=t.chain}=e,n=e.timeout??Math.max(((a==null?void 0:a.blockTime)??0)*3,5e3),r=await Pt(t,e);return await _t(t,{...e,id:r.id,timeout:n})}const ot=new Je(128);async function Vt(t,e){var x,I,T,v;const{account:a=t.account,chain:n=t.chain,accessList:r,authorizationList:s,blobs:u,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,pollingInterval:p,throwOnReceiptRevert:l,type:y,value:w,...g}=e,C=e.timeout??Math.max(((n==null?void 0:n.blockTime)??0)*3,5e3);if(typeof a>"u")throw new D({docsPath:"/docs/actions/wallet/sendTransactionSync"});const b=a?N(a):null;try{Rt(e);const P=await(async()=>{if(e.to)return e.to;if(e.to!==null&&s&&s.length>0)return await ve({authorization:s[0]}).catch(()=>{throw new mt("`to` is required. Could not infer from `authorizationList`.")})})();if((b==null?void 0:b.type)==="json-rpc"||b===null){let S;n!==null&&(S=await U(t,dt,"getChainId")({}),qt({currentChainId:S,chain:n}));const _=(T=(I=(x=t.chain)==null?void 0:x.formatters)==null?void 0:I.transactionRequest)==null?void 0:T.format,z=(_||ht)({...St(g,{format:_}),accessList:r,account:b,authorizationList:s,blobs:u,chainId:S,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,to:P,type:y,value:w},"sendTransaction"),pt=ot.get(t.uid),Jt=pt?"wallet_sendTransaction":"eth_sendTransaction",Kt=await(async()=>{try{return await t.request({method:Jt,params:[z]},{retryCount:0})}catch(yt){if(pt===!1)throw yt;const L=yt;if(L.name==="InvalidInputRpcError"||L.name==="InvalidParamsRpcError"||L.name==="MethodNotFoundRpcError"||L.name==="MethodNotSupportedRpcError")return await t.request({method:"wallet_sendTransaction",params:[z]},{retryCount:0}).then(at=>(ot.set(t.uid,!0),at)).catch(at=>{const nt=at;throw nt.name==="MethodNotFoundRpcError"||nt.name==="MethodNotSupportedRpcError"?(ot.set(t.uid,!1),L):nt});throw L}})(),et=await U(t,Se,"waitForTransactionReceipt")({checkReplacement:!1,hash:Kt,pollingInterval:p,timeout:C});if(l&&et.status==="reverted")throw new Ae({receipt:et});return et}if((b==null?void 0:b.type)==="local"){const S=await U(t,Ft,"prepareTransactionRequest")({account:b,accessList:r,authorizationList:s,blobs:u,chain:n,data:d,gas:c,gasPrice:i,maxFeePerBlobGas:f,maxFeePerGas:m,maxPriorityFeePerGas:h,nonce:o,nonceManager:b.nonceManager,parameters:[...Pe,"sidecars"],type:y,value:w,...g,to:P}),_=(v=n==null?void 0:n.serializers)==null?void 0:v.transaction,q=await b.signTransaction(S,{serializer:_});return await U(t,Ut,"sendRawTransactionSync")({serializedTransaction:q,throwOnReceiptRevert:l})}throw(b==null?void 0:b.type)==="smart"?new J({metaMessages:["Consider using the `sendUserOperation` Action instead."],docsPath:"/docs/actions/bundler/sendUserOperation",type:"smart"}):new J({docsPath:"/docs/actions/wallet/sendTransactionSync",type:b==null?void 0:b.type})}catch(P){throw P instanceof J?P:_e(P,{...e,account:b,chain:e.chain||void 0})}}async function Tn(t,e){const{id:a}=e;await t.request({method:"wallet_showCallsStatus",params:[a]})}async function Cn(t,e){const{account:a=t.account}=e;if(!a)throw new D({docsPath:"/docs/eip7702/signAuthorization"});const n=N(a);if(!n.signAuthorization)throw new J({docsPath:"/docs/eip7702/signAuthorization",metaMessages:["The `signAuthorization` Action does not support JSON-RPC Accounts."],type:n.type});const r=await kt(t,e);return n.signAuthorization(r)}async function vn(t,{account:e=t.account,message:a}){if(!e)throw new D({docsPath:"/docs/actions/wallet/signMessage"});const n=N(e);if(n.signMessage)return n.signMessage({message:a});const r=typeof a=="string"?Ke(a):a.raw instanceof Uint8Array?Nt(a.raw):a.raw;return t.request({method:"personal_sign",params:[r,n.address]},{retryCount:0})}async function Sn(t,e){var i,f,m,h;const{account:a=t.account,chain:n=t.chain,...r}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTransaction"});const s=N(a);Rt({account:s,...e});const u=await U(t,dt,"getChainId")({});n!==null&&qt({currentChainId:u,chain:n});const d=(n==null?void 0:n.formatters)||((i=t.chain)==null?void 0:i.formatters),c=((f=d==null?void 0:d.transactionRequest)==null?void 0:f.format)||ht;return s.signTransaction?s.signTransaction({...r,chainId:u},{serializer:(h=(m=t.chain)==null?void 0:m.serializers)==null?void 0:h.transaction}):await t.request({method:"eth_signTransaction",params:[{...c({...r,account:s},"signTransaction"),chainId:R(u),from:s.address}]},{retryCount:0})}async function An(t,e){const{account:a=t.account,domain:n,message:r,primaryType:s}=e;if(!a)throw new D({docsPath:"/docs/actions/wallet/signTypedData"});const u=N(a),d={EIP712Domain:Xe({domain:n}),...e.types};if(ta({domain:n,message:r,primaryType:s,types:d}),u.signTypedData)return u.signTypedData({domain:n,message:r,primaryType:s,types:d});const c=ea({domain:n,message:r,primaryType:s,types:d});return t.request({method:"eth_signTypedData_v4",params:[u.address,c]},{retryCount:0})}async function Pn(t,{id:e}){await t.request({method:"wallet_switchEthereumChain",params:[{chainId:R(e)}]},{retryCount:0})}async function _n(t,e){return await t.request({method:"wallet_watchAsset",params:e},{retryCount:0})}async function Rn(t,e){return M.internal(t,Vt,"sendTransactionSync",e)}function qn(t){return{addChain:e=>pn(t,e),deployContract:e=>yn(t,e),getAddresses:()=>gn(t),getCallsStatus:e=>qe(t,e),getCapabilities:e=>bn(t,e),getChainId:()=>dt(t),getPermissions:()=>wn(t),prepareAuthorization:e=>kt(t,e),prepareTransactionRequest:e=>Ft(t,e),requestAddresses:()=>xn(t),requestPermissions:e=>En(t,e),sendCalls:e=>Pt(t,e),sendCallsSync:e=>In(t,e),sendRawTransaction:e=>Re(t,e),sendRawTransactionSync:e=>Ut(t,e),sendTransaction:e=>ut(t,e),sendTransactionSync:e=>Vt(t,e),showCallsStatus:e=>Tn(t,e),signAuthorization:e=>Cn(t,e),signMessage:e=>vn(t,e),signTransaction:e=>Sn(t,e),signTypedData:e=>An(t,e),switchChain:e=>Pn(t,e),waitForCallsStatus:e=>_t(t,e),watchAsset:e=>_n(t,e),writeContract:e=>M(t,e),writeContractSync:e=>Rn(t,e)}}function cr(t){const{key:e="wallet",name:a="Wallet Client",transport:n}=t;return At({...t,key:e,name:a,transport:n,type:"walletClient"}).extend(qn)}function ur(t,e={}){const{key:a="custom",methods:n,name:r="Custom Provider",retryDelay:s}=e;return({retryCount:u})=>lt({key:a,methods:n,name:r,request:t.request.bind(t),retryCount:e.retryCount??u,retryDelay:s,type:"custom"})}function dr(t,e={}){const{key:a="fallback",name:n="Fallback",rank:r=!1,shouldThrow:s=Fn,retryCount:u,retryDelay:d}=e;return(({chain:c,pollingInterval:i=4e3,timeout:f,...m})=>{let h=t,o=()=>{};const p=lt({key:a,name:n,async request({method:l,params:y}){let w;const g=async(C=0)=>{const b=h[C]({...m,chain:c,retryCount:0,timeout:f});try{const x=await b.request({method:l,params:y});return o({method:l,params:y,response:x,transport:b,status:"success"}),x}catch(x){if(o({error:x,method:l,params:y,transport:b,status:"error"}),s(x)||C===h.length-1||(w??(w=h.slice(C+1).some(I=>{const{include:T,exclude:v}=I({chain:c}).config.methods||{};return T?T.includes(l):v?!v.includes(l):!0})),!w))throw x;return g(C+1)}};return g()},retryCount:u,retryDelay:d,type:"fallback"},{onResponse:l=>o=l,transports:h.map(l=>l({chain:c,retryCount:0}))});if(r){const l=typeof r=="object"?r:{};Un({chain:c,interval:l.interval??i,onTransports:y=>h=y,ping:l.ping,sampleCount:l.sampleCount,timeout:l.timeout,transports:h,weights:l.weights})}return p})}function Fn(t){return!!("code"in t&&typeof t.code=="number"&&(t.code===na.code||t.code===ra.code||Fe.nodeMessage.test(t.message)||t.code===5e3))}function Un({chain:t,interval:e=4e3,onTransports:a,ping:n,sampleCount:r=10,timeout:s=1e3,transports:u,weights:d={}}){const{stability:c=.7,latency:i=.3}=d,f=[],m=async()=>{const h=await Promise.all(u.map(async l=>{const y=l({chain:t,retryCount:0,timeout:s}),w=Date.now();let g,C;try{await(n?n({transport:y}):y.request({method:"net_listening"})),C=1}catch{C=0}finally{g=Date.now()}return{latency:g-w,success:C}}));f.push(h),f.length>r&&f.shift();const o=Math.max(...f.map(l=>Math.max(...l.map(({latency:y})=>y)))),p=u.map((l,y)=>{const w=f.map(I=>I[y].latency),C=1-w.reduce((I,T)=>I+T,0)/w.length/o,b=f.map(I=>I[y].success),x=b.reduce((I,T)=>I+T,0)/b.length;return x===0?[0,y]:[i*C+c*x,y]}).sort((l,y)=>y[0]-l[0]);a(p.map(([,l])=>u[l])),await Ue(e),m()};m()}function lr(t,e={}){const{keepAlive:a,key:n="webSocket",methods:r,name:s="WebSocket JSON-RPC",reconnect:u,retryDelay:d}=e;return({chain:c,retryCount:i,timeout:f})=>{var l;const m=e.retryCount??i,h=f??e.timeout??1e4,o=t||((l=c==null?void 0:c.rpcUrls.default.webSocket)==null?void 0:l[0]),p={keepAlive:a,reconnect:u};if(!o)throw new ke;return lt({key:n,methods:r,name:s,async request({method:y,params:w}){const g={method:y,params:w},C=await K(o,p),{error:b,result:x}=await C.requestAsync({body:g,timeout:h});if(b)throw new sa({body:g,error:b,url:o});return x},retryCount:m,retryDelay:d,timeout:h,type:"webSocket"},{getSocket(){return Ta(o)},getRpcClient(){return K(o,p)},async subscribe({params:y,onData:w,onError:g}){const C=await K(o,p),{result:b}=await new Promise((x,I)=>C.request({body:{method:"eth_subscribe",params:y},onError(T){I(T),g==null||g(T)},onResponse(T){if(T.error){I(T.error),g==null||g(T.error);return}if(typeof T.id=="number"){x(T);return}T.method==="eth_subscription"&&w(T.params)}}));return{subscriptionId:b,async unsubscribe(){return new Promise(x=>C.request({body:{method:"eth_unsubscribe",params:[b]},onResponse:x}))}}}})}}class mr extends Error{constructor(e,a){super(a),Object.defineProperty(this,"code",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),Object.defineProperty(this,"details",{enumerable:!0,configurable:!0,writable:!0,value:void 0}),this.code=e,this.details=a}}const it="/docs/contract/decodeDeployData";function fr(t){const{abi:e,bytecode:a,data:n}=t;if(n===a)return{bytecode:a};const r=e.find(u=>"type"in u&&u.type==="constructor");if(!r)throw new Ye({docsPath:it});if(!("inputs"in r))throw new Et({docsPath:it});if(!r.inputs||r.inputs.length===0)throw new Et({docsPath:it});return{args:Mt(r.inputs,`0x${n.replace(a,"")}`),bytecode:a}}function hr(t){const e=t.to??(typeof t.blobs[0]=="string"?"hex":"bytes"),a=typeof t.blobs[0]=="string"?t.blobs.map(d=>H(d)):t.blobs,n=a.reduce((d,c)=>d+c.length,0),r=ct(new Uint8Array(n));let s=!0;for(const d of a){const c=ct(d);for(;s&&c.position<d.length;){c.incrementPosition(1);let i=31;d.length-c.position<31&&(i=d.length-c.position);for(const f in Array.from({length:i})){const m=c.readByte();if(m===128&&!c.inspectBytes(c.remaining).includes(128)){s=!1;break}r.pushByte(m)}}}const u=r.bytes.slice(0,r.position);return e==="hex"?G(u):u}function pr(t){const{sidecars:e,version:a}=t,n=t.to??(typeof e[0].blob=="string"?"hex":"bytes"),r=[];for(const{commitment:s}of e)r.push(Be({commitment:s,to:n,version:a}));return r}const kn=2147483648;function yr(t){if(t===1)return 60n;if(t>=kn||t<0)throw new Ne({chainId:t});return BigInt((2147483648|t)>>>0)}function Bn({blobToKzgCommitment:t,computeBlobKzgProof:e}){return{blobToKzgCommitment:t,computeBlobKzgProof:e}}function gr(t,e){try{t.loadTrustedSetup(e)}catch(a){const n=a;if(!n.message.includes("trusted setup is already loaded"))throw n}return Bn(t)}function br({r:t,yParityAndS:e}){const a=H(e),n=a[0]&128?1:0,r=a;return n===1&&(r[0]&=127),{r:t,s:G(r),yParity:n}}function wr(t){const{r:e,s:a}=Bt.Signature.fromCompact(t.slice(2,130));return{r:R(e,{size:32}),yParityAndS:R(a,{size:32})}}async function xr(t){const{serializedTransaction:e,signature:a}=t,n=_a(e),r=a??{r:n.r,s:n.s,v:n.v,yParity:n.yParity},s=Le({...n,r:void 0,s:void 0,v:void 0,yParity:void 0,sidecars:void 0});return await Q({hash:Y(s),signature:r})}function Er({r:t,yParityAndS:e}){return`0x${new Bt.Signature(A(t),A(e)).toCompactHex()}`}function Ir(t){const{r:e,s:a,v:n,yParity:r}=t,s=Number(r??n-27n);let u=a;if(s===1){const d=H(a);d[0]|=128,u=G(d)}return{r:e,yParityAndS:u}}export{Ye as AbiConstructorNotFoundError,Et as AbiConstructorParamsNotFoundError,So as AbiDecodingDataSizeInvalidError,Ao as AbiDecodingDataSizeTooSmallError,Po as AbiDecodingZeroDataError,_o as AbiEncodingArrayLengthMismatchError,Ro as AbiEncodingBytesSizeMismatchError,qo as AbiEncodingLengthMismatchError,Fo as AbiErrorInputsNotFoundError,Uo as AbiErrorNotFoundError,ko as AbiErrorSignatureNotFoundError,Bo as AbiEventNotFoundError,No as AbiEventSignatureEmptyTopicsError,Lo as AbiEventSignatureNotFoundError,Mo as AbiFunctionNotFoundError,Do as AbiFunctionOutputsNotFoundError,zo as AbiFunctionSignatureNotFoundError,vr as AccountStateConflictError,Qi as AtomicReadyWalletRejectedUpgradeError,Xi as AtomicityNotSupportedError,mt as BaseError,Sr as BaseFeeScalarError,Ar as BlockNotFoundError,Pr as BundleFailedError,tc as BundleTooLargeError,Go as BytesSizeMismatchError,_r as CallExecutionError,ec as ChainDisconnectedError,Rr as ChainDoesNotSupportContract,qr as ChainMismatchError,Fr as ChainNotFoundError,Ur as CircularReferenceError,kr as ClientChainNotConfiguredError,Br as ContractFunctionExecutionError,Nr as ContractFunctionRevertedError,Lr as ContractFunctionZeroDataError,Mr as CounterfactualDeploymentFailedError,$o as DecodeLogDataMismatch,Ho as DecodeLogTopicsMismatch,ac as DuplicateIdError,mr as EIP1193ProviderRpcError,Dr as Eip1559FeesNotSupportedError,zr as EnsAvatarInvalidNftUriError,Gr as EnsAvatarUnsupportedNamespaceError,$r as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,Hr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Or as FeeCapTooHighError,jr as FeeCapTooLowError,Wr as FeeConflictError,Oo as FilterTypeNotSupportedError,nc as HttpRequestError,Vr as InsufficientFundsError,jo as IntegerOutOfRangeError,rc as InternalRpcError,Jr as IntrinsicGasTooHighError,Kr as IntrinsicGasTooLowError,Wo as InvalidAbiDecodingTypeError,Vo as InvalidAbiEncodingTypeError,Yr as InvalidAbiItemError,Qt as InvalidAbiParameterError,Zr as InvalidAbiParametersError,Qr as InvalidAbiTypeParameterError,je as InvalidAddressError,Jo as InvalidArrayError,Ko as InvalidBytesBooleanError,Xr as InvalidChainIdError,Na as InvalidDecimalNumberError,Yo as InvalidDefinitionTypeError,ji as InvalidDomainError,ts as InvalidFunctionModifierError,Zo as InvalidHexBooleanError,Ge as InvalidHexValueError,sc as InvalidInputRpcError,Ee as InvalidLegacyVError,es as InvalidModifierError,as as InvalidParameterError,oc as InvalidParamsRpcError,ns as InvalidParenthesisError,Wi as InvalidPrimaryTypeError,ic as InvalidRequestRpcError,rs as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,ss as InvalidSignatureError,os as InvalidStorageKeySizeError,is as InvalidStructSignatureError,Vi as InvalidStructTypeError,cc as JsonRpcVersionUnsupportedError,uc as LimitExceededRpcError,cs as MaxFeePerGasTooLowError,dc as MethodNotFoundRpcError,lc as MethodNotSupportedRpcError,us as NonceMaxValueError,ds as NonceTooHighError,ls as NonceTooLowError,mc as ParseRpcError,fc as ProviderDisconnectedError,hc as ProviderRpcError,ms as RawContractError,pc as ResourceNotFoundRpcError,yc as ResourceUnavailableRpcError,gc as RpcError,sa as RpcRequestError,Qo as SizeExceedsPaddingSizeError,Xo as SizeOverflowError,ti as SliceOffsetOutOfBoundsError,Z as SocketClosedError,fs as SolidityProtectedKeywordError,hs as StateAssignmentConflictError,bc as SwitchChainError,aa as TimeoutError,ps as TipAboveFeeCapError,ys as TransactionExecutionError,gs as TransactionNotFoundError,bs as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,ws as TransactionTypeNotSupportedError,wc as UnauthorizedProviderError,xc as UnknownBundleIdError,xs as UnknownNodeError,Ec as UnknownRpcError,Es as UnknownSignatureError,Is as UnknownTypeError,Ic as UnsupportedChainIdError,Tc as UnsupportedNonOptionalCapabilityError,ei as UnsupportedPackedAbiType,Cc as UnsupportedProviderMethodError,ke as UrlRequiredError,ra as UserRejectedRequestError,Ts as WaitForCallsStatusTimeoutError,Cs as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,vs as blobsToCommitments,Ss as blobsToProofs,ai as boolToBytes,ni as boolToHex,ri as bytesToBigInt,si as bytesToBool,G as bytesToHex,oi as bytesToNumber,Sc as bytesToRlp,ii as bytesToString,bd as ccipFetch,wd as ccipRequest,Ve as checksumAddress,Be as commitmentToVersionedHash,As as commitmentsToVersionedHashes,Er as compactSignatureToHex,br as compactSignatureToSignature,ze as concat,ci as concatBytes,ui as concatHex,At as createClient,Ps as createNonceManager,_s as createPublicClient,ir as createTestClient,lt as createTransport,cr as createWalletClient,ur as custom,Mt as decodeAbiParameters,fr as decodeDeployData,di as decodeErrorResult,li as decodeEventLog,Rs as decodeFunctionData,qs as decodeFunctionResult,mi as defineBlock,fi as defineChain,Bn as defineKzg,hi as defineTransaction,Cd as defineTransactionReceipt,pi as defineTransactionRequest,Fs as deploylessCallViaBytecodeBytecode,Us as deploylessCallViaFactoryBytecode,Ji as domainSeparator,yi as encodeAbiParameters,Ce as encodeDeployData,ks as encodeErrorResult,gi as encodeEventTopics,Xt as encodeFunctionData,Bs as encodeFunctionResult,Ns as encodePacked,Ls as erc1155Abi,Ms as erc20Abi,Ds as erc20Abi_bytes32,zs as erc4626Abi,Gs as erc6492SignatureValidatorAbi,$s as erc6492SignatureValidatorByteCode,Hs as erc721Abi,Os as ethAddress,Ie as etherUnits,Zn as extractChain,dr as fallback,bi as formatBlock,js as formatEther,Ws as formatGwei,vd as formatLog,wi as formatTransaction,Sd as formatTransactionReceipt,ht as formatTransactionRequest,Vs as formatUnits,hr as fromBlobs,xi as fromBytes,Ei as fromHex,Dt as fromRlp,Ii as getAbiItem,k as getAddress,Js as getChainContractAddress,Kn as getContract,Yn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,Ti as getEventSelector,Ci as getEventSignature,vi as getFunctionSelector,Si as getFunctionSignature,Pa as getSerializedTransactionType,Ks as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Ki as hashDomain,me as hashMessage,Yi as hashStruct,Qe as hashTypedData,A as hexToBigInt,Ai as hexToBool,H as hexToBytes,wr as hexToCompactSignature,F as hexToNumber,Ac as hexToRlp,Ys as hexToSignature,Pi as hexToString,Zs as http,Oe as isAddress,ft as isAddressEqual,Tt as isBytes,Ca as isErc6492Signature,va as isErc8010Signature,ma as isHash,E as isHex,Y as keccak256,Qs as labelhash,Pc as maxInt104,_c as maxInt112,Rc as maxInt120,qc as maxInt128,Fc as maxInt136,Uc as maxInt144,kc as maxInt152,Bc as maxInt16,Nc as maxInt160,Lc as maxInt168,Mc as maxInt176,Dc as maxInt184,zc as maxInt192,Gc as maxInt200,$c as maxInt208,Hc as maxInt216,Oc as maxInt224,jc as maxInt232,Wc as maxInt24,Vc as maxInt240,Jc as maxInt248,Kc as maxInt256,Yc as maxInt32,Zc as maxInt40,Qc as maxInt48,Xc as maxInt56,tu as maxInt64,eu as maxInt72,au as maxInt8,nu as maxInt80,ru as maxInt88,su as maxInt96,ou as maxUint104,iu as maxUint112,cu as maxUint120,uu as maxUint128,du as maxUint136,lu as maxUint144,mu as maxUint152,fu as maxUint16,hu as maxUint160,pu as maxUint168,yu as maxUint176,gu as maxUint184,bu as maxUint192,wu as maxUint200,xu as maxUint208,Eu as maxUint216,Iu as maxUint224,Tu as maxUint232,Cu as maxUint24,vu as maxUint240,Su as maxUint248,Au as maxUint256,Pu as maxUint32,_u as maxUint40,Ru as maxUint48,qu as maxUint56,Fu as maxUint64,Uu as maxUint72,ku as maxUint8,Bu as maxUint80,Nu as maxUint88,Lu as maxUint96,Mu as minInt104,Du as minInt112,zu as minInt120,Gu as minInt128,$u as minInt136,Hu as minInt144,Ou as minInt152,ju as minInt16,Wu as minInt160,Vu as minInt168,Ju as minInt176,Ku as minInt184,Yu as minInt192,Zu as minInt200,Qu as minInt208,Xu as minInt216,td as minInt224,ed as minInt232,ad as minInt24,nd as minInt240,rd as minInt248,sd as minInt256,od as minInt32,id as minInt40,cd as minInt48,ud as minInt56,dd as minInt64,ld as minInt72,md as minInt8,fd as minInt80,hd as minInt88,pd as minInt96,Xs as multicall3Abi,to as namehash,eo as nonceManager,_i as numberToBytes,R as numberToHex,xd as offchainLookup,Ed as offchainLookupAbiItem,Id as offchainLookupSignature,Me as pad,Ri as padBytes,xt as padHex,ao as parseAbi,no as parseAbiItem,Jn as parseAbiParameter,ro as parseAbiParameters,wr as parseCompactSignature,Xn as parseErc6492Signature,tr as parseErc8010Signature,sr as parseEther,qi as parseEventLogs,or as parseGwei,so as parseSignature,_a as parseTransaction,Wt as parseUnits,oo as prepareEncodeFunctionData,io as presignMessagePrefix,co as publicActions,Q as recoverAddress,Sa as recoverMessageAddress,uo as recoverPublicKey,xr as recoverTransactionAddress,Aa as recoverTypedDataAddress,Qn as ripemd160,lo as rpcSchema,Fi as rpcTransactionType,mo as serializeAccessList,Er as serializeCompactSignature,fo as serializeErc6492Signature,er as serializeErc8010Signature,ho as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Ui as setErrorConfig,gr as setupKzg,yd as sha256,Fn as shouldThrow,pr as sidecarsToVersionedHashes,Ir as signatureToCompactSignature,po as signatureToHex,$e as size,De as slice,ki as sliceBytes,Lt as sliceHex,Bi as stringToBytes,Ke as stringToHex,Ni as stringify,hn as testActions,ge as toBlobSidecars,yo as toBlobs,B as toBytes,yr as toCoinType,Li as toEventHash,Mi as toEventSelector,Di as toEventSignature,zi as toFunctionHash,Gi as toFunctionSelector,$i as toFunctionSignature,Nt as toHex,go as toPrefixedMessage,ia as toRlp,Hi as transactionType,We as trim,bo as universalSignatureValidatorAbi,wo as universalSignatureValidatorByteCode,ta as validateTypedData,ar as verifyHash,nr as verifyMessage,rr as verifyTypedData,qn as walletActions,lr as webSocket,xo as weiUnits,Eo as withCache,Io as withRetry,Ze as withTimeout,To as zeroAddress,Co as zeroHash};
@@ -1,4 +1,4 @@
1
- import{i as h,b as d}from"./lit-element-B3y9oplH.js";import{n as i,o as c}from"./class-map-CxwNmq0D.js";import"./index-DxHhM-lc.js";import{c as m}from"./index-C6_L5Mw_.js";import{d as g,r as y,e as f}from"./index-D9ieJGKB.js";const b=g`
1
+ import{i as h,b as d}from"./lit-element-B3y9oplH.js";import{n as i,o as c}from"./class-map-CxwNmq0D.js";import"./index-C2m0blJe.js";import{c as m}from"./index-DToUml_I.js";import{d as g,r as y,e as f}from"./index-s1UJ3WrX.js";const b=g`
2
2
  :host {
3
3
  width: 100%;
4
4
  }
@@ -1,4 +1,4 @@
1
- import{g as ie,k as he,r as i,j as v,R as se}from"./react-yytiy0wi.js";import{a as H,g as W}from"./dcl-schemas-BICTSpB5.js";import{bk as be,bl as ve,bm as vt,b6 as yt,bn as xt,P as le,Q as M,R as _,N as ye,O as Se,bh as Et,V as Q,Y as we,M as Xe,b9 as $e,bf as Ct,bb as pe,U as Ze,bo as Rt,T as Mt,aS as Pt,aN as Tt,S as A,bi as It,b4 as fe}from"./index-CDzDnyJW.js";import{n as J}from"./emotion-styled.browser.esm-B2VU5Fdx.js";import{u as St}from"./useTheme-CmaVa_eU.js";import{C as wt}from"./CircularProgress-C9g4a9bc.js";var te={},Le;function kt(){if(Le)return te;Le=1,Object.defineProperty(te,"__esModule",{value:!0});function e(){let t,n;const o=new Promise((r,a)=>{t=s=>{r(s),o.isPending=!1},n=s=>{a(s),o.isPending=!1}}).catch(r=>Promise.reject(r));return o.resolve=t,o.reject=n,"finally"in o||(o.finally=r=>{o.then(r),o.catch(r)}),o.isPending=!0,o}return te.future=e,te.default=e,te}var Nt=kt();const zt=ie(Nt);function Oe(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(r){r(n)}),(o=e.get("*"))&&o.slice().map(function(r){r(t,n)})}}}const Z=new Map,Me=new Map,ke=new Map,ge=new Map;function Ae(e){const t=document.getElementById(e);return!t||!t.contentWindow?!1:ke.get(t.contentWindow)??!1}function Pe(e){if(e.data&&e.data.type)try{switch(e.data.type){case H.PreviewMessageType.CONTROLLER_RESPONSE:{const t=e.data.payload,{id:n}=t,o=Z.get(n);o&&(Z.delete(n),t.ok?o.resolve(t.result):t.ok===!1&&o.reject(new Error(t.error)));break}case H.PreviewMessageType.EMOTE_EVENT:{const t=e.data.payload,{type:n,payload:o}=t,r=e.source?Me.get(e.source):null;r&&n&&r.emit(n,o);break}case H.PreviewMessageType.LOAD:{e.source&&(ke.set(e.source,!0),(ge.get(e.source)||[]).filter(o=>{var r;return((r=o.data)==null?void 0:r.type)!==H.PreviewMessageType.LOAD}).forEach(Pe),ge.delete(e.source));break}default:}}catch(t){console.error("Error processing WearablePreview message:",t)}}const Bt=e=>{var n;if(((n=e.data)==null?void 0:n.type)===H.PreviewMessageType.LOAD){Pe(e);return}if(!(e.source?ke.get(e.source):!1)&&e.source){const o=ge.get(e.source)||[];o.push(e),ge.set(e.source,o);return}Pe(e)};typeof window<"u"&&window.addEventListener("message",Bt,!1);let Ve=0;function _t(e){return function(n,o,r){const a=document.getElementById(e);if(!a||!a.contentWindow){const g=new Error("iframe not found or not accessible");return Promise.reject(g)}const s=e+"-"+Ve,l=zt();Z.set(s,l);const c=H.PreviewMessageType.CONTROLLER_REQUEST,f={id:s,namespace:n,method:o,params:r},m=setTimeout(()=>{Z.delete(s),l.reject(new Error(`Request timeout for ${o}`))},1e4),u=l.resolve,y=l.reject;l.resolve=g=>{clearTimeout(m),u(g)},l.reject=g=>{clearTimeout(m),y(g)};try{H.sendMessage(a.contentWindow,c,f)}catch(g){const b=g instanceof Error?g.message:String(g);l.reject(new Error(`Failed to send message: ${b}`)),Z.delete(s),clearTimeout(m)}return Ve++,l}}function jt(e){const t=document.getElementById(e);if(!t)throw new Error(`Could not find an iframe with id="${e}"`);Z.clear();const n=t.contentWindow?Me.get(t.contentWindow)??Oe():Oe();t.contentWindow&&Me.set(t.contentWindow,n);const o=_t(e);return{scene:{getScreenshot(r,a){return o("scene","getScreenshot",[r,a])},getMetrics(){return o("scene","getMetrics",[])},changeZoom:function(r){return o("scene","changeZoom",[r])},panCamera:function(r){return o("scene","panCamera",[r])},changeCameraPosition:function(r){return o("scene","changeCameraPosition",[r])},cleanup(){return o("scene","cleanup",[])},setUsername:function(r){return o("scene","setUsername",[r])}},emote:{getLength(){return o("emote","getLength",[])},isPlaying(){return o("emote","isPlaying",[])},goTo(r){return o("emote","goTo",[r])},play(){return o("emote","play",[])},pause(){return o("emote","pause",[])},stop(){return o("emote","stop",[])},enableSound(){return o("emote","enableSound",[])},disableSound(){return o("emote","disableSound",[])},hasSound(){return o("emote","hasSound",[])},isSocialEmote(){return o("emote","isSocialEmote",[])},getSocialEmoteAnimations(){return o("emote","getSocialEmoteAnimations",[])},getPlayingSocialEmoteAnimation(){return o("emote","getPlayingSocialEmoteAnimation",[])},emote:null,events:n},physics:{setSpringBonesParams(r,a){return o("physics","setSpringBonesParams",[r,a])}}}}var oe={},De;function $t(){if(De)return oe;De=1;var e=be();Object.defineProperty(oe,"__esModule",{value:!0}),oe.default=void 0;var t=e(ve()),n=he();return oe.default=(0,t.default)((0,n.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),oe}var Lt=$t();const Ot=ie(Lt);var ne={},Fe;function At(){if(Fe)return ne;Fe=1;var e=be();Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=void 0;var t=e(ve()),n=he();return ne.default=(0,t.default)((0,n.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),ne}var Vt=At();const Dt=ie(Vt);var re={},We;function Ft(){if(We)return re;We=1;var e=be();Object.defineProperty(re,"__esModule",{value:!0}),re.default=void 0;var t=e(ve()),n=he();return re.default=(0,t.default)((0,n.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff"),re}var Wt=Ft();const Ut=ie(Wt);var ae={},Ue;function qt(){if(Ue)return ae;Ue=1;var e=be();Object.defineProperty(ae,"__esModule",{value:!0}),ae.default=void 0;var t=e(ve()),n=he();return ae.default=(0,t.default)((0,n.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp"),ae}var Yt=qt();const Ht=ie(Yt),Gt=(e,t)=>{const n=i.useRef(null),[o,r]=i.useState(!1);return i.useEffect(()=>{const a=t??jt(e);if(n.current=a,Ae(e)){r(!0);return}const s=document.getElementById(e);if(!s){console.error(`Could not find iframe with id="${e}"`);return}if(!s.contentWindow){console.error(`Iframe contentWindow is not accessible for id="${e}"`);return}const c=f=>{var m;((m=f.data)==null?void 0:m.type)===H.PreviewMessageType.LOAD&&Ae(e)&&r(!0)};return window.addEventListener("message",c),()=>{window.removeEventListener("message",c),r(!1),n.current=null}},[e,t]),{controllerRef:n,isReady:o}};function Qe(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Qe(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Kt(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Qe(e))&&(o&&(o+=" "),o+=t);return o}const Xt=["className","component"];function Zt(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,a=vt("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(yt);return i.forwardRef(function(c,f){const m=St(n),u=xt(c),{className:y,component:g="div"}=u,b=le(u,Xt);return v.jsx(a,M({as:g,ref:f,className:Kt(y,r?r(o):o),theme:t&&m[t]||m},b))})}function Te(e,t){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Te(e,t)}function Qt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Te(e,t)}const qe=se.createContext(null);function Jt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ne(e,t){var n=function(a){return t&&i.isValidElement(a)?t(a):a},o=Object.create(null);return e&&i.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function eo(e,t){e=e||{},t=t||{};function n(m){return m in t?t[m]:e[m]}var o=Object.create(null),r=[];for(var a in e)a in t?r.length&&(o[a]=r,r=[]):r.push(a);var s,l={};for(var c in t){if(o[c])for(s=0;s<o[c].length;s++){var f=o[c][s];l[o[c][s]]=n(f)}l[c]=n(c)}for(s=0;s<r.length;s++)l[r[s]]=n(r[s]);return l}function K(e,t,n){return n[t]!=null?n[t]:e.props[t]}function to(e,t){return Ne(e.children,function(n){return i.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:K(n,"appear",e),enter:K(n,"enter",e),exit:K(n,"exit",e)})})}function oo(e,t,n){var o=Ne(e.children),r=eo(t,o);return Object.keys(r).forEach(function(a){var s=r[a];if(i.isValidElement(s)){var l=a in t,c=a in o,f=t[a],m=i.isValidElement(f)&&!f.props.in;c&&(!l||m)?r[a]=i.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:K(s,"exit",e),enter:K(s,"enter",e)}):!c&&l&&!m?r[a]=i.cloneElement(s,{in:!1}):c&&l&&i.isValidElement(f)&&(r[a]=i.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:K(s,"exit",e),enter:K(s,"enter",e)}))}}),r}var no=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ro={component:"div",childFactory:function(t){return t}},ze=(function(e){Qt(t,e);function t(o,r){var a;a=e.call(this,o,r)||this;var s=a.handleExited.bind(Jt(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}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(r,a){var s=a.children,l=a.handleExited,c=a.firstRender;return{children:c?to(r,l):oo(r,s,l),firstRender:!1}},n.handleExited=function(r,a){var s=Ne(this.props.children);r.key in s||(r.props.onExited&&r.props.onExited(a),this.mounted&&this.setState(function(l){var c=M({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,a=r.component,s=r.childFactory,l=le(r,["component","childFactory"]),c=this.state.contextValue,f=no(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,a===null?se.createElement(qe.Provider,{value:c},f):se.createElement(qe.Provider,{value:c},se.createElement(a,l,f))},t})(se.Component);ze.propTypes={};ze.defaultProps=ro;function ao(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:f}=e,[m,u]=i.useState(!1),y=_(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+a,left:-(s/2)+r},b=_(n.child,m&&n.childLeaving,o&&n.childPulsate);return!l&&!m&&u(!0),i.useEffect(()=>{if(!l&&c!=null){const x=setTimeout(c,f);return()=>{clearTimeout(x)}}},[c,l,f]),v.jsx("span",{className:y,style:g,children:v.jsx("span",{className:b})})}const j=ye("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),so=["center","classes","className"];let xe=e=>e,Ye,He,Ge,Ke;const Ie=550,io=80,lo=we(Ye||(Ye=xe`
1
+ import{g as ie,k as he,r as i,j as v,R as se}from"./react-yytiy0wi.js";import{a as H,g as W}from"./dcl-schemas-BICTSpB5.js";import{bk as be,bl as ve,bm as vt,b6 as yt,bn as xt,P as le,Q as M,R as _,N as ye,O as Se,bh as Et,V as Q,Y as we,M as Xe,b9 as $e,bf as Ct,bb as pe,U as Ze,bo as Rt,T as Mt,aS as Pt,aN as Tt,S as A,bi as It,b4 as fe}from"./index-CzmwWbz1.js";import{n as J}from"./emotion-styled.browser.esm-Ca1eN6j6.js";import{u as St}from"./useTheme-Ckn40RaY.js";import{C as wt}from"./CircularProgress-DYIOpTqD.js";var te={},Le;function kt(){if(Le)return te;Le=1,Object.defineProperty(te,"__esModule",{value:!0});function e(){let t,n;const o=new Promise((r,a)=>{t=s=>{r(s),o.isPending=!1},n=s=>{a(s),o.isPending=!1}}).catch(r=>Promise.reject(r));return o.resolve=t,o.reject=n,"finally"in o||(o.finally=r=>{o.then(r),o.catch(r)}),o.isPending=!0,o}return te.future=e,te.default=e,te}var Nt=kt();const zt=ie(Nt);function Oe(e){return{all:e=e||new Map,on:function(t,n){var o=e.get(t);o?o.push(n):e.set(t,[n])},off:function(t,n){var o=e.get(t);o&&(n?o.splice(o.indexOf(n)>>>0,1):e.set(t,[]))},emit:function(t,n){var o=e.get(t);o&&o.slice().map(function(r){r(n)}),(o=e.get("*"))&&o.slice().map(function(r){r(t,n)})}}}const Z=new Map,Me=new Map,ke=new Map,ge=new Map;function Ae(e){const t=document.getElementById(e);return!t||!t.contentWindow?!1:ke.get(t.contentWindow)??!1}function Pe(e){if(e.data&&e.data.type)try{switch(e.data.type){case H.PreviewMessageType.CONTROLLER_RESPONSE:{const t=e.data.payload,{id:n}=t,o=Z.get(n);o&&(Z.delete(n),t.ok?o.resolve(t.result):t.ok===!1&&o.reject(new Error(t.error)));break}case H.PreviewMessageType.EMOTE_EVENT:{const t=e.data.payload,{type:n,payload:o}=t,r=e.source?Me.get(e.source):null;r&&n&&r.emit(n,o);break}case H.PreviewMessageType.LOAD:{e.source&&(ke.set(e.source,!0),(ge.get(e.source)||[]).filter(o=>{var r;return((r=o.data)==null?void 0:r.type)!==H.PreviewMessageType.LOAD}).forEach(Pe),ge.delete(e.source));break}default:}}catch(t){console.error("Error processing WearablePreview message:",t)}}const Bt=e=>{var n;if(((n=e.data)==null?void 0:n.type)===H.PreviewMessageType.LOAD){Pe(e);return}if(!(e.source?ke.get(e.source):!1)&&e.source){const o=ge.get(e.source)||[];o.push(e),ge.set(e.source,o);return}Pe(e)};typeof window<"u"&&window.addEventListener("message",Bt,!1);let Ve=0;function _t(e){return function(n,o,r){const a=document.getElementById(e);if(!a||!a.contentWindow){const g=new Error("iframe not found or not accessible");return Promise.reject(g)}const s=e+"-"+Ve,l=zt();Z.set(s,l);const c=H.PreviewMessageType.CONTROLLER_REQUEST,f={id:s,namespace:n,method:o,params:r},m=setTimeout(()=>{Z.delete(s),l.reject(new Error(`Request timeout for ${o}`))},1e4),u=l.resolve,y=l.reject;l.resolve=g=>{clearTimeout(m),u(g)},l.reject=g=>{clearTimeout(m),y(g)};try{H.sendMessage(a.contentWindow,c,f)}catch(g){const b=g instanceof Error?g.message:String(g);l.reject(new Error(`Failed to send message: ${b}`)),Z.delete(s),clearTimeout(m)}return Ve++,l}}function jt(e){const t=document.getElementById(e);if(!t)throw new Error(`Could not find an iframe with id="${e}"`);Z.clear();const n=t.contentWindow?Me.get(t.contentWindow)??Oe():Oe();t.contentWindow&&Me.set(t.contentWindow,n);const o=_t(e);return{scene:{getScreenshot(r,a){return o("scene","getScreenshot",[r,a])},getMetrics(){return o("scene","getMetrics",[])},changeZoom:function(r){return o("scene","changeZoom",[r])},panCamera:function(r){return o("scene","panCamera",[r])},changeCameraPosition:function(r){return o("scene","changeCameraPosition",[r])},cleanup(){return o("scene","cleanup",[])},setUsername:function(r){return o("scene","setUsername",[r])}},emote:{getLength(){return o("emote","getLength",[])},isPlaying(){return o("emote","isPlaying",[])},goTo(r){return o("emote","goTo",[r])},play(){return o("emote","play",[])},pause(){return o("emote","pause",[])},stop(){return o("emote","stop",[])},enableSound(){return o("emote","enableSound",[])},disableSound(){return o("emote","disableSound",[])},hasSound(){return o("emote","hasSound",[])},isSocialEmote(){return o("emote","isSocialEmote",[])},getSocialEmoteAnimations(){return o("emote","getSocialEmoteAnimations",[])},getPlayingSocialEmoteAnimation(){return o("emote","getPlayingSocialEmoteAnimation",[])},emote:null,events:n},physics:{setSpringBonesParams(r,a){return o("physics","setSpringBonesParams",[r,a])}}}}var oe={},De;function $t(){if(De)return oe;De=1;var e=be();Object.defineProperty(oe,"__esModule",{value:!0}),oe.default=void 0;var t=e(ve()),n=he();return oe.default=(0,t.default)((0,n.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),oe}var Lt=$t();const Ot=ie(Lt);var ne={},Fe;function At(){if(Fe)return ne;Fe=1;var e=be();Object.defineProperty(ne,"__esModule",{value:!0}),ne.default=void 0;var t=e(ve()),n=he();return ne.default=(0,t.default)((0,n.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),ne}var Vt=At();const Dt=ie(Vt);var re={},We;function Ft(){if(We)return re;We=1;var e=be();Object.defineProperty(re,"__esModule",{value:!0}),re.default=void 0;var t=e(ve()),n=he();return re.default=(0,t.default)((0,n.jsx)("path",{d:"M16.5 12c0-1.77-1.02-3.29-2.5-4.03v2.21l2.45 2.45c.03-.2.05-.41.05-.63m2.5 0c0 .94-.2 1.82-.54 2.64l1.51 1.51C20.63 14.91 21 13.5 21 12c0-4.28-2.99-7.86-7-8.77v2.06c2.89.86 5 3.54 5 6.71M4.27 3 3 4.27 7.73 9H3v6h4l5 5v-6.73l4.25 4.25c-.67.52-1.42.93-2.25 1.18v2.06c1.38-.31 2.63-.95 3.69-1.81L19.73 21 21 19.73l-9-9zM12 4 9.91 6.09 12 8.18z"}),"VolumeOff"),re}var Wt=Ft();const Ut=ie(Wt);var ae={},Ue;function qt(){if(Ue)return ae;Ue=1;var e=be();Object.defineProperty(ae,"__esModule",{value:!0}),ae.default=void 0;var t=e(ve()),n=he();return ae.default=(0,t.default)((0,n.jsx)("path",{d:"M3 9v6h4l5 5V4L7 9zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02M14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77"}),"VolumeUp"),ae}var Yt=qt();const Ht=ie(Yt),Gt=(e,t)=>{const n=i.useRef(null),[o,r]=i.useState(!1);return i.useEffect(()=>{const a=t??jt(e);if(n.current=a,Ae(e)){r(!0);return}const s=document.getElementById(e);if(!s){console.error(`Could not find iframe with id="${e}"`);return}if(!s.contentWindow){console.error(`Iframe contentWindow is not accessible for id="${e}"`);return}const c=f=>{var m;((m=f.data)==null?void 0:m.type)===H.PreviewMessageType.LOAD&&Ae(e)&&r(!0)};return window.addEventListener("message",c),()=>{window.removeEventListener("message",c),r(!1),n.current=null}},[e,t]),{controllerRef:n,isReady:o}};function Qe(e){var t,n,o="";if(typeof e=="string"||typeof e=="number")o+=e;else if(typeof e=="object")if(Array.isArray(e)){var r=e.length;for(t=0;t<r;t++)e[t]&&(n=Qe(e[t]))&&(o&&(o+=" "),o+=n)}else for(n in e)e[n]&&(o&&(o+=" "),o+=n);return o}function Kt(){for(var e,t,n=0,o="",r=arguments.length;n<r;n++)(e=arguments[n])&&(t=Qe(e))&&(o&&(o+=" "),o+=t);return o}const Xt=["className","component"];function Zt(e={}){const{themeId:t,defaultTheme:n,defaultClassName:o="MuiBox-root",generateClassName:r}=e,a=vt("div",{shouldForwardProp:l=>l!=="theme"&&l!=="sx"&&l!=="as"})(yt);return i.forwardRef(function(c,f){const m=St(n),u=xt(c),{className:y,component:g="div"}=u,b=le(u,Xt);return v.jsx(a,M({as:g,ref:f,className:Kt(y,r?r(o):o),theme:t&&m[t]||m},b))})}function Te(e,t){return Te=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,o){return n.__proto__=o,n},Te(e,t)}function Qt(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Te(e,t)}const qe=se.createContext(null);function Jt(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ne(e,t){var n=function(a){return t&&i.isValidElement(a)?t(a):a},o=Object.create(null);return e&&i.Children.map(e,function(r){return r}).forEach(function(r){o[r.key]=n(r)}),o}function eo(e,t){e=e||{},t=t||{};function n(m){return m in t?t[m]:e[m]}var o=Object.create(null),r=[];for(var a in e)a in t?r.length&&(o[a]=r,r=[]):r.push(a);var s,l={};for(var c in t){if(o[c])for(s=0;s<o[c].length;s++){var f=o[c][s];l[o[c][s]]=n(f)}l[c]=n(c)}for(s=0;s<r.length;s++)l[r[s]]=n(r[s]);return l}function K(e,t,n){return n[t]!=null?n[t]:e.props[t]}function to(e,t){return Ne(e.children,function(n){return i.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:K(n,"appear",e),enter:K(n,"enter",e),exit:K(n,"exit",e)})})}function oo(e,t,n){var o=Ne(e.children),r=eo(t,o);return Object.keys(r).forEach(function(a){var s=r[a];if(i.isValidElement(s)){var l=a in t,c=a in o,f=t[a],m=i.isValidElement(f)&&!f.props.in;c&&(!l||m)?r[a]=i.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:K(s,"exit",e),enter:K(s,"enter",e)}):!c&&l&&!m?r[a]=i.cloneElement(s,{in:!1}):c&&l&&i.isValidElement(f)&&(r[a]=i.cloneElement(s,{onExited:n.bind(null,s),in:f.props.in,exit:K(s,"exit",e),enter:K(s,"enter",e)}))}}),r}var no=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},ro={component:"div",childFactory:function(t){return t}},ze=(function(e){Qt(t,e);function t(o,r){var a;a=e.call(this,o,r)||this;var s=a.handleExited.bind(Jt(a));return a.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},a}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(r,a){var s=a.children,l=a.handleExited,c=a.firstRender;return{children:c?to(r,l):oo(r,s,l),firstRender:!1}},n.handleExited=function(r,a){var s=Ne(this.props.children);r.key in s||(r.props.onExited&&r.props.onExited(a),this.mounted&&this.setState(function(l){var c=M({},l.children);return delete c[r.key],{children:c}}))},n.render=function(){var r=this.props,a=r.component,s=r.childFactory,l=le(r,["component","childFactory"]),c=this.state.contextValue,f=no(this.state.children).map(s);return delete l.appear,delete l.enter,delete l.exit,a===null?se.createElement(qe.Provider,{value:c},f):se.createElement(qe.Provider,{value:c},se.createElement(a,l,f))},t})(se.Component);ze.propTypes={};ze.defaultProps=ro;function ao(e){const{className:t,classes:n,pulsate:o=!1,rippleX:r,rippleY:a,rippleSize:s,in:l,onExited:c,timeout:f}=e,[m,u]=i.useState(!1),y=_(t,n.ripple,n.rippleVisible,o&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+a,left:-(s/2)+r},b=_(n.child,m&&n.childLeaving,o&&n.childPulsate);return!l&&!m&&u(!0),i.useEffect(()=>{if(!l&&c!=null){const x=setTimeout(c,f);return()=>{clearTimeout(x)}}},[c,l,f]),v.jsx("span",{className:y,style:g,children:v.jsx("span",{className:b})})}const j=ye("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),so=["center","classes","className"];let xe=e=>e,Ye,He,Ge,Ke;const Ie=550,io=80,lo=we(Ye||(Ye=xe`
2
2
  0% {
3
3
  transform: scale(0);
4
4
  opacity: 0.1;