@dcl/shop 0.1.0-28703788813.commit-38f95a2 → 0.1.0-28705608077.commit-ef6e952

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 (152) hide show
  1. package/assets/{Assets-DdgLHN4p.js → Assets-BrB_JPW7.js} +1 -1
  2. package/assets/{Cart-onyW4R6P.js → Cart-CfAaaM9Q.js} +1 -1
  3. package/assets/{Collection-BEbDkwT3.js → Collection-DPAYp7aw.js} +1 -1
  4. package/assets/{Creator-CWgCCYGl.js → Creator-CQQr9sr9.js} +1 -1
  5. package/assets/{ExchangeController-Cgb-2Fos.js → ExchangeController-D_HF_73o.js} +1 -1
  6. package/assets/{GetCredits-BkBRYCcD.js → GetCredits-Cv1JIgRT.js} +2 -2
  7. package/assets/{HelpersUtil-CAk3juHE.js → HelpersUtil-PpqjTrEW.js} +1 -1
  8. package/assets/{ImportListings-DY_eMBQh.js → ImportListings-CEsNh6T1.js} +1 -1
  9. package/assets/{ItemDetail-B0g1lScc.js → ItemDetail-5faC-uF8.js} +1 -1
  10. package/assets/{Market-rMIDWdBN.js → Market-vn4mV_Yb.js} +1 -1
  11. package/assets/{MyAssets-DOTmxtyz.js → MyAssets-BCwflKyn.js} +1 -1
  12. package/assets/{MyFavorites-BeQsMCjM.js → MyFavorites-BV44VtJf.js} +1 -1
  13. package/assets/{MyPurchases-csO67vHt.js → MyPurchases-g5MrMpiQ.js} +1 -1
  14. package/assets/{RealCheckout-BbWlFdXI.js → RealCheckout-jPtl2Hgc.js} +1 -1
  15. package/assets/{Success-ClCid1kN.js → Success-DSQgC7Vk.js} +1 -1
  16. package/assets/{SwapController-DUuI6h4m.js → SwapController-4V7Up8W4.js} +1 -1
  17. package/assets/{TradeService-CtNhI_RK.js → TradeService-BppPbwso.js} +1 -1
  18. package/assets/{W3MFrameProviderSingleton-DdglCcve.js → W3MFrameProviderSingleton-IE3ttpk4.js} +3 -3
  19. package/assets/{WebCryptoP256-BJKptYpF.js → WebCryptoP256-DsxkK8O7.js} +1 -1
  20. package/assets/{basic-CcwQYDRf.js → basic-Dv-Vy43A.js} +1 -1
  21. package/assets/{biconomy-RMpv7ejh.js → biconomy-CsMkxCXL.js} +1 -1
  22. package/assets/{buy-CuXdld5J.js → buy-gN_dQ63l.js} +1 -1
  23. package/assets/{buy-gasless-9V3tqj6f.js → buy-gasless-BYIsTqE3.js} +1 -1
  24. package/assets/{ccip-KbhVKc8F.js → ccip-CotVklEV.js} +1 -1
  25. package/assets/{ccip-DGdl3VL6.js → ccip-DmFKxJMN.js} +1 -1
  26. package/assets/{controller-CcApQcte.js → controller-pAT0J4tR.js} +2 -2
  27. package/assets/{core-CMVFFtEN.js → core-CeU_ejv-.js} +4 -4
  28. package/assets/{custom-BrSTU20K.js → custom-D2GKcjuL.js} +1 -1
  29. package/assets/{data-capture-_hnhzVRo.js → data-capture-5FeruMKc.js} +1 -1
  30. package/assets/{decimals-DNUEULOh.js → decimals-C1olXU12.js} +1 -1
  31. package/assets/decimals-Dup9E_dE.js +1 -0
  32. package/assets/{detectExtension-BIJvMrw7.js → detectExtension-Uk-_peko.js} +1 -1
  33. package/assets/{email-ByBgiZw3.js → email-DjT_p4Op.js} +1 -1
  34. package/assets/{embedded-wallet-DISQrWqQ.js → embedded-wallet-Bj1HbSEw.js} +1 -1
  35. package/assets/{engine-DIqn0zIN.js → engine-qJft_gdx.js} +1 -1
  36. package/assets/{estimate-l1-fee-BkJh8a5A.js → estimate-l1-fee-DTFOxJ5l.js} +1 -1
  37. package/assets/{eth_estimateGas-BYel3Vct.js → eth_estimateGas-B9u7ttU4.js} +1 -1
  38. package/assets/{eth_getStorageAt-SXSlQYRp.js → eth_getStorageAt-DUCeSfJf.js} +1 -1
  39. package/assets/{eth_getTransactionCount-BEJivD9N.js → eth_getTransactionCount-6n2IR_Sq.js} +1 -1
  40. package/assets/{extractIPFS-BQy4J98X.js → extractIPFS-C7HpwEtu.js} +1 -1
  41. package/assets/{features-SQwSdvgJ.js → features-TzQhgqwq.js} +1 -1
  42. package/assets/{fetchTokenMetadata-CsDG-zIE.js → fetchTokenMetadata-D8_gB--r.js} +2 -2
  43. package/assets/{get-ecosystem-wallet-info-2oaZKrnY.js → get-ecosystem-wallet-info-BVwAZzyt.js} +1 -1
  44. package/assets/{getBalance-CwnUZ2BD.js → getBalance-BLCAcJLO.js} +1 -1
  45. package/assets/{getInstalledModules-CWH5VtVy.js → getInstalledModules-CK0KKFrl.js} +1 -1
  46. package/assets/{getNFT-M6s74hrg.js → getNFT-CP1XfXMj.js} +2 -2
  47. package/assets/{getNFT-BZWXDU-6.js → getNFT-f2-xhDr3.js} +1 -1
  48. package/assets/{hashTypedData-GzPvk7xU.js → hashTypedData-D8Hzcg2_.js} +1 -1
  49. package/assets/{hashTypedData-QBd15jIl.js → hashTypedData-hsJu4-yQ.js} +1 -1
  50. package/assets/{import-CRz8iN1a.js → import-dQrEjaIt.js} +1 -1
  51. package/assets/{in-app-wallet-calls-2Tmoec2E.js → in-app-wallet-calls-CT5bDGsD.js} +1 -1
  52. package/assets/{index-uF27IY_4.js → index-4aprBRKs.js} +2 -2
  53. package/assets/{index-DLTGOpNK.js → index-6IaYoWdV.js} +1 -1
  54. package/assets/{index-C1UH3Ou4.js → index-7Ilob_oO.js} +1 -1
  55. package/assets/{index-9MlDS0NX.js → index-B5MmF9By.js} +1 -1
  56. package/assets/{index-BFtfwyme.js → index-B8MBrX9i.js} +1 -1
  57. package/assets/{index-C0HbHZho.js → index-BBEJsmUK.js} +1 -1
  58. package/assets/{index-DxybH5Ro.js → index-BBN5wT_v.js} +1 -1
  59. package/assets/{index-0jVpCjPO.js → index-BBzCMZhs.js} +3 -3
  60. package/assets/{index-F4AdEAYg.js → index-BFjppxfH.js} +1 -1
  61. package/assets/{index-BhVGRIoa.js → index-BMDBTR2c.js} +1 -1
  62. package/assets/{index-UblE4wU4.js → index-BPks9tyO.js} +1 -1
  63. package/assets/{index-D4ZuEeTk.js → index-BYez_Zlc.js} +1 -1
  64. package/assets/{index-DLTOW-AR.js → index-BgQjovnw.js} +1 -1
  65. package/assets/{index-BRqIRGSe.js → index-BhsrgAah.js} +2 -2
  66. package/assets/{index-BVgRmCgj.js → index-BkmdibsO.js} +1 -1
  67. package/assets/{index-CgddP45N.js → index-BkvtUMxV.js} +1 -1
  68. package/assets/{index-BIy5wIe5.js → index-BzEzUKoA.js} +1 -1
  69. package/assets/{index-DHBNDbnV.js → index-C4gUf5hB.js} +3 -3
  70. package/assets/{index-CC1-iho0.js → index-CbQ7roQZ.js} +1 -1
  71. package/assets/{index-BoocYqdC.js → index-CvkAB3cx.js} +1 -1
  72. package/assets/{index-rVgdZ3Eo.js → index-CxYLwCGf.js} +1 -1
  73. package/assets/{index-Cw18W77U.js → index-CzGkBeLa.js} +1 -1
  74. package/assets/{index-hzgqWxIY.js → index-D0Cdtb7t.js} +2 -2
  75. package/assets/{index-bqHOTJQj.js → index-D7UmhFbh.js} +1 -1
  76. package/assets/{index-DuMmMdCA.js → index-D8ATZmwY.js} +1 -1
  77. package/assets/{index-CdMRLSY-.js → index-DBVpSKX5.js} +1 -1
  78. package/assets/{index-DDqWSuQU.js → index-DL_SFw8V.js} +1 -1
  79. package/assets/{index-CNNidxl3.js → index-DMvGrm22.js} +1 -1
  80. package/assets/{index-DxCGKEWW.js → index-DSPDLgPF.js} +1 -1
  81. package/assets/{index-BweUxQAq.js → index-DSXe0d2S.js} +1 -1
  82. package/assets/{index-DimIoNlz.js → index-DWowOp-_.js} +1 -1
  83. package/assets/{index-CDpJvhbn.js → index-DbS8zjb8.js} +1 -1
  84. package/assets/{index-BruibFAX.js → index-Dfsw0wyG.js} +1 -1
  85. package/assets/{index--mkcA6OF.js → index-DmHJisKx.js} +1 -1
  86. package/assets/{index-CBxG_uWU.js → index-Don-0MIT.js} +1 -1
  87. package/assets/{index-B1FXz16s.js → index-DptMOTzD.js} +1 -1
  88. package/assets/{index-9u5dIWpc.js → index-DrCs3EU5.js} +1 -1
  89. package/assets/{index-BXaBoUg9.js → index-DtoO1T74.js} +1 -1
  90. package/assets/{index-CQ6tNFyB.js → index-FKOvcovU.js} +1 -1
  91. package/assets/{index-BSwtUUbj.js → index-FihobJLG.js} +1 -1
  92. package/assets/{index-CeAbQpe4.js → index-FlDuW3Af.js} +1 -1
  93. package/assets/{index-BxUnm4zs.js → index-IYjr57Gm.js} +3 -3
  94. package/assets/{index-DOwdLgef.js → index-JOJg0uwC.js} +1 -1
  95. package/assets/{index-Cnqa_v7u.js → index-K_N5Pp8I.js} +1 -1
  96. package/assets/{index-BSCiVlI-.js → index-KzQsPtYI.js} +1 -1
  97. package/assets/{index-ry_7S1pv.js → index-YCQZy-od.js} +1 -1
  98. package/assets/{index-gjW40owK.js → index-dATrKf2p.js} +1 -1
  99. package/assets/{index-B3AooTN3.js → index-h2d-LrfA.js} +1 -1
  100. package/assets/{index-D-iuF6_l.js → index-n1GCW9g8.js} +1 -1
  101. package/assets/{index-BpdAhMUH.js → index-q0CPpiDs.js} +1 -1
  102. package/assets/{index-mqmDAPng.js → index-ruNca7KW.js} +1 -1
  103. package/assets/{index.es-GV8mPCe5.js → index.es-BmGgI9PE.js} +1 -1
  104. package/assets/{index.es-xgYjIRgR.js → index.es-Demw3yyg.js} +1 -1
  105. package/assets/{index.es-CCbadZ01.js → index.es-DoSVMhnq.js} +4 -4
  106. package/assets/{localBatchGatewayRequest-Cw1MGDr7.js → localBatchGatewayRequest-DgvdQbHL.js} +1 -1
  107. package/assets/{mana-rate-hae3YfDF.js → mana-rate-B5MhGgI8.js} +1 -1
  108. package/assets/network-Dy8k_D5M.js +1 -0
  109. package/assets/{networks-D129vheF.js → networks-Co9USlgm.js} +1 -1
  110. package/assets/{onramp-BvH75pw9.js → onramp-52bN5Byd.js} +1 -1
  111. package/assets/{openzeppelin-CH99XBeZ.js → openzeppelin-CLtJleyR.js} +1 -1
  112. package/assets/{ownerOf-NRoVZ33r.js → ownerOf-C_ppAWti.js} +1 -1
  113. package/assets/{parseNft-Dm7nmQl4.js → parseNft-DokM8OJG.js} +2 -2
  114. package/assets/{parseSignature-DT9uhIVC.js → parseSignature-aZF6oVh-.js} +1 -1
  115. package/assets/{parseSignature-jLOqoRkf.js → parseSignature-gmjW2LCL.js} +3 -3
  116. package/assets/{pay-with-exchange-fABFLOA2.js → pay-with-exchange-D4S9Wmf5.js} +1 -1
  117. package/assets/{qr-overlay-CuirJDWd.js → qr-overlay-DUhflwps.js} +1 -1
  118. package/assets/{receive-xbYDznE1.js → receive-DoMkPm86.js} +1 -1
  119. package/assets/{resolveImplementation-DKsvroX0.js → resolveImplementation-BigJnLLS.js} +1 -1
  120. package/assets/{rpc-DZpOnfyo.js → rpc-CrqKmXAd.js} +1 -1
  121. package/assets/{secp256k1-CJoeVdbb.js → secp256k1-CRwM7nmK.js} +1 -1
  122. package/assets/{secp256k1-C_G1yKhv.js → secp256k1-D3mwO0A_.js} +1 -1
  123. package/assets/{secp256k1-DVXxU7Aq.js → secp256k1-xtgJrVQ1.js} +1 -1
  124. package/assets/{send-CnnTvccZ.js → send--3g_Xld9.js} +1 -1
  125. package/assets/{send-batch-transaction-DzhaQbgk.js → send-batch-transaction-Bp5WDq9j.js} +1 -1
  126. package/assets/{send-eip712-transaction-CrKdQONJ.js → send-eip712-transaction-Rq51yM2D.js} +2 -2
  127. package/assets/{send-gasless-transaction-CzZshQjn.js → send-gasless-transaction-17CqVL4r.js} +2 -2
  128. package/assets/{sendRawTransaction-DMNQstjs.js → sendRawTransaction-Bq4wwLvo.js} +3 -3
  129. package/assets/{serializeTransaction-CzZEhSoE.js → serializeTransaction-0_6cdils.js} +1 -1
  130. package/assets/{session-proposal-DZVHuPlP.js → session-proposal-Dcjbs-Sk.js} +1 -1
  131. package/assets/{session-request-D-DkcFdt.js → session-request-DJqVx1Vf.js} +2 -2
  132. package/assets/{sha256-CuNUlnJl.js → sha256-BOiGkQ-k.js} +1 -1
  133. package/assets/{signing-gIRxihsu.js → signing-ViEkal5y.js} +4 -4
  134. package/assets/{socials-DpO0X8DW.js → socials-omHiKtr3.js} +1 -1
  135. package/assets/{swaps-Dtr0SBms.js → swaps-BEUP5uE6.js} +1 -1
  136. package/assets/{thirdweb-DyKBeTNR.js → thirdweb-CFLXE91Z.js} +3 -3
  137. package/assets/{totalSupply-DUnATfzr.js → totalSupply-Bk0d_rAO.js} +1 -1
  138. package/assets/{transactionReceipt-CA8qEQY0.js → transactionReceipt-BZCOl44B.js} +1 -1
  139. package/assets/{transactions-COaeNTzw.js → transactions-BkCFX1zV.js} +1 -1
  140. package/assets/{verifyHash-Dn1rHH9h.js → verifyHash-m7iC7_JY.js} +1 -1
  141. package/assets/{w3m-modal-CfFxTBSu.js → w3m-modal-BxgY4Tpa.js} +1 -1
  142. package/assets/{w3m-modal-DcV41K6L.js → w3m-modal-DNEwvOPw.js} +1 -1
  143. package/assets/{wait-for-tx-receipt-DA22QWGo.js → wait-for-tx-receipt-BauhQAMN.js} +1 -1
  144. package/assets/{wallet-kind-C3GUJMOe.js → wallet-kind-gfXMYxyJ.js} +1 -1
  145. package/assets/{wallets-4lZrdCtI.js → wallets-7TfWPN5l.js} +6 -6
  146. package/assets/{web-connector-DAjh_JkP.js → web-connector-UbJn8_LJ.js} +3 -3
  147. package/assets/{writeContract-CITYPGU4.js → writeContract-BvcBH3tC.js} +1 -1
  148. package/assets/{zoraTestnet-BdK0bmvK.js → zoraTestnet--lDrug2s.js} +1 -1
  149. package/index.html +8 -8
  150. package/package.json +2 -2
  151. package/assets/decimals-BO1bAY7W.js +0 -1
  152. package/assets/network-afam9Iay.js +0 -1
@@ -1,4 +1,4 @@
1
- import{i as l,b}from"./lit-element-B3y9oplH.js";import{n as r}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-9u5dIWpc.js";import{d as h,r as v,e as f}from"./index-BxUnm4zs.js";const m=h`
1
+ import{i as l,b}from"./lit-element-B3y9oplH.js";import{n as r}from"./class-map-CxwNmq0D.js";import{c as p}from"./index-DrCs3EU5.js";import{d as h,r as v,e as f}from"./index-IYjr57Gm.js";const m=h`
2
2
  button {
3
3
  background-color: transparent;
4
4
  padding: ${({spacing:t})=>t[1]};
@@ -1,2 +1,2 @@
1
1
  const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/native-Df5jPT-i.js","assets/ethers-BxoDGoYp.js","assets/react-E8ng6RF2.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-jLOqoRkf.js";import{ac as Ir,ad as Tr,ae as Cr,af as vr,ag as Sr,ah as Ar,ai as Pr,aj as _r,ak as Rr,al as qr,am as Fr,an as Ur,ao as kr,ap as Br,aq as Nr,ar as Lr,as as Mr,at as Dr,au as zr,av as Gr,aw as $r,ax as Hr,ay as Or,az as jr,aA as Wr,aB as Vr,aC as Jr,aD as Kr,aE as Yr,aF as Zr,aG as Qr,aH as Xr,aI as ts,aJ as es,aK as as,aL as ns,aM as rs,aN as ss,aO as os,aP as is,aQ as cs,aR as us,aS as ds,aT as ls,aU as ms,aV as fs,aW as hs,aX as ps,aY as ys,aZ as gs,a_ as bs,a$ as ws,b0 as xs,b1 as Es,b2 as Is,b3 as Ts,b4 as Cs,b5 as vs,b6 as Ss,b7 as As,b8 as Ps,b9 as _s,ba as Rs,bb as qs,bc as Fs,bd as Us,be as ks,bf as Bs,bg as Ns,bh as Ls,bi as Ms,bj as Ds,bk as zs,bl as Gs,bm as $s,bn as Hs,bo as Os,bp as js,bq as Ws,br as Vs,bs as Js,bt as Ks,bu as Ys,bv as Zs,bw as Qs,bx as Xs,by as to,bz as eo,br as ao,bA as no,bB as ro,bC as so,bD as oo,bE as io,bF as co,bG as uo,bH as lo,bH as mo,bI as fo,bJ as ho,bi as po,bj as yo,bK as go,bL as bo,bM as wo,bN as xo,bO as Eo}from"./parseSignature-jLOqoRkf.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-gIRxihsu.js";import{bl as To,bm as Co,bn as vo,bo as So,bp as Ao,bq as Po,br as _o,bs as Ro,bt as qo,bu as Fo,bv as Uo,bw as ko,bx as Bo,by as No,bz as Lo,Q as Mo,bA as Do,bB as zo,bC as Go,bD as $o,bE as Ho,bF as Oo,bG as jo,bH as Wo,bI as Vo,bJ as Jo,bK as Ko,bL as Yo,bM as Zo,bN as Qo,bO as Xo,bP as ti,bQ as ei,bR as ai,bS as ni,bT as ri,bU as si,bV as oi,E as ii,bW as ci,bX as ui,bY as di,bZ as li,b_ as mi,p as fi,b$ as hi,at as pi,au as yi,c0 as gi,c1 as bi,c2 as wi,c3 as xi,c4 as Ei,f as Ii,c4 as Ti,c5 as Ci,c6 as vi,c7 as Si,c8 as Ai,c9 as Pi,ca as _i,cb as Ri,cc as qi,cd as Fi,C as Ui,ce as ki,c3 as Bi,c4 as Ni,ce as Li,f as Mi,c4 as Di,z as zi}from"./signing-gIRxihsu.js";import{w as Ze,h as Qe,g as Xe,v as ta,s as ea}from"./hashTypedData-QBd15jIl.js";import{I as $i,a as Hi,b as Oi,d as ji,c as Wi,e as Vi}from"./hashTypedData-QBd15jIl.js";import{T as aa,a as Z,W as It,b as na,U as ra,R as sa}from"./rpc-DZpOnfyo.js";import{A as Ki,c as Yi,B as Zi,C as Qi,D as Xi,H as tc,I as ec,d as ac,e as nc,f as rc,J as sc,L as oc,M as ic,h as cc,P as uc,i as dc,j as lc,k as mc,l as fc,m as hc,S as pc,n as yc,o as gc,p as bc,q as wc,r as xc,s as Ec}from"./rpc-DZpOnfyo.js";import{_ as oa}from"./index-DHBNDbnV.js";import{t as ia,H as ca}from"./sha256-CuNUlnJl.js";import{b as Tc,h as Cc,a as vc,c as Sc,d as Ac,e as Pc,f as _c,g as Rc,i as qc,j as Fc,k as Uc,l as kc,n as Bc,o as Nc,p as Lc,q as Mc,r as Dc,u as zc,v as Gc,w as $c,x as Hc,y as Oc,z as jc,A as Wc,B as Vc,C as Jc,D as Kc,E as Yc,F as Zc,G as Qc,I as Xc,J as tu,K as eu,L as au,M as nu,N as ru,O as su,P as ou,Q as iu,R as cu,S as uu,m as du,T as lu,U as mu,V as fu,W as hu,X as pu,Y as yu,Z as gu,_ as bu,$ as wu,a0 as xu,a1 as Eu,a2 as Iu,a3 as Tu,a4 as Cu,a5 as vu,a6 as Su,a7 as Au,a8 as Pu,a9 as _u,aa as Ru,ab as qu,ac as Fu,ad as Uu,ae as ku,af as Bu,ag as Nu,ah as Lu,ai as Mu,aj as Du,ak as zu,al as Gu,am as $u,an as Hu,ao as Ou,ap as ju,aq as Wu,ar as Vu,as as Ju,at as Ku,au as Yu,av as Zu,aw as Qu,ax as Xu,ay as td,az as ed,aA as ad,aB as nd,aC as rd,aD as sd,aE as od,aF as id,aG as cd,aH as ud,aI as dd,aJ as ld,aK as md,s as fd}from"./sha256-CuNUlnJl.js";import{ccipRequest as pd,ccipRequest as yd,offchainLookup as gd,offchainLookupAbiItem as bd,offchainLookupSignature as wd}from"./ccip-DGdl3VL6.js";import{d as Ed,a as Id,f as Td}from"./transactionReceipt-CA8qEQY0.js";import"./utils-CtSpY5KY.js";import"./ethers-BxoDGoYp.js";import"./react-E8ng6RF2.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 Wn({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 Vn(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 Jn({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 Kn(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-Df5jPT-i.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 Yn(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 Zn(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 Qn(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 Xn({address:t,hash:e,signature:a}){return ft(k(t),await Q({hash:e,signature:a}))}async function tr({address:t,message:e,signature:a}){return ft(k(t),await Sa({message:e,signature:a}))}async function er(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 ar(t,e="wei"){return Wt(t,Ie[e])}function nr(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 rr(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 sr(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 or(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 ir(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 cr(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 ur 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 dr(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 lr(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 mr(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 fr(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 hr(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 pr({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 yr(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 gr(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 br({r:t,yParityAndS:e}){return`0x${new Bt.Signature(A(t),A(e)).toCompactHex()}`}function wr(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,To as AbiDecodingDataSizeInvalidError,Co as AbiDecodingDataSizeTooSmallError,vo as AbiDecodingZeroDataError,So as AbiEncodingArrayLengthMismatchError,Ao as AbiEncodingBytesSizeMismatchError,Po as AbiEncodingLengthMismatchError,_o as AbiErrorInputsNotFoundError,Ro as AbiErrorNotFoundError,qo as AbiErrorSignatureNotFoundError,Fo as AbiEventNotFoundError,Uo as AbiEventSignatureEmptyTopicsError,ko as AbiEventSignatureNotFoundError,Bo as AbiFunctionNotFoundError,No as AbiFunctionOutputsNotFoundError,Lo as AbiFunctionSignatureNotFoundError,Ir as AccountStateConflictError,Ki as AtomicReadyWalletRejectedUpgradeError,Yi as AtomicityNotSupportedError,mt as BaseError,Tr as BaseFeeScalarError,Cr as BlockNotFoundError,vr as BundleFailedError,Zi as BundleTooLargeError,Mo as BytesSizeMismatchError,Sr as CallExecutionError,Qi as ChainDisconnectedError,Ar as ChainDoesNotSupportContract,Pr as ChainMismatchError,_r as ChainNotFoundError,Rr as CircularReferenceError,qr as ClientChainNotConfiguredError,Fr as ContractFunctionExecutionError,Ur as ContractFunctionRevertedError,kr as ContractFunctionZeroDataError,Br as CounterfactualDeploymentFailedError,Do as DecodeLogDataMismatch,zo as DecodeLogTopicsMismatch,Xi as DuplicateIdError,ur as EIP1193ProviderRpcError,Nr as Eip1559FeesNotSupportedError,Lr as EnsAvatarInvalidNftUriError,Mr as EnsAvatarUnsupportedNamespaceError,Dr as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,zr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Gr as FeeCapTooHighError,$r as FeeCapTooLowError,Hr as FeeConflictError,Go as FilterTypeNotSupportedError,tc as HttpRequestError,Or as InsufficientFundsError,$o as IntegerOutOfRangeError,ec as InternalRpcError,jr as IntrinsicGasTooHighError,Wr as IntrinsicGasTooLowError,Ho as InvalidAbiDecodingTypeError,Oo as InvalidAbiEncodingTypeError,Vr as InvalidAbiItemError,Qt as InvalidAbiParameterError,Jr as InvalidAbiParametersError,Kr as InvalidAbiTypeParameterError,je as InvalidAddressError,jo as InvalidArrayError,Wo as InvalidBytesBooleanError,Yr as InvalidChainIdError,Na as InvalidDecimalNumberError,Vo as InvalidDefinitionTypeError,$i as InvalidDomainError,Zr as InvalidFunctionModifierError,Jo as InvalidHexBooleanError,Ge as InvalidHexValueError,ac as InvalidInputRpcError,Ee as InvalidLegacyVError,Qr as InvalidModifierError,Xr as InvalidParameterError,nc as InvalidParamsRpcError,ts as InvalidParenthesisError,Hi as InvalidPrimaryTypeError,rc as InvalidRequestRpcError,es as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,as as InvalidSignatureError,ns as InvalidStorageKeySizeError,rs as InvalidStructSignatureError,Oi as InvalidStructTypeError,sc as JsonRpcVersionUnsupportedError,oc as LimitExceededRpcError,ss as MaxFeePerGasTooLowError,ic as MethodNotFoundRpcError,cc as MethodNotSupportedRpcError,os as NonceMaxValueError,is as NonceTooHighError,cs as NonceTooLowError,uc as ParseRpcError,dc as ProviderDisconnectedError,lc as ProviderRpcError,us as RawContractError,mc as ResourceNotFoundRpcError,fc as ResourceUnavailableRpcError,hc as RpcError,sa as RpcRequestError,Ko as SizeExceedsPaddingSizeError,Yo as SizeOverflowError,Zo as SliceOffsetOutOfBoundsError,Z as SocketClosedError,ds as SolidityProtectedKeywordError,ls as StateAssignmentConflictError,pc as SwitchChainError,aa as TimeoutError,ms as TipAboveFeeCapError,fs as TransactionExecutionError,hs as TransactionNotFoundError,ps as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,ys as TransactionTypeNotSupportedError,yc as UnauthorizedProviderError,gc as UnknownBundleIdError,gs as UnknownNodeError,bc as UnknownRpcError,bs as UnknownSignatureError,ws as UnknownTypeError,wc as UnsupportedChainIdError,xc as UnsupportedNonOptionalCapabilityError,Qo as UnsupportedPackedAbiType,Ec as UnsupportedProviderMethodError,ke as UrlRequiredError,ra as UserRejectedRequestError,xs as WaitForCallsStatusTimeoutError,Es as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,Is as blobsToCommitments,Ts as blobsToProofs,Xo as boolToBytes,ti as boolToHex,ei as bytesToBigInt,ai as bytesToBool,G as bytesToHex,ni as bytesToNumber,Tc as bytesToRlp,ri as bytesToString,pd as ccipFetch,yd as ccipRequest,Ve as checksumAddress,Be as commitmentToVersionedHash,Cs as commitmentsToVersionedHashes,br as compactSignatureToHex,pr as compactSignatureToSignature,ze as concat,si as concatBytes,oi as concatHex,At as createClient,vs as createNonceManager,Ss as createPublicClient,rr as createTestClient,lt as createTransport,sr as createWalletClient,or as custom,Mt as decodeAbiParameters,dr as decodeDeployData,ii as decodeErrorResult,ci as decodeEventLog,As as decodeFunctionData,Ps as decodeFunctionResult,ui as defineBlock,di as defineChain,Bn as defineKzg,li as defineTransaction,Ed as defineTransactionReceipt,mi as defineTransactionRequest,_s as deploylessCallViaBytecodeBytecode,Rs as deploylessCallViaFactoryBytecode,ji as domainSeparator,fi as encodeAbiParameters,Ce as encodeDeployData,qs as encodeErrorResult,hi as encodeEventTopics,Xt as encodeFunctionData,Fs as encodeFunctionResult,Us as encodePacked,ks as erc1155Abi,Bs as erc20Abi,Ns as erc20Abi_bytes32,Ls as erc4626Abi,Ms as erc6492SignatureValidatorAbi,Ds as erc6492SignatureValidatorByteCode,zs as erc721Abi,Gs as ethAddress,Ie as etherUnits,Jn as extractChain,ir as fallback,pi as formatBlock,$s as formatEther,Hs as formatGwei,Id as formatLog,yi as formatTransaction,Td as formatTransactionReceipt,ht as formatTransactionRequest,Os as formatUnits,lr as fromBlobs,gi as fromBytes,bi as fromHex,Dt as fromRlp,wi as getAbiItem,k as getAddress,js as getChainContractAddress,Wn as getContract,Vn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,xi as getEventSelector,Ei as getEventSignature,Ii as getFunctionSelector,Ti as getFunctionSignature,Pa as getSerializedTransactionType,Ws as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Wi as hashDomain,me as hashMessage,Vi as hashStruct,Qe as hashTypedData,A as hexToBigInt,Ci as hexToBool,H as hexToBytes,yr as hexToCompactSignature,F as hexToNumber,Cc as hexToRlp,Vs as hexToSignature,vi as hexToString,Js 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,Ks as labelhash,vc as maxInt104,Sc as maxInt112,Ac as maxInt120,Pc as maxInt128,_c as maxInt136,Rc as maxInt144,qc as maxInt152,Fc as maxInt16,Uc as maxInt160,kc as maxInt168,Bc as maxInt176,Nc as maxInt184,Lc as maxInt192,Mc as maxInt200,Dc as maxInt208,zc as maxInt216,Gc as maxInt224,$c as maxInt232,Hc as maxInt24,Oc as maxInt240,jc as maxInt248,Wc as maxInt256,Vc as maxInt32,Jc as maxInt40,Kc as maxInt48,Yc as maxInt56,Zc as maxInt64,Qc as maxInt72,Xc as maxInt8,tu as maxInt80,eu as maxInt88,au as maxInt96,nu as maxUint104,ru as maxUint112,su as maxUint120,ou as maxUint128,iu as maxUint136,cu as maxUint144,uu as maxUint152,du as maxUint16,lu as maxUint160,mu as maxUint168,fu as maxUint176,hu as maxUint184,pu as maxUint192,yu as maxUint200,gu as maxUint208,bu as maxUint216,wu as maxUint224,xu as maxUint232,Eu as maxUint24,Iu as maxUint240,Tu as maxUint248,Cu as maxUint256,vu as maxUint32,Su as maxUint40,Au as maxUint48,Pu as maxUint56,_u as maxUint64,Ru as maxUint72,qu as maxUint8,Fu as maxUint80,Uu as maxUint88,ku as maxUint96,Bu as minInt104,Nu as minInt112,Lu as minInt120,Mu as minInt128,Du as minInt136,zu as minInt144,Gu as minInt152,$u as minInt16,Hu as minInt160,Ou as minInt168,ju as minInt176,Wu as minInt184,Vu as minInt192,Ju as minInt200,Ku as minInt208,Yu as minInt216,Zu as minInt224,Qu as minInt232,Xu as minInt24,td as minInt240,ed as minInt248,ad as minInt256,nd as minInt32,rd as minInt40,sd as minInt48,od as minInt56,id as minInt64,cd as minInt72,ud as minInt8,dd as minInt80,ld as minInt88,md as minInt96,Ys as multicall3Abi,Zs as namehash,Qs as nonceManager,Si as numberToBytes,R as numberToHex,gd as offchainLookup,bd as offchainLookupAbiItem,wd as offchainLookupSignature,Me as pad,Ai as padBytes,xt as padHex,Xs as parseAbi,to as parseAbiItem,jn as parseAbiParameter,eo as parseAbiParameters,yr as parseCompactSignature,Yn as parseErc6492Signature,Zn as parseErc8010Signature,ar as parseEther,Pi as parseEventLogs,nr as parseGwei,ao as parseSignature,_a as parseTransaction,Wt as parseUnits,no as prepareEncodeFunctionData,ro as presignMessagePrefix,so as publicActions,Q as recoverAddress,Sa as recoverMessageAddress,oo as recoverPublicKey,gr as recoverTransactionAddress,Aa as recoverTypedDataAddress,Kn as ripemd160,io as rpcSchema,_i as rpcTransactionType,co as serializeAccessList,br as serializeCompactSignature,uo as serializeErc6492Signature,Qn as serializeErc8010Signature,lo as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Ri as setErrorConfig,hr as setupKzg,fd as sha256,Fn as shouldThrow,mr as sidecarsToVersionedHashes,wr as signatureToCompactSignature,mo as signatureToHex,$e as size,De as slice,qi as sliceBytes,Lt as sliceHex,Fi as stringToBytes,Ke as stringToHex,Ui as stringify,hn as testActions,ge as toBlobSidecars,fo as toBlobs,B as toBytes,fr as toCoinType,ki as toEventHash,Bi as toEventSelector,Ni as toEventSignature,Li as toFunctionHash,Mi as toFunctionSelector,Di as toFunctionSignature,Nt as toHex,ho as toPrefixedMessage,ia as toRlp,zi as transactionType,We as trim,po as universalSignatureValidatorAbi,yo as universalSignatureValidatorByteCode,ta as validateTypedData,Xn as verifyHash,tr as verifyMessage,er as verifyTypedData,qn as walletActions,cr as webSocket,go as weiUnits,bo as withCache,wo as withRetry,Ze as withTimeout,xo as zeroAddress,Eo 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-gmjW2LCL.js";import{ac as Ir,ad as Tr,ae as Cr,af as vr,ag as Sr,ah as Ar,ai as Pr,aj as _r,ak as Rr,al as qr,am as Fr,an as Ur,ao as kr,ap as Br,aq as Nr,ar as Lr,as as Mr,at as Dr,au as zr,av as Gr,aw as $r,ax as Hr,ay as Or,az as jr,aA as Wr,aB as Vr,aC as Jr,aD as Kr,aE as Yr,aF as Zr,aG as Qr,aH as Xr,aI as ts,aJ as es,aK as as,aL as ns,aM as rs,aN as ss,aO as os,aP as is,aQ as cs,aR as us,aS as ds,aT as ls,aU as ms,aV as fs,aW as hs,aX as ps,aY as ys,aZ as gs,a_ as bs,a$ as ws,b0 as xs,b1 as Es,b2 as Is,b3 as Ts,b4 as Cs,b5 as vs,b6 as Ss,b7 as As,b8 as Ps,b9 as _s,ba as Rs,bb as qs,bc as Fs,bd as Us,be as ks,bf as Bs,bg as Ns,bh as Ls,bi as Ms,bj as Ds,bk as zs,bl as Gs,bm as $s,bn as Hs,bo as Os,bp as js,bq as Ws,br as Vs,bs as Js,bt as Ks,bu as Ys,bv as Zs,bw as Qs,bx as Xs,by as to,bz as eo,br as ao,bA as no,bB as ro,bC as so,bD as oo,bE as io,bF as co,bG as uo,bH as lo,bH as mo,bI as fo,bJ as ho,bi as po,bj as yo,bK as go,bL as bo,bM as wo,bN as xo,bO as Eo}from"./parseSignature-gmjW2LCL.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-ViEkal5y.js";import{bl as To,bm as Co,bn as vo,bo as So,bp as Ao,bq as Po,br as _o,bs as Ro,bt as qo,bu as Fo,bv as Uo,bw as ko,bx as Bo,by as No,bz as Lo,Q as Mo,bA as Do,bB as zo,bC as Go,bD as $o,bE as Ho,bF as Oo,bG as jo,bH as Wo,bI as Vo,bJ as Jo,bK as Ko,bL as Yo,bM as Zo,bN as Qo,bO as Xo,bP as ti,bQ as ei,bR as ai,bS as ni,bT as ri,bU as si,bV as oi,E as ii,bW as ci,bX as ui,bY as di,bZ as li,b_ as mi,p as fi,b$ as hi,at as pi,au as yi,c0 as gi,c1 as bi,c2 as wi,c3 as xi,c4 as Ei,f as Ii,c4 as Ti,c5 as Ci,c6 as vi,c7 as Si,c8 as Ai,c9 as Pi,ca as _i,cb as Ri,cc as qi,cd as Fi,C as Ui,ce as ki,c3 as Bi,c4 as Ni,ce as Li,f as Mi,c4 as Di,z as zi}from"./signing-ViEkal5y.js";import{w as Ze,h as Qe,g as Xe,v as ta,s as ea}from"./hashTypedData-hsJu4-yQ.js";import{I as $i,a as Hi,b as Oi,d as ji,c as Wi,e as Vi}from"./hashTypedData-hsJu4-yQ.js";import{T as aa,a as Z,W as It,b as na,U as ra,R as sa}from"./rpc-CrqKmXAd.js";import{A as Ki,c as Yi,B as Zi,C as Qi,D as Xi,H as tc,I as ec,d as ac,e as nc,f as rc,J as sc,L as oc,M as ic,h as cc,P as uc,i as dc,j as lc,k as mc,l as fc,m as hc,S as pc,n as yc,o as gc,p as bc,q as wc,r as xc,s as Ec}from"./rpc-CrqKmXAd.js";import{_ as oa}from"./index-C4gUf5hB.js";import{t as ia,H as ca}from"./sha256-BOiGkQ-k.js";import{b as Tc,h as Cc,a as vc,c as Sc,d as Ac,e as Pc,f as _c,g as Rc,i as qc,j as Fc,k as Uc,l as kc,n as Bc,o as Nc,p as Lc,q as Mc,r as Dc,u as zc,v as Gc,w as $c,x as Hc,y as Oc,z as jc,A as Wc,B as Vc,C as Jc,D as Kc,E as Yc,F as Zc,G as Qc,I as Xc,J as tu,K as eu,L as au,M as nu,N as ru,O as su,P as ou,Q as iu,R as cu,S as uu,m as du,T as lu,U as mu,V as fu,W as hu,X as pu,Y as yu,Z as gu,_ as bu,$ as wu,a0 as xu,a1 as Eu,a2 as Iu,a3 as Tu,a4 as Cu,a5 as vu,a6 as Su,a7 as Au,a8 as Pu,a9 as _u,aa as Ru,ab as qu,ac as Fu,ad as Uu,ae as ku,af as Bu,ag as Nu,ah as Lu,ai as Mu,aj as Du,ak as zu,al as Gu,am as $u,an as Hu,ao as Ou,ap as ju,aq as Wu,ar as Vu,as as Ju,at as Ku,au as Yu,av as Zu,aw as Qu,ax as Xu,ay as td,az as ed,aA as ad,aB as nd,aC as rd,aD as sd,aE as od,aF as id,aG as cd,aH as ud,aI as dd,aJ as ld,aK as md,s as fd}from"./sha256-BOiGkQ-k.js";import{ccipRequest as pd,ccipRequest as yd,offchainLookup as gd,offchainLookupAbiItem as bd,offchainLookupSignature as wd}from"./ccip-DmFKxJMN.js";import{d as Ed,a as Id,f as Td}from"./transactionReceipt-BZCOl44B.js";import"./utils-CtSpY5KY.js";import"./ethers-BxoDGoYp.js";import"./react-E8ng6RF2.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 Wn({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 Vn(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 Jn({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 Kn(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-Df5jPT-i.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 Yn(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 Zn(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 Qn(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 Xn({address:t,hash:e,signature:a}){return ft(k(t),await Q({hash:e,signature:a}))}async function tr({address:t,message:e,signature:a}){return ft(k(t),await Sa({message:e,signature:a}))}async function er(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 ar(t,e="wei"){return Wt(t,Ie[e])}function nr(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 rr(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 sr(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 or(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 ir(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 cr(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 ur 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 dr(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 lr(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 mr(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 fr(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 hr(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 pr({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 yr(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 gr(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 br({r:t,yParityAndS:e}){return`0x${new Bt.Signature(A(t),A(e)).toCompactHex()}`}function wr(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,To as AbiDecodingDataSizeInvalidError,Co as AbiDecodingDataSizeTooSmallError,vo as AbiDecodingZeroDataError,So as AbiEncodingArrayLengthMismatchError,Ao as AbiEncodingBytesSizeMismatchError,Po as AbiEncodingLengthMismatchError,_o as AbiErrorInputsNotFoundError,Ro as AbiErrorNotFoundError,qo as AbiErrorSignatureNotFoundError,Fo as AbiEventNotFoundError,Uo as AbiEventSignatureEmptyTopicsError,ko as AbiEventSignatureNotFoundError,Bo as AbiFunctionNotFoundError,No as AbiFunctionOutputsNotFoundError,Lo as AbiFunctionSignatureNotFoundError,Ir as AccountStateConflictError,Ki as AtomicReadyWalletRejectedUpgradeError,Yi as AtomicityNotSupportedError,mt as BaseError,Tr as BaseFeeScalarError,Cr as BlockNotFoundError,vr as BundleFailedError,Zi as BundleTooLargeError,Mo as BytesSizeMismatchError,Sr as CallExecutionError,Qi as ChainDisconnectedError,Ar as ChainDoesNotSupportContract,Pr as ChainMismatchError,_r as ChainNotFoundError,Rr as CircularReferenceError,qr as ClientChainNotConfiguredError,Fr as ContractFunctionExecutionError,Ur as ContractFunctionRevertedError,kr as ContractFunctionZeroDataError,Br as CounterfactualDeploymentFailedError,Do as DecodeLogDataMismatch,zo as DecodeLogTopicsMismatch,Xi as DuplicateIdError,ur as EIP1193ProviderRpcError,Nr as Eip1559FeesNotSupportedError,Lr as EnsAvatarInvalidNftUriError,Mr as EnsAvatarUnsupportedNamespaceError,Dr as EnsAvatarUriResolutionError,Ne as EnsInvalidChainIdError,zr as EstimateGasExecutionError,Fe as ExecutionRevertedError,Gr as FeeCapTooHighError,$r as FeeCapTooLowError,Hr as FeeConflictError,Go as FilterTypeNotSupportedError,tc as HttpRequestError,Or as InsufficientFundsError,$o as IntegerOutOfRangeError,ec as InternalRpcError,jr as IntrinsicGasTooHighError,Wr as IntrinsicGasTooLowError,Ho as InvalidAbiDecodingTypeError,Oo as InvalidAbiEncodingTypeError,Vr as InvalidAbiItemError,Qt as InvalidAbiParameterError,Jr as InvalidAbiParametersError,Kr as InvalidAbiTypeParameterError,je as InvalidAddressError,jo as InvalidArrayError,Wo as InvalidBytesBooleanError,Yr as InvalidChainIdError,Na as InvalidDecimalNumberError,Vo as InvalidDefinitionTypeError,$i as InvalidDomainError,Zr as InvalidFunctionModifierError,Jo as InvalidHexBooleanError,Ge as InvalidHexValueError,ac as InvalidInputRpcError,Ee as InvalidLegacyVError,Qr as InvalidModifierError,Xr as InvalidParameterError,nc as InvalidParamsRpcError,ts as InvalidParenthesisError,Hi as InvalidPrimaryTypeError,rc as InvalidRequestRpcError,es as InvalidSerializableTransactionError,$ as InvalidSerializedTransactionError,he as InvalidSerializedTransactionTypeError,as as InvalidSignatureError,ns as InvalidStorageKeySizeError,rs as InvalidStructSignatureError,Oi as InvalidStructTypeError,sc as JsonRpcVersionUnsupportedError,oc as LimitExceededRpcError,ss as MaxFeePerGasTooLowError,ic as MethodNotFoundRpcError,cc as MethodNotSupportedRpcError,os as NonceMaxValueError,is as NonceTooHighError,cs as NonceTooLowError,uc as ParseRpcError,dc as ProviderDisconnectedError,lc as ProviderRpcError,us as RawContractError,mc as ResourceNotFoundRpcError,fc as ResourceUnavailableRpcError,hc as RpcError,sa as RpcRequestError,Ko as SizeExceedsPaddingSizeError,Yo as SizeOverflowError,Zo as SliceOffsetOutOfBoundsError,Z as SocketClosedError,ds as SolidityProtectedKeywordError,ls as StateAssignmentConflictError,pc as SwitchChainError,aa as TimeoutError,ms as TipAboveFeeCapError,fs as TransactionExecutionError,hs as TransactionNotFoundError,ps as TransactionReceiptNotFoundError,na as TransactionRejectedRpcError,ys as TransactionTypeNotSupportedError,yc as UnauthorizedProviderError,gc as UnknownBundleIdError,gs as UnknownNodeError,bc as UnknownRpcError,bs as UnknownSignatureError,ws as UnknownTypeError,wc as UnsupportedChainIdError,xc as UnsupportedNonOptionalCapabilityError,Qo as UnsupportedPackedAbiType,Ec as UnsupportedProviderMethodError,ke as UrlRequiredError,ra as UserRejectedRequestError,xs as WaitForCallsStatusTimeoutError,Es as WaitForTransactionReceiptTimeoutError,It as WebSocketRequestError,qt as assertCurrentChain,Rt as assertRequest,pe as assertTransactionEIP1559,ye as assertTransactionEIP2930,xe as assertTransactionLegacy,Is as blobsToCommitments,Ts as blobsToProofs,Xo as boolToBytes,ti as boolToHex,ei as bytesToBigInt,ai as bytesToBool,G as bytesToHex,ni as bytesToNumber,Tc as bytesToRlp,ri as bytesToString,pd as ccipFetch,yd as ccipRequest,Ve as checksumAddress,Be as commitmentToVersionedHash,Cs as commitmentsToVersionedHashes,br as compactSignatureToHex,pr as compactSignatureToSignature,ze as concat,si as concatBytes,oi as concatHex,At as createClient,vs as createNonceManager,Ss as createPublicClient,rr as createTestClient,lt as createTransport,sr as createWalletClient,or as custom,Mt as decodeAbiParameters,dr as decodeDeployData,ii as decodeErrorResult,ci as decodeEventLog,As as decodeFunctionData,Ps as decodeFunctionResult,ui as defineBlock,di as defineChain,Bn as defineKzg,li as defineTransaction,Ed as defineTransactionReceipt,mi as defineTransactionRequest,_s as deploylessCallViaBytecodeBytecode,Rs as deploylessCallViaFactoryBytecode,ji as domainSeparator,fi as encodeAbiParameters,Ce as encodeDeployData,qs as encodeErrorResult,hi as encodeEventTopics,Xt as encodeFunctionData,Fs as encodeFunctionResult,Us as encodePacked,ks as erc1155Abi,Bs as erc20Abi,Ns as erc20Abi_bytes32,Ls as erc4626Abi,Ms as erc6492SignatureValidatorAbi,Ds as erc6492SignatureValidatorByteCode,zs as erc721Abi,Gs as ethAddress,Ie as etherUnits,Jn as extractChain,ir as fallback,pi as formatBlock,$s as formatEther,Hs as formatGwei,Id as formatLog,yi as formatTransaction,Td as formatTransactionReceipt,ht as formatTransactionRequest,Os as formatUnits,lr as fromBlobs,gi as fromBytes,bi as fromHex,Dt as fromRlp,wi as getAbiItem,k as getAddress,js as getChainContractAddress,Wn as getContract,Vn as getContractAddress,te as getContractError,da as getCreate2Address,ua as getCreateAddress,xi as getEventSelector,Ei as getEventSignature,Ii as getFunctionSelector,Ti as getFunctionSignature,Pa as getSerializedTransactionType,Ws as getTransactionType,Xe as getTypesForEIP712Domain,Te as gweiUnits,Wi as hashDomain,me as hashMessage,Vi as hashStruct,Qe as hashTypedData,A as hexToBigInt,Ci as hexToBool,H as hexToBytes,yr as hexToCompactSignature,F as hexToNumber,Cc as hexToRlp,Vs as hexToSignature,vi as hexToString,Js 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,Ks as labelhash,vc as maxInt104,Sc as maxInt112,Ac as maxInt120,Pc as maxInt128,_c as maxInt136,Rc as maxInt144,qc as maxInt152,Fc as maxInt16,Uc as maxInt160,kc as maxInt168,Bc as maxInt176,Nc as maxInt184,Lc as maxInt192,Mc as maxInt200,Dc as maxInt208,zc as maxInt216,Gc as maxInt224,$c as maxInt232,Hc as maxInt24,Oc as maxInt240,jc as maxInt248,Wc as maxInt256,Vc as maxInt32,Jc as maxInt40,Kc as maxInt48,Yc as maxInt56,Zc as maxInt64,Qc as maxInt72,Xc as maxInt8,tu as maxInt80,eu as maxInt88,au as maxInt96,nu as maxUint104,ru as maxUint112,su as maxUint120,ou as maxUint128,iu as maxUint136,cu as maxUint144,uu as maxUint152,du as maxUint16,lu as maxUint160,mu as maxUint168,fu as maxUint176,hu as maxUint184,pu as maxUint192,yu as maxUint200,gu as maxUint208,bu as maxUint216,wu as maxUint224,xu as maxUint232,Eu as maxUint24,Iu as maxUint240,Tu as maxUint248,Cu as maxUint256,vu as maxUint32,Su as maxUint40,Au as maxUint48,Pu as maxUint56,_u as maxUint64,Ru as maxUint72,qu as maxUint8,Fu as maxUint80,Uu as maxUint88,ku as maxUint96,Bu as minInt104,Nu as minInt112,Lu as minInt120,Mu as minInt128,Du as minInt136,zu as minInt144,Gu as minInt152,$u as minInt16,Hu as minInt160,Ou as minInt168,ju as minInt176,Wu as minInt184,Vu as minInt192,Ju as minInt200,Ku as minInt208,Yu as minInt216,Zu as minInt224,Qu as minInt232,Xu as minInt24,td as minInt240,ed as minInt248,ad as minInt256,nd as minInt32,rd as minInt40,sd as minInt48,od as minInt56,id as minInt64,cd as minInt72,ud as minInt8,dd as minInt80,ld as minInt88,md as minInt96,Ys as multicall3Abi,Zs as namehash,Qs as nonceManager,Si as numberToBytes,R as numberToHex,gd as offchainLookup,bd as offchainLookupAbiItem,wd as offchainLookupSignature,Me as pad,Ai as padBytes,xt as padHex,Xs as parseAbi,to as parseAbiItem,jn as parseAbiParameter,eo as parseAbiParameters,yr as parseCompactSignature,Yn as parseErc6492Signature,Zn as parseErc8010Signature,ar as parseEther,Pi as parseEventLogs,nr as parseGwei,ao as parseSignature,_a as parseTransaction,Wt as parseUnits,no as prepareEncodeFunctionData,ro as presignMessagePrefix,so as publicActions,Q as recoverAddress,Sa as recoverMessageAddress,oo as recoverPublicKey,gr as recoverTransactionAddress,Aa as recoverTypedDataAddress,Kn as ripemd160,io as rpcSchema,_i as rpcTransactionType,co as serializeAccessList,br as serializeCompactSignature,uo as serializeErc6492Signature,Qn as serializeErc8010Signature,lo as serializeSignature,Le as serializeTransaction,ea as serializeTypedData,Ri as setErrorConfig,hr as setupKzg,fd as sha256,Fn as shouldThrow,mr as sidecarsToVersionedHashes,wr as signatureToCompactSignature,mo as signatureToHex,$e as size,De as slice,qi as sliceBytes,Lt as sliceHex,Fi as stringToBytes,Ke as stringToHex,Ui as stringify,hn as testActions,ge as toBlobSidecars,fo as toBlobs,B as toBytes,fr as toCoinType,ki as toEventHash,Bi as toEventSelector,Ni as toEventSignature,Li as toFunctionHash,Mi as toFunctionSelector,Di as toFunctionSignature,Nt as toHex,ho as toPrefixedMessage,ia as toRlp,zi as transactionType,We as trim,po as universalSignatureValidatorAbi,yo as universalSignatureValidatorByteCode,ta as validateTypedData,Xn as verifyHash,tr as verifyMessage,er as verifyTypedData,qn as walletActions,cr as webSocket,go as weiUnits,bo as withCache,wo as withRetry,Ze as withTimeout,xo as zeroAddress,Eo as zeroHash};
@@ -1,4 +1,4 @@
1
- import{e as ai,c as yo,g as rt,r as d,j as L,f as ss,h as yt,R as vt,i as Pr,k as ls,l as us}from"./react-E8ng6RF2.js";import{V as cs,X as fs}from"./index-DHBNDbnV.js";import{h as ii,i as si,j as li,a as nt,k as ps,l as wr,m as jt,b as Nt,e as ds,n as vs,o as ms,p as hs,q as gs,d as Fr,s as ui,g as ci,c as fi,f as ys,t as bs,r as xs}from"./index-B5lBgsVo.js";import{p as Qr}from"./ethers-BxoDGoYp.js";import{n as je,c as Ss,S as bo}from"./SvgIcon-CqOcU2_R.js";import{b as O,C as pi,d as ce,n as bt,T as ws,o as Es,p as Rs,q as Cs,t as Ps,_ as Te,v as di,x as $s,g as Pt,a as ot,u as ut,c as be,e as xt,s as Re,y as Me,k as no,z as Os,A as Jt,B as ks,D as Is,E as Ms,F as vi,G as mi}from"./generateUtilityClasses-sji8XAMf.js";import{C as Ts}from"./CircularProgress-D-iaLmF3.js";var Ue=cs(),en,xo;function hi(){if(xo)return en;xo=1;var e=Object.prototype.toString;return en=function(r){var n=e.call(r),o=n==="[object Arguments]";return o||(o=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),o},en}var tn,So;function As(){if(So)return tn;So=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=hi(),o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(y){var v=y.constructor;return v&&v.prototype===y},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=(function(){if(typeof window>"u")return!1;for(var y in window)try{if(!u["$"+y]&&t.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{l(window[y])}catch{return!0}}catch{return!0}return!1})(),f=function(y){if(typeof window>"u"||!c)return l(y);try{return l(y)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",b=r.call(v)==="[object Function]",h=n(v),R=g&&r.call(v)==="[object String]",P=[];if(!g&&!b&&!h)throw new TypeError("Object.keys called on a non-object");var S=i&&b;if(R&&v.length>0&&!t.call(v,0))for(var x=0;x<v.length;++x)P.push(String(x));if(h&&v.length>0)for(var C=0;C<v.length;++C)P.push(String(C));else for(var I in v)!(S&&I==="prototype")&&t.call(v,I)&&P.push(String(I));if(a)for(var $=f(v),A=0;A<s.length;++A)!($&&s[A]==="constructor")&&t.call(v,s[A])&&P.push(s[A]);return P}}return tn=e,tn}var rn,wo;function oo(){if(wo)return rn;wo=1;var e=Array.prototype.slice,t=hi(),r=Object.keys,n=r?function(i){return r(i)}:As(),o=Object.keys;return n.shim=function(){if(Object.keys){var i=(function(){var s=Object.keys(arguments);return s&&s.length===arguments.length})(1,2);i||(Object.keys=function(l){return t(l)?o(e.call(l)):o(l)})}else Object.keys=n;return Object.keys||n},rn=n,rn}var nn,Eo;function _t(){if(Eo)return nn;Eo=1;var e=oo(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,o=si(),a=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},i=ii()(),s=function(u,c,f,y){if(c in u){if(y===!0){if(u[c]===f)return}else if(!a(y)||!y())return}i?o(u,c,f,!0):o(u,c,f)},l=function(u,c){var f=arguments.length>2?arguments[2]:{},y=e(c);t&&(y=n.call(y,Object.getOwnPropertySymbols(c)));for(var v=0;v<y.length;v+=1)s(u,y[v],c[y[v]],f[y[v]])};return l.supportsDescriptors=!!i,nn=l,nn}var on,Ro;function gi(){if(Ro)return on;Ro=1;var e=oo(),t=li()(),r=nt(),n=ps(),o=r("Array.prototype.push"),a=r("Object.prototype.propertyIsEnumerable"),i=t?n.getOwnPropertySymbols:null;return on=function(l,u){if(l==null)throw new TypeError("target must be an object");var c=n(l);if(arguments.length===1)return c;for(var f=1;f<arguments.length;++f){var y=n(arguments[f]),v=e(y),g=t&&(n.getOwnPropertySymbols||i);if(g)for(var b=g(y),h=0;h<b.length;++h){var R=b[h];a(y,R)&&o(v,R)}for(var P=0;P<v.length;++P){var S=v[P];if(a(y,S)){var x=y[S];c[S]=x}}}return c},on}var an,Co;function yi(){if(Co)return an;Co=1;var e=gi(),t=function(){if(!Object.assign)return!1;for(var n="abcdefghijklmnopqrst",o=n.split(""),a={},i=0;i<o.length;++i)a[o[i]]=o[i];var s=Object.assign({},a),l="";for(var u in s)l+=u;return n!==l},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var n=Object.preventExtensions({1:2});try{Object.assign(n,"xy")}catch{return n[1]==="y"}return!1};return an=function(){return!Object.assign||t()||r()?e:Object.assign},an}var sn,Po;function Bs(){if(Po)return sn;Po=1;var e=_t(),t=yi();return sn=function(){var n=t();return e(Object,{assign:n},{assign:function(){return Object.assign!==n}}),n},sn}var ln,$o;function Ls(){if($o)return ln;$o=1;var e=_t(),t=wr(),r=gi(),n=yi(),o=Bs(),a=t.apply(n()),i=function(l,u){return a(Object,arguments)};return e(i,{getPolyfill:n,implementation:r,shim:o}),ln=i,ln}var un,Oo;function bi(){if(Oo)return un;Oo=1;var e=jt(),t=wr(),r=t(e("String.prototype.indexOf"));return un=function(o,a){var i=e(o,!!a);return typeof i=="function"&&r(o,".prototype.")>-1?t(i):i},un}var cn,ko;function Ds(){if(ko)return cn;ko=1;var e=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}e.functionsHaveConfigurableNames=function(){if(!e()||!t)return!1;var o=t(function(){},"name");return!!o&&!!o.configurable};var r=Function.prototype.bind;return e.boundFunctionsHaveNames=function(){return e()&&typeof r=="function"&&(function(){}).bind().name!==""},cn=e,cn}var fn,Io;function js(){if(Io)return fn;Io=1;var e=si(),t=ii()(),r=Ds().functionsHaveConfigurableNames(),n=Nt();return fn=function(a,i){if(typeof a!="function")throw new n("`fn` is not a function");var s=arguments.length>2&&!!arguments[2];return(!s||r)&&(t?e(a,"name",i,!0,!0):e(a,"name",i)),a},fn}var pn,Mo;function xi(){if(Mo)return pn;Mo=1;var e=js(),t=Nt(),r=Object;return pn=e(function(){if(this==null||this!==r(this))throw new t("RegExp.prototype.flags getter called on non-object");var o="";return this.hasIndices&&(o+="d"),this.global&&(o+="g"),this.ignoreCase&&(o+="i"),this.multiline&&(o+="m"),this.dotAll&&(o+="s"),this.unicode&&(o+="u"),this.unicodeSets&&(o+="v"),this.sticky&&(o+="y"),o},"get flags",!0),pn}var dn,To;function Si(){if(To)return dn;To=1;var e=xi(),t=_t().supportsDescriptors,r=Object.getOwnPropertyDescriptor;return dn=function(){if(t&&/a/mig.flags==="gim"){var o=r(RegExp.prototype,"flags");if(o&&typeof o.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var a="",i={};if(Object.defineProperty(i,"hasIndices",{get:function(){a+="d"}}),Object.defineProperty(i,"sticky",{get:function(){a+="y"}}),o.get.call(i),a==="dy")return o.get}}return e},dn}var vn,Ao;function Ns(){if(Ao)return vn;Ao=1;var e=_t().supportsDescriptors,t=Si(),r=ms(),n=Object.defineProperty,o=vs(),a=ds(),i=/a/;return vn=function(){if(!e||!a)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var l=t(),u=a(i),c=r(u,"flags");return(!c||c.get!==l)&&n(u,"flags",{configurable:!0,enumerable:!1,get:l}),l},vn}var mn,Bo;function _s(){if(Bo)return mn;Bo=1;var e=_t(),t=wr(),r=xi(),n=Si(),o=Ns(),a=t(n());return e(a,{getPolyfill:n,implementation:r,shim:o}),mn=a,mn}var Qt={exports:{}};const qs={},Ws=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),zs=ai(Ws);var hn,Lo;function Hr(){if(Lo)return hn;Lo=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=o&&a&&typeof a.get=="function"?a.get:null,s=o&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,u=l?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,f=c?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,v=y?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,b=Object.prototype.toString,h=Function.prototype.toString,R=String.prototype.match,P=String.prototype.slice,S=String.prototype.replace,x=String.prototype.toUpperCase,C=String.prototype.toLowerCase,I=RegExp.prototype.test,$=Array.prototype.concat,A=Array.prototype.join,k=Array.prototype.slice,B=Math.floor,N=typeof BigInt=="function"?BigInt.prototype.valueOf:null,z=Object.getOwnPropertySymbols,j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,X=typeof Symbol=="function"&&typeof Symbol.iterator=="object",D=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===X||!0)?Symbol.toStringTag:null,H=Object.prototype.propertyIsEnumerable,W=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(p){return p.__proto__}:null);function Y(p,m){if(p===1/0||p===-1/0||p!==p||p&&p>-1e3&&p<1e3||I.call(/e/,m))return m;var re=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof p=="number"){var pe=p<0?-B(-p):B(p);if(pe!==p){var de=String(pe),Q=P.call(m,de.length+1);return S.call(de,re,"$&_")+"."+S.call(S.call(Q,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(m,re,"$&_")}var Z=zs,fe=Z.custom,Ce=le(fe)?fe:null,_={__proto__:null,double:'"',single:"'"},he={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};hn=function p(m,re,pe,de){var Q=re||{};if(ge(Q,"quoteStyle")&&!ge(_,Q.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ge(Q,"maxStringLength")&&(typeof Q.maxStringLength=="number"?Q.maxStringLength<0&&Q.maxStringLength!==1/0:Q.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var We=ge(Q,"customInspect")?Q.customInspect:!0;if(typeof We!="boolean"&&We!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ge(Q,"indent")&&Q.indent!==null&&Q.indent!==" "&&!(parseInt(Q.indent,10)===Q.indent&&Q.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ge(Q,"numericSeparator")&&typeof Q.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var He=Q.numericSeparator;if(typeof m>"u")return"undefined";if(m===null)return"null";if(typeof m=="boolean")return m?"true":"false";if(typeof m=="string")return Ee(m,Q);if(typeof m=="number"){if(m===0)return 1/0/m>0?"0":"-0";var ke=String(m);return He?Y(m,ke):ke}if(typeof m=="bigint"){var ze=String(m)+"n";return He?Y(m,ze):ze}var Ot=typeof Q.depth>"u"?5:Q.depth;if(typeof pe>"u"&&(pe=0),pe>=Ot&&Ot>0&&typeof m=="object")return F(m)?"[Array]":"[Object]";var Ke=ae(Q,pe);if(typeof de>"u")de=[];else if(ue(de,m)>=0)return"[Circular]";function Le(Ie,Ft,Jr){if(Ft&&(de=k.call(de),de.push(Ft)),Jr){var Cr={depth:Q.depth};return ge(Q,"quoteStyle")&&(Cr.quoteStyle=Q.quoteStyle),p(Ie,Cr,pe+1,de)}return p(Ie,Q,pe+1,de)}if(typeof m=="function"&&!J(m)){var Et=qe(m),qt=Be(m,Le);return"[Function"+(Et?": "+Et:" (anonymous)")+"]"+(qt.length>0?" { "+A.call(qt,", ")+" }":"")}if(le(m)){var Wt=X?S.call(String(m),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(m);return typeof m=="object"&&!X?E(Wt):Wt}if($e(m)){for(var ct="<"+C.call(String(m.nodeName)),kt=m.attributes||[],Rt=0;Rt<kt.length;Rt++)ct+=" "+kt[Rt].name+"="+w(T(kt[Rt].value),"double",Q);return ct+=">",m.childNodes&&m.childNodes.length&&(ct+="..."),ct+="</"+C.call(String(m.nodeName))+">",ct}if(F(m)){if(m.length===0)return"[]";var It=Be(m,Le);return Ke&&!ie(It)?"["+Ae(It,Ke)+"]":"[ "+A.call(It,", ")+" ]"}if(se(m)){var ft=Be(m,Le);return!("cause"in Error.prototype)&&"cause"in m&&!H.call(m,"cause")?"{ ["+String(m)+"] "+A.call($.call("[cause]: "+Le(m.cause),ft),", ")+" }":ft.length===0?"["+String(m)+"]":"{ ["+String(m)+"] "+A.call(ft,", ")+" }"}if(typeof m=="object"&&We){if(Ce&&typeof m[Ce]=="function"&&Z)return Z(m,{depth:Ot-pe});if(We!=="symbol"&&typeof m.inspect=="function")return m.inspect()}if(Se(m)){var zt=[];return n&&n.call(m,function(Ie,Ft){zt.push(Le(Ft,m,!0)+" => "+Le(Ie,m))}),oe("Map",r.call(m),zt,Ke)}if(Pe(m)){var Ct=[];return s&&s.call(m,function(Ie){Ct.push(Le(Ie,m))}),oe("Set",i.call(m),Ct,Ke)}if(Ne(m))return q("WeakMap");if(Oe(m))return q("WeakSet");if(_e(m))return q("WeakRef");if(G(m))return E(Le(Number(m)));if(te(m))return E(Le(N.call(m)));if(ee(m))return E(g.call(m));if(ne(m))return E(Le(String(m)));if(typeof window<"u"&&m===window)return"{ [object Window] }";if(typeof globalThis<"u"&&m===globalThis||typeof yo<"u"&&m===yo)return"{ [object globalThis] }";if(!U(m)&&!J(m)){var pt=Be(m,Le),Vt=W?W(m)===Object.prototype:m instanceof Object||m.constructor===Object,ye=m instanceof Object?"":"null prototype",we=!Vt&&D&&Object(m)===m&&D in m?P.call(me(m),8,-1):ye?"Object":"",Mt=Vt||typeof m.constructor!="function"?"":m.constructor.name?m.constructor.name+" ":"",at=Mt+(we||ye?"["+A.call($.call([],we||[],ye||[]),": ")+"] ":"");return pt.length===0?at+"{}":Ke?at+"{"+Ae(pt,Ke)+"}":at+"{ "+A.call(pt,", ")+" }"}return String(m)};function w(p,m,re){var pe=re.quoteStyle||m,de=_[pe];return de+p+de}function T(p){return S.call(String(p),/"/g,"&quot;")}function V(p){return!D||!(typeof p=="object"&&(D in p||typeof p[D]<"u"))}function F(p){return me(p)==="[object Array]"&&V(p)}function U(p){return me(p)==="[object Date]"&&V(p)}function J(p){return me(p)==="[object RegExp]"&&V(p)}function se(p){return me(p)==="[object Error]"&&V(p)}function ne(p){return me(p)==="[object String]"&&V(p)}function G(p){return me(p)==="[object Number]"&&V(p)}function ee(p){return me(p)==="[object Boolean]"&&V(p)}function le(p){if(X)return p&&typeof p=="object"&&p instanceof Symbol;if(typeof p=="symbol")return!0;if(!p||typeof p!="object"||!j)return!1;try{return j.call(p),!0}catch{}return!1}function te(p){if(!p||typeof p!="object"||!N)return!1;try{return N.call(p),!0}catch{}return!1}var xe=Object.prototype.hasOwnProperty||function(p){return p in this};function ge(p,m){return xe.call(p,m)}function me(p){return b.call(p)}function qe(p){if(p.name)return p.name;var m=R.call(h.call(p),/^function\s*([\w$]+)/);return m?m[1]:null}function ue(p,m){if(p.indexOf)return p.indexOf(m);for(var re=0,pe=p.length;re<pe;re++)if(p[re]===m)return re;return-1}function Se(p){if(!r||!p||typeof p!="object")return!1;try{r.call(p);try{i.call(p)}catch{return!0}return p instanceof Map}catch{}return!1}function Ne(p){if(!u||!p||typeof p!="object")return!1;try{u.call(p,u);try{f.call(p,f)}catch{return!0}return p instanceof WeakMap}catch{}return!1}function _e(p){if(!v||!p||typeof p!="object")return!1;try{return v.call(p),!0}catch{}return!1}function Pe(p){if(!i||!p||typeof p!="object")return!1;try{i.call(p);try{r.call(p)}catch{return!0}return p instanceof Set}catch{}return!1}function Oe(p){if(!f||!p||typeof p!="object")return!1;try{f.call(p,f);try{u.call(p,u)}catch{return!0}return p instanceof WeakSet}catch{}return!1}function $e(p){return!p||typeof p!="object"?!1:typeof HTMLElement<"u"&&p instanceof HTMLElement?!0:typeof p.nodeName=="string"&&typeof p.getAttribute=="function"}function Ee(p,m){if(p.length>m.maxStringLength){var re=p.length-m.maxStringLength,pe="... "+re+" more character"+(re>1?"s":"");return Ee(P.call(p,0,m.maxStringLength),m)+pe}var de=he[m.quoteStyle||"single"];de.lastIndex=0;var Q=S.call(S.call(p,de,"\\$1"),/[\x00-\x1f]/g,M);return w(Q,"single",m)}function M(p){var m=p.charCodeAt(0),re={8:"b",9:"t",10:"n",12:"f",13:"r"}[m];return re?"\\"+re:"\\x"+(m<16?"0":"")+x.call(m.toString(16))}function E(p){return"Object("+p+")"}function q(p){return p+" { ? }"}function oe(p,m,re,pe){var de=pe?Ae(re,pe):A.call(re,", ");return p+" ("+m+") {"+de+"}"}function ie(p){for(var m=0;m<p.length;m++)if(ue(p[m],`
1
+ import{e as ai,c as yo,g as rt,r as d,j as L,f as ss,h as yt,R as vt,i as Pr,k as ls,l as us}from"./react-E8ng6RF2.js";import{V as cs,X as fs}from"./index-C4gUf5hB.js";import{h as ii,i as si,j as li,a as nt,k as ps,l as wr,m as jt,b as Nt,e as ds,n as vs,o as ms,p as hs,q as gs,d as Fr,s as ui,g as ci,c as fi,f as ys,t as bs,r as xs}from"./index-B5lBgsVo.js";import{p as Qr}from"./ethers-BxoDGoYp.js";import{n as je,c as Ss,S as bo}from"./SvgIcon-CqOcU2_R.js";import{b as O,C as pi,d as ce,n as bt,T as ws,o as Es,p as Rs,q as Cs,t as Ps,_ as Te,v as di,x as $s,g as Pt,a as ot,u as ut,c as be,e as xt,s as Re,y as Me,k as no,z as Os,A as Jt,B as ks,D as Is,E as Ms,F as vi,G as mi}from"./generateUtilityClasses-sji8XAMf.js";import{C as Ts}from"./CircularProgress-D-iaLmF3.js";var Ue=cs(),en,xo;function hi(){if(xo)return en;xo=1;var e=Object.prototype.toString;return en=function(r){var n=e.call(r),o=n==="[object Arguments]";return o||(o=n!=="[object Array]"&&r!==null&&typeof r=="object"&&typeof r.length=="number"&&r.length>=0&&e.call(r.callee)==="[object Function]"),o},en}var tn,So;function As(){if(So)return tn;So=1;var e;if(!Object.keys){var t=Object.prototype.hasOwnProperty,r=Object.prototype.toString,n=hi(),o=Object.prototype.propertyIsEnumerable,a=!o.call({toString:null},"toString"),i=o.call(function(){},"prototype"),s=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],l=function(y){var v=y.constructor;return v&&v.prototype===y},u={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},c=(function(){if(typeof window>"u")return!1;for(var y in window)try{if(!u["$"+y]&&t.call(window,y)&&window[y]!==null&&typeof window[y]=="object")try{l(window[y])}catch{return!0}}catch{return!0}return!1})(),f=function(y){if(typeof window>"u"||!c)return l(y);try{return l(y)}catch{return!1}};e=function(v){var g=v!==null&&typeof v=="object",b=r.call(v)==="[object Function]",h=n(v),R=g&&r.call(v)==="[object String]",P=[];if(!g&&!b&&!h)throw new TypeError("Object.keys called on a non-object");var S=i&&b;if(R&&v.length>0&&!t.call(v,0))for(var x=0;x<v.length;++x)P.push(String(x));if(h&&v.length>0)for(var C=0;C<v.length;++C)P.push(String(C));else for(var I in v)!(S&&I==="prototype")&&t.call(v,I)&&P.push(String(I));if(a)for(var $=f(v),A=0;A<s.length;++A)!($&&s[A]==="constructor")&&t.call(v,s[A])&&P.push(s[A]);return P}}return tn=e,tn}var rn,wo;function oo(){if(wo)return rn;wo=1;var e=Array.prototype.slice,t=hi(),r=Object.keys,n=r?function(i){return r(i)}:As(),o=Object.keys;return n.shim=function(){if(Object.keys){var i=(function(){var s=Object.keys(arguments);return s&&s.length===arguments.length})(1,2);i||(Object.keys=function(l){return t(l)?o(e.call(l)):o(l)})}else Object.keys=n;return Object.keys||n},rn=n,rn}var nn,Eo;function _t(){if(Eo)return nn;Eo=1;var e=oo(),t=typeof Symbol=="function"&&typeof Symbol("foo")=="symbol",r=Object.prototype.toString,n=Array.prototype.concat,o=si(),a=function(u){return typeof u=="function"&&r.call(u)==="[object Function]"},i=ii()(),s=function(u,c,f,y){if(c in u){if(y===!0){if(u[c]===f)return}else if(!a(y)||!y())return}i?o(u,c,f,!0):o(u,c,f)},l=function(u,c){var f=arguments.length>2?arguments[2]:{},y=e(c);t&&(y=n.call(y,Object.getOwnPropertySymbols(c)));for(var v=0;v<y.length;v+=1)s(u,y[v],c[y[v]],f[y[v]])};return l.supportsDescriptors=!!i,nn=l,nn}var on,Ro;function gi(){if(Ro)return on;Ro=1;var e=oo(),t=li()(),r=nt(),n=ps(),o=r("Array.prototype.push"),a=r("Object.prototype.propertyIsEnumerable"),i=t?n.getOwnPropertySymbols:null;return on=function(l,u){if(l==null)throw new TypeError("target must be an object");var c=n(l);if(arguments.length===1)return c;for(var f=1;f<arguments.length;++f){var y=n(arguments[f]),v=e(y),g=t&&(n.getOwnPropertySymbols||i);if(g)for(var b=g(y),h=0;h<b.length;++h){var R=b[h];a(y,R)&&o(v,R)}for(var P=0;P<v.length;++P){var S=v[P];if(a(y,S)){var x=y[S];c[S]=x}}}return c},on}var an,Co;function yi(){if(Co)return an;Co=1;var e=gi(),t=function(){if(!Object.assign)return!1;for(var n="abcdefghijklmnopqrst",o=n.split(""),a={},i=0;i<o.length;++i)a[o[i]]=o[i];var s=Object.assign({},a),l="";for(var u in s)l+=u;return n!==l},r=function(){if(!Object.assign||!Object.preventExtensions)return!1;var n=Object.preventExtensions({1:2});try{Object.assign(n,"xy")}catch{return n[1]==="y"}return!1};return an=function(){return!Object.assign||t()||r()?e:Object.assign},an}var sn,Po;function Bs(){if(Po)return sn;Po=1;var e=_t(),t=yi();return sn=function(){var n=t();return e(Object,{assign:n},{assign:function(){return Object.assign!==n}}),n},sn}var ln,$o;function Ls(){if($o)return ln;$o=1;var e=_t(),t=wr(),r=gi(),n=yi(),o=Bs(),a=t.apply(n()),i=function(l,u){return a(Object,arguments)};return e(i,{getPolyfill:n,implementation:r,shim:o}),ln=i,ln}var un,Oo;function bi(){if(Oo)return un;Oo=1;var e=jt(),t=wr(),r=t(e("String.prototype.indexOf"));return un=function(o,a){var i=e(o,!!a);return typeof i=="function"&&r(o,".prototype.")>-1?t(i):i},un}var cn,ko;function Ds(){if(ko)return cn;ko=1;var e=function(){return typeof(function(){}).name=="string"},t=Object.getOwnPropertyDescriptor;if(t)try{t([],"length")}catch{t=null}e.functionsHaveConfigurableNames=function(){if(!e()||!t)return!1;var o=t(function(){},"name");return!!o&&!!o.configurable};var r=Function.prototype.bind;return e.boundFunctionsHaveNames=function(){return e()&&typeof r=="function"&&(function(){}).bind().name!==""},cn=e,cn}var fn,Io;function js(){if(Io)return fn;Io=1;var e=si(),t=ii()(),r=Ds().functionsHaveConfigurableNames(),n=Nt();return fn=function(a,i){if(typeof a!="function")throw new n("`fn` is not a function");var s=arguments.length>2&&!!arguments[2];return(!s||r)&&(t?e(a,"name",i,!0,!0):e(a,"name",i)),a},fn}var pn,Mo;function xi(){if(Mo)return pn;Mo=1;var e=js(),t=Nt(),r=Object;return pn=e(function(){if(this==null||this!==r(this))throw new t("RegExp.prototype.flags getter called on non-object");var o="";return this.hasIndices&&(o+="d"),this.global&&(o+="g"),this.ignoreCase&&(o+="i"),this.multiline&&(o+="m"),this.dotAll&&(o+="s"),this.unicode&&(o+="u"),this.unicodeSets&&(o+="v"),this.sticky&&(o+="y"),o},"get flags",!0),pn}var dn,To;function Si(){if(To)return dn;To=1;var e=xi(),t=_t().supportsDescriptors,r=Object.getOwnPropertyDescriptor;return dn=function(){if(t&&/a/mig.flags==="gim"){var o=r(RegExp.prototype,"flags");if(o&&typeof o.get=="function"&&"dotAll"in RegExp.prototype&&"hasIndices"in RegExp.prototype){var a="",i={};if(Object.defineProperty(i,"hasIndices",{get:function(){a+="d"}}),Object.defineProperty(i,"sticky",{get:function(){a+="y"}}),o.get.call(i),a==="dy")return o.get}}return e},dn}var vn,Ao;function Ns(){if(Ao)return vn;Ao=1;var e=_t().supportsDescriptors,t=Si(),r=ms(),n=Object.defineProperty,o=vs(),a=ds(),i=/a/;return vn=function(){if(!e||!a)throw new o("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var l=t(),u=a(i),c=r(u,"flags");return(!c||c.get!==l)&&n(u,"flags",{configurable:!0,enumerable:!1,get:l}),l},vn}var mn,Bo;function _s(){if(Bo)return mn;Bo=1;var e=_t(),t=wr(),r=xi(),n=Si(),o=Ns(),a=t(n());return e(a,{getPolyfill:n,implementation:r,shim:o}),mn=a,mn}var Qt={exports:{}};const qs={},Ws=Object.freeze(Object.defineProperty({__proto__:null,default:qs},Symbol.toStringTag,{value:"Module"})),zs=ai(Ws);var hn,Lo;function Hr(){if(Lo)return hn;Lo=1;var e=typeof Map=="function"&&Map.prototype,t=Object.getOwnPropertyDescriptor&&e?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,r=e&&t&&typeof t.get=="function"?t.get:null,n=e&&Map.prototype.forEach,o=typeof Set=="function"&&Set.prototype,a=Object.getOwnPropertyDescriptor&&o?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,i=o&&a&&typeof a.get=="function"?a.get:null,s=o&&Set.prototype.forEach,l=typeof WeakMap=="function"&&WeakMap.prototype,u=l?WeakMap.prototype.has:null,c=typeof WeakSet=="function"&&WeakSet.prototype,f=c?WeakSet.prototype.has:null,y=typeof WeakRef=="function"&&WeakRef.prototype,v=y?WeakRef.prototype.deref:null,g=Boolean.prototype.valueOf,b=Object.prototype.toString,h=Function.prototype.toString,R=String.prototype.match,P=String.prototype.slice,S=String.prototype.replace,x=String.prototype.toUpperCase,C=String.prototype.toLowerCase,I=RegExp.prototype.test,$=Array.prototype.concat,A=Array.prototype.join,k=Array.prototype.slice,B=Math.floor,N=typeof BigInt=="function"?BigInt.prototype.valueOf:null,z=Object.getOwnPropertySymbols,j=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,X=typeof Symbol=="function"&&typeof Symbol.iterator=="object",D=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===X||!0)?Symbol.toStringTag:null,H=Object.prototype.propertyIsEnumerable,W=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(p){return p.__proto__}:null);function Y(p,m){if(p===1/0||p===-1/0||p!==p||p&&p>-1e3&&p<1e3||I.call(/e/,m))return m;var re=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof p=="number"){var pe=p<0?-B(-p):B(p);if(pe!==p){var de=String(pe),Q=P.call(m,de.length+1);return S.call(de,re,"$&_")+"."+S.call(S.call(Q,/([0-9]{3})/g,"$&_"),/_$/,"")}}return S.call(m,re,"$&_")}var Z=zs,fe=Z.custom,Ce=le(fe)?fe:null,_={__proto__:null,double:'"',single:"'"},he={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};hn=function p(m,re,pe,de){var Q=re||{};if(ge(Q,"quoteStyle")&&!ge(_,Q.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ge(Q,"maxStringLength")&&(typeof Q.maxStringLength=="number"?Q.maxStringLength<0&&Q.maxStringLength!==1/0:Q.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var We=ge(Q,"customInspect")?Q.customInspect:!0;if(typeof We!="boolean"&&We!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ge(Q,"indent")&&Q.indent!==null&&Q.indent!==" "&&!(parseInt(Q.indent,10)===Q.indent&&Q.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ge(Q,"numericSeparator")&&typeof Q.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var He=Q.numericSeparator;if(typeof m>"u")return"undefined";if(m===null)return"null";if(typeof m=="boolean")return m?"true":"false";if(typeof m=="string")return Ee(m,Q);if(typeof m=="number"){if(m===0)return 1/0/m>0?"0":"-0";var ke=String(m);return He?Y(m,ke):ke}if(typeof m=="bigint"){var ze=String(m)+"n";return He?Y(m,ze):ze}var Ot=typeof Q.depth>"u"?5:Q.depth;if(typeof pe>"u"&&(pe=0),pe>=Ot&&Ot>0&&typeof m=="object")return F(m)?"[Array]":"[Object]";var Ke=ae(Q,pe);if(typeof de>"u")de=[];else if(ue(de,m)>=0)return"[Circular]";function Le(Ie,Ft,Jr){if(Ft&&(de=k.call(de),de.push(Ft)),Jr){var Cr={depth:Q.depth};return ge(Q,"quoteStyle")&&(Cr.quoteStyle=Q.quoteStyle),p(Ie,Cr,pe+1,de)}return p(Ie,Q,pe+1,de)}if(typeof m=="function"&&!J(m)){var Et=qe(m),qt=Be(m,Le);return"[Function"+(Et?": "+Et:" (anonymous)")+"]"+(qt.length>0?" { "+A.call(qt,", ")+" }":"")}if(le(m)){var Wt=X?S.call(String(m),/^(Symbol\(.*\))_[^)]*$/,"$1"):j.call(m);return typeof m=="object"&&!X?E(Wt):Wt}if($e(m)){for(var ct="<"+C.call(String(m.nodeName)),kt=m.attributes||[],Rt=0;Rt<kt.length;Rt++)ct+=" "+kt[Rt].name+"="+w(T(kt[Rt].value),"double",Q);return ct+=">",m.childNodes&&m.childNodes.length&&(ct+="..."),ct+="</"+C.call(String(m.nodeName))+">",ct}if(F(m)){if(m.length===0)return"[]";var It=Be(m,Le);return Ke&&!ie(It)?"["+Ae(It,Ke)+"]":"[ "+A.call(It,", ")+" ]"}if(se(m)){var ft=Be(m,Le);return!("cause"in Error.prototype)&&"cause"in m&&!H.call(m,"cause")?"{ ["+String(m)+"] "+A.call($.call("[cause]: "+Le(m.cause),ft),", ")+" }":ft.length===0?"["+String(m)+"]":"{ ["+String(m)+"] "+A.call(ft,", ")+" }"}if(typeof m=="object"&&We){if(Ce&&typeof m[Ce]=="function"&&Z)return Z(m,{depth:Ot-pe});if(We!=="symbol"&&typeof m.inspect=="function")return m.inspect()}if(Se(m)){var zt=[];return n&&n.call(m,function(Ie,Ft){zt.push(Le(Ft,m,!0)+" => "+Le(Ie,m))}),oe("Map",r.call(m),zt,Ke)}if(Pe(m)){var Ct=[];return s&&s.call(m,function(Ie){Ct.push(Le(Ie,m))}),oe("Set",i.call(m),Ct,Ke)}if(Ne(m))return q("WeakMap");if(Oe(m))return q("WeakSet");if(_e(m))return q("WeakRef");if(G(m))return E(Le(Number(m)));if(te(m))return E(Le(N.call(m)));if(ee(m))return E(g.call(m));if(ne(m))return E(Le(String(m)));if(typeof window<"u"&&m===window)return"{ [object Window] }";if(typeof globalThis<"u"&&m===globalThis||typeof yo<"u"&&m===yo)return"{ [object globalThis] }";if(!U(m)&&!J(m)){var pt=Be(m,Le),Vt=W?W(m)===Object.prototype:m instanceof Object||m.constructor===Object,ye=m instanceof Object?"":"null prototype",we=!Vt&&D&&Object(m)===m&&D in m?P.call(me(m),8,-1):ye?"Object":"",Mt=Vt||typeof m.constructor!="function"?"":m.constructor.name?m.constructor.name+" ":"",at=Mt+(we||ye?"["+A.call($.call([],we||[],ye||[]),": ")+"] ":"");return pt.length===0?at+"{}":Ke?at+"{"+Ae(pt,Ke)+"}":at+"{ "+A.call(pt,", ")+" }"}return String(m)};function w(p,m,re){var pe=re.quoteStyle||m,de=_[pe];return de+p+de}function T(p){return S.call(String(p),/"/g,"&quot;")}function V(p){return!D||!(typeof p=="object"&&(D in p||typeof p[D]<"u"))}function F(p){return me(p)==="[object Array]"&&V(p)}function U(p){return me(p)==="[object Date]"&&V(p)}function J(p){return me(p)==="[object RegExp]"&&V(p)}function se(p){return me(p)==="[object Error]"&&V(p)}function ne(p){return me(p)==="[object String]"&&V(p)}function G(p){return me(p)==="[object Number]"&&V(p)}function ee(p){return me(p)==="[object Boolean]"&&V(p)}function le(p){if(X)return p&&typeof p=="object"&&p instanceof Symbol;if(typeof p=="symbol")return!0;if(!p||typeof p!="object"||!j)return!1;try{return j.call(p),!0}catch{}return!1}function te(p){if(!p||typeof p!="object"||!N)return!1;try{return N.call(p),!0}catch{}return!1}var xe=Object.prototype.hasOwnProperty||function(p){return p in this};function ge(p,m){return xe.call(p,m)}function me(p){return b.call(p)}function qe(p){if(p.name)return p.name;var m=R.call(h.call(p),/^function\s*([\w$]+)/);return m?m[1]:null}function ue(p,m){if(p.indexOf)return p.indexOf(m);for(var re=0,pe=p.length;re<pe;re++)if(p[re]===m)return re;return-1}function Se(p){if(!r||!p||typeof p!="object")return!1;try{r.call(p);try{i.call(p)}catch{return!0}return p instanceof Map}catch{}return!1}function Ne(p){if(!u||!p||typeof p!="object")return!1;try{u.call(p,u);try{f.call(p,f)}catch{return!0}return p instanceof WeakMap}catch{}return!1}function _e(p){if(!v||!p||typeof p!="object")return!1;try{return v.call(p),!0}catch{}return!1}function Pe(p){if(!i||!p||typeof p!="object")return!1;try{i.call(p);try{r.call(p)}catch{return!0}return p instanceof Set}catch{}return!1}function Oe(p){if(!f||!p||typeof p!="object")return!1;try{f.call(p,f);try{u.call(p,u)}catch{return!0}return p instanceof WeakSet}catch{}return!1}function $e(p){return!p||typeof p!="object"?!1:typeof HTMLElement<"u"&&p instanceof HTMLElement?!0:typeof p.nodeName=="string"&&typeof p.getAttribute=="function"}function Ee(p,m){if(p.length>m.maxStringLength){var re=p.length-m.maxStringLength,pe="... "+re+" more character"+(re>1?"s":"");return Ee(P.call(p,0,m.maxStringLength),m)+pe}var de=he[m.quoteStyle||"single"];de.lastIndex=0;var Q=S.call(S.call(p,de,"\\$1"),/[\x00-\x1f]/g,M);return w(Q,"single",m)}function M(p){var m=p.charCodeAt(0),re={8:"b",9:"t",10:"n",12:"f",13:"r"}[m];return re?"\\"+re:"\\x"+(m<16?"0":"")+x.call(m.toString(16))}function E(p){return"Object("+p+")"}function q(p){return p+" { ? }"}function oe(p,m,re,pe){var de=pe?Ae(re,pe):A.call(re,", ");return p+" ("+m+") {"+de+"}"}function ie(p){for(var m=0;m<p.length;m++)if(ue(p[m],`
2
2
  `)>=0)return!1;return!0}function ae(p,m){var re;if(p.indent===" ")re=" ";else if(typeof p.indent=="number"&&p.indent>0)re=A.call(Array(p.indent+1)," ");else return null;return{base:re,prev:A.call(Array(m+1),re)}}function Ae(p,m){if(p.length===0)return"";var re=`
3
3
  `+m.prev+m.base;return re+A.call(p,","+re)+`
4
4
  `+m.prev}function Be(p,m){var re=F(p),pe=[];if(re){pe.length=p.length;for(var de=0;de<p.length;de++)pe[de]=ge(p,de)?m(p[de],p):""}var Q=typeof z=="function"?z(p):[],We;if(X){We={};for(var He=0;He<Q.length;He++)We["$"+Q[He]]=Q[He]}for(var ke in p)ge(p,ke)&&(re&&String(Number(ke))===ke&&ke<p.length||X&&We["$"+ke]instanceof Symbol||(I.call(/[^\w$]/,ke)?pe.push(m(ke,p)+": "+m(p[ke],p)):pe.push(ke+": "+m(p[ke],p))));if(typeof z=="function")for(var ze=0;ze<Q.length;ze++)H.call(p,Q[ze])&&pe.push("["+m(Q[ze])+"]: "+m(p[Q[ze]],p));return pe}return hn}var gn,Do;function Vs(){if(Do)return gn;Do=1;var e=Hr(),t=Nt(),r=function(s,l,u){for(var c=s,f;(f=c.next)!=null;c=f)if(f.key===l)return c.next=f.next,u||(f.next=s.next,s.next=f),f},n=function(s,l){if(s){var u=r(s,l);return u&&u.value}},o=function(s,l,u){var c=r(s,l);c?c.value=u:s.next={key:l,next:s.next,value:u}},a=function(s,l){return s?!!r(s,l):!1},i=function(s,l){if(s)return r(s,l,!0)};return gn=function(){var l,u={assert:function(c){if(!u.has(c))throw new t("Side channel does not contain "+e(c))},delete:function(c){var f=i(l,c);return f&&l&&!l.next&&(l=void 0),!!f},get:function(c){return n(l,c)},has:function(c){return a(l,c)},set:function(c,f){l||(l={next:void 0}),o(l,c,f)}};return u},gn}var yn,jo;function wi(){if(jo)return yn;jo=1;var e=jt(),t=nt(),r=Hr(),n=Nt(),o=e("%Map%",!0),a=t("Map.prototype.get",!0),i=t("Map.prototype.set",!0),s=t("Map.prototype.has",!0),l=t("Map.prototype.delete",!0),u=t("Map.prototype.size",!0);return yn=!!o&&function(){var f,y={assert:function(v){if(!y.has(v))throw new n("Side channel does not contain "+r(v))},delete:function(v){if(f){var g=l(f,v);return u(f)===0&&(f=void 0),g}return!1},get:function(v){if(f)return a(f,v)},has:function(v){return f?s(f,v):!1},set:function(v,g){f||(f=new o),i(f,v,g)}};return y},yn}var bn,No;function Fs(){if(No)return bn;No=1;var e=jt(),t=nt(),r=Hr(),n=wi(),o=Nt(),a=e("%WeakMap%",!0),i=t("WeakMap.prototype.get",!0),s=t("WeakMap.prototype.set",!0),l=t("WeakMap.prototype.has",!0),u=t("WeakMap.prototype.delete",!0);return bn=a?function(){var f,y,v={assert:function(g){if(!v.has(g))throw new o("Side channel does not contain "+r(g))},delete:function(g){if(a&&g&&(typeof g=="object"||typeof g=="function")){if(f)return u(f,g)}else if(n&&y)return y.delete(g);return!1},get:function(g){return a&&g&&(typeof g=="object"||typeof g=="function")&&f?i(f,g):y&&y.get(g)},has:function(g){return a&&g&&(typeof g=="object"||typeof g=="function")&&f?l(f,g):!!y&&y.has(g)},set:function(g,b){a&&g&&(typeof g=="object"||typeof g=="function")?(f||(f=new a),s(f,g,b)):n&&(y||(y=n()),y.set(g,b))}};return v}:n,bn}var xn,_o;function Ei(){if(_o)return xn;_o=1;var e=Nt(),t=Hr(),r=Vs(),n=wi(),o=Fs(),a=o||n||r;return xn=function(){var s,l={assert:function(u){if(!l.has(u)){var c=u&&Object(u)===u?"the given object key":t(u);throw new e("Side channel does not contain "+c)}},delete:function(u){return!!s&&s.delete(u)},get:function(u){return s&&s.get(u)},has:function(u){return!!s&&s.has(u)},set:function(u,c){s||(s=a()),s.set(u,c)}};return l},xn}var Sn,qo;function Hs(){if(qo)return Sn;qo=1;var e=hs(),t=Ei()(),r=Nt(),n={assert:function(o,a){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");if(t.assert(o),!n.has(o,a))throw new r("`"+a+"` is not present on `O`")},get:function(o,a){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");var i=t.get(o);return i&&i["$"+a]},has:function(o,a){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");var i=t.get(o);return!!i&&e(i,"$"+a)},set:function(o,a,i){if(!o||typeof o!="object"&&typeof o!="function")throw new r("`O` is not an object");if(typeof a!="string")throw new r("`slot` must be a string");var s=t.get(o);s||(s={},t.set(o,s)),s["$"+a]=i}};return Object.freeze&&Object.freeze(n),Sn=n,Sn}var wn,Wo;function Us(){if(Wo)return wn;Wo=1;var e=Hs(),t=gs(),r=typeof StopIteration=="object"?StopIteration:null;return wn=function(o){if(!r)throw new t("this environment lacks StopIteration");e.set(o,"[[Done]]",!1);var a={next:function(){var s=e.get(this,"[[Iterator]]"),l=!!e.get(s,"[[Done]]");try{return{done:l,value:l?void 0:s.next()}}catch(u){if(e.set(s,"[[Done]]",!0),u!==r)throw u;return{done:!0,value:void 0}}}};return e.set(a,"[[Iterator]]",o),a},wn}var En,zo;function Ri(){if(zo)return En;zo=1;var e=nt(),t=e("String.prototype.valueOf"),r=function(s){try{return t(s),!0}catch{return!1}},n=e("Object.prototype.toString"),o="[object String]",a=Fr()();return En=function(s){return typeof s=="string"?!0:!s||typeof s!="object"?!1:a?r(s):n(s)===o},En}var Rn,Vo;function Ci(){if(Vo)return Rn;Vo=1;var e=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,r;e||(r=function(i){return!1});var n=e?Map.prototype.has:null,o=t?Set.prototype.has:null;return!r&&!n&&(r=function(i){return!1}),Rn=r||function(i){if(!i||typeof i!="object")return!1;try{if(n.call(i),o)try{o.call(i)}catch{return!0}return i instanceof e}catch{}return!1},Rn}var Cn,Fo;function Pi(){if(Fo)return Cn;Fo=1;var e=typeof Map=="function"&&Map.prototype?Map:null,t=typeof Set=="function"&&Set.prototype?Set:null,r;t||(r=function(i){return!1});var n=e?Map.prototype.has:null,o=t?Set.prototype.has:null;return!r&&!o&&(r=function(i){return!1}),Cn=r||function(i){if(!i||typeof i!="object")return!1;try{if(o.call(i),n)try{n.call(i)}catch{return!0}return i instanceof t}catch{}return!1},Cn}var Ho;function Gs(){if(Ho)return Qt.exports;Ho=1;var e=ci(),t=Us();if(ui()()||li()()){var r=Symbol.iterator;Qt.exports=function(k){if(k!=null&&typeof k[r]<"u")return k[r]();if(e(k))return Array.prototype[r].call(k)}}else{var n=fi(),o=Ri(),a=jt(),i=a("%Map%",!0),s=a("%Set%",!0),l=bi(),u=l("Array.prototype.push"),c=l("String.prototype.charCodeAt"),f=l("String.prototype.slice"),y=function(k,B){var N=k.length;if(B+1>=N)return B+1;var z=c(k,B);if(z<55296||z>56319)return B+1;var j=c(k,B+1);return j<56320||j>57343?B+1:B+2},v=function(k){var B=0;return{next:function(){var z=B>=k.length,j;return z||(j=k[B],B+=1),{done:z,value:j}}}},g=function(k,B){if(n(k)||e(k))return v(k);if(o(k)){var N=0;return{next:function(){var j=y(k,N),X=f(k,N,j);return N=j,{done:j>k.length,value:X}}}}if(B&&typeof k["_es6-shim iterator_"]<"u")return k["_es6-shim iterator_"]()};if(!i&&!s)Qt.exports=function(k){if(k!=null)return g(k,!0)};else{var b=Ci(),h=Pi(),R=l("Map.prototype.forEach",!0),P=l("Set.prototype.forEach",!0);if(typeof Qr>"u"||!Qr.versions||!Qr.versions.node)var S=l("Map.prototype.iterator",!0),x=l("Set.prototype.iterator",!0);var C=l("Map.prototype.@@iterator",!0)||l("Map.prototype._es6-shim iterator_",!0),I=l("Set.prototype.@@iterator",!0)||l("Set.prototype._es6-shim iterator_",!0),$=function(k){if(b(k)){if(S)return t(S(k));if(C)return C(k);if(R){var B=[];return R(k,function(z,j){u(B,[j,z])}),v(B)}}if(h(k)){if(x)return t(x(k));if(I)return I(k);if(P){var N=[];return P(k,function(z){u(N,z)}),v(N)}}};Qt.exports=function(k){return $(k)||g(k)}}}return Qt.exports}var Pn,Uo;function $i(){if(Uo)return Pn;Uo=1;var e=function(t){return t!==t};return Pn=function(r,n){return r===0&&n===0?1/r===1/n:!!(r===n||e(r)&&e(n))},Pn}var $n,Go;function Oi(){if(Go)return $n;Go=1;var e=$i();return $n=function(){return typeof Object.is=="function"?Object.is:e},$n}var On,Yo;function Ys(){if(Yo)return On;Yo=1;var e=Oi(),t=_t();return On=function(){var n=e();return t(Object,{is:n},{is:function(){return Object.is!==n}}),n},On}var kn,Xo;function Xs(){if(Xo)return kn;Xo=1;var e=_t(),t=wr(),r=$i(),n=Oi(),o=Ys(),a=t(n(),Object);return e(a,{getPolyfill:n,implementation:r,shim:o}),kn=a,kn}var In,Ko;function ki(){if(Ko)return In;Ko=1;var e=wr(),t=nt(),r=jt(),n=r("%ArrayBuffer%",!0),o=t("ArrayBuffer.prototype.byteLength",!0),a=t("Object.prototype.toString"),i=!!n&&!o&&new n(0).slice,s=!!i&&e(i);return In=o||s?function(u){if(!u||typeof u!="object")return!1;try{return o?o(u):s(u,0),!0}catch{return!1}}:n?function(u){return a(u)==="[object ArrayBuffer]"}:function(u){return!1},In}var Mn,Zo;function Ks(){if(Zo)return Mn;Zo=1;var e=nt(),t=e("Date.prototype.getDay"),r=function(s){try{return t(s),!0}catch{return!1}},n=e("Object.prototype.toString"),o="[object Date]",a=Fr()();return Mn=function(s){return typeof s!="object"||s===null?!1:a?r(s):n(s)===o},Mn}var Tn,Jo;function Zs(){if(Jo)return Tn;Jo=1;var e=nt(),t=e("SharedArrayBuffer.prototype.byteLength",!0);return Tn=t?function(n){if(!n||typeof n!="object")return!1;try{return t(n),!0}catch{return!1}}:function(n){return!1},Tn}var An,Qo;function Js(){if(Qo)return An;Qo=1;var e=nt(),t=e("Number.prototype.toString"),r=function(s){try{return t(s),!0}catch{return!1}},n=e("Object.prototype.toString"),o="[object Number]",a=Fr()();return An=function(s){return typeof s=="number"?!0:!s||typeof s!="object"?!1:a?r(s):n(s)===o},An}var Bn,ea;function Qs(){if(ea)return Bn;ea=1;var e=nt(),t=e("Boolean.prototype.toString"),r=e("Object.prototype.toString"),n=function(s){try{return t(s),!0}catch{return!1}},o="[object Boolean]",a=Fr()();return Bn=function(s){return typeof s=="boolean"?!0:s===null||typeof s!="object"?!1:a?n(s):r(s)===o},Bn}var $r={exports:{}},ta;function el(){if(ta)return $r.exports;ta=1;var e=nt(),t=e("Object.prototype.toString"),r=ui()(),n=ys();if(r){var o=e("Symbol.prototype.toString"),a=n(/^Symbol\(.*\)$/),i=function(l){return typeof l.valueOf()!="symbol"?!1:a(o(l))};$r.exports=function(l){if(typeof l=="symbol")return!0;if(!l||typeof l!="object"||t(l)!=="[object Symbol]")return!1;try{return i(l)}catch{return!1}}}else $r.exports=function(l){return!1};return $r.exports}var Or={exports:{}},Ln,ra;function tl(){if(ra)return Ln;ra=1;var e=typeof BigInt<"u"&&BigInt;return Ln=function(){return typeof e=="function"&&typeof BigInt=="function"&&typeof e(42)=="bigint"&&typeof BigInt(42)=="bigint"},Ln}var na;function rl(){if(na)return Or.exports;na=1;var e=tl()();if(e){var t=BigInt.prototype.valueOf,r=function(o){try{return t.call(o),!0}catch{}return!1};Or.exports=function(o){return o===null||typeof o>"u"||typeof o=="boolean"||typeof o=="string"||typeof o=="number"||typeof o=="symbol"||typeof o=="function"?!1:typeof o=="bigint"?!0:r(o)}}else Or.exports=function(o){return!1};return Or.exports}var Dn,oa;function nl(){if(oa)return Dn;oa=1;var e=Ri(),t=Js(),r=Qs(),n=el(),o=rl();return Dn=function(i){if(i==null||typeof i!="object"&&typeof i!="function")return null;if(e(i))return"String";if(t(i))return"Number";if(r(i))return"Boolean";if(n(i))return"Symbol";if(o(i))return"BigInt"},Dn}var jn,aa;function ol(){if(aa)return jn;aa=1;var e=typeof WeakMap=="function"&&WeakMap.prototype?WeakMap:null,t=typeof WeakSet=="function"&&WeakSet.prototype?WeakSet:null,r;e||(r=function(i){return!1});var n=e?e.prototype.has:null,o=t?t.prototype.has:null;return!r&&!n&&(r=function(i){return!1}),jn=r||function(i){if(!i||typeof i!="object")return!1;try{if(n.call(i,n),o)try{o.call(i,o)}catch{return!0}return i instanceof e}catch{}return!1},jn}var kr={exports:{}},ia;function al(){if(ia)return kr.exports;ia=1;var e=jt(),t=nt(),r=e("%WeakSet%",!0),n=t("WeakSet.prototype.has",!0);if(n){var o=t("WeakMap.prototype.has",!0);kr.exports=function(i){if(!i||typeof i!="object")return!1;try{if(n(i,n),o)try{o(i,o)}catch{return!0}return i instanceof r}catch{}return!1}}else kr.exports=function(i){return!1};return kr.exports}var Nn,sa;function il(){if(sa)return Nn;sa=1;var e=Ci(),t=Pi(),r=ol(),n=al();return Nn=function(a){if(a&&typeof a=="object"){if(e(a))return"Map";if(t(a))return"Set";if(r(a))return"WeakMap";if(n(a))return"WeakSet"}return!1},Nn}var _n,la;function sl(){if(la)return _n;la=1;var e=nt(),t=e("ArrayBuffer.prototype.byteLength",!0),r=ki();return _n=function(o){return r(o)?t?t(o):o.byteLength:NaN},_n}var qn,ua;function ll(){if(ua)return qn;ua=1;var e=Ls(),t=bi(),r=_s(),n=jt(),o=Gs(),a=Ei(),i=Xs(),s=ci(),l=fi(),u=ki(),c=Ks(),f=bs(),y=Zs(),v=oo(),g=nl(),b=il(),h=xs(),R=sl(),P=t("SharedArrayBuffer.prototype.byteLength",!0),S=t("Date.prototype.getTime"),x=Object.getPrototypeOf,C=t("Object.prototype.toString"),I=n("%Set%",!0),$=t("Map.prototype.has",!0),A=t("Map.prototype.get",!0),k=t("Map.prototype.size",!0),B=t("Set.prototype.add",!0),N=t("Set.prototype.delete",!0),z=t("Set.prototype.has",!0),j=t("Set.prototype.size",!0);function X(w,T,V,F){for(var U=o(w),J;(J=U.next())&&!J.done;)if(Z(T,J.value,V,F))return N(w,J.value),!0;return!1}function D(w){if(typeof w>"u")return null;if(typeof w!="object")return typeof w=="symbol"?!1:typeof w=="string"||typeof w=="number"?+w==+w:!0}function H(w,T,V,F,U,J){var se=D(V);if(se!=null)return se;var ne=A(T,se),G=e({},U,{strict:!1});return typeof ne>"u"&&!$(T,se)||!Z(F,ne,G,J)?!1:!$(w,se)&&Z(F,ne,G,J)}function W(w,T,V){var F=D(V);return F??(z(T,F)&&!z(w,F))}function Y(w,T,V,F,U,J){for(var se=o(w),ne,G;(ne=se.next())&&!ne.done;)if(G=ne.value,Z(V,G,U,J)&&Z(F,A(T,G),U,J))return N(w,G),!0;return!1}function Z(w,T,V,F){var U=V||{};if(U.strict?i(w,T):w===T)return!0;var J=g(w),se=g(T);if(J!==se)return!1;if(!w||!T||typeof w!="object"&&typeof T!="object")return U.strict?i(w,T):w==T;var ne=F.has(w),G=F.has(T),ee;if(ne&&G){if(F.get(w)===F.get(T))return!0}else ee={};return ne||F.set(w,ee),G||F.set(T,ee),he(w,T,U,F)}function fe(w){return!w||typeof w!="object"||typeof w.length!="number"||typeof w.copy!="function"||typeof w.slice!="function"||w.length>0&&typeof w[0]!="number"?!1:!!(w.constructor&&w.constructor.isBuffer&&w.constructor.isBuffer(w))}function Ce(w,T,V,F){if(j(w)!==j(T))return!1;for(var U=o(w),J=o(T),se,ne,G;(se=U.next())&&!se.done;)if(se.value&&typeof se.value=="object")G||(G=new I),B(G,se.value);else if(!z(T,se.value)){if(V.strict||!W(w,T,se.value))return!1;G||(G=new I),B(G,se.value)}if(G){for(;(ne=J.next())&&!ne.done;)if(ne.value&&typeof ne.value=="object"){if(!X(G,ne.value,V.strict,F))return!1}else if(!V.strict&&!z(w,ne.value)&&!X(G,ne.value,V.strict,F))return!1;return j(G)===0}return!0}function _(w,T,V,F){if(k(w)!==k(T))return!1;for(var U=o(w),J=o(T),se,ne,G,ee,le,te;(se=U.next())&&!se.done;)if(ee=se.value[0],le=se.value[1],ee&&typeof ee=="object")G||(G=new I),B(G,ee);else if(te=A(T,ee),typeof te>"u"&&!$(T,ee)||!Z(le,te,V,F)){if(V.strict||!H(w,T,ee,le,V,F))return!1;G||(G=new I),B(G,ee)}if(G){for(;(ne=J.next())&&!ne.done;)if(ee=ne.value[0],te=ne.value[1],ee&&typeof ee=="object"){if(!Y(G,w,ee,te,V,F))return!1}else if(!V.strict&&(!w.has(ee)||!Z(A(w,ee),te,V,F))&&!Y(G,w,ee,te,e({},V,{strict:!1}),F))return!1;return j(G)===0}return!0}function he(w,T,V,F){var U,J;if(typeof w!=typeof T||w==null||T==null||C(w)!==C(T)||s(w)!==s(T))return!1;var se=l(w),ne=l(T);if(se!==ne)return!1;var G=w instanceof Error,ee=T instanceof Error;if(G!==ee||(G||ee)&&(w.name!==T.name||w.message!==T.message))return!1;var le=f(w),te=f(T);if(le!==te||(le||te)&&(w.source!==T.source||r(w)!==r(T)))return!1;var xe=c(w),ge=c(T);if(xe!==ge||(xe||ge)&&S(w)!==S(T)||V.strict&&x&&x(w)!==x(T))return!1;var me=h(w),qe=h(T);if(me!==qe)return!1;if(me||qe){if(w.length!==T.length)return!1;for(U=0;U<w.length;U++)if(w[U]!==T[U])return!1;return!0}var ue=fe(w),Se=fe(T);if(ue!==Se)return!1;if(ue||Se){if(w.length!==T.length)return!1;for(U=0;U<w.length;U++)if(w[U]!==T[U])return!1;return!0}var Ne=u(w),_e=u(T);if(Ne!==_e)return!1;if(Ne||_e)return R(w)!==R(T)?!1:typeof Uint8Array=="function"&&Z(new Uint8Array(w),new Uint8Array(T),V,F);var Pe=y(w),Oe=y(T);if(Pe!==Oe)return!1;if(Pe||Oe)return P(w)!==P(T)?!1:typeof Uint8Array=="function"&&Z(new Uint8Array(w),new Uint8Array(T),V,F);if(typeof w!=typeof T)return!1;var $e=v(w),Ee=v(T);if($e.length!==Ee.length)return!1;for($e.sort(),Ee.sort(),U=$e.length-1;U>=0;U--)if($e[U]!=Ee[U])return!1;for(U=$e.length-1;U>=0;U--)if(J=$e[U],!Z(w[J],T[J],V,F))return!1;var M=b(w),E=b(T);return M!==E?!1:M==="Set"||E==="Set"?Ce(w,T,V,F):M==="Map"?_(w,T,V,F):!0}return qn=function(T,V,F){return Z(T,V,F,a())},qn}var ul=ll();const ca=rt(ul);var er={},fa;function cl(){if(fa)return er;fa=1,Object.defineProperty(er,"__esModule",{value:!0});function e(){let t,r;const n=new Promise((o,a)=>{t=i=>{o(i),n.isPending=!1},r=i=>{a(i),n.isPending=!1}}).catch(o=>Promise.reject(o));return n.resolve=t,n.reject=r,"finally"in n||(n.finally=o=>{n.then(o),n.catch(o)}),n.isPending=!0,n}return er.future=e,er.default=e,er}var fl=cl();const pl=rt(fl);function pa(e){return{all:e=e||new Map,on:function(t,r){var n=e.get(t);n?n.push(r):e.set(t,[r])},off:function(t,r){var n=e.get(t);n&&(r?n.splice(n.indexOf(r)>>>0,1):e.set(t,[]))},emit:function(t,r){var n=e.get(t);n&&n.slice().map(function(o){o(r)}),(n=e.get("*"))&&n.slice().map(function(o){o(t,r)})}}}const Gt=new Map,Un=new Map,ao=new Map,Nr=new Map;function da(e){const t=document.getElementById(e);return!t||!t.contentWindow?!1:ao.get(t.contentWindow)??!1}function Gn(e){if(e.data&&e.data.type)try{switch(e.data.type){case Ue.PreviewMessageType.CONTROLLER_RESPONSE:{const t=e.data.payload,{id:r}=t,n=Gt.get(r);n&&(Gt.delete(r),t.ok?n.resolve(t.result):t.ok===!1&&n.reject(new Error(t.error)));break}case Ue.PreviewMessageType.EMOTE_EVENT:{const t=e.data.payload,{type:r,payload:n}=t,o=e.source?Un.get(e.source):null;o&&r&&o.emit(r,n);break}case Ue.PreviewMessageType.LOAD:{e.source&&(ao.set(e.source,!0),(Nr.get(e.source)||[]).filter(n=>{var o;return((o=n.data)==null?void 0:o.type)!==Ue.PreviewMessageType.LOAD}).forEach(Gn),Nr.delete(e.source));break}default:}}catch(t){console.error("Error processing WearablePreview message:",t)}}const dl=e=>{var r;if(((r=e.data)==null?void 0:r.type)===Ue.PreviewMessageType.LOAD){Gn(e);return}if(!(e.source?ao.get(e.source):!1)&&e.source){const n=Nr.get(e.source)||[];n.push(e),Nr.set(e.source,n);return}Gn(e)};typeof window<"u"&&window.addEventListener("message",dl,!1);let va=0;function vl(e){return function(r,n,o){const a=document.getElementById(e);if(!a||!a.contentWindow){const v=new Error("iframe not found or not accessible");return Promise.reject(v)}const i=e+"-"+va,s=pl();Gt.set(i,s);const l=Ue.PreviewMessageType.CONTROLLER_REQUEST,u={id:i,namespace:r,method:n,params:o},c=setTimeout(()=>{Gt.delete(i),s.reject(new Error(`Request timeout for ${n}`))},1e4),f=s.resolve,y=s.reject;s.resolve=v=>{clearTimeout(c),f(v)},s.reject=v=>{clearTimeout(c),y(v)};try{Ue.sendMessage(a.contentWindow,l,u)}catch(v){const g=v instanceof Error?v.message:String(v);s.reject(new Error(`Failed to send message: ${g}`)),Gt.delete(i),clearTimeout(c)}return va++,s}}function Ii(e){const t=document.getElementById(e);if(!t)throw new Error(`Could not find an iframe with id="${e}"`);Gt.clear();const r=t.contentWindow?Un.get(t.contentWindow)??pa():pa();t.contentWindow&&Un.set(t.contentWindow,r);const n=vl(e);return{scene:{getScreenshot(o,a){return n("scene","getScreenshot",[o,a])},getMetrics(){return n("scene","getMetrics",[])},changeZoom:function(o){return n("scene","changeZoom",[o])},panCamera:function(o){return n("scene","panCamera",[o])},changeCameraPosition:function(o){return n("scene","changeCameraPosition",[o])},cleanup(){return n("scene","cleanup",[])},setUsername:function(o){return n("scene","setUsername",[o])}},emote:{getLength(){return n("emote","getLength",[])},isPlaying(){return n("emote","isPlaying",[])},goTo(o){return n("emote","goTo",[o])},play(){return n("emote","play",[])},pause(){return n("emote","pause",[])},stop(){return n("emote","stop",[])},enableSound(){return n("emote","enableSound",[])},disableSound(){return n("emote","disableSound",[])},hasSound(){return n("emote","hasSound",[])},isSocialEmote(){return n("emote","isSocialEmote",[])},getSocialEmoteAnimations(){return n("emote","getSocialEmoteAnimations",[])},getPlayingSocialEmoteAnimation(){return n("emote","getPlayingSocialEmoteAnimation",[])},emote:null,events:r},physics:{setSpringBonesParams(o,a){return n("physics","setSpringBonesParams",[o,a])}}}}function ml(){let e=null;return(t,r,...n)=>{e&&clearTimeout(e),e=setTimeout(t,r,...n)}}const hl=je("iframe")({background:"transparent",border:0,width:"100%",height:"100%"}),gl=ml(),K=(e,t)=>t==null||t===""?"":Array.isArray(t)?t.length>0?t.map(r=>`${e}=${encodeURIComponent(String(r))}`).join("&"):"":`${e}=${encodeURIComponent(String(t))}`,yl=e=>{const{dev:t=!1,baseUrl:r=Ss.get("WEARABLE_PREVIEW_URL"),unity:n=!1,onLoad:o=()=>{},onError:a=()=>{},onUpdate:i=()=>{},...s}=e,[l,u]=d.useState({isReady:!1,pendingOptions:null}),c=d.useRef(null),f=d.useRef(null),y=d.useMemo(()=>{const{contractAddress:R,tokenId:P,itemId:S,profile:x,urns:C,urls:I,base64s:$,skin:A,hair:k,eyes:B,bodyShape:N,emote:z,camera:j,projection:X,zoom:D,background:H,offsetX:W,offsetY:Y,offsetZ:Z,cameraX:fe,cameraY:Ce,cameraZ:_,wheelZoom:he,wheelPrecision:w,wheelStart:T,disableBackground:V,disableAutoRotate:F,disableAutoCenter:U,disableFace:J,disableDefaultWearables:se,disableDefaultEmotes:ne,disableFadeEffect:G,showSceneBoundaries:ee,showThumbnailBoundaries:le,panning:te,lockAlpha:xe,lockBeta:ge,lockRadius:me,peerUrl:qe,nftServerUrl:ue,marketplaceServerUrl:Se,type:Ne,unityMode:_e,username:Pe,socialEmote:Oe}=s,$e=K("contract",R),Ee=K("token",P),M=K("item",S),E=K("profile",x),q=K("urn",C),oe=K("url",I),ie=K("base64",$),ae=K("skin",A),Ae=K("hair",k),Be=K("eyes",B),p=K("bodyShape",N),m=K("emote",z),re=K("camera",j),pe=K("projection",X),de=K("zoom",D),Q=K("background",H),We=K("offsetX",W),He=K("offsetY",Y),ke=K("offsetZ",Z),ze=K("cameraX",fe),Ot=K("cameraY",Ce),Ke=K("cameraZ",_),Le=K("wheelZoom",he),Et=K("wheelPrecision",w),qt=K("wheelStart",T),Wt=K("disableBackground",V),ct=K("disableAutoRotate",F),kt=K("disableAutoCenter",U),Rt=K("disableFace",J),It=K("disableDefaultWearables",se),ft=K("disableDefaultEmotes",ne),zt=K("disableFadeEffect",G),Ct=K("showSceneBoundaries",ee),pt=K("showThumbnailBoundaries",le),Vt=K("peerUrl",qe),we=K("marketplaceServerUrl",Se??ue),Mt=K("type",Ne),at=K("panning",te),Ie=K("lockAlpha",xe),Ft=K("lockBeta",ge),Jr=K("lockRadius",me),Cr=K("env",t?"dev":void 0),rs=K("unity",n),ns=K("mode",_e),os=K("username",Pe),as=K("socialEmote",Oe);return r+"?"+[$e,Ee,M,E,q,oe,ie,ae,Ae,Be,p,m,re,pe,de,Q,We,He,ke,ze,Ot,Ke,Le,Et,qt,Wt,ct,kt,Rt,It,ft,zt,Ct,pt,Vt,we,Mt,at,Ie,Ft,Jr,Cr,rs,ns,os,as].filter(is=>!!is).join("&")},[s,r,t,n]),v=d.useMemo(()=>{const R={};for(const P in s)typeof s[P]!="function"&&(R[P]=s[P]);return R},[s]),g=d.useCallback(R=>{var S;const P=f.current;(!P||!ca(R,P))&&((S=c.current)!=null&&S.contentWindow&&Ue.sendMessage(c.current.contentWindow,Ue.PreviewMessageType.UPDATE,{options:R}),i(R),f.current=R)},[i]),b=d.useCallback(()=>{c.current?typeof window<"u"&&(l.isReady?g(v):ca(l.pendingOptions,v)||u(R=>({...R,pendingOptions:v,url:y}))):console.warn("Could not send update, iframe is not referenced")},[v,l.pendingOptions,l.isReady,g]),h=d.useCallback(R=>{var x;const{origin:P}=R;if(P!==r||!((x=R.data)!=null&&x.type))return;switch(R.data.type){case Ue.PreviewMessageType.LOAD:{const C=R.data.payload;o(C==null?void 0:C.renderer);break}case Ue.PreviewMessageType.ERROR:{const C=R.data.payload;a(new Error(C.message));break}case Ue.PreviewMessageType.READY:{u(C=>C.isReady?C:C.pendingOptions!==null?(g(C.pendingOptions),{...C,isReady:!0,pendingOptions:null}):{...C,isReady:!0});break}}},[r,o,a,g]);return d.useEffect(()=>(window.addEventListener("message",h,!1),()=>{window.removeEventListener("message",h,!1)}),[h]),d.useEffect(()=>{e.blob&&b()},[e.blob,b]),d.useEffect(()=>{gl(b,500)},[b]),e.tokenId&&e.itemId&&console.warn("You should NOT use `tokenId` and `itemId` props simultaneously"),L.jsx(hl,{id:e.id,src:y,ref:c,allow:"autoplay"})};yl.createController=Ii;var it=fs(),tr={},Wn={};function bl(...e){return e.reduce((t,r)=>r==null?t:function(...o){t.apply(this,o),r.apply(this,o)},()=>{})}function xl(e,t=166){let r;function n(...o){const a=()=>{e.apply(this,o)};clearTimeout(r),r=setTimeout(a,t)}return n.clear=()=>{clearTimeout(r)},n}function Sl(e,t){return()=>null}function wl(e,t){var r,n;return d.isValidElement(e)&&t.indexOf((r=e.type.muiName)!=null?r:(n=e.type)==null||(n=n._payload)==null||(n=n.value)==null?void 0:n.muiName)!==-1}function Ge(e){return e&&e.ownerDocument||document}function El(e){return Ge(e).defaultView||window}function Rl(e,t){return()=>null}function _r(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const ht=typeof window<"u"?d.useLayoutEffect:d.useEffect;let ma=0;function Cl(e){const[t,r]=d.useState(e),n=e||t;return d.useEffect(()=>{t==null&&(ma+=1,r(`mui-${ma}`))},[t]),n}const ha=ss.useId;function Pl(e){if(ha!==void 0){const t=ha();return e??t}return Cl(e)}function $l(e,t,r,n,o){return null}function Mi({controlled:e,default:t,name:r,state:n="value"}){const{current:o}=d.useRef(e!==void 0),[a,i]=d.useState(t),s=o?e:a,l=d.useCallback(u=>{o||i(u)},[]);return[s,l]}function mt(e){const t=d.useRef(e);return ht(()=>{t.current=e}),d.useRef((...r)=>(0,t.current)(...r)).current}function Ye(...e){return d.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(r=>{_r(r,t)})},e)}const ga={};function Ol(e,t){const r=d.useRef(ga);return r.current===ga&&(r.current=e(t)),r}const kl=[];function Il(e){d.useEffect(e,kl)}class Ur{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new Ur}start(t,r){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,r()},t)}}function Ti(){const e=Ol(Ur.create).current;return Il(e.disposeEffect),e}let Gr=!0,Yn=!1;const Ml=new Ur,Tl={text:!0,search:!0,url:!0,tel:!0,email:!0,password:!0,number:!0,date:!0,month:!0,week:!0,time:!0,datetime:!0,"datetime-local":!0};function Al(e){const{type:t,tagName:r}=e;return!!(r==="INPUT"&&Tl[t]&&!e.readOnly||r==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function Bl(e){e.metaKey||e.altKey||e.ctrlKey||(Gr=!0)}function zn(){Gr=!1}function Ll(){this.visibilityState==="hidden"&&Yn&&(Gr=!0)}function Dl(e){e.addEventListener("keydown",Bl,!0),e.addEventListener("mousedown",zn,!0),e.addEventListener("pointerdown",zn,!0),e.addEventListener("touchstart",zn,!0),e.addEventListener("visibilitychange",Ll,!0)}function jl(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return Gr||Al(t)}function io(){const e=d.useCallback(o=>{o!=null&&Dl(o.ownerDocument)},[]),t=d.useRef(!1);function r(){return t.current?(Yn=!0,Ml.start(100,()=>{Yn=!1}),t.current=!1,!0):!1}function n(o){return jl(o)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:n,onBlur:r,ref:e}}function Nl(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}function _l(e){return d.Children.toArray(e).filter(t=>d.isValidElement(t))}const ql={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function Wl(e,t){function r(n,o){return L.jsx(bo,O({"data-testid":`${t}Icon`,ref:o},n,{children:e}))}return r.muiName=bo.muiName,d.memo(d.forwardRef(r))}const zl={configure:e=>{pi.configure(e)}},Vl=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ce,createChainedFunction:bl,createSvgIcon:Wl,debounce:xl,deprecatedPropType:Sl,isMuiElement:wl,ownerDocument:Ge,ownerWindow:El,requirePropFactory:Rl,setRef:_r,unstable_ClassNameGenerator:zl,unstable_useEnhancedEffect:ht,unstable_useId:Pl,unsupportedProp:$l,useControlled:Mi,useEventCallback:mt,useForkRef:Ye,useIsFocusVisible:io},Symbol.toStringTag,{value:"Module"})),Fl=ai(Vl);var ya;function St(){return ya||(ya=1,(function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=Fl})(Wn)),Wn}var ba;function Hl(){if(ba)return tr;ba=1;var e=bt();Object.defineProperty(tr,"__esModule",{value:!0}),tr.default=void 0;var t=e(St()),r=yt();return tr.default=(0,t.default)((0,r.jsx)("path",{d:"M6 19h4V5H6zm8-14v14h4V5z"}),"Pause"),tr}var Ul=Hl();const Gl=rt(Ul);var rr={},xa;function Yl(){if(xa)return rr;xa=1;var e=bt();Object.defineProperty(rr,"__esModule",{value:!0}),rr.default=void 0;var t=e(St()),r=yt();return rr.default=(0,t.default)((0,r.jsx)("path",{d:"M8 5v14l11-7z"}),"PlayArrow"),rr}var Xl=Yl();const Kl=rt(Xl);var nr={},Sa;function Zl(){if(Sa)return nr;Sa=1;var e=bt();Object.defineProperty(nr,"__esModule",{value:!0}),nr.default=void 0;var t=e(St()),r=yt();return nr.default=(0,t.default)((0,r.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"),nr}var Jl=Zl();const Ql=rt(Jl);var or={},wa;function eu(){if(wa)return or;wa=1;var e=bt();Object.defineProperty(or,"__esModule",{value:!0}),or.default=void 0;var t=e(St()),r=yt();return or.default=(0,t.default)((0,r.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"),or}var tu=eu();const ru=rt(tu),Yr=(e,t)=>{const r=d.useRef(null),[n,o]=d.useState(!1);return d.useEffect(()=>{const a=t??Ii(e);if(r.current=a,da(e)){o(!0);return}const i=document.getElementById(e);if(!i){console.error(`Could not find iframe with id="${e}"`);return}if(!i.contentWindow){console.error(`Iframe contentWindow is not accessible for id="${e}"`);return}const l=u=>{var c;((c=u.data)==null?void 0:c.type)===Ue.PreviewMessageType.LOAD&&da(e)&&o(!0)};return window.addEventListener("message",l),()=>{window.removeEventListener("message",l),o(!1),r.current=null}},[e,t]),{controllerRef:r,isReady:n}};function nu(e){return Object.keys(e).length===0}function ou(e=null){const t=d.useContext(ws);return!t||nu(t)?e:t}const au=Es();function Ai(e=au){return ou(e)}function Bi(e){var t,r,n="";if(typeof e=="string"||typeof e=="number")n+=e;else if(typeof e=="object")if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=Bi(e[t]))&&(n&&(n+=" "),n+=r)}else for(r in e)e[r]&&(n&&(n+=" "),n+=r);return n}function iu(){for(var e,t,r=0,n="",o=arguments.length;r<o;r++)(e=arguments[r])&&(t=Bi(e))&&(n&&(n+=" "),n+=t);return n}const su=["className","component"];function lu(e={}){const{themeId:t,defaultTheme:r,defaultClassName:n="MuiBox-root",generateClassName:o}=e,a=Rs("div",{shouldForwardProp:s=>s!=="theme"&&s!=="sx"&&s!=="as"})(Cs);return d.forwardRef(function(l,u){const c=Ai(r),f=Ps(l),{className:y,component:v="div"}=f,g=Te(f,su);return L.jsx(a,O({as:v,ref:u,className:iu(y,o?o(n):n),theme:t&&c[t]||c},g))})}const uu=d.createContext(),cu=()=>{const e=d.useContext(uu);return e??!1};function fu(){const e=Ai($s);return e[di]||e}const Ea=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};var Vn={exports:{}},ve={};/**
@@ -1,4 +1,4 @@
1
- import{i as u,b as c}from"./lit-element-B3y9oplH.js";import{n as r,o as p}from"./class-map-CxwNmq0D.js";import{d as g,r as f}from"./index-BxUnm4zs.js";import{c as m}from"./index-9u5dIWpc.js";const b=g`
1
+ import{i as u,b as c}from"./lit-element-B3y9oplH.js";import{n as r,o as p}from"./class-map-CxwNmq0D.js";import{d as g,r as f}from"./index-IYjr57Gm.js";import{c as m}from"./index-DrCs3EU5.js";const b=g`
2
2
  :host {
3
3
  display: block;
4
4
  width: var(--local-width);
@@ -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-BIy5wIe5.js";import{c as m}from"./index-9u5dIWpc.js";import{d as g,r as y,e as f}from"./index-BxUnm4zs.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-BzEzUKoA.js";import{c as m}from"./index-DrCs3EU5.js";import{d as g,r as y,e as f}from"./index-IYjr57Gm.js";const b=g`
2
2
  :host {
3
3
  width: 100%;
4
4
  }
@@ -1,3 +1,3 @@
1
- import{d as G}from"./index-D4ZuEeTk.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-BYez_Zlc.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};